github.com/jpreese/tflint@v0.19.2-0.20200908152133-b01686250fb6/rules/awsrules/models/mappings/cognito-idp.hcl (about)

     1  import = "aws-sdk-go/models/apis/cognito-idp/2016-04-18/api-2.json"
     2  
     3  mapping "aws_cognito_identity_provider" {
     4    user_pool_id  = UserPoolIdType
     5    provider_name = ProviderNameType
     6    provider_type = IdentityProviderTypeType
     7  }
     8  
     9  mapping "aws_cognito_resource_server" {
    10    identifier = ResourceServerIdentifierType
    11    name       = ResourceServerNameType
    12  }
    13  
    14  mapping "aws_cognito_user_group" {
    15    name         = GroupNameType
    16    user_pool_id = UserPoolIdType
    17    description  = DescriptionType
    18    precedence   = PrecedenceType
    19    role_arn     = ArnType
    20  }
    21  
    22  mapping "aws_cognito_user_pool" {
    23    alias_attributes           = AliasAttributesListType
    24    auto_verified_attributes   = VerifiedAttributesListType
    25    name                       = UserPoolNameType
    26    email_verification_subject = EmailVerificationSubjectType
    27    email_verification_message = EmailVerificationMessageType
    28    mfa_configuration          = UserPoolMfaType
    29    sms_authentication_message = SmsVerificationMessageType
    30    sms_verification_message   = SmsVerificationMessageType
    31  }
    32  
    33  mapping "aws_cognito_user_pool_client" {
    34    default_redirect_uri   = RedirectUrlType
    35    name                   = ClientNameType
    36    refresh_token_validity = RefreshTokenValidityType
    37    user_pool_id           = UserPoolIdType
    38  }
    39  
    40  mapping "aws_cognito_user_pool_domain" {
    41    domain          = DomainType
    42    user_pool_id    = UserPoolIdType
    43    certificate_arn = ArnType
    44  }
    45  
    46  test "aws_cognito_identity_provider" "user_pool_id" {
    47    ok = "foo_bar"
    48    ng = "foobar"
    49  }
    50  
    51  test "aws_cognito_identity_provider" "provider_name" {
    52    ok = "Google"
    53    ng = "\t"
    54  }
    55  
    56  test "aws_cognito_identity_provider" "provider_type" {
    57    ok = "LoginWithAmazon"
    58    ng = "Apple"
    59  }
    60  
    61  test "aws_cognito_resource_server" "identifier" {
    62    ok = "https://example.com"
    63    ng = "\t"
    64  }
    65  
    66  test "aws_cognito_resource_server" "name" {
    67    ok = "example"
    68    ng = "example/server"
    69  }
    70  
    71  test "aws_cognito_user_group" "name" {
    72    ok = "user-group"
    73    ng = "user\tgroup"
    74  }
    75  
    76  test "aws_cognito_user_group" "role_arn" {
    77    ok = "arn:aws:iam::123456789012:role/s3access"
    78    ng = "aws:iam::123456789012:instance-profile/s3access-profile"
    79  }
    80  
    81  test "aws_cognito_user_pool" "name" {
    82    ok = "mypool"
    83    ng = "my/pool"
    84  }
    85  
    86  test "aws_cognito_user_pool" "email_verification_message" {
    87    ok = "Verification code is {####}"
    88    ng = "Verification code"
    89  }
    90  
    91  test "aws_cognito_user_pool" "mfa_configuration" {
    92    ok = "ON"
    93    ng = "IN"
    94  }
    95  
    96  test "aws_cognito_user_pool" "sms_authentication_message" {
    97    ok = "Authentication code is {####}"
    98    ng = "Authentication code"
    99  }
   100  
   101  test "aws_cognito_user_pool" "sms_verification_message" {
   102    ok = "Verification code is {####}"
   103    ng = "Verification code"
   104  }
   105  
   106  test "aws_cognito_user_pool_client" "default_redirect_uri" {
   107    ok = "https://example.com/callback"
   108    ng = "https://example com"
   109  }
   110  
   111  test "aws_cognito_user_pool_client" "name" {
   112    ok = "client"
   113    ng = "client/example"
   114  }
   115  
   116  test "aws_cognito_user_pool_domain" "domain" {
   117    ok = "auth"
   118    ng = "auth example"
   119  }