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

     1  import = "aws-sdk-go/models/apis/elasticloadbalancingv2/2015-12-01/api-2.json"
     2  
     3  mapping "aws_lb" {
     4    name                             = LoadBalancerName
     5    name_prefix                      = any
     6    internal                         = any
     7    load_balancer_type               = LoadBalancerTypeEnum
     8    security_groups                  = SecurityGroups
     9    access_logs                      = any
    10    subnets                          = Subnets
    11    subnet_mapping                   = SubnetMappings
    12    idle_timeout                     = any
    13    enable_deletion_protection       = any
    14    enable_cross_zone_load_balancing = any
    15    enable_http2                     = any
    16    ip_address_type                  = IpAddressType
    17    tags                             = TagList
    18  }
    19  
    20  mapping "aws_alb" {
    21    name                             = LoadBalancerName
    22    name_prefix                      = any
    23    internal                         = any
    24    load_balancer_type               = LoadBalancerTypeEnum
    25    security_groups                  = SecurityGroups
    26    access_logs                      = any
    27    subnets                          = Subnets
    28    subnet_mapping                   = SubnetMappings
    29    idle_timeout                     = any
    30    enable_deletion_protection       = any
    31    enable_cross_zone_load_balancing = any
    32    enable_http2                     = any
    33    ip_address_type                  = IpAddressType
    34    tags                             = TagList
    35  }
    36  
    37  mapping "aws_lb_listener" {
    38    load_balancer_arn = LoadBalancerArn
    39    port              = Port
    40    protocol          = ProtocolEnum
    41    ssl_policy        = SslPolicyName
    42    certificate_arn   = CertificateList
    43    default_action    = Actions
    44  }
    45  
    46  mapping "aws_alb_listener" {
    47    load_balancer_arn = LoadBalancerArn
    48    port              = Port
    49    protocol          = ProtocolEnum
    50    ssl_policy        = SslPolicyName
    51    certificate_arn   = CertificateList
    52    default_action    = Actions
    53  }
    54  
    55  mapping "aws_lb_listener_certificate" {
    56    listener_arn    = ListenerArn
    57    certificate_arn = CertificateArn
    58  }
    59  
    60  mapping "aws_alb_listener_certificate" {
    61    listener_arn    = ListenerArn
    62    certificate_arn = CertificateArn
    63  }
    64  
    65  mapping "aws_lb_listener_rule" {
    66    listener_arn = ListenerArn
    67    priority     = RulePriority
    68    action       = Actions
    69    condition    = RuleConditionList
    70  }
    71  
    72  mapping "aws_alb_listener_rule" {
    73    listener_arn = ListenerArn
    74    priority     = RulePriority
    75    action       = Actions
    76    condition    = RuleConditionList
    77  }
    78  
    79  mapping "aws_lb_target_group" {
    80    name                               = TargetGroupName
    81    name_prefix                        = TargetGroupName
    82    port                               = Port
    83    protocol                           = ProtocolEnum
    84    vpc_id                             = VpcId
    85    deregistration_delay               = any
    86    slow_start                         = any
    87    lambda_multi_value_headers_enabled = any
    88    proxy_protocol_v2                  = any
    89    stickiness                         = any
    90    health_check                       = any
    91    target_type                        = TargetTypeEnum
    92    tags                               = TagList
    93  }
    94  
    95  mapping "aws_alb_target_group" {
    96    name                               = TargetGroupName
    97    name_prefix                        = TargetGroupName
    98    port                               = Port
    99    protocol                           = ProtocolEnum
   100    vpc_id                             = VpcId
   101    deregistration_delay               = any
   102    slow_start                         = any
   103    lambda_multi_value_headers_enabled = any
   104    proxy_protocol_v2                  = any
   105    stickiness                         = any
   106    health_check                       = any
   107    target_type                        = TargetTypeEnum
   108    tags                               = TagList
   109  }
   110  
   111  mapping "aws_lb_target_group_attachment" {
   112    target_group_arn  = TargetGroupArn
   113    target_id         = TargetId
   114    port              = Port
   115    availability_zone = ZoneName
   116  }
   117  
   118  mapping "aws_alb_target_group_attachment" {
   119    target_group_arn  = TargetGroupArn
   120    target_id         = TargetId
   121    port              = Port
   122    availability_zone = ZoneName
   123  }
   124  
   125  test "aws_lb" "ip_address_type" {
   126    ok = "ipv4"
   127    ng = "ipv6"
   128  }
   129  
   130  test "aws_lb" "load_balancer_type" {
   131    ok = "application"
   132    ng = "classic"
   133  }
   134  
   135  test "aws_lb_listener" "protocol" {
   136    ok = "HTTPS"
   137    ng = "INVALID"
   138  }
   139  
   140  test "aws_lb_target_group" "target_type" {
   141    ok = "lambda"
   142    ng = "container"
   143  }