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

     1  import = "aws-sdk-go/models/apis/datasync/2018-11-09/api-2.json"
     2  
     3  mapping "aws_datasync_agent" {
     4    name           = TagValue
     5    activation_key = ActivationKey
     6    tags           = InputTagList
     7  }
     8  
     9  mapping "aws_datasync_location_efs" {
    10    ec2_config          = Ec2Config
    11    efs_file_system_arn = EfsFilesystemArn
    12    subdirectory        = EfsSubdirectory
    13    tags                = InputTagList
    14  }
    15  
    16  mapping "aws_datasync_location_nfs" {
    17    on_prem_config  = OnPremConfig
    18    server_hostname = ServerHostname
    19    subdirectory    = EfsSubdirectory
    20    tags            = InputTagList
    21  }
    22  
    23  mapping "aws_datasync_location_s3" {
    24    s3_bucket_arn = S3BucketArn
    25    s3_config     = S3Config
    26    subdirectory  = EfsSubdirectory
    27    tags          = InputTagList
    28  }
    29  
    30  mapping "aws_datasync_task" {
    31    destination_location_arn = LocationArn
    32    source_location_arn      = LocationArn
    33    cloudwatch_log_group_arn = LogGroupArn
    34    name                     = TagValue
    35    options                  = Options
    36    tags                     = InputTagList
    37  }
    38  
    39  test "aws_datasync_agent" "name" {
    40    ok = "example"
    41    ng = "example^example"
    42  }
    43  
    44  test "aws_datasync_agent" "activation_key" {
    45    ok = "F0EFT-7FPPR-GG7MC-3I9R3-27DOH"
    46    ng = "F0EFT7FPPRGG7MC3I9R327DOH"
    47  }
    48  
    49  test "aws_datasync_location_efs" "efs_file_system_arn" {
    50    ok = "arn:aws:elasticfilesystem:us-east-1:123456789012:file-system/fs-12345678"
    51    ng = "arn:aws:eks:us-east-1:123456789012:cluster/my-cluster"
    52  }
    53  
    54  test "aws_datasync_location_efs" "subdirectory" {
    55    ok = "foo"
    56    ng = "bar\t"
    57  }
    58  
    59  test "aws_datasync_location_nfs" "server_hostname" {
    60    ok = "nfs.example.com"
    61    ng = "nfs^example^com"
    62  }
    63  
    64  test "aws_datasync_location_nfs" "subdirectory" {
    65    ok = "/exported/path"
    66    ng = "/exported^path"
    67  }
    68  
    69  test "aws_datasync_location_s3" "s3_bucket_arn" {
    70    ok = "arn:aws:s3:::my_corporate_bucket"
    71    ng = "arn:aws:eks:us-east-1:123456789012:cluster/my-cluster"
    72  }
    73  
    74  test "aws_datasync_task" "cloudwatch_log_group_arn" {
    75    ok = "arn:aws:logs:us-east-1:123456789012:log-group:my-log-group"
    76    ng = "arn:aws:s3:::my_corporate_bucket"
    77  }
    78  
    79  test "aws_datasync_task" "source_location_arn" {
    80    ok = "arn:aws:datasync:us-east-2:111222333444:location/loc-07db7abfc326c50fb"
    81    ng = "arn:aws:datasync:us-east-2:111222333444:task/task-08de6e6697796f026"
    82  }