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

     1  import = "aws-sdk-go/models/apis/events/2015-10-07/api-2.json"
     2  
     3  mapping "aws_cloudwatch_event_permission" {
     4    principal    = Principal
     5    statement_id = StatementId
     6    action       = Action
     7  }
     8  
     9  mapping "aws_cloudwatch_event_rule" {
    10    name                = RuleName
    11    schedule_expression = ScheduleExpression
    12    description         = RuleDescription
    13    role_arn            = RoleArn
    14  }
    15  
    16  mapping "aws_cloudwatch_event_target" {
    17    rule       = RuleName
    18    target_id  = TargetId
    19    arn        = TargetArn
    20    input      = TargetInput
    21    input_path = TargetInputPath
    22    role_arn   = RoleArn
    23  }
    24  
    25  test "aws_cloudwatch_event_permission" "principal" {
    26    ok = "*"
    27    ng = "-"
    28  }
    29  
    30  test "aws_cloudwatch_event_permission" "statement_id" {
    31    ok = "OrganizationAccess"
    32    ng = "Organization Access"
    33  }
    34  
    35  test "aws_cloudwatch_event_permission" "action" {
    36    ok = "events:PutEvents"
    37    ng = "cloudwatchevents:PutEvents"
    38  }
    39  
    40  test "aws_cloudwatch_event_rule" "name" {
    41    ok = "capture-aws-sign-in"
    42    ng = "capture aws sign in"
    43  }
    44  
    45  test "aws_cloudwatch_event_target" "target_id" {
    46    ok = "run-scheduled-task-every-hour"
    47    ng = "run scheduled task every hour"
    48  }