<commit_before>#
# Cognito resources
#
resource "aws_cognito_user_pool" "pool"{
  name = "${var.envPrefix}"
  username_attributes = "email"
  schema = [
    {
      name = "email"
      attribute_data_type = "String"
      required = true
    },
    {
      name = "reg-code"
      attribute_data_type = "String"
      string_attribute_constraints = {
        min_length = 1
      },
    }
  ]
  tags = {
    Application = "Jazz"
    JazzInstance = "${var.envPrefix}"
  }
  auto_verified_attributes = "email"
  verification_message_template = {
    email_subject_by_link = "Jazz Notification - Account Verification"
    email_message_by_link = "Hello,\n<br><br>\nThanks for signing up!\n<br><br>\nPlease click the link to verify your email address: {##Verify Email##}\n<br><br>\nTo know more about Jazz, please refer to link https://github.com/tmobile/jazz-core/wiki\n<br><br>\nBest,<br>\nJazz Team"
    default_email_option = "CONFIRM_WITH_LINK"
  }
  password_policy = {
    minimum_length    = 6
    require_lowercase = true
    require_numbers   = false
    require_symbols   = false
    require_uppercase = false
  }
}

resource "aws_cognito_user_pool_client" "client" {
  name = "${var.envPrefix}-api-onboarding"
  generate_secret = false
  user_pool_id = "${aws_cognito_user_pool.pool.id}"<commit_msg>Fixes<commit_after>#
# Cognito resources
#
resource "aws_cognito_user_pool" "pool"{
  name = "${var.envPrefix}"
  username_attributes = ["email"]
  schema = [
    {
      name = "email"
      attribute_data_type = "String"
      required = true
    },
    {
      name = "reg-code"
      attribute_data_type = "String"
      string_attribute_constraints = {
        min_length = 1
      },
    }
  ]
  tags = {
    Application = "Jazz"
    JazzInstance = "${var.envPrefix}"
  }
  auto_verified_attributes = ["email"]
  verification_message_template = {
    email_subject_by_link = "Jazz Notification - Account Verification"
    email_message_by_link = "Hello,\n<br><br>\nThanks for signing up!\n<br><br>\nPlease click the link to verify your email address: {##VERIFY EMAIL##}\n<br><br>\nTo know more about Jazz, please refer to link https://github.com/tmobile/jazz-core/wiki\n<br><br>\nBest,<br>\nJazz Team"
    default_email_option = "CONFIRM_WITH_LINK"
  }
  password_policy = {
    minimum_length    = 6
    require_lowercase = true
    require_numbers   = false
    require_symbols   = false
    require_uppercase = false
  }
}

resource "aws_cognito_user_pool_client" "client" {
  name = "${var.envPrefix}-api-onboarding"
  generate_secret = false
  user_pool_id = "${aws_cognito_user_pool.pool.id}"
{'fraction_non_alphanumeric': 0.12021439509954059, 'fraction_numerical': 0.0015313935681470138, 'mean_word_length': 3.406408094435076, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '933787', 'n_tokens_mistral': 892, 'n_tokens_neox': 887, 'n_words': 167}