repo
stringclasses 358
values | pull_number
int64 6
67.9k
| instance_id
stringlengths 12
49
| issue_numbers
listlengths 1
7
| base_commit
stringlengths 40
40
| patch
stringlengths 87
101M
| test_patch
stringlengths 72
22.3M
| problem_statement
stringlengths 3
256k
| hints_text
stringlengths 0
545k
| created_at
stringlengths 20
20
| PASS_TO_PASS
listlengths 0
0
| FAIL_TO_PASS
listlengths 0
0
|
---|---|---|---|---|---|---|---|---|---|---|---|
aws-cloudformation/cfn-lint
| 143 |
aws-cloudformation__cfn-lint-143
|
[
"140"
] |
192bbb5f295201f11ccdbe4fa3f0a1141d007279
|
diff --git a/src/cfnlint/rules/resources/properties/Properties.py b/src/cfnlint/rules/resources/properties/Properties.py
--- a/src/cfnlint/rules/resources/properties/Properties.py
+++ b/src/cfnlint/rules/resources/properties/Properties.py
@@ -73,6 +73,55 @@ def primitivetypecheck(self, value, primtype, proppath):
return matches
+ def check_list_for_condition(self, text, prop, parenttype, resourcename, propspec, path):
+ """Checks lists that are a dict for conditions"""
+ matches = list()
+ if len(text[prop]) == 1:
+ for sub_key, sub_value in text[prop].items():
+ if sub_key in cfnlint.helpers.CONDITION_FUNCTIONS:
+ if len(sub_value) == 3:
+ if isinstance(sub_value[1], list):
+ for index, item in enumerate(sub_value[1]):
+ arrproppath = path[:]
+
+ arrproppath.append(index)
+ matches.extend(self.propertycheck(
+ item, propspec['ItemType'],
+ parenttype, resourcename, arrproppath, False))
+ else:
+ message = 'Property {0} should be of type List for resource {1}'
+ matches.append(
+ RuleMatch(
+ path,
+ message.format(prop, resourcename)))
+
+ if isinstance(sub_value[2], list):
+ for index, item in enumerate(sub_value[2]):
+ arrproppath = path[:]
+
+ arrproppath.append(index)
+ matches.extend(self.propertycheck(
+ item, propspec['ItemType'],
+ parenttype, resourcename, arrproppath, False))
+ else:
+ message = 'Property {0} should be of type List for resource {1} at {2}'
+ matches.append(
+ RuleMatch(
+ path + [2],
+ message.format(prop, resourcename, ('/'.join(str(x) for x in path)))))
+
+ else:
+ message = 'Invalid !If condition specified at %s' % ('/'.join(map(str, path)))
+ matches.append(RuleMatch(path, message))
+ else:
+ message = 'Property is an object instead of List at %s' % ('/'.join(map(str, path)))
+ matches.append(RuleMatch(path, message))
+ else:
+ message = 'Property is an object instead of List at %s' % ('/'.join(map(str, path)))
+ matches.append(RuleMatch(path, message))
+
+ return matches
+
def propertycheck(self, text, proptype, parenttype, resourcename, path, root):
"""Check individual properties"""
@@ -124,6 +173,12 @@ def propertycheck(self, text, proptype, parenttype, resourcename, path, root):
matches.extend(self.propertycheck(
item, resourcespec[prop]['ItemType'],
parenttype, resourcename, arrproppath, False))
+ elif (isinstance(text[prop], dict)):
+ # A list can be be specific as a Conditional
+ matches.extend(
+ self.check_list_for_condition(
+ text, prop, parenttype, resourcename, resourcespec[prop], proppath)
+ )
else:
message = 'Property {0} should be of type List for resource {1}'
matches.append(
|
diff --git a/test/rules/resources/properties/test_properties.py b/test/rules/resources/properties/test_properties.py
--- a/test/rules/resources/properties/test_properties.py
+++ b/test/rules/resources/properties/test_properties.py
@@ -39,7 +39,7 @@ def test_file_negative(self):
def test_file_negative_2(self):
"""Failure test"""
- self.helper_file_negative('templates/bad/object_should_be_list.yaml', 2)
+ self.helper_file_negative('templates/bad/object_should_be_list.yaml', 4)
def test_file_negative_3(self):
"""Failure test"""
diff --git a/test/templates/bad/object_should_be_list.yaml b/test/templates/bad/object_should_be_list.yaml
--- a/test/templates/bad/object_should_be_list.yaml
+++ b/test/templates/bad/object_should_be_list.yaml
@@ -651,3 +651,23 @@ Resources:
Cooldown: '60'
ScalingAdjustment: '1'
Type: AWS::AutoScaling::ScalingPolicy
+ Table:
+ Type: 'AWS::DynamoDB::Table'
+ Properties:
+ TableName: !If [HasTableName, !Ref TableName, !Ref 'AWS::NoValue']
+ AttributeDefinitions: !If
+ - HasSortKey
+ - - AttributeName: !Ref PartitionKeyName
+ AttributeType: !Ref PartitionKeyType
+ - AttributeName: !Ref SortKeyName
+ AttributeType: !Ref SortKeyType
+ - "String"
+ KeySchema: !If
+ - HasSortKey
+ - - AttributeName: !Ref PartitionKeyName
+ KeyType: HASH
+ - AttributeName: !Ref SortKeyName
+ KeyType: RANGE
+ - - AttributeName: !Ref PartitionKeyName
+ KeyType: HASH
+ - "String2"
diff --git a/test/templates/good/resource_properties.yaml b/test/templates/good/resource_properties.yaml
--- a/test/templates/good/resource_properties.yaml
+++ b/test/templates/good/resource_properties.yaml
@@ -561,3 +561,25 @@ Resources:
Parameters:
sql_mode: "NO_AUTO_CREATE_USER"
another_param: "ANOTHER_PARAMETER"
+ Table:
+ Type: 'AWS::DynamoDB::Table'
+ Properties:
+ TableName: !If [HasTableName, !Ref TableName, !Ref 'AWS::NoValue']
+ AttributeDefinitions: !If
+ - HasSortKey
+ - - AttributeName: !Ref PartitionKeyName
+ AttributeType: !Ref PartitionKeyType
+ - AttributeName: !Ref SortKeyName
+ AttributeType: !Ref SortKeyType
+ - - AttributeName: !Ref PartitionKeyName
+ AttributeType: !Ref PartitionKeyType
+ KeySchema: !If
+ - HasSortKey
+ - - AttributeName: !Ref PartitionKeyName
+ KeyType: HASH
+ - AttributeName: !Ref SortKeyName
+ KeyType: RANGE
+ - - AttributeName: !Ref PartitionKeyName
+ KeyType: HASH
+ - AttributeName: !Ref SortKeyName
+ KeyType: RANGE
|
!If seems to break rule E3002 for lists
`!If` seems to break the type checker for lists. It seems to work with other types like boolean, strings, and `!Ref 'AWS::NoValue'`.
I get the following findings using v0.3.0:
```
E3002 Property AttributeDefinitions should be of type List for resource Table
E3002 Property KeySchema should be of type List for resource Table
```
For this template:
```
Conditions:
HasSortKey: !Not [!Equals [!Ref SortKeyName, '']]
HasTableName: !Not [!Equals [!Ref TableName, '']]
HasAwsManagedEncryption: !Equals [!Ref Encryption, aws]
Resources:
Table:
Type: 'AWS::DynamoDB::Table'
Properties:
TableName: !If [HasTableName, !Ref TableName, !Ref 'AWS::NoValue']
AttributeDefinitions: !If
- HasSortKey
- - AttributeName: !Ref PartitionKeyName
AttributeType: !Ref PartitionKeyType
- AttributeName: !Ref SortKeyName
AttributeType: !Ref SortKeyType
- - AttributeName: !Ref PartitionKeyName
AttributeType: !Ref PartitionKeyType
KeySchema: !If
- HasSortKey
- - AttributeName: !Ref PartitionKeyName
KeyType: HASH
- AttributeName: !Ref SortKeyName
KeyType: RANGE
- - AttributeName: !Ref PartitionKeyName
KeyType: HASH
ProvisionedThroughput:
ReadCapacityUnits: !Ref MinReadCapacityUnits
WriteCapacityUnits: !Ref MinWriteCapacityUnits
SSESpecification:
SSEEnabled: !If [HasAwsManagedEncryption, true, false]
```
|
Good find! 👍
It seems that conditionals and lists don't like each other (yet). Let me check
|
2018-06-20T12:40:52Z
|
[] |
[] |
aws-cloudformation/cfn-lint
| 148 |
aws-cloudformation__cfn-lint-148
|
[
"146"
] |
17510d3f451ea19b8647af139c3238ecf5be8afc
|
diff --git a/src/cfnlint/rules/parameters/LambdaMemorySize.py b/src/cfnlint/rules/parameters/LambdaMemorySize.py
--- a/src/cfnlint/rules/parameters/LambdaMemorySize.py
+++ b/src/cfnlint/rules/parameters/LambdaMemorySize.py
@@ -26,9 +26,6 @@ class LambdaMemorySize(CloudFormationLintRule):
' should have a min and max size that matches Lambda constraints'
tags = ['base', 'parameters', 'lambda']
- min_memory = 128
- max_memory = 3008
-
def __init__(self):
"""Init"""
resource_type_specs = [
@@ -45,19 +42,17 @@ def check_lambda_memory_size_ref(self, value, path, parameters, resources):
if value in parameters:
parameter = parameters.get(value)
- min_value = parameter.get('MinValue', 0)
- max_value = parameter.get('MaxValue', 999999)
- if min_value < self.min_memory or max_value > self.max_memory:
- param_path = ['Parameters', value, 'Type']
- message = 'Type for Parameter should be Integer, MinValue should be ' \
- 'at least {0}, and MaxValue equal or less than {1} at {0}'
+ min_value = parameter.get('MinValue')
+ max_value = parameter.get('MaxValue')
+ allowed_values = parameter.get('AllowedValues')
+ if (not min_value or not max_value) and (not allowed_values):
+ param_path = ['Parameters', value]
+ message = 'Lambda Memory Size parameters should use MinValue, MaxValue ' \
+ 'or AllowedValues at {0}'
matches.append(
RuleMatch(
param_path,
- message.format(
- self.min_memory,
- self.max_memory,
- ('/'.join(param_path)))))
+ message.format(('/'.join(param_path)))))
return matches
diff --git a/src/cfnlint/rules/resources/lmbd/FunctionMemorySize.py b/src/cfnlint/rules/resources/lmbd/FunctionMemorySize.py
--- a/src/cfnlint/rules/resources/lmbd/FunctionMemorySize.py
+++ b/src/cfnlint/rules/resources/lmbd/FunctionMemorySize.py
@@ -14,6 +14,7 @@
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
"""
+import six
from cfnlint import CloudFormationLintRule
from cfnlint import RuleMatch
@@ -56,6 +57,13 @@ def check_value(self, value, path):
return matches
+ def check_memory_size_value(self, value):
+ """ Check the memory size value"""
+ if value < self.min_memory or value > self.max_memory:
+ return False
+
+ return True
+
def check_ref(self, value, path, parameters, resources):
""" Check Memory Size Ref """
@@ -71,6 +79,46 @@ def check_ref(self, value, path, parameters, resources):
message = 'Type for Parameter should be Number at {0}'
matches.append(RuleMatch(param_path, message.format(('/'.join(param_path)))))
+ min_value = parameter.get('MinValue')
+ max_value = parameter.get('MaxValue')
+ allowed_values = parameter.get('AllowedValues')
+ if isinstance(allowed_values, list):
+ for allowed_value in allowed_values:
+ if isinstance(allowed_value, six.integer_types):
+ if not self.check_memory_size_value(allowed_value):
+ param_path = ['Parameters', value, 'AllowedValues']
+ message = 'AllowedValues should be between {0} and {1} at {2}'
+ matches.append(
+ RuleMatch(
+ param_path,
+ message.format(
+ self.min_memory,
+ self.max_memory,
+ ('/'.join(param_path)))))
+ else:
+ if min_value:
+ if not self.check_memory_size_value(min_value):
+ param_path = ['Parameters', value, 'MinValue']
+ message = 'MinValue should be greater than {0} and equal or less than {1} at {2}'
+ matches.append(
+ RuleMatch(
+ param_path,
+ message.format(
+ self.min_memory,
+ self.max_memory,
+ ('/'.join(param_path)))))
+ if max_value:
+ if not self.check_memory_size_value(max_value):
+ param_path = ['Parameters', value, 'MaxValue']
+ message = 'MaxValue should be greater than {0} and equal or less than {1} at {2}'
+ matches.append(
+ RuleMatch(
+ param_path,
+ message.format(
+ self.min_memory,
+ self.max_memory,
+ ('/'.join(param_path)))))
+
return matches
def match(self, cfn):
|
diff --git a/test/rules/parameters/test_lambda_memory_size.py b/test/rules/parameters/test_lambda_memory_size.py
--- a/test/rules/parameters/test_lambda_memory_size.py
+++ b/test/rules/parameters/test_lambda_memory_size.py
@@ -31,4 +31,4 @@ def test_file_positive(self):
def test_file_negative(self):
"""Test failure"""
- self.helper_file_negative('templates/bad/resources_lambda.yaml', 1)
+ self.helper_file_negative('templates/bad/resources_lambda.yaml', 2)
diff --git a/test/rules/resources/lmbd/test_memory_size.py b/test/rules/resources/lmbd/test_memory_size.py
--- a/test/rules/resources/lmbd/test_memory_size.py
+++ b/test/rules/resources/lmbd/test_memory_size.py
@@ -31,4 +31,4 @@ def test_file_positive(self):
def test_file_negative(self):
"""Test failure"""
- self.helper_file_negative('templates/bad/resources_lambda.yaml', 2)
+ self.helper_file_negative('templates/bad/resources_lambda.yaml', 3)
diff --git a/test/templates/bad/resources_lambda.yaml b/test/templates/bad/resources_lambda.yaml
--- a/test/templates/bad/resources_lambda.yaml
+++ b/test/templates/bad/resources_lambda.yaml
@@ -6,6 +6,27 @@ Parameters:
myParameterMemorySize:
Type: Number
Description: Memory Size
+ myMemorySize2:
+ Type: Number
+ AllowedValues:
+ - 1
+ - 384
+ - 512
+ - 640
+ - 768
+ - 896
+ - 1024
+ - 1152
+ - 1280
+ - 1408
+ - 3009
+ Default: 128
+ Description: Size of the Lambda function running the scheduler, increase size when
+ processing large numbers of instances
+ myMemorySize3:
+ Type: Number
+ Description: Size of the Lambda function running the scheduler, increase size when
+ processing large numbers of instances
myParameterRuntime:
Type: String
Description: Runtime
@@ -42,3 +63,17 @@ Resources:
Role: !GetAtt LambdaExecutionRole.Arn
Runtime: !Ref myParameterRuntime
MemorySize: !Ref myParameterMemorySize
+ myLambda3:
+ Type: AWS::Lambda::Function
+ Properties:
+ Handler: index.handler
+ Role: !GetAtt LambdaExecutionRole.Arn
+ Runtime: !Ref myParameterRuntime
+ MemorySize: !Ref myMemorySize2
+ myLambda4:
+ Type: AWS::Lambda::Function
+ Properties:
+ Handler: index.handler
+ Role: !GetAtt LambdaExecutionRole.Arn
+ Runtime: !Ref myParameterRuntime
+ MemorySize: !Ref myMemorySize3
diff --git a/test/templates/good/resources_lambda.yaml b/test/templates/good/resources_lambda.yaml
--- a/test/templates/good/resources_lambda.yaml
+++ b/test/templates/good/resources_lambda.yaml
@@ -8,6 +8,23 @@ Parameters:
Description: Memory Size
MinValue: 128
MaxValue: 1024
+ myMemorySize2:
+ Type: Number
+ AllowedValues:
+ - 128
+ - 384
+ - 512
+ - 640
+ - 768
+ - 896
+ - 1024
+ - 1152
+ - 1280
+ - 1408
+ - 1536
+ Default: 128
+ Description: Size of the Lambda function running the scheduler, increase size when
+ processing large numbers of instances
myParameterRuntime:
Type: String
Description: Runtime
@@ -56,3 +73,12 @@ Resources:
ZipFile: "amilookup.zip"
Runtime: !Ref myParameterRuntime
MemorySize: !Ref myParameterMemorySize
+ myLambda3:
+ Type: AWS::Lambda::Function
+ Properties:
+ Handler: index.handler
+ Role: !GetAtt myLambdaExecutionRole.Arn
+ Code:
+ ZipFile: "amilookup.zip"
+ Runtime: !Ref myParameterRuntime
+ MemorySize: !Ref myMemorySize2
|
Incorrect parameter type message for Number parameters
Receiving the error:
```
E2530 Type for Parameter should be Integer, MinValue should be at least 128, and MaxValue equal or less than 1536 at Parameters/MemorySize/Type
cloudformation/ec2/management/templates/instance-scheduler.yaml:20:5
```
The block of cloudformation it is complaining about it:
```
MemorySize:
Type: Number
AllowedValues:
- 128
- 384
- 512
- 640
- 768
- 896
- 1024
- 1152
- 1280
- 1408
- 1536
Default: 128
Description: Size of the Lambda function running the scheduler, increase size when
processing large numbers of instances
```
There is no parameter type of Integer so I don't where this error is coming from?
|
I'm almost done with this one.
|
2018-06-20T18:09:35Z
|
[] |
[] |
aws-cloudformation/cfn-lint
| 163 |
aws-cloudformation__cfn-lint-163
|
[
"159"
] |
6142df469aa5648960454214c8db812c4b04a3d7
|
diff --git a/src/cfnlint/__init__.py b/src/cfnlint/__init__.py
--- a/src/cfnlint/__init__.py
+++ b/src/cfnlint/__init__.py
@@ -621,8 +621,10 @@ def get_values(self, obj, key, path=[]):
is_condition = True
results = self.get_condition_values(obj_value, path[:] + [obj_key])
if isinstance(results, list):
- matches.extend(results)
-
+ for result in results:
+ check_obj = obj.copy()
+ check_obj[key] = result['Value']
+ matches.extend(self.get_values(check_obj, key, path[:] + result['Path']))
if not is_condition:
result = {}
result['Path'] = path[:]
|
diff --git a/test/templates/good/resource_properties.yaml b/test/templates/good/resource_properties.yaml
--- a/test/templates/good/resource_properties.yaml
+++ b/test/templates/good/resource_properties.yaml
@@ -297,6 +297,8 @@ Parameters:
Type: String
ParamInstanceSecurityGroup:
Type: List<AWS::EC2::SecurityGroup::Id>
+Conditions:
+ HasSingleClusterInstance: !Equals [!Ref 'AWS::Region', 'us-east-1']
Resources:
CPUAlarmHigh:
Properties:
@@ -561,6 +563,11 @@ Resources:
Parameters:
sql_mode: "NO_AUTO_CREATE_USER"
another_param: "ANOTHER_PARAMETER"
+ ElasticsearchDomain:
+ Type: 'AWS::Elasticsearch::Domain'
+ Properties:
+ VPCOptions:
+ SubnetIds: !If [HasSingleClusterInstance, ['SubnetAPrivate'], ['SubnetAPrivate', 'SubnetBPrivate']]
Table:
Type: 'AWS::DynamoDB::Table'
Properties:
|
!If seems to break rule E3012
The following template snippet (bug.yml):
```
---
AWSTemplateFormatVersion: '2010-09-09'
Parameters:
ClusterInstanceCount:
Description: 'The number of data nodes (instances) to use in the Amazon ES domain.'
Type: Number
Default: 1
Conditions:
HasSingleClusterInstance: !Equals [!Ref ClusterInstanceCount, '1']
Resources:
ElasticsearchDomain:
Type: 'AWS::Elasticsearch::Domain'
Properties:
VPCOptions:
SubnetIds: !If [HasSingleClusterInstance, ['SubnetAPrivate'], ['SubnetAPrivate', 'SubnetBPrivate']]
```
causes two findings with v0.3.1:
```
E3012 Property Resources/ElasticsearchDomain/Properties/VPCOptions/SubnetIds/Fn::If/1 should be of type String
bug.yml:15:9
E3012 Property Resources/ElasticsearchDomain/Properties/VPCOptions/SubnetIds/Fn::If/2 should be of type String
bug.yml:15:9
```
If I remove the `If` it validates without findings. I'm not sure if this is related to #140 or not.
|
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticsearch-domain-vpcoptions.html#cfn-elasticsearch-domain-vpcoptions-subnetids
SubNetIds is an array of string, cfn-lint actually expects this. It now reads something else, since it's not specified as an "array."
It is slightly related to Issue https://github.com/awslabs/cfn-python-lint/issues/140
Something like the following setup should be valid:
```
ElasticsearchDomain:
Type: 'AWS::Elasticsearch::Domain'
Properties:
VPCOptions:
SubnetIds: !If
- HasSingleClusterInstance
- - 'SubnetAPrivate'
- - 'SubnetAPrivate'
- 'SubnetBPrivate'
```
Does your sample template deploy successfully?
Yea, I see the problem. I'll try to get a hotfix in. It is related to the issue but we should have had this scenario covered.
|
2018-06-25T17:26:15Z
|
[] |
[] |
aws-cloudformation/cfn-lint
| 179 |
aws-cloudformation__cfn-lint-179
|
[
"165"
] |
ef015a5e055a17b76ea21b92db59e0e83bac1994
|
diff --git a/src/cfnlint/rules/mappings/Configuration.py b/src/cfnlint/rules/mappings/Configuration.py
--- a/src/cfnlint/rules/mappings/Configuration.py
+++ b/src/cfnlint/rules/mappings/Configuration.py
@@ -14,6 +14,7 @@
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
"""
+import six
from cfnlint import CloudFormationLintRule
from cfnlint import RuleMatch
@@ -50,7 +51,9 @@ def match(self, cfn):
))
else:
for secondkey in firstkeyobj:
- if isinstance(firstkeyobj[secondkey], (dict, list)):
+ if not isinstance(
+ firstkeyobj[secondkey],
+ (six.string_types, list, six.integer_types)):
message = 'Mapping {0} has invalid property at {1}'
matches.append(RuleMatch(
['Mappings', mapname, firstkey, secondkey],
|
diff --git a/test/rules/mappings/test_configuration.py b/test/rules/mappings/test_configuration.py
--- a/test/rules/mappings/test_configuration.py
+++ b/test/rules/mappings/test_configuration.py
@@ -29,6 +29,10 @@ def test_file_positive(self):
"""Test Positive"""
self.helper_file_positive()
+ def test_file_positive_configuration(self):
+ """Test Positive"""
+ self.helper_file_positive_template('templates/good/mappings/configuration.yaml')
+
def test_file_negative(self):
"""Test failure"""
- self.helper_file_negative('templates/bad/mappings/configuration.yaml', 4)
+ self.helper_file_negative('templates/bad/mappings/configuration.yaml', 3)
diff --git a/test/templates/good/mappings/configuration.yaml b/test/templates/good/mappings/configuration.yaml
new file mode 100644
--- /dev/null
+++ b/test/templates/good/mappings/configuration.yaml
@@ -0,0 +1,16 @@
+---
+AWSTemplateFormatVersion: "2010-09-09"
+Description: >
+ Test Mapping Configuration
+Mappings:
+ RegionAccountToAZ:
+ ap-northeast-1:
+ 0123456789:
+ - ap-northeast-1a
+ - ap-northeast-1c
+ - none
+ 9876543210:
+ - ap-northeast-1a
+ - ap-northeast-1b
+ - ap-northeast-1c
+Resources: {}
|
Nested mappings raise an error
```cfn-lint 0.3.1```
We use nested maps in our templates:
```yaml
Mappings:
RegionAccountToAZ:
ap-northeast-1:
0123456789:
- ap-northeast-1a
- ap-northeast-1c
- none
9876543210:
- ap-northeast-1a
- ap-northeast-1b
- ap-northeast-1c
```
We'd access this data using a construction like `!FindInMap [RegionAccountToAZ, !Ref 'AWS::Region', !Ref 'AWS::AccountId']`. However cfn-lint says:
```
E7001 Mapping RegionAccountToAZ has invalid property at 9876543210
test.cfn.yaml:3:5
E7001 Mapping RegionAccountToAZ has invalid property at 0123456789
test.cfn.yaml:4:7
```
|
2018-06-28T13:57:21Z
|
[] |
[] |
|
aws-cloudformation/cfn-lint
| 197 |
aws-cloudformation__cfn-lint-197
|
[
"185"
] |
fe2e3f73c942b343e7f0581c85ad654a54c10be4
|
diff --git a/src/cfnlint/rules/parameters/Default.py b/src/cfnlint/rules/parameters/Default.py
new file mode 100644
--- /dev/null
+++ b/src/cfnlint/rules/parameters/Default.py
@@ -0,0 +1,153 @@
+"""
+ Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ software and associated documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to use, copy, modify,
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
+import re
+import six
+from cfnlint import CloudFormationLintRule
+from cfnlint import RuleMatch
+
+
+class Default(CloudFormationLintRule):
+ """Check if Parameters are configured correctly"""
+ id = 'E2015'
+ shortdesc = 'Default value is within parameter constraints'
+ description = 'Making sure the parameters have a default value inside AllowedValues, MinValue, MaxValue, AllowedPattern'
+ source_url = 'https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/parameters-section-structure.html'
+ tags = ['parameters']
+
+ def check_allowed_pattern(self, allowed_value, allowed_pattern, path):
+ """
+ Check allowed value against allowed pattern
+ """
+ message = 'Default should be allowed by AllowedPattern'
+
+ if not re.match(allowed_pattern, allowed_value):
+ return([RuleMatch(path, message)])
+
+ return []
+
+ def check_min_value(self, allowed_value, min_value, path):
+ """
+ Check allowed value against min value
+ """
+ message = 'Default should be equal to or higher than MinValue'
+
+ if isinstance(allowed_value, six.integer_types) and isinstance(min_value, six.integer_types):
+ if allowed_value < min_value:
+ return([RuleMatch(path, message)])
+
+ return []
+
+ def check_max_value(self, allowed_value, max_value, path):
+ """
+ Check allowed value against max value
+ """
+ message = 'Default should be less than or equal to MaxValue'
+
+ if isinstance(allowed_value, six.integer_types) and isinstance(max_value, six.integer_types):
+ if allowed_value > max_value:
+ return([RuleMatch(path, message)])
+
+ return []
+
+ def check_allowed_values(self, allowed_value, allowed_values, path):
+ """
+ Check allowed value against allowed values
+ """
+ message = 'Default should be a value within AllowedValues'
+
+ if allowed_value not in allowed_values:
+ return([RuleMatch(path, message)])
+
+ return []
+
+ def check_min_length(self, allowed_value, min_length, path):
+ """
+ Check allowed value against MinLength
+ """
+ message = 'Default should have a length above or equal to MinLength'
+
+ if isinstance(min_length, six.integer_types):
+ if len(allowed_value) < min_length:
+ return([RuleMatch(path, message)])
+
+ return []
+
+ def check_max_length(self, allowed_value, max_length, path):
+ """
+ Check allowed value against MaxLength
+ """
+ message = 'Default should have a length below or equal to MaxLength'
+
+ if isinstance(max_length, six.integer_types):
+ if len(allowed_value) > max_length:
+ return([RuleMatch(path, message)])
+
+ return []
+
+ def match(self, cfn):
+ """Check CloudFormation Parameters"""
+
+ matches = list()
+
+ for paramname, paramvalue in cfn.get_parameters().items():
+ default_value = paramvalue.get('Default')
+ if default_value is not None:
+ path = ['Parameters', paramname, 'Default']
+ allowed_pattern = paramvalue.get('AllowedPattern')
+ if allowed_pattern:
+ matches.extend(
+ self.check_allowed_pattern(
+ default_value, allowed_pattern, path
+ )
+ )
+ min_value = paramvalue.get('MinValue')
+ if min_value:
+ matches.extend(
+ self.check_min_value(
+ default_value, min_value, path
+ )
+ )
+ max_value = paramvalue.get('MaxValue')
+ if max_value is not None:
+ matches.extend(
+ self.check_max_value(
+ default_value, max_value, path
+ )
+ )
+ allowed_values = paramvalue.get('AllowedValues')
+ if allowed_values:
+ matches.extend(
+ self.check_allowed_values(
+ default_value, allowed_values, path
+ )
+ )
+ min_length = paramvalue.get('MinLength')
+ if min_length is not None:
+ matches.extend(
+ self.check_min_length(
+ default_value, min_length, path
+ )
+ )
+ max_length = paramvalue.get('MaxLength')
+ if max_length is not None:
+ matches.extend(
+ self.check_max_length(
+ default_value, max_length, path
+ )
+ )
+
+ return matches
|
diff --git a/test/rules/parameters/test_default.py b/test/rules/parameters/test_default.py
new file mode 100644
--- /dev/null
+++ b/test/rules/parameters/test_default.py
@@ -0,0 +1,37 @@
+"""
+ Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ software and associated documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to use, copy, modify,
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
+from cfnlint.rules.parameters.Default import Default # pylint: disable=E0401
+from .. import BaseRuleTestCase
+
+
+class TestDefault(BaseRuleTestCase):
+ """Test template parameter configurations"""
+ def setUp(self):
+ """Setup"""
+ super(TestDefault, self).setUp()
+ self.collection.register(Default())
+
+ def test_file_positive(self):
+ """Test Positive"""
+ self.helper_file_positive()
+
+ def test_parameters_success(self):
+ self.helper_file_positive_template('templates/good/parameters/default.yaml')
+
+ def test_file_negative(self):
+ """Test failure"""
+ self.helper_file_negative('templates/bad/parameters/default.yaml', 6)
diff --git a/test/templates/bad/parameters/default.yaml b/test/templates/bad/parameters/default.yaml
new file mode 100644
--- /dev/null
+++ b/test/templates/bad/parameters/default.yaml
@@ -0,0 +1,31 @@
+---
+AWSTemplateFormatVersion: "2010-09-09"
+Parameters:
+ myAllowedPattern:
+ Type: String
+ Default: vpc!@#$
+ AllowedPattern : "^[a-zA-Z0-9]*$"
+ myMinValue:
+ Type: Number
+ Default: 0
+ MinValue: 1
+ myMaxValue:
+ Type: Number
+ Default: 1
+ MaxValue: 0
+ myAllowedValue:
+ Type: String
+ Default: us-east-1a
+ AllowedValues:
+ - us-east-1b
+ - us-east-1c
+ - us-east-1d
+ myMinLength:
+ Type: String
+ Default: abc
+ MinLength: 5
+ myMaxLength:
+ Type: String
+ Default: abc
+ MaxLength: 1
+Resources: {}
diff --git a/test/templates/good/parameters/default.yaml b/test/templates/good/parameters/default.yaml
new file mode 100644
--- /dev/null
+++ b/test/templates/good/parameters/default.yaml
@@ -0,0 +1,31 @@
+---
+AWSTemplateFormatVersion: "2010-09-09"
+Parameters:
+ myAllowedPattern:
+ Type: String
+ Default: vpc
+ AllowedPattern : "^[a-zA-Z0-9]*$"
+ myMinValue:
+ Type: Number
+ Default: 1
+ MinValue: 1
+ myMaxValue:
+ Type: Number
+ Default: 1
+ MaxValue: 1
+ myAllowedValue:
+ Type: String
+ Default: us-east-1a
+ AllowedValues:
+ - us-east-1a
+ - us-east-1b
+ - us-east-1c
+ myMinLength:
+ Type: String
+ Default: abc
+ MinLength: 3
+ myMaxLength:
+ Type: String
+ Default: abc
+ MaxLength: 3
+Resources: {}
|
Default parameter Value do not match AllowedPattern / AllowedValues
*cfn-lint version: (`cfn-lint --version`)*
0.2.1
*Description of issue.*
If the default parameter value do not match the allowedpattern or the allowedvalues that should be captured by cfn-lint
|
Thanks thats a great test to add.
|
2018-07-10T02:34:45Z
|
[] |
[] |
aws-cloudformation/cfn-lint
| 201 |
aws-cloudformation__cfn-lint-201
|
[
"199"
] |
89a8a2827877c1f8283e50824ce556ff9b861ad2
|
diff --git a/src/cfnlint/rules/functions/Cidr.py b/src/cfnlint/rules/functions/Cidr.py
--- a/src/cfnlint/rules/functions/Cidr.py
+++ b/src/cfnlint/rules/functions/Cidr.py
@@ -90,7 +90,8 @@ def match(self, cfn):
supported_functions = [
'Fn::Select',
- 'Ref'
+ 'Ref',
+ 'Fn::ImportValue'
]
count_parameters = []
@@ -148,7 +149,7 @@ def match(self, cfn):
tree[:] + [2], message.format('/'.join(map(str, tree[:] + [2])))))
if index_key == 'Ref':
size_mask_parameters.append(index_value)
- elif not isinstance(count_obj, six.integer_types):
+ elif not isinstance(size_mask_obj, six.integer_types):
message = 'Cidr sizeMask should be a int for {0}'
matches.append(RuleMatch(
tree[:] + [2], message.format('/'.join(map(str, tree[:] + [2])))))
diff --git a/src/cfnlint/rules/functions/Select.py b/src/cfnlint/rules/functions/Select.py
--- a/src/cfnlint/rules/functions/Select.py
+++ b/src/cfnlint/rules/functions/Select.py
@@ -53,30 +53,30 @@ def match(self, cfn):
list_of_objs = select_value_obj[1]
if isinstance(index_obj, dict):
if len(index_obj) == 1:
- for index_key, _ in index_obj:
+ for index_key, _ in index_obj.items():
if index_key not in ['Ref', 'Fn::FindInMap']:
- message = 'Select index should be int, Ref, FindInMap for {0}'
+ message = 'Select index should be an Integer or a function Ref or FindInMap for {0}'
matches.append(RuleMatch(
tree, message.format('/'.join(map(str, tree)))))
elif not isinstance(index_obj, six.integer_types):
try:
int(index_obj)
except ValueError:
- message = 'Select index should be int, Ref, FindInMap for {0}'
+ message = 'Select index should be an Integer or a function of Ref or FindInMap for {0}'
matches.append(RuleMatch(
tree, message.format('/'.join(map(str, tree)))))
if isinstance(list_of_objs, dict):
if len(list_of_objs) == 1:
for key, _ in list_of_objs.items():
if key not in supported_functions:
- message = 'Key {0} should be a list for {1}'
+ message = 'Select should use a supported function of {0}'
matches.append(RuleMatch(
- tree, message.format(key, '/'.join(map(str, tree)))))
+ tree, message.format(', '.join(map(str, supported_functions)))))
else:
- message = 'Select should be a list of 2 elements for {0}'
+ message = 'Select should use a supported function of {0}'
matches.append(RuleMatch(
- tree, message.format('/'.join(map(str, tree)))))
- else:
+ tree, message.format(', '.join(map(str, supported_functions)))))
+ elif not isinstance(list_of_objs, list):
message = 'Select should be an array of values for {0}'
matches.append(RuleMatch(
tree, message.format('/'.join(map(str, tree)))))
|
diff --git a/test/fixtures/templates/good/functions/cidr.yaml b/test/fixtures/templates/good/functions/cidr.yaml
new file mode 100644
--- /dev/null
+++ b/test/fixtures/templates/good/functions/cidr.yaml
@@ -0,0 +1,19 @@
+---
+AWSTemplateFormatVersion: '2010-09-09'
+Parameters:
+ SubnetIndex:
+ Description: 'Index of the subnet'
+ Type: Number
+ MinValue: 0
+ MaxValue: 5
+ SubnetCount:
+ Description: 'To slice the IP address ranges you need to specify how many subnets you want to create in the VPC'
+ Type: Number
+ MinValue: 1
+ MaxValue: 6
+Resources:
+ Subnet:
+ Type: 'AWS::EC2::Subnet'
+ Properties:
+ CidrBlock: !Select [!Ref SubnetIndex, !Cidr [{'Fn::ImportValue': 'vpc-CidrBlock'}, !Ref SubnetCount, 12]]
+ VpcId: 'vpc-123456'
diff --git a/test/rules/functions/test_cidr.py b/test/rules/functions/test_cidr.py
--- a/test/rules/functions/test_cidr.py
+++ b/test/rules/functions/test_cidr.py
@@ -32,6 +32,10 @@ def test_file_positive(self):
"""Test Positive"""
self.helper_file_positive()
+ def test_file_positive_extra(self):
+ """Test failure"""
+ self.helper_file_positive_template('fixtures/templates/good/functions/cidr.yaml')
+
def test_file_negative(self):
"""Test failure"""
self.helper_file_negative('fixtures/templates/bad/functions_cidr.yaml', 10)
|
E1024 should allow Fn::ImportValue
cfn-lint version: 0.3.3
The following template:
```
---
AWSTemplateFormatVersion: '2010-09-09'
Parameters:
SubnetIndex:
Description: 'Index of the subnet'
Type: Number
MinValue: 0
MaxValue: 5
SubnetCount:
Description: 'To slice the IP address ranges you need to specify how many subnets you want to create in the VPC'
Type: Number
MinValue: 1
MaxValue: 6
Resources:
Subnet:
Type: 'AWS::EC2::Subnet'
Properties:
CidrBlock: !Select [!Ref SubnetIndex, !Cidr [{'Fn::ImportValue': 'vpc-CidrBlock'}, !Ref SubnetCount, 12]]
VpcId: 'vpc-123456'
```
Produces the following exceptions and findings:
```
# not sure about this
E0002 Unknown exception while processing rule E1017: too many values to unpack
bug.yml:1:1
# looks like Cidr also supports Fn::ImportValue (at least the template works, documentation says it does not work https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-cidr.html)
E1024 Cidr ipBlock should be Cidr Range, Ref, or Select for Resources/Subnet/Properties/CidrBlock/Fn::Select/1/Fn::Cidr/0
bug.yml:18:7
# not quiet sure about that, 12 should be a int?
E1024 Cidr sizeMask should be a int for Resources/Subnet/Properties/CidrBlock/Fn::Select/1/Fn::Cidr/2
bug.yml:18:7
```
|
Sorry for the annoying errors. I’ll take a look and should have some fixes shortly.
no worries. cfn-lint fan without any python skills :)
|
2018-07-10T11:55:59Z
|
[] |
[] |
aws-cloudformation/cfn-lint
| 222 |
aws-cloudformation__cfn-lint-222
|
[
"221"
] |
67afc6b4bcb5dab25257e9b14e0422b0f65de3fe
|
diff --git a/src/cfnlint/rules/resources/properties/Properties.py b/src/cfnlint/rules/resources/properties/Properties.py
--- a/src/cfnlint/rules/resources/properties/Properties.py
+++ b/src/cfnlint/rules/resources/properties/Properties.py
@@ -197,8 +197,9 @@ def propertycheck(self, text, proptype, parenttype, resourcename, path, root):
if 'Ref' in text[prop]:
ref = text[prop]['Ref']
if ref in parameternames:
- if 'Type' in self.cfn.template['Parameters'][ref]:
- if not self.cfn.template['Parameters'][ref]['Type'].startswith('List<'):
+ param_type = self.cfn.template['Parameters'][ref]['Type']
+ if param_type:
+ if not param_type.startswith('List<') and not param_type == 'CommaDelimitedList':
message = 'Property {0} should be of type List or Parameter should ' \
'be a list for resource {1}'
matches.append(
|
diff --git a/test/fixtures/templates/good/resource_properties.yaml b/test/fixtures/templates/good/resource_properties.yaml
--- a/test/fixtures/templates/good/resource_properties.yaml
+++ b/test/fixtures/templates/good/resource_properties.yaml
@@ -297,6 +297,9 @@ Parameters:
Type: String
ParamInstanceSecurityGroup:
Type: List<AWS::EC2::SecurityGroup::Id>
+ Aliases:
+ Type: "CommaDelimitedList"
+ Default: "foo.com, bar.com"
Conditions:
HasSingleClusterInstance: !Equals [!Ref 'AWS::Region', 'us-east-1']
Resources:
@@ -590,3 +593,9 @@ Resources:
KeyType: HASH
- AttributeName: !Ref SortKeyName
KeyType: RANGE
+ Distribution:
+ Type: "AWS::CloudFront::Distribution"
+ Properties:
+ DistributionConfig:
+ Aliases: !Ref Aliases
+ Enabled: True
|
"Property ... should be of type List or Parameter", when using a CommaDelimitedList
*cfn-lint version: (`cfn-lint --version`)*
`cfn-lint 0.3.5`
*Description of issue.*
Our CloudFormation template contains a `CommaDelimitedList` parameter:
"Aliases" : {
"Type": "CommaDelimitedList",
"Default": "foo.com, bar.com"
},
We reference this parameter under `Aliases` in our CloudFront distribution. The `Aliases` key [accepts a list of string values](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-aliases) - which our `CommaDelimitedList` [provides](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/parameters-section-structure.html) - and the CloudFormation console correctly processes the template:
"Distribution" : {
"Type" : "AWS::CloudFront::Distribution",
"Properties" : {
"DistributionConfig" : {
"Aliases" : { "Ref" : "Aliases" },
...
}
}
}
However `cfn-lint` flags this as an error:
`E3002 Property Aliases should be of type List or Parameter should be a list for resource Distribution`
If we wrap the reference in a list, we can get a pass from `cfn-lint`:
"Distribution" : {
"Type" : "AWS::CloudFront::Distribution",
"Properties" : {
"DistributionConfig" : {
"Aliases" : [
{ "Ref" : "Aliases" }
]
...
}
}
}
However that property is now evaluating to a list of lists:
[ [ "foo.com", "bar.com" ] ]
This is an incorrect parameter and causes the CloudFormation console to fail with `Value of property Aliases must be of type List of String.`
It seems like `cfn-lint` may be interpreting the `CommaDelimitedList` type incorrectly? Possibly as a string, rather than a list of strings? Let me know if I can provide any more detail.
|
Thanks for reporting this. I'll try take a look tonight and get back to you.
|
2018-07-17T23:46:31Z
|
[] |
[] |
aws-cloudformation/cfn-lint
| 241 |
aws-cloudformation__cfn-lint-241
|
[
"236"
] |
3a52089f31a82a2b1b79d045a5066dc0f59e8b8b
|
diff --git a/src/cfnlint/__init__.py b/src/cfnlint/__init__.py
--- a/src/cfnlint/__init__.py
+++ b/src/cfnlint/__init__.py
@@ -690,6 +690,17 @@ def _loc(self, obj):
LOGGER.debug('Get location of object...')
return (obj.start_mark.line, obj.start_mark.column, obj.end_mark.line, obj.end_mark.column)
+ def get_sub_parameters(self, sub_string):
+ """ Gets the parameters out of a Sub String"""
+ regex = re.compile(r'\${[^!].*?}')
+ string_params = regex.findall(sub_string)
+
+ results = []
+ for string_param in string_params:
+ results.append(string_param[2:-1].strip())
+
+ return results
+
def get_location_yaml(self, text, path):
"""
Get the location information
diff --git a/src/cfnlint/rules/functions/Sub.py b/src/cfnlint/rules/functions/Sub.py
--- a/src/cfnlint/rules/functions/Sub.py
+++ b/src/cfnlint/rules/functions/Sub.py
@@ -14,7 +14,6 @@
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
"""
-import re
import six
from cfnlint import CloudFormationLintRule
from cfnlint import RuleMatch
@@ -32,8 +31,7 @@ def _test_string(self, cfn, sub_string, parameters, tree):
"""Test if a string has appropriate parameters"""
matches = list()
- regex = re.compile(r'\${[^!].*?}')
- string_params = regex.findall(sub_string)
+ string_params = cfn.get_sub_parameters(sub_string)
get_atts = cfn.get_valid_getatts()
valid_pseudo_params = [
@@ -54,7 +52,6 @@ def _test_string(self, cfn, sub_string, parameters, tree):
valid_params.append(key)
for string_param in string_params:
- string_param = string_param[2:-1]
if isinstance(string_param, (six.string_types, six.text_type)):
if string_param not in valid_params:
found = False
@@ -66,7 +63,7 @@ def _test_string(self, cfn, sub_string, parameters, tree):
attribute_name == '.'.join(string_param.split('.')[1:])):
found = True
if not found:
- message = 'String parameter {0} not found in string for {1}'
+ message = 'Parameter {0} for Fn::Sub not found at {1}'
matches.append(RuleMatch(
tree, message.format(string_param, '/'.join(map(str, tree)))))
diff --git a/src/cfnlint/rules/parameters/Used.py b/src/cfnlint/rules/parameters/Used.py
--- a/src/cfnlint/rules/parameters/Used.py
+++ b/src/cfnlint/rules/parameters/Used.py
@@ -56,12 +56,13 @@ def match(self, cfn):
subs = list()
for subtree in subtrees:
if isinstance(subtree[-1], list):
- subs.append(subtree[-1][0])
+ subs.extend(cfn.get_sub_parameters(subtree[-1][0]))
else:
- subs.append(subtree[-1])
+ subs.extend(cfn.get_sub_parameters(subtree[-1]))
+
for paramname, _ in cfn.get_parameters().items():
if paramname not in refs:
- if not self.isparaminref(subs, paramname):
+ if paramname not in subs:
message = 'Parameter {0} not used.'
matches.append(RuleMatch(
['Parameters', paramname],
|
diff --git a/test/fixtures/templates/good/generic.yaml b/test/fixtures/templates/good/generic.yaml
--- a/test/fixtures/templates/good/generic.yaml
+++ b/test/fixtures/templates/good/generic.yaml
@@ -91,7 +91,7 @@ Resources:
NetworkInterfaces:
- DeviceIndex: "1"
UserData: !Sub |
- yum install ${Package}
+ yum install ${ Package}
mySnsTopic:
Type: AWS::SNS::Topic
MyEC2Instance1:
@@ -151,7 +151,7 @@ Resources:
IamPipeline:
Type: "AWS::CloudFormation::Stack"
Properties:
- TemplateURL: !Sub 'https://s3.${AWS::Region}.amazonaws.com/ss-vsts-codepipeline-${AWS::Region}/vsts/${AWS::AccountId}/templates/vsts-pipeline/pipeline.yaml'
+ TemplateURL: !Sub 'https://s3.${ AWS::Region}.amazonaws.com/ss-vsts-codepipeline-${AWS::Region}/vsts/${AWS::AccountId}/templates/vsts-pipeline/pipeline.yaml'
Parameters:
DeploymentName: iam-pipeline
Deploy: 'auto'
|
Leading Whitespace in GetAtt syntax of !Sub not ignored
*cfn-lint version: cfn-lint 0.4.1*
*Description of issue.*
When using the `${}` syntax in a sub it doesn't ignore whitespace and throws an error, e.g.
```
"Resource": {
"Fn::Sub": "${ AppendNotificationWatchLambdaLogGroup.Arn}*"
}
```
Will throw the following error:
```
E1019 String parameter AppendNotificationWatchLambdaLogGroup.Arn not found in string for Resources/AppendNotificationWatchLambdaRolePolicy/Properties/PolicyDocument/Statement/0/Resource/Fn::Sub
```
When the whitespace is removed this works perfectly fine in cfn-lint (and always works in CloudFormation).
|
Good point. I will work on a fix for this. Thank you for the issue should have a fix shortly.
Great! Let me know if there is anything I can help with. At a quick glance I wasn't sure where to implement this in the code, so didn't send a PR. If you let me know which part this is implemented in I'm happy to send a PR
|
2018-07-24T15:05:21Z
|
[] |
[] |
aws-cloudformation/cfn-lint
| 252 |
aws-cloudformation__cfn-lint-252
|
[
"249"
] |
caa331629baa8ebff13caa0a2f4dc20d695ac31b
|
diff --git a/src/cfnlint/rules/resources/iam/Policy.py b/src/cfnlint/rules/resources/iam/Policy.py
--- a/src/cfnlint/rules/resources/iam/Policy.py
+++ b/src/cfnlint/rules/resources/iam/Policy.py
@@ -27,7 +27,7 @@ class Policy(CloudFormationLintRule):
source_url = 'https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-policy.html'
tags = ['properties', 'iam']
- def _check_policy_document(self, branch, policy):
+ def _check_policy_document(self, cfn, branch, policy):
"""Check policy document"""
matches = list()
@@ -50,11 +50,11 @@ def _check_policy_document(self, branch, policy):
RuleMatch(branch[:] + [parent_key], message))
if parent_key == 'Statement':
if isinstance(parent_value, (list)):
- for index, statement in enumerate(parent_value):
+ values = cfn.get_values(policy, 'Statement', branch[:])
+ for value in values:
matches.extend(
self._check_policy_statement(
- branch[:] + [parent_key, index],
- statement
+ value['Path'], value['Value']
)
)
else:
@@ -112,13 +112,13 @@ def _check_policy_statement(self, branch, statement):
return(matches)
- def _check_policy(self, branch, policy):
+ def _check_policy(self, cfn, branch, policy):
"""Checks a policy"""
matches = list()
policy_document = policy.get('PolicyDocument', {})
matches.extend(
self._check_policy_document(
- branch + ['PolicyDocument'], policy_document))
+ cfn, branch + ['PolicyDocument'], policy_document))
return matches
@@ -140,16 +140,17 @@ def match(self, cfn):
tree = ['Resources', resource_name, 'Properties']
properties = resource_values.get('Properties', {})
if properties:
- policy_document = properties.get('PolicyDocument', None)
- if policy_document:
- matches.extend(
- self._check_policy_document(
- tree[:] + ['PolicyDocument'], policy_document))
- policy_documents = properties.get('Policies', [])
- for index, policy_document in enumerate(policy_documents):
- matches.extend(
- self._check_policy(
- tree[:] + ['Policies', index],
- policy_document))
+ if properties.get('PolicyDocument'):
+ values = cfn.get_values(properties, 'PolicyDocument', tree)
+ for value in values:
+ matches.extend(
+ self._check_policy_document(
+ cfn, value['Path'], value['Value']))
+ if properties.get('Policies'):
+ values = cfn.get_values(properties, 'Policies', tree)
+ for value in values:
+ matches.extend(
+ self._check_policy(
+ cfn, value['Path'], value['Value']))
return matches
|
diff --git a/test/fixtures/templates/good/resources/iam/policy.yaml b/test/fixtures/templates/good/resources/iam/policy.yaml
new file mode 100644
--- /dev/null
+++ b/test/fixtures/templates/good/resources/iam/policy.yaml
@@ -0,0 +1,30 @@
+---
+AWSTemplateFormatVersion: "2010-09-09"
+Parameters:
+ SomeOptionalParameter:
+ Type: String
+ Description: Name of some optional bucket
+ Default: ""
+Conditions:
+ SomeCondition: !Not [!Equals [!Ref SomeOptionalParameter, ""]]
+Resources:
+ SomeManagedPolicy:
+ Type: "AWS::IAM::ManagedPolicy"
+ Properties:
+ Description: "Example Managed Policy"
+ PolicyDocument:
+ Version: "2012-10-17"
+ Statement:
+ - Effect: "Allow"
+ Action:
+ - "s3:ListBucket"
+ - "s3:GetObject"
+ Resource: '*'
+ - Fn::If:
+ - SomeCondition
+ - Effect: "Allow"
+ Action:
+ - "s3:PutObject"
+ Resource:
+ - SomeOptionalParameter
+ - Ref: AWS::NoValue
diff --git a/test/rules/resources/iam/test_iam_policy.py b/test/rules/resources/iam/test_iam_policy.py
--- a/test/rules/resources/iam/test_iam_policy.py
+++ b/test/rules/resources/iam/test_iam_policy.py
@@ -24,6 +24,9 @@ def setUp(self):
"""Setup"""
super(TestPropertyIamPolicies, self).setUp()
self.collection.register(Policy())
+ self.success_templates = [
+ 'fixtures/templates/good/resources/iam/policy.yaml'
+ ]
def test_file_positive(self):
"""Test Positive"""
|
E2507 - Fn::If not allowed in Policy Statement list
*cfn-lint version: 0.4.2*
In our environments, we have a standardized deployment which has grown organically over time. This has meant that we have used `Fn::If` and `Condition` all over the place.
On example is conditionally adding a policy statement to a Managed Policy object.
This is valid cloudformation today and has been deployed across a number of accounts, but the cfn-lint throws an error saying it's not valid.
**Template**
```
Parameters:
SomeOptionalParameter:
Type: String
Description: Name of some optional bucket
Default: ""
...
Conditions:
SomeCondition: !Not [!Equals [!Ref SomeOptionalParameter, ""]]
...
Resources:
SomeManagedPolicy:
Type: "AWS::IAM::ManagedPolicy"
Properties:
Description: "Example Managed Policy"
PolicyDocument:
Version: "2012-10-17"
Statement:
- Effect: "Allow"
Action:
- "s3:ListBucket"
- "s3:GetObject"
Resource: '*'
- Fn::If:
- SomeCondition
- Effect: "Allow"
Action:
- "s3:PutObject"
Resource:
- SomeOptionalParameter
- Ref: AWS::NoValue
```
**Output**
```
E2507 IAM Policy statement missing Effect
/home/user/repos/example.yaml:468:9
E2507 IAM Policy statement missing Action or NotAction
/home/user/repos/example.yaml:468:9
E2507 IAM Policy statement missing Resource or NotResource
/home/user/repos/example.yaml:468:9
E2507 IAM Policy statement key Fn::If isn't valid
/home/user/repos/example.yaml:559:13
```
Another interesting part is, the line numbers in the first 3 is of the `Statement` line, while the last one is the actual offending entry.
We'd really love to fail our deployments on cfn-lint, but this one is blocking us wrongly. :)
|
let me take a look. Thanks for reporting the issue.
|
2018-07-31T21:12:17Z
|
[] |
[] |
aws-cloudformation/cfn-lint
| 273 |
aws-cloudformation__cfn-lint-273
|
[
"272"
] |
f257197471d79cbeb1bbb40b911689bf0bad6941
|
diff --git a/src/cfnlint/rules/resources/elb/Elb.py b/src/cfnlint/rules/resources/elb/Elb.py
--- a/src/cfnlint/rules/resources/elb/Elb.py
+++ b/src/cfnlint/rules/resources/elb/Elb.py
@@ -30,13 +30,21 @@ class Elb(CloudFormationLintRule):
def match(self, cfn):
"""Check ELB Resource Parameters"""
+ def is_intrinsic(input_obj):
+ """Checks if a given input looks like an intrinsic function"""
+
+ if isinstance(input_obj, dict) and len(input_obj) == 1:
+ if list(input_obj.keys())[0] == 'Ref' or list(input_obj.keys())[0].startswith('Fn::'):
+ return True
+ return False
+
matches = list()
results = cfn.get_resource_properties(['AWS::ElasticLoadBalancingV2::Listener'])
for result in results:
protocol = result['Value'].get('Protocol')
if protocol:
- if protocol not in ['HTTP', 'HTTPS', 'TCP']:
+ if protocol not in ['HTTP', 'HTTPS', 'TCP'] and not is_intrinsic(protocol):
message = 'Protocol is invalid for {0}'
path = result['Path'] + ['Protocol']
matches.append(RuleMatch(path, message.format(('/'.join(result['Path'])))))
@@ -53,7 +61,7 @@ def match(self, cfn):
for index, listener in enumerate(result['Value']):
protocol = listener.get('Protocol')
if protocol:
- if protocol not in ['HTTP', 'HTTPS', 'TCP', 'SSL']:
+ if protocol not in ['HTTP', 'HTTPS', 'TCP', 'SSL'] and not is_intrinsic(protocol):
message = 'Protocol is invalid for {0}'
path = result['Path'] + [index, 'Protocol']
matches.append(RuleMatch(path, message.format(('/'.join(result['Path'])))))
|
diff --git a/test/fixtures/templates/bad/properties_elb.yaml b/test/fixtures/templates/bad/properties_elb.yaml
--- a/test/fixtures/templates/bad/properties_elb.yaml
+++ b/test/fixtures/templates/bad/properties_elb.yaml
@@ -17,6 +17,11 @@ Parameters:
AllowedValues:
- internal
- internet-facing
+ TestParam:
+ Type: String
+ Default: TCP
+Conditions:
+ TestCond: !Equals ['a', 'a']
Resources:
LoadBalancer:
Type: "AWS::ElasticLoadBalancingV2::LoadBalancer"
@@ -108,6 +113,22 @@ Resources:
AvailabilityZones:
Fn::GetAZs: ''
Listeners:
+ - InstancePort: '4'
+ InstanceProtocol: !If [TestCond, TCP, SSL]
+ LoadBalancerPort: '4'
+ Protocol: [test]
+ - InstancePort: '5'
+ InstanceProtocol: !If [TestCond, TCP, SSL]
+ LoadBalancerPort: '5'
+ Protocol: ererere
+ - InstancePort: '4'
+ InstanceProtocol: !If [TestCond, TCP, SSL]
+ LoadBalancerPort: '4'
+ Protocol: {"arbKey": ""}
+ - InstancePort: '4'
+ InstanceProtocol: !If [TestCond, TCP, SSL]
+ LoadBalancerPort: '4'
+ Protocol: {"arbKey": "", "moreArb": ""}
- LoadBalancerPort: '80'
InstancePort: '80'
Protocol: TCP
diff --git a/test/fixtures/templates/good/properties_elb.yaml b/test/fixtures/templates/good/properties_elb.yaml
--- a/test/fixtures/templates/good/properties_elb.yaml
+++ b/test/fixtures/templates/good/properties_elb.yaml
@@ -21,6 +21,11 @@ Parameters:
Type: List<AWS::EC2::SecurityGroup::Id>
CertARN:
Type: String
+ TestParam:
+ Type: String
+ Default: TCP
+Conditions:
+ TestCond: !Equals ['a', 'a']
Resources:
LoadBalancer:
Type: "AWS::ElasticLoadBalancingV2::LoadBalancer"
@@ -114,6 +119,14 @@ Resources:
AvailabilityZones:
Fn::GetAZs: ''
Listeners:
+ - InstancePort: '1'
+ InstanceProtocol: !Ref TestParam
+ LoadBalancerPort: '1'
+ Protocol: !Ref TestParam
+ - InstancePort: '2'
+ InstanceProtocol: !If [TestCond, TCP, SSL]
+ LoadBalancerPort: '2'
+ Protocol: !If [TestCond, TCP, SSL]
- LoadBalancerPort: '80'
InstancePort: '80'
Protocol: TCP
diff --git a/test/rules/resources/elb/test_elb.py b/test/rules/resources/elb/test_elb.py
--- a/test/rules/resources/elb/test_elb.py
+++ b/test/rules/resources/elb/test_elb.py
@@ -34,4 +34,4 @@ def test_file_positive(self):
def test_file_negative(self):
"""Test failure"""
- self.helper_file_negative('fixtures/templates/bad/properties_elb.yaml', 2)
+ self.helper_file_negative('fixtures/templates/bad/properties_elb.yaml', 6)
|
[E2503] fails incorrectly when intrinsic function used in Protocol value
*cfn-lint version: 0.4.2*
*Description of issue.*
This is valid, and conforms to the spec, but rule throws an error:
```yaml
Parameters:
TestParam:
Type: String
Default: TCP
Conditions:
TestCond: !Equals ['a', 'a']
Resources:
OpenShiftMasterELB:
Type: AWS::ElasticLoadBalancing::LoadBalancer
Properties:
Subnets:
- subnet-1234abcd
SecurityGroups:
- sg-1234abcd
Listeners:
# Fails on Protocol
- InstancePort: '1'
InstanceProtocol: !Ref TestParam
LoadBalancerPort: '1'
Protocol: !Ref TestParam
# Also fails on Protocol
- InstancePort: '2'
InstanceProtocol: !If [TestCond, TCP, SSL]
LoadBalancerPort: '2'
Protocol: !If [TestCond, TCP, SSL]
# Works
- InstancePort: '3'
InstanceProtocol: !If [TestCond, TCP, SSL]
LoadBalancerPort: '3'
Protocol: TCP
```
|
2018-08-08T22:12:20Z
|
[] |
[] |
|
aws-cloudformation/cfn-lint
| 274 |
aws-cloudformation__cfn-lint-274
|
[
"266"
] |
aafda61579cae7c75b9f6a4289d60ecd9cc18e49
|
diff --git a/src/cfnlint/rules/resources/Configuration.py b/src/cfnlint/rules/resources/Configuration.py
--- a/src/cfnlint/rules/resources/Configuration.py
+++ b/src/cfnlint/rules/resources/Configuration.py
@@ -111,10 +111,13 @@ def match(self, cfn):
if property_spec.get('Required', False):
required += 1
if required > 0:
- message = 'Properties not defined for resource {0}'
- matches.append(RuleMatch(
- ['Resources', resource_name],
- message.format(resource_name)
- ))
+ if resource_type == 'AWS::CloudFormation::WaitCondition' and 'CreationPolicy' in resource_values.keys():
+ self.logger.debug('Exception to required properties section as CreationPolicy is defined.')
+ else:
+ message = 'Properties not defined for resource {0}'
+ matches.append(RuleMatch(
+ ['Resources', resource_name],
+ message.format(resource_name)
+ ))
return matches
|
diff --git a/test/fixtures/templates/good/generic.yaml b/test/fixtures/templates/good/generic.yaml
--- a/test/fixtures/templates/good/generic.yaml
+++ b/test/fixtures/templates/good/generic.yaml
@@ -160,6 +160,12 @@ Resources:
Version: "1.0"
Properties:
ServiceToken: anArn
+ WaitCondition:
+ Type: AWS::CloudFormation::WaitCondition
+ CreationPolicy:
+ ResourceSignal:
+ Timeout: PT15M
+ Count: 1
Outputs:
ElasticIP:
Value: !Sub "${ElasticIP}/32"
diff --git a/test/module/test_template.py b/test/module/test_template.py
--- a/test/module/test_template.py
+++ b/test/module/test_template.py
@@ -44,7 +44,7 @@ def setUp(self):
def test_get_resources_success(self):
"""Test Success on Get Resources"""
- valid_resource_count = 10
+ valid_resource_count = 11
resources = self.template.get_resources()
assert len(resources) == valid_resource_count, 'Expected {} resources, got {}'.format(valid_resource_count, len(resources))
@@ -80,7 +80,7 @@ def test_get_parameter_names(self):
def test_get_valid_refs(self):
""" Get Valid REFs"""
- valid_ref_count = 25
+ valid_ref_count = 26
refs = self.template.get_valid_refs()
assert len(refs) == valid_ref_count, 'Expected {} refs, got {}'.format(valid_ref_count, len(refs))
|
E3001 Missing properties raised as an error when they're not required
*cfn-lint version: 0.4.2*
*Description of issue.*
An error about missing properties is not always useful. There are resources which don't necessarily need properties.
Please provide as much information as possible:
* Template linting issues:
```
"WaitCondition": {
"Type": "AWS::CloudFormation::WaitCondition",
"CreationPolicy": {
"ResourceSignal": {
"Timeout": "PT15M",
"Count": {
"Ref": "TargetCapacity"
}
}
}
}
```
Getting `E3001 Properties not defined for resource WaitCondition`
* Feature request:
I'm not sure if there's a list of resources which don't need properties in many situations. S3 buckets and WaitCondition seem like good candidates for not raising this.
[AWS docs](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/parameters-section-structure.html) say:
> Use the optional Parameters section to customize your templates.
so it doesn't sound like it needs to be provided.
|
@cmmeyer this one may be with you too. The reason this is showing up is because according to the spec there are required properties.
```
"AWS::CloudFormation::WaitCondition": {
"Attributes": {
"Data": {
"PrimitiveType": "Json"
}
},
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waitcondition.html",
"Properties": {
"Count": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waitcondition.html#cfn-waitcondition-count",
"PrimitiveType": "Integer",
"Required": false,
"UpdateType": "Mutable"
},
"Handle": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waitcondition.html#cfn-waitcondition-handle",
"PrimitiveType": "String",
"Required": true,
"UpdateType": "Mutable"
},
"Timeout": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waitcondition.html#cfn-waitcondition-timeout",
"PrimitiveType": "String",
"Required": true,
"UpdateType": "Mutable"
}
}
},
```
This matches the documentation that says those properties are required.
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waitcondition.html#w2ab2c21c10d213c17
If the spec didn't have required attributes `Properties` wouldn't be required.
```
➜ cat test.yaml
---
AWSTemplateFormatVersion: "2010-09-09"
Resources:
myBucket:
Type: AWS::S3::Bucket
➜ cfn-lint test1.yaml
➜ echo $?
0
```
Tested this and looks like a special case related to WaitConditions. We are probably going to have to come up with an exception process for `E3001` as the Spec Properties are required if there isn't a `CreationPolicy`.
Looks like there is a Warning rule that should be added for making sure people are using `CreationPolicy` when doing ASGs and Instances instead of doing a `Ref` to a `AWS::CloudFormation::WaitCondition`.
|
2018-08-09T01:07:38Z
|
[] |
[] |
aws-cloudformation/cfn-lint
| 294 |
aws-cloudformation__cfn-lint-294
|
[
"290"
] |
4411ee3553d370a83b2c21cf57e41366ebf98350
|
diff --git a/src/cfnlint/helpers.py b/src/cfnlint/helpers.py
--- a/src/cfnlint/helpers.py
+++ b/src/cfnlint/helpers.py
@@ -40,6 +40,9 @@
REGEX_CIDR = re.compile(r'^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/([0-9]|[1-2][0-9]|3[0-2]))$')
REGEX_IPV4 = re.compile(r'^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$')
REGEX_IPV6 = re.compile(r'^(((?=.*(::))(?!.*\3.+\3))\3?|[\dA-F]{1,4}:)([\dA-F]{1,4}(\3|:\b)|\2){5}(([\dA-F]{1,4}(\3|:\b|$)|\2){2}|(((2[0-4]|1\d|[1-9])?\d|25[0-5])\.?\b){4})\Z', re.I | re.S)
+REGEX_DYN_REF_SSM = re.compile(r'^.*{{resolve:ssm:[a-zA-Z0-9_.-/]+:\d+}}.*$')
+REGEX_DYN_REF_SSM_SECURE = re.compile(r'^.*{{resolve:ssm-secure:[a-zA-Z0-9_.-/]+:\d+}}.*$')
+
AVAILABILITY_ZONES = [
'us-east-1a', 'us-east-1b', 'us-east-1c', 'us-east-1d', 'us-east-1e', 'us-east-1f',
diff --git a/src/cfnlint/rules/resources/properties/Password.py b/src/cfnlint/rules/resources/properties/Password.py
--- a/src/cfnlint/rules/resources/properties/Password.py
+++ b/src/cfnlint/rules/resources/properties/Password.py
@@ -14,9 +14,11 @@
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
"""
+import re
import six
from cfnlint import CloudFormationLintRule
from cfnlint import RuleMatch
+from cfnlint.helpers import REGEX_DYN_REF_SSM, REGEX_DYN_REF_SSM_SECURE
class Password(CloudFormationLintRule):
@@ -41,10 +43,16 @@ def match(self, cfn):
trees = [x for x in trees if x[0] == 'Resources']
for tree in trees:
obj = tree[-1]
- if isinstance(obj, (six.text_type, six.string_types)):
- message = 'Password shouldn\'t be hardcoded for %s' % (
- '/'.join(map(str, tree[:-1])))
- matches.append(RuleMatch(tree[:-1], message))
+ if isinstance(obj, (six.string_types)):
+ if not re.match(REGEX_DYN_REF_SSM_SECURE, obj):
+ if re.match(REGEX_DYN_REF_SSM, obj):
+ message = 'Password should use a secure dynamic reference for %s' % (
+ '/'.join(map(str, tree[:-1])))
+ matches.append(RuleMatch(tree[:-1], message))
+ else:
+ message = 'Password shouldn\'t be hardcoded for %s' % (
+ '/'.join(map(str, tree[:-1])))
+ matches.append(RuleMatch(tree[:-1], message))
elif isinstance(obj, dict):
if len(obj) == 1:
for key, value in obj.items():
|
diff --git a/test/fixtures/templates/bad/properties_password.yaml b/test/fixtures/templates/bad/properties_password.yaml
--- a/test/fixtures/templates/bad/properties_password.yaml
+++ b/test/fixtures/templates/bad/properties_password.yaml
@@ -31,3 +31,12 @@ Resources:
MasterUsername: MyName
MasterUserPassword: !Ref MyNewPassword
DeletionPolicy: Snapshot
+ myThirdDb:
+ Type: AWS::RDS::DBInstance
+ Properties:
+ AllocatedStorage: '5'
+ DBInstanceClass: db.m1.small
+ Engine: MySQL
+ MasterUsername: MyName
+ MasterUserPassword: '{{resolve:ssm:IAMUserPassword:10}}'
+ DeletionPolicy: Snapshot
diff --git a/test/fixtures/templates/good/resources/properties/password.yaml b/test/fixtures/templates/good/resources/properties/password.yaml
new file mode 100644
--- /dev/null
+++ b/test/fixtures/templates/good/resources/properties/password.yaml
@@ -0,0 +1,47 @@
+---
+AWSTemplateFormatVersion: "2010-09-09"
+Description: >
+ Good Template for testing Password Parameters
+Parameters:
+ MyPassword:
+ Type: String
+ Default: String
+ Description: String
+ NoEcho: True
+ Environment:
+ Type: String
+ Default: "Dev"
+Resources:
+ MyDB:
+ Type: AWS::RDS::DBInstance
+ Properties:
+ AllocatedStorage: '5'
+ DBInstanceClass: db.m1.small
+ Engine: MySQL
+ MasterUsername: MyName
+ MasterUserPassword: !Ref MyPassword
+ DeletionPolicy: Snapshot
+ myNewDb:
+ Type: AWS::RDS::DBInstance
+ Properties:
+ AllocatedStorage: '5'
+ DBInstanceClass: db.m1.small
+ Engine: MySQL
+ MasterUsername: MyName
+ MasterUserPassword: '{{resolve:ssm-secure:MySecurePassword:1}}'
+ DeletionPolicy: Snapshot
+ myThirdDb:
+ Type: AWS::RDS::DBInstance
+ Properties:
+ AllocatedStorage: '5'
+ DBInstanceClass: db.m1.small
+ Engine: MySQL
+ MasterUsername: MyName
+ MasterUserPassword: 'Prefix-{{resolve:ssm-secure:MySecurePassword:1}}-Postfix'
+ DeletionPolicy: Snapshot
+ MyIAMUser:
+ Type: AWS::IAM::User
+ Properties:
+ UserName: !Sub ${Environment}-{{resolve:ssm:MyUsername:1}}
+ LoginProfile:
+ Password: !Sub 'list-{{resolve:ssm-secure:MySecurePassword:1}}'
diff --git a/test/rules/resources/properties/test_password.py b/test/rules/resources/properties/test_password.py
--- a/test/rules/resources/properties/test_password.py
+++ b/test/rules/resources/properties/test_password.py
@@ -24,6 +24,9 @@ def setUp(self):
"""Setup"""
super(TestPropertyPassword, self).setUp()
self.collection.register(Password())
+ self.success_templates = [
+ 'fixtures/templates/good/resources/properties/password.yaml'
+ ]
def test_file_positive(self):
"""Test Positive"""
@@ -31,4 +34,4 @@ def test_file_positive(self):
def test_file_negative(self):
"""Test failure"""
- self.helper_file_negative('fixtures/templates/bad/properties_password.yaml', 2)
+ self.helper_file_negative('fixtures/templates/bad/properties_password.yaml', 3)
|
Support dynamic parameters in password fields
*cfn-lint version: 0.5.1*
*Description of issue.*
`W2501` shows the following warning when using the new dynamic parameters
```
W2501 Password shouldn't be hardcoded for Resources/DBInstance/Properties/MasterUserPassword
```
The template is:
```
MasterUserPassword: '{{resolve:ssm-secure:DBMasterPassword:1}}'
```
|
Agreed. I’ll try to get that fixed today.
|
2018-08-17T13:46:30Z
|
[] |
[] |
aws-cloudformation/cfn-lint
| 295 |
aws-cloudformation__cfn-lint-295
|
[
"289"
] |
c4136f2e4dba4d2b79a431ee40c552feb6070354
|
diff --git a/src/cfnlint/rules/resources/properties/Properties.py b/src/cfnlint/rules/resources/properties/Properties.py
--- a/src/cfnlint/rules/resources/properties/Properties.py
+++ b/src/cfnlint/rules/resources/properties/Properties.py
@@ -144,12 +144,15 @@ def propertycheck(self, text, proptype, parenttype, resourcename, path, root):
resourcetype = str.format('{0}.{1}', parenttype, proptype)
resourcespec = specs[resourcetype].get('Properties', {})
+ supports_additional_properties = specs[resourcetype].get('AdditionalProperties', False)
+
if text == 'AWS::NoValue':
return matches
if not isinstance(text, dict):
message = 'Expecting an object at %s' % ('/'.join(map(str, path)))
matches.append(RuleMatch(path, message))
return matches
+
for prop in text:
proppath = path[:]
proppath.append(prop)
@@ -160,7 +163,7 @@ def propertycheck(self, text, proptype, parenttype, resourcename, path, root):
matches.extend(self.propertycheck(
cond_value['Value'], proptype, parenttype, resourcename,
proppath + cond_value['Path'], root))
- elif prop != 'Metadata':
+ elif prop != 'Metadata' and not supports_additional_properties:
message = 'Invalid Property %s' % ('/'.join(map(str, proppath)))
matches.append(RuleMatch(proppath, message))
else:
@@ -241,6 +244,8 @@ def match(self, cfn):
for resourcename, resourcevalue in cfn.get_resources().items():
if 'Properties' in resourcevalue and 'Type' in resourcevalue:
resourcetype = resourcevalue.get('Type', None)
+ if resourcetype.startswith('Custom::'):
+ resourcetype = 'AWS::CloudFormation::CustomResource'
if resourcetype in self.resourcetypes:
path = ['Resources', resourcename, 'Properties']
matches.extend(self.propertycheck(
diff --git a/src/cfnlint/rules/resources/properties/Required.py b/src/cfnlint/rules/resources/properties/Required.py
--- a/src/cfnlint/rules/resources/properties/Required.py
+++ b/src/cfnlint/rules/resources/properties/Required.py
@@ -128,6 +128,8 @@ def match(self, cfn):
for resourcename, resourcevalue in cfn.get_resources().items():
if 'Properties' in resourcevalue and 'Type' in resourcevalue:
resourcetype = resourcevalue['Type']
+ if resourcetype.startswith('Custom::'):
+ resourcetype = 'AWS::CloudFormation::CustomResource'
if resourcetype in self.resourcetypes:
tree = ['Resources', resourcename, 'Properties']
matches.extend(self.propertycheck(
|
diff --git a/test/fixtures/templates/bad/properties_required.yaml b/test/fixtures/templates/bad/properties_required.yaml
--- a/test/fixtures/templates/bad/properties_required.yaml
+++ b/test/fixtures/templates/bad/properties_required.yaml
@@ -723,3 +723,13 @@ Resources:
Type: S3
Location:
Ref: ArtifactStoreS3Location
+ CustomResource1:
+ Type: 'AWS::CloudFormation::CustomResource'
+ Properties:
+ # ServiceToken: arn
+ StackName: StackName
+ CustomResource2:
+ Type: 'Custom::CustomResource'
+ Properties:
+ # ServiceToken: arn
+ StackName: StackName
diff --git a/test/fixtures/templates/good/resource_properties.yaml b/test/fixtures/templates/good/resource_properties.yaml
--- a/test/fixtures/templates/good/resource_properties.yaml
+++ b/test/fixtures/templates/good/resource_properties.yaml
@@ -593,6 +593,16 @@ Resources:
KeyType: HASH
- AttributeName: !Ref SortKeyName
KeyType: RANGE
+ CustomResource1:
+ Type: 'AWS::CloudFormation::CustomResource'
+ Properties:
+ ServiceToken: arn
+ StackName: StackName
+ CustomResource2:
+ Type: 'Custom::CustomResource'
+ Properties:
+ ServiceToken: arn
+ StackName: StackName
Distribution:
Type: "AWS::CloudFront::Distribution"
Properties:
diff --git a/test/rules/resources/properties/test_required.py b/test/rules/resources/properties/test_required.py
--- a/test/rules/resources/properties/test_required.py
+++ b/test/rules/resources/properties/test_required.py
@@ -31,7 +31,7 @@ def test_file_positive(self):
def test_file_negative(self):
"""Test failure"""
- self.helper_file_negative('fixtures/templates/bad/properties_required.yaml', 10)
+ self.helper_file_negative('fixtures/templates/bad/properties_required.yaml', 12)
def test_file_negative_generic(self):
"""Generic Test failure"""
|
E3002 error on Cloudformation Custom Resource
cfn-lint version: 0.5.0
I got a lint error with the following resource:
```
Resources:
CoreLookup:
Properties:
ServiceToken: !GetAtt
- LookupStackOutputs
- Arn
StackName: !Join
- '-'
- - Core
- !Ref EnvName
Type: 'AWS::CloudFormation::CustomResource'
```
Accordingly to the documentation is it possible to add more properties to the custom resources:
[https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cfn-customresource.html]
According to the documentation:
```
"AWS::CloudFormation::CustomResource": {
"AdditionalProperties": true,
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cfn-customresource.html",
"Properties": {
"ServiceToken": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cfn-customresource.html#cfn-customresource-servicetoken",
"PrimitiveType": "String",
"Required": true,
"UpdateType": "Immutable"
}
}
```
So I think that the linter is ignoring the "AdditionalProperties" flag.
|
Seems to be true. I don't see any reference to "AdditionalProperties" in the code. This hasn't come up for me because I use the "Custom::*" type, which removes my custom resources from being linted. If I switch one to "AWS:::CloudFormation::CustomResource" I get the same types of errors.
We'll need some special logic for AWS::CloudFormation::CustomResource, and maybe use the same for Custom:: as well.
From my point of view, the linter should take in count the "AdditionalProperties: true" and allow
Yep we are in agreement. We will be working on a fix for this.
|
2018-08-17T14:10:36Z
|
[] |
[] |
aws-cloudformation/cfn-lint
| 305 |
aws-cloudformation__cfn-lint-305
|
[
"304"
] |
dcefaa444a5bfddd089bc7e502362e6bd6eaefb1
|
diff --git a/src/cfnlint/helpers.py b/src/cfnlint/helpers.py
--- a/src/cfnlint/helpers.py
+++ b/src/cfnlint/helpers.py
@@ -78,7 +78,8 @@
},
'outputs': {
'number': 60,
- 'name': 255 # in characters
+ 'name': 255, # in characters
+ 'description': 1024 # in bytes
},
'parameters': {
'number': 60,
diff --git a/src/cfnlint/rules/outputs/Description.py b/src/cfnlint/rules/outputs/Description.py
new file mode 100644
--- /dev/null
+++ b/src/cfnlint/rules/outputs/Description.py
@@ -0,0 +1,44 @@
+"""
+ Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ software and associated documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to use, copy, modify,
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
+import six
+from cfnlint import CloudFormationLintRule
+from cfnlint import RuleMatch
+
+
+class Description(CloudFormationLintRule):
+ """Check if Outputs Descriptions are only string values"""
+ id = 'E6005'
+ shortdesc = 'Outputs descriptions can only be strings'
+ description = 'Outputs descriptions can only be strings'
+ source_url = 'https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/outputs-section-structure.html'
+ tags = ['outputs']
+
+ def match(self, cfn):
+ """Check CloudFormation Outputs"""
+
+ matches = list()
+
+ outputs = cfn.template.get('Outputs', {})
+ if outputs:
+ for output_name, output_value in outputs.items():
+ description = output_value.get('Description')
+ if description:
+ if not isinstance(description, six.string_types):
+ message = 'Output Description can only be a string'
+ matches.append(RuleMatch(['Outputs', output_name, 'Description'], message))
+
+ return matches
diff --git a/src/cfnlint/rules/outputs/LimitDescription.py b/src/cfnlint/rules/outputs/LimitDescription.py
new file mode 100644
--- /dev/null
+++ b/src/cfnlint/rules/outputs/LimitDescription.py
@@ -0,0 +1,45 @@
+"""
+ Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ software and associated documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to use, copy, modify,
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
+from cfnlint import CloudFormationLintRule
+from cfnlint import RuleMatch
+from cfnlint.helpers import LIMITS
+
+
+class LimitDescription(CloudFormationLintRule):
+ """Check if maximum Output description size limit is exceeded"""
+ id = 'E6012'
+ shortdesc = 'Output description limit not exceeded'
+ description = 'Check the size of Output description in the template is less than the upper limit'
+ source_url = 'https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/outputs-section-structure.html'
+ tags = ['outputs', 'limits']
+
+ def match(self, cfn):
+ """Check CloudFormation Outputs"""
+
+ matches = list()
+
+ outputs = cfn.template.get('Outputs', {})
+
+ for output_name, output_value in outputs.items():
+ description = output_value.get('Description')
+ if description:
+ path = ['Outputs', output_name, 'Description']
+ if len(description) > LIMITS['outputs']['description']:
+ message = 'The length of output description ({0}) exceeds the limit ({1})'
+ matches.append(RuleMatch(path, message.format(len(description), LIMITS['outputs']['description'])))
+
+ return matches
diff --git a/src/cfnlint/rules/templates/Description.py b/src/cfnlint/rules/templates/Description.py
new file mode 100644
--- /dev/null
+++ b/src/cfnlint/rules/templates/Description.py
@@ -0,0 +1,40 @@
+"""
+ Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ software and associated documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to use, copy, modify,
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
+import six
+from cfnlint import CloudFormationLintRule
+from cfnlint import RuleMatch
+
+
+class Description(CloudFormationLintRule):
+ """Check Template Description is only a String"""
+ id = 'E1004'
+ shortdesc = 'Template description can only be a string'
+ description = 'Template description can only be a string'
+ source_url = 'https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-description-structure.html'
+ tags = ['description']
+
+ def match(self, cfn):
+ """Basic Matching"""
+ matches = list()
+
+ description = cfn.template.get('Description')
+
+ if description:
+ if not isinstance(description, six.string_types):
+ message = 'Description can only be a string'
+ matches.append(RuleMatch(['Description'], message))
+ return matches
|
diff --git a/test/fixtures/templates/bad/outputs/description.yaml b/test/fixtures/templates/bad/outputs/description.yaml
new file mode 100644
--- /dev/null
+++ b/test/fixtures/templates/bad/outputs/description.yaml
@@ -0,0 +1,12 @@
+---
+AWSTemplateFormatVersion: "2010-09-09"
+Resources: {}
+Outputs:
+ outputSubFunction:
+ Description: !Sub "${AWS::Region}"
+ Value: Test
+ outputDescriptionLength:
+ Description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. In aliquet justo nibh, a venenatis justo suscipit et. Sed vulputate est non vulputate cursus. In et mollis nunc. Ut semper justo nec odio dignissim semper. Sed interdum elementum ante. Phasellus bibendum mattis ultrices. Nullam varius dui mi, ac fermentum ante sodales nec. Mauris id libero id turpis sollicitudin imperdiet. Praesent volutpat, elit ut malesuada ultricies, magna velit ullamcorper leo, sagittis pulvinar elit erat faucibus felis.
+
+ Morbi sagittis pretium ligula in tristique. Suspendisse odio lectus, condimentum eget egestas pharetra, elementum sit amet sapien. Nullam ipsum eros, ullamcorper ut mi nec, maximus sagittis lacus. In laoreet quam sit amet ante dictum efficitur. Praesent pellentesque purus sit amet nisl scelerisque feugiat. Phasellus feugiat, ex posuere pharetra eleifend, ipsum libero viverra est, sit amet sodales ipsum urna in quam. Donec sit amet pharetra nibh. Nulla eu fermentum leo, a venenatis urna. Nam ac sagittis magna volutpat."
+ Value: Test
diff --git a/test/fixtures/templates/bad/templates/description.yaml b/test/fixtures/templates/bad/templates/description.yaml
new file mode 100644
--- /dev/null
+++ b/test/fixtures/templates/bad/templates/description.yaml
@@ -0,0 +1,4 @@
+---
+AWSTemplateFormatVersion: "2010-09-09"
+Description: !Sub "Template for ${AWS::Region}"
+Resources: {}
diff --git a/test/fixtures/templates/good/outputs/description.yaml b/test/fixtures/templates/good/outputs/description.yaml
new file mode 100644
--- /dev/null
+++ b/test/fixtures/templates/good/outputs/description.yaml
@@ -0,0 +1,7 @@
+---
+AWSTemplateFormatVersion: "2010-09-09"
+Resources: {}
+Outputs:
+ outputDescription:
+ Description: "Smaller description"
+ Value: Test
diff --git a/test/fixtures/templates/good/templates/description.yaml b/test/fixtures/templates/good/templates/description.yaml
new file mode 100644
--- /dev/null
+++ b/test/fixtures/templates/good/templates/description.yaml
@@ -0,0 +1,4 @@
+---
+AWSTemplateFormatVersion: "2010-09-09"
+Description: 'Just a String'
+Resources: {}
diff --git a/test/rules/outputs/test_description.py b/test/rules/outputs/test_description.py
new file mode 100644
--- /dev/null
+++ b/test/rules/outputs/test_description.py
@@ -0,0 +1,37 @@
+"""
+ Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ software and associated documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to use, copy, modify,
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
+from cfnlint.rules.outputs.Description import Description # pylint: disable=E0401
+from .. import BaseRuleTestCase
+
+
+class TestDescription(BaseRuleTestCase):
+ """Test Output Description"""
+ def setUp(self):
+ """Setup"""
+ super(TestDescription, self).setUp()
+ self.collection.register(Description())
+ self.success_templates = [
+ 'fixtures/templates/good/outputs/description.yaml',
+ ]
+
+ def test_file_positive(self):
+ """Test Positive"""
+ self.helper_file_positive()
+
+ def test_file_negative(self):
+ """Test failure"""
+ self.helper_file_negative('fixtures/templates/bad/outputs/description.yaml', 1)
diff --git a/test/rules/outputs/test_limit_description.py b/test/rules/outputs/test_limit_description.py
new file mode 100644
--- /dev/null
+++ b/test/rules/outputs/test_limit_description.py
@@ -0,0 +1,37 @@
+"""
+ Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ software and associated documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to use, copy, modify,
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
+from cfnlint.rules.outputs.LimitDescription import LimitDescription # pylint: disable=E0401
+from .. import BaseRuleTestCase
+
+
+class TestLimitDescription(BaseRuleTestCase):
+ """Test Output Description"""
+ def setUp(self):
+ """Setup"""
+ super(TestLimitDescription, self).setUp()
+ self.collection.register(LimitDescription())
+ self.success_templates = [
+ 'fixtures/templates/good/outputs/description.yaml',
+ ]
+
+ def test_file_positive(self):
+ """Test Positive"""
+ self.helper_file_positive()
+
+ def test_file_negative(self):
+ """Test failure"""
+ self.helper_file_negative('fixtures/templates/bad/outputs/description.yaml', 1)
diff --git a/test/rules/templates/test_description.py b/test/rules/templates/test_description.py
new file mode 100644
--- /dev/null
+++ b/test/rules/templates/test_description.py
@@ -0,0 +1,37 @@
+"""
+ Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ software and associated documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to use, copy, modify,
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
+from cfnlint.rules.templates.Description import Description # pylint: disable=E0401
+from .. import BaseRuleTestCase
+
+
+class TestDescription(BaseRuleTestCase):
+ """Test template limit size"""
+ def setUp(self):
+ """Setup"""
+ super(TestDescription, self).setUp()
+ self.collection.register(Description())
+ self.success_templates = [
+ 'fixtures/templates/good/templates/description.yaml'
+ ]
+
+ def test_file_positive(self):
+ """Test Positive"""
+ self.helper_file_positive()
+
+ def test_file_negative(self):
+ """Test failure"""
+ self.helper_file_negative('fixtures/templates/bad/templates/description.yaml', 1)
|
Detect when Fn::Sub is incorrectly used in Output Description
**cfn-lint version:
- cfn-lint 0.4.2
- cfn-lint 0.5.2
**Description of issue.**
cfn-lint did not detect invalid use of Fn::Sub in the description field of an Output.
e.g. this template snippet results in an error:
```
...
SomeOutput:
Description: !Sub "The thing that relates to ${SomeRef}"
Value: !GetAtt 'SomeRef.Attrib'
Export:
Name: !Sub "${AWS::StackName}-SomeOutput"
```
Error:
> Template format error: Every Description member must be a string.
|
2018-08-22T13:57:58Z
|
[] |
[] |
|
aws-cloudformation/cfn-lint
| 310 |
aws-cloudformation__cfn-lint-310
|
[
"309"
] |
e775e13eec59e6352682b8dc6fce717971900fff
|
diff --git a/src/cfnlint/__init__.py b/src/cfnlint/__init__.py
--- a/src/cfnlint/__init__.py
+++ b/src/cfnlint/__init__.py
@@ -666,6 +666,7 @@ def get_values(self, obj, key, path=[]):
if isinstance(value, (dict)):
if len(value) == 1:
is_condition = False
+ is_no_value = False
for obj_key, obj_value in value.items():
if obj_key in cfnlint.helpers.CONDITION_FUNCTIONS:
is_condition = True
@@ -675,7 +676,9 @@ def get_values(self, obj, key, path=[]):
check_obj = obj.copy()
check_obj[key] = result['Value']
matches.extend(self.get_values(check_obj, key, result['Path']))
- if not is_condition:
+ elif obj_key == 'Ref' and obj_value == 'AWS::NoValue':
+ is_no_value = True
+ if not is_condition and not is_no_value:
result = {}
result['Path'] = path[:]
result['Value'] = value
@@ -690,13 +693,16 @@ def get_values(self, obj, key, path=[]):
if isinstance(list_value, dict):
if len(list_value) == 1:
is_condition = False
+ is_no_value = False
for obj_key, obj_value in list_value.items():
if obj_key in cfnlint.helpers.CONDITION_FUNCTIONS:
is_condition = True
results = self.get_condition_values(obj_value, path[:] + [list_index, obj_key])
if isinstance(results, list):
matches.extend(results)
- if not is_condition:
+ elif obj_key == 'Ref' and obj_value == 'AWS::NoValue':
+ is_no_value = True
+ if not is_condition and not is_no_value:
result = {}
result['Path'] = path[:] + [list_index]
result['Value'] = list_value
|
diff --git a/test/fixtures/templates/public/watchmaker.json b/test/fixtures/templates/public/watchmaker.json
new file mode 100644
--- /dev/null
+++ b/test/fixtures/templates/public/watchmaker.json
@@ -0,0 +1,1705 @@
+{
+ "AWSTemplateFormatVersion": "2010-09-09",
+ "Conditions": {
+ "AssignInstanceRole": {
+ "Fn::Not": [
+ {
+ "Fn::Equals": [
+ {
+ "Ref": "InstanceRole"
+ },
+ ""
+ ]
+ }
+ ]
+ },
+ "AssignPublicIp": {
+ "Fn::Not": [
+ {
+ "Fn::Equals": [
+ {
+ "Ref": "NoPublicIp"
+ },
+ "true"
+ ]
+ }
+ ]
+ },
+ "AssignStaticPrivateIp": {
+ "Fn::Not": [
+ {
+ "Fn::Equals": [
+ {
+ "Ref": "PrivateIp"
+ },
+ ""
+ ]
+ }
+ ]
+ },
+ "CreateAppVolume": {
+ "Fn::Equals": [
+ {
+ "Ref": "AppVolumeDevice"
+ },
+ "true"
+ ]
+ },
+ "ExecuteAppScript": {
+ "Fn::Not": [
+ {
+ "Fn::Equals": [
+ {
+ "Ref": "AppScriptUrl"
+ },
+ ""
+ ]
+ }
+ ]
+ },
+ "InstallCloudWatchAgent": {
+ "Fn::Not": [
+ {
+ "Fn::Equals": [
+ {
+ "Ref": "CloudWatchAgentUrl"
+ },
+ ""
+ ]
+ }
+ ]
+ },
+ "InstallUpdates": {
+ "Fn::Not": [
+ {
+ "Fn::Equals": [
+ {
+ "Ref": "NoUpdates"
+ },
+ "true"
+ ]
+ }
+ ]
+ },
+ "Reboot": {
+ "Fn::Not": [
+ {
+ "Fn::Equals": [
+ {
+ "Ref": "NoReboot"
+ },
+ "true"
+ ]
+ }
+ ]
+ },
+ "SupportsNvme": {
+ "Fn::Equals": [
+ {
+ "Fn::FindInMap": [
+ "InstanceTypeMap",
+ {
+ "Ref": "InstanceType"
+ },
+ "SupportsNvme"
+ ]
+ },
+ "true"
+ ]
+ },
+ "UseAdminGroups": {
+ "Fn::Not": [
+ {
+ "Fn::Equals": [
+ {
+ "Ref": "WatchmakerAdminGroups"
+ },
+ ""
+ ]
+ }
+ ]
+ },
+ "UseAdminUsers": {
+ "Fn::Not": [
+ {
+ "Fn::Equals": [
+ {
+ "Ref": "WatchmakerAdminUsers"
+ },
+ ""
+ ]
+ }
+ ]
+ },
+ "UseCfnUrl": {
+ "Fn::Not": [
+ {
+ "Fn::Equals": [
+ {
+ "Ref": "CfnEndpointUrl"
+ },
+ ""
+ ]
+ }
+ ]
+ },
+ "UseComputerName": {
+ "Fn::Not": [
+ {
+ "Fn::Equals": [
+ {
+ "Ref": "WatchmakerComputerName"
+ },
+ ""
+ ]
+ }
+ ]
+ },
+ "UseEnvironment": {
+ "Fn::Not": [
+ {
+ "Fn::Equals": [
+ {
+ "Ref": "WatchmakerEnvironment"
+ },
+ ""
+ ]
+ }
+ ]
+ },
+ "UseOuPath": {
+ "Fn::Not": [
+ {
+ "Fn::Equals": [
+ {
+ "Ref": "WatchmakerOuPath"
+ },
+ ""
+ ]
+ }
+ ]
+ },
+ "UseWamConfig": {
+ "Fn::Not": [
+ {
+ "Fn::Equals": [
+ {
+ "Ref": "WatchmakerConfig"
+ },
+ ""
+ ]
+ }
+ ]
+ }
+ },
+ "Description": "This template deploys a Linux instance using Watchmaker, which applies the DISA STIG.",
+ "Mappings": {
+ "Distro2RootDevice": {
+ "AmazonLinux": {
+ "DeviceName": "xvda"
+ },
+ "CentOS": {
+ "DeviceName": "sda1"
+ },
+ "RedHat": {
+ "DeviceName": "sda1"
+ }
+ },
+ "InstanceTypeMap": {
+ "c4.large": {
+ "SupportsNvme": "false"
+ },
+ "c4.xlarge": {
+ "SupportsNvme": "false"
+ },
+ "c5.large": {
+ "SupportsNvme": "true"
+ },
+ "c5.xlarge": {
+ "SupportsNvme": "true"
+ },
+ "m4.large": {
+ "SupportsNvme": "false"
+ },
+ "m4.xlarge": {
+ "SupportsNvme": "false"
+ },
+ "m5.large": {
+ "SupportsNvme": "true"
+ },
+ "m5.xlarge": {
+ "SupportsNvme": "true"
+ },
+ "t2.large": {
+ "SupportsNvme": "false"
+ },
+ "t2.medium": {
+ "SupportsNvme": "false"
+ },
+ "t2.micro": {
+ "SupportsNvme": "false"
+ },
+ "t2.small": {
+ "SupportsNvme": "false"
+ },
+ "t2.xlarge": {
+ "SupportsNvme": "false"
+ }
+ }
+ },
+ "Metadata": {
+ "AWS::CloudFormation::Interface": {
+ "ParameterGroups": [
+ {
+ "Label": {
+ "default": "EC2 Instance Configuration"
+ },
+ "Parameters": [
+ "AmiId",
+ "AmiDistro",
+ "InstanceType",
+ "InstanceRole",
+ "KeyPairName",
+ "NoPublicIp",
+ "NoReboot",
+ "NoUpdates",
+ "SecurityGroupIds"
+ ]
+ },
+ {
+ "Label": {
+ "default": "EC2 Watchmaker Configuration"
+ },
+ "Parameters": [
+ "PypiIndexUrl",
+ "WatchmakerConfig",
+ "WatchmakerEnvironment",
+ "WatchmakerOuPath",
+ "WatchmakerComputerName",
+ "WatchmakerAdminGroups",
+ "WatchmakerAdminUsers"
+ ]
+ },
+ {
+ "Label": {
+ "default": "EC2 Application Configuration"
+ },
+ "Parameters": [
+ "AppScriptUrl",
+ "AppScriptParams",
+ "AppScriptShell"
+ ]
+ },
+ {
+ "Label": {
+ "default": "EC2 Application EBS Volume"
+ },
+ "Parameters": [
+ "AppVolumeDevice",
+ "AppVolumeMountPath",
+ "AppVolumeSize",
+ "AppVolumeType"
+ ]
+ },
+ {
+ "Label": {
+ "default": "Network Configuration"
+ },
+ "Parameters": [
+ "PrivateIp",
+ "SubnetId"
+ ]
+ },
+ {
+ "Label": {
+ "default": "CloudFormation Configuration"
+ },
+ "Parameters": [
+ "CfnEndpointUrl",
+ "CfnGetPipUrl",
+ "CfnBootstrapUtilsUrl",
+ "CloudWatchAgentUrl",
+ "ToggleCfnInitUpdate"
+ ]
+ }
+ ],
+ "ParameterLabels": {
+ "ToggleCfnInitUpdate": {
+ "default": "Force Cfn Init Update"
+ }
+ }
+ },
+ "Version": "1.5.2"
+ },
+ "Outputs": {
+ "WatchmakerInstanceId": {
+ "Description": "Instance ID",
+ "Value": {
+ "Ref": "WatchmakerInstance"
+ }
+ },
+ "WatchmakerInstanceLogGroupName": {
+ "Condition": "InstallCloudWatchAgent",
+ "Description": "Log Group Name",
+ "Value": {
+ "Ref": "WatchmakerInstanceLogGroup"
+ }
+ }
+ },
+ "Parameters": {
+ "AmiDistro": {
+ "AllowedValues": [
+ "AmazonLinux",
+ "CentOS",
+ "RedHat"
+ ],
+ "Description": "Linux distro of the AMI",
+ "Type": "String"
+ },
+ "AmiId": {
+ "Description": "ID of the AMI to launch",
+ "Type": "AWS::EC2::Image::Id"
+ },
+ "AppScriptParams": {
+ "Description": "Parameter string to pass to the application script. Ignored if \"AppScriptUrl\" is blank",
+ "Type": "String"
+ },
+ "AppScriptShell": {
+ "AllowedValues": [
+ "bash",
+ "python"
+ ],
+ "Default": "bash",
+ "Description": "Shell with which to execute the application script. Ignored if \"AppScriptUrl\" is blank",
+ "Type": "String"
+ },
+ "AppScriptUrl": {
+ "AllowedPattern": "^$|^s3://(.*)$",
+ "ConstraintDescription": "Must use an S3 URL (starts with \"s3://\")",
+ "Default": "",
+ "Description": "(Optional) S3 URL to the application script in an S3 bucket (s3://). Leave blank to launch without an application script. If specified, an appropriate \"InstanceRole\" is required",
+ "Type": "String"
+ },
+ "AppVolumeDevice": {
+ "AllowedValues": [
+ "true",
+ "false"
+ ],
+ "Default": "false",
+ "Description": "Decision on whether to mount an extra EBS volume. Leave as default (\"false\") to launch without an extra application volume",
+ "Type": "String"
+ },
+ "AppVolumeMountPath": {
+ "AllowedPattern": "/.*",
+ "Default": "/opt/data",
+ "Description": "Filesystem path to mount the extra app volume. Ignored if \"AppVolumeDevice\" is false",
+ "Type": "String"
+ },
+ "AppVolumeSize": {
+ "ConstraintDescription": "Must be between 1GB and 16384GB.",
+ "Default": "1",
+ "Description": "Size in GB of the EBS volume to create. Ignored if \"AppVolumeDevice\" is false",
+ "MaxValue": "16384",
+ "MinValue": "1",
+ "Type": "Number"
+ },
+ "AppVolumeType": {
+ "AllowedValues": [
+ "gp2",
+ "io1",
+ "sc1",
+ "st1",
+ "standard"
+ ],
+ "Default": "gp2",
+ "Description": "Type of EBS volume to create. Ignored if \"AppVolumeDevice\" is false",
+ "Type": "String"
+ },
+ "CfnBootstrapUtilsUrl": {
+ "AllowedPattern": "^http[s]?://.*\\.tar\\.gz$",
+ "Default": "https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-latest.tar.gz",
+ "Description": "URL to aws-cfn-bootstrap-latest.tar.gz",
+ "Type": "String"
+ },
+ "CfnEndpointUrl": {
+ "AllowedPattern": "^$|^http[s]?://.*$",
+ "Default": "https://cloudformation.us-east-1.amazonaws.com",
+ "Description": "(Optional) URL to the CloudFormation Endpoint. e.g. https://cloudformation.us-east-1.amazonaws.com",
+ "Type": "String"
+ },
+ "CfnGetPipUrl": {
+ "AllowedPattern": "^http[s]?://.*\\.py$",
+ "Default": "https://bootstrap.pypa.io/2.6/get-pip.py",
+ "Description": "URL to get-pip.py",
+ "Type": "String"
+ },
+ "CloudWatchAgentUrl": {
+ "AllowedPattern": "^$|^s3://.*$",
+ "Default": "",
+ "Description": "(Optional) S3 URL to CloudWatch Agent installer. Example: s3://amazoncloudwatch-agent/linux/amd64/latest/AmazonCloudWatchAgent.zip",
+ "Type": "String"
+ },
+ "InstanceRole": {
+ "Default": "",
+ "Description": "(Optional) IAM instance role to apply to the instance",
+ "Type": "String"
+ },
+ "InstanceType": {
+ "AllowedValues": [
+ "t2.micro",
+ "t2.small",
+ "t2.medium",
+ "t2.large",
+ "t2.xlarge",
+ "c4.large",
+ "c4.xlarge",
+ "m4.large",
+ "m4.xlarge",
+ "c5.large",
+ "c5.xlarge",
+ "m5.large",
+ "m5.xlarge"
+ ],
+ "Default": "t2.micro",
+ "Description": "Amazon EC2 instance type",
+ "Type": "String"
+ },
+ "KeyPairName": {
+ "Description": "Public/private key pairs allow you to securely connect to your instance after it launches",
+ "Type": "AWS::EC2::KeyPair::KeyName"
+ },
+ "NoPublicIp": {
+ "AllowedValues": [
+ "false",
+ "true"
+ ],
+ "Default": "true",
+ "Description": "Controls whether to assign the instance a public IP. Recommended to leave at \"true\" _unless_ launching in a public subnet",
+ "Type": "String"
+ },
+ "NoReboot": {
+ "AllowedValues": [
+ "false",
+ "true"
+ ],
+ "Default": "false",
+ "Description": "Controls whether to reboot the instance as the last step of cfn-init execution",
+ "Type": "String"
+ },
+ "NoUpdates": {
+ "AllowedValues": [
+ "false",
+ "true"
+ ],
+ "Default": "false",
+ "Description": "Controls whether to run yum update during a stack update (on the initial instance launch, Watchmaker _always_ installs updates)",
+ "Type": "String"
+ },
+ "PrivateIp": {
+ "Default": "",
+ "Description": "(Optional) Set a static, primary private IP. Leave blank to auto-select a free IP",
+ "Type": "String"
+ },
+ "PypiIndexUrl": {
+ "AllowedPattern": "^http[s]?://.*$",
+ "Default": "https://pypi.org/simple",
+ "Description": "URL to the PyPi Index",
+ "Type": "String"
+ },
+ "SecurityGroupIds": {
+ "Description": "List of security groups to apply to the instance",
+ "Type": "List<AWS::EC2::SecurityGroup::Id>"
+ },
+ "SubnetId": {
+ "Description": "ID of the subnet to assign to the instance",
+ "Type": "AWS::EC2::Subnet::Id"
+ },
+ "ToggleCfnInitUpdate": {
+ "AllowedValues": [
+ "A",
+ "B"
+ ],
+ "Default": "A",
+ "Description": "A/B toggle that forces a change to instance metadata, triggering the cfn-init update sequence",
+ "Type": "String"
+ },
+ "WatchmakerAdminGroups": {
+ "Default": "",
+ "Description": "(Optional) Colon-separated list of domain groups that should have admin permissions on the EC2 instance",
+ "Type": "String"
+ },
+ "WatchmakerAdminUsers": {
+ "Default": "",
+ "Description": "(Optional) Colon-separated list of domain users that should have admin permissions on the EC2 instance",
+ "Type": "String"
+ },
+ "WatchmakerComputerName": {
+ "Default": "",
+ "Description": "(Optional) Sets the hostname/computername within the OS",
+ "Type": "String"
+ },
+ "WatchmakerConfig": {
+ "AllowedPattern": "^$|^(http[s]?|s3|file)://.*$",
+ "Default": "",
+ "Description": "(Optional) Path to a Watchmaker config file. The config file path can be a remote source (i.e. http[s]://, s3://) or local directory (i.e. file://)",
+ "Type": "String"
+ },
+ "WatchmakerEnvironment": {
+ "AllowedValues": [
+ "",
+ "dev",
+ "test",
+ "prod"
+ ],
+ "Default": "",
+ "Description": "Environment in which the instance is being deployed",
+ "Type": "String"
+ },
+ "WatchmakerOuPath": {
+ "AllowedPattern": "^$|^(OU=.+,)+(DC=.+)+$",
+ "Default": "",
+ "Description": "(Optional) DN of the OU to place the instance when joining a domain. If blank and \"WatchmakerEnvironment\" enforces a domain join, the instance will be placed in a default container. Leave blank if not joining a domain, or if \"WatchmakerEnvironment\" is \"false\"",
+ "Type": "String"
+ }
+ },
+ "Resources": {
+ "WatchmakerInstance": {
+ "CreationPolicy": {
+ "ResourceSignal": {
+ "Count": "1",
+ "Timeout": "PT30M"
+ }
+ },
+ "Metadata": {
+ "AWS::CloudFormation::Init": {
+ "configSets": {
+ "launch": [
+ "setup",
+ {
+ "Fn::If": [
+ "InstallCloudWatchAgent",
+ "cw-agent-install",
+ {
+ "Ref": "AWS::NoValue"
+ }
+ ]
+ },
+ "watchmaker-install",
+ "watchmaker-launch",
+ {
+ "Fn::If": [
+ "ExecuteAppScript",
+ "make-app",
+ {
+ "Ref": "AWS::NoValue"
+ }
+ ]
+ },
+ "finalize",
+ {
+ "Fn::If": [
+ "Reboot",
+ "reboot",
+ {
+ "Ref": "AWS::NoValue"
+ }
+ ]
+ }
+ ],
+ "update": [
+ "setup",
+ {
+ "Fn::If": [
+ "InstallUpdates",
+ "install-updates",
+ {
+ "Ref": "AWS::NoValue"
+ }
+ ]
+ },
+ "watchmaker-install",
+ "watchmaker-update",
+ {
+ "Fn::If": [
+ "ExecuteAppScript",
+ "make-app",
+ {
+ "Ref": "AWS::NoValue"
+ }
+ ]
+ },
+ "finalize",
+ {
+ "Fn::If": [
+ "Reboot",
+ "reboot",
+ {
+ "Ref": "AWS::NoValue"
+ }
+ ]
+ }
+ ]
+ },
+ "cw-agent-install": {
+ "commands": {
+ "01-get-cloudwatch-agent": {
+ "command": {
+ "Fn::Join": [
+ "",
+ [
+ "install -Dbm 700 -o root -g root /dev/null /etc/cfn/scripts/AmazonCloudWatchAgent.zip &&",
+ " aws s3 cp ",
+ {
+ "Ref": "CloudWatchAgentUrl"
+ },
+ " /etc/cfn/scripts/AmazonCloudWatchAgent.zip"
+ ]
+ ]
+ }
+ },
+ "02-extract-cloudwatch-agent": {
+ "command": {
+ "Fn::Join": [
+ "",
+ [
+ "yum -y install unzip &&",
+ "unzip /etc/cfn/scripts/AmazonCloudWatchAgent.zip -d /etc/cfn/scripts/aws-cw-agent"
+ ]
+ ]
+ }
+ },
+ "10-install-cloudwatch-agent": {
+ "command": {
+ "Fn::Join": [
+ "",
+ [
+ " bash -xe install.sh &&",
+ " /opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl",
+ " -a fetch-config -m ec2 -c",
+ " file:/opt/aws/amazon-cloudwatch-agent/etc/amazon-cloudwatch-agent.json -s"
+ ]
+ ]
+ },
+ "cwd": "/etc/cfn/scripts/aws-cw-agent"
+ }
+ },
+ "files": {
+ "/opt/aws/amazon-cloudwatch-agent/etc/amazon-cloudwatch-agent.json": {
+ "content": {
+ "Fn::Join": [
+ "",
+ [
+ "{",
+ " \"logs\": {\n",
+ " \"logs_collected\": {\n",
+ " \"files\": {\n",
+ " \"collect_list\": [\n",
+ " {\n",
+ " \"file_path\": \"/opt/aws/amazon-cloudwatch-agent/logs/amazon-cloudwatch-agent.log\",\n",
+ " \"log_group_name\": \"",
+ {
+ "Fn::If": [
+ "InstallCloudWatchAgent",
+ {
+ "Ref": "WatchmakerInstanceLogGroup"
+ },
+ {
+ "Ref": "AWS::NoValue"
+ }
+ ]
+ },
+ "\",\n",
+ " \"log_stream_name\": \"cloudwatch_agent_logs_{instance_id}\",\n",
+ " \"timestamp_format\": \"%H:%M:%S %y %b %-d\"\n",
+ " },\n",
+ " {\n",
+ " \"file_path\": \"/var/log/cfn-init.log\",\n",
+ " \"log_group_name\": \"",
+ {
+ "Fn::If": [
+ "InstallCloudWatchAgent",
+ {
+ "Ref": "WatchmakerInstanceLogGroup"
+ },
+ {
+ "Ref": "AWS::NoValue"
+ }
+ ]
+ },
+ "\",\n",
+ " \"log_stream_name\": \"cfn_init_logs_{instance_id}\",\n",
+ " \"timestamp_format\": \"%H:%M:%S %y %b %-d\"\n",
+ " },\n",
+ " {\n",
+ " \"file_path\": \"/var/log/messages\",\n",
+ " \"log_group_name\": \"",
+ {
+ "Fn::If": [
+ "InstallCloudWatchAgent",
+ {
+ "Ref": "WatchmakerInstanceLogGroup"
+ },
+ {
+ "Ref": "AWS::NoValue"
+ }
+ ]
+ },
+ "\",\n",
+ " \"log_stream_name\": \"messages_logs_{instance_id}\",\n",
+ " \"timestamp_format\": \"%H:%M:%S %y %b %-d\"\n",
+ " },\n",
+ " {\n",
+ " \"file_path\": \"/var/log/watchmaker/watchmaker.log\",\n",
+ " \"log_group_name\": \"",
+ {
+ "Fn::If": [
+ "InstallCloudWatchAgent",
+ {
+ "Ref": "WatchmakerInstanceLogGroup"
+ },
+ {
+ "Ref": "AWS::NoValue"
+ }
+ ]
+ },
+ "\",\n",
+ " \"log_stream_name\": \"watchmaker_logs_{instance_id}\",\n",
+ " \"timestamp_format\": \"%H:%M:%S %y %b %-d\"\n",
+ " },\n",
+ " {\n",
+ " \"file_path\": \"/var/log/watchmaker/salt_call.debug.log\",\n",
+ " \"log_group_name\": \"",
+ {
+ "Fn::If": [
+ "InstallCloudWatchAgent",
+ {
+ "Ref": "WatchmakerInstanceLogGroup"
+ },
+ {
+ "Ref": "AWS::NoValue"
+ }
+ ]
+ },
+ "\",\n",
+ " \"log_stream_name\": \"salt_call_debug_logs_{instance_id}\",\n",
+ " \"timestamp_format\": \"%H:%M:%S %y %b %-d\"\n",
+ " }\n",
+ " ]\n",
+ " }\n",
+ " },\n",
+ " \"log_stream_name\": \"default_logs_{instance_id}\"\n",
+ " }\n",
+ "}\n"
+ ]
+ ]
+ }
+ }
+ }
+ },
+ "finalize": {
+ "commands": {
+ "10-signal-success": {
+ "command": {
+ "Fn::Join": [
+ "",
+ [
+ "cfn-signal -e 0",
+ " --stack ",
+ {
+ "Ref": "AWS::StackName"
+ },
+ " --resource WatchmakerInstance",
+ {
+ "Fn::If": [
+ "AssignInstanceRole",
+ {
+ "Fn::Join": [
+ "",
+ [
+ " --role ",
+ {
+ "Ref": "InstanceRole"
+ }
+ ]
+ ]
+ },
+ ""
+ ]
+ },
+ {
+ "Fn::If": [
+ "UseCfnUrl",
+ {
+ "Fn::Join": [
+ "",
+ [
+ " --url ",
+ {
+ "Ref": "CfnEndpointUrl"
+ }
+ ]
+ ]
+ },
+ ""
+ ]
+ },
+ " --region ",
+ {
+ "Ref": "AWS::Region"
+ },
+ "\n"
+ ]
+ ]
+ },
+ "ignoreErrors": "true"
+ }
+ }
+ },
+ "install-updates": {
+ "commands": {
+ "10-install-updates": {
+ "command": "yum -y update"
+ }
+ }
+ },
+ "make-app": {
+ "commands": {
+ "05-get-appscript": {
+ "command": {
+ "Fn::Join": [
+ "",
+ [
+ "mkdir -p /etc/cfn/scripts &&",
+ " aws s3 cp ",
+ {
+ "Ref": "AppScriptUrl"
+ },
+ " /etc/cfn/scripts/make-app",
+ " &&",
+ " chown root:root /etc/cfn/scripts/make-app &&",
+ " chmod 700 /etc/cfn/scripts/make-app"
+ ]
+ ]
+ }
+ },
+ "10-make-app": {
+ "command": {
+ "Fn::Join": [
+ "",
+ [
+ {
+ "Ref": "AppScriptShell"
+ },
+ " /etc/cfn/scripts/make-app ",
+ {
+ "Ref": "AppScriptParams"
+ }
+ ]
+ ]
+ }
+ }
+ }
+ },
+ "reboot": {
+ "commands": {
+ "10-reboot": {
+ "command": "shutdown -r +1 &"
+ }
+ }
+ },
+ "setup": {
+ "files": {
+ "/etc/cfn/cfn-hup.conf": {
+ "content": {
+ "Fn::Join": [
+ "",
+ [
+ "[main]\n",
+ "stack=",
+ {
+ "Ref": "AWS::StackId"
+ },
+ "\n",
+ "region=",
+ {
+ "Ref": "AWS::Region"
+ },
+ "\n",
+ {
+ "Fn::If": [
+ "AssignInstanceRole",
+ {
+ "Fn::Join": [
+ "",
+ [
+ "role=",
+ {
+ "Ref": "InstanceRole"
+ },
+ "\n"
+ ]
+ ]
+ },
+ ""
+ ]
+ },
+ {
+ "Fn::If": [
+ "UseCfnUrl",
+ {
+ "Fn::Join": [
+ "",
+ [
+ "url=",
+ {
+ "Ref": "CfnEndpointUrl"
+ },
+ "\n"
+ ]
+ ]
+ },
+ ""
+ ]
+ },
+ "interval=1",
+ "\n",
+ "verbose=true",
+ "\n"
+ ]
+ ]
+ },
+ "group": "root",
+ "mode": "000400",
+ "owner": "root"
+ },
+ "/etc/cfn/hooks.d/cfn-auto-reloader.conf": {
+ "content": {
+ "Fn::Join": [
+ "",
+ [
+ "[cfn-auto-reloader-hook]\n",
+ "triggers=post.update\n",
+ "path=Resources.WatchmakerInstance.Metadata\n",
+ "action=cfn-init -v -c update",
+ " --stack ",
+ {
+ "Ref": "AWS::StackName"
+ },
+ " --resource WatchmakerInstance",
+ {
+ "Fn::If": [
+ "AssignInstanceRole",
+ {
+ "Fn::Join": [
+ "",
+ [
+ " --role ",
+ {
+ "Ref": "InstanceRole"
+ }
+ ]
+ ]
+ },
+ ""
+ ]
+ },
+ {
+ "Fn::If": [
+ "UseCfnUrl",
+ {
+ "Fn::Join": [
+ "",
+ [
+ " --url ",
+ {
+ "Ref": "CfnEndpointUrl"
+ }
+ ]
+ ]
+ },
+ ""
+ ]
+ },
+ " --region ",
+ {
+ "Ref": "AWS::Region"
+ },
+ "\n",
+ "runas=root\n"
+ ]
+ ]
+ },
+ "group": "root",
+ "mode": "000400",
+ "owner": "root"
+ },
+ "/etc/cfn/scripts/watchmaker-install.sh": {
+ "content": {
+ "Fn::Join": [
+ "",
+ [
+ "#!/bin/bash\n\n",
+ "PYPI_URL=",
+ {
+ "Ref": "PypiIndexUrl"
+ },
+ "\n",
+ "curl --silent --show-error --retry 5 -L ",
+ {
+ "Ref": "CfnGetPipUrl"
+ },
+ " | python - --index-url=\"$PYPI_URL\" 'wheel<0.30.0;python_version<\"2.7\"' 'wheel;python_version>=\"2.7\"'",
+ "\n",
+ "pip install",
+ " --index-url=\"$PYPI_URL\"",
+ " --upgrade 'pip<10' 'setuptools<37;python_version<\"2.7\"' 'setuptools;python_version>=\"2.7\"' boto3\n",
+ "pip install",
+ " --index-url=\"$PYPI_URL\"",
+ " --upgrade watchmaker\n\n"
+ ]
+ ]
+ },
+ "group": "root",
+ "mode": "000700",
+ "owner": "root"
+ }
+ },
+ "services": {
+ "sysvinit": {
+ "cfn-hup": {
+ "enabled": "true",
+ "ensureRunning": "true",
+ "files": [
+ "/etc/cfn/cfn-hup.conf",
+ "/etc/cfn/hooks.d/cfn-auto-reloader.conf"
+ ]
+ }
+ }
+ }
+ },
+ "watchmaker-install": {
+ "commands": {
+ "10-watchmaker-install": {
+ "command": "bash -xe /etc/cfn/scripts/watchmaker-install.sh"
+ }
+ }
+ },
+ "watchmaker-launch": {
+ "commands": {
+ "10-watchmaker-launch": {
+ "command": {
+ "Fn::Join": [
+ "",
+ [
+ "watchmaker --log-level debug",
+ " --log-dir /var/log/watchmaker",
+ " --no-reboot",
+ {
+ "Fn::If": [
+ "UseWamConfig",
+ {
+ "Fn::Join": [
+ "",
+ [
+ " --config \"",
+ {
+ "Ref": "WatchmakerConfig"
+ },
+ "\""
+ ]
+ ]
+ },
+ ""
+ ]
+ },
+ {
+ "Fn::If": [
+ "UseEnvironment",
+ {
+ "Fn::Join": [
+ "",
+ [
+ " --env \"",
+ {
+ "Ref": "WatchmakerEnvironment"
+ },
+ "\""
+ ]
+ ]
+ },
+ ""
+ ]
+ },
+ {
+ "Fn::If": [
+ "UseOuPath",
+ {
+ "Fn::Join": [
+ "",
+ [
+ " --ou-path \"",
+ {
+ "Ref": "WatchmakerOuPath"
+ },
+ "\""
+ ]
+ ]
+ },
+ ""
+ ]
+ },
+ {
+ "Fn::If": [
+ "UseComputerName",
+ {
+ "Fn::Join": [
+ "",
+ [
+ " --computer-name \"",
+ {
+ "Ref": "WatchmakerComputerName"
+ },
+ "\""
+ ]
+ ]
+ },
+ ""
+ ]
+ },
+ {
+ "Fn::If": [
+ "UseAdminGroups",
+ {
+ "Fn::Join": [
+ "",
+ [
+ " --admin-groups \"",
+ {
+ "Ref": "WatchmakerAdminGroups"
+ },
+ "\""
+ ]
+ ]
+ },
+ ""
+ ]
+ },
+ {
+ "Fn::If": [
+ "UseAdminUsers",
+ {
+ "Fn::Join": [
+ "",
+ [
+ " --admin-users \"",
+ {
+ "Ref": "WatchmakerAdminUsers"
+ },
+ "\""
+ ]
+ ]
+ },
+ ""
+ ]
+ }
+ ]
+ ]
+ }
+ }
+ }
+ },
+ "watchmaker-update": {
+ "commands": {
+ "10-watchmaker-update": {
+ "command": {
+ "Fn::Join": [
+ "",
+ [
+ "watchmaker --log-level debug",
+ " --log-dir /var/log/watchmaker",
+ " --salt-states None",
+ " --no-reboot",
+ {
+ "Fn::If": [
+ "UseWamConfig",
+ {
+ "Fn::Join": [
+ "",
+ [
+ " --config \"",
+ {
+ "Ref": "WatchmakerConfig"
+ },
+ "\""
+ ]
+ ]
+ },
+ ""
+ ]
+ },
+ {
+ "Fn::If": [
+ "UseEnvironment",
+ {
+ "Fn::Join": [
+ "",
+ [
+ " --env \"",
+ {
+ "Ref": "WatchmakerEnvironment"
+ },
+ "\""
+ ]
+ ]
+ },
+ ""
+ ]
+ },
+ {
+ "Fn::If": [
+ "UseOuPath",
+ {
+ "Fn::Join": [
+ "",
+ [
+ " --oupath \"",
+ {
+ "Ref": "WatchmakerOuPath"
+ },
+ "\""
+ ]
+ ]
+ },
+ ""
+ ]
+ },
+ {
+ "Fn::If": [
+ "UseComputerName",
+ {
+ "Fn::Join": [
+ "",
+ [
+ " --computer-name \"",
+ {
+ "Ref": "WatchmakerComputerName"
+ },
+ "\""
+ ]
+ ]
+ },
+ ""
+ ]
+ },
+ {
+ "Fn::If": [
+ "UseAdminGroups",
+ {
+ "Fn::Join": [
+ "",
+ [
+ " --admin-groups \"",
+ {
+ "Ref": "WatchmakerAdminGroups"
+ },
+ "\""
+ ]
+ ]
+ },
+ ""
+ ]
+ },
+ {
+ "Fn::If": [
+ "UseAdminUsers",
+ {
+ "Fn::Join": [
+ "",
+ [
+ " --admin-users \"",
+ {
+ "Ref": "WatchmakerAdminUsers"
+ },
+ "\""
+ ]
+ ]
+ },
+ ""
+ ]
+ }
+ ]
+ ]
+ }
+ }
+ }
+ }
+ },
+ "ToggleCfnInitUpdate": {
+ "Ref": "ToggleCfnInitUpdate"
+ }
+ },
+ "Properties": {
+ "BlockDeviceMappings": [
+ {
+ "DeviceName": {
+ "Fn::Join": [
+ "",
+ [
+ "/dev/",
+ {
+ "Fn::FindInMap": [
+ "Distro2RootDevice",
+ {
+ "Ref": "AmiDistro"
+ },
+ "DeviceName"
+ ]
+ }
+ ]
+ ]
+ },
+ "Ebs": {
+ "DeleteOnTermination": true,
+ "VolumeType": "gp2"
+ }
+ },
+ {
+ "Fn::If": [
+ "CreateAppVolume",
+ {
+ "DeviceName": "/dev/xvdf",
+ "Ebs": {
+ "DeleteOnTermination": true,
+ "VolumeSize": {
+ "Ref": "AppVolumeSize"
+ },
+ "VolumeType": {
+ "Ref": "AppVolumeType"
+ }
+ }
+ },
+ {
+ "Ref": "AWS::NoValue"
+ }
+ ]
+ }
+ ],
+ "IamInstanceProfile": {
+ "Fn::If": [
+ "AssignInstanceRole",
+ {
+ "Ref": "InstanceRole"
+ },
+ {
+ "Ref": "AWS::NoValue"
+ }
+ ]
+ },
+ "ImageId": {
+ "Ref": "AmiId"
+ },
+ "InstanceType": {
+ "Ref": "InstanceType"
+ },
+ "KeyName": {
+ "Ref": "KeyPairName"
+ },
+ "NetworkInterfaces": [
+ {
+ "AssociatePublicIpAddress": {
+ "Fn::If": [
+ "AssignPublicIp",
+ true,
+ false
+ ]
+ },
+ "DeviceIndex": "0",
+ "GroupSet": {
+ "Ref": "SecurityGroupIds"
+ },
+ "PrivateIpAddress": {
+ "Fn::If": [
+ "AssignStaticPrivateIp",
+ {
+ "Ref": "PrivateIp"
+ },
+ {
+ "Ref": "AWS::NoValue"
+ }
+ ]
+ },
+ "SubnetId": {
+ "Ref": "SubnetId"
+ }
+ }
+ ],
+ "Tags": [
+ {
+ "Key": "Name",
+ "Value": {
+ "Fn::Join": [
+ "",
+ [
+ {
+ "Ref": "AWS::StackName"
+ }
+ ]
+ ]
+ }
+ }
+ ],
+ "UserData": {
+ "Fn::Base64": {
+ "Fn::Join": [
+ "",
+ [
+ "Content-Type: multipart/mixed; boundary=\"===============3585321300151562773==\"\n",
+ "MIME-Version: 1.0\n",
+ "\n",
+ "--===============3585321300151562773==\n",
+ "Content-Type: text/cloud-config; charset=\"us-ascii\"\n",
+ "MIME-Version: 1.0\n",
+ "Content-Transfer-Encoding: 7bit\n",
+ "Content-Disposition: attachment; filename=\"cloud.cfg\"\n",
+ "\n",
+ "#cloud-config\n",
+ {
+ "Fn::If": [
+ "CreateAppVolume",
+ {
+ "Fn::Join": [
+ "",
+ [
+ "bootcmd:\n",
+ "- cloud-init-per instance mkfs-appvolume mkfs -t ext4 ",
+ {
+ "Fn::If": [
+ "SupportsNvme",
+ "/dev/nvme1n1",
+ "/dev/xvdf"
+ ]
+ },
+ "\n",
+ "mounts:\n",
+ "- [ ",
+ {
+ "Fn::If": [
+ "SupportsNvme",
+ "/dev/nvme1n1",
+ "/dev/xvdf"
+ ]
+ },
+ ", ",
+ {
+ "Ref": "AppVolumeMountPath"
+ },
+ " ]\n"
+ ]
+ ]
+ },
+ {
+ "Ref": "AWS::NoValue"
+ }
+ ]
+ },
+ "\n",
+ "--===============3585321300151562773==\n",
+ "Content-Type: text/x-shellscript; charset=\"us-ascii\"\n",
+ "MIME-Version: 1.0\n",
+ "Content-Transfer-Encoding: 7bit\n",
+ "Content-Disposition: attachment; filename=\"script.sh\"\n",
+ "\n",
+ "#!/bin/bash -xe\n\n",
+ "# Export AWS ENVs\n",
+ "test -r /etc/aws/models/endpoints.json && export AWS_DATA_PATH=/etc/aws/models || true\n",
+ "export AWS_CA_BUNDLE=/etc/pki/tls/certs/ca-bundle.crt\n",
+ "export REQUESTS_CA_BUNDLE=/etc/pki/tls/certs/ca-bundle.crt\n",
+ "export AWS_DEFAULT_REGION=",
+ {
+ "Ref": "AWS::Region"
+ },
+ "\n\n",
+ "# Get pip\n",
+ "PYPI_URL=",
+ {
+ "Ref": "PypiIndexUrl"
+ },
+ "\n",
+ "curl --silent --show-error --retry 5 -L ",
+ {
+ "Ref": "CfnGetPipUrl"
+ },
+ " | python - --index-url=\"$PYPI_URL\" 'wheel<0.30.0;python_version<\"2.7\"' 'wheel;python_version>=\"2.7\"'",
+ "\n\n",
+ "# Add pip to path\n",
+ "hash pip 2> /dev/null || ",
+ "PATH=\"${PATH}:/usr/local/bin\"",
+ "\n\n",
+ "# Upgrade pip and setuptools\n",
+ "pip install",
+ " --index-url=\"$PYPI_URL\"",
+ " --upgrade 'pip<10' 'setuptools<37;python_version<\"2.7\"' 'setuptools;python_version>=\"2.7\"'",
+ "\n\n",
+ "# Fix python urllib3 warnings\n",
+ "yum -y install gcc python-devel libffi-devel openssl-devel\n",
+ "pip install",
+ " --index-url=\"$PYPI_URL\"",
+ " --upgrade cffi\n",
+ "pip install",
+ " --index-url=\"$PYPI_URL\"",
+ " --upgrade 'cryptography<2.2;python_version<\"2.7\"' 'cryptography;python_version>=\"2.7\"'",
+ "\n\n",
+ "if [[ $(rpm --quiet -q aws-cfn-bootstrap || pip show --quiet aws-cfn-bootstrap)$? -ne 0 ]]\n",
+ "then\n",
+ " # Get cfn utils\n",
+ " pip install",
+ " --index-url=\"$PYPI_URL\"",
+ " --upgrade --upgrade-strategy only-if-needed ",
+ {
+ "Ref": "CfnBootstrapUtilsUrl"
+ },
+ "\n\n",
+ " # Fixup cfn utils\n",
+ " INITDIR=$(find -L /opt/aws/apitools/cfn-init/init -name redhat",
+ " 2> /dev/null || echo /usr/init/redhat)\n",
+ " chmod 775 ${INITDIR}/cfn-hup\n",
+ " ln -f -s ${INITDIR}/cfn-hup /etc/rc.d/init.d/cfn-hup\n",
+ " chkconfig --add cfn-hup\n",
+ " chkconfig cfn-hup on\n",
+ " mkdir -p /opt/aws/bin\n",
+ " BINDIR=$(find -L /opt/aws/apitools/cfn-init -name bin",
+ " 2> /dev/null || echo /usr/bin)\n",
+ " for SCRIPT in cfn-elect-cmd-leader cfn-get-metadata cfn-hup",
+ " cfn-init cfn-send-cmd-event cfn-send-cmd-result cfn-signal\n",
+ " do\n",
+ " ln -s ${BINDIR}/${SCRIPT} /opt/aws/bin/${SCRIPT} 2> /dev/null || ",
+ " echo Skipped symbolic link, /opt/aws/bin/${SCRIPT} already exists\n",
+ " done\n\n",
+ "fi\n\n",
+ "# Remove gcc now that it is no longer needed\n",
+ "yum -y remove gcc --setopt=clean_requirements_on_remove=1\n\n",
+ "# Add cfn utils to path\n",
+ "hash cfn-signal 2> /dev/null || ",
+ "PATH=\"${PATH}:/usr/local/bin:/opt/aws/bin\"",
+ "\n\n",
+ "# Execute cfn-init\n",
+ "cfn-init -v -c launch",
+ " --stack ",
+ {
+ "Ref": "AWS::StackName"
+ },
+ " --resource WatchmakerInstance",
+ {
+ "Fn::If": [
+ "AssignInstanceRole",
+ {
+ "Fn::Join": [
+ "",
+ [
+ " --role ",
+ {
+ "Ref": "InstanceRole"
+ }
+ ]
+ ]
+ },
+ ""
+ ]
+ },
+ {
+ "Fn::If": [
+ "UseCfnUrl",
+ {
+ "Fn::Join": [
+ "",
+ [
+ " --url ",
+ {
+ "Ref": "CfnEndpointUrl"
+ }
+ ]
+ ]
+ },
+ ""
+ ]
+ },
+ " --region ",
+ {
+ "Ref": "AWS::Region"
+ },
+ " ||",
+ " ( echo 'ERROR: cfn-init failed! Aborting!';",
+ " cfn-signal -e 1",
+ " --stack ",
+ {
+ "Ref": "AWS::StackName"
+ },
+ " --resource WatchmakerInstance",
+ {
+ "Fn::If": [
+ "AssignInstanceRole",
+ {
+ "Fn::Join": [
+ "",
+ [
+ " --role ",
+ {
+ "Ref": "InstanceRole"
+ }
+ ]
+ ]
+ },
+ ""
+ ]
+ },
+ {
+ "Fn::If": [
+ "UseCfnUrl",
+ {
+ "Fn::Join": [
+ "",
+ [
+ " --url ",
+ {
+ "Ref": "CfnEndpointUrl"
+ }
+ ]
+ ]
+ },
+ ""
+ ]
+ },
+ " --region ",
+ {
+ "Ref": "AWS::Region"
+ },
+ ";",
+ " exit 1",
+ " )\n\n",
+ "--===============3585321300151562773==--"
+ ]
+ ]
+ }
+ }
+ },
+ "Type": "AWS::EC2::Instance"
+ },
+ "WatchmakerInstanceLogGroup": {
+ "Condition": "InstallCloudWatchAgent",
+ "Properties": {
+ "LogGroupName": {
+ "Fn::Join": [
+ "",
+ [
+ "/aws/ec2/lx/",
+ {
+ "Ref": "AWS::StackName"
+ }
+ ]
+ ]
+ }
+ },
+ "Type": "AWS::Logs::LogGroup"
+ }
+ }
+}
diff --git a/test/integration/test_quickstart_templates.py b/test/integration/test_quickstart_templates.py
--- a/test/integration/test_quickstart_templates.py
+++ b/test/integration/test_quickstart_templates.py
@@ -36,6 +36,10 @@ def setUp(self):
"filename": 'fixtures/templates/public/lambda-poller.yaml',
"failures": 0
},
+ 'watchmaker': {
+ "filename": 'fixtures/templates/public/watchmaker.json',
+ "failures": 0
+ },
'nist_high_master': {
'filename': 'fixtures/templates/quickstart/nist_high_master.yaml',
'results_filename': 'fixtures/results/quickstart/nist_high_master.json'
|
v0.6.0 seems to have re-broken conditional NoValue entries
*cfn-lint version: (`cfn-lint --version`)*
```
cfn-lint 0.6.0
```
*Description of issue.*
Previously reported in #255 and fixed #257, released in v0.5.0. The same failure is now occuring in v0.6.0.
Can see the failure in our travis-ci job: https://travis-ci.org/plus3it/terraform-aws-watchmaker/jobs/419756223
|
@lorengordon sorry. Taking a look now.
@lorengordon -- can you provide a template snippet that's re-broken? It sounds like our current test coverage isn't capturing your use case.
@cmmeyer Pretty sure we haven't changed anything in our project, so the same snippet I provided in the linked issue ought to reproduce the failure... https://github.com/awslabs/cfn-python-lint/issues/255#issuecomment-410270970
Are you ok with adding this snippet to our testing suite as we work on a fix?
Certainly, it's from a public project.
|
2018-08-23T18:41:45Z
|
[] |
[] |
aws-cloudformation/cfn-lint
| 315 |
aws-cloudformation__cfn-lint-315
|
[
"239"
] |
d95146c076d51f7d9effd4105316f012094659b6
|
diff --git a/src/cfnlint/rules/resources/properties/Properties.py b/src/cfnlint/rules/resources/properties/Properties.py
--- a/src/cfnlint/rules/resources/properties/Properties.py
+++ b/src/cfnlint/rules/resources/properties/Properties.py
@@ -14,6 +14,7 @@
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
"""
+import six
from cfnlint import CloudFormationLintRule
from cfnlint import RuleMatch
import cfnlint.helpers
@@ -123,6 +124,24 @@ def check_list_for_condition(self, text, prop, parenttype, resourcename, propspe
return matches
+ def check_exceptions(self, parenttype, proptype, text):
+ """
+ Checks for exceptions to the spec
+ - Start with handling exceptions for templated code.
+ """
+ templated_exceptions = {
+ 'AWS::ApiGateway::RestApi': ['BodyS3Location'],
+ 'AWS::Lambda::Function': ['Code'],
+ 'AWS::ElasticBeanstalk::ApplicationVersion': ['SourceBundle'],
+ }
+
+ exceptions = templated_exceptions.get(parenttype, [])
+ if proptype in exceptions:
+ if isinstance(text, six.string_types):
+ return True
+
+ return False
+
def propertycheck(self, text, proptype, parenttype, resourcename, path, root):
"""Check individual properties"""
@@ -149,8 +168,9 @@ def propertycheck(self, text, proptype, parenttype, resourcename, path, root):
if text == 'AWS::NoValue':
return matches
if not isinstance(text, dict):
- message = 'Expecting an object at %s' % ('/'.join(map(str, path)))
- matches.append(RuleMatch(path, message))
+ if not self.check_exceptions(parenttype, proptype, text):
+ message = 'Expecting an object at %s' % ('/'.join(map(str, path)))
+ matches.append(RuleMatch(path, message))
return matches
for prop in text:
diff --git a/src/cfnlint/rules/resources/properties/PropertiesTemplated.py b/src/cfnlint/rules/resources/properties/PropertiesTemplated.py
new file mode 100644
--- /dev/null
+++ b/src/cfnlint/rules/resources/properties/PropertiesTemplated.py
@@ -0,0 +1,65 @@
+"""
+ Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ software and associated documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to use, copy, modify,
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
+import six
+from cfnlint import CloudFormationLintRule
+from cfnlint import RuleMatch
+
+
+class PropertiesTemplated(CloudFormationLintRule):
+ """Check Base Resource Configuration"""
+ id = 'W3002'
+ shortdesc = 'Warn when properties are configured to only work with the package command'
+ description = 'Some properties can be configured to only work with the CloudFormation' \
+ 'package command. Warn when this is the case so user is aware.'
+ source_url = 'https://docs.aws.amazon.com/cli/latest/reference/cloudformation/package.html'
+ tags = ['resources']
+
+ def __init__(self):
+ self.resource_property_types.extend([
+ 'AWS::ApiGateway::RestApi',
+ 'AWS::Lambda::Function',
+ 'AWS::ElasticBeanstalk::ApplicationVersion',
+ ])
+
+ def check_value(self, value, path):
+ """ Check the value """
+ matches = list()
+ if isinstance(value, six.string_types):
+ message = 'This code may only work with `package` cli command as the property (%s) is a string' % ('/'.join(map(str, path)))
+ matches.append(RuleMatch(path, message))
+
+ return matches
+
+ def match_resource_properties(self, properties, resourcetype, path, cfn):
+ """Check CloudFormation Properties"""
+ matches = list()
+
+ templated_exceptions = {
+ 'AWS::ApiGateway::RestApi': ['BodyS3Location'],
+ 'AWS::Lambda::Function': ['Code'],
+ 'AWS::ElasticBeanstalk::ApplicationVersion': ['SourceBundle'],
+ }
+
+ for key in templated_exceptions.get(resourcetype, []):
+ matches.extend(
+ cfn.check_value(
+ obj=properties, key=key,
+ path=path[:],
+ check_value=self.check_value
+ ))
+
+ return matches
|
diff --git a/test/fixtures/templates/bad/resources/properties/templated_code.yaml b/test/fixtures/templates/bad/resources/properties/templated_code.yaml
new file mode 100644
--- /dev/null
+++ b/test/fixtures/templates/bad/resources/properties/templated_code.yaml
@@ -0,0 +1,13 @@
+---
+AWSTemplateFormatVersion: "2010-09-09"
+Resources:
+ SampleLambda:
+ Type: AWS::Lambda::Function
+ Properties:
+ Role: role:arn
+ Runtime: python2.7
+ Handler: lambda_sample.handler
+ Code: ./sample.zip
+ Timeout: 300
+ # Still finds errors when objects aren't templatable
+ DeadLetterConfig: ./test.zip
diff --git a/test/fixtures/templates/good/resources/properties/templated_code.yaml b/test/fixtures/templates/good/resources/properties/templated_code.yaml
new file mode 100644
--- /dev/null
+++ b/test/fixtures/templates/good/resources/properties/templated_code.yaml
@@ -0,0 +1,12 @@
+---
+AWSTemplateFormatVersion: "2010-09-09"
+Resources:
+ SampleLambda:
+ Type: AWS::Lambda::Function
+ Properties:
+ Role: role:arn
+ Runtime: python2.7
+ Handler: lambda_sample.handler
+ # Templatable property
+ Code: ./sample.zip
+ Timeout: 300
diff --git a/test/rules/resources/properties/test_properties.py b/test/rules/resources/properties/test_properties.py
--- a/test/rules/resources/properties/test_properties.py
+++ b/test/rules/resources/properties/test_properties.py
@@ -25,7 +25,8 @@ def setUp(self):
super(TestResourceProperties, self).setUp()
self.collection.register(Properties())
self.success_templates = [
- 'fixtures/templates/good/resource_properties.yaml'
+ 'fixtures/templates/good/resource_properties.yaml',
+ 'fixtures/templates/good/resources/properties/templated_code.yaml',
]
def test_file_positive(self):
diff --git a/test/rules/resources/properties/test_properties_templated.py b/test/rules/resources/properties/test_properties_templated.py
new file mode 100644
--- /dev/null
+++ b/test/rules/resources/properties/test_properties_templated.py
@@ -0,0 +1,34 @@
+"""
+ Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ software and associated documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to use, copy, modify,
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
+from cfnlint.rules.resources.properties.PropertiesTemplated import PropertiesTemplated # pylint: disable=E0401
+from ... import BaseRuleTestCase
+
+
+class TestPropertiesTemplated(BaseRuleTestCase):
+ """Test Resource Properties"""
+ def setUp(self):
+ """Setup"""
+ super(TestPropertiesTemplated, self).setUp()
+ self.collection.register(PropertiesTemplated())
+
+ def test_file_positive(self):
+ """Test Positive"""
+ self.helper_file_positive()
+
+ def test_file_negative_4(self):
+ """Failure test"""
+ self.helper_file_negative('fixtures/templates/bad/resources/properties/templated_code.yaml', 1)
|
Linter doesn't handle templated code correctly
*cfn-lint version: cfn-lint 0.4.1
*Description of issue.*
The linter doesn't handle templated code [see reference](https://docs.aws.amazon.com/cli/latest/reference/cloudformation/package.html) where `Code: ./sample.zip` is accepted as a valid template but errors in the linter.
* Template linting issues:

* Please provide a CloudFormation sample that generated the issue.
```
SampleLambda:
Type: "AWS::Lambda::Function"
Properties:
Role:
Fn::ImportValue:
!Sub "${BuildSystemIAMStackName}-SampleLambdaRoleArn"
Runtime: python2.7
Handler: lambda_sample.handler
Code: ./sample.zip
Timeout: 300
```
* If present, please add links to the (official) documentation for clarification.
Above
What is the guidance on template files being interpreted as CFN yaml files? Should this be picked up by the linter?
|
Yea this is a good one. We probably shouldn't be giving you an error on this. The bummer (for us) here is that we are using the CloudFormation resource spec which requires Code to be an object. Since there is a separate aws cli command that can take that template, do some work on your behalf, and then output a "valid" template we are going to have to adjust for this case. @cmmeyer as much as I don't like exceptions I'm guessing we should make an exception for this one. Thoughts?
I would have to check more but I think we are good with all the Transform ones as @fatbasstard has already done some great work in that category.
Any progress on this? We'd like to enforce linting in our Codebuild pipeline and this is a pain to work with
|
2018-08-31T14:24:03Z
|
[] |
[] |
aws-cloudformation/cfn-lint
| 317 |
aws-cloudformation__cfn-lint-317
|
[
"314"
] |
5e4550af1b878e6d8820c6d7878993820ecdd7d8
|
diff --git a/src/cfnlint/rules/functions/SubUnneeded.py b/src/cfnlint/rules/functions/SubUnneeded.py
new file mode 100644
--- /dev/null
+++ b/src/cfnlint/rules/functions/SubUnneeded.py
@@ -0,0 +1,60 @@
+"""
+ Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ software and associated documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to use, copy, modify,
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
+import six
+from cfnlint import CloudFormationLintRule
+from cfnlint import RuleMatch
+
+
+class SubUnneeded(CloudFormationLintRule):
+ """Check if Sub is using a variable"""
+ id = 'W1020'
+ shortdesc = 'Sub isn\'t needed if it doesn\'t have a variable defined'
+ description = 'Checks sub strings to see if a variable is defined.'
+ source_url = 'https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html'
+ tags = ['functions', 'sub']
+
+ def _test_string(self, cfn, sub_string, tree):
+ """Test if a string has appropriate parameters"""
+
+ matches = list()
+ string_params = cfn.get_sub_parameters(sub_string)
+
+ if not string_params:
+ message = 'Fn::Sub isn\'t needed because there are no variables at {0}'
+ matches.append(RuleMatch(
+ tree, message.format('/'.join(map(str, tree)))))
+
+ return matches
+
+ def match(self, cfn):
+ """Check CloudFormation Join"""
+
+ matches = list()
+
+ sub_objs = cfn.search_deep_keys('Fn::Sub')
+
+ for sub_obj in sub_objs:
+ sub_value_obj = sub_obj[-1]
+ tree = sub_obj[:-1]
+ if isinstance(sub_value_obj, six.string_types):
+ matches.extend(self._test_string(cfn, sub_value_obj, tree))
+ elif isinstance(sub_value_obj, list):
+ if len(sub_value_obj) == 2:
+ sub_string = sub_value_obj[0]
+ matches.extend(self._test_string(cfn, sub_string, tree + [0]))
+
+ return matches
|
diff --git a/test/fixtures/results/quickstart/openshift.json b/test/fixtures/results/quickstart/openshift.json
--- a/test/fixtures/results/quickstart/openshift.json
+++ b/test/fixtures/results/quickstart/openshift.json
@@ -3,7 +3,8 @@
"Rule": {
"Id": "W7001",
"Description": "Making sure the mappings defined are used",
- "ShortDescription": "Check if Mappings are Used"
+ "ShortDescription": "Check if Mappings are Used",
+ "Source": "https://github.com/awslabs/cfn-python-lint"
},
"Location": {
"Start": {
@@ -17,13 +18,14 @@
},
"Level": "Warning",
"Message": "Mapping LinuxAMINameMap not used",
- "Filename": "test/templates/quickstart/openshift.yaml"
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml"
},
{
"Rule": {
"Id": "W3005",
- "Description": "Check if DependsOn is specified if not needed. A Ref and GetAtt implicitly results in DependsOn behaviour.",
- "ShortDescription": "Check obsolete DependsOn configuration for Resources"
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
},
"Location": {
"Start": {
@@ -36,14 +38,15 @@
}
},
"Level": "Warning",
- "Message": "Obsolete DependsOn on resource (OpenShiftNodeASG), dependency already enforced by \"!Ref\" at Resources/AnsibleConfigServer/Properties/UserData/Fn::Base64/Fn::Join/1/43/Ref/OpenShiftNodeASG",
- "Filename": "test/templates/quickstart/openshift.yaml"
+ "Message": "Obsolete DependsOn on resource (OpenShiftNodeASG), dependency already enforced by a \"Ref\" at Resources/AnsibleConfigServer/Properties/UserData/Fn::Base64/Fn::Join/1/43/Ref/OpenShiftNodeASG",
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml"
},
{
"Rule": {
"Id": "W3005",
- "Description": "Check if DependsOn is specified if not needed. A Ref and GetAtt implicitly results in DependsOn behaviour.",
- "ShortDescription": "Check obsolete DependsOn configuration for Resources"
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
},
"Location": {
"Start": {
@@ -56,14 +59,15 @@
}
},
"Level": "Warning",
- "Message": "Obsolete DependsOn on resource (OpenShiftNodeASG), dependency already enforced by \"!Ref\" at Resources/AnsibleConfigServer/Properties/UserData/Fn::Base64/Fn::Join/1/88/Ref/OpenShiftNodeASG",
- "Filename": "test/templates/quickstart/openshift.yaml"
+ "Message": "Obsolete DependsOn on resource (OpenShiftNodeASG), dependency already enforced by a \"Ref\" at Resources/AnsibleConfigServer/Properties/UserData/Fn::Base64/Fn::Join/1/88/Ref/OpenShiftNodeASG",
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -77,13 +81,14 @@
},
"Level": "Error",
"Message": "Property Resources/AnsibleConfigServer/Properties/NetworkInterfaces/0/AssociatePublicIpAddress should be of type Boolean",
- "Filename": "test/templates/quickstart/openshift.yaml"
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -97,13 +102,14 @@
},
"Level": "Error",
"Message": "Property Resources/AnsibleConfigServer/Properties/NetworkInterfaces/0/DeleteOnTermination should be of type Boolean",
- "Filename": "test/templates/quickstart/openshift.yaml"
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml"
},
{
"Rule": {
"Id": "W3005",
- "Description": "Check if DependsOn is specified if not needed. A Ref and GetAtt implicitly results in DependsOn behaviour.",
- "ShortDescription": "Check obsolete DependsOn configuration for Resources"
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
},
"Location": {
"Start": {
@@ -116,14 +122,36 @@
}
},
"Level": "Warning",
- "Message": "Obsolete DependsOn on resource (KeyGen), dependency already enforced by \"!Fn:GetAtt\" at Resources/GetRSA/Properties/ServiceToken/Fn::GetAtt/['KeyGen', 'Arn']",
- "Filename": "test/templates/quickstart/openshift.yaml"
+ "Message": "Obsolete DependsOn on resource (KeyGen), dependency already enforced by a \"Fn:GetAtt\" at Resources/GetRSA/Properties/ServiceToken/Fn::GetAtt/['KeyGen', 'Arn']",
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml"
+ },
+ {
+ "Rule": {
+ "Id": "W1020",
+ "Description": "Checks sub strings to see if a variable is defined.",
+ "ShortDescription": "Sub isn't needed if it doesn't have a variable defined",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ },
+ "Location": {
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 804
+ },
+ "End": {
+ "ColumnNumber": 18,
+ "LineNumber": 804
+ }
+ },
+ "Level": "Warning",
+ "Message": "Fn::Sub isn't needed because there are no variables at Resources/KeyGen/Properties/Code/S3Key/Fn::Sub",
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -137,13 +165,14 @@
},
"Level": "Error",
"Message": "Property Resources/KeyGen/Properties/Timeout should be of type Integer",
- "Filename": "test/templates/quickstart/openshift.yaml"
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -157,13 +186,14 @@
},
"Level": "Error",
"Message": "Property Resources/OpenShiftEtcdASG/Properties/Tags/0/PropagateAtLaunch should be of type Boolean",
- "Filename": "test/templates/quickstart/openshift.yaml"
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -177,13 +207,14 @@
},
"Level": "Error",
"Message": "Property Resources/OpenShiftEtcdLaunchConfig/Properties/BlockDeviceMappings/0/Ebs/VolumeSize should be of type Integer",
- "Filename": "test/templates/quickstart/openshift.yaml"
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -197,13 +228,14 @@
},
"Level": "Error",
"Message": "Property Resources/OpenShiftEtcdLaunchConfig/Properties/InstanceMonitoring should be of type Boolean",
- "Filename": "test/templates/quickstart/openshift.yaml"
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -217,13 +249,14 @@
},
"Level": "Error",
"Message": "Property Resources/OpenShiftMasterASG/Properties/Tags/0/PropagateAtLaunch should be of type Boolean",
- "Filename": "test/templates/quickstart/openshift.yaml"
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml"
},
{
"Rule": {
"Id": "W3005",
- "Description": "Check if DependsOn is specified if not needed. A Ref and GetAtt implicitly results in DependsOn behaviour.",
- "ShortDescription": "Check obsolete DependsOn configuration for Resources"
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
},
"Location": {
"Start": {
@@ -236,14 +269,15 @@
}
},
"Level": "Warning",
- "Message": "Obsolete DependsOn on resource (GetRSA), dependency already enforced by \"!Fn:GetAtt\" at Resources/OpenShiftMasterASLaunchConfig/Metadata/AWS::CloudFormation::Init/GetPublicKey/files//root/.ssh/public.key/content/Fn::Join/1/1/Fn::GetAtt/['GetRSA', 'PUB']",
- "Filename": "test/templates/quickstart/openshift.yaml"
+ "Message": "Obsolete DependsOn on resource (GetRSA), dependency already enforced by a \"Fn:GetAtt\" at Resources/OpenShiftMasterASLaunchConfig/Metadata/AWS::CloudFormation::Init/GetPublicKey/files//root/.ssh/public.key/content/Fn::Join/1/1/Fn::GetAtt/['GetRSA', 'PUB']",
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -257,13 +291,14 @@
},
"Level": "Error",
"Message": "Property Resources/OpenShiftMasterASLaunchConfig/Properties/BlockDeviceMappings/0/Ebs/VolumeSize should be of type Integer",
- "Filename": "test/templates/quickstart/openshift.yaml"
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -277,13 +312,14 @@
},
"Level": "Error",
"Message": "Property Resources/OpenShiftMasterASLaunchConfig/Properties/InstanceMonitoring should be of type Boolean",
- "Filename": "test/templates/quickstart/openshift.yaml"
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -297,13 +333,14 @@
},
"Level": "Error",
"Message": "Property Resources/OpenShiftNodeASG/Properties/Tags/0/PropagateAtLaunch should be of type Boolean",
- "Filename": "test/templates/quickstart/openshift.yaml"
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -317,13 +354,14 @@
},
"Level": "Error",
"Message": "Property Resources/OpenShiftNodeSecurityGroup/Properties/SecurityGroupIngress/1/FromPort should be of type Integer",
- "Filename": "test/templates/quickstart/openshift.yaml"
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -337,13 +375,14 @@
},
"Level": "Error",
"Message": "Property Resources/OpenShiftNodeSecurityGroup/Properties/SecurityGroupIngress/1/ToPort should be of type Integer",
- "Filename": "test/templates/quickstart/openshift.yaml"
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -357,13 +396,14 @@
},
"Level": "Error",
"Message": "Property Resources/OpenShiftNodeSecurityGroup/Properties/SecurityGroupIngress/2/FromPort should be of type Integer",
- "Filename": "test/templates/quickstart/openshift.yaml"
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -377,13 +417,14 @@
},
"Level": "Error",
"Message": "Property Resources/OpenShiftNodeSecurityGroup/Properties/SecurityGroupIngress/2/ToPort should be of type Integer",
- "Filename": "test/templates/quickstart/openshift.yaml"
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -397,13 +438,14 @@
},
"Level": "Error",
"Message": "Property Resources/OpenShiftNodesLaunchConfig/Properties/BlockDeviceMappings/0/Ebs/VolumeSize should be of type Integer",
- "Filename": "test/templates/quickstart/openshift.yaml"
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -417,13 +459,14 @@
},
"Level": "Error",
"Message": "Property Resources/OpenShiftNodesLaunchConfig/Properties/BlockDeviceMappings/1/Ebs/VolumeSize should be of type Integer",
- "Filename": "test/templates/quickstart/openshift.yaml"
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -437,13 +480,14 @@
},
"Level": "Error",
"Message": "Property Resources/OpenShiftNodesLaunchConfig/Properties/InstanceMonitoring should be of type Boolean",
- "Filename": "test/templates/quickstart/openshift.yaml"
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -457,13 +501,14 @@
},
"Level": "Error",
"Message": "Property Resources/OpenShiftSecurityGroup/Properties/SecurityGroupIngress/1/FromPort should be of type Integer",
- "Filename": "test/templates/quickstart/openshift.yaml"
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -477,13 +522,14 @@
},
"Level": "Error",
"Message": "Property Resources/OpenShiftSecurityGroup/Properties/SecurityGroupIngress/1/ToPort should be of type Integer",
- "Filename": "test/templates/quickstart/openshift.yaml"
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -497,13 +543,14 @@
},
"Level": "Error",
"Message": "Property Resources/OpenShiftSecurityGroup/Properties/SecurityGroupIngress/2/FromPort should be of type Integer",
- "Filename": "test/templates/quickstart/openshift.yaml"
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -517,6 +564,6 @@
},
"Level": "Error",
"Message": "Property Resources/OpenShiftSecurityGroup/Properties/SecurityGroupIngress/2/ToPort should be of type Integer",
- "Filename": "test/templates/quickstart/openshift.yaml"
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml"
}
]
diff --git a/test/fixtures/templates/bad/functions/sub_unneeded.yaml b/test/fixtures/templates/bad/functions/sub_unneeded.yaml
new file mode 100644
--- /dev/null
+++ b/test/fixtures/templates/bad/functions/sub_unneeded.yaml
@@ -0,0 +1,8 @@
+---
+AWSTemplateFormatVersion: "2010-09-09"
+Resources:
+ myInstance:
+ Type: AWS::EC2::Instance
+ Properties:
+ # Sub without a variable
+ ImageId: !Sub "ami-123456"
diff --git a/test/rules/functions/test_sub_unneeded.py b/test/rules/functions/test_sub_unneeded.py
new file mode 100644
--- /dev/null
+++ b/test/rules/functions/test_sub_unneeded.py
@@ -0,0 +1,37 @@
+"""
+ Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ software and associated documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to use, copy, modify,
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
+from cfnlint.rules.functions.SubUnneeded import SubUnneeded # pylint: disable=E0401
+from .. import BaseRuleTestCase
+
+
+class TestSubUnneeded(BaseRuleTestCase):
+ """Test Rules Get Att """
+ def setUp(self):
+ """Setup"""
+ super(TestSubUnneeded, self).setUp()
+ self.collection.register(SubUnneeded())
+ self.success_templates = [
+ 'fixtures/templates/good/functions_sub.yaml',
+ ]
+
+ def test_file_positive(self):
+ """Test Positive"""
+ self.helper_file_positive()
+
+ def test_file_negative(self):
+ """Test failure"""
+ self.helper_file_negative('fixtures/templates/bad/functions/sub_unneeded.yaml', 1)
|
Unnecessary !Sub not detected
*cfn-lint version: (`cfn-lint --version`)* 0.5.0
*Description of issue.*
When refactoring code it can quite often be the situation we end up with `!Sub` applied to a string that has no substitutions, e.g. `!Sub foo`. This is less clear to read than the plain string `foo`, so it would be good to detect such cases and complain about them.
|
Good one. This shouldn't be hard. Thanks!
|
2018-08-31T14:49:30Z
|
[] |
[] |
aws-cloudformation/cfn-lint
| 318 |
aws-cloudformation__cfn-lint-318
|
[
"316"
] |
38b0f23a319eddd9b94dc9e2649c64b96775214e
|
diff --git a/src/cfnlint/rules/functions/If.py b/src/cfnlint/rules/functions/If.py
new file mode 100644
--- /dev/null
+++ b/src/cfnlint/rules/functions/If.py
@@ -0,0 +1,52 @@
+"""
+ Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ software and associated documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to use, copy, modify,
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
+import six
+from cfnlint import CloudFormationLintRule
+from cfnlint import RuleMatch
+
+
+class If(CloudFormationLintRule):
+ """Check if Condition exists"""
+ id = 'E1028'
+ shortdesc = 'Check Fn::If structure for validity'
+ description = 'Check Fn::If to make sure its valid. Condition has to be a string.'
+ source_url = 'https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-conditions.html#intrinsic-function-reference-conditions-if'
+ tags = ['functions', 'if']
+
+ def match(self, cfn):
+ """Check CloudFormation Conditions"""
+
+ matches = list()
+
+ # Build the list of functions
+ iftrees = cfn.search_deep_keys('Fn::If')
+
+ # Get the conditions used in the functions
+ for iftree in iftrees:
+ if isinstance(iftree[-1], list):
+ if_condition = iftree[-1][0]
+ else:
+ if_condition = iftree[-1]
+
+ if not isinstance(if_condition, six.string_types):
+ message = 'Fn::If first elements must be a condition and a string.'
+ matches.append(RuleMatch(
+ iftree[:-1] + [0],
+ message.format(if_condition)
+ ))
+
+ return matches
|
diff --git a/test/fixtures/templates/bad/functions/if.yaml b/test/fixtures/templates/bad/functions/if.yaml
new file mode 100644
--- /dev/null
+++ b/test/fixtures/templates/bad/functions/if.yaml
@@ -0,0 +1,17 @@
+---
+AWSTemplateFormatVersion: "2010-09-09"
+Parameters:
+ myEnvironment:
+ Type: String
+ Default: dev
+ myCondition:
+ Type: String
+ Default: isDevelopment
+Conditions:
+ isProduction: !Equals [!Ref myEnvironment, 'prd']
+ isDevelopment: !Equals [!Ref myEnvironment, 'dev']
+Resources:
+ myInstance:
+ Type: AWS::EC2::Instance
+ Properties:
+ ImageId: !If [!Ref myCondition, 'ami-123456', 'ami-abcdef']
diff --git a/test/rules/functions/test_if.py b/test/rules/functions/test_if.py
new file mode 100644
--- /dev/null
+++ b/test/rules/functions/test_if.py
@@ -0,0 +1,34 @@
+"""
+ Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ software and associated documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to use, copy, modify,
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
+from cfnlint.rules.functions.If import If # pylint: disable=E0401
+from .. import BaseRuleTestCase
+
+
+class TestIf(BaseRuleTestCase):
+ """Test Rules If conditions exist """
+ def setUp(self):
+ """Setup"""
+ super(TestIf, self).setUp()
+ self.collection.register(If())
+
+ def test_file_positive(self):
+ """Test Positive"""
+ self.helper_file_positive()
+
+ def test_file_negative(self):
+ """Test failure"""
+ self.helper_file_negative('fixtures/templates/bad/functions/if.yaml', 1)
|
Fn::If first element needs to be a condition and cannot be a function
*cfn-lint version: (`cfn-lint --version`)*
5.0.2
*Description of issue.*
Template validation error: Template error: Fn::If requires a list argument with the first element being a condition
Please provide as much information as possible:
```
Resources:
myInstance:
Type: AWS::EC2::Instance
Properties:
ImageId: !If [ !Ref ConditionToUse, 'ami-1234567', 'ami-abcdefg']
```
|
2018-08-31T15:03:02Z
|
[] |
[] |
|
aws-cloudformation/cfn-lint
| 319 |
aws-cloudformation__cfn-lint-319
|
[
"313"
] |
55cd236ee863f6337498d36faf46cb15240dd834
|
diff --git a/src/cfnlint/rules/resources/iam/Policy.py b/src/cfnlint/rules/resources/iam/Policy.py
--- a/src/cfnlint/rules/resources/iam/Policy.py
+++ b/src/cfnlint/rules/resources/iam/Policy.py
@@ -14,6 +14,7 @@
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
"""
+from datetime import date
from cfnlint import CloudFormationLintRule
from cfnlint import RuleMatch
@@ -27,7 +28,29 @@ class Policy(CloudFormationLintRule):
source_url = 'https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-policy.html'
tags = ['properties', 'iam']
- def _check_policy_document(self, cfn, branch, policy):
+ def __init__(self):
+ """Init"""
+ self.resources_and_keys = {
+ 'AWS::SNS::TopicPolicy': 'PolicyDocument',
+ 'AWS::S3::BucketPolicy': 'PolicyDocument',
+ 'AWS::KMS::Key': 'KeyPolicy',
+ 'AWS::SQS::QueuePolicy': 'PolicyDocument',
+ 'AWS::ECR::Repository': 'RepositoryPolicyText',
+ 'AWS::Elasticsearch::Domain': 'AccessPolicies',
+ }
+ self.idp_and_keys = {
+ 'AWS::IAM::Group': 'Policies',
+ 'AWS::IAM::ManagedPolicy': 'PolicyDocument',
+ 'AWS::IAM::Policy': 'PolicyDocument',
+ 'AWS::IAM::Role': 'Policies',
+ 'AWS::IAM::User': 'Policies',
+ }
+ for resource_type in self.resources_and_keys:
+ self.resource_property_types.append(resource_type)
+ for resource_type in self.idp_and_keys:
+ self.resource_property_types.append(resource_type)
+
+ def check_policy_document(self, value, path, cfn, is_identity_policy):
"""Check policy document"""
matches = list()
@@ -36,34 +59,41 @@ def _check_policy_document(self, cfn, branch, policy):
'Id',
'Statement',
]
+ valid_versions = ['2012-10-17', '2008-10-17', date(2012, 10, 17), date(2008, 10, 17)]
- if not isinstance(policy, dict):
+ if not isinstance(value, dict):
message = 'IAM Policy Documents needs to be JSON'
matches.append(
- RuleMatch(branch[:], message))
+ RuleMatch(path[:], message))
return matches
- for parent_key, parent_value in policy.items():
+ for parent_key, parent_value in value.items():
if parent_key not in valid_keys:
message = 'IAM Policy key %s doesn\'t exist.' % (parent_key)
matches.append(
- RuleMatch(branch[:] + [parent_key], message))
+ RuleMatch(path[:] + [parent_key], message))
+ if parent_key == 'Version':
+ if parent_value not in valid_versions:
+ message = 'IAM Policy Version needs to be one of (%s).' % (
+ ', '.join(map(str, ['2012-10-17', '2008-10-17'])))
+ matches.append(
+ RuleMatch(path[:] + [parent_key], message))
if parent_key == 'Statement':
if isinstance(parent_value, (list)):
- values = cfn.get_values(policy, 'Statement', branch[:])
- for value in values:
+ statements = cfn.get_values(value, 'Statement', path[:])
+ for statement in statements:
matches.extend(
self._check_policy_statement(
- value['Path'], value['Value']
+ statement['Path'], statement['Value'], is_identity_policy
)
)
else:
message = 'IAM Policy statement should be of list.'
matches.append(
- RuleMatch(branch[:] + [parent_key], message))
+ RuleMatch(path[:] + [parent_key], message))
return matches
- def _check_policy_statement(self, branch, statement):
+ def _check_policy_statement(self, branch, statement, is_identity_policy):
"""Check statements"""
matches = list()
statement_valid_keys = [
@@ -97,14 +127,16 @@ def _check_policy_statement(self, branch, statement):
message = 'IAM Policy statement missing Action or NotAction'
matches.append(
RuleMatch(branch[:], message))
- if 'Principal' in statement:
- message = 'IAM Policy statement shouldn\'t have Principal'
- matches.append(
- RuleMatch(branch[:] + ['Principal'], message))
- if 'NotPrincipal' in statement:
- message = 'IAM Policy statement shouldn\'t have NotPrincipal'
- matches.append(
- RuleMatch(branch[:] + ['NotPrincipal'], message))
+ if is_identity_policy:
+ if 'Principal' in statement or 'NotPrincipal' in statement:
+ message = 'IAM Resource Policy statement shouldn\'t have Principal or NotPrincipal'
+ matches.append(
+ RuleMatch(branch[:], message))
+ else:
+ if 'Principal' not in statement and 'NotPrincipal' not in statement:
+ message = 'IAM Resource Policy statement should have Principal or NotPrincipal'
+ matches.append(
+ RuleMatch(branch[:] + ['Principal'], message))
if 'Resource' not in statement and 'NotResource' not in statement:
message = 'IAM Policy statement missing Resource or NotResource'
matches.append(
@@ -112,45 +144,42 @@ def _check_policy_statement(self, branch, statement):
return(matches)
- def _check_policy(self, cfn, branch, policy):
- """Checks a policy"""
+ def match_resource_properties(self, properties, resourcetype, path, cfn):
+ """Check CloudFormation Properties"""
matches = list()
- policy_document = policy.get('PolicyDocument', {})
- matches.extend(
- self._check_policy_document(
- cfn, branch + ['PolicyDocument'], policy_document))
-
- return matches
- def match(self, cfn):
- """Check IAM Policies Properties"""
+ is_identity_policy = True
+ if resourcetype in self.resources_and_keys:
+ is_identity_policy = False
- matches = list()
+ key = None
+ if resourcetype in self.resources_and_keys:
+ key = self.resources_and_keys.get(resourcetype)
+ else:
+ key = self.idp_and_keys.get(resourcetype)
- iam_types = [
- 'AWS::IAM::Group',
- 'AWS::IAM::ManagedPolicy',
- 'AWS::IAM::Policy',
- 'AWS::IAM::Role',
- 'AWS::IAM::User',
- ]
+ if not key:
+ # Key isn't defined return nothing
+ return matches
- resources = cfn.get_resources(iam_types)
- for resource_name, resource_values in resources.items():
- tree = ['Resources', resource_name, 'Properties']
- properties = resource_values.get('Properties', {})
- if properties:
- if properties.get('PolicyDocument'):
- values = cfn.get_values(properties, 'PolicyDocument', tree)
- for value in values:
- matches.extend(
- self._check_policy_document(
- cfn, value['Path'], value['Value']))
- if properties.get('Policies'):
- values = cfn.get_values(properties, 'Policies', tree)
- for value in values:
- matches.extend(
- self._check_policy(
- cfn, value['Path'], value['Value']))
+ if key == 'Policies':
+ for index, policy in enumerate(properties.get(key, [])):
+ matches.extend(
+ cfn.check_value(
+ obj=policy, key='PolicyDocument',
+ path=path[:] + ['Policies', index],
+ check_value=self.check_policy_document,
+ cfn=cfn,
+ is_identity_policy=is_identity_policy
+ ))
+ else:
+ matches.extend(
+ cfn.check_value(
+ obj=properties, key=key,
+ path=path[:],
+ check_value=self.check_policy_document,
+ cfn=cfn,
+ is_identity_policy=is_identity_policy
+ ))
return matches
diff --git a/src/cfnlint/rules/resources/iam/PolicyVersion.py b/src/cfnlint/rules/resources/iam/PolicyVersion.py
new file mode 100644
--- /dev/null
+++ b/src/cfnlint/rules/resources/iam/PolicyVersion.py
@@ -0,0 +1,94 @@
+"""
+ Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ software and associated documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to use, copy, modify,
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
+from datetime import date
+from cfnlint import CloudFormationLintRule
+from cfnlint import RuleMatch
+
+
+class PolicyVersion(CloudFormationLintRule):
+ """Check if IAM Policy Version is correct"""
+ id = 'W2511'
+ shortdesc = 'Check IAM Resource Policies syntax'
+ description = 'See if the elements inside an IAM Resource policy ' + \
+ 'are configured correctly.'
+ source_url = 'https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements.html'
+ tags = ['properties', 'iam']
+
+ def __init__(self):
+ """Init"""
+ self.resources_and_keys = {
+ 'AWS::SNS::TopicPolicy': 'PolicyDocument',
+ 'AWS::S3::BucketPolicy': 'PolicyDocument',
+ 'AWS::KMS::Key': 'KeyPolicy',
+ 'AWS::SQS::QueuePolicy': 'PolicyDocument',
+ 'AWS::ECR::Repository': 'RepositoryPolicyText',
+ 'AWS::Elasticsearch::Domain': 'AccessPolicies',
+ }
+ self.idp_and_keys = {
+ 'AWS::IAM::Group': 'Policies',
+ 'AWS::IAM::ManagedPolicy': 'PolicyDocument',
+ 'AWS::IAM::Policy': 'PolicyDocument',
+ 'AWS::IAM::Role': 'Policies',
+ 'AWS::IAM::User': 'Policies',
+ }
+ for resource_type in self.resources_and_keys:
+ self.resource_property_types.append(resource_type)
+ for resource_type in self.idp_and_keys:
+ self.resource_property_types.append(resource_type)
+
+ def check_policy_document(self, value, path):
+ """Check policy document"""
+ matches = list()
+
+ if not isinstance(value, dict):
+ return matches
+
+ version = value.get('Version')
+ if version:
+ if version in ['2008-10-17', date(2008, 10, 17)]:
+ message = 'IAM Policy Version should be updated to \'2012-10-17\'.'
+ matches.append(
+ RuleMatch(path[:] + ['Version'], message))
+ return matches
+
+ def match_resource_properties(self, properties, resourcetype, path, cfn):
+ """Check CloudFormation Properties"""
+ matches = list()
+
+ key = None
+ if resourcetype in self.resources_and_keys:
+ key = self.resources_and_keys.get(resourcetype)
+ else:
+ key = self.idp_and_keys.get(resourcetype)
+
+ if key == 'Policies':
+ for index, policy in enumerate(properties.get(key, [])):
+ matches.extend(
+ cfn.check_value(
+ obj=policy, key='PolicyDocument',
+ path=path[:] + ['Policies', index],
+ check_value=self.check_policy_document,
+ ))
+ else:
+ matches.extend(
+ cfn.check_value(
+ obj=properties, key=key,
+ path=path[:],
+ check_value=self.check_policy_document
+ ))
+
+ return matches
|
diff --git a/test/fixtures/results/quickstart/nist_application.json b/test/fixtures/results/quickstart/nist_application.json
--- a/test/fixtures/results/quickstart/nist_application.json
+++ b/test/fixtures/results/quickstart/nist_application.json
@@ -2,8 +2,9 @@
{
"Rule": {
"Id": "W2506",
- "Description": "See if there are any refs for ImageId to a parameter of innapropriate type. Appropriate Types are [AWS::EC2::Image::Id, AWS::SSM::Parameter::Value<AWS::EC2::Image::Id>]",
- "ShortDescription": "Check if ImageId Parameters have the correct type"
+ "Description": "See if there are any refs for ImageId to a parameter of inappropriate type. Appropriate Types are [AWS::EC2::Image::Id, AWS::SSM::Parameter::Value<AWS::EC2::Image::Id>]",
+ "ShortDescription": "Check if ImageId Parameters have the correct type",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/best-practices.html#parmtypes"
},
"Location": {
"Start": {
@@ -17,13 +18,14 @@
},
"Level": "Warning",
"Message": "Parameter pAppAmi should be of type [AWS::EC2::Image::Id, AWS::SSM::Parameter::Value<AWS::EC2::Image::Id>]",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "W2509",
"Description": "Check if a parameter is being used as a CIDR. If it is make sure it has allowed values regex comparisons",
- "ShortDescription": "CIDR Parameters have allowed values"
+ "ShortDescription": "CIDR Parameters have allowed values",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/parameters-section-structure.html"
},
"Location": {
"Start": {
@@ -37,13 +39,14 @@
},
"Level": "Warning",
"Message": "AllowedPattern and/or AllowedValues for Parameter should be specified at Parameters/pManagementCIDR. Example for AllowedPattern: \"^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/([0-9]|[1-2][0-9]|3[0-2]))$\"",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "W2509",
"Description": "Check if a parameter is being used as a CIDR. If it is make sure it has allowed values regex comparisons",
- "ShortDescription": "CIDR Parameters have allowed values"
+ "ShortDescription": "CIDR Parameters have allowed values",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/parameters-section-structure.html"
},
"Location": {
"Start": {
@@ -57,13 +60,14 @@
},
"Level": "Warning",
"Message": "AllowedPattern and/or AllowedValues for Parameter should be specified at Parameters/pProductionCIDR. Example for AllowedPattern: \"^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/([0-9]|[1-2][0-9]|3[0-2]))$\"",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "W2506",
- "Description": "See if there are any refs for ImageId to a parameter of innapropriate type. Appropriate Types are [AWS::EC2::Image::Id, AWS::SSM::Parameter::Value<AWS::EC2::Image::Id>]",
- "ShortDescription": "Check if ImageId Parameters have the correct type"
+ "Description": "See if there are any refs for ImageId to a parameter of inappropriate type. Appropriate Types are [AWS::EC2::Image::Id, AWS::SSM::Parameter::Value<AWS::EC2::Image::Id>]",
+ "ShortDescription": "Check if ImageId Parameters have the correct type",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/best-practices.html#parmtypes"
},
"Location": {
"Start": {
@@ -77,13 +81,14 @@
},
"Level": "Warning",
"Message": "Parameter pWebServerAMI should be of type [AWS::EC2::Image::Id, AWS::SSM::Parameter::Value<AWS::EC2::Image::Id>]",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "W3005",
- "Description": "Check if DependsOn is specified if not needed. A Ref and GetAtt implicitly results in DependsOn behaviour.",
- "ShortDescription": "Check obsolete DependsOn configuration for Resources"
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
},
"Location": {
"Start": {
@@ -96,14 +101,15 @@
}
},
"Level": "Warning",
- "Message": "Obsolete DependsOn on resource (rRDSInstanceMySQL), dependency already enforced by \"!Fn:GetAtt\" at Resources/rAutoScalingConfigApp/Metadata/AWS::CloudFormation::Init/install_wordpress/files//tmp/create-wp-config/content/Fn::Join/1/12/Fn::GetAtt/['rRDSInstanceMySQL', 'Endpoint.Address']",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Message": "Obsolete DependsOn on resource (rRDSInstanceMySQL), dependency already enforced by a \"Fn:GetAtt\" at Resources/rAutoScalingConfigApp/Metadata/AWS::CloudFormation::Init/install_wordpress/files//tmp/create-wp-config/content/Fn::Join/1/12/Fn::GetAtt/['rRDSInstanceMySQL', 'Endpoint.Address']",
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "W3005",
- "Description": "Check if DependsOn is specified if not needed. A Ref and GetAtt implicitly results in DependsOn behaviour.",
- "ShortDescription": "Check obsolete DependsOn configuration for Resources"
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
},
"Location": {
"Start": {
@@ -116,14 +122,15 @@
}
},
"Level": "Warning",
- "Message": "Obsolete DependsOn on resource (rELBApp), dependency already enforced by \"!Fn:GetAtt\" at Resources/rAutoScalingConfigWeb/Metadata/AWS::CloudFormation::Init/nginx/files//tmp/nginx/default.conf/content/Fn::Join/1/9/Fn::GetAtt/['rELBApp', 'DNSName']",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Message": "Obsolete DependsOn on resource (rELBApp), dependency already enforced by a \"Fn:GetAtt\" at Resources/rAutoScalingConfigWeb/Metadata/AWS::CloudFormation::Init/nginx/files//tmp/nginx/default.conf/content/Fn::Join/1/9/Fn::GetAtt/['rELBApp', 'DNSName']",
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -137,13 +144,14 @@
},
"Level": "Error",
"Message": "Property Resources/rAutoScalingConfigWeb/Properties/AssociatePublicIpAddress should be of type Boolean",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -157,13 +165,14 @@
},
"Level": "Error",
"Message": "Property Resources/rAutoScalingDownApp/Properties/ScalingAdjustment should be of type Integer",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -177,13 +186,14 @@
},
"Level": "Error",
"Message": "Property Resources/rAutoScalingDownWeb/Properties/ScalingAdjustment should be of type Integer",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "W3005",
- "Description": "Check if DependsOn is specified if not needed. A Ref and GetAtt implicitly results in DependsOn behaviour.",
- "ShortDescription": "Check obsolete DependsOn configuration for Resources"
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
},
"Location": {
"Start": {
@@ -196,14 +206,15 @@
}
},
"Level": "Warning",
- "Message": "Obsolete DependsOn on resource (rAutoScalingConfigApp), dependency already enforced by \"!Ref\" at Resources/rAutoScalingGroupApp/Properties/LaunchConfigurationName/Ref/rAutoScalingConfigApp",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Message": "Obsolete DependsOn on resource (rAutoScalingConfigApp), dependency already enforced by a \"Ref\" at Resources/rAutoScalingGroupApp/Properties/LaunchConfigurationName/Ref/rAutoScalingConfigApp",
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -217,13 +228,14 @@
},
"Level": "Error",
"Message": "Property Resources/rAutoScalingGroupApp/Properties/HealthCheckGracePeriod should be of type Integer",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -237,13 +249,14 @@
},
"Level": "Error",
"Message": "Property Resources/rAutoScalingGroupApp/Properties/Tags/0/PropagateAtLaunch should be of type Boolean",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -257,13 +270,14 @@
},
"Level": "Error",
"Message": "Property Resources/rAutoScalingGroupApp/Properties/Tags/1/PropagateAtLaunch should be of type Boolean",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "W3005",
- "Description": "Check if DependsOn is specified if not needed. A Ref and GetAtt implicitly results in DependsOn behaviour.",
- "ShortDescription": "Check obsolete DependsOn configuration for Resources"
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
},
"Location": {
"Start": {
@@ -276,14 +290,15 @@
}
},
"Level": "Warning",
- "Message": "Obsolete DependsOn on resource (rAutoScalingConfigWeb), dependency already enforced by \"!Ref\" at Resources/rAutoScalingGroupWeb/Properties/LaunchConfigurationName/Ref/rAutoScalingConfigWeb",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Message": "Obsolete DependsOn on resource (rAutoScalingConfigWeb), dependency already enforced by a \"Ref\" at Resources/rAutoScalingGroupWeb/Properties/LaunchConfigurationName/Ref/rAutoScalingConfigWeb",
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -297,13 +312,14 @@
},
"Level": "Error",
"Message": "Property Resources/rAutoScalingGroupWeb/Properties/HealthCheckGracePeriod should be of type Integer",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -317,13 +333,14 @@
},
"Level": "Error",
"Message": "Property Resources/rAutoScalingGroupWeb/Properties/Tags/0/PropagateAtLaunch should be of type Boolean",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -337,13 +354,14 @@
},
"Level": "Error",
"Message": "Property Resources/rAutoScalingGroupWeb/Properties/Tags/1/PropagateAtLaunch should be of type Boolean",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -357,13 +375,14 @@
},
"Level": "Error",
"Message": "Property Resources/rAutoScalingUpApp/Properties/ScalingAdjustment should be of type Integer",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -377,13 +396,14 @@
},
"Level": "Error",
"Message": "Property Resources/rAutoScalingUpWeb/Properties/ScalingAdjustment should be of type Integer",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -397,13 +417,14 @@
},
"Level": "Error",
"Message": "Property Resources/rCWAlarmHighCPUApp/Properties/EvaluationPeriods should be of type Integer",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -417,13 +438,14 @@
},
"Level": "Error",
"Message": "Property Resources/rCWAlarmHighCPUApp/Properties/Period should be of type Integer",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -437,13 +459,14 @@
},
"Level": "Error",
"Message": "Property Resources/rCWAlarmHighCPUApp/Properties/Threshold should be of type Double",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -457,13 +480,14 @@
},
"Level": "Error",
"Message": "Property Resources/rCWAlarmHighCPUWeb/Properties/EvaluationPeriods should be of type Integer",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -477,13 +501,14 @@
},
"Level": "Error",
"Message": "Property Resources/rCWAlarmHighCPUWeb/Properties/Period should be of type Integer",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -497,13 +522,14 @@
},
"Level": "Error",
"Message": "Property Resources/rCWAlarmHighCPUWeb/Properties/Threshold should be of type Double",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -517,13 +543,14 @@
},
"Level": "Error",
"Message": "Property Resources/rCWAlarmLowCPUApp/Properties/EvaluationPeriods should be of type Integer",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -537,13 +564,14 @@
},
"Level": "Error",
"Message": "Property Resources/rCWAlarmLowCPUApp/Properties/Period should be of type Integer",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -557,13 +585,14 @@
},
"Level": "Error",
"Message": "Property Resources/rCWAlarmLowCPUApp/Properties/Threshold should be of type Double",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "W3005",
- "Description": "Check if DependsOn is specified if not needed. A Ref and GetAtt implicitly results in DependsOn behaviour.",
- "ShortDescription": "Check obsolete DependsOn configuration for Resources"
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
},
"Location": {
"Start": {
@@ -576,14 +605,15 @@
}
},
"Level": "Warning",
- "Message": "Obsolete DependsOn on resource (rAutoScalingGroupWeb), dependency already enforced by \"!Ref\" at Resources/rCWAlarmLowCPUWeb/Properties/Dimensions/0/Value/Ref/rAutoScalingGroupWeb",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Message": "Obsolete DependsOn on resource (rAutoScalingGroupWeb), dependency already enforced by a \"Ref\" at Resources/rCWAlarmLowCPUWeb/Properties/Dimensions/0/Value/Ref/rAutoScalingGroupWeb",
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -597,13 +627,14 @@
},
"Level": "Error",
"Message": "Property Resources/rCWAlarmLowCPUWeb/Properties/EvaluationPeriods should be of type Integer",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -617,13 +648,14 @@
},
"Level": "Error",
"Message": "Property Resources/rCWAlarmLowCPUWeb/Properties/Period should be of type Integer",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -637,13 +669,14 @@
},
"Level": "Error",
"Message": "Property Resources/rCWAlarmLowCPUWeb/Properties/Threshold should be of type Double",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "W3005",
- "Description": "Check if DependsOn is specified if not needed. A Ref and GetAtt implicitly results in DependsOn behaviour.",
- "ShortDescription": "Check obsolete DependsOn configuration for Resources"
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
},
"Location": {
"Start": {
@@ -656,14 +689,15 @@
}
},
"Level": "Warning",
- "Message": "Obsolete DependsOn on resource (rS3ELBAccessLogs), dependency already enforced by \"!Ref\" at Resources/rELBApp/Properties/AccessLoggingPolicy/S3BucketName/Ref/rS3ELBAccessLogs",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Message": "Obsolete DependsOn on resource (rS3ELBAccessLogs), dependency already enforced by a \"Ref\" at Resources/rELBApp/Properties/AccessLoggingPolicy/S3BucketName/Ref/rS3ELBAccessLogs",
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "W3005",
- "Description": "Check if DependsOn is specified if not needed. A Ref and GetAtt implicitly results in DependsOn behaviour.",
- "ShortDescription": "Check obsolete DependsOn configuration for Resources"
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
},
"Location": {
"Start": {
@@ -676,14 +710,15 @@
}
},
"Level": "Warning",
- "Message": "Obsolete DependsOn on resource (rSecurityGroupApp), dependency already enforced by \"!Ref\" at Resources/rELBApp/Properties/SecurityGroups/0/Ref/rSecurityGroupApp",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Message": "Obsolete DependsOn on resource (rSecurityGroupApp), dependency already enforced by a \"Ref\" at Resources/rELBApp/Properties/SecurityGroups/0/Ref/rSecurityGroupApp",
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -697,13 +732,14 @@
},
"Level": "Error",
"Message": "Property Resources/rELBApp/Properties/AccessLoggingPolicy/EmitInterval should be of type Integer",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -717,13 +753,14 @@
},
"Level": "Error",
"Message": "Property Resources/rELBApp/Properties/AccessLoggingPolicy/Enabled should be of type Boolean",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "W3005",
- "Description": "Check if DependsOn is specified if not needed. A Ref and GetAtt implicitly results in DependsOn behaviour.",
- "ShortDescription": "Check obsolete DependsOn configuration for Resources"
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
},
"Location": {
"Start": {
@@ -736,14 +773,15 @@
}
},
"Level": "Warning",
- "Message": "Obsolete DependsOn on resource (rS3ELBAccessLogs), dependency already enforced by \"!Ref\" at Resources/rELBWeb/Properties/AccessLoggingPolicy/S3BucketName/Ref/rS3ELBAccessLogs",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Message": "Obsolete DependsOn on resource (rS3ELBAccessLogs), dependency already enforced by a \"Ref\" at Resources/rELBWeb/Properties/AccessLoggingPolicy/S3BucketName/Ref/rS3ELBAccessLogs",
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "W3005",
- "Description": "Check if DependsOn is specified if not needed. A Ref and GetAtt implicitly results in DependsOn behaviour.",
- "ShortDescription": "Check obsolete DependsOn configuration for Resources"
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
},
"Location": {
"Start": {
@@ -756,14 +794,15 @@
}
},
"Level": "Warning",
- "Message": "Obsolete DependsOn on resource (rSecurityGroupWeb), dependency already enforced by \"!Ref\" at Resources/rELBWeb/Properties/SecurityGroups/0/Ref/rSecurityGroupWeb",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Message": "Obsolete DependsOn on resource (rSecurityGroupWeb), dependency already enforced by a \"Ref\" at Resources/rELBWeb/Properties/SecurityGroups/0/Ref/rSecurityGroupWeb",
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -777,13 +816,14 @@
},
"Level": "Error",
"Message": "Property Resources/rELBWeb/Properties/AccessLoggingPolicy/EmitInterval should be of type Integer",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -797,13 +837,14 @@
},
"Level": "Error",
"Message": "Property Resources/rELBWeb/Properties/AccessLoggingPolicy/Enabled should be of type Boolean",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "W3005",
- "Description": "Check if DependsOn is specified if not needed. A Ref and GetAtt implicitly results in DependsOn behaviour.",
- "ShortDescription": "Check obsolete DependsOn configuration for Resources"
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
},
"Location": {
"Start": {
@@ -816,14 +857,15 @@
}
},
"Level": "Warning",
- "Message": "Obsolete DependsOn on resource (rDBSubnetGroup), dependency already enforced by \"!Ref\" at Resources/rRDSInstanceMySQL/Properties/DBSubnetGroupName/Ref/rDBSubnetGroup",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Message": "Obsolete DependsOn on resource (rDBSubnetGroup), dependency already enforced by a \"Ref\" at Resources/rRDSInstanceMySQL/Properties/DBSubnetGroupName/Ref/rDBSubnetGroup",
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "W3005",
- "Description": "Check if DependsOn is specified if not needed. A Ref and GetAtt implicitly results in DependsOn behaviour.",
- "ShortDescription": "Check obsolete DependsOn configuration for Resources"
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
},
"Location": {
"Start": {
@@ -836,14 +878,15 @@
}
},
"Level": "Warning",
- "Message": "Obsolete DependsOn on resource (rSecurityGroupRDS), dependency already enforced by \"!Ref\" at Resources/rRDSInstanceMySQL/Properties/VPCSecurityGroups/0/Ref/rSecurityGroupRDS",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Message": "Obsolete DependsOn on resource (rSecurityGroupRDS), dependency already enforced by a \"Ref\" at Resources/rRDSInstanceMySQL/Properties/VPCSecurityGroups/0/Ref/rSecurityGroupRDS",
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -857,13 +900,14 @@
},
"Level": "Error",
"Message": "Property Resources/rRDSInstanceMySQL/Properties/MultiAZ should be of type Boolean",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -877,13 +921,35 @@
},
"Level": "Error",
"Message": "Property Resources/rRDSInstanceMySQL/Properties/StorageEncrypted should be of type Boolean",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
+ },
+ {
+ "Rule": {
+ "Id": "W2511",
+ "Description": "See if the elements inside an IAM Resource policy are configured correctly.",
+ "ShortDescription": "Check IAM Resource Policies syntax",
+ "Source": "https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements.html"
+ },
+ "Location": {
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 1057
+ },
+ "End": {
+ "ColumnNumber": 16,
+ "LineNumber": 1057
+ }
+ },
+ "Level": "Warning",
+ "Message": "IAM Policy Version should be updated to '2012-10-17'.",
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -897,13 +963,14 @@
},
"Level": "Error",
"Message": "Property Resources/rSecurityGroupApp/Properties/SecurityGroupEgress/0/FromPort should be of type Integer",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -917,13 +984,14 @@
},
"Level": "Error",
"Message": "Property Resources/rSecurityGroupApp/Properties/SecurityGroupEgress/0/ToPort should be of type Integer",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -937,13 +1005,14 @@
},
"Level": "Error",
"Message": "Property Resources/rSecurityGroupApp/Properties/SecurityGroupEgress/1/FromPort should be of type Integer",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -957,13 +1026,14 @@
},
"Level": "Error",
"Message": "Property Resources/rSecurityGroupApp/Properties/SecurityGroupEgress/1/ToPort should be of type Integer",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -977,13 +1047,14 @@
},
"Level": "Error",
"Message": "Property Resources/rSecurityGroupApp/Properties/SecurityGroupIngress/0/FromPort should be of type Integer",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -997,13 +1068,14 @@
},
"Level": "Error",
"Message": "Property Resources/rSecurityGroupApp/Properties/SecurityGroupIngress/0/ToPort should be of type Integer",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -1017,13 +1089,14 @@
},
"Level": "Error",
"Message": "Property Resources/rSecurityGroupAppInstance/Properties/SecurityGroupIngress/0/FromPort should be of type Integer",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -1037,13 +1110,14 @@
},
"Level": "Error",
"Message": "Property Resources/rSecurityGroupAppInstance/Properties/SecurityGroupIngress/0/ToPort should be of type Integer",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -1057,13 +1131,14 @@
},
"Level": "Error",
"Message": "Property Resources/rSecurityGroupAppInstance/Properties/SecurityGroupIngress/1/FromPort should be of type Integer",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -1077,13 +1152,14 @@
},
"Level": "Error",
"Message": "Property Resources/rSecurityGroupAppInstance/Properties/SecurityGroupIngress/1/ToPort should be of type Integer",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -1097,13 +1173,14 @@
},
"Level": "Error",
"Message": "Property Resources/rSecurityGroupAppInstance/Properties/SecurityGroupIngress/2/FromPort should be of type Integer",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -1117,13 +1194,14 @@
},
"Level": "Error",
"Message": "Property Resources/rSecurityGroupAppInstance/Properties/SecurityGroupIngress/2/ToPort should be of type Integer",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -1137,13 +1215,14 @@
},
"Level": "Error",
"Message": "Property Resources/rSecurityGroupRDS/Properties/SecurityGroupIngress/0/FromPort should be of type Integer",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -1157,13 +1236,14 @@
},
"Level": "Error",
"Message": "Property Resources/rSecurityGroupRDS/Properties/SecurityGroupIngress/0/ToPort should be of type Integer",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -1177,13 +1257,14 @@
},
"Level": "Error",
"Message": "Property Resources/rSecurityGroupWeb/Properties/SecurityGroupIngress/0/FromPort should be of type Integer",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -1197,13 +1278,14 @@
},
"Level": "Error",
"Message": "Property Resources/rSecurityGroupWeb/Properties/SecurityGroupIngress/0/ToPort should be of type Integer",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -1217,13 +1299,14 @@
},
"Level": "Error",
"Message": "Property Resources/rSecurityGroupWebInstance/Properties/SecurityGroupIngress/0/FromPort should be of type Integer",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -1237,13 +1320,14 @@
},
"Level": "Error",
"Message": "Property Resources/rSecurityGroupWebInstance/Properties/SecurityGroupIngress/0/ToPort should be of type Integer",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -1257,13 +1341,14 @@
},
"Level": "Error",
"Message": "Property Resources/rSecurityGroupWebInstance/Properties/SecurityGroupIngress/1/FromPort should be of type Integer",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -1277,13 +1362,14 @@
},
"Level": "Error",
"Message": "Property Resources/rSecurityGroupWebInstance/Properties/SecurityGroupIngress/1/ToPort should be of type Integer",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -1297,13 +1383,14 @@
},
"Level": "Error",
"Message": "Property Resources/rSecurityGroupWebInstance/Properties/SecurityGroupIngress/2/FromPort should be of type Integer",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -1317,13 +1404,14 @@
},
"Level": "Error",
"Message": "Property Resources/rSecurityGroupWebInstance/Properties/SecurityGroupIngress/2/ToPort should be of type Integer",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -1337,13 +1425,14 @@
},
"Level": "Error",
"Message": "Property Resources/rWebContentBucket/Properties/LifecycleConfiguration/Rules/0/ExpirationInDays should be of type Integer",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
},
"Location": {
"Start": {
@@ -1357,13 +1446,14 @@
},
"Level": "Error",
"Message": "Property Resources/rWebContentBucket/Properties/LifecycleConfiguration/Rules/0/Transition/TransitionInDays should be of type Integer",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "W3005",
- "Description": "Check if DependsOn is specified if not needed. A Ref and GetAtt implicitly results in DependsOn behaviour.",
- "ShortDescription": "Check obsolete DependsOn configuration for Resources"
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
},
"Location": {
"Start": {
@@ -1376,14 +1466,15 @@
}
},
"Level": "Warning",
- "Message": "Obsolete DependsOn on resource (rWebContentBucket), dependency already enforced by \"!Ref\" at Resources/rWebContentS3Policy/Properties/Bucket/Ref/rWebContentBucket",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Message": "Obsolete DependsOn on resource (rWebContentBucket), dependency already enforced by a \"Ref\" at Resources/rWebContentS3Policy/Properties/Bucket/Ref/rWebContentBucket",
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "W3005",
- "Description": "Check if DependsOn is specified if not needed. A Ref and GetAtt implicitly results in DependsOn behaviour.",
- "ShortDescription": "Check obsolete DependsOn configuration for Resources"
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
},
"Location": {
"Start": {
@@ -1396,14 +1487,15 @@
}
},
"Level": "Warning",
- "Message": "Obsolete DependsOn on resource (rWebContentBucket), dependency already enforced by \"!Ref\" at Resources/rWebContentS3Policy/Properties/PolicyDocument/Statement/0/Resource/Fn::Join/1/3/Ref/rWebContentBucket",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Message": "Obsolete DependsOn on resource (rWebContentBucket), dependency already enforced by a \"Ref\" at Resources/rWebContentS3Policy/Properties/PolicyDocument/Statement/0/Resource/Fn::Join/1/3/Ref/rWebContentBucket",
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
},
{
"Rule": {
"Id": "W3005",
- "Description": "Check if DependsOn is specified if not needed. A Ref and GetAtt implicitly results in DependsOn behaviour.",
- "ShortDescription": "Check obsolete DependsOn configuration for Resources"
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
},
"Location": {
"Start": {
@@ -1416,7 +1508,7 @@
}
},
"Level": "Warning",
- "Message": "Obsolete DependsOn on resource (rWebContentBucket), dependency already enforced by \"!Ref\" at Resources/rWebContentS3Policy/Properties/PolicyDocument/Statement/1/Resource/Fn::Join/1/3/Ref/rWebContentBucket",
- "Filename": "test/templates/quickstart/nist_application.yaml"
+ "Message": "Obsolete DependsOn on resource (rWebContentBucket), dependency already enforced by a \"Ref\" at Resources/rWebContentS3Policy/Properties/PolicyDocument/Statement/1/Resource/Fn::Join/1/3/Ref/rWebContentBucket",
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
}
]
diff --git a/test/fixtures/templates/bad/properties_iam_policy.yaml b/test/fixtures/templates/bad/properties_iam_policy.yaml
--- a/test/fixtures/templates/bad/properties_iam_policy.yaml
+++ b/test/fixtures/templates/bad/properties_iam_policy.yaml
@@ -29,4 +29,4 @@ Resources:
- Fn::If:
- cCondition
- Statement: {}
- - Statement: {}
+ - Statement: []
diff --git a/test/fixtures/templates/bad/resources/iam/policy_version.yaml b/test/fixtures/templates/bad/resources/iam/policy_version.yaml
new file mode 100644
--- /dev/null
+++ b/test/fixtures/templates/bad/resources/iam/policy_version.yaml
@@ -0,0 +1,19 @@
+---
+AWSTemplateFormatVersion: "2010-09-09"
+Description: >
+ Test bad Policy Version
+Resources:
+ rIamRole:
+ Type: AWS::IAM::Role
+ Properties:
+ AssumeRolePolicyDocument: {}
+ Policies:
+ - PolicyName: String
+ PolicyDocument:
+ Version: "2008-10-17"
+ Statement:
+ - Effect: "Allow"
+ Action:
+ - "s3:ListBucket"
+ - "s3:GetObject"
+ Resource: '*'
diff --git a/test/fixtures/templates/bad/resources/iam/resource_policy.yaml b/test/fixtures/templates/bad/resources/iam/resource_policy.yaml
new file mode 100644
--- /dev/null
+++ b/test/fixtures/templates/bad/resources/iam/resource_policy.yaml
@@ -0,0 +1,34 @@
+---
+AWSTemplateFormatVersion: "2010-09-09"
+Resources:
+ SampleBucketPolicy:
+ Type: AWS::S3::BucketPolicy
+ Properties:
+ Bucket: "myExampleBucket"
+ PolicyDocument:
+ Statement:
+ -
+ Action:
+ - "s3:GetObject"
+ Effect: "Allow"
+ Resource: arn:aws:s3:::myExampleBucket/*
+ Condition:
+ StringLike:
+ aws:Referer:
+ - "http://www.example.com/*"
+ - "http://example.com/*"
+ mysnspolicy:
+ Type: AWS::SNS::TopicPolicy
+ Properties:
+ PolicyDocument:
+ Id: MyTopicPolicy
+ Version: '2012-10-17'
+ Statement:
+ - Sid: My-statement-id
+ Effect: NotAllow
+ Principal: arn:aws:iam::account-id:user/user-name
+ Action: sns:Publish
+ Resource: "*"
+ BadProperty: test
+ Topics:
+ - mytopic
diff --git a/test/fixtures/templates/good/resources/iam/resource_policy.yaml b/test/fixtures/templates/good/resources/iam/resource_policy.yaml
new file mode 100644
--- /dev/null
+++ b/test/fixtures/templates/good/resources/iam/resource_policy.yaml
@@ -0,0 +1,31 @@
+---
+AWSTemplateFormatVersion: "2010-09-09"
+Parameters:
+ myExampleBucket:
+ Type: String
+Resources:
+ SampleBucketPolicy:
+ Type: AWS::S3::BucketPolicy
+ Properties:
+ Bucket:
+ Ref: "myExampleBucket"
+ PolicyDocument:
+ Statement:
+ -
+ Action:
+ - "s3:GetObject"
+ Effect: "Allow"
+ Resource:
+ Fn::Join:
+ - ""
+ -
+ - "arn:aws:s3:::"
+ -
+ Ref: "myExampleBucket"
+ - "/*"
+ Principal: "*"
+ Condition:
+ StringLike:
+ aws:Referer:
+ - "http://www.example.com/*"
+ - "http://example.com/*"
diff --git a/test/rules/resources/iam/test_iam_policy.py b/test/rules/resources/iam/test_iam_policy.py
--- a/test/rules/resources/iam/test_iam_policy.py
+++ b/test/rules/resources/iam/test_iam_policy.py
@@ -25,7 +25,8 @@ def setUp(self):
super(TestPropertyIamPolicies, self).setUp()
self.collection.register(Policy())
self.success_templates = [
- 'fixtures/templates/good/resources/iam/policy.yaml'
+ 'fixtures/templates/good/resources/iam/policy.yaml',
+ 'fixtures/templates/good/resources/iam/resource_policy.yaml',
]
def test_file_positive(self):
@@ -34,4 +35,8 @@ def test_file_positive(self):
def test_file_negative(self):
"""Test failure"""
- self.helper_file_negative('fixtures/templates/bad/properties_iam_policy.yaml', 6)
+ self.helper_file_negative('fixtures/templates/bad/properties_iam_policy.yaml', 8)
+
+ def test_file_resource_negative(self):
+ """Test failure"""
+ self.helper_file_negative('fixtures/templates/bad/resources/iam/resource_policy.yaml', 3)
diff --git a/test/rules/resources/iam/test_iam_policy_version.py b/test/rules/resources/iam/test_iam_policy_version.py
new file mode 100644
--- /dev/null
+++ b/test/rules/resources/iam/test_iam_policy_version.py
@@ -0,0 +1,38 @@
+"""
+ Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ software and associated documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to use, copy, modify,
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
+from cfnlint.rules.resources.iam.PolicyVersion import PolicyVersion # pylint: disable=E0401
+from ... import BaseRuleTestCase
+
+
+class TestPolicyVersion(BaseRuleTestCase):
+ """Test IAM Resource Policies"""
+ def setUp(self):
+ """Setup"""
+ super(TestPolicyVersion, self).setUp()
+ self.collection.register(PolicyVersion())
+ self.success_templates = [
+ 'fixtures/templates/good/resources/iam/resource_policy.yaml',
+ 'fixtures/templates/good/resources/iam/policy.yaml',
+ ]
+
+ def test_file_positive(self):
+ """Test Positive"""
+ self.helper_file_positive()
+
+ def test_file_negative(self):
+ """Test failure"""
+ self.helper_file_negative('fixtures/templates/bad/resources/iam/policy_version.yaml', 1)
|
Add IAM policy checks
*cfn-lint version: (`cfn-lint --version`) 0.5.0*
*Description of issue.*
Used 'principle' instead of 'principal' in an SNS topic policy, spent 30 minutes finding the error, because the error message from CloudFormation is just an echo of the service error message, which simply says 'null':
> 'AWS::SNS::TopicPolicy SomeTopicPolicy CREATE_FAILED: Invalid parameter: Policy Error: null (Service: AmazonSNS; Status Code: 400; Error Code: InvalidParameter; Request ID: aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa)'
Example template:
```yaml
AWSTemplateFormatVersion: '2010-09-09'
Resources:
SomeTopicPolicy:
Type: AWS::SNS::TopicPolicy
Properties:
Topics:
- some-topic-name
PolicyDocument:
Id: some-policy
Version: 2012-10-17
Statement:
- Sid: some-sid
Effect: Allow
Principle:
Service: events.amazonaws.com
Action:
- sns:Publish
Resource: '*'
```
Probably more things can be checked in the structure of IAM/S3/SNS/... policies too, cloudformation itself seems to just take opaque blobs and pass them to the underlying system. Ofc IAM/SNS should have better error messages too.
|
Ouch. @kddejong was just saying he'd like to see us incorporate more "sub" linters like we do with SAM. It'd be amazing to have a special purpose IAM linter broken out we could call out for resource policies, etc.
Tracking this as an enhancement. Thanks!
Worth noting we are checking identity-based policies with [E2507](https://github.com/awslabs/cfn-python-lint/blob/master/src/cfnlint/rules/resources/iam/Policy.py) I haven't had a chance to convert it over for Resource based policies. I'll try tackle this in the next week.
|
2018-09-02T13:13:51Z
|
[] |
[] |
aws-cloudformation/cfn-lint
| 324 |
aws-cloudformation__cfn-lint-324
|
[
"322"
] |
dce633fd722c83db1111e7b83e624cdef895df76
|
diff --git a/src/cfnlint/core.py b/src/cfnlint/core.py
--- a/src/cfnlint/core.py
+++ b/src/cfnlint/core.py
@@ -256,23 +256,23 @@ def get_default_args(template):
if isinstance(template, dict):
configs = template.get('Metadata', {}).get('cfn-lint', {}).get('config', {})
- if isinstance(configs, dict):
- for config_name, config_value in configs.items():
- if config_name == 'ignore_checks':
- if isinstance(config_value, list):
- defaults['ignore_checks'] = config_value
- if config_name == 'regions':
- if isinstance(config_value, list):
- defaults['regions'] = config_value
- if config_name == 'append_rules':
- if isinstance(config_value, list):
- defaults['override_spec'] = config_value
- if config_name == 'override_spec':
- if isinstance(config_value, (six.string_types, six.text_type)):
- defaults['override_spec'] = config_value
- if config_name == 'ignore_bad_template':
- if isinstance(config_value, bool):
- defaults['ignore_bad_template'] = config_value
+ if isinstance(configs, dict):
+ for config_name, config_value in configs.items():
+ if config_name == 'ignore_checks':
+ if isinstance(config_value, list):
+ defaults['ignore_checks'] = config_value
+ if config_name == 'regions':
+ if isinstance(config_value, list):
+ defaults['regions'] = config_value
+ if config_name == 'append_rules':
+ if isinstance(config_value, list):
+ defaults['override_spec'] = config_value
+ if config_name == 'override_spec':
+ if isinstance(config_value, (six.string_types, six.text_type)):
+ defaults['override_spec'] = config_value
+ if config_name == 'ignore_bad_template':
+ if isinstance(config_value, bool):
+ defaults['ignore_bad_template'] = config_value
return defaults
diff --git a/src/cfnlint/decode/__init__.py b/src/cfnlint/decode/__init__.py
--- a/src/cfnlint/decode/__init__.py
+++ b/src/cfnlint/decode/__init__.py
@@ -74,6 +74,9 @@ def decode(filename, ignore_bad_template):
else:
matches = [create_match_yaml_parser_error(err, filename)]
+ if not isinstance(template, dict):
+ # Template isn't a dict which means nearly nothing will work
+ matches = [cfnlint.Match(1, 1, 1, 1, filename, cfnlint.ParseError(), message='Template needs to be an object.')]
return (template, matches)
|
diff --git a/test/fixtures/templates/bad/string.yaml b/test/fixtures/templates/bad/string.yaml
new file mode 100644
--- /dev/null
+++ b/test/fixtures/templates/bad/string.yaml
@@ -0,0 +1 @@
+BadTemplate
diff --git a/test/module/test_string_template.py b/test/module/test_string_template.py
new file mode 100644
--- /dev/null
+++ b/test/module/test_string_template.py
@@ -0,0 +1,36 @@
+"""
+ Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ software and associated documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to use, copy, modify,
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
+import json
+from cfnlint import Template, RulesCollection
+from cfnlint.core import DEFAULT_RULESDIR # pylint: disable=E0401
+import cfnlint.decode.cfn_yaml # pylint: disable=E0401
+import cfnlint.decode.cfn_json # pylint: disable=E0401
+from testlib.testcase import BaseTestCase
+
+
+class TestNonObjectTemplate(BaseTestCase):
+ """Test Duplicates Parsing """
+ def setUp(self):
+ """ SetUp template object"""
+
+ def test_fail_yaml_run(self):
+ """Test failure run"""
+
+ filename = 'fixtures/templates/bad/string.yaml'
+
+ _, matches = cfnlint.decode.decode(filename, True)
+ assert len(matches) == 1
|
Crash with malformed templates not containing YAML maps
*cfn-lint version: (`cfn-lint --version`)* 0.6.1
*Description of issue.*
```
$ echo malformed > test.yml
$ cfn-lint test.yml
Traceback (most recent call last):
File "/Users/myusername/.virtualenvs/myvirtualenv/bin/cfn-lint", line 11, in <module>
sys.exit(main())
File "/Users/myusername/.virtualenvs/myvirtualenv/lib/python3.7/site-packages/cfnlint/__main__.py", line 27, in main
(args, filename, template, rules, fmt, formatter) = cfnlint.core.get_template_args_rules(sys.argv[1:])
File "/Users/myusername/.virtualenvs/myvirtualenv/lib/python3.7/site-packages/cfnlint/core.py", line 222, in get_template_args_rules
for section, values in get_default_args(template).items():
File "/Users/myusername/.virtualenvs/myvirtualenv/lib/python3.7/site-packages/cfnlint/core.py", line 258, in get_default_args
if isinstance(configs, dict):
UnboundLocalError: local variable 'configs' referenced before assignment
```
This doesn't work if I instead do `echo '{}' > test.yml`, but does with `echo 1 > test.yml` and `echo [] > test.yml`, so it seems to be a problem with the type of the object in the template.
|
It looks like the string in the file is being decoded as valid and passed into the config parser to start looking at the (non-existent) meta-data:
https://github.com/awslabs/cfn-python-lint/blob/38b0f23a319eddd9b94dc9e2649c64b96775214e/src/cfnlint/core.py#L223-L225
https://github.com/awslabs/cfn-python-lint/blob/38b0f23a319eddd9b94dc9e2649c64b96775214e/src/cfnlint/core.py#L223-L225
We'll need better error trapping when we attempt to extract values from the config section
|
2018-09-05T13:53:33Z
|
[] |
[] |
aws-cloudformation/cfn-lint
| 333 |
aws-cloudformation__cfn-lint-333
|
[
"332"
] |
f6ad4c834302aff6febc4b257ddb686d3b30ec82
|
diff --git a/src/cfnlint/rules/resources/stepfunctions/StateMachine.py b/src/cfnlint/rules/resources/stepfunctions/StateMachine.py
--- a/src/cfnlint/rules/resources/stepfunctions/StateMachine.py
+++ b/src/cfnlint/rules/resources/stepfunctions/StateMachine.py
@@ -51,7 +51,7 @@ def _check_state_json(self, def_json, state_name, path):
state_key_types = {
'Pass': ['Result', 'ResultPath'],
'Task': ['Resource', 'ResultPath', 'Retry', 'Catch', 'TimeoutSeconds', 'HeartbeatSeconds'],
- 'Choices': ['Choices', 'Default'],
+ 'Choice': ['Choices', 'Default'],
'Wait': ['Seconds', 'Timestamp', 'SecondsPath', 'TimestampPath'],
'Succeed': [],
'Fail': ['Cause', 'Error'],
@@ -60,7 +60,7 @@ def _check_state_json(self, def_json, state_name, path):
state_required_types = {
'Pass': [],
'Task': ['Resource'],
- 'Choices': ['Choices'],
+ 'Choice': ['Choices'],
'Wait': [],
'Succeed': [],
'Fail': [],
@@ -75,15 +75,19 @@ def _check_state_json(self, def_json, state_name, path):
state_type = def_json.get('Type')
- for state_key, _ in def_json.items():
- if state_key not in common_state_keys + state_key_types.get(state_type):
- message = 'State Machine Definition key (%s) for State (%s) of Type (%s) is not valid' % (state_key, state_name, state_type)
- matches.append(RuleMatch(path, message))
- for req_key in common_state_required_keys + state_required_types.get(state_type):
- if req_key not in def_json:
- message = 'State Machine Definition required key (%s) for State (%s) of Type (%s) is missing' % (req_key, state_name, state_type)
- matches.append(RuleMatch(path, message))
- return matches
+ if state_type in state_key_types:
+ for state_key, _ in def_json.items():
+ if state_key not in common_state_keys + state_key_types.get(state_type, []):
+ message = 'State Machine Definition key (%s) for State (%s) of Type (%s) is not valid' % (state_key, state_name, state_type)
+ matches.append(RuleMatch(path, message))
+ for req_key in common_state_required_keys + state_required_types.get(state_type, []):
+ if req_key not in def_json:
+ message = 'State Machine Definition required key (%s) for State (%s) of Type (%s) is missing' % (req_key, state_name, state_type)
+ matches.append(RuleMatch(path, message))
+ return matches
+ else:
+ message = 'State Machine Definition Type (%s) is not valid' % (state_type)
+ matches.append(RuleMatch(path, message))
return matches
|
diff --git a/test/fixtures/templates/bad/resources/stepfunctions/state_machine.yaml b/test/fixtures/templates/bad/resources/stepfunctions/state_machine.yaml
--- a/test/fixtures/templates/bad/resources/stepfunctions/state_machine.yaml
+++ b/test/fixtures/templates/bad/resources/stepfunctions/state_machine.yaml
@@ -25,13 +25,18 @@ Resources:
# Missing StartsAt
# ByeWorld is missing Resource
# HelloWorld is missing Type
+ # Type doesn't exist
DefinitionString:
Fn::Sub: |-
{
"States": {
"HelloWorld": {
"Resource": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:HelloFunction",
- "End": true
+ "Next": "GoodDay"
+ },
+ "GoodDay": {
+ "Type": "DNE",
+ "Next": "ByeWorld"
},
"ByeWorld": {
"Type": "Task",
diff --git a/test/rules/resources/stepfunctions/test_state_machine.py b/test/rules/resources/stepfunctions/test_state_machine.py
--- a/test/rules/resources/stepfunctions/test_state_machine.py
+++ b/test/rules/resources/stepfunctions/test_state_machine.py
@@ -34,4 +34,4 @@ def test_file_positive(self):
def test_file_negative_alias(self):
"""Test failure"""
- self.helper_file_negative('fixtures/templates/bad/resources/stepfunctions/state_machine.yaml', 4)
+ self.helper_file_negative('fixtures/templates/bad/resources/stepfunctions/state_machine.yaml', 5)
|
E0002 Unknown exception while processing rule E2532: can only concatenate list (not "NoneType") to list
*cfn-lint version: 0.7.1
I have an existing SAM template that creates a Step Function amongst other resources. Since installing version 0.7.1 (from 0.6, I believe) it produces this error.
I'm not sure if it is the Step Function JSON that is causing the failure so I've added the complete template.yaml file below.
```
AWSTemplateFormatVersion: '2010-09-09'
Transform: 'AWS::Serverless-2016-10-31'
Description:
Globals:
Function:
Runtime: python3.6
Parameters:
EnvironmentType:
Type: String
Default: dev
AllowedValues:
- dev
- test
- prod
Description: 'The environment to create the resource in'
UserEnv:
Type: String
Description: 'Specific to the user, e.g. dev-neil'
SecurityStack:
Description: The name of the stack that contains the SNS topics and KMS IDs
Type: String
GeneralStack:
Description: Stack for general resources
Type: String
Conditions:
IsProd:
Fn::Equals:
- Ref: EnvironmentType
- prod
Resources:
Queue:
Type: 'AWS::Serverless::Function'
Properties:
Handler: eloqua_queue.lambda_handler
Description: 'Populates a queue of items to process'
MemorySize: 128
Timeout: 30
Role: !GetAtt EloquaRole.Arn
Environment:
Variables:
USERENV:
Ref: UserEnv
ENV:
Ref: EnvironmentType
START_YYYYMMDD: "today-2"
END_YYYYMMDD: "today"
DeadLetterQueue:
Type: SNS
TargetArn:
Fn::ImportValue:
!Sub "${GeneralStack}:SNSTopic"
QueueLog:
Type: "AWS::Logs::LogGroup"
Properties:
LogGroupName: !Join [ "/", [ "", "aws", "lambda", !Ref "Queue" ] ]
RetentionInDays: 60
Process:
Type: 'AWS::Serverless::Function'
Properties:
Handler: eloqua.lambda_handler
Description: 'Pulls data from Eloqua and pushes it to a file in S3'
MemorySize: 320
Timeout: 300
Role: !GetAtt EloquaRole.Arn
Environment:
Variables:
USERENV:
Ref: UserEnv
ENV:
Ref: EnvironmentType
DeadLetterQueue:
Type: SNS
TargetArn:
Fn::ImportValue:
!Sub "${GeneralStack}:SNSTopic"
ProcessLog:
Type: "AWS::Logs::LogGroup"
Properties:
LogGroupName: !Join [ "/", [ "", "aws", "lambda", !Ref "Process" ] ]
RetentionInDays: 60
ClearQueue:
Type: 'AWS::Serverless::Function'
Properties:
Handler: clear_queue.lambda_handler
Description: 'If the step function fails, clear the queue ready for a retry'
MemorySize: 128
Timeout: 15
Role: !GetAtt EloquaRole.Arn
Environment:
Variables:
USERENV:
Ref: UserEnv
ENV:
Ref: EnvironmentType
DeadLetterQueue:
Type: SNS
TargetArn:
Fn::ImportValue:
!Sub "${GeneralStack}:SNSTopic"
ClearQueueLog:
Type: "AWS::Logs::LogGroup"
Properties:
LogGroupName: !Join [ "/", [ "", "aws", "lambda", !Ref "ClearQueue" ] ]
RetentionInDays: 60
ClearS3:
Type: 'AWS::Serverless::Function'
Properties:
Handler: clear_s3.lambda_handler
Description: 'If the step function fails, clear the S3 path ready for the retry'
MemorySize: 128
Timeout: 15
Role: !GetAtt EloquaRole.Arn
Environment:
Variables:
USERENV:
Ref: UserEnv
ENV:
Ref: EnvironmentType
DeadLetterQueue:
Type: SNS
TargetArn:
Fn::ImportValue:
!Sub "${GeneralStack}:SNSTopic"
ClearS3Log:
Type: "AWS::Logs::LogGroup"
Properties:
LogGroupName: !Join [ "/", [ "", "aws", "lambda", !Ref "ClearS3" ] ]
RetentionInDays: 60
StepFunctionError:
Type: 'AWS::Serverless::Function'
Properties:
Handler: step_function_error_mail.lambda_handler
Description: 'An extra control to email if the step function does not complete as expected'
MemorySize: 128
Timeout: 15
Role: !GetAtt EloquaRole.Arn
Environment:
Variables:
USERENV:
Ref: UserEnv
ENV:
Ref: EnvironmentType
DeadLetterQueue:
Type: SNS
TargetArn:
Fn::ImportValue:
!Sub "${GeneralStack}:SNSTopic"
StepFunctionErrorLog:
Type: "AWS::Logs::LogGroup"
Properties:
LogGroupName: !Join [ "/", [ "", "aws", "lambda", !Ref "StepFunctionError" ] ]
RetentionInDays: 60
EloquaTrigger:
Type: "AWS::Events::Rule"
Condition: IsProd
Properties:
Description: Runs the Eloqua Step Function
Name: !Sub "${EnvironmentType}-eloqua-${AWS::Region}"
ScheduleExpression: "cron(2 2 * * ? *)"
State: "ENABLED"
Targets:
- Arn: !Ref EloquaStepFunction
Id: EloquaStep1
RoleArn:
Fn::ImportValue:
!Sub "${SecurityStack}:StepFunctionTriggerRoleArn"
EloquaStepFunction:
Type: "AWS::StepFunctions::StateMachine"
Properties:
StateMachineName: !Sub "${EnvironmentType}-eloqua"
RoleArn: !Sub "arn:aws:iam::${AWS::AccountId}:role/service-role/StatesExecutionRole-${AWS::Region}"
DefinitionString:
!Sub
- |-
{
"Comment": "Put Eloqua activities and dates on a queue and put the data in S3",
"StartAt": "eloqua-put-on-queue",
"States": {
"eloqua-put-on-queue": {
"Type": "Task",
"Resource": "${QueueArn}",
"Next": "eloqua-get",
"Catch": [ {
"ErrorEquals": ["States.ALL"],
"Next": "clear-s3"
} ]
},
"eloqua-get": {
"Type": "Task",
"Resource": "${ProcessArn}",
"Next": "ChoiceStateMessagesOnQueue",
"Catch": [ {
"ErrorEquals": ["States.ALL"],
"Next": "clear-s3"
} ]
},
"clear-s3": {
"Type": "Task",
"Resource": "${ClearS3Arn}",
"Next": "clear-queue"
},
"clear-queue": {
"Type": "Task",
"Resource": "${ClearQueueArn}",
"Next": "send-email-failure"
},
"send-email-failure": {
"Type": "Task",
"Resource": "${StepFunctionErrorArn}",
"Next": "finish"
},
"finish": {
"Type": "Pass",
"Result": "Nothing to do",
"End": true
},
"ChoiceStateMessagesOnQueue": {
"Type" : "Choice",
"Choices": [
{
"Variable": "$.messagesonqueue",
"StringEquals": "Yes",
"Next": "eloqua-get"
},
{
"Variable": "$.messagesonqueue",
"StringEquals": "No",
"Next": "finish"
}
],
"Default": "DefaultState"
},
"DefaultState": {
"Type": "Fail",
"Cause": "No Matches!"
}
}
}
- {QueueArn: !GetAtt [ Queue, Arn ],
ProcessArn: !GetAtt [ Process, Arn ],
ClearQueueArn: !GetAtt [ ClearQueue, Arn ],
ClearS3Arn: !GetAtt [ ClearS3, Arn ],
StepFunctionErrorArn: !GetAtt [ StepFunctionError, Arn ]}
EloquaRole:
Type: "AWS::IAM::Role"
DeletionPolicy: Delete
Properties:
AssumeRolePolicyDocument:
Version: "2012-10-17"
Statement:
-
Effect: "Allow"
Principal:
Service:
- "lambda.amazonaws.com"
Action:
- "sts:AssumeRole"
RoleName:
!Sub '${EnvironmentType}-lambda-eloqua-${AWS::Region}'
Policies:
-
PolicyName:
!Sub '${EnvironmentType}-lambda-eloqua-${AWS::Region}'
PolicyDocument:
Version: '2012-10-17' # Policy Document
Statement:
-
Effect: "Allow"
Action:
- "ssm:GetParameters"
Resource:
- !Sub 'arn:aws:ssm:${AWS::Region}:${AWS::AccountId}:parameter/${EnvironmentType}/eloqua/creds'
-
Effect: "Allow"
Action:
- "logs:CreateLogGroup"
- "logs:CreateLogStream"
- "logs:PutLogEvents"
- "sqs:ListQueues"
Resource:
- "*"
-
Effect: "Allow"
Action:
- "s3:List*"
Resource:
- !Sub 'arn:aws:s3:::mybucket-${AWS::Region}-*'
-
Effect: "Allow"
Action:
- "s3:Get*"
- "s3:Put*"
- "s3:DeleteObject"
Resource:
- !Sub 'arn:aws:s3:::mybucket-${AWS::Region}-*/eloqua/*/staging/*'
-
Effect: "Allow"
Action:
- "sns:Publish"
Resource:
- !Sub 'arn:aws:sns:${AWS::Region}:${AWS::AccountId}:${EnvironmentType}*'
-
Effect: Allow
Action:
- "sqs:CreateQueue"
- "sqs:ReceiveMessage"
- "sqs:DeleteMessage"
- "sqs:GetQueueAttributes"
- "sqs:SendMessage"
- "sqs:PurgeQueue"
Resource:
- !Sub "arn:aws:sqs:${AWS::Region}:${AWS::AccountId}:${UserEnv}-lambda-eloqua-activities.fifo"
Outputs:
EloquaRole:
Value: !Ref EloquaRole
Export:
Name: !Join [ ":", [ !Ref "AWS::StackName", EloquaRole ] ]
```
|
2018-09-09T02:23:52Z
|
[] |
[] |
|
aws-cloudformation/cfn-lint
| 341 |
aws-cloudformation__cfn-lint-341
|
[
"340"
] |
849b111623ed0939019d7facfe4822b0c29af66c
|
diff --git a/src/cfnlint/rules/resources/iam/Policy.py b/src/cfnlint/rules/resources/iam/Policy.py
--- a/src/cfnlint/rules/resources/iam/Policy.py
+++ b/src/cfnlint/rules/resources/iam/Policy.py
@@ -30,6 +30,9 @@ class Policy(CloudFormationLintRule):
def __init__(self):
"""Init"""
+ self.resource_exceptions = {
+ 'AWS::ECR::Repository': 'RepositoryPolicyText',
+ }
self.resources_and_keys = {
'AWS::SNS::TopicPolicy': 'PolicyDocument',
'AWS::S3::BucketPolicy': 'PolicyDocument',
@@ -50,7 +53,7 @@ def __init__(self):
for resource_type in self.idp_and_keys:
self.resource_property_types.append(resource_type)
- def check_policy_document(self, value, path, cfn, is_identity_policy):
+ def check_policy_document(self, value, path, cfn, is_identity_policy, resource_exceptions):
"""Check policy document"""
matches = []
@@ -84,7 +87,7 @@ def check_policy_document(self, value, path, cfn, is_identity_policy):
for statement in statements:
matches.extend(
self._check_policy_statement(
- statement['Path'], statement['Value'], is_identity_policy
+ statement['Path'], statement['Value'], is_identity_policy, resource_exceptions
)
)
else:
@@ -93,7 +96,7 @@ def check_policy_document(self, value, path, cfn, is_identity_policy):
RuleMatch(path[:] + [parent_key], message))
return matches
- def _check_policy_statement(self, branch, statement, is_identity_policy):
+ def _check_policy_statement(self, branch, statement, is_identity_policy, resource_exceptions):
"""Check statements"""
matches = []
statement_valid_keys = [
@@ -137,10 +140,11 @@ def _check_policy_statement(self, branch, statement, is_identity_policy):
message = 'IAM Resource Policy statement should have Principal or NotPrincipal'
matches.append(
RuleMatch(branch[:] + ['Principal'], message))
- if 'Resource' not in statement and 'NotResource' not in statement:
- message = 'IAM Policy statement missing Resource or NotResource'
- matches.append(
- RuleMatch(branch[:], message))
+ if not resource_exceptions:
+ if 'Resource' not in statement and 'NotResource' not in statement:
+ message = 'IAM Policy statement missing Resource or NotResource'
+ matches.append(
+ RuleMatch(branch[:], message))
return(matches)
@@ -162,6 +166,10 @@ def match_resource_properties(self, properties, resourcetype, path, cfn):
# Key isn't defined return nothing
return matches
+ resource_exceptions = False
+ if key == self.resource_exceptions.get(resourcetype):
+ resource_exceptions = True
+
if key == 'Policies':
for index, policy in enumerate(properties.get(key, [])):
matches.extend(
@@ -170,7 +178,8 @@ def match_resource_properties(self, properties, resourcetype, path, cfn):
path=path[:] + ['Policies', index],
check_value=self.check_policy_document,
cfn=cfn,
- is_identity_policy=is_identity_policy
+ is_identity_policy=is_identity_policy,
+ resource_exceptions=resource_exceptions,
))
else:
matches.extend(
@@ -179,7 +188,8 @@ def match_resource_properties(self, properties, resourcetype, path, cfn):
path=path[:],
check_value=self.check_policy_document,
cfn=cfn,
- is_identity_policy=is_identity_policy
+ is_identity_policy=is_identity_policy,
+ resource_exceptions=resource_exceptions,
))
return matches
|
diff --git a/test/fixtures/templates/bad/resources/iam/resource_policy.yaml b/test/fixtures/templates/bad/resources/iam/resource_policy.yaml
--- a/test/fixtures/templates/bad/resources/iam/resource_policy.yaml
+++ b/test/fixtures/templates/bad/resources/iam/resource_policy.yaml
@@ -11,7 +11,6 @@ Resources:
Action:
- "s3:GetObject"
Effect: "Allow"
- Resource: arn:aws:s3:::myExampleBucket/*
Condition:
StringLike:
aws:Referer:
diff --git a/test/fixtures/templates/good/resources/iam/resource_policy.yaml b/test/fixtures/templates/good/resources/iam/resource_policy.yaml
--- a/test/fixtures/templates/good/resources/iam/resource_policy.yaml
+++ b/test/fixtures/templates/good/resources/iam/resource_policy.yaml
@@ -4,6 +4,27 @@ Parameters:
myExampleBucket:
Type: String
Resources:
+ Ecr:
+ Type: AWS::ECR::Repository
+ Properties:
+ RepositoryPolicyText:
+ {
+ "Version": "2012-10-17",
+ "Statement": [
+ {
+ "Sid": "CodeBuildAccess",
+ "Effect": "Allow",
+ "Principal": {
+ "Service": "codebuild.amazonaws.com"
+ },
+ "Action": [
+ "ecr:GetDownloadUrlForLayer",
+ "ecr:BatchGetImage",
+ "ecr:BatchCheckLayerAvailability"
+ ]
+ }
+ ]
+ }
SampleBucketPolicy:
Type: AWS::S3::BucketPolicy
Properties:
diff --git a/test/rules/resources/iam/test_iam_policy.py b/test/rules/resources/iam/test_iam_policy.py
--- a/test/rules/resources/iam/test_iam_policy.py
+++ b/test/rules/resources/iam/test_iam_policy.py
@@ -39,4 +39,4 @@ def test_file_negative(self):
def test_file_resource_negative(self):
"""Test failure"""
- self.helper_file_negative('fixtures/templates/bad/resources/iam/resource_policy.yaml', 3)
+ self.helper_file_negative('fixtures/templates/bad/resources/iam/resource_policy.yaml', 4)
|
AWS::ECR::Repository RepositoryPolicyText doesn't need 'Resource'
*cfn-lint version: (`cfn-lint --version`)* 0.7.1
*Description of issue.*
When upgrading to 0.7.1 my template with a valid policy adapted from [step 3k of this tutorial](https://docs.aws.amazon.com/codebuild/latest/userguide/sample-ecr.html) triggers "E2507 IAM Policy statement missing Resource or NotResource". This kind of policy apparently doesn't need a `Resource` key, so this shouldn't happen.
|
2018-09-11T13:51:44Z
|
[] |
[] |
|
aws-cloudformation/cfn-lint
| 351 |
aws-cloudformation__cfn-lint-351
|
[
"350"
] |
8ec05b83ddc14770a239ac76a392dbf3db918cb3
|
diff --git a/src/cfnlint/rules/resources/properties/Properties.py b/src/cfnlint/rules/resources/properties/Properties.py
--- a/src/cfnlint/rules/resources/properties/Properties.py
+++ b/src/cfnlint/rules/resources/properties/Properties.py
@@ -82,35 +82,37 @@ def check_list_for_condition(self, text, prop, parenttype, resourcename, propspe
for sub_key, sub_value in text[prop].items():
if sub_key in cfnlint.helpers.CONDITION_FUNCTIONS:
if len(sub_value) == 3:
- if isinstance(sub_value[1], list):
- for index, item in enumerate(sub_value[1]):
- arrproppath = path[:]
+ for if_i, if_v in enumerate(sub_value[1:]):
+ condition_path = path[:] + [sub_key, if_i + 1]
+ if isinstance(if_v, list):
+ for index, item in enumerate(if_v):
+ arrproppath = condition_path[:]
- arrproppath.append(index)
- matches.extend(self.propertycheck(
- item, propspec['ItemType'],
- parenttype, resourcename, arrproppath, False))
- else:
- message = 'Property {0} should be of type List for resource {1}'
- matches.append(
- RuleMatch(
- path,
- message.format(prop, resourcename)))
-
- if isinstance(sub_value[2], list):
- for index, item in enumerate(sub_value[2]):
- arrproppath = path[:]
-
- arrproppath.append(index)
- matches.extend(self.propertycheck(
- item, propspec['ItemType'],
- parenttype, resourcename, arrproppath, False))
- else:
- message = 'Property {0} should be of type List for resource {1} at {2}'
- matches.append(
- RuleMatch(
- path + [2],
- message.format(prop, resourcename, ('/'.join(str(x) for x in path)))))
+ arrproppath.append(index)
+ matches.extend(self.propertycheck(
+ item, propspec['ItemType'],
+ parenttype, resourcename, arrproppath, False))
+ elif isinstance(if_v, dict):
+ if len(if_v) == 1:
+ for d_k, d_v in if_v.items():
+ if d_k != 'Ref' or d_v != 'AWS::NoValue':
+ message = 'Property {0} should be of type List for resource {1} at {2}'
+ matches.append(
+ RuleMatch(
+ condition_path,
+ message.format(prop, resourcename, ('/'.join(str(x) for x in condition_path)))))
+ else:
+ message = 'Property {0} should be of type List for resource {1} at {2}'
+ matches.append(
+ RuleMatch(
+ condition_path,
+ message.format(prop, resourcename, ('/'.join(str(x) for x in condition_path)))))
+ else:
+ message = 'Property {0} should be of type List for resource {1} at {2}'
+ matches.append(
+ RuleMatch(
+ condition_path,
+ message.format(prop, resourcename, ('/'.join(str(x) for x in condition_path)))))
else:
message = 'Invalid !If condition specified at %s' % ('/'.join(map(str, path)))
|
diff --git a/test/fixtures/templates/good/resource_properties.yaml b/test/fixtures/templates/good/resource_properties.yaml
--- a/test/fixtures/templates/good/resource_properties.yaml
+++ b/test/fixtures/templates/good/resource_properties.yaml
@@ -589,10 +589,7 @@ Resources:
KeyType: HASH
- AttributeName: !Ref SortKeyName
KeyType: RANGE
- - - AttributeName: !Ref PartitionKeyName
- KeyType: HASH
- - AttributeName: !Ref SortKeyName
- KeyType: RANGE
+ - !Ref AWS::NoValue
CustomResource1:
Type: 'AWS::CloudFormation::CustomResource'
Properties:
|
How to handle conditionals in list items
*cfn-lint version: `0.7.1`*
*I have a condition around whether or not a fargate service uses the service registry. The way I had it set up fails to pass linting, but does work in CloudFormation.*
Here is the template causing the problem (abbreviated to just the problem areas):
```yaml
AWSTemplateFormatVersion: 2010-09-09
Parameters:
ServiceDiscoveryName:
Description: Name of the service when used for internal service discovery
Type: String
Default: ''
Conditions:
UseServiceDiscovery:
Fn::Not:
- Fn::Equals:
- Ref: ServiceDiscoveryName
- ''
Resources:
Service:
Type: AWS::ECS::Service
Properties:
# other properties here
ServiceRegistries:
Fn::If:
- UseServiceDiscovery
- - RegistryArn:
Fn::GetAtt: [ServiceDiscoveryRegistry, Arn]
- Ref: AWS::NoValue
```
This results in the linter error:
```
Property ServiceRegistries should be of type List for resource Service at Resources/Service/Properties/ServiceRegistries
cloudformation/shared-templates/fargate-service-alb.yaml:111:7
```
I then tried the following change:
```
ServiceRegistries:
- RegistryArn:
Fn::If:
- UseServiceDiscovery
- Fn::GetAtt: [ServiceDiscoveryRegistry, Arn]
- Ref: AWS::NoValue
```
And that did appease the linter. However, it resulted in the following CloudFormation error:
```
registry arn cannot be blank. (Service: AmazonECS; Status Code: 400; Error Code: InvalidParameterException; Request ID: 5bd193f7-b861-11e8-8b0a-cd1b086b8bb9)
```
Our work-around to keep us moving was to add `Ref` to our spec override:
```json
"AWS::ECS::Service.ServiceRegistry": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-serviceregistry.html",
"Properties": {
"Port": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-serviceregistry.html#cfn-ecs-service-serviceregistry-port",
"PrimitiveType": "Integer",
"Required": false,
"UpdateType": "Mutable"
},
"RegistryArn": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-serviceregistry.html#cfn-ecs-service-serviceregistry-registryarn",
"PrimitiveType": "String",
"Required": false,
"UpdateType": "Mutable"
},
"Ref": {
"PrimitiveType": "String",
"Required": false
}
}
```
and then meet in the middle with:
```
ServiceRegistries:
Fn::If:
- UseServiceDiscovery
- - RegistryArn:
Fn::GetAtt: [ServiceDiscoveryRegistry, Arn]
- - Ref: AWS::NoValue
```
I do believe that final template makes the most sense to appease the linter and CloudFormation. But without the spec override, we get:
```
E3002 Invalid Property Resources/Service/Properties/ServiceRegistries/0/Ref
cloudformation/shared-templates/fargate-service-alb.yaml:111:7
```
If I am doing something silly or missing something else, corrections are certainly welcome. If not, is there an easy way that `Ref: AWS::NoValue` could be respected as special and not cause an error when it is sitting in for another `Type`?
Thanks for this tool! I think it's going to greatly speed up our CloudFormation generation and testing. I really want to see it succeed. I am happy to provide any other context or input.
|
This is a bug. Working on a fix for it now and should have something shortly. We aren't properly handling the Ref AWS::NoValue which is messing this up. This was an earlier rule that could use a little updating. While we aren't where I want to be with conditions we are a lot closer and should have been catching this. Thank you!
|
2018-09-15T12:01:20Z
|
[] |
[] |
aws-cloudformation/cfn-lint
| 372 |
aws-cloudformation__cfn-lint-372
|
[
"367"
] |
9a24d2511624e07e09709f5f018a2b778a18125c
|
diff --git a/src/cfnlint/decode/cfn_yaml.py b/src/cfnlint/decode/cfn_yaml.py
--- a/src/cfnlint/decode/cfn_yaml.py
+++ b/src/cfnlint/decode/cfn_yaml.py
@@ -176,6 +176,7 @@ def construct_getatt(node):
"""
Reconstruct !GetAtt into a list
"""
+
if isinstance(node.value, (six.string_types)):
return list_node(node.value.split('.'), node.start_mark, node.end_mark)
if isinstance(node.value, list):
diff --git a/src/cfnlint/rules/functions/GetAtt.py b/src/cfnlint/rules/functions/GetAtt.py
--- a/src/cfnlint/rules/functions/GetAtt.py
+++ b/src/cfnlint/rules/functions/GetAtt.py
@@ -14,6 +14,7 @@
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
"""
+import six
from cfnlint import CloudFormationLintRule
from cfnlint import RuleMatch
import cfnlint.helpers
@@ -44,8 +45,12 @@ def match(self, cfn):
message = 'Invalid GetAtt for {0}'
matches.append(RuleMatch(getatt, message.format('/'.join(map(str, getatt[:-1])))))
continue
- resname = getatt[-1][0]
- restype = '.'.join(getatt[-1][1:])
+ if isinstance(getatt[-1], six.string_types):
+ resname, restype = getatt[-1].split('.')
+ else:
+ resname = getatt[-1][0]
+ restype = '.'.join(getatt[-1][1:])
+
if resname in valid_getatts:
if restype not in valid_getatts[resname] and '*' not in valid_getatts[resname]:
message = 'Invalid GetAtt {0}.{1} for resource {2}'
|
diff --git a/test/fixtures/templates/bad/functions/getatt.yaml b/test/fixtures/templates/bad/functions/getatt.yaml
new file mode 100644
--- /dev/null
+++ b/test/fixtures/templates/bad/functions/getatt.yaml
@@ -0,0 +1,10 @@
+---
+AWSTemplateFormatVersion: "2010-09-09"
+Resources:
+ myElasticSearch:
+ Type: AWS::Elasticsearch::Domain
+ Properties: {}
+Outputs:
+ ElasticSearchHostname:
+ Value:
+ Fn::GetAtt: ElasticSearchDomain.DomainEndpoint
diff --git a/test/fixtures/templates/good/functions/getatt.yaml b/test/fixtures/templates/good/functions/getatt.yaml
new file mode 100644
--- /dev/null
+++ b/test/fixtures/templates/good/functions/getatt.yaml
@@ -0,0 +1,10 @@
+---
+AWSTemplateFormatVersion: "2010-09-09"
+Resources:
+ myElasticSearch:
+ Type: AWS::Elasticsearch::Domain
+ Properties: {}
+Outputs:
+ ElasticSearchHostname:
+ Value:
+ Fn::GetAtt: myElasticSearch.DomainEndpoint
diff --git a/test/rules/functions/test_get_att.py b/test/rules/functions/test_get_att.py
--- a/test/rules/functions/test_get_att.py
+++ b/test/rules/functions/test_get_att.py
@@ -24,6 +24,9 @@ def setUp(self):
"""Setup"""
super(TestRulesGetAtt, self).setUp()
self.collection.register(GetAtt())
+ self.success_templates = [
+ 'fixtures/templates/good/functions/getatt.yaml'
+ ]
def test_file_positive(self):
"""Test Positive"""
@@ -32,3 +35,7 @@ def test_file_positive(self):
def test_file_negative(self):
"""Test failure"""
self.helper_file_negative('fixtures/templates/bad/generic.yaml', 1)
+
+ def test_file_negative_getatt(self):
+ """Test failure"""
+ self.helper_file_negative('fixtures/templates/bad/functions/getatt.yaml', 1)
|
E1010 Invalid GetAtt error message could be better
*cfn-lint version: (`cfn-lint --version`)* 0.7.1
Code:
```yaml
ElasticSearchHostname:
Value:
Fn::GetAtt: ElasticSearchDomain.DomainEndpoint
```
(I mixed short and long form)
Current:
```
E1010 Invalid GetAtt E.l.a.s.t.i.c.S.e.a.r.c.h.D.o.m.a.i.n...D.o.m.a.i.n.E.n.d.p.o.i.n.t for resource ElasticSearchHostname
cfn/x.cfn.yaml:342:7
```
Better:
```
E1010 GetAtt expects an array of length 2, not String for resource ElasticSearchHostname
```
(nb, this is also an error in an *output*, not *resource*, but I didn't even notice that until filing the bug report. I guess my eyes skip over everything except the line number)
|
So it looks like we're not properly differentiating against the long form and the short form in YAML. We'll need to catch that, perhaps as a separate error.
Also, Fn::GetAtt is always retrieving an attribute from a resource (not a property or parameter) -- that's what we're referring to here. You could argue `resource` is redundant since it's always a resource and we could remove it.
|
2018-09-27T08:56:43Z
|
[] |
[] |
aws-cloudformation/cfn-lint
| 375 |
aws-cloudformation__cfn-lint-375
|
[
"369"
] |
87a2e357e381566e35eeb7ec5c979071379a7c7e
|
diff --git a/src/cfnlint/rules/resources/dynamodb/TableDeletionPolicy.py b/src/cfnlint/rules/resources/dynamodb/TableDeletionPolicy.py
new file mode 100644
--- /dev/null
+++ b/src/cfnlint/rules/resources/dynamodb/TableDeletionPolicy.py
@@ -0,0 +1,43 @@
+"""
+ Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ software and associated documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to use, copy, modify,
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
+from cfnlint import CloudFormationLintRule
+from cfnlint import RuleMatch
+
+
+class TableDeletionPolicy(CloudFormationLintRule):
+ """Check Dynamo DB Deletion Policy"""
+ id = 'I3011'
+ shortdesc = 'Check DynamoDB tables have a set DeletionPolicy'
+ description = 'The default action when removing a DynamoDB Table is to ' \
+ 'delete it. This check requires you to specifically set a DeletionPolicy ' \
+ 'and you know the risks'
+ source_url = 'https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html'
+ tags = ['resources', 'dynamodb']
+
+ def match(self, cfn):
+ """Check CloudFormation DynamDB Tables"""
+ matches = []
+
+ resources = cfn.get_resources(resource_type=['AWS::DynamoDB::Table'])
+ for r_name, r_values in resources.items():
+ if not r_values.get('DeletionPolicy'):
+ path = ['Resources', r_name]
+ message = 'The default action on removal of a DynamoDB is to delete it. ' \
+ 'Set a DeletionPolicy and specify either \'retain\' or \'delete\'.'
+ matches.append(RuleMatch(path, message))
+
+ return matches
diff --git a/src/cfnlint/rules/resources/dynamodb/__init__.py b/src/cfnlint/rules/resources/dynamodb/__init__.py
new file mode 100644
--- /dev/null
+++ b/src/cfnlint/rules/resources/dynamodb/__init__.py
@@ -0,0 +1,16 @@
+"""
+ Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ software and associated documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to use, copy, modify,
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
|
diff --git a/test/fixtures/templates/bad/resources/dynamodb/delete_policy.yaml b/test/fixtures/templates/bad/resources/dynamodb/delete_policy.yaml
new file mode 100644
--- /dev/null
+++ b/test/fixtures/templates/bad/resources/dynamodb/delete_policy.yaml
@@ -0,0 +1,16 @@
+---
+AWSTemplateFormatVersion: "2010-09-09"
+Resources:
+ myTable:
+ Type: AWS::DynamoDB::Table
+ Properties:
+ KeySchema:
+ -
+ AttributeName: "ArtistId"
+ KeyType: "HASH"
+ -
+ AttributeName: "Concert"
+ KeyType: "RANGE"
+ ProvisionedThroughput:
+ ReadCapacityUnits: 5
+ WriteCapacityUnits: 5
diff --git a/test/fixtures/templates/good/resources/dynamodb/delete_policy.yaml b/test/fixtures/templates/good/resources/dynamodb/delete_policy.yaml
new file mode 100644
--- /dev/null
+++ b/test/fixtures/templates/good/resources/dynamodb/delete_policy.yaml
@@ -0,0 +1,17 @@
+---
+AWSTemplateFormatVersion: "2010-09-09"
+Resources:
+ myTable:
+ Type: AWS::DynamoDB::Table
+ DeletionPolicy: retain
+ Properties:
+ KeySchema:
+ -
+ AttributeName: "ArtistId"
+ KeyType: "HASH"
+ -
+ AttributeName: "Concert"
+ KeyType: "RANGE"
+ ProvisionedThroughput:
+ ReadCapacityUnits: 5
+ WriteCapacityUnits: 5
diff --git a/test/rules/resources/dynamodb/__init__.py b/test/rules/resources/dynamodb/__init__.py
new file mode 100644
--- /dev/null
+++ b/test/rules/resources/dynamodb/__init__.py
@@ -0,0 +1,16 @@
+"""
+ Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ software and associated documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to use, copy, modify,
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
diff --git a/test/rules/resources/dynamodb/test_delete_policy.py b/test/rules/resources/dynamodb/test_delete_policy.py
new file mode 100644
--- /dev/null
+++ b/test/rules/resources/dynamodb/test_delete_policy.py
@@ -0,0 +1,37 @@
+"""
+ Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ software and associated documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to use, copy, modify,
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
+from cfnlint.rules.resources.dynamodb.TableDeletionPolicy import TableDeletionPolicy # pylint: disable=E0401
+from ... import BaseRuleTestCase
+
+
+class TestTableDeletionPolicy(BaseRuleTestCase):
+ """Test StateMachine for Step Functions"""
+ def setUp(self):
+ """Setup"""
+ super(TestTableDeletionPolicy, self).setUp()
+ self.collection.register(TableDeletionPolicy())
+ self.success_templates = [
+ 'fixtures/templates/good/resources/dynamodb/delete_policy.yaml'
+ ]
+
+ def test_file_positive(self):
+ """Test Positive"""
+ self.helper_file_positive()
+
+ def test_file_negative_alias(self):
+ """Test failure"""
+ self.helper_file_negative('fixtures/templates/bad/resources/dynamodb/delete_policy.yaml', 1)
|
Feature Request: Warning if DeletionPolicy is not specified
Sorry for not implementing and submitting pull request but currently have no time for that.
DeletionPolicy is not required in for example DynamoDB Table and defaults to Delete.
That is not a good default value IMHO so always setting DeletionPolicy explicitly would be a nice recommendation.
|
Cool "Best Practice" style addition. I'll label it as an enhancement
Thanks :)
|
2018-09-29T06:52:50Z
|
[] |
[] |
aws-cloudformation/cfn-lint
| 376 |
aws-cloudformation__cfn-lint-376
|
[
"306"
] |
5d3976c9c6a1f446d19f3e2d69d9cdb3bf4e5aba
|
diff --git a/src/cfnlint/rules/resources/events/RuleTargetsLimit.py b/src/cfnlint/rules/resources/events/RuleTargetsLimit.py
new file mode 100644
--- /dev/null
+++ b/src/cfnlint/rules/resources/events/RuleTargetsLimit.py
@@ -0,0 +1,67 @@
+"""
+ Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ software and associated documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to use, copy, modify,
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
+from cfnlint import CloudFormationLintRule
+from cfnlint import RuleMatch
+
+
+class RuleTargetsLimit(CloudFormationLintRule):
+ """Check State Machine Definition"""
+ id = 'E3021'
+ shortdesc = 'Check Events Rule Targets are less than or equal to 5'
+ description = 'CloudWatch Events Rule can only support up to 5 targets'
+ source_url = 'https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/cloudwatch_limits_cwe.html'
+ tags = ['resources', 'events']
+ max_count = 5
+
+ def __init__(self):
+ """Init"""
+ self.resource_property_types.append('AWS::Events::Rule')
+ self.limits = {}
+
+ # pylint: disable=W0613
+ def check_value(self, value, path):
+ """Count them up """
+ if path[4] == 'Fn::If':
+ resource_name = '%s.%s' % (path[1], path[5])
+ else:
+ resource_name = path[1]
+ if resource_name not in self.limits:
+ self.limits[resource_name] = {
+ 'count': 0,
+ 'path': path[:-1]
+ }
+
+ self.limits[resource_name]['count'] += 1
+ return []
+
+ def match_resource_properties(self, properties, _, path, cfn):
+ """Check CloudFormation Properties"""
+ matches = []
+
+ matches.extend(
+ cfn.check_value(
+ obj=properties, key='Targets',
+ path=path[:],
+ check_value=self.check_value
+ ))
+
+ for _, limit in self.limits.items():
+ if limit['count'] > self.max_count:
+ message = 'An Events Rule can have up to {0} Targets'
+ matches.append(RuleMatch(limit['path'], message.format(self.max_count)))
+
+ return matches
diff --git a/src/cfnlint/rules/resources/events/__init__.py b/src/cfnlint/rules/resources/events/__init__.py
new file mode 100644
--- /dev/null
+++ b/src/cfnlint/rules/resources/events/__init__.py
@@ -0,0 +1,16 @@
+"""
+ Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ software and associated documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to use, copy, modify,
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
|
diff --git a/test/fixtures/templates/bad/resources/events/rule_targets_limit.yaml b/test/fixtures/templates/bad/resources/events/rule_targets_limit.yaml
new file mode 100644
--- /dev/null
+++ b/test/fixtures/templates/bad/resources/events/rule_targets_limit.yaml
@@ -0,0 +1,42 @@
+---
+AWSTemplateFormatVersion: "2010-09-09"
+Conditions:
+ condition: !Equals [!Ref 'AWS::Region', 'us-east-1']
+Resources:
+ MyCronRule:
+ Type: AWS::Events::Rule
+ Properties:
+ ScheduleExpression: cron(0 6 * * ? *)
+ Targets:
+ Fn::If:
+ - condition
+ - - Id: Job1
+ Arn: arn:target
+ - Id: Job2
+ Arn: arn:target
+ - Id: Job3
+ Arn: arn:target
+ - Id: Job4
+ Arn: arn:target
+ - Id: Job5
+ Arn: arn:target
+ - Id: Job6
+ Arn: arn:target
+ - Id: Job7
+ Arn: arn:target
+ - Id: Job8
+ Arn: arn:target
+ - Id: Job9
+ Arn: arn:target
+ - Id: Job10
+ Arn: arn:target
+ - Id: Job11
+ Arn: arn:target
+ - - Id: Job1
+ Arn: arn:target
+ - Id: Job2
+ Arn: arn:target
+ - Id: Job3
+ Arn: arn:target
+ - Id: Job4
+ Arn: arn:target
diff --git a/test/fixtures/templates/good/resources/events/rule_targets_limit.yaml b/test/fixtures/templates/good/resources/events/rule_targets_limit.yaml
new file mode 100644
--- /dev/null
+++ b/test/fixtures/templates/good/resources/events/rule_targets_limit.yaml
@@ -0,0 +1,30 @@
+---
+AWSTemplateFormatVersion: "2010-09-09"
+Conditions:
+ condition: !Equals [!Ref 'AWS::Region', 'us-east-1']
+Resources:
+ MyCronRule:
+ Type: AWS::Events::Rule
+ Properties:
+ ScheduleExpression: cron(0 6 * * ? *)
+ Targets:
+ Fn::If:
+ - condition
+ - - Id: Job1
+ Arn: arn:target
+ - Id: Job2
+ Arn: arn:target
+ - Id: Job3
+ Arn: arn:target
+ - Id: Job4
+ Arn: arn:target
+ - Id: Job5
+ Arn: arn:target
+ - - Id: Job1
+ Arn: arn:target
+ - Id: Job2
+ Arn: arn:target
+ - Id: Job3
+ Arn: arn:target
+ - Id: Job4
+ Arn: arn:target
diff --git a/test/rules/resources/events/__init__.py b/test/rules/resources/events/__init__.py
new file mode 100644
--- /dev/null
+++ b/test/rules/resources/events/__init__.py
@@ -0,0 +1,16 @@
+"""
+ Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ software and associated documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to use, copy, modify,
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
diff --git a/test/rules/resources/events/test_rule_targets_limit.py b/test/rules/resources/events/test_rule_targets_limit.py
new file mode 100644
--- /dev/null
+++ b/test/rules/resources/events/test_rule_targets_limit.py
@@ -0,0 +1,37 @@
+"""
+ Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ software and associated documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to use, copy, modify,
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
+from cfnlint.rules.resources.events.RuleTargetsLimit import RuleTargetsLimit # pylint: disable=E0401
+from ... import BaseRuleTestCase
+
+
+class TestRuleTargetsLimit(BaseRuleTestCase):
+ """Test Limits of Event Rules Targets"""
+ def setUp(self):
+ """Setup"""
+ super(TestRuleTargetsLimit, self).setUp()
+ self.collection.register(RuleTargetsLimit())
+ self.success_templates = [
+ 'fixtures/templates/good/resources/events/rule_targets_limit.yaml'
+ ]
+
+ def test_file_positive(self):
+ """Test Positive"""
+ self.helper_file_positive()
+
+ def test_file_negative_alias(self):
+ """Test failure"""
+ self.helper_file_negative('fixtures/templates/bad/resources/events/rule_targets_limit.yaml', 1)
|
Add a check that CloudWatch Events Rules have <= 5 targets
*cfn-lint version: (`cfn-lint --version`) 0.5.0* (but nothing changed since afaict)
*Description of issue.*
CloudWatch Events has a limit of 10 targets per Rule, but this isn't validated by `ValidateTemplate` or `cfn-lint`'s rules. Consequently one has to wait til deploy time to discover this error message:
> CREATE_FAILED: At most 10 targets allowed.
Failing template:
```yaml
Resources:
MyCronRule:
Type: AWS::Events::Rule
Properties:
ScheduleExpression: cron(0 6 * * ? *)
Targets:
- Id: Job1
Arn: arn:target
- Id: Job2
Arn: arn:target
- Id: Job3
Arn: arn:target
- Id: Job4
Arn: arn:target
- Id: Job5
Arn: arn:target
- Id: Job6
Arn: arn:target
- Id: Job7
Arn: arn:target
- Id: Job8
Arn: arn:target
- Id: Job9
Arn: arn:target
- Id: Job10
Arn: arn:target
- Id: Job11
Arn: arn:target
```
|
Thanks. These are the best type of rules for us to add. We'll get this added.
I'll also take a look at a PR myself if I find the time
According to https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/cloudwatch_limits_cwe.html the limit is actually 5 targets per rule. At 6 targets I get a different error message to at 11 targets:
```
$ aws events put-targets --rule test-limits --targets '[
{"Id": "Test1", "Arn": "arn:aws:lambda:us-east-1:123456789012:function:example"},
{"Id": "Test2", "Arn": "arn:aws:lambda:us-east-1:123456789012:function:example"},
{"Id": "Test3", "Arn": "arn:aws:lambda:us-east-1:123456789012:function:example"},
{"Id": "Test4", "Arn": "arn:aws:lambda:us-east-1:123456789012:function:example"},
{"Id": "Test5", "Arn": "arn:aws:lambda:us-east-1:123456789012:function:example"},
{"Id": "Test6", "Arn": "arn:aws:lambda:us-east-1:123456789012:function:example"}
]'
An error occurred (LimitExceededException) when calling the PutTargets operation: The requested resource exceeds the maximum number allowed.
$ aws events put-targets --rule test-limits --targets '[
{"Id": "Test1", "Arn": "arn:aws:lambda:us-east-1:123456789012:function:example"},
{"Id": "Test2", "Arn": "arn:aws:lambda:us-east-1:123456789012:function:example"},
{"Id": "Test3", "Arn": "arn:aws:lambda:us-east-1:123456789012:function:example"},
{"Id": "Test4", "Arn": "arn:aws:lambda:us-east-1:123456789012:function:example"},
{"Id": "Test5", "Arn": "arn:aws:lambda:us-east-1:123456789012:function:example"},
{"Id": "Test6", "Arn": "arn:aws:lambda:us-east-1:123456789012:function:example"},
{"Id": "Test7", "Arn": "arn:aws:lambda:us-east-1:123456789012:function:example"},
{"Id": "Test8", "Arn": "arn:aws:lambda:us-east-1:123456789012:function:example"},
{"Id": "Test9", "Arn": "arn:aws:lambda:us-east-1:123456789012:function:example"},
{"Id": "Test10", "Arn": "arn:aws:lambda:us-east-1:123456789012:function:example"},
{"Id": "Test11", "Arn": "arn:aws:lambda:us-east-1:123456789012:function:example"}
]'
An error occurred (ValidationException) when calling the PutTargets operation: At most 10 targets allowed.
```
This might imply the ability to use 6-10 targets is possible with a limit increase, although such a limit increase isn't documented. I've reported to support.
Support confirmed there's no limit increase possible, just a weirdness of the API that it returns two different error messages at different numbers of targets. So a hardcoded limit of 5 would be fine in `cfn-lint`.
Thanks for checking that should make things easier. It would have been an odd rule if it was a soft limit.
|
2018-09-29T08:51:37Z
|
[] |
[] |
aws-cloudformation/cfn-lint
| 386 |
aws-cloudformation__cfn-lint-386
|
[
"379"
] |
07e0924a4e5bde8dac85ef2d60585e85e4ef683f
|
diff --git a/src/cfnlint/__init__.py b/src/cfnlint/__init__.py
--- a/src/cfnlint/__init__.py
+++ b/src/cfnlint/__init__.py
@@ -373,6 +373,7 @@ def __init__(self, filename, template, regions=['us-east-1']):
'Outputs',
'Rules'
]
+ self.transform_globals = {}
def __deepcopy__(self, memo):
cls = self.__class__
@@ -601,7 +602,11 @@ def search_deep_keys(self, searchText):
Search for keys in all parts of the templates
"""
LOGGER.debug('Search for key %s as far down as the template goes', searchText)
- return (self._search_deep_keys(searchText, self.template, []))
+ results = []
+ results.extend(self._search_deep_keys(searchText, self.template, []))
+ # Globals are removed during a transform. They need to be checked manually
+ results.extend(self._search_deep_keys(searchText, self.transform_globals, []))
+ return results
def get_condition_values(self, template, path=[]):
"""Evaluates conditions and brings back the values"""
@@ -873,6 +878,8 @@ def transform(self):
# useless execution of the transformation.
# Currently locked in to SAM specific
if transform_type == 'AWS::Serverless-2016-10-31':
+ # Save the Globals section so its available for rule processing
+ self.cfn.transform_globals = self.cfn.template.get('Globals', {})
transform = Transform(self.filename, self.cfn.template, self.cfn.regions[0])
matches = transform.transform_template()
self.cfn.template = transform.template()
|
diff --git a/test/fixtures/templates/good/parameters/used_transforms.yaml b/test/fixtures/templates/good/parameters/used_transforms.yaml
new file mode 100644
--- /dev/null
+++ b/test/fixtures/templates/good/parameters/used_transforms.yaml
@@ -0,0 +1,19 @@
+AWSTemplateFormatVersion: '2010-09-09'
+Transform: 'AWS::Serverless-2016-10-31'
+Parameters:
+ Version:
+ Type: String
+
+Globals:
+ Function:
+ CodeUri:
+ Bucket: "somebucket"
+ Key: !Sub "lambda/code/lambda-${Version}-shaded.jar"
+
+Resources:
+ SomeLambda:
+ Type: 'AWS::Serverless::Function'
+ Properties:
+ Handler: com.SomeLambda::handleRequest
+ Runtime: java8
+ MemorySize: 256
diff --git a/test/rules/parameters/test_used.py b/test/rules/parameters/test_used.py
--- a/test/rules/parameters/test_used.py
+++ b/test/rules/parameters/test_used.py
@@ -24,6 +24,9 @@ def setUp(self):
"""Setup"""
super(TestParameterUsed, self).setUp()
self.collection.register(Used())
+ self.success_templates = [
+ 'fixtures/templates/good/parameters/used_transforms.yaml'
+ ]
def test_file_positive(self):
"""Test Positive"""
|
Used Parameter reported as unused
*cfn-lint version: 0.7.3*
Not sure if AWS::Serverless is supported but if it is then this template produces an incorrect warning:
```yaml
AWSTemplateFormatVersion: '2010-09-09'
Transform: 'AWS::Serverless-2016-10-31'
Parameters:
Version:
Type: String
Globals:
Function:
CodeUri:
Bucket: "somebucket"
Key: !Sub "lambda/code/lambda-${Version}-shaded.jar"
Resources:
SomeLambda:
Type: 'AWS::Serverless::Function'
Properties:
Handler: com.SomeLambda::handleRequest
Runtime: java8
MemorySize: 256
```
Output from cfn-lint:
```
W2001 Parameter Version not used.
bug.yaml:4:3
```
|
thanks. Looking into this one. We do process the transform before doing any rule checking. Since globals gets removed it looks like we lose the variable usage.
I should be able to come up with some fix for this but thinking through the best way to do it.
|
2018-10-06T01:36:27Z
|
[] |
[] |
aws-cloudformation/cfn-lint
| 392 |
aws-cloudformation__cfn-lint-392
|
[
"237"
] |
9e9a642cea106cdf26c1afc8354d3b27e3f4c669
|
diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -51,7 +51,7 @@ def get_version(filename):
]},
packages=find_packages('src'),
zip_safe=False,
- install_requires=['pyyaml', 'six', 'requests', 'aws-sam-translator>=1.6.0'],
+ install_requires=['pyyaml', 'six', 'requests', 'aws-sam-translator>=1.6.0', 'jsonpatch'],
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
entry_points={
'console_scripts': [
diff --git a/src/cfnlint/maintenance.py b/src/cfnlint/maintenance.py
--- a/src/cfnlint/maintenance.py
+++ b/src/cfnlint/maintenance.py
@@ -15,12 +15,14 @@
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
"""
import logging
-import pkg_resources
+import json
import requests
-
+import pkg_resources
+import jsonpointer
+import jsonpatch
import cfnlint
-LOGGER = logging.getLogger('cfnlint')
+LOGGER = logging.getLogger(__name__)
def update_resource_specs():
@@ -42,6 +44,7 @@ def update_resource_specs():
'us-west-1': 'https://d68hl49wbnanq.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json',
'us-west-2': 'https://d201a2mn26r7lk.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json',
}
+
for region, url in regions.items():
filename = pkg_resources.resource_filename(
__name__,
@@ -49,8 +52,10 @@ def update_resource_specs():
)
LOGGER.debug('Downloading template %s into %s', url, filename)
req = requests.get(url)
- with open(filename, 'wb') as f:
- f.write(req.content)
+ content = json.loads(req.content)
+ content = patch_spec(content, region)
+ with open(filename, 'w') as f:
+ json.dump(content, f, indent=2)
def update_documentation(rules):
@@ -110,3 +115,205 @@ def update_documentation(rules):
for rule in sorted_rules:
tags = ','.join('`{0}`'.format(tag) for tag in rule.tags)
new_file.write(rule_output.format(rule.id, rule.shortdesc, rule.description, rule.source_url, tags))
+
+
+def patch_spec(content, region):
+ """Patch the spec file"""
+ json_patches = [
+ # VPC Endpoint and DNS Endpoint
+ {
+ 'Name': 'VpcEndpointType in AWS::EC2::VPCEndpoint',
+ 'Regions': ['All'],
+ 'Patch': jsonpatch.JsonPatch([
+ {'op': 'move', 'from': '/ResourceTypes/AWS::EC2::VPCEndpoint/Properties/VPCEndpointType', 'path': '/ResourceTypes/AWS::EC2::VPCEndpoint/Properties/VpcEndpointType'}
+ ])
+ },
+ # RDS AutoScaling
+ {
+ 'Name': 'RDS AutoScaling Pause',
+ 'Regions': ['All'],
+ 'Patch': jsonpatch.JsonPatch([
+ {'op': 'move', 'from': '/PropertyTypes/AWS::RDS::DBCluster.ScalingConfiguration/Properties/SecondsBeforeAutoPause', 'path': '/PropertyTypes/AWS::RDS::DBCluster.ScalingConfiguration/Properties/SecondsUntilAutoPause'}
+ ])
+ },
+ {
+ 'Name': 'AWS::CloudFormation::WaitCondition has no required properties',
+ 'Regions': ['All'],
+ 'Patch': jsonpatch.JsonPatch([
+ {'op': 'replace', 'path': '/ResourceTypes/AWS::CloudFormation::WaitCondition/Properties/Handle/Required', 'value': False},
+ {'op': 'replace', 'path': '/ResourceTypes/AWS::CloudFormation::WaitCondition/Properties/Timeout/Required', 'value': False},
+ ])
+ },
+ {
+ 'Name': 'AWS::EC2::SpotFleet.SpotFleetTagSpecification supports Tags',
+ 'Regions': ['All'],
+ 'Patch': jsonpatch.JsonPatch([
+ {'op': 'add', 'path': '/PropertyTypes/AWS::EC2::SpotFleet.SpotFleetTagSpecification/Properties/Tags', 'value': {
+ 'Type': 'List',
+ 'Required': False,
+ 'Documentation': 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-tagspecifications.html#cfn-ec2-spotfleet-spotfleettagspecification-tags',
+ 'ItemType': 'Tag',
+ 'UpdateType': 'Mutable'
+ }}
+ ])
+ },
+ {
+ 'Name': 'AWS::Cognito::UserPool.SmsConfiguration ExternalId IS required',
+ 'Regions': ['All'],
+ 'Patch': jsonpatch.JsonPatch([
+ {'op': 'replace', 'path': '/PropertyTypes/AWS::Cognito::UserPool.SmsConfiguration/Properties/ExternalId/Required', 'value': True}
+ ])
+ },
+ {
+ 'Name': 'Add type AWS::SSM::MaintenanceWindow',
+ 'Regions': ['All'], # need to double check this
+ 'Patch': jsonpatch.JsonPatch([
+ {
+ 'op': 'add', 'path': '/ResourceTypes/AWS::SSM::MaintenanceWindow',
+ 'value': {
+ 'Documentation': 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-maintenancewindow.html',
+ 'Properties': {
+ 'Description': {
+ 'Required': False,
+ 'Documentation': 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-maintenancewindow.html#cfn-ssm-maintenancewindow-description',
+ 'PrimitiveType': 'String',
+ 'UpdateType': 'Mutable'
+ },
+ 'AllowUnassociatedTargets': {
+ 'Required': True,
+ 'Documentation': 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-maintenancewindow.html#cfn-ssm-maintenancewindow-allowunassociatedtargets',
+ 'PrimitiveType': 'Boolean',
+ 'UpdateType': 'Mutable'
+ },
+ 'Cutoff': {
+ 'Required': True,
+ 'Documentation': 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-maintenancewindow.html#cfn-ssm-maintenancewindow-cutoff',
+ 'PrimitiveType': 'Integer',
+ 'UpdateType': 'Mutable'
+ },
+ 'Schedule': {
+ 'Required': True,
+ 'Documentation': 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-maintenancewindow.html#cfn-ssm-maintenancewindow-schedule',
+ 'PrimitiveType': 'String',
+ 'UpdateType': 'Mutable'
+ },
+ 'Duration': {
+ 'Required': True,
+ 'Documentation': 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-maintenancewindow.html#cfn-ssm-maintenancewindow-duration',
+ 'PrimitiveType': 'Integer',
+ 'UpdateType': 'Mutable'
+ },
+ 'Name': {
+ 'Required': True,
+ 'Documentation': 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-maintenancewindow.html#cfn-ssm-maintenancewindow-name',
+ 'PrimitiveType': 'String',
+ 'UpdateType': 'Mutable'
+ }
+ }
+ }
+ }
+ ])
+ },
+ {
+ 'Name': 'Add type AWS::SSM::MaintenanceWindowTarget',
+ 'Regions': ['All'], # need to double check this
+ 'Patch': jsonpatch.JsonPatch([
+ {
+ 'op': 'add', 'path': '/ResourceTypes/AWS::SSM::MaintenanceWindowTarget',
+ 'value': {
+ 'Documentation': 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-maintenancewindowtarget.html',
+ 'Properties': {
+ 'OwnerInformation': {
+ 'Required': False,
+ 'Documentation': 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-maintenancewindowtarget.html#cfn-ssm-maintenancewindowtarget-ownerinformation',
+ 'PrimitiveType': 'String',
+ 'UpdateType': 'Mutable'
+ },
+ 'Description': {
+ 'Required': False,
+ 'Documentation': 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-maintenancewindowtarget.html#cfn-ssm-maintenancewindowtarget-description',
+ 'PrimitiveType': 'String',
+ 'UpdateType': 'Mutable'
+ },
+ 'WindowId': {
+ 'Required': True,
+ 'Documentation': 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-maintenancewindowtarget.html#cfn-ssm-maintenancewindowtarget-windowid',
+ 'PrimitiveType': 'String',
+ 'UpdateType': 'Mutable'
+ },
+ 'ResourceType': {
+ 'Required': True,
+ 'Documentation': 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-maintenancewindowtarget.html#cfn-ssm-maintenancewindowtarget-resourcetype',
+ 'PrimitiveType': 'String',
+ 'UpdateType': 'Mutable'
+ },
+ 'Targets': {
+ 'Required': True,
+ 'Documentation': 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-maintenancewindowtarget.html#cfn-ssm-maintenancewindowtarget-targets',
+ 'PrimitiveType': 'String',
+ 'Type': 'List',
+ 'ItemType': 'Target',
+ 'UpdateType': 'Mutable'
+ },
+ 'Name': {
+ 'Required': False,
+ 'Documentation': 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-maintenancewindowtarget.html#cfn-ssm-maintenancewindowtarget-name',
+ 'PrimitiveType': 'String',
+ 'UpdateType': 'Mutable'
+ },
+ }
+ }
+ },
+ {
+ 'op': 'add', 'path': '/PropertyTypes/AWS::SSM::MaintenanceWindowTarget.Target',
+ 'value': {
+ 'Documentation': 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-maintenancewindowtarget.html',
+ 'Properties': {
+ 'Key': {
+ 'Required': True,
+ 'Documentation': 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-maintenancewindowtarget-targets.html#cfn-ssm-maintenancewindowtarget-targets-key',
+ 'PrimitiveType': 'String',
+ 'UpdateType': 'Mutable'
+ },
+ 'Values': {
+ 'Required': False,
+ 'Documentation': 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-maintenancewindowtarget-targets.html#cfn-ssm-maintenancewindowtarget-targets-values',
+ 'PrimitiveItemType': 'String',
+ 'UpdateType': 'Mutable',
+ 'Type': 'List',
+ },
+ }
+ }
+ }
+ ])
+ },
+ {
+ 'Name': 'AWS::SNS::Subscription TopicArn and Protocol IS required',
+ 'Regions': ['All'],
+ 'Patch': jsonpatch.JsonPatch([
+ {'op': 'replace', 'path': '/ResourceTypes/AWS::SNS::Subscription/Properties/TopicArn/Required', 'value': True},
+ {'op': 'replace', 'path': '/ResourceTypes/AWS::SNS::Subscription/Properties/Protocol/Required', 'value': True}
+ ])
+ },
+ {
+ 'Name': 'AWS::SDB::Domain not supported for all regions',
+ 'Regions': ['us-east-2', 'ca-central-1', 'eu-central-1', 'eu-west-2', 'eu-west-3', 'ap-northeast-2', 'ap-south-1'],
+ 'Patch': jsonpatch.JsonPatch([
+ {'op': 'remove', 'path': '/ResourceTypes/AWS::SDB::Domain'}
+ ])
+ },
+ ]
+
+ for json_patch in json_patches:
+ for patch_region in json_patch.get('Regions'):
+ if patch_region in [region, 'All']:
+ try:
+ json_patch.get('Patch').apply(content, in_place=True)
+ break # only need to patch once
+ except jsonpatch.JsonPatchConflict:
+ LOGGER.info('Patch not applied: %s in region %s', json_patch.get('Name'), region)
+ except jsonpointer.JsonPointerException:
+ # Debug as the parent element isn't supported in the region
+ LOGGER.debug('Parent element not found for patch: %s in region %s', json_patch.get('Name'), region)
+
+ return content
|
diff --git a/test/fixtures/specs/us-east-1.json b/test/fixtures/specs/us-east-1.json
new file mode 100644
--- /dev/null
+++ b/test/fixtures/specs/us-east-1.json
@@ -0,0 +1,28753 @@
+{
+ "PropertyTypes": {
+ "AWS::CodeBuild::Project.Artifacts": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-artifacts.html",
+ "Properties": {
+ "Path": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-artifacts.html#cfn-codebuild-project-artifacts-path",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Type": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-artifacts.html#cfn-codebuild-project-artifacts-type",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "ArtifactIdentifier": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-artifacts.html#cfn-codebuild-project-artifacts-artifactidentifier",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "OverrideArtifactName": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-artifacts.html#cfn-codebuild-project-artifacts-overrideartifactname",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "Packaging": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-artifacts.html#cfn-codebuild-project-artifacts-packaging",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "EncryptionDisabled": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-artifacts.html#cfn-codebuild-project-artifacts-encryptiondisabled",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "Location": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-artifacts.html#cfn-codebuild-project-artifacts-location",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-artifacts.html#cfn-codebuild-project-artifacts-name",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "NamespaceType": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-artifacts.html#cfn-codebuild-project-artifacts-namespacetype",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::WAFRegional::ByteMatchSet.ByteMatchTuple": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-bytematchset-bytematchtuple.html",
+ "Properties": {
+ "TargetString": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-bytematchset-bytematchtuple.html#cfn-wafregional-bytematchset-bytematchtuple-targetstring",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "TargetStringBase64": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-bytematchset-bytematchtuple.html#cfn-wafregional-bytematchset-bytematchtuple-targetstringbase64",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "PositionalConstraint": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-bytematchset-bytematchtuple.html#cfn-wafregional-bytematchset-bytematchtuple-positionalconstraint",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "TextTransformation": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-bytematchset-bytematchtuple.html#cfn-wafregional-bytematchset-bytematchtuple-texttransformation",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "FieldToMatch": {
+ "Type": "FieldToMatch",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-bytematchset-bytematchtuple.html#cfn-wafregional-bytematchset-bytematchtuple-fieldtomatch",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ElasticLoadBalancingV2::ListenerCertificate.Certificate": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-listener-certificates.html",
+ "Properties": {
+ "CertificateArn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-listener-certificates.html#cfn-elasticloadbalancingv2-listener-certificates-certificatearn",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CodePipeline::Pipeline.InputArtifact": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stages-actions-inputartifacts.html",
+ "Properties": {
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stages-actions-inputartifacts.html#cfn-codepipeline-pipeline-stages-actions-inputartifacts-name",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::S3::Bucket.BucketEncryption": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-bucketencryption.html",
+ "Properties": {
+ "ServerSideEncryptionConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-bucketencryption.html#cfn-s3-bucket-bucketencryption-serversideencryptionconfiguration",
+ "DuplicatesAllowed": false,
+ "ItemType": "ServerSideEncryptionRule",
+ "Required": true,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::DynamoDB::Table.TimeToLiveSpecification": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-timetolivespecification.html",
+ "Properties": {
+ "AttributeName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-timetolivespecification.html#cfn-dynamodb-timetolivespecification-attributename",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Enabled": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-timetolivespecification.html#cfn-dynamodb-timetolivespecification-enabled",
+ "PrimitiveType": "Boolean",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ElasticBeanstalk::Environment.OptionSetting": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-beanstalk-option-settings.html",
+ "Properties": {
+ "Namespace": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-beanstalk-option-settings.html#cfn-beanstalk-optionsettings-namespace",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "OptionName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-beanstalk-option-settings.html#cfn-beanstalk-optionsettings-optionname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "ResourceName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-beanstalk-option-settings.html#cfn-elasticbeanstalk-environment-optionsetting-resourcename",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Value": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-beanstalk-option-settings.html#cfn-beanstalk-optionsettings-value",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CodeDeploy::DeploymentGroup.LoadBalancerInfo": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-loadbalancerinfo.html",
+ "Properties": {
+ "ElbInfoList": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-loadbalancerinfo.html#cfn-codedeploy-deploymentgroup-loadbalancerinfo-elbinfolist",
+ "DuplicatesAllowed": false,
+ "ItemType": "ELBInfo",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "TargetGroupInfoList": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-loadbalancerinfo.html#cfn-codedeploy-deploymentgroup-loadbalancerinfo-targetgroupinfolist",
+ "DuplicatesAllowed": false,
+ "ItemType": "TargetGroupInfo",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Budgets::Budget.NotificationWithSubscribers": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-notificationwithsubscribers.html",
+ "Properties": {
+ "Subscribers": {
+ "Type": "List",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-notificationwithsubscribers.html#cfn-budgets-budget-notificationwithsubscribers-subscribers",
+ "ItemType": "Subscriber",
+ "UpdateType": "Mutable"
+ },
+ "Notification": {
+ "Type": "Notification",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-notificationwithsubscribers.html#cfn-budgets-budget-notificationwithsubscribers-notification",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CodeDeploy::DeploymentGroup.RevisionLocation": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment-revision.html",
+ "Properties": {
+ "GitHubLocation": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment-revision.html#cfn-properties-codedeploy-deploymentgroup-deployment-revision-githublocation",
+ "Required": false,
+ "Type": "GitHubLocation",
+ "UpdateType": "Mutable"
+ },
+ "RevisionType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment-revision.html#cfn-properties-codedeploy-deploymentgroup-deployment-revision-revisiontype",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "S3Location": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment-revision.html#cfn-properties-codedeploy-deploymentgroup-deployment-revision-s3location",
+ "Required": false,
+ "Type": "S3Location",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::S3::Bucket.NotificationFilter": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-notificationconfiguration-config-filter.html",
+ "Properties": {
+ "S3Key": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-notificationconfiguration-config-filter.html#cfn-s3-bucket-notificationconfiguraiton-config-filter-s3key",
+ "Required": true,
+ "Type": "S3KeyFilter",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::DataPipeline::Pipeline.ParameterAttribute": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datapipeline-pipeline-parameterobjects-attributes.html",
+ "Properties": {
+ "Key": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datapipeline-pipeline-parameterobjects-attributes.html#cfn-datapipeline-pipeline-parameterobjects-attribtues-key",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "StringValue": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datapipeline-pipeline-parameterobjects-attributes.html#cfn-datapipeline-pipeline-parameterobjects-attribtues-stringvalue",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Events::Rule.SqsParameters": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-rule-sqsparameters.html",
+ "Properties": {
+ "MessageGroupId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-rule-sqsparameters.html#cfn-events-rule-sqsparameters-messagegroupid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Events::Rule.RunCommandParameters": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-rule-runcommandparameters.html",
+ "Properties": {
+ "RunCommandTargets": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-rule-runcommandparameters.html#cfn-events-rule-runcommandparameters-runcommandtargets",
+ "DuplicatesAllowed": false,
+ "ItemType": "RunCommandTarget",
+ "Required": true,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CertificateManager::Certificate.DomainValidationOption": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-certificatemanager-certificate-domainvalidationoption.html",
+ "Properties": {
+ "DomainName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-certificatemanager-certificate-domainvalidationoption.html#cfn-certificatemanager-certificate-domainvalidationoptions-domainname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "ValidationDomain": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-certificatemanager-certificate-domainvalidationoption.html#cfn-certificatemanager-certificate-domainvalidationoption-validationdomain",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ServiceCatalog::CloudFormationProduct.ProvisioningArtifactProperties": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-servicecatalog-cloudformationproduct-provisioningartifactproperties.html",
+ "Properties": {
+ "Description": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-servicecatalog-cloudformationproduct-provisioningartifactproperties.html#cfn-servicecatalog-cloudformationproduct-provisioningartifactproperties-description",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Info": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-servicecatalog-cloudformationproduct-provisioningartifactproperties.html#cfn-servicecatalog-cloudformationproduct-provisioningartifactproperties-info",
+ "PrimitiveType": "Json",
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-servicecatalog-cloudformationproduct-provisioningartifactproperties.html#cfn-servicecatalog-cloudformationproduct-provisioningartifactproperties-name",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CloudTrail::Trail.EventSelector": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudtrail-trail-eventselector.html",
+ "Properties": {
+ "DataResources": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudtrail-trail-eventselector.html#cfn-cloudtrail-trail-eventselector-dataresources",
+ "DuplicatesAllowed": false,
+ "ItemType": "DataResource",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "IncludeManagementEvents": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudtrail-trail-eventselector.html#cfn-cloudtrail-trail-eventselector-includemanagementevents",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "ReadWriteType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudtrail-trail-eventselector.html#cfn-cloudtrail-trail-eventselector-readwritetype",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::SES::ReceiptRule.BounceAction": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-bounceaction.html",
+ "Properties": {
+ "Sender": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-bounceaction.html#cfn-ses-receiptrule-bounceaction-sender",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "SmtpReplyCode": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-bounceaction.html#cfn-ses-receiptrule-bounceaction-smtpreplycode",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Message": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-bounceaction.html#cfn-ses-receiptrule-bounceaction-message",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "TopicArn": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-bounceaction.html#cfn-ses-receiptrule-bounceaction-topicarn",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "StatusCode": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-bounceaction.html#cfn-ses-receiptrule-bounceaction-statuscode",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::S3::Bucket.RoutingRuleCondition": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-websiteconfiguration-routingrules-routingrulecondition.html",
+ "Properties": {
+ "HttpErrorCodeReturnedEquals": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-websiteconfiguration-routingrules-routingrulecondition.html#cfn-s3-websiteconfiguration-routingrules-routingrulecondition-httperrorcodereturnedequals",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "KeyPrefixEquals": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-websiteconfiguration-routingrules-routingrulecondition.html#cfn-s3-websiteconfiguration-routingrules-routingrulecondition-keyprefixequals",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::KinesisFirehose::DeliveryStream.ElasticsearchDestinationConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-elasticsearchdestinationconfiguration.html",
+ "Properties": {
+ "BufferingHints": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-elasticsearchdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-elasticsearchdestinationconfiguration-bufferinghints",
+ "Required": true,
+ "Type": "ElasticsearchBufferingHints",
+ "UpdateType": "Mutable"
+ },
+ "CloudWatchLoggingOptions": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-elasticsearchdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-elasticsearchdestinationconfiguration-cloudwatchloggingoptions",
+ "Required": false,
+ "Type": "CloudWatchLoggingOptions",
+ "UpdateType": "Mutable"
+ },
+ "DomainARN": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-elasticsearchdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-elasticsearchdestinationconfiguration-domainarn",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "IndexName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-elasticsearchdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-elasticsearchdestinationconfiguration-indexname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "IndexRotationPeriod": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-elasticsearchdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-elasticsearchdestinationconfiguration-indexrotationperiod",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "ProcessingConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-elasticsearchdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-elasticsearchdestinationconfiguration-processingconfiguration",
+ "Required": false,
+ "Type": "ProcessingConfiguration",
+ "UpdateType": "Mutable"
+ },
+ "RetryOptions": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-elasticsearchdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-elasticsearchdestinationconfiguration-retryoptions",
+ "Required": true,
+ "Type": "ElasticsearchRetryOptions",
+ "UpdateType": "Mutable"
+ },
+ "RoleARN": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-elasticsearchdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-elasticsearchdestinationconfiguration-rolearn",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "S3BackupMode": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-elasticsearchdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-elasticsearchdestinationconfiguration-s3backupmode",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "S3Configuration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-elasticsearchdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-elasticsearchdestinationconfiguration-s3configuration",
+ "Required": true,
+ "Type": "S3DestinationConfiguration",
+ "UpdateType": "Mutable"
+ },
+ "TypeName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-elasticsearchdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-elasticsearchdestinationconfiguration-typename",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EC2::SecurityGroup.Ingress": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-rule.html",
+ "Properties": {
+ "CidrIp": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-rule.html#cfn-ec2-security-group-rule-cidrip",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "CidrIpv6": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-rule.html#cfn-ec2-security-group-rule-cidripv6",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Description": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-rule.html#cfn-ec2-security-group-rule-description",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "FromPort": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-rule.html#cfn-ec2-security-group-rule-fromport",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "IpProtocol": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-rule.html#cfn-ec2-security-group-rule-ipprotocol",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "SourceSecurityGroupId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-rule.html#cfn-ec2-security-group-rule-sourcesecuritygroupid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "SourceSecurityGroupName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-rule.html#cfn-ec2-security-group-rule-sourcesecuritygroupname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "SourceSecurityGroupOwnerId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-rule.html#cfn-ec2-security-group-rule-sourcesecuritygroupownerid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "ToPort": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-rule.html#cfn-ec2-security-group-rule-toport",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::S3::Bucket.LifecycleConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig.html",
+ "Properties": {
+ "Rules": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig.html#cfn-s3-bucket-lifecycleconfig-rules",
+ "DuplicatesAllowed": false,
+ "ItemType": "Rule",
+ "Required": true,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::DMS::Endpoint.S3Settings": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dms-endpoint-s3settings.html",
+ "Properties": {
+ "ExternalTableDefinition": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dms-endpoint-s3settings.html#cfn-dms-endpoint-s3settings-externaltabledefinition",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "BucketName": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dms-endpoint-s3settings.html#cfn-dms-endpoint-s3settings-bucketname",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "BucketFolder": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dms-endpoint-s3settings.html#cfn-dms-endpoint-s3settings-bucketfolder",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "CsvRowDelimiter": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dms-endpoint-s3settings.html#cfn-dms-endpoint-s3settings-csvrowdelimiter",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "CsvDelimiter": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dms-endpoint-s3settings.html#cfn-dms-endpoint-s3settings-csvdelimiter",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "ServiceAccessRoleArn": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dms-endpoint-s3settings.html#cfn-dms-endpoint-s3settings-serviceaccessrolearn",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "CompressionType": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dms-endpoint-s3settings.html#cfn-dms-endpoint-s3settings-compressiontype",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::AutoScaling::LaunchConfiguration.BlockDeviceMapping": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig-blockdev-mapping.html",
+ "Properties": {
+ "DeviceName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig-blockdev-mapping.html#cfn-as-launchconfig-blockdev-mapping-devicename",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Ebs": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig-blockdev-mapping.html#cfn-as-launchconfig-blockdev-mapping-ebs",
+ "Required": false,
+ "Type": "BlockDevice",
+ "UpdateType": "Mutable"
+ },
+ "NoDevice": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig-blockdev-mapping.html#cfn-as-launchconfig-blockdev-mapping-nodevice",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "VirtualName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig-blockdev-mapping.html#cfn-as-launchconfig-blockdev-mapping-virtualname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Glue::Partition.SerdeInfo": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-partition-serdeinfo.html",
+ "Properties": {
+ "Parameters": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-partition-serdeinfo.html#cfn-glue-partition-serdeinfo-parameters",
+ "PrimitiveType": "Json",
+ "UpdateType": "Mutable"
+ },
+ "SerializationLibrary": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-partition-serdeinfo.html#cfn-glue-partition-serdeinfo-serializationlibrary",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-partition-serdeinfo.html#cfn-glue-partition-serdeinfo-name",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CloudFront::Distribution.Cookies": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cookies.html",
+ "Properties": {
+ "WhitelistedNames": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cookies.html#cfn-cloudfront-distribution-cookies-whitelistednames",
+ "UpdateType": "Mutable"
+ },
+ "Forward": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cookies.html#cfn-cloudfront-distribution-cookies-forward",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::S3::Bucket.LambdaConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-notificationconfig-lambdaconfig.html",
+ "Properties": {
+ "Event": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-notificationconfig-lambdaconfig.html#cfn-s3-bucket-notificationconfig-lambdaconfig-event",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Filter": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-notificationconfig-lambdaconfig.html#cfn-s3-bucket-notificationconfig-lambdaconfig-filter",
+ "Required": false,
+ "Type": "NotificationFilter",
+ "UpdateType": "Mutable"
+ },
+ "Function": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-notificationconfig-lambdaconfig.html#cfn-s3-bucket-notificationconfig-lambdaconfig-function",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::KinesisAnalytics::ApplicationReferenceDataSource.S3ReferenceDataSource": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationreferencedatasource-s3referencedatasource.html",
+ "Properties": {
+ "BucketARN": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationreferencedatasource-s3referencedatasource.html#cfn-kinesisanalytics-applicationreferencedatasource-s3referencedatasource-bucketarn",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "FileKey": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationreferencedatasource-s3referencedatasource.html#cfn-kinesisanalytics-applicationreferencedatasource-s3referencedatasource-filekey",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "ReferenceRoleARN": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationreferencedatasource-s3referencedatasource.html#cfn-kinesisanalytics-applicationreferencedatasource-s3referencedatasource-referencerolearn",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::WAF::Rule.Predicate": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-rule-predicates.html",
+ "Properties": {
+ "DataId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-rule-predicates.html#cfn-waf-rule-predicates-dataid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Negated": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-rule-predicates.html#cfn-waf-rule-predicates-negated",
+ "PrimitiveType": "Boolean",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Type": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-rule-predicates.html#cfn-waf-rule-predicates-type",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ApiGateway::Deployment.DeploymentCanarySettings": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-deploymentcanarysettings.html",
+ "Properties": {
+ "PercentTraffic": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-deploymentcanarysettings.html#cfn-apigateway-deployment-deploymentcanarysettings-percenttraffic",
+ "PrimitiveType": "Double",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "StageVariableOverrides": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-deploymentcanarysettings.html#cfn-apigateway-deployment-deploymentcanarysettings-stagevariableoverrides",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "Map",
+ "UpdateType": "Immutable"
+ },
+ "UseStageCache": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-deploymentcanarysettings.html#cfn-apigateway-deployment-deploymentcanarysettings-usestagecache",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::EMR::Step.HadoopJarStepConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-step-hadoopjarstepconfig.html",
+ "Properties": {
+ "Args": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-step-hadoopjarstepconfig.html#cfn-elasticmapreduce-step-hadoopjarstepconfig-args",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ },
+ "Jar": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-step-hadoopjarstepconfig.html#cfn-elasticmapreduce-step-hadoopjarstepconfig-jar",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "MainClass": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-step-hadoopjarstepconfig.html#cfn-elasticmapreduce-step-hadoopjarstepconfig-mainclass",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "StepProperties": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-step-hadoopjarstepconfig.html#cfn-elasticmapreduce-step-hadoopjarstepconfig-stepproperties",
+ "DuplicatesAllowed": false,
+ "ItemType": "KeyValue",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::EMR::InstanceGroupConfig.EbsBlockDeviceConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-ebsconfiguration-ebsblockdeviceconfig.html",
+ "Properties": {
+ "VolumeSpecification": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-ebsconfiguration-ebsblockdeviceconfig.html#cfn-emr-ebsconfiguration-ebsblockdeviceconfig-volumespecification",
+ "Required": true,
+ "Type": "VolumeSpecification",
+ "UpdateType": "Mutable"
+ },
+ "VolumesPerInstance": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-ebsconfiguration-ebsblockdeviceconfig.html#cfn-emr-ebsconfiguration-ebsblockdeviceconfig-volumesperinstance",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CodeDeploy::DeploymentGroup.S3Location": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment-revision-s3location.html",
+ "Properties": {
+ "Bucket": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment-revision-s3location.html#cfn-properties-codedeploy-deploymentgroup-deployment-revision-s3location-bucket",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "BundleType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment-revision-s3location.html#cfn-properties-codedeploy-deploymentgroup-deployment-revision-s3location-bundletype",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "ETag": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment-revision-s3location.html#cfn-properties-codedeploy-deploymentgroup-deployment-revision-s3location-etag",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Key": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment-revision-s3location.html#cfn-properties-codedeploy-deploymentgroup-deployment-revision-s3location-key",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Version": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment-revision-s3location.html#cfn-properties-codedeploy-deploymentgroup-deployment-revision-s3location-value",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EC2::LaunchTemplate.PrivateIpAdd": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-privateipadd.html",
+ "Properties": {
+ "PrivateIpAddress": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-privateipadd.html#cfn-ec2-launchtemplate-privateipadd-privateipaddress",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Primary": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-privateipadd.html#cfn-ec2-launchtemplate-privateipadd-primary",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::S3::Bucket.ReplicationRule": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-replicationconfiguration-rules.html",
+ "Properties": {
+ "Destination": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-replicationconfiguration-rules.html#cfn-s3-bucket-replicationconfiguration-rules-destination",
+ "Required": true,
+ "Type": "ReplicationDestination",
+ "UpdateType": "Mutable"
+ },
+ "Id": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-replicationconfiguration-rules.html#cfn-s3-bucket-replicationconfiguration-rules-id",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Prefix": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-replicationconfiguration-rules.html#cfn-s3-bucket-replicationconfiguration-rules-prefix",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "SourceSelectionCriteria": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-replicationconfiguration-rules.html#cfn-s3-bucket-replicationrule-sourceselectioncriteria",
+ "Required": false,
+ "Type": "SourceSelectionCriteria",
+ "UpdateType": "Mutable"
+ },
+ "Status": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-replicationconfiguration-rules.html#cfn-s3-bucket-replicationconfiguration-rules-status",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CloudFront::Distribution.LambdaFunctionAssociation": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-lambdafunctionassociation.html",
+ "Properties": {
+ "EventType": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-lambdafunctionassociation.html#cfn-cloudfront-distribution-lambdafunctionassociation-eventtype",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "LambdaFunctionARN": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-lambdafunctionassociation.html#cfn-cloudfront-distribution-lambdafunctionassociation-lambdafunctionarn",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::KinesisFirehose::DeliveryStream.ElasticsearchBufferingHints": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-elasticsearchbufferinghints.html",
+ "Properties": {
+ "IntervalInSeconds": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-elasticsearchbufferinghints.html#cfn-kinesisfirehose-deliverystream-elasticsearchbufferinghints-intervalinseconds",
+ "PrimitiveType": "Integer",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "SizeInMBs": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-elasticsearchbufferinghints.html#cfn-kinesisfirehose-deliverystream-elasticsearchbufferinghints-sizeinmbs",
+ "PrimitiveType": "Integer",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EC2::SpotFleet.ClassicLoadBalancer": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-classicloadbalancer.html",
+ "Properties": {
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-classicloadbalancer.html#cfn-ec2-spotfleet-classicloadbalancer-name",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EC2::LaunchTemplate.LaunchTemplateData": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html",
+ "Properties": {
+ "SecurityGroups": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-securitygroups",
+ "UpdateType": "Mutable"
+ },
+ "TagSpecifications": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-tagspecifications",
+ "ItemType": "TagSpecification",
+ "UpdateType": "Mutable"
+ },
+ "UserData": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-userdata",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "InstanceInitiatedShutdownBehavior": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-instanceinitiatedshutdownbehavior",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "BlockDeviceMappings": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-blockdevicemappings",
+ "ItemType": "BlockDeviceMapping",
+ "UpdateType": "Mutable"
+ },
+ "IamInstanceProfile": {
+ "Type": "IamInstanceProfile",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-iaminstanceprofile",
+ "UpdateType": "Mutable"
+ },
+ "KernelId": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-kernelid",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "SecurityGroupIds": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-securitygroupids",
+ "UpdateType": "Mutable"
+ },
+ "EbsOptimized": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-ebsoptimized",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "KeyName": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-keyname",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "DisableApiTermination": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-disableapitermination",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "ElasticGpuSpecifications": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-elasticgpuspecifications",
+ "ItemType": "ElasticGpuSpecification",
+ "UpdateType": "Mutable"
+ },
+ "Placement": {
+ "Type": "Placement",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-placement",
+ "UpdateType": "Mutable"
+ },
+ "InstanceMarketOptions": {
+ "Type": "InstanceMarketOptions",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-instancemarketoptions",
+ "UpdateType": "Mutable"
+ },
+ "NetworkInterfaces": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-networkinterfaces",
+ "ItemType": "NetworkInterface",
+ "UpdateType": "Mutable"
+ },
+ "ImageId": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-imageid",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "InstanceType": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-instancetype",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "RamDiskId": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-ramdiskid",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Monitoring": {
+ "Type": "Monitoring",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-monitoring",
+ "UpdateType": "Mutable"
+ },
+ "CreditSpecification": {
+ "Type": "CreditSpecification",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-creditspecification",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Glue::Database.DatabaseInput": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-database-databaseinput.html",
+ "Properties": {
+ "LocationUri": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-database-databaseinput.html#cfn-glue-database-databaseinput-locationuri",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Description": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-database-databaseinput.html#cfn-glue-database-databaseinput-description",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Parameters": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-database-databaseinput.html#cfn-glue-database-databaseinput-parameters",
+ "PrimitiveType": "Json",
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-database-databaseinput.html#cfn-glue-database-databaseinput-name",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::AutoScaling::AutoScalingGroup.LifecycleHookSpecification": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-autoscalinggroup-lifecyclehookspecification.html",
+ "Properties": {
+ "DefaultResult": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-autoscalinggroup-lifecyclehookspecification.html#cfn-autoscaling-autoscalinggroup-lifecyclehookspecification-defaultresult",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "HeartbeatTimeout": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-autoscalinggroup-lifecyclehookspecification.html#cfn-autoscaling-autoscalinggroup-lifecyclehookspecification-heartbeattimeout",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "LifecycleHookName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-autoscalinggroup-lifecyclehookspecification.html#cfn-autoscaling-autoscalinggroup-lifecyclehookspecification-lifecyclehookname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "LifecycleTransition": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-autoscalinggroup-lifecyclehookspecification.html#cfn-autoscaling-autoscalinggroup-lifecyclehookspecification-lifecycletransition",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "NotificationMetadata": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-autoscalinggroup-lifecyclehookspecification.html#cfn-autoscaling-autoscalinggroup-lifecyclehookspecification-notificationmetadata",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "NotificationTargetARN": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-autoscalinggroup-lifecyclehookspecification.html#cfn-autoscaling-autoscalinggroup-lifecyclehookspecification-notificationtargetarn",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "RoleARN": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-autoscalinggroup-lifecyclehookspecification.html#cfn-autoscaling-autoscalinggroup-lifecyclehookspecification-rolearn",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::SES::ReceiptRule.WorkmailAction": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-workmailaction.html",
+ "Properties": {
+ "TopicArn": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-workmailaction.html#cfn-ses-receiptrule-workmailaction-topicarn",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "OrganizationArn": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-workmailaction.html#cfn-ses-receiptrule-workmailaction-organizationarn",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Elasticsearch::Domain.VPCOptions": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticsearch-domain-vpcoptions.html",
+ "Properties": {
+ "SecurityGroupIds": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticsearch-domain-vpcoptions.html#cfn-elasticsearch-domain-vpcoptions-securitygroupids",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "SubnetIds": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticsearch-domain-vpcoptions.html#cfn-elasticsearch-domain-vpcoptions-subnetids",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Cognito::UserPool.PasswordPolicy": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-passwordpolicy.html",
+ "Properties": {
+ "RequireNumbers": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-passwordpolicy.html#cfn-cognito-userpool-passwordpolicy-requirenumbers",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "MinimumLength": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-passwordpolicy.html#cfn-cognito-userpool-passwordpolicy-minimumlength",
+ "PrimitiveType": "Integer",
+ "UpdateType": "Mutable"
+ },
+ "RequireUppercase": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-passwordpolicy.html#cfn-cognito-userpool-passwordpolicy-requireuppercase",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "RequireLowercase": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-passwordpolicy.html#cfn-cognito-userpool-passwordpolicy-requirelowercase",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "RequireSymbols": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-passwordpolicy.html#cfn-cognito-userpool-passwordpolicy-requiresymbols",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ElasticLoadBalancing::LoadBalancer.HealthCheck": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-health-check.html",
+ "Properties": {
+ "HealthyThreshold": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-health-check.html#cfn-elb-healthcheck-healthythreshold",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Interval": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-health-check.html#cfn-elb-healthcheck-interval",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Target": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-health-check.html#cfn-elb-healthcheck-target",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Timeout": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-health-check.html#cfn-elb-healthcheck-timeout",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "UnhealthyThreshold": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-health-check.html#cfn-elb-healthcheck-unhealthythreshold",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EC2::SpotFleet.LaunchTemplateConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-launchtemplateconfig.html",
+ "Properties": {
+ "LaunchTemplateSpecification": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-launchtemplateconfig.html#cfn-ec2-spotfleet-launchtemplateconfig-launchtemplatespecification",
+ "Required": false,
+ "Type": "FleetLaunchTemplateSpecification",
+ "UpdateType": "Mutable"
+ },
+ "Overrides": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-launchtemplateconfig.html#cfn-ec2-spotfleet-launchtemplateconfig-overrides",
+ "DuplicatesAllowed": false,
+ "ItemType": "LaunchTemplateOverrides",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EC2::Instance.ElasticGpuSpecification": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-elasticgpuspecification.html",
+ "Properties": {
+ "Type": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-elasticgpuspecification.html#cfn-ec2-instance-elasticgpuspecification-type",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CodeDeploy::DeploymentGroup.TriggerConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-triggerconfig.html",
+ "Properties": {
+ "TriggerEvents": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-triggerconfig.html#cfn-codedeploy-deploymentgroup-triggerconfig-triggerevents",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "TriggerName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-triggerconfig.html#cfn-codedeploy-deploymentgroup-triggerconfig-triggername",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "TriggerTargetArn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-triggerconfig.html#cfn-codedeploy-deploymentgroup-triggerconfig-triggertargetarn",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::KinesisAnalytics::ApplicationOutput.KinesisFirehoseOutput": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationoutput-kinesisfirehoseoutput.html",
+ "Properties": {
+ "ResourceARN": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationoutput-kinesisfirehoseoutput.html#cfn-kinesisanalytics-applicationoutput-kinesisfirehoseoutput-resourcearn",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "RoleARN": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationoutput-kinesisfirehoseoutput.html#cfn-kinesisanalytics-applicationoutput-kinesisfirehoseoutput-rolearn",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Config::ConfigurationAggregator.OrganizationAggregationSource": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-configurationaggregator-organizationaggregationsource.html",
+ "Properties": {
+ "AllAwsRegions": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-configurationaggregator-organizationaggregationsource.html#cfn-config-configurationaggregator-organizationaggregationsource-allawsregions",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "AwsRegions": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-configurationaggregator-organizationaggregationsource.html#cfn-config-configurationaggregator-organizationaggregationsource-awsregions",
+ "UpdateType": "Mutable"
+ },
+ "RoleArn": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-configurationaggregator-organizationaggregationsource.html#cfn-config-configurationaggregator-organizationaggregationsource-rolearn",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::OpsWorks::Layer.ShutdownEventConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-layer-lifecycleeventconfiguration-shutdowneventconfiguration.html",
+ "Properties": {
+ "DelayUntilElbConnectionsDrained": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-layer-lifecycleeventconfiguration-shutdowneventconfiguration.html#cfn-opsworks-layer-lifecycleconfiguration-shutdowneventconfiguration-delayuntilelbconnectionsdrained",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "ExecutionTimeout": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-layer-lifecycleeventconfiguration-shutdowneventconfiguration.html#cfn-opsworks-layer-lifecycleconfiguration-shutdowneventconfiguration-executiontimeout",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::DataPipeline::Pipeline.PipelineTag": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datapipeline-pipeline-pipelinetags.html",
+ "Properties": {
+ "Key": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datapipeline-pipeline-pipelinetags.html#cfn-datapipeline-pipeline-pipelinetags-key",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Value": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datapipeline-pipeline-pipelinetags.html#cfn-datapipeline-pipeline-pipelinetags-value",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::KinesisAnalytics::Application.MappingParameters": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-application-mappingparameters.html",
+ "Properties": {
+ "JSONMappingParameters": {
+ "Type": "JSONMappingParameters",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-application-mappingparameters.html#cfn-kinesisanalytics-application-mappingparameters-jsonmappingparameters",
+ "UpdateType": "Mutable"
+ },
+ "CSVMappingParameters": {
+ "Type": "CSVMappingParameters",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-application-mappingparameters.html#cfn-kinesisanalytics-application-mappingparameters-csvmappingparameters",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Batch::JobDefinition.Volumes": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-volumes.html",
+ "Properties": {
+ "Host": {
+ "Type": "VolumesHost",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-volumes.html#cfn-batch-jobdefinition-volumes-host",
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-volumes.html#cfn-batch-jobdefinition-volumes-name",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ApplicationAutoScaling::ScalingPolicy.StepScalingPolicyConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalingpolicy-stepscalingpolicyconfiguration.html",
+ "Properties": {
+ "AdjustmentType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalingpolicy-stepscalingpolicyconfiguration.html#cfn-applicationautoscaling-scalingpolicy-stepscalingpolicyconfiguration-adjustmenttype",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Cooldown": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalingpolicy-stepscalingpolicyconfiguration.html#cfn-applicationautoscaling-scalingpolicy-stepscalingpolicyconfiguration-cooldown",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "MetricAggregationType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalingpolicy-stepscalingpolicyconfiguration.html#cfn-applicationautoscaling-scalingpolicy-stepscalingpolicyconfiguration-metricaggregationtype",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "MinAdjustmentMagnitude": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalingpolicy-stepscalingpolicyconfiguration.html#cfn-applicationautoscaling-scalingpolicy-stepscalingpolicyconfiguration-minadjustmentmagnitude",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "StepAdjustments": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalingpolicy-stepscalingpolicyconfiguration.html#cfn-applicationautoscaling-scalingpolicy-stepscalingpolicyconfiguration-stepadjustments",
+ "DuplicatesAllowed": false,
+ "ItemType": "StepAdjustment",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CloudFront::Distribution.CustomOriginConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-customoriginconfig.html",
+ "Properties": {
+ "OriginReadTimeout": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-customoriginconfig.html#cfn-cloudfront-distribution-customoriginconfig-originreadtimeout",
+ "PrimitiveType": "Integer",
+ "UpdateType": "Mutable"
+ },
+ "HTTPSPort": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-customoriginconfig.html#cfn-cloudfront-distribution-customoriginconfig-httpsport",
+ "PrimitiveType": "Integer",
+ "UpdateType": "Mutable"
+ },
+ "OriginKeepaliveTimeout": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-customoriginconfig.html#cfn-cloudfront-distribution-customoriginconfig-originkeepalivetimeout",
+ "PrimitiveType": "Integer",
+ "UpdateType": "Mutable"
+ },
+ "OriginSSLProtocols": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-customoriginconfig.html#cfn-cloudfront-distribution-customoriginconfig-originsslprotocols",
+ "UpdateType": "Mutable"
+ },
+ "HTTPPort": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-customoriginconfig.html#cfn-cloudfront-distribution-customoriginconfig-httpport",
+ "PrimitiveType": "Integer",
+ "UpdateType": "Mutable"
+ },
+ "OriginProtocolPolicy": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-customoriginconfig.html#cfn-cloudfront-distribution-customoriginconfig-originprotocolpolicy",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::S3::Bucket.CorsRule": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-cors-corsrule.html",
+ "Properties": {
+ "AllowedHeaders": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-cors-corsrule.html#cfn-s3-bucket-cors-corsrule-allowedheaders",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "AllowedMethods": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-cors-corsrule.html#cfn-s3-bucket-cors-corsrule-allowedmethods",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": true,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "AllowedOrigins": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-cors-corsrule.html#cfn-s3-bucket-cors-corsrule-allowedorigins",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": true,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "ExposedHeaders": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-cors-corsrule.html#cfn-s3-bucket-cors-corsrule-exposedheaders",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "Id": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-cors-corsrule.html#cfn-s3-bucket-cors-corsrule-id",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "MaxAge": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-cors-corsrule.html#cfn-s3-bucket-cors-corsrule-maxage",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::IoT::TopicRule.S3Action": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-s3action.html",
+ "Properties": {
+ "BucketName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-s3action.html#cfn-iot-topicrule-s3action-bucketname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Key": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-s3action.html#cfn-iot-topicrule-s3action-key",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "RoleArn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-s3action.html#cfn-iot-topicrule-s3action-rolearn",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EC2::NetworkAclEntry.Icmp": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-networkaclentry-icmp.html",
+ "Properties": {
+ "Code": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-networkaclentry-icmp.html#cfn-ec2-networkaclentry-icmp-code",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Type": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-networkaclentry-icmp.html#cfn-ec2-networkaclentry-icmp-type",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CodeBuild::Project.LogsConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-logsconfig.html",
+ "Properties": {
+ "CloudWatchLogs": {
+ "Type": "CloudWatchLogsConfig",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-logsconfig.html#cfn-codebuild-project-logsconfig-cloudwatchlogs",
+ "UpdateType": "Mutable"
+ },
+ "S3Logs": {
+ "Type": "S3LogsConfig",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-logsconfig.html#cfn-codebuild-project-logsconfig-s3logs",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::DynamoDB::Table.AttributeDefinition": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-attributedef.html",
+ "Properties": {
+ "AttributeName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-attributedef.html#cfn-dynamodb-attributedef-attributename",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "AttributeType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-attributedef.html#cfn-dynamodb-attributedef-attributename-attributetype",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CloudFront::CloudFrontOriginAccessIdentity.CloudFrontOriginAccessIdentityConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-cloudfrontoriginaccessidentity-cloudfrontoriginaccessidentityconfig.html",
+ "Properties": {
+ "Comment": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-cloudfrontoriginaccessidentity-cloudfrontoriginaccessidentityconfig.html#cfn-cloudfront-cloudfrontoriginaccessidentity-cloudfrontoriginaccessidentityconfig-comment",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::KinesisFirehose::DeliveryStream.SplunkDestinationConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-splunkdestinationconfiguration.html",
+ "Properties": {
+ "CloudWatchLoggingOptions": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-splunkdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-splunkdestinationconfiguration-cloudwatchloggingoptions",
+ "Required": false,
+ "Type": "CloudWatchLoggingOptions",
+ "UpdateType": "Mutable"
+ },
+ "HECAcknowledgmentTimeoutInSeconds": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-splunkdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-splunkdestinationconfiguration-hecacknowledgmenttimeoutinseconds",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "HECEndpoint": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-splunkdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-splunkdestinationconfiguration-hecendpoint",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "HECEndpointType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-splunkdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-splunkdestinationconfiguration-hecendpointtype",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "HECToken": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-splunkdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-splunkdestinationconfiguration-hectoken",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "ProcessingConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-splunkdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-splunkdestinationconfiguration-processingconfiguration",
+ "Required": false,
+ "Type": "ProcessingConfiguration",
+ "UpdateType": "Mutable"
+ },
+ "RetryOptions": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-splunkdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-splunkdestinationconfiguration-retryoptions",
+ "Required": false,
+ "Type": "SplunkRetryOptions",
+ "UpdateType": "Mutable"
+ },
+ "S3BackupMode": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-splunkdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-splunkdestinationconfiguration-s3backupmode",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "S3Configuration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-splunkdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-splunkdestinationconfiguration-s3configuration",
+ "Required": true,
+ "Type": "S3DestinationConfiguration",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::SageMaker::EndpointConfig.ProductionVariant": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-endpointconfig-productionvariant.html",
+ "Properties": {
+ "ModelName": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-endpointconfig-productionvariant.html#cfn-sagemaker-endpointconfig-productionvariant-modelname",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "VariantName": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-endpointconfig-productionvariant.html#cfn-sagemaker-endpointconfig-productionvariant-variantname",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "InitialInstanceCount": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-endpointconfig-productionvariant.html#cfn-sagemaker-endpointconfig-productionvariant-initialinstancecount",
+ "PrimitiveType": "Integer",
+ "UpdateType": "Immutable"
+ },
+ "InstanceType": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-endpointconfig-productionvariant.html#cfn-sagemaker-endpointconfig-productionvariant-instancetype",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "InitialVariantWeight": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-endpointconfig-productionvariant.html#cfn-sagemaker-endpointconfig-productionvariant-initialvariantweight",
+ "PrimitiveType": "Double",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::SES::ReceiptRule.StopAction": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-stopaction.html",
+ "Properties": {
+ "Scope": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-stopaction.html#cfn-ses-receiptrule-stopaction-scope",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "TopicArn": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-stopaction.html#cfn-ses-receiptrule-stopaction-topicarn",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::DirectoryService::MicrosoftAD.VpcSettings": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-directoryservice-microsoftad-vpcsettings.html",
+ "Properties": {
+ "SubnetIds": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-directoryservice-microsoftad-vpcsettings.html#cfn-directoryservice-microsoftad-vpcsettings-subnetids",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": true,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "VpcId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-directoryservice-microsoftad-vpcsettings.html#cfn-directoryservice-microsoftad-vpcsettings-vpcid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Lambda::Function.VpcConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-vpcconfig.html",
+ "Properties": {
+ "SecurityGroupIds": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-vpcconfig.html#cfn-lambda-function-vpcconfig-securitygroupids",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": true,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "SubnetIds": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-vpcconfig.html#cfn-lambda-function-vpcconfig-subnetids",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": true,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CodePipeline::Pipeline.ActionDeclaration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stages-actions.html",
+ "Properties": {
+ "ActionTypeId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stages-actions.html#cfn-codepipeline-pipeline-stages-actions-actiontypeid",
+ "Required": true,
+ "Type": "ActionTypeId",
+ "UpdateType": "Mutable"
+ },
+ "Configuration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stages-actions.html#cfn-codepipeline-pipeline-stages-actions-configuration",
+ "PrimitiveType": "Json",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "InputArtifacts": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stages-actions.html#cfn-codepipeline-pipeline-stages-actions-inputartifacts",
+ "DuplicatesAllowed": false,
+ "ItemType": "InputArtifact",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stages-actions.html#cfn-codepipeline-pipeline-stages-actions-name",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "OutputArtifacts": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stages-actions.html#cfn-codepipeline-pipeline-stages-actions-outputartifacts",
+ "DuplicatesAllowed": false,
+ "ItemType": "OutputArtifact",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "RoleArn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stages-actions.html#cfn-codepipeline-pipeline-stages-actions-rolearn",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "RunOrder": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stages-actions.html#cfn-codepipeline-pipeline-stages-actions-runorder",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EC2::LaunchTemplate.InstanceMarketOptions": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-instancemarketoptions.html",
+ "Properties": {
+ "SpotOptions": {
+ "Type": "SpotOptions",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-instancemarketoptions.html#cfn-ec2-launchtemplate-launchtemplatedata-instancemarketoptions-spotoptions",
+ "UpdateType": "Mutable"
+ },
+ "MarketType": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-instancemarketoptions.html#cfn-ec2-launchtemplate-launchtemplatedata-instancemarketoptions-markettype",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Batch::JobDefinition.RetryStrategy": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-retrystrategy.html",
+ "Properties": {
+ "Attempts": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-retrystrategy.html#cfn-batch-jobdefinition-retrystrategy-attempts",
+ "PrimitiveType": "Integer",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EMR::InstanceGroupConfig.Configuration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-cluster-configuration.html",
+ "Properties": {
+ "Classification": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-cluster-configuration.html#cfn-emr-cluster-configuration-classification",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "ConfigurationProperties": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-cluster-configuration.html#cfn-emr-cluster-configuration-configurationproperties",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "Map",
+ "UpdateType": "Immutable"
+ },
+ "Configurations": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-cluster-configuration.html#cfn-emr-cluster-configuration-configurations",
+ "DuplicatesAllowed": false,
+ "ItemType": "Configuration",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::Redshift::ClusterParameterGroup.Parameter": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-property-redshift-clusterparametergroup-parameter.html",
+ "Properties": {
+ "ParameterName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-property-redshift-clusterparametergroup-parameter.html#cfn-redshift-clusterparametergroup-parameter-parametername",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "ParameterValue": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-property-redshift-clusterparametergroup-parameter.html#cfn-redshift-clusterparametergroup-parameter-parametervalue",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EMR::InstanceFleetConfig.VolumeSpecification": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancefleetconfig-volumespecification.html",
+ "Properties": {
+ "Iops": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancefleetconfig-volumespecification.html#cfn-elasticmapreduce-instancefleetconfig-volumespecification-iops",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "SizeInGB": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancefleetconfig-volumespecification.html#cfn-elasticmapreduce-instancefleetconfig-volumespecification-sizeingb",
+ "PrimitiveType": "Integer",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "VolumeType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancefleetconfig-volumespecification.html#cfn-elasticmapreduce-instancefleetconfig-volumespecification-volumetype",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::WAF::SqlInjectionMatchSet.SqlInjectionMatchTuple": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-sqlinjectionmatchset-sqlinjectionmatchtuples.html",
+ "Properties": {
+ "FieldToMatch": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-sqlinjectionmatchset-sqlinjectionmatchtuples.html#cfn-waf-sqlinjectionmatchset-sqlinjectionmatchtuples-fieldtomatch",
+ "Required": true,
+ "Type": "FieldToMatch",
+ "UpdateType": "Mutable"
+ },
+ "TextTransformation": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-sqlinjectionmatchset-sqlinjectionmatchtuples.html#cfn-waf-sqlinjectionmatchset-sqlinjectionmatchtuples-texttransformation",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EMR::Cluster.InstanceGroupConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-instancegroupconfig.html",
+ "Properties": {
+ "AutoScalingPolicy": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-instancegroupconfig.html#cfn-elasticmapreduce-cluster-instancegroupconfig-autoscalingpolicy",
+ "Required": false,
+ "Type": "AutoScalingPolicy",
+ "UpdateType": "Mutable"
+ },
+ "BidPrice": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-instancegroupconfig.html#cfn-elasticmapreduce-cluster-instancegroupconfig-bidprice",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Configurations": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-instancegroupconfig.html#cfn-elasticmapreduce-cluster-instancegroupconfig-configurations",
+ "DuplicatesAllowed": false,
+ "ItemType": "Configuration",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ },
+ "EbsConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-instancegroupconfig.html#cfn-elasticmapreduce-cluster-instancegroupconfig-ebsconfiguration",
+ "Required": false,
+ "Type": "EbsConfiguration",
+ "UpdateType": "Immutable"
+ },
+ "InstanceCount": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-instancegroupconfig.html#cfn-elasticmapreduce-cluster-instancegroupconfig-instancecount",
+ "PrimitiveType": "Integer",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "InstanceType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-instancegroupconfig.html#cfn-elasticmapreduce-cluster-instancegroupconfig-instancetype",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "Market": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-instancegroupconfig.html#cfn-elasticmapreduce-cluster-instancegroupconfig-market",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-instancegroupconfig.html#cfn-elasticmapreduce-cluster-instancegroupconfig-name",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::EC2::LaunchTemplate.CreditSpecification": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-creditspecification.html",
+ "Properties": {
+ "CpuCredits": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-creditspecification.html#cfn-ec2-launchtemplate-launchtemplatedata-creditspecification-cpucredits",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Redshift::Cluster.LoggingProperties": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-redshift-cluster-loggingproperties.html",
+ "Properties": {
+ "BucketName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-redshift-cluster-loggingproperties.html#cfn-redshift-cluster-loggingproperties-bucketname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "S3KeyPrefix": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-redshift-cluster-loggingproperties.html#cfn-redshift-cluster-loggingproperties-s3keyprefix",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ElasticLoadBalancingV2::TargetGroup.TargetGroupAttribute": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-targetgroup-targetgroupattribute.html",
+ "Properties": {
+ "Key": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-targetgroup-targetgroupattribute.html#cfn-elasticloadbalancingv2-targetgroup-targetgroupattribute-key",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Value": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-targetgroup-targetgroupattribute.html#cfn-elasticloadbalancingv2-targetgroup-targetgroupattribute-value",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::S3::Bucket.Destination": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-destination.html",
+ "Properties": {
+ "BucketAccountId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-destination.html#cfn-s3-bucket-destination-bucketaccountid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "BucketArn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-destination.html#cfn-s3-bucket-destination-bucketarn",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Format": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-destination.html#cfn-s3-bucket-destination-format",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Prefix": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-destination.html#cfn-s3-bucket-destination-prefix",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::OpsWorks::App.DataSource": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-app-datasource.html",
+ "Properties": {
+ "Arn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-app-datasource.html#cfn-opsworks-app-datasource-arn",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "DatabaseName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-app-datasource.html#cfn-opsworks-app-datasource-databasename",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Type": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-app-datasource.html#cfn-opsworks-app-datasource-type",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::S3::Bucket.ServerSideEncryptionRule": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-serversideencryptionrule.html",
+ "Properties": {
+ "ServerSideEncryptionByDefault": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-serversideencryptionrule.html#cfn-s3-bucket-serversideencryptionrule-serversideencryptionbydefault",
+ "Required": false,
+ "Type": "ServerSideEncryptionByDefault",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::WAF::WebACL.WafAction": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-webacl-action.html",
+ "Properties": {
+ "Type": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-webacl-action.html#cfn-waf-webacl-action-type",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::WAFRegional::WebACL.Rule": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-webacl-rule.html",
+ "Properties": {
+ "Action": {
+ "Type": "Action",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-webacl-rule.html#cfn-wafregional-webacl-rule-action",
+ "UpdateType": "Mutable"
+ },
+ "Priority": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-webacl-rule.html#cfn-wafregional-webacl-rule-priority",
+ "PrimitiveType": "Integer",
+ "UpdateType": "Mutable"
+ },
+ "RuleId": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-webacl-rule.html#cfn-wafregional-webacl-rule-ruleid",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::RDS::DBSecurityGroup.Ingress": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-security-group-rule.html",
+ "Properties": {
+ "CIDRIP": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-security-group-rule.html#cfn-rds-securitygroup-cidrip",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "EC2SecurityGroupId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-security-group-rule.html#cfn-rds-securitygroup-ec2securitygroupid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "EC2SecurityGroupName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-security-group-rule.html#cfn-rds-securitygroup-ec2securitygroupname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "EC2SecurityGroupOwnerId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-security-group-rule.html#cfn-rds-securitygroup-ec2securitygroupownerid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::WAF::IPSet.IPSetDescriptor": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-ipset-ipsetdescriptors.html",
+ "Properties": {
+ "Type": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-ipset-ipsetdescriptors.html#cfn-waf-ipset-ipsetdescriptors-type",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Value": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-ipset-ipsetdescriptors.html#cfn-waf-ipset-ipsetdescriptors-value",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::SES::ReceiptRule.Action": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-action.html",
+ "Properties": {
+ "BounceAction": {
+ "Type": "BounceAction",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-action.html#cfn-ses-receiptrule-action-bounceaction",
+ "UpdateType": "Mutable"
+ },
+ "S3Action": {
+ "Type": "S3Action",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-action.html#cfn-ses-receiptrule-action-s3action",
+ "UpdateType": "Mutable"
+ },
+ "StopAction": {
+ "Type": "StopAction",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-action.html#cfn-ses-receiptrule-action-stopaction",
+ "UpdateType": "Mutable"
+ },
+ "SNSAction": {
+ "Type": "SNSAction",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-action.html#cfn-ses-receiptrule-action-snsaction",
+ "UpdateType": "Mutable"
+ },
+ "WorkmailAction": {
+ "Type": "WorkmailAction",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-action.html#cfn-ses-receiptrule-action-workmailaction",
+ "UpdateType": "Mutable"
+ },
+ "AddHeaderAction": {
+ "Type": "AddHeaderAction",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-action.html#cfn-ses-receiptrule-action-addheaderaction",
+ "UpdateType": "Mutable"
+ },
+ "LambdaAction": {
+ "Type": "LambdaAction",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-action.html#cfn-ses-receiptrule-action-lambdaaction",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::SSM::Association.InstanceAssociationOutputLocation": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-association-instanceassociationoutputlocation.html",
+ "Properties": {
+ "S3Location": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-association-instanceassociationoutputlocation.html#cfn-ssm-association-instanceassociationoutputlocation-s3location",
+ "Required": false,
+ "Type": "S3OutputLocation",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Glue::Partition.StorageDescriptor": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-partition-storagedescriptor.html",
+ "Properties": {
+ "StoredAsSubDirectories": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-partition-storagedescriptor.html#cfn-glue-partition-storagedescriptor-storedassubdirectories",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "Parameters": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-partition-storagedescriptor.html#cfn-glue-partition-storagedescriptor-parameters",
+ "PrimitiveType": "Json",
+ "UpdateType": "Mutable"
+ },
+ "BucketColumns": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-partition-storagedescriptor.html#cfn-glue-partition-storagedescriptor-bucketcolumns",
+ "UpdateType": "Mutable"
+ },
+ "SkewedInfo": {
+ "Type": "SkewedInfo",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-partition-storagedescriptor.html#cfn-glue-partition-storagedescriptor-skewedinfo",
+ "UpdateType": "Mutable"
+ },
+ "InputFormat": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-partition-storagedescriptor.html#cfn-glue-partition-storagedescriptor-inputformat",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "NumberOfBuckets": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-partition-storagedescriptor.html#cfn-glue-partition-storagedescriptor-numberofbuckets",
+ "PrimitiveType": "Integer",
+ "UpdateType": "Mutable"
+ },
+ "OutputFormat": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-partition-storagedescriptor.html#cfn-glue-partition-storagedescriptor-outputformat",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Columns": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-partition-storagedescriptor.html#cfn-glue-partition-storagedescriptor-columns",
+ "ItemType": "Column",
+ "UpdateType": "Mutable"
+ },
+ "SerdeInfo": {
+ "Type": "SerdeInfo",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-partition-storagedescriptor.html#cfn-glue-partition-storagedescriptor-serdeinfo",
+ "UpdateType": "Mutable"
+ },
+ "SortColumns": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-partition-storagedescriptor.html#cfn-glue-partition-storagedescriptor-sortcolumns",
+ "ItemType": "Order",
+ "UpdateType": "Mutable"
+ },
+ "Compressed": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-partition-storagedescriptor.html#cfn-glue-partition-storagedescriptor-compressed",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "Location": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-partition-storagedescriptor.html#cfn-glue-partition-storagedescriptor-location",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Glue::Trigger.Action": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-trigger-action.html",
+ "Properties": {
+ "JobName": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-trigger-action.html#cfn-glue-trigger-action-jobname",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Arguments": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-trigger-action.html#cfn-glue-trigger-action-arguments",
+ "PrimitiveType": "Json",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EC2::Instance.NetworkInterface": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-network-iface-embedded.html",
+ "Properties": {
+ "AssociatePublicIpAddress": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-network-iface-embedded.html#aws-properties-ec2-network-iface-embedded-associatepubip",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "DeleteOnTermination": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-network-iface-embedded.html#aws-properties-ec2-network-iface-embedded-delete",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Description": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-network-iface-embedded.html#aws-properties-ec2-network-iface-embedded-description",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "DeviceIndex": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-network-iface-embedded.html#aws-properties-ec2-network-iface-embedded-deviceindex",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "GroupSet": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-network-iface-embedded.html#aws-properties-ec2-network-iface-embedded-groupset",
+ "DuplicatesAllowed": true,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "Ipv6AddressCount": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-network-iface-embedded.html#cfn-ec2-instance-networkinterface-ipv6addresscount",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Ipv6Addresses": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-network-iface-embedded.html#cfn-ec2-instance-networkinterface-ipv6addresses",
+ "DuplicatesAllowed": true,
+ "ItemType": "InstanceIpv6Address",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "NetworkInterfaceId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-network-iface-embedded.html#aws-properties-ec2-network-iface-embedded-network-iface",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "PrivateIpAddress": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-network-iface-embedded.html#aws-properties-ec2-network-iface-embedded-privateipaddress",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "PrivateIpAddresses": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-network-iface-embedded.html#aws-properties-ec2-network-iface-embedded-privateipaddresses",
+ "DuplicatesAllowed": true,
+ "ItemType": "PrivateIpAddressSpecification",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "SecondaryPrivateIpAddressCount": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-network-iface-embedded.html#aws-properties-ec2-network-iface-embedded-secondprivateip",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "SubnetId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-network-iface-embedded.html#aws-properties-ec2-network-iface-embedded-subnetid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ApiGateway::Deployment.MethodSetting": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-stagedescription-methodsetting.html",
+ "Properties": {
+ "CacheDataEncrypted": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-stagedescription-methodsetting.html#cfn-apigateway-deployment-stagedescription-methodsetting-cachedataencrypted",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "CacheTtlInSeconds": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-stagedescription-methodsetting.html#cfn-apigateway-deployment-stagedescription-methodsetting-cachettlinseconds",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "CachingEnabled": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-stagedescription-methodsetting.html#cfn-apigateway-deployment-stagedescription-methodsetting-cachingenabled",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "DataTraceEnabled": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-stagedescription-methodsetting.html#cfn-apigateway-deployment-stagedescription-methodsetting-datatraceenabled",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "HttpMethod": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-stagedescription-methodsetting.html#cfn-apigateway-deployment-stagedescription-methodsetting-httpmethod",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "LoggingLevel": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-stagedescription-methodsetting.html#cfn-apigateway-deployment-stagedescription-methodsetting-logginglevel",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "MetricsEnabled": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-stagedescription-methodsetting.html#cfn-apigateway-deployment-stagedescription-methodsetting-metricsenabled",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "ResourcePath": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-stagedescription-methodsetting.html#cfn-apigateway-deployment-stagedescription-methodsetting-resourcepath",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "ThrottlingBurstLimit": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-stagedescription-methodsetting.html#cfn-apigateway-deployment-stagedescription-methodsetting-throttlingburstlimit",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "ThrottlingRateLimit": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-stagedescription-methodsetting.html#cfn-apigateway-deployment-stagedescription-methodsetting-throttlingratelimit",
+ "PrimitiveType": "Double",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EC2::SpotFleet.IamInstanceProfileSpecification": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-iaminstanceprofile.html",
+ "Properties": {
+ "Arn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-iaminstanceprofile.html#cfn-ec2-spotfleet-iaminstanceprofilespecification-arn",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::AutoScalingPlans::ScalingPlan.ApplicationSource": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscalingplans-scalingplan-applicationsource.html",
+ "Properties": {
+ "CloudFormationStackARN": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscalingplans-scalingplan-applicationsource.html#cfn-autoscalingplans-scalingplan-applicationsource-cloudformationstackarn",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "TagFilters": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscalingplans-scalingplan-applicationsource.html#cfn-autoscalingplans-scalingplan-applicationsource-tagfilters",
+ "ItemType": "TagFilter",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::OpsWorks::Layer.VolumeConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-layer-volumeconfiguration.html",
+ "Properties": {
+ "Iops": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-layer-volumeconfiguration.html#cfn-opsworks-layer-volconfig-iops",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "MountPoint": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-layer-volumeconfiguration.html#cfn-opsworks-layer-volconfig-mountpoint",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "NumberOfDisks": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-layer-volumeconfiguration.html#cfn-opsworks-layer-volconfig-numberofdisks",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "RaidLevel": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-layer-volumeconfiguration.html#cfn-opsworks-layer-volconfig-raidlevel",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Size": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-layer-volumeconfiguration.html#cfn-opsworks-layer-volconfig-size",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "VolumeType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-layer-volumeconfiguration.html#cfn-opsworks-layer-volconfig-volumetype",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EMR::Cluster.SpotProvisioningSpecification": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-spotprovisioningspecification.html",
+ "Properties": {
+ "BlockDurationMinutes": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-spotprovisioningspecification.html#cfn-elasticmapreduce-cluster-spotprovisioningspecification-blockdurationminutes",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "TimeoutAction": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-spotprovisioningspecification.html#cfn-elasticmapreduce-cluster-spotprovisioningspecification-timeoutaction",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "TimeoutDurationMinutes": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-spotprovisioningspecification.html#cfn-elasticmapreduce-cluster-spotprovisioningspecification-timeoutdurationminutes",
+ "PrimitiveType": "Integer",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::AutoScaling::ScalingPolicy.MetricDimension": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-metricdimension.html",
+ "Properties": {
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-metricdimension.html#cfn-autoscaling-scalingpolicy-metricdimension-name",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Value": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-metricdimension.html#cfn-autoscaling-scalingpolicy-metricdimension-value",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EMR::Cluster.BootstrapActionConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-bootstrapactionconfig.html",
+ "Properties": {
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-bootstrapactionconfig.html#cfn-elasticmapreduce-cluster-bootstrapactionconfig-name",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "ScriptBootstrapAction": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-bootstrapactionconfig.html#cfn-elasticmapreduce-cluster-bootstrapactionconfig-scriptbootstrapaction",
+ "Required": true,
+ "Type": "ScriptBootstrapActionConfig",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EC2::SpotFleet.InstanceNetworkInterfaceSpecification": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-networkinterfaces.html",
+ "Properties": {
+ "AssociatePublicIpAddress": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-networkinterfaces.html#cfn-ec2-spotfleet-instancenetworkinterfacespecification-associatepublicipaddress",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "DeleteOnTermination": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-networkinterfaces.html#cfn-ec2-spotfleet-instancenetworkinterfacespecification-deleteontermination",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Description": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-networkinterfaces.html#cfn-ec2-spotfleet-instancenetworkinterfacespecification-description",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "DeviceIndex": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-networkinterfaces.html#cfn-ec2-spotfleet-instancenetworkinterfacespecification-deviceindex",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Groups": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-networkinterfaces.html#cfn-ec2-spotfleet-instancenetworkinterfacespecification-groups",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "Ipv6AddressCount": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-networkinterfaces.html#cfn-ec2-spotfleet-instancenetworkinterfacespecification-ipv6addresscount",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Ipv6Addresses": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-networkinterfaces.html#cfn-ec2-spotfleet-instancenetworkinterfacespecification-ipv6addresses",
+ "DuplicatesAllowed": false,
+ "ItemType": "InstanceIpv6Address",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "NetworkInterfaceId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-networkinterfaces.html#cfn-ec2-spotfleet-instancenetworkinterfacespecification-networkinterfaceid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "PrivateIpAddresses": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-networkinterfaces.html#cfn-ec2-spotfleet-instancenetworkinterfacespecification-privateipaddresses",
+ "DuplicatesAllowed": false,
+ "ItemType": "PrivateIpAddressSpecification",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "SecondaryPrivateIpAddressCount": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-networkinterfaces.html#cfn-ec2-spotfleet-instancenetworkinterfacespecification-secondaryprivateipaddresscount",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "SubnetId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-networkinterfaces.html#cfn-ec2-spotfleet-instancenetworkinterfacespecification-subnetid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EMR::InstanceFleetConfig.SpotProvisioningSpecification": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancefleetconfig-spotprovisioningspecification.html",
+ "Properties": {
+ "BlockDurationMinutes": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancefleetconfig-spotprovisioningspecification.html#cfn-elasticmapreduce-instancefleetconfig-spotprovisioningspecification-blockdurationminutes",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "TimeoutAction": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancefleetconfig-spotprovisioningspecification.html#cfn-elasticmapreduce-instancefleetconfig-spotprovisioningspecification-timeoutaction",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "TimeoutDurationMinutes": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancefleetconfig-spotprovisioningspecification.html#cfn-elasticmapreduce-instancefleetconfig-spotprovisioningspecification-timeoutdurationminutes",
+ "PrimitiveType": "Integer",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ECS::TaskDefinition.DockerVolumeConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-dockervolumeconfiguration.html",
+ "Properties": {
+ "Autoprovision": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-dockervolumeconfiguration.html#cfn-ecs-taskdefinition-dockervolumeconfiguration-autoprovision",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Driver": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-dockervolumeconfiguration.html#cfn-ecs-taskdefinition-dockervolumeconfiguration-driver",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "DriverOpts": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-dockervolumeconfiguration.html#cfn-ecs-taskdefinition-dockervolumeconfiguration-driveropts",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "Map",
+ "UpdateType": "Immutable"
+ },
+ "Labels": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-dockervolumeconfiguration.html#cfn-ecs-taskdefinition-dockervolumeconfiguration-labels",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "Map",
+ "UpdateType": "Immutable"
+ },
+ "Scope": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-dockervolumeconfiguration.html#cfn-ecs-taskdefinition-dockervolumeconfiguration-scope",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::WAFRegional::IPSet.IPSetDescriptor": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-ipset-ipsetdescriptor.html",
+ "Properties": {
+ "Type": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-ipset-ipsetdescriptor.html#cfn-wafregional-ipset-ipsetdescriptor-type",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Value": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-ipset-ipsetdescriptor.html#cfn-wafregional-ipset-ipsetdescriptor-value",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::AutoScaling::AutoScalingGroup.LaunchTemplateSpecification": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-autoscalinggroup-launchtemplatespecification.html",
+ "Properties": {
+ "LaunchTemplateId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-autoscalinggroup-launchtemplatespecification.html#cfn-autoscaling-autoscalinggroup-launchtemplatespecification-launchtemplateid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "LaunchTemplateName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-autoscalinggroup-launchtemplatespecification.html#cfn-autoscaling-autoscalinggroup-launchtemplatespecification-launchtemplatename",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Version": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-autoscalinggroup-launchtemplatespecification.html#cfn-autoscaling-autoscalinggroup-launchtemplatespecification-version",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ECS::TaskDefinition.ContainerDefinition": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions.html",
+ "Properties": {
+ "Command": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions.html#cfn-ecs-taskdefinition-containerdefinition-command",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ },
+ "Cpu": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions.html#cfn-ecs-taskdefinition-containerdefinition-cpu",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "DisableNetworking": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions.html#cfn-ecs-taskdefinition-containerdefinition-disablenetworking",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "DnsSearchDomains": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions.html#cfn-ecs-taskdefinition-containerdefinition-dnssearchdomains",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ },
+ "DnsServers": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions.html#cfn-ecs-taskdefinition-containerdefinition-dnsservers",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ },
+ "DockerLabels": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions.html#cfn-ecs-taskdefinition-containerdefinition-dockerlabels",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "Map",
+ "UpdateType": "Immutable"
+ },
+ "DockerSecurityOptions": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions.html#cfn-ecs-taskdefinition-containerdefinition-dockersecurityoptions",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ },
+ "EntryPoint": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions.html#cfn-ecs-taskdefinition-containerdefinition-entrypoint",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ },
+ "Environment": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions.html#cfn-ecs-taskdefinition-containerdefinition-environment",
+ "DuplicatesAllowed": false,
+ "ItemType": "KeyValuePair",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ },
+ "Essential": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions.html#cfn-ecs-taskdefinition-containerdefinition-essential",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "ExtraHosts": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions.html#cfn-ecs-taskdefinition-containerdefinition-extrahosts",
+ "DuplicatesAllowed": false,
+ "ItemType": "HostEntry",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ },
+ "HealthCheck": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions.html#cfn-ecs-taskdefinition-containerdefinition-healthcheck",
+ "Required": false,
+ "Type": "HealthCheck",
+ "UpdateType": "Immutable"
+ },
+ "Hostname": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions.html#cfn-ecs-taskdefinition-containerdefinition-hostname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Image": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions.html#cfn-ecs-taskdefinition-containerdefinition-image",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Links": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions.html#cfn-ecs-taskdefinition-containerdefinition-links",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ },
+ "LinuxParameters": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions.html#cfn-ecs-taskdefinition-containerdefinition-linuxparameters",
+ "Required": false,
+ "Type": "LinuxParameters",
+ "UpdateType": "Immutable"
+ },
+ "LogConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions.html#cfn-ecs-taskdefinition-containerdefinition-logconfiguration",
+ "Required": false,
+ "Type": "LogConfiguration",
+ "UpdateType": "Immutable"
+ },
+ "Memory": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions.html#cfn-ecs-taskdefinition-containerdefinition-memory",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "MemoryReservation": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions.html#cfn-ecs-taskdefinition-containerdefinition-memoryreservation",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "MountPoints": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions.html#cfn-ecs-taskdefinition-containerdefinition-mountpoints",
+ "DuplicatesAllowed": false,
+ "ItemType": "MountPoint",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ },
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions.html#cfn-ecs-taskdefinition-containerdefinition-name",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "PortMappings": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions.html#cfn-ecs-taskdefinition-containerdefinition-portmappings",
+ "DuplicatesAllowed": false,
+ "ItemType": "PortMapping",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ },
+ "Privileged": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions.html#cfn-ecs-taskdefinition-containerdefinition-privileged",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "ReadonlyRootFilesystem": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions.html#cfn-ecs-taskdefinition-containerdefinition-readonlyrootfilesystem",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "RepositoryCredentials": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions.html#cfn-ecs-taskdefinition-containerdefinition-repositorycredentials",
+ "Required": false,
+ "Type": "RepositoryCredentials",
+ "UpdateType": "Immutable"
+ },
+ "Ulimits": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions.html#cfn-ecs-taskdefinition-containerdefinition-ulimits",
+ "DuplicatesAllowed": false,
+ "ItemType": "Ulimit",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ },
+ "User": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions.html#cfn-ecs-taskdefinition-containerdefinition-user",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "VolumesFrom": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions.html#cfn-ecs-taskdefinition-containerdefinition-volumesfrom",
+ "DuplicatesAllowed": false,
+ "ItemType": "VolumeFrom",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ },
+ "WorkingDirectory": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions.html#cfn-ecs-taskdefinition-containerdefinition-workingdirectory",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::Batch::JobDefinition.ContainerProperties": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-containerproperties.html",
+ "Properties": {
+ "MountPoints": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-containerproperties.html#cfn-batch-jobdefinition-containerproperties-mountpoints",
+ "ItemType": "MountPoints",
+ "UpdateType": "Mutable"
+ },
+ "User": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-containerproperties.html#cfn-batch-jobdefinition-containerproperties-user",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Volumes": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-containerproperties.html#cfn-batch-jobdefinition-containerproperties-volumes",
+ "ItemType": "Volumes",
+ "UpdateType": "Mutable"
+ },
+ "Command": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-containerproperties.html#cfn-batch-jobdefinition-containerproperties-command",
+ "UpdateType": "Mutable"
+ },
+ "Memory": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-containerproperties.html#cfn-batch-jobdefinition-containerproperties-memory",
+ "PrimitiveType": "Integer",
+ "UpdateType": "Mutable"
+ },
+ "Privileged": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-containerproperties.html#cfn-batch-jobdefinition-containerproperties-privileged",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "Environment": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-containerproperties.html#cfn-batch-jobdefinition-containerproperties-environment",
+ "ItemType": "Environment",
+ "UpdateType": "Mutable"
+ },
+ "JobRoleArn": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-containerproperties.html#cfn-batch-jobdefinition-containerproperties-jobrolearn",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "ReadonlyRootFilesystem": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-containerproperties.html#cfn-batch-jobdefinition-containerproperties-readonlyrootfilesystem",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "Ulimits": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-containerproperties.html#cfn-batch-jobdefinition-containerproperties-ulimits",
+ "ItemType": "Ulimit",
+ "UpdateType": "Mutable"
+ },
+ "Vcpus": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-containerproperties.html#cfn-batch-jobdefinition-containerproperties-vcpus",
+ "PrimitiveType": "Integer",
+ "UpdateType": "Mutable"
+ },
+ "Image": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-containerproperties.html#cfn-batch-jobdefinition-containerproperties-image",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::GameLift::Fleet.IpPermission": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-fleet-ec2inboundpermission.html",
+ "Properties": {
+ "FromPort": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-fleet-ec2inboundpermission.html#cfn-gamelift-fleet-ec2inboundpermissions-fromport",
+ "PrimitiveType": "Integer",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "IpRange": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-fleet-ec2inboundpermission.html#cfn-gamelift-fleet-ec2inboundpermissions-iprange",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Protocol": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-fleet-ec2inboundpermission.html#cfn-gamelift-fleet-ec2inboundpermissions-protocol",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "ToPort": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-fleet-ec2inboundpermission.html#cfn-gamelift-fleet-ec2inboundpermissions-toport",
+ "PrimitiveType": "Integer",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Config::DeliveryChannel.ConfigSnapshotDeliveryProperties": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-deliverychannel-configsnapshotdeliveryproperties.html",
+ "Properties": {
+ "DeliveryFrequency": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-deliverychannel-configsnapshotdeliveryproperties.html#cfn-config-deliverychannel-configsnapshotdeliveryproperties-deliveryfrequency",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::AutoScalingPlans::ScalingPlan.ScalingInstruction": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscalingplans-scalingplan-scalinginstruction.html",
+ "Properties": {
+ "ResourceId": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscalingplans-scalingplan-scalinginstruction.html#cfn-autoscalingplans-scalingplan-scalinginstruction-resourceid",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "ServiceNamespace": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscalingplans-scalingplan-scalinginstruction.html#cfn-autoscalingplans-scalingplan-scalinginstruction-servicenamespace",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "ScalableDimension": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscalingplans-scalingplan-scalinginstruction.html#cfn-autoscalingplans-scalingplan-scalinginstruction-scalabledimension",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "MinCapacity": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscalingplans-scalingplan-scalinginstruction.html#cfn-autoscalingplans-scalingplan-scalinginstruction-mincapacity",
+ "PrimitiveType": "Integer",
+ "UpdateType": "Mutable"
+ },
+ "TargetTrackingConfigurations": {
+ "Type": "List",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscalingplans-scalingplan-scalinginstruction.html#cfn-autoscalingplans-scalingplan-scalinginstruction-targettrackingconfigurations",
+ "ItemType": "TargetTrackingConfiguration",
+ "UpdateType": "Mutable"
+ },
+ "MaxCapacity": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscalingplans-scalingplan-scalinginstruction.html#cfn-autoscalingplans-scalingplan-scalinginstruction-maxcapacity",
+ "PrimitiveType": "Integer",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::SSM::MaintenanceWindowTask.MaintenanceWindowLambdaParameters": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-maintenancewindowtask-maintenancewindowlambdaparameters.html",
+ "Properties": {
+ "ClientContext": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-maintenancewindowtask-maintenancewindowlambdaparameters.html#cfn-ssm-maintenancewindowtask-maintenancewindowlambdaparameters-clientcontext",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Qualifier": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-maintenancewindowtask-maintenancewindowlambdaparameters.html#cfn-ssm-maintenancewindowtask-maintenancewindowlambdaparameters-qualifier",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Payload": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-maintenancewindowtask-maintenancewindowlambdaparameters.html#cfn-ssm-maintenancewindowtask-maintenancewindowlambdaparameters-payload",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::IoT::TopicRule.SqsAction": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-sqsaction.html",
+ "Properties": {
+ "QueueUrl": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-sqsaction.html#cfn-iot-topicrule-sqsaction-queueurl",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "RoleArn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-sqsaction.html#cfn-iot-topicrule-sqsaction-rolearn",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "UseBase64": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-sqsaction.html#cfn-iot-topicrule-sqsaction-usebase64",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::WAF::SqlInjectionMatchSet.FieldToMatch": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-bytematchset-bytematchtuples-fieldtomatch.html",
+ "Properties": {
+ "Data": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-bytematchset-bytematchtuples-fieldtomatch.html#cfn-waf-sizeconstraintset-sizeconstraint-fieldtomatch-data",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Type": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-bytematchset-bytematchtuples-fieldtomatch.html#cfn-waf-sizeconstraintset-sizeconstraint-fieldtomatch-type",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::AutoScaling::ScalingPolicy.CustomizedMetricSpecification": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-customizedmetricspecification.html",
+ "Properties": {
+ "Dimensions": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-customizedmetricspecification.html#cfn-autoscaling-scalingpolicy-customizedmetricspecification-dimensions",
+ "DuplicatesAllowed": false,
+ "ItemType": "MetricDimension",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "MetricName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-customizedmetricspecification.html#cfn-autoscaling-scalingpolicy-customizedmetricspecification-metricname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Namespace": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-customizedmetricspecification.html#cfn-autoscaling-scalingpolicy-customizedmetricspecification-namespace",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Statistic": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-customizedmetricspecification.html#cfn-autoscaling-scalingpolicy-customizedmetricspecification-statistic",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Unit": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-customizedmetricspecification.html#cfn-autoscaling-scalingpolicy-customizedmetricspecification-unit",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::DataPipeline::Pipeline.ParameterObject": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datapipeline-pipeline-parameterobjects.html",
+ "Properties": {
+ "Attributes": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datapipeline-pipeline-parameterobjects.html#cfn-datapipeline-pipeline-parameterobjects-attributes",
+ "DuplicatesAllowed": true,
+ "ItemType": "ParameterAttribute",
+ "Required": true,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "Id": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datapipeline-pipeline-parameterobjects.html#cfn-datapipeline-pipeline-parameterobjects-id",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CodePipeline::Pipeline.StageDeclaration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stages.html",
+ "Properties": {
+ "Actions": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stages.html#cfn-codepipeline-pipeline-stages-actions",
+ "DuplicatesAllowed": false,
+ "ItemType": "ActionDeclaration",
+ "Required": true,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "Blockers": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stages.html#cfn-codepipeline-pipeline-stages-blockers",
+ "DuplicatesAllowed": false,
+ "ItemType": "BlockerDeclaration",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stages.html#cfn-codepipeline-pipeline-stages-name",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EMR::Cluster.ScalingConstraints": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-scalingconstraints.html",
+ "Properties": {
+ "MaxCapacity": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-scalingconstraints.html#cfn-elasticmapreduce-cluster-scalingconstraints-maxcapacity",
+ "PrimitiveType": "Integer",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "MinCapacity": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-scalingconstraints.html#cfn-elasticmapreduce-cluster-scalingconstraints-mincapacity",
+ "PrimitiveType": "Integer",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EMR::InstanceGroupConfig.MetricDimension": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancegroupconfig-metricdimension.html",
+ "Properties": {
+ "Key": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancegroupconfig-metricdimension.html#cfn-elasticmapreduce-instancegroupconfig-metricdimension-key",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Value": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancegroupconfig-metricdimension.html#cfn-elasticmapreduce-instancegroupconfig-metricdimension-value",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ECS::Service.LoadBalancer": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-loadbalancers.html",
+ "Properties": {
+ "ContainerName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-loadbalancers.html#cfn-ecs-service-loadbalancers-containername",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "ContainerPort": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-loadbalancers.html#cfn-ecs-service-loadbalancers-containerport",
+ "PrimitiveType": "Integer",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "LoadBalancerName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-loadbalancers.html#cfn-ecs-service-loadbalancers-loadbalancername",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "TargetGroupArn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-loadbalancers.html#cfn-ecs-service-loadbalancers-targetgrouparn",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::KinesisFirehose::DeliveryStream.EncryptionConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-encryptionconfiguration.html",
+ "Properties": {
+ "KMSEncryptionConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-encryptionconfiguration.html#cfn-kinesisfirehose-deliverystream-encryptionconfiguration-kmsencryptionconfig",
+ "Required": false,
+ "Type": "KMSEncryptionConfig",
+ "UpdateType": "Mutable"
+ },
+ "NoEncryptionConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-encryptionconfiguration.html#cfn-kinesisfirehose-deliverystream-encryptionconfiguration-noencryptionconfig",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::KinesisFirehose::DeliveryStream.CloudWatchLoggingOptions": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-cloudwatchloggingoptions.html",
+ "Properties": {
+ "Enabled": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-cloudwatchloggingoptions.html#cfn-kinesisfirehose-deliverystream-cloudwatchloggingoptions-enabled",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "LogGroupName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-cloudwatchloggingoptions.html#cfn-kinesisfirehose-deliverystream-cloudwatchloggingoptions-loggroupname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "LogStreamName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-cloudwatchloggingoptions.html#cfn-kinesisfirehose-deliverystream-cloudwatchloggingoptions-logstreamname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ECS::TaskDefinition.LogConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions-logconfiguration.html",
+ "Properties": {
+ "LogDriver": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions-logconfiguration.html#cfn-ecs-taskdefinition-containerdefinition-logconfiguration-logdriver",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "Options": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions-logconfiguration.html#cfn-ecs-taskdefinition-containerdefinition-logconfiguration-options",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "Map",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::ApiGateway::Method.MethodResponse": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-method-methodresponse.html",
+ "Properties": {
+ "ResponseModels": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-method-methodresponse.html#cfn-apigateway-method-methodresponse-responsemodels",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "Map",
+ "UpdateType": "Mutable"
+ },
+ "ResponseParameters": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-method-methodresponse.html#cfn-apigateway-method-methodresponse-responseparameters",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "Boolean",
+ "Required": false,
+ "Type": "Map",
+ "UpdateType": "Mutable"
+ },
+ "StatusCode": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-method-methodresponse.html#cfn-apigateway-method-methodresponse-statuscode",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ElasticBeanstalk::ConfigurationTemplate.SourceConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticbeanstalk-configurationtemplate-sourceconfiguration.html",
+ "Properties": {
+ "ApplicationName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticbeanstalk-configurationtemplate-sourceconfiguration.html#cfn-elasticbeanstalk-configurationtemplate-sourceconfiguration-applicationname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "TemplateName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticbeanstalk-configurationtemplate-sourceconfiguration.html#cfn-elasticbeanstalk-configurationtemplate-sourceconfiguration-templatename",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::IoT::TopicRule.PutItemInput": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-putiteminput.html",
+ "Properties": {
+ "TableName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-putiteminput.html#cfn-iot-topicrule-putiteminput-tablename",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::AutoScaling::AutoScalingGroup.NotificationConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-notificationconfigurations.html",
+ "Properties": {
+ "NotificationTypes": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-notificationconfigurations.html#cfn-as-group-notificationconfigurations-notificationtypes",
+ "DuplicatesAllowed": true,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "TopicARN": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-notificationconfigurations.html#cfn-autoscaling-autoscalinggroup-notificationconfigurations-topicarn",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::SES::ReceiptFilter.Filter": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptfilter-filter.html",
+ "Properties": {
+ "IpFilter": {
+ "Type": "IpFilter",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptfilter-filter.html#cfn-ses-receiptfilter-filter-ipfilter",
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptfilter-filter.html#cfn-ses-receiptfilter-filter-name",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ElasticLoadBalancing::LoadBalancer.AccessLoggingPolicy": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-accessloggingpolicy.html",
+ "Properties": {
+ "EmitInterval": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-accessloggingpolicy.html#cfn-elb-accessloggingpolicy-emitinterval",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Enabled": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-accessloggingpolicy.html#cfn-elb-accessloggingpolicy-enabled",
+ "PrimitiveType": "Boolean",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "S3BucketName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-accessloggingpolicy.html#cfn-elb-accessloggingpolicy-s3bucketname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "S3BucketPrefix": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-accessloggingpolicy.html#cfn-elb-accessloggingpolicy-s3bucketprefix",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CodeDeploy::DeploymentGroup.TagFilter": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-tagfilter.html",
+ "Properties": {
+ "Key": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-tagfilter.html#cfn-codedeploy-deploymentgroup-tagfilter-key",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Type": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-tagfilter.html#cfn-codedeploy-deploymentgroup-tagfilter-type",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Value": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-tagfilter.html#cfn-codedeploy-deploymentgroup-tagfilter-value",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::KinesisAnalytics::ApplicationOutput.KinesisStreamsOutput": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationoutput-kinesisstreamsoutput.html",
+ "Properties": {
+ "ResourceARN": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationoutput-kinesisstreamsoutput.html#cfn-kinesisanalytics-applicationoutput-kinesisstreamsoutput-resourcearn",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "RoleARN": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationoutput-kinesisstreamsoutput.html#cfn-kinesisanalytics-applicationoutput-kinesisstreamsoutput-rolearn",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EC2::SpotFleet.SpotFleetTagSpecification": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-tagspecifications.html",
+ "Properties": {
+ "ResourceType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-tagspecifications.html#cfn-ec2-spotfleet-spotfleettagspecification-resourcetype",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EC2::SpotFleet.PrivateIpAddressSpecification": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-networkinterfaces-privateipaddresses.html",
+ "Properties": {
+ "Primary": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-networkinterfaces-privateipaddresses.html#cfn-ec2-spotfleet-privateipaddressspecification-primary",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "PrivateIpAddress": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-networkinterfaces-privateipaddresses.html#cfn-ec2-spotfleet-privateipaddressspecification-privateipaddress",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ECS::TaskDefinition.Device": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-device.html",
+ "Properties": {
+ "ContainerPath": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-device.html#cfn-ecs-taskdefinition-device-containerpath",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "HostPath": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-device.html#cfn-ecs-taskdefinition-device-hostpath",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "Permissions": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-device.html#cfn-ecs-taskdefinition-device-permissions",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::EC2::LaunchTemplate.Monitoring": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-monitoring.html",
+ "Properties": {
+ "Enabled": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-monitoring.html#cfn-ec2-launchtemplate-launchtemplatedata-monitoring-enabled",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ElasticLoadBalancingV2::Listener.Action": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-listener-defaultactions.html",
+ "Properties": {
+ "TargetGroupArn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-listener-defaultactions.html#cfn-elasticloadbalancingv2-listener-defaultactions-targetgrouparn",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Type": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-listener-defaultactions.html#cfn-elasticloadbalancingv2-listener-defaultactions-type",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Glue::Partition.Order": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-partition-order.html",
+ "Properties": {
+ "Column": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-partition-order.html#cfn-glue-partition-order-column",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "SortOrder": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-partition-order.html#cfn-glue-partition-order-sortorder",
+ "PrimitiveType": "Integer",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Glue::Job.JobCommand": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-job-jobcommand.html",
+ "Properties": {
+ "ScriptLocation": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-job-jobcommand.html#cfn-glue-job-jobcommand-scriptlocation",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-job-jobcommand.html#cfn-glue-job-jobcommand-name",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ServiceDiscovery::Service.DnsConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-servicediscovery-service-dnsconfig.html",
+ "Properties": {
+ "DnsRecords": {
+ "Type": "List",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-servicediscovery-service-dnsconfig.html#cfn-servicediscovery-service-dnsconfig-dnsrecords",
+ "ItemType": "DnsRecord",
+ "UpdateType": "Mutable"
+ },
+ "RoutingPolicy": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-servicediscovery-service-dnsconfig.html#cfn-servicediscovery-service-dnsconfig-routingpolicy",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "NamespaceId": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-servicediscovery-service-dnsconfig.html#cfn-servicediscovery-service-dnsconfig-namespaceid",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::ApiGateway::Method.Integration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-method-integration.html",
+ "Properties": {
+ "CacheKeyParameters": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-method-integration.html#cfn-apigateway-method-integration-cachekeyparameters",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "CacheNamespace": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-method-integration.html#cfn-apigateway-method-integration-cachenamespace",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "ConnectionId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-method-integration.html#cfn-apigateway-method-integration-connectionid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "ConnectionType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-method-integration.html#cfn-apigateway-method-integration-connectiontype",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "ContentHandling": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-method-integration.html#cfn-apigateway-method-integration-contenthandling",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Credentials": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-method-integration.html#cfn-apigateway-method-integration-credentials",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "IntegrationHttpMethod": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-method-integration.html#cfn-apigateway-method-integration-integrationhttpmethod",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "IntegrationResponses": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-method-integration.html#cfn-apigateway-method-integration-integrationresponses",
+ "DuplicatesAllowed": false,
+ "ItemType": "IntegrationResponse",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "PassthroughBehavior": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-method-integration.html#cfn-apigateway-method-integration-passthroughbehavior",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "RequestParameters": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-method-integration.html#cfn-apigateway-method-integration-requestparameters",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "Map",
+ "UpdateType": "Mutable"
+ },
+ "RequestTemplates": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-method-integration.html#cfn-apigateway-method-integration-requesttemplates",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "Map",
+ "UpdateType": "Mutable"
+ },
+ "TimeoutInMillis": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-method-integration.html#cfn-apigateway-method-integration-timeoutinmillis",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Type": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-method-integration.html#cfn-apigateway-method-integration-type",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Uri": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-method-integration.html#cfn-apigateway-method-integration-uri",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Batch::JobDefinition.Timeout": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-timeout.html",
+ "Properties": {
+ "AttemptDurationSeconds": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-timeout.html#cfn-batch-jobdefinition-timeout-attemptdurationseconds",
+ "PrimitiveType": "Integer",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::IoT::TopicRule.RepublishAction": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-republishaction.html",
+ "Properties": {
+ "RoleArn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-republishaction.html#cfn-iot-topicrule-republishaction-rolearn",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Topic": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-republishaction.html#cfn-iot-topicrule-republishaction-topic",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::KinesisAnalytics::ApplicationOutput.Output": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationoutput-output.html",
+ "Properties": {
+ "DestinationSchema": {
+ "Type": "DestinationSchema",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationoutput-output.html#cfn-kinesisanalytics-applicationoutput-output-destinationschema",
+ "UpdateType": "Mutable"
+ },
+ "LambdaOutput": {
+ "Type": "LambdaOutput",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationoutput-output.html#cfn-kinesisanalytics-applicationoutput-output-lambdaoutput",
+ "UpdateType": "Mutable"
+ },
+ "KinesisFirehoseOutput": {
+ "Type": "KinesisFirehoseOutput",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationoutput-output.html#cfn-kinesisanalytics-applicationoutput-output-kinesisfirehoseoutput",
+ "UpdateType": "Mutable"
+ },
+ "KinesisStreamsOutput": {
+ "Type": "KinesisStreamsOutput",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationoutput-output.html#cfn-kinesisanalytics-applicationoutput-output-kinesisstreamsoutput",
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationoutput-output.html#cfn-kinesisanalytics-applicationoutput-output-name",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::EMR::Cluster.InstanceFleetConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-instancefleetconfig.html",
+ "Properties": {
+ "InstanceTypeConfigs": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-instancefleetconfig.html#cfn-elasticmapreduce-cluster-instancefleetconfig-instancetypeconfigs",
+ "DuplicatesAllowed": false,
+ "ItemType": "InstanceTypeConfig",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ },
+ "LaunchSpecifications": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-instancefleetconfig.html#cfn-elasticmapreduce-cluster-instancefleetconfig-launchspecifications",
+ "Required": false,
+ "Type": "InstanceFleetProvisioningSpecifications",
+ "UpdateType": "Immutable"
+ },
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-instancefleetconfig.html#cfn-elasticmapreduce-cluster-instancefleetconfig-name",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "TargetOnDemandCapacity": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-instancefleetconfig.html#cfn-elasticmapreduce-cluster-instancefleetconfig-targetondemandcapacity",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "TargetSpotCapacity": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-instancefleetconfig.html#cfn-elasticmapreduce-cluster-instancefleetconfig-targetspotcapacity",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Glue::Table.SkewedInfo": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-skewedinfo.html",
+ "Properties": {
+ "SkewedColumnNames": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-skewedinfo.html#cfn-glue-table-skewedinfo-skewedcolumnnames",
+ "UpdateType": "Mutable"
+ },
+ "SkewedColumnValues": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-skewedinfo.html#cfn-glue-table-skewedinfo-skewedcolumnvalues",
+ "UpdateType": "Mutable"
+ },
+ "SkewedColumnValueLocationMaps": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-skewedinfo.html#cfn-glue-table-skewedinfo-skewedcolumnvaluelocationmaps",
+ "PrimitiveType": "Json",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::KinesisFirehose::DeliveryStream.ProcessingConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-processingconfiguration.html",
+ "Properties": {
+ "Enabled": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-processingconfiguration.html#cfn-kinesisfirehose-deliverystream-processingconfiguration-enabled",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Processors": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-processingconfiguration.html#cfn-kinesisfirehose-deliverystream-processingconfiguration-processors",
+ "DuplicatesAllowed": false,
+ "ItemType": "Processor",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ServiceDiscovery::Service.DnsRecord": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-servicediscovery-service-dnsrecord.html",
+ "Properties": {
+ "Type": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-servicediscovery-service-dnsrecord.html#cfn-servicediscovery-service-dnsrecord-type",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "TTL": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-servicediscovery-service-dnsrecord.html#cfn-servicediscovery-service-dnsrecord-ttl",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::DynamoDB::Table.LocalSecondaryIndex": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-lsi.html",
+ "Properties": {
+ "IndexName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-lsi.html#cfn-dynamodb-lsi-indexname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "KeySchema": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-lsi.html#cfn-dynamodb-lsi-keyschema",
+ "DuplicatesAllowed": false,
+ "ItemType": "KeySchema",
+ "Required": true,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "Projection": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-lsi.html#cfn-dynamodb-lsi-projection",
+ "Required": true,
+ "Type": "Projection",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Config::ConfigRule.Scope": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-configrule-scope.html",
+ "Properties": {
+ "ComplianceResourceId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-configrule-scope.html#cfn-config-configrule-scope-complianceresourceid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "ComplianceResourceTypes": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-configrule-scope.html#cfn-config-configrule-scope-complianceresourcetypes",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "TagKey": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-configrule-scope.html#cfn-config-configrule-scope-tagkey",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "TagValue": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-configrule-scope.html#cfn-config-configrule-scope-tagvalue",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EMR::Cluster.JobFlowInstancesConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-jobflowinstancesconfig.html",
+ "Properties": {
+ "AdditionalMasterSecurityGroups": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-jobflowinstancesconfig.html#cfn-elasticmapreduce-cluster-jobflowinstancesconfig-additionalmastersecuritygroups",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ },
+ "AdditionalSlaveSecurityGroups": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-jobflowinstancesconfig.html#cfn-elasticmapreduce-cluster-jobflowinstancesconfig-additionalslavesecuritygroups",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ },
+ "CoreInstanceFleet": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-jobflowinstancesconfig.html#cfn-elasticmapreduce-cluster-jobflowinstancesconfig-coreinstancefleet",
+ "Required": false,
+ "Type": "InstanceFleetConfig",
+ "UpdateType": "Immutable"
+ },
+ "CoreInstanceGroup": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-jobflowinstancesconfig.html#cfn-elasticmapreduce-cluster-jobflowinstancesconfig-coreinstancegroup",
+ "Required": false,
+ "Type": "InstanceGroupConfig",
+ "UpdateType": "Immutable"
+ },
+ "Ec2KeyName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-jobflowinstancesconfig.html#cfn-elasticmapreduce-cluster-jobflowinstancesconfig-ec2keyname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Ec2SubnetId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-jobflowinstancesconfig.html#cfn-elasticmapreduce-cluster-jobflowinstancesconfig-ec2subnetid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "EmrManagedMasterSecurityGroup": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-jobflowinstancesconfig.html#cfn-elasticmapreduce-cluster-jobflowinstancesconfig-emrmanagedmastersecuritygroup",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "EmrManagedSlaveSecurityGroup": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-jobflowinstancesconfig.html#cfn-elasticmapreduce-cluster-jobflowinstancesconfig-emrmanagedslavesecuritygroup",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "HadoopVersion": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-jobflowinstancesconfig.html#cfn-elasticmapreduce-cluster-jobflowinstancesconfig-hadoopversion",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "MasterInstanceFleet": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-jobflowinstancesconfig.html#cfn-elasticmapreduce-cluster-jobflowinstancesconfig-masterinstancefleet",
+ "Required": false,
+ "Type": "InstanceFleetConfig",
+ "UpdateType": "Immutable"
+ },
+ "MasterInstanceGroup": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-jobflowinstancesconfig.html#cfn-elasticmapreduce-cluster-jobflowinstancesconfig-masterinstancegroup",
+ "Required": false,
+ "Type": "InstanceGroupConfig",
+ "UpdateType": "Immutable"
+ },
+ "Placement": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-jobflowinstancesconfig.html#cfn-elasticmapreduce-cluster-jobflowinstancesconfig-placement",
+ "Required": false,
+ "Type": "PlacementType",
+ "UpdateType": "Immutable"
+ },
+ "ServiceAccessSecurityGroup": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-jobflowinstancesconfig.html#cfn-elasticmapreduce-cluster-jobflowinstancesconfig-serviceaccesssecuritygroup",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "TerminationProtected": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-jobflowinstancesconfig.html#cfn-elasticmapreduce-cluster-jobflowinstancesconfig-terminationprotected",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EC2::VPNConnection.VpnTunnelOptionsSpecification": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-vpnconnection-vpntunneloptionsspecification.html",
+ "Properties": {
+ "PreSharedKey": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-vpnconnection-vpntunneloptionsspecification.html#cfn-ec2-vpnconnection-vpntunneloptionsspecification-presharedkey",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "TunnelInsideCidr": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-vpnconnection-vpntunneloptionsspecification.html#cfn-ec2-vpnconnection-vpntunneloptionsspecification-tunnelinsidecidr",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::CloudFront::Distribution.ForwardedValues": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-forwardedvalues.html",
+ "Properties": {
+ "Cookies": {
+ "Type": "Cookies",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-forwardedvalues.html#cfn-cloudfront-distribution-forwardedvalues-cookies",
+ "UpdateType": "Mutable"
+ },
+ "Headers": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-forwardedvalues.html#cfn-cloudfront-distribution-forwardedvalues-headers",
+ "UpdateType": "Mutable"
+ },
+ "QueryString": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-forwardedvalues.html#cfn-cloudfront-distribution-forwardedvalues-querystring",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "QueryStringCacheKeys": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-forwardedvalues.html#cfn-cloudfront-distribution-forwardedvalues-querystringcachekeys",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::WAF::XssMatchSet.FieldToMatch": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-xssmatchset-xssmatchtuple-fieldtomatch.html",
+ "Properties": {
+ "Data": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-xssmatchset-xssmatchtuple-fieldtomatch.html#cfn-waf-xssmatchset-xssmatchtuple-fieldtomatch-data",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Type": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-xssmatchset-xssmatchtuple-fieldtomatch.html#cfn-waf-xssmatchset-xssmatchtuple-fieldtomatch-type",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ApiGateway::Method.IntegrationResponse": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-method-integration-integrationresponse.html",
+ "Properties": {
+ "ContentHandling": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-method-integration-integrationresponse.html#cfn-apigateway-method-integrationresponse-contenthandling",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "ResponseParameters": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-method-integration-integrationresponse.html#cfn-apigateway-method-integration-integrationresponse-responseparameters",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "Map",
+ "UpdateType": "Mutable"
+ },
+ "ResponseTemplates": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-method-integration-integrationresponse.html#cfn-apigateway-method-integration-integrationresponse-responsetemplates",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "Map",
+ "UpdateType": "Mutable"
+ },
+ "SelectionPattern": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-method-integration-integrationresponse.html#cfn-apigateway-method-integration-integrationresponse-selectionpattern",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "StatusCode": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-method-integration-integrationresponse.html#cfn-apigateway-method-integration-integrationresponse-statuscode",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Route53::HealthCheck.HealthCheckConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-healthcheck-healthcheckconfig.html",
+ "Properties": {
+ "AlarmIdentifier": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-healthcheck-healthcheckconfig.html#cfn-route53-healthcheck-healthcheckconfig-alarmidentifier",
+ "Required": false,
+ "Type": "AlarmIdentifier",
+ "UpdateType": "Mutable"
+ },
+ "ChildHealthChecks": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-healthcheck-healthcheckconfig.html#cfn-route53-healthcheck-healthcheckconfig-childhealthchecks",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "EnableSNI": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-healthcheck-healthcheckconfig.html#cfn-route53-healthcheck-healthcheckconfig-enablesni",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "FailureThreshold": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-healthcheck-healthcheckconfig.html#cfn-route53-healthcheck-healthcheckconfig-failurethreshold",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "FullyQualifiedDomainName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-healthcheck-healthcheckconfig.html#cfn-route53-healthcheck-healthcheckconfig-fullyqualifieddomainname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "HealthThreshold": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-healthcheck-healthcheckconfig.html#cfn-route53-healthcheck-healthcheckconfig-healththreshold",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "IPAddress": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-healthcheck-healthcheckconfig.html#cfn-route53-healthcheck-healthcheckconfig-ipaddress",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "InsufficientDataHealthStatus": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-healthcheck-healthcheckconfig.html#cfn-route53-healthcheck-healthcheckconfig-insufficientdatahealthstatus",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Inverted": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-healthcheck-healthcheckconfig.html#cfn-route53-healthcheck-healthcheckconfig-inverted",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "MeasureLatency": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-healthcheck-healthcheckconfig.html#cfn-route53-healthcheck-healthcheckconfig-measurelatency",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Port": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-healthcheck-healthcheckconfig.html#cfn-route53-healthcheck-healthcheckconfig-port",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Regions": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-healthcheck-healthcheckconfig.html#cfn-route53-healthcheck-healthcheckconfig-regions",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "RequestInterval": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-healthcheck-healthcheckconfig.html#cfn-route53-healthcheck-healthcheckconfig-requestinterval",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "ResourcePath": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-healthcheck-healthcheckconfig.html#cfn-route53-healthcheck-healthcheckconfig-resourcepath",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "SearchString": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-healthcheck-healthcheckconfig.html#cfn-route53-healthcheck-healthcheckconfig-searchstring",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Type": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-healthcheck-healthcheckconfig.html#cfn-route53-healthcheck-healthcheckconfig-type",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::EMR::Cluster.ScalingAction": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-scalingaction.html",
+ "Properties": {
+ "Market": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-scalingaction.html#cfn-elasticmapreduce-cluster-scalingaction-market",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "SimpleScalingPolicyConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-scalingaction.html#cfn-elasticmapreduce-cluster-scalingaction-simplescalingpolicyconfiguration",
+ "Required": true,
+ "Type": "SimpleScalingPolicyConfiguration",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Budgets::Budget.Subscriber": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-subscriber.html",
+ "Properties": {
+ "SubscriptionType": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-subscriber.html#cfn-budgets-budget-subscriber-subscriptiontype",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Address": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-subscriber.html#cfn-budgets-budget-subscriber-address",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::IoT::TopicRule.SnsAction": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-snsaction.html",
+ "Properties": {
+ "MessageFormat": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-snsaction.html#cfn-iot-topicrule-snsaction-messageformat",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "RoleArn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-snsaction.html#cfn-iot-topicrule-snsaction-rolearn",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "TargetArn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-snsaction.html#cfn-iot-topicrule-snsaction-targetarn",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EC2::SpotFleet.SpotFleetLaunchSpecification": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications.html",
+ "Properties": {
+ "BlockDeviceMappings": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications.html#cfn-ec2-spotfleet-spotfleetlaunchspecification-blockdevicemappings",
+ "DuplicatesAllowed": false,
+ "ItemType": "BlockDeviceMapping",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "EbsOptimized": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications.html#cfn-ec2-spotfleet-spotfleetlaunchspecification-ebsoptimized",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "IamInstanceProfile": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications.html#cfn-ec2-spotfleet-spotfleetlaunchspecification-iaminstanceprofile",
+ "Required": false,
+ "Type": "IamInstanceProfileSpecification",
+ "UpdateType": "Mutable"
+ },
+ "ImageId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications.html#cfn-ec2-spotfleet-spotfleetlaunchspecification-imageid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "InstanceType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications.html#cfn-ec2-spotfleet-spotfleetlaunchspecification-instancetype",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "KernelId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications.html#cfn-ec2-spotfleet-spotfleetlaunchspecification-kernelid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "KeyName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications.html#cfn-ec2-spotfleet-spotfleetlaunchspecification-keyname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Monitoring": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications.html#cfn-ec2-spotfleet-spotfleetlaunchspecification-monitoring",
+ "Required": false,
+ "Type": "SpotFleetMonitoring",
+ "UpdateType": "Mutable"
+ },
+ "NetworkInterfaces": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications.html#cfn-ec2-spotfleet-spotfleetlaunchspecification-networkinterfaces",
+ "DuplicatesAllowed": false,
+ "ItemType": "InstanceNetworkInterfaceSpecification",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "Placement": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications.html#cfn-ec2-spotfleet-spotfleetlaunchspecification-placement",
+ "Required": false,
+ "Type": "SpotPlacement",
+ "UpdateType": "Mutable"
+ },
+ "RamdiskId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications.html#cfn-ec2-spotfleet-spotfleetlaunchspecification-ramdiskid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "SecurityGroups": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications.html#cfn-ec2-spotfleet-spotfleetlaunchspecification-securitygroups",
+ "DuplicatesAllowed": false,
+ "ItemType": "GroupIdentifier",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "SpotPrice": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications.html#cfn-ec2-spotfleet-spotfleetlaunchspecification-spotprice",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "SubnetId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications.html#cfn-ec2-spotfleet-spotfleetlaunchspecification-subnetid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "TagSpecifications": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications.html#cfn-ec2-spotfleet-spotfleetlaunchspecification-tagspecifications",
+ "DuplicatesAllowed": false,
+ "ItemType": "SpotFleetTagSpecification",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "UserData": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications.html#cfn-ec2-spotfleet-spotfleetlaunchspecification-userdata",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "WeightedCapacity": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications.html#cfn-ec2-spotfleet-spotfleetlaunchspecification-weightedcapacity",
+ "PrimitiveType": "Double",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ECS::TaskDefinition.KeyValuePair": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions-environment.html",
+ "Properties": {
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions-environment.html#cfn-ecs-taskdefinition-containerdefinition-environment-name",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Value": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions-environment.html#cfn-ecs-taskdefinition-containerdefinition-environment-value",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::CloudFront::Distribution.CacheBehavior": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html",
+ "Properties": {
+ "Compress": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-compress",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "LambdaFunctionAssociations": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-lambdafunctionassociations",
+ "ItemType": "LambdaFunctionAssociation",
+ "UpdateType": "Mutable"
+ },
+ "TargetOriginId": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-targetoriginid",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "ViewerProtocolPolicy": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-viewerprotocolpolicy",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "TrustedSigners": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-trustedsigners",
+ "UpdateType": "Mutable"
+ },
+ "DefaultTTL": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-defaultttl",
+ "PrimitiveType": "Double",
+ "UpdateType": "Mutable"
+ },
+ "FieldLevelEncryptionId": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-fieldlevelencryptionid",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "AllowedMethods": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-allowedmethods",
+ "UpdateType": "Mutable"
+ },
+ "PathPattern": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-pathpattern",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "CachedMethods": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-cachedmethods",
+ "UpdateType": "Mutable"
+ },
+ "SmoothStreaming": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-smoothstreaming",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "ForwardedValues": {
+ "Type": "ForwardedValues",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-forwardedvalues",
+ "UpdateType": "Mutable"
+ },
+ "MinTTL": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-minttl",
+ "PrimitiveType": "Double",
+ "UpdateType": "Mutable"
+ },
+ "MaxTTL": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-maxttl",
+ "PrimitiveType": "Double",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::DirectoryService::SimpleAD.VpcSettings": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-directoryservice-simplead-vpcsettings.html",
+ "Properties": {
+ "SubnetIds": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-directoryservice-simplead-vpcsettings.html#cfn-directoryservice-simplead-vpcsettings-subnetids",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": true,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "VpcId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-directoryservice-simplead-vpcsettings.html#cfn-directoryservice-simplead-vpcsettings-vpcid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CodePipeline::Pipeline.BlockerDeclaration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stages-blockers.html",
+ "Properties": {
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stages-blockers.html#cfn-codepipeline-pipeline-stages-blockers-name",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Type": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stages-blockers.html#cfn-codepipeline-pipeline-stages-blockers-type",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::GuardDuty::Filter.FindingCriteria": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-filter-findingcriteria.html",
+ "Properties": {
+ "Criterion": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-filter-findingcriteria.html#cfn-guardduty-filter-findingcriteria-criterion",
+ "PrimitiveType": "Json",
+ "UpdateType": "Mutable"
+ },
+ "ItemType": {
+ "Type": "Condition",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-filter-findingcriteria.html#cfn-guardduty-filter-findingcriteria-itemtype",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Elasticsearch::Domain.ElasticsearchClusterConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticsearch-domain-elasticsearchclusterconfig.html",
+ "Properties": {
+ "DedicatedMasterCount": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticsearch-domain-elasticsearchclusterconfig.html#cfn-elasticsearch-domain-elasticseachclusterconfig-dedicatedmastercount",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "DedicatedMasterEnabled": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticsearch-domain-elasticsearchclusterconfig.html#cfn-elasticsearch-domain-elasticseachclusterconfig-dedicatedmasterenabled",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "DedicatedMasterType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticsearch-domain-elasticsearchclusterconfig.html#cfn-elasticsearch-domain-elasticseachclusterconfig-dedicatedmastertype",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "InstanceCount": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticsearch-domain-elasticsearchclusterconfig.html#cfn-elasticsearch-domain-elasticseachclusterconfig-instancecount",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "InstanceType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticsearch-domain-elasticsearchclusterconfig.html#cfn-elasticsearch-domain-elasticseachclusterconfig-instnacetype",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "ZoneAwarenessEnabled": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticsearch-domain-elasticsearchclusterconfig.html#cfn-elasticsearch-domain-elasticseachclusterconfig-zoneawarenessenabled",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Lambda::Function.DeadLetterConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-deadletterconfig.html",
+ "Properties": {
+ "TargetArn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-deadletterconfig.html#cfn-lambda-function-deadletterconfig-targetarn",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CodePipeline::CustomActionType.Settings": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-customactiontype-settings.html",
+ "Properties": {
+ "EntityUrlTemplate": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-customactiontype-settings.html#cfn-codepipeline-customactiontype-settings-entityurltemplate",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "ExecutionUrlTemplate": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-customactiontype-settings.html#cfn-codepipeline-customactiontype-settings-executionurltemplate",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "RevisionUrlTemplate": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-customactiontype-settings.html#cfn-codepipeline-customactiontype-settings-revisionurltemplate",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "ThirdPartyConfigurationUrl": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-customactiontype-settings.html#cfn-codepipeline-customactiontype-settings-thirdpartyconfigurationurl",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::S3::Bucket.AnalyticsConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-analyticsconfiguration.html",
+ "Properties": {
+ "Id": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-analyticsconfiguration.html#cfn-s3-bucket-analyticsconfiguration-id",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Prefix": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-analyticsconfiguration.html#cfn-s3-bucket-analyticsconfiguration-prefix",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "StorageClassAnalysis": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-analyticsconfiguration.html#cfn-s3-bucket-analyticsconfiguration-storageclassanalysis",
+ "Required": true,
+ "Type": "StorageClassAnalysis",
+ "UpdateType": "Mutable"
+ },
+ "TagFilters": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-analyticsconfiguration.html#cfn-s3-bucket-analyticsconfiguration-tagfilters",
+ "DuplicatesAllowed": false,
+ "ItemType": "TagFilter",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Budgets::Budget.Notification": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-notification.html",
+ "Properties": {
+ "ComparisonOperator": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-notification.html#cfn-budgets-budget-notification-comparisonoperator",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "NotificationType": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-notification.html#cfn-budgets-budget-notification-notificationtype",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Threshold": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-notification.html#cfn-budgets-budget-notification-threshold",
+ "PrimitiveType": "Double",
+ "UpdateType": "Mutable"
+ },
+ "ThresholdType": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-notification.html#cfn-budgets-budget-notification-thresholdtype",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::AutoScalingPlans::ScalingPlan.TargetTrackingConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscalingplans-scalingplan-targettrackingconfiguration.html",
+ "Properties": {
+ "ScaleOutCooldown": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscalingplans-scalingplan-targettrackingconfiguration.html#cfn-autoscalingplans-scalingplan-targettrackingconfiguration-scaleoutcooldown",
+ "PrimitiveType": "Integer",
+ "UpdateType": "Mutable"
+ },
+ "TargetValue": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscalingplans-scalingplan-targettrackingconfiguration.html#cfn-autoscalingplans-scalingplan-targettrackingconfiguration-targetvalue",
+ "PrimitiveType": "Double",
+ "UpdateType": "Mutable"
+ },
+ "PredefinedScalingMetricSpecification": {
+ "Type": "PredefinedScalingMetricSpecification",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscalingplans-scalingplan-targettrackingconfiguration.html#cfn-autoscalingplans-scalingplan-targettrackingconfiguration-predefinedscalingmetricspecification",
+ "UpdateType": "Mutable"
+ },
+ "DisableScaleIn": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscalingplans-scalingplan-targettrackingconfiguration.html#cfn-autoscalingplans-scalingplan-targettrackingconfiguration-disablescalein",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "ScaleInCooldown": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscalingplans-scalingplan-targettrackingconfiguration.html#cfn-autoscalingplans-scalingplan-targettrackingconfiguration-scaleincooldown",
+ "PrimitiveType": "Integer",
+ "UpdateType": "Mutable"
+ },
+ "EstimatedInstanceWarmup": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscalingplans-scalingplan-targettrackingconfiguration.html#cfn-autoscalingplans-scalingplan-targettrackingconfiguration-estimatedinstancewarmup",
+ "PrimitiveType": "Integer",
+ "UpdateType": "Mutable"
+ },
+ "CustomizedScalingMetricSpecification": {
+ "Type": "CustomizedScalingMetricSpecification",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscalingplans-scalingplan-targettrackingconfiguration.html#cfn-autoscalingplans-scalingplan-targettrackingconfiguration-customizedscalingmetricspecification",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::GameLift::Alias.RoutingStrategy": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-alias-routingstrategy.html",
+ "Properties": {
+ "FleetId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-alias-routingstrategy.html#cfn-gamelift-alias-routingstrategy-fleetid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Message": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-alias-routingstrategy.html#cfn-gamelift-alias-routingstrategy-message",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Type": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-alias-routingstrategy.html#cfn-gamelift-alias-routingstrategy-type",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EC2::SpotFleet.ClassicLoadBalancersConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-classicloadbalancersconfig.html",
+ "Properties": {
+ "ClassicLoadBalancers": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-classicloadbalancersconfig.html#cfn-ec2-spotfleet-classicloadbalancersconfig-classicloadbalancers",
+ "DuplicatesAllowed": false,
+ "ItemType": "ClassicLoadBalancer",
+ "Required": true,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ApplicationAutoScaling::ScalingPolicy.MetricDimension": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalingpolicy-metricdimension.html",
+ "Properties": {
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalingpolicy-metricdimension.html#cfn-applicationautoscaling-scalingpolicy-metricdimension-name",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Value": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalingpolicy-metricdimension.html#cfn-applicationautoscaling-scalingpolicy-metricdimension-value",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::SSM::MaintenanceWindowTask.NotificationConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-maintenancewindowtask-notificationconfig.html",
+ "Properties": {
+ "NotificationArn": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-maintenancewindowtask-notificationconfig.html#cfn-ssm-maintenancewindowtask-notificationconfig-notificationarn",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "NotificationType": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-maintenancewindowtask-notificationconfig.html#cfn-ssm-maintenancewindowtask-notificationconfig-notificationtype",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "NotificationEvents": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-maintenancewindowtask-notificationconfig.html#cfn-ssm-maintenancewindowtask-notificationconfig-notificationevents",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EMR::InstanceFleetConfig.Configuration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancefleetconfig-configuration.html",
+ "Properties": {
+ "Classification": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancefleetconfig-configuration.html#cfn-elasticmapreduce-instancefleetconfig-configuration-classification",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "ConfigurationProperties": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancefleetconfig-configuration.html#cfn-elasticmapreduce-instancefleetconfig-configuration-configurationproperties",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "Map",
+ "UpdateType": "Immutable"
+ },
+ "Configurations": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancefleetconfig-configuration.html#cfn-elasticmapreduce-instancefleetconfig-configuration-configurations",
+ "DuplicatesAllowed": false,
+ "ItemType": "Configuration",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::Cognito::UserPoolUser.AttributeType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpooluser-attributetype.html",
+ "Properties": {
+ "Value": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpooluser-attributetype.html#cfn-cognito-userpooluser-attributetype-value",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpooluser-attributetype.html#cfn-cognito-userpooluser-attributetype-name",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Glue::Table.StorageDescriptor": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-storagedescriptor.html",
+ "Properties": {
+ "StoredAsSubDirectories": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-storagedescriptor.html#cfn-glue-table-storagedescriptor-storedassubdirectories",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "Parameters": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-storagedescriptor.html#cfn-glue-table-storagedescriptor-parameters",
+ "PrimitiveType": "Json",
+ "UpdateType": "Mutable"
+ },
+ "BucketColumns": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-storagedescriptor.html#cfn-glue-table-storagedescriptor-bucketcolumns",
+ "UpdateType": "Mutable"
+ },
+ "SkewedInfo": {
+ "Type": "SkewedInfo",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-storagedescriptor.html#cfn-glue-table-storagedescriptor-skewedinfo",
+ "UpdateType": "Mutable"
+ },
+ "InputFormat": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-storagedescriptor.html#cfn-glue-table-storagedescriptor-inputformat",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "NumberOfBuckets": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-storagedescriptor.html#cfn-glue-table-storagedescriptor-numberofbuckets",
+ "PrimitiveType": "Integer",
+ "UpdateType": "Mutable"
+ },
+ "OutputFormat": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-storagedescriptor.html#cfn-glue-table-storagedescriptor-outputformat",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Columns": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-storagedescriptor.html#cfn-glue-table-storagedescriptor-columns",
+ "ItemType": "Column",
+ "UpdateType": "Mutable"
+ },
+ "SerdeInfo": {
+ "Type": "SerdeInfo",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-storagedescriptor.html#cfn-glue-table-storagedescriptor-serdeinfo",
+ "UpdateType": "Mutable"
+ },
+ "SortColumns": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-storagedescriptor.html#cfn-glue-table-storagedescriptor-sortcolumns",
+ "ItemType": "Order",
+ "UpdateType": "Mutable"
+ },
+ "Compressed": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-storagedescriptor.html#cfn-glue-table-storagedescriptor-compressed",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "Location": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-storagedescriptor.html#cfn-glue-table-storagedescriptor-location",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::IAM::User.LoginProfile": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-user-loginprofile.html",
+ "Properties": {
+ "Password": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-user-loginprofile.html#cfn-iam-user-loginprofile-password",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "PasswordResetRequired": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-user-loginprofile.html#cfn-iam-user-loginprofile-passwordresetrequired",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::S3::Bucket.SourceSelectionCriteria": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-sourceselectioncriteria.html",
+ "Properties": {
+ "SseKmsEncryptedObjects": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-sourceselectioncriteria.html#cfn-s3-bucket-sourceselectioncriteria-ssekmsencryptedobjects",
+ "Required": true,
+ "Type": "SseKmsEncryptedObjects",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ApiGateway::Stage.MethodSetting": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-stage-methodsetting.html",
+ "Properties": {
+ "CacheDataEncrypted": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-stage-methodsetting.html#cfn-apigateway-stage-methodsetting-cachedataencrypted",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "CacheTtlInSeconds": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-stage-methodsetting.html#cfn-apigateway-stage-methodsetting-cachettlinseconds",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "CachingEnabled": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-stage-methodsetting.html#cfn-apigateway-stage-methodsetting-cachingenabled",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "DataTraceEnabled": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-stage-methodsetting.html#cfn-apigateway-stage-methodsetting-datatraceenabled",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "HttpMethod": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-stage-methodsetting.html#cfn-apigateway-stage-methodsetting-httpmethod",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "LoggingLevel": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-stage-methodsetting.html#cfn-apigateway-stage-methodsetting-logginglevel",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "MetricsEnabled": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-stage-methodsetting.html#cfn-apigateway-stage-methodsetting-metricsenabled",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "ResourcePath": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-stage-methodsetting.html#cfn-apigateway-stage-methodsetting-resourcepath",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "ThrottlingBurstLimit": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-stage-methodsetting.html#cfn-apigateway-stage-methodsetting-throttlingburstlimit",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "ThrottlingRateLimit": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-stage-methodsetting.html#cfn-apigateway-stage-methodsetting-throttlingratelimit",
+ "PrimitiveType": "Double",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::DynamoDB::Table.ProvisionedThroughput": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-provisionedthroughput.html",
+ "Properties": {
+ "ReadCapacityUnits": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-provisionedthroughput.html#cfn-dynamodb-provisionedthroughput-readcapacityunits",
+ "PrimitiveType": "Long",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "WriteCapacityUnits": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-provisionedthroughput.html#cfn-dynamodb-provisionedthroughput-writecapacityunits",
+ "PrimitiveType": "Long",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Budgets::Budget.BudgetData": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-budgetdata.html",
+ "Properties": {
+ "BudgetLimit": {
+ "Type": "Spend",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-budgetdata.html#cfn-budgets-budget-budgetdata-budgetlimit",
+ "UpdateType": "Mutable"
+ },
+ "TimePeriod": {
+ "Type": "TimePeriod",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-budgetdata.html#cfn-budgets-budget-budgetdata-timeperiod",
+ "UpdateType": "Mutable"
+ },
+ "TimeUnit": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-budgetdata.html#cfn-budgets-budget-budgetdata-timeunit",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "CostFilters": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-budgetdata.html#cfn-budgets-budget-budgetdata-costfilters",
+ "PrimitiveType": "Json",
+ "UpdateType": "Mutable"
+ },
+ "BudgetName": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-budgetdata.html#cfn-budgets-budget-budgetdata-budgetname",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "CostTypes": {
+ "Type": "CostTypes",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-budgetdata.html#cfn-budgets-budget-budgetdata-costtypes",
+ "UpdateType": "Mutable"
+ },
+ "BudgetType": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-budgetdata.html#cfn-budgets-budget-budgetdata-budgettype",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::SSM::PatchBaseline.RuleGroup": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-patchbaseline-rulegroup.html",
+ "Properties": {
+ "PatchRules": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-patchbaseline-rulegroup.html#cfn-ssm-patchbaseline-rulegroup-patchrules",
+ "ItemType": "Rule",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::OpsWorks::Stack.Source": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-source.html",
+ "Properties": {
+ "Password": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-source.html#cfn-opsworks-custcookbooksource-password",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Revision": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-source.html#cfn-opsworks-custcookbooksource-revision",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "SshKey": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-source.html#cfn-opsworks-custcookbooksource-sshkey",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Type": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-source.html#cfn-opsworks-custcookbooksource-type",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Url": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-source.html#cfn-opsworks-custcookbooksource-url",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Username": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-source.html#cfn-opsworks-custcookbooksource-username",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EC2::LaunchTemplate.Placement": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-placement.html",
+ "Properties": {
+ "GroupName": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-placement.html#cfn-ec2-launchtemplate-launchtemplatedata-placement-groupname",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Tenancy": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-placement.html#cfn-ec2-launchtemplate-launchtemplatedata-placement-tenancy",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "AvailabilityZone": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-placement.html#cfn-ec2-launchtemplate-launchtemplatedata-placement-availabilityzone",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Affinity": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-placement.html#cfn-ec2-launchtemplate-launchtemplatedata-placement-affinity",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "HostId": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-placement.html#cfn-ec2-launchtemplate-launchtemplatedata-placement-hostid",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ElasticLoadBalancing::LoadBalancer.ConnectionSettings": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-connectionsettings.html",
+ "Properties": {
+ "IdleTimeout": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-connectionsettings.html#cfn-elb-connectionsettings-idletimeout",
+ "PrimitiveType": "Integer",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::S3::Bucket.LoggingConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-loggingconfig.html",
+ "Properties": {
+ "DestinationBucketName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-loggingconfig.html#cfn-s3-bucket-loggingconfig-destinationbucketname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "LogFilePrefix": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-loggingconfig.html#cfn-s3-bucket-loggingconfig-logfileprefix",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::S3::Bucket.StorageClassAnalysis": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-storageclassanalysis.html",
+ "Properties": {
+ "DataExport": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-storageclassanalysis.html#cfn-s3-bucket-storageclassanalysis-dataexport",
+ "Required": false,
+ "Type": "DataExport",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Config::ConfigurationRecorder.RecordingGroup": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-configurationrecorder-recordinggroup.html",
+ "Properties": {
+ "AllSupported": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-configurationrecorder-recordinggroup.html#cfn-config-configurationrecorder-recordinggroup-allsupported",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "IncludeGlobalResourceTypes": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-configurationrecorder-recordinggroup.html#cfn-config-configurationrecorder-recordinggroup-includeglobalresourcetypes",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "ResourceTypes": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-configurationrecorder-recordinggroup.html#cfn-config-configurationrecorder-recordinggroup-resourcetypes",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ApiGateway::UsagePlan.ApiStage": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-usageplan-apistage.html",
+ "Properties": {
+ "ApiId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-usageplan-apistage.html#cfn-apigateway-usageplan-apistage-apiid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Stage": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-usageplan-apistage.html#cfn-apigateway-usageplan-apistage-stage",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Throttle": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-usageplan-apistage.html#cfn-apigateway-usageplan-apistage-throttle",
+ "DuplicatesAllowed": false,
+ "ItemType": "ThrottleSettings",
+ "Required": false,
+ "Type": "Map",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::S3::Bucket.RoutingRule": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-websiteconfiguration-routingrules.html",
+ "Properties": {
+ "RedirectRule": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-websiteconfiguration-routingrules.html#cfn-s3-websiteconfiguration-routingrules-redirectrule",
+ "Required": true,
+ "Type": "RedirectRule",
+ "UpdateType": "Mutable"
+ },
+ "RoutingRuleCondition": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-websiteconfiguration-routingrules.html#cfn-s3-websiteconfiguration-routingrules-routingrulecondition",
+ "Required": false,
+ "Type": "RoutingRuleCondition",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::WAF::WebACL.ActivatedRule": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-webacl-rules.html",
+ "Properties": {
+ "Action": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-webacl-rules.html#cfn-waf-webacl-rules-action",
+ "Required": false,
+ "Type": "WafAction",
+ "UpdateType": "Mutable"
+ },
+ "Priority": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-webacl-rules.html#cfn-waf-webacl-rules-priority",
+ "PrimitiveType": "Integer",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "RuleId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-webacl-rules.html#cfn-waf-webacl-rules-ruleid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::RDS::DBCluster.ScalingConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbcluster-scalingconfiguration.html",
+ "Properties": {
+ "AutoPause": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbcluster-scalingconfiguration.html#cfn-rds-dbcluster-scalingconfiguration-autopause",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "MaxCapacity": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbcluster-scalingconfiguration.html#cfn-rds-dbcluster-scalingconfiguration-maxcapacity",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "MinCapacity": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbcluster-scalingconfiguration.html#cfn-rds-dbcluster-scalingconfiguration-mincapacity",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "SecondsBeforeAutoPause": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbcluster-scalingconfiguration.html#cfn-rds-dbcluster-scalingconfiguration-secondsbeforeautopause",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EMR::Cluster.KerberosAttributes": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-kerberosattributes.html",
+ "Properties": {
+ "ADDomainJoinPassword": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-kerberosattributes.html#cfn-elasticmapreduce-cluster-kerberosattributes-addomainjoinpassword",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "ADDomainJoinUser": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-kerberosattributes.html#cfn-elasticmapreduce-cluster-kerberosattributes-addomainjoinuser",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "CrossRealmTrustPrincipalPassword": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-kerberosattributes.html#cfn-elasticmapreduce-cluster-kerberosattributes-crossrealmtrustprincipalpassword",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "KdcAdminPassword": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-kerberosattributes.html#cfn-elasticmapreduce-cluster-kerberosattributes-kdcadminpassword",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Realm": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-kerberosattributes.html#cfn-elasticmapreduce-cluster-kerberosattributes-realm",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Route53::RecordSet.GeoLocation": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-recordset-geolocation.html",
+ "Properties": {
+ "ContinentCode": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-recordset-geolocation.html#cfn-route53-recordset-geolocation-continentcode",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "CountryCode": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-recordset-geolocation.html#cfn-route53-recordset-geolocation-countrycode",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "SubdivisionCode": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-recordset-geolocation.html#cfn-route53-recordset-geolocation-subdivisioncode",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CloudFront::StreamingDistribution.TrustedSigners": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-trustedsigners.html",
+ "Properties": {
+ "Enabled": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-trustedsigners.html#cfn-cloudfront-streamingdistribution-trustedsigners-enabled",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "AwsAccountNumbers": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-trustedsigners.html#cfn-cloudfront-streamingdistribution-trustedsigners-awsaccountnumbers",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EC2::LaunchTemplate.BlockDeviceMapping": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-blockdevicemapping.html",
+ "Properties": {
+ "Ebs": {
+ "Type": "Ebs",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-blockdevicemapping.html#cfn-ec2-launchtemplate-blockdevicemapping-ebs",
+ "UpdateType": "Mutable"
+ },
+ "NoDevice": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-blockdevicemapping.html#cfn-ec2-launchtemplate-blockdevicemapping-nodevice",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "VirtualName": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-blockdevicemapping.html#cfn-ec2-launchtemplate-blockdevicemapping-virtualname",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "DeviceName": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-blockdevicemapping.html#cfn-ec2-launchtemplate-blockdevicemapping-devicename",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ElasticBeanstalk::Application.ApplicationResourceLifecycleConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticbeanstalk-application-applicationresourcelifecycleconfig.html",
+ "Properties": {
+ "ServiceRole": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticbeanstalk-application-applicationresourcelifecycleconfig.html#cfn-elasticbeanstalk-application-applicationresourcelifecycleconfig-servicerole",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "VersionLifecycleConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticbeanstalk-application-applicationresourcelifecycleconfig.html#cfn-elasticbeanstalk-application-applicationresourcelifecycleconfig-versionlifecycleconfig",
+ "Required": false,
+ "Type": "ApplicationVersionLifecycleConfig",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EC2::LaunchTemplate.SpotOptions": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-instancemarketoptions-spotoptions.html",
+ "Properties": {
+ "SpotInstanceType": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-instancemarketoptions-spotoptions.html#cfn-ec2-launchtemplate-launchtemplatedata-instancemarketoptions-spotoptions-spotinstancetype",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "InstanceInterruptionBehavior": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-instancemarketoptions-spotoptions.html#cfn-ec2-launchtemplate-launchtemplatedata-instancemarketoptions-spotoptions-instanceinterruptionbehavior",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "MaxPrice": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-instancemarketoptions-spotoptions.html#cfn-ec2-launchtemplate-launchtemplatedata-instancemarketoptions-spotoptions-maxprice",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::KinesisFirehose::DeliveryStream.BufferingHints": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-bufferinghints.html",
+ "Properties": {
+ "IntervalInSeconds": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-bufferinghints.html#cfn-kinesisfirehose-deliverystream-bufferinghints-intervalinseconds",
+ "PrimitiveType": "Integer",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "SizeInMBs": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-bufferinghints.html#cfn-kinesisfirehose-deliverystream-bufferinghints-sizeinmbs",
+ "PrimitiveType": "Integer",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::KinesisFirehose::DeliveryStream.SplunkRetryOptions": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-splunkretryoptions.html",
+ "Properties": {
+ "DurationInSeconds": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-splunkretryoptions.html#cfn-kinesisfirehose-deliverystream-splunkretryoptions-durationinseconds",
+ "PrimitiveType": "Integer",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::S3::Bucket.AccessControlTranslation": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-accesscontroltranslation.html",
+ "Properties": {
+ "Owner": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-accesscontroltranslation.html#cfn-s3-bucket-accesscontroltranslation-owner",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::AutoScaling::ScalingPolicy.PredefinedMetricSpecification": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-predefinedmetricspecification.html",
+ "Properties": {
+ "PredefinedMetricType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-predefinedmetricspecification.html#cfn-autoscaling-scalingpolicy-predefinedmetricspecification-predefinedmetrictype",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "ResourceLabel": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-predefinedmetricspecification.html#cfn-autoscaling-scalingpolicy-predefinedmetricspecification-resourcelabel",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::WAFRegional::Rule.Predicate": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-rule-predicate.html",
+ "Properties": {
+ "Type": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-rule-predicate.html#cfn-wafregional-rule-predicate-type",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "DataId": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-rule-predicate.html#cfn-wafregional-rule-predicate-dataid",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Negated": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-rule-predicate.html#cfn-wafregional-rule-predicate-negated",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Glue::Job.ConnectionsList": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-job-connectionslist.html",
+ "Properties": {
+ "Connections": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-job-connectionslist.html#cfn-glue-job-connectionslist-connections",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ApiGateway::DomainName.EndpointConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-domainname-endpointconfiguration.html",
+ "Properties": {
+ "Types": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-domainname-endpointconfiguration.html#cfn-apigateway-domainname-endpointconfiguration-types",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::SSM::Association.Target": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-association-target.html",
+ "Properties": {
+ "Key": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-association-target.html#cfn-ssm-association-target-key",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "Values": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-association-target.html#cfn-ssm-association-target-values",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": true,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::ApplicationAutoScaling::ScalingPolicy.StepAdjustment": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalingpolicy-stepscalingpolicyconfiguration-stepadjustment.html",
+ "Properties": {
+ "MetricIntervalLowerBound": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalingpolicy-stepscalingpolicyconfiguration-stepadjustment.html#cfn-applicationautoscaling-scalingpolicy-stepscalingpolicyconfiguration-stepadjustment-metricintervallowerbound",
+ "PrimitiveType": "Double",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "MetricIntervalUpperBound": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalingpolicy-stepscalingpolicyconfiguration-stepadjustment.html#cfn-applicationautoscaling-scalingpolicy-stepscalingpolicyconfiguration-stepadjustment-metricintervalupperbound",
+ "PrimitiveType": "Double",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "ScalingAdjustment": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalingpolicy-stepscalingpolicyconfiguration-stepadjustment.html#cfn-applicationautoscaling-scalingpolicy-stepscalingpolicyconfiguration-stepadjustment-scalingadjustment",
+ "PrimitiveType": "Integer",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CodePipeline::Pipeline.StageTransition": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-disableinboundstagetransitions.html",
+ "Properties": {
+ "Reason": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-disableinboundstagetransitions.html#cfn-codepipeline-pipeline-disableinboundstagetransitions-reason",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "StageName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-disableinboundstagetransitions.html#cfn-codepipeline-pipeline-disableinboundstagetransitions-stagename",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EC2::SpotFleet.SpotPlacement": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-placement.html",
+ "Properties": {
+ "AvailabilityZone": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-placement.html#cfn-ec2-spotfleet-spotplacement-availabilityzone",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "GroupName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-placement.html#cfn-ec2-spotfleet-spotplacement-groupname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Tenancy": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-placement.html#cfn-ec2-spotfleet-spotplacement-tenancy",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CloudFront::Distribution.DefaultCacheBehavior": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html",
+ "Properties": {
+ "Compress": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-compress",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "LambdaFunctionAssociations": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-lambdafunctionassociations",
+ "ItemType": "LambdaFunctionAssociation",
+ "UpdateType": "Mutable"
+ },
+ "TargetOriginId": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-targetoriginid",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "ViewerProtocolPolicy": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-viewerprotocolpolicy",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "TrustedSigners": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-trustedsigners",
+ "UpdateType": "Mutable"
+ },
+ "DefaultTTL": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-defaultttl",
+ "PrimitiveType": "Double",
+ "UpdateType": "Mutable"
+ },
+ "FieldLevelEncryptionId": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-fieldlevelencryptionid",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "AllowedMethods": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-allowedmethods",
+ "UpdateType": "Mutable"
+ },
+ "CachedMethods": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-cachedmethods",
+ "UpdateType": "Mutable"
+ },
+ "SmoothStreaming": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-smoothstreaming",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "ForwardedValues": {
+ "Type": "ForwardedValues",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-forwardedvalues",
+ "UpdateType": "Mutable"
+ },
+ "MinTTL": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-minttl",
+ "PrimitiveType": "Double",
+ "UpdateType": "Mutable"
+ },
+ "MaxTTL": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-maxttl",
+ "PrimitiveType": "Double",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::SSM::MaintenanceWindowTask.MaintenanceWindowAutomationParameters": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-maintenancewindowtask-maintenancewindowautomationparameters.html",
+ "Properties": {
+ "Parameters": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-maintenancewindowtask-maintenancewindowautomationparameters.html#cfn-ssm-maintenancewindowtask-maintenancewindowautomationparameters-parameters",
+ "PrimitiveType": "Json",
+ "UpdateType": "Mutable"
+ },
+ "DocumentVersion": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-maintenancewindowtask-maintenancewindowautomationparameters.html#cfn-ssm-maintenancewindowtask-maintenancewindowautomationparameters-documentversion",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EC2::SpotFleet.SpotFleetRequestConfigData": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata.html",
+ "Properties": {
+ "AllocationStrategy": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata.html#cfn-ec2-spotfleet-spotfleetrequestconfigdata-allocationstrategy",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "ExcessCapacityTerminationPolicy": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata.html#cfn-ec2-spotfleet-spotfleetrequestconfigdata-excesscapacityterminationpolicy",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "IamFleetRole": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata.html#cfn-ec2-spotfleet-spotfleetrequestconfigdata-iamfleetrole",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "InstanceInterruptionBehavior": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata.html#cfn-ec2-spotfleet-spotfleetrequestconfigdata-instanceinterruptionbehavior",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "LaunchSpecifications": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata.html#cfn-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications",
+ "DuplicatesAllowed": false,
+ "ItemType": "SpotFleetLaunchSpecification",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ },
+ "LaunchTemplateConfigs": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata.html#cfn-ec2-spotfleet-spotfleetrequestconfigdata-launchtemplateconfigs",
+ "DuplicatesAllowed": false,
+ "ItemType": "LaunchTemplateConfig",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ },
+ "LoadBalancersConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata.html#cfn-ec2-spotfleet-spotfleetrequestconfigdata-loadbalancersconfig",
+ "Required": false,
+ "Type": "LoadBalancersConfig",
+ "UpdateType": "Immutable"
+ },
+ "ReplaceUnhealthyInstances": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata.html#cfn-ec2-spotfleet-spotfleetrequestconfigdata-replaceunhealthyinstances",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "SpotPrice": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata.html#cfn-ec2-spotfleet-spotfleetrequestconfigdata-spotprice",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "TargetCapacity": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata.html#cfn-ec2-spotfleet-spotfleetrequestconfigdata-targetcapacity",
+ "PrimitiveType": "Integer",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "TerminateInstancesWithExpiration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata.html#cfn-ec2-spotfleet-spotfleetrequestconfigdata-terminateinstanceswithexpiration",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Type": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata.html#cfn-ec2-spotfleet-spotfleetrequestconfigdata-type",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "ValidFrom": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata.html#cfn-ec2-spotfleet-spotfleetrequestconfigdata-validfrom",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "ValidUntil": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata.html#cfn-ec2-spotfleet-spotfleetrequestconfigdata-validuntil",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::CodePipeline::CustomActionType.ArtifactDetails": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-customactiontype-artifactdetails.html",
+ "Properties": {
+ "MaximumCount": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-customactiontype-artifactdetails.html#cfn-codepipeline-customactiontype-artifactdetails-maximumcount",
+ "PrimitiveType": "Integer",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "MinimumCount": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-customactiontype-artifactdetails.html#cfn-codepipeline-customactiontype-artifactdetails-minimumcount",
+ "PrimitiveType": "Integer",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::AppSync::GraphQLApi.OpenIDConnectConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-graphqlapi-openidconnectconfig.html",
+ "Properties": {
+ "Issuer": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-graphqlapi-openidconnectconfig.html#cfn-appsync-graphqlapi-openidconnectconfig-issuer",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "ClientId": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-graphqlapi-openidconnectconfig.html#cfn-appsync-graphqlapi-openidconnectconfig-clientid",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "AuthTTL": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-graphqlapi-openidconnectconfig.html#cfn-appsync-graphqlapi-openidconnectconfig-authttl",
+ "PrimitiveType": "Double",
+ "UpdateType": "Mutable"
+ },
+ "IatTTL": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-graphqlapi-openidconnectconfig.html#cfn-appsync-graphqlapi-openidconnectconfig-iatttl",
+ "PrimitiveType": "Double",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EMR::Cluster.SimpleScalingPolicyConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-simplescalingpolicyconfiguration.html",
+ "Properties": {
+ "AdjustmentType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-simplescalingpolicyconfiguration.html#cfn-elasticmapreduce-cluster-simplescalingpolicyconfiguration-adjustmenttype",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "CoolDown": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-simplescalingpolicyconfiguration.html#cfn-elasticmapreduce-cluster-simplescalingpolicyconfiguration-cooldown",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "ScalingAdjustment": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-simplescalingpolicyconfiguration.html#cfn-elasticmapreduce-cluster-simplescalingpolicyconfiguration-scalingadjustment",
+ "PrimitiveType": "Integer",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::S3::Bucket.VersioningConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-versioningconfig.html",
+ "Properties": {
+ "Status": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-versioningconfig.html#cfn-s3-bucket-versioningconfig-status",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::AppSync::GraphQLApi.LogConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-graphqlapi-logconfig.html",
+ "Properties": {
+ "CloudWatchLogsRoleArn": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-graphqlapi-logconfig.html#cfn-appsync-graphqlapi-logconfig-cloudwatchlogsrolearn",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "FieldLogLevel": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-graphqlapi-logconfig.html#cfn-appsync-graphqlapi-logconfig-fieldloglevel",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CodeDeploy::DeploymentGroup.GitHubLocation": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment-revision-githublocation.html",
+ "Properties": {
+ "CommitId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment-revision-githublocation.html#cfn-properties-codedeploy-deploymentgroup-deployment-revision-githublocation-commitid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Repository": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment-revision-githublocation.html#cfn-properties-codedeploy-deploymentgroup-deployment-revision-githublocation-repository",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EMR::InstanceGroupConfig.SimpleScalingPolicyConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancegroupconfig-simplescalingpolicyconfiguration.html",
+ "Properties": {
+ "AdjustmentType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancegroupconfig-simplescalingpolicyconfiguration.html#cfn-elasticmapreduce-instancegroupconfig-simplescalingpolicyconfiguration-adjustmenttype",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "CoolDown": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancegroupconfig-simplescalingpolicyconfiguration.html#cfn-elasticmapreduce-instancegroupconfig-simplescalingpolicyconfiguration-cooldown",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "ScalingAdjustment": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancegroupconfig-simplescalingpolicyconfiguration.html#cfn-elasticmapreduce-instancegroupconfig-simplescalingpolicyconfiguration-scalingadjustment",
+ "PrimitiveType": "Integer",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CodeDeploy::DeploymentGroup.TargetGroupInfo": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-targetgroupinfo.html",
+ "Properties": {
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-targetgroupinfo.html#cfn-codedeploy-deploymentgroup-targetgroupinfo-name",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::KinesisAnalytics::Application.CSVMappingParameters": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-application-csvmappingparameters.html",
+ "Properties": {
+ "RecordRowDelimiter": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-application-csvmappingparameters.html#cfn-kinesisanalytics-application-csvmappingparameters-recordrowdelimiter",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "RecordColumnDelimiter": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-application-csvmappingparameters.html#cfn-kinesisanalytics-application-csvmappingparameters-recordcolumndelimiter",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EC2::NetworkInterface.InstanceIpv6Address": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-networkinterface-instanceipv6address.html",
+ "Properties": {
+ "Ipv6Address": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-networkinterface-instanceipv6address.html#cfn-ec2-networkinterface-instanceipv6address-ipv6address",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ElasticBeanstalk::ApplicationVersion.SourceBundle": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-beanstalk-sourcebundle.html",
+ "Properties": {
+ "S3Bucket": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-beanstalk-sourcebundle.html#cfn-beanstalk-sourcebundle-s3bucket",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "S3Key": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-beanstalk-sourcebundle.html#cfn-beanstalk-sourcebundle-s3key",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EMR::Step.KeyValue": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-step-keyvalue.html",
+ "Properties": {
+ "Key": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-step-keyvalue.html#cfn-elasticmapreduce-step-keyvalue-key",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Value": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-step-keyvalue.html#cfn-elasticmapreduce-step-keyvalue-value",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::SES::ConfigurationSetEventDestination.EventDestination": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-configurationseteventdestination-eventdestination.html",
+ "Properties": {
+ "CloudWatchDestination": {
+ "Type": "CloudWatchDestination",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-configurationseteventdestination-eventdestination.html#cfn-ses-configurationseteventdestination-eventdestination-cloudwatchdestination",
+ "UpdateType": "Mutable"
+ },
+ "Enabled": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-configurationseteventdestination-eventdestination.html#cfn-ses-configurationseteventdestination-eventdestination-enabled",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "MatchingEventTypes": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-configurationseteventdestination-eventdestination.html#cfn-ses-configurationseteventdestination-eventdestination-matchingeventtypes",
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-configurationseteventdestination-eventdestination.html#cfn-ses-configurationseteventdestination-eventdestination-name",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "KinesisFirehoseDestination": {
+ "Type": "KinesisFirehoseDestination",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-configurationseteventdestination-eventdestination.html#cfn-ses-configurationseteventdestination-eventdestination-kinesisfirehosedestination",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::S3::Bucket.EncryptionConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-encryptionconfiguration.html",
+ "Properties": {
+ "ReplicaKmsKeyID": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-encryptionconfiguration.html#cfn-s3-bucket-encryptionconfiguration-replicakmskeyid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::AutoScalingPlans::ScalingPlan.CustomizedScalingMetricSpecification": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscalingplans-scalingplan-customizedscalingmetricspecification.html",
+ "Properties": {
+ "MetricName": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscalingplans-scalingplan-customizedscalingmetricspecification.html#cfn-autoscalingplans-scalingplan-customizedscalingmetricspecification-metricname",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Statistic": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscalingplans-scalingplan-customizedscalingmetricspecification.html#cfn-autoscalingplans-scalingplan-customizedscalingmetricspecification-statistic",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Dimensions": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscalingplans-scalingplan-customizedscalingmetricspecification.html#cfn-autoscalingplans-scalingplan-customizedscalingmetricspecification-dimensions",
+ "ItemType": "MetricDimension",
+ "UpdateType": "Mutable"
+ },
+ "Unit": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscalingplans-scalingplan-customizedscalingmetricspecification.html#cfn-autoscalingplans-scalingplan-customizedscalingmetricspecification-unit",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Namespace": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscalingplans-scalingplan-customizedscalingmetricspecification.html#cfn-autoscalingplans-scalingplan-customizedscalingmetricspecification-namespace",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::OpsWorks::Stack.ChefConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-chefconfiguration.html",
+ "Properties": {
+ "BerkshelfVersion": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-chefconfiguration.html#cfn-opsworks-chefconfiguration-berkshelfversion",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "ManageBerkshelf": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-chefconfiguration.html#cfn-opsworks-chefconfiguration-berkshelfversion",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Route53::HostedZone.HostedZoneTag": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-hostedzone-hostedzonetags.html",
+ "Properties": {
+ "Key": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-hostedzone-hostedzonetags.html#cfn-route53-hostedzonetags-key",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Value": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-hostedzone-hostedzonetags.html#cfn-route53-hostedzonetags-value",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Events::Rule.Target": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-rule-target.html",
+ "Properties": {
+ "Arn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-rule-target.html#cfn-events-rule-target-arn",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "EcsParameters": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-rule-target.html#cfn-events-rule-target-ecsparameters",
+ "Required": false,
+ "Type": "EcsParameters",
+ "UpdateType": "Mutable"
+ },
+ "Id": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-rule-target.html#cfn-events-rule-target-id",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Input": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-rule-target.html#cfn-events-rule-target-input",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "InputPath": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-rule-target.html#cfn-events-rule-target-inputpath",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "InputTransformer": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-rule-target.html#cfn-events-rule-target-inputtransformer",
+ "Required": false,
+ "Type": "InputTransformer",
+ "UpdateType": "Mutable"
+ },
+ "KinesisParameters": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-rule-target.html#cfn-events-rule-target-kinesisparameters",
+ "Required": false,
+ "Type": "KinesisParameters",
+ "UpdateType": "Mutable"
+ },
+ "RoleArn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-rule-target.html#cfn-events-rule-target-rolearn",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "RunCommandParameters": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-rule-target.html#cfn-events-rule-target-runcommandparameters",
+ "Required": false,
+ "Type": "RunCommandParameters",
+ "UpdateType": "Mutable"
+ },
+ "SqsParameters": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-rule-target.html#cfn-events-rule-target-sqsparameters",
+ "Required": false,
+ "Type": "SqsParameters",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::KinesisAnalytics::Application.KinesisStreamsInput": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-application-kinesisstreamsinput.html",
+ "Properties": {
+ "ResourceARN": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-application-kinesisstreamsinput.html#cfn-kinesisanalytics-application-kinesisstreamsinput-resourcearn",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "RoleARN": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-application-kinesisstreamsinput.html#cfn-kinesisanalytics-application-kinesisstreamsinput-rolearn",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::OpsWorks::App.EnvironmentVariable": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-app-environment.html",
+ "Properties": {
+ "Key": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-app-environment.html#cfn-opsworks-app-environment-key",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Secure": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-app-environment.html#cfn-opsworks-app-environment-secure",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Value": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-app-environment.html#value",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ApiGateway::Stage.CanarySetting": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-stage-canarysetting.html",
+ "Properties": {
+ "DeploymentId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-stage-canarysetting.html#cfn-apigateway-stage-canarysetting-deploymentid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "PercentTraffic": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-stage-canarysetting.html#cfn-apigateway-stage-canarysetting-percenttraffic",
+ "PrimitiveType": "Double",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "StageVariableOverrides": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-stage-canarysetting.html#cfn-apigateway-stage-canarysetting-stagevariableoverrides",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "Map",
+ "UpdateType": "Mutable"
+ },
+ "UseStageCache": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-stage-canarysetting.html#cfn-apigateway-stage-canarysetting-usestagecache",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::S3::Bucket.NotificationConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-notificationconfig.html",
+ "Properties": {
+ "LambdaConfigurations": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-notificationconfig.html#cfn-s3-bucket-notificationconfig-lambdaconfig",
+ "DuplicatesAllowed": false,
+ "ItemType": "LambdaConfiguration",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "QueueConfigurations": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-notificationconfig.html#cfn-s3-bucket-notificationconfig-queueconfig",
+ "DuplicatesAllowed": false,
+ "ItemType": "QueueConfiguration",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "TopicConfigurations": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-notificationconfig.html#cfn-s3-bucket-notificationconfig-topicconfig",
+ "DuplicatesAllowed": false,
+ "ItemType": "TopicConfiguration",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Logs::MetricFilter.MetricTransformation": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-logs-metricfilter-metrictransformation.html",
+ "Properties": {
+ "DefaultValue": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-logs-metricfilter-metrictransformation.html#cfn-cwl-metricfilter-metrictransformation-defaultvalue",
+ "PrimitiveType": "Double",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "MetricName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-logs-metricfilter-metrictransformation.html#cfn-cwl-metricfilter-metrictransformation-metricname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "MetricNamespace": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-logs-metricfilter-metrictransformation.html#cfn-cwl-metricfilter-metrictransformation-metricnamespace",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "MetricValue": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-logs-metricfilter-metrictransformation.html#cfn-cwl-metricfilter-metrictransformation-metricvalue",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EMR::InstanceFleetConfig.EbsConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancefleetconfig-ebsconfiguration.html",
+ "Properties": {
+ "EbsBlockDeviceConfigs": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancefleetconfig-ebsconfiguration.html#cfn-elasticmapreduce-instancefleetconfig-ebsconfiguration-ebsblockdeviceconfigs",
+ "DuplicatesAllowed": false,
+ "ItemType": "EbsBlockDeviceConfig",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ },
+ "EbsOptimized": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancefleetconfig-ebsconfiguration.html#cfn-elasticmapreduce-instancefleetconfig-ebsconfiguration-ebsoptimized",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::EC2::SpotFleet.EbsBlockDevice": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-blockdevicemappings-ebs.html",
+ "Properties": {
+ "DeleteOnTermination": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-blockdevicemappings-ebs.html#cfn-ec2-spotfleet-ebsblockdevice-deleteontermination",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Encrypted": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-blockdevicemappings-ebs.html#cfn-ec2-spotfleet-ebsblockdevice-encrypted",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Iops": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-blockdevicemappings-ebs.html#cfn-ec2-spotfleet-ebsblockdevice-iops",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "SnapshotId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-blockdevicemappings-ebs.html#cfn-ec2-spotfleet-ebsblockdevice-snapshotid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "VolumeSize": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-blockdevicemappings-ebs.html#cfn-ec2-spotfleet-ebsblockdevice-volumesize",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "VolumeType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-blockdevicemappings-ebs.html#cfn-ec2-spotfleet-ebsblockdevice-volumetype",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Route53::RecordSet.AliasTarget": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-aliastarget.html",
+ "Properties": {
+ "DNSName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-aliastarget.html#cfn-route53-aliastarget-dnshostname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "EvaluateTargetHealth": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-aliastarget.html#cfn-route53-aliastarget-evaluatetargethealth",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "HostedZoneId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-aliastarget.html#cfn-route53-aliastarget-hostedzoneid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CodeCommit::Repository.RepositoryTrigger": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codecommit-repository-repositorytrigger.html",
+ "Properties": {
+ "Events": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codecommit-repository-repositorytrigger.html#cfn-codecommit-repository-repositorytrigger-events",
+ "UpdateType": "Mutable"
+ },
+ "Branches": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codecommit-repository-repositorytrigger.html#cfn-codecommit-repository-repositorytrigger-branches",
+ "UpdateType": "Mutable"
+ },
+ "CustomData": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codecommit-repository-repositorytrigger.html#cfn-codecommit-repository-repositorytrigger-customdata",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "DestinationArn": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codecommit-repository-repositorytrigger.html#cfn-codecommit-repository-repositorytrigger-destinationarn",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codecommit-repository-repositorytrigger.html#cfn-codecommit-repository-repositorytrigger-name",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::AmazonMQ::Broker.User": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amazonmq-broker-user.html",
+ "Properties": {
+ "Username": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amazonmq-broker-user.html#cfn-amazonmq-broker-user-username",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Groups": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amazonmq-broker-user.html#cfn-amazonmq-broker-user-groups",
+ "UpdateType": "Mutable"
+ },
+ "ConsoleAccess": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amazonmq-broker-user.html#cfn-amazonmq-broker-user-consoleaccess",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "Password": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amazonmq-broker-user.html#cfn-amazonmq-broker-user-password",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CodeBuild::Project.SourceAuth": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-sourceauth.html",
+ "Properties": {
+ "Type": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-sourceauth.html#cfn-codebuild-project-sourceauth-type",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Resource": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-sourceauth.html#cfn-codebuild-project-sourceauth-resource",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Glue::Crawler.Targets": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-crawler-targets.html",
+ "Properties": {
+ "S3Targets": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-crawler-targets.html#cfn-glue-crawler-targets-s3targets",
+ "ItemType": "S3Target",
+ "UpdateType": "Mutable"
+ },
+ "JdbcTargets": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-crawler-targets.html#cfn-glue-crawler-targets-jdbctargets",
+ "ItemType": "JdbcTarget",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::WAF::ByteMatchSet.ByteMatchTuple": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-bytematchset-bytematchtuples.html",
+ "Properties": {
+ "FieldToMatch": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-bytematchset-bytematchtuples.html#cfn-waf-bytematchset-bytematchtuples-fieldtomatch",
+ "Required": true,
+ "Type": "FieldToMatch",
+ "UpdateType": "Mutable"
+ },
+ "PositionalConstraint": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-bytematchset-bytematchtuples.html#cfn-waf-bytematchset-bytematchtuples-positionalconstraint",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "TargetString": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-bytematchset-bytematchtuples.html#cfn-waf-bytematchset-bytematchtuples-targetstring",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "TargetStringBase64": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-bytematchset-bytematchtuples.html#cfn-waf-bytematchset-bytematchtuples-targetstringbase64",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "TextTransformation": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-bytematchset-bytematchtuples.html#cfn-waf-bytematchset-bytematchtuples-texttransformation",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::AutoScaling::ScalingPolicy.TargetTrackingConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-targettrackingconfiguration.html",
+ "Properties": {
+ "CustomizedMetricSpecification": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-targettrackingconfiguration.html#cfn-autoscaling-scalingpolicy-targettrackingconfiguration-customizedmetricspecification",
+ "Required": false,
+ "Type": "CustomizedMetricSpecification",
+ "UpdateType": "Mutable"
+ },
+ "DisableScaleIn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-targettrackingconfiguration.html#cfn-autoscaling-scalingpolicy-targettrackingconfiguration-disablescalein",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "PredefinedMetricSpecification": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-targettrackingconfiguration.html#cfn-autoscaling-scalingpolicy-targettrackingconfiguration-predefinedmetricspecification",
+ "Required": false,
+ "Type": "PredefinedMetricSpecification",
+ "UpdateType": "Mutable"
+ },
+ "TargetValue": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-targettrackingconfiguration.html#cfn-autoscaling-scalingpolicy-targettrackingconfiguration-targetvalue",
+ "PrimitiveType": "Double",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ECS::TaskDefinition.MountPoint": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions-mountpoints.html",
+ "Properties": {
+ "ContainerPath": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions-mountpoints.html#cfn-ecs-taskdefinition-containerdefinition-mountpoints-containerpath",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "ReadOnly": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions-mountpoints.html#cfn-ecs-taskdefinition-containerdefinition-mountpoints-readonly",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "SourceVolume": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions-mountpoints.html#cfn-ecs-taskdefinition-containerdefinition-mountpoints-sourcevolume",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::EMR::Cluster.Application": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-application.html",
+ "Properties": {
+ "AdditionalInfo": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-application.html#cfn-elasticmapreduce-cluster-application-additionalinfo",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "Map",
+ "UpdateType": "Mutable"
+ },
+ "Args": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-application.html#cfn-elasticmapreduce-cluster-application-args",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-application.html#cfn-elasticmapreduce-cluster-application-name",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Version": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-application.html#cfn-elasticmapreduce-cluster-application-version",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ECS::Service.PlacementStrategy": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-placementstrategy.html",
+ "Properties": {
+ "Field": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-placementstrategy.html#cfn-ecs-service-placementstrategy-field",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Type": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-placementstrategy.html#cfn-ecs-service-placementstrategy-type",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::CloudFront::Distribution.Restrictions": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-restrictions.html",
+ "Properties": {
+ "GeoRestriction": {
+ "Type": "GeoRestriction",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-restrictions.html#cfn-cloudfront-distribution-restrictions-georestriction",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Route53::RecordSetGroup.RecordSet": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-recordset.html",
+ "Properties": {
+ "AliasTarget": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-recordset.html#cfn-route53-recordset-aliastarget",
+ "Required": false,
+ "Type": "AliasTarget",
+ "UpdateType": "Mutable"
+ },
+ "Comment": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-recordset.html#cfn-route53-recordset-comment",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Failover": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-recordset.html#cfn-route53-recordset-failover",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "GeoLocation": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-recordset.html#cfn-route53-recordset-geolocation",
+ "Required": false,
+ "Type": "GeoLocation",
+ "UpdateType": "Mutable"
+ },
+ "HealthCheckId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-recordset.html#cfn-route53-recordset-healthcheckid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "HostedZoneId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-recordset.html#cfn-route53-recordset-hostedzoneid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "HostedZoneName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-recordset.html#cfn-route53-recordset-hostedzonename",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-recordset.html#cfn-route53-recordset-name",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Region": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-recordset.html#cfn-route53-recordset-region",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "ResourceRecords": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-recordset.html#cfn-route53-recordset-resourcerecords",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "SetIdentifier": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-recordset.html#cfn-route53-recordset-setidentifier",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "TTL": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-recordset.html#cfn-route53-recordset-ttl",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Type": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-recordset.html#cfn-route53-recordset-type",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Weight": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-recordset.html#cfn-route53-recordset-weight",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Batch::ComputeEnvironment.ComputeResources": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html",
+ "Properties": {
+ "SpotIamFleetRole": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-spotiamfleetrole",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "MaxvCpus": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-maxvcpus",
+ "PrimitiveType": "Integer",
+ "UpdateType": "Mutable"
+ },
+ "BidPercentage": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-bidpercentage",
+ "PrimitiveType": "Integer",
+ "UpdateType": "Immutable"
+ },
+ "SecurityGroupIds": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-securitygroupids",
+ "UpdateType": "Immutable"
+ },
+ "Subnets": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-subnets",
+ "UpdateType": "Immutable"
+ },
+ "Type": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-type",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "MinvCpus": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-minvcpus",
+ "PrimitiveType": "Integer",
+ "UpdateType": "Mutable"
+ },
+ "ImageId": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-imageid",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "InstanceRole": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-instancerole",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "InstanceTypes": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-instancetypes",
+ "UpdateType": "Immutable"
+ },
+ "Ec2KeyPair": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-ec2keypair",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "Tags": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-tags",
+ "PrimitiveType": "Json",
+ "UpdateType": "Immutable"
+ },
+ "DesiredvCpus": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-desiredvcpus",
+ "PrimitiveType": "Integer",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::KinesisFirehose::DeliveryStream.KinesisStreamSourceConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-kinesisstreamsourceconfiguration.html",
+ "Properties": {
+ "KinesisStreamARN": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-kinesisstreamsourceconfiguration.html#cfn-kinesisfirehose-deliverystream-kinesisstreamsourceconfiguration-kinesisstreamarn",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "RoleARN": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-kinesisstreamsourceconfiguration.html#cfn-kinesisfirehose-deliverystream-kinesisstreamsourceconfiguration-rolearn",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ElasticLoadBalancingV2::ListenerRule.Action": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-listenerrule-actions.html",
+ "Properties": {
+ "TargetGroupArn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-listenerrule-actions.html#cfn-elasticloadbalancingv2-listener-actions-targetgrouparn",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Type": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-listenerrule-actions.html#cfn-elasticloadbalancingv2-listener-actions-type",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Glue::Classifier.XMLClassifier": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-classifier-xmlclassifier.html",
+ "Properties": {
+ "RowTag": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-classifier-xmlclassifier.html#cfn-glue-classifier-xmlclassifier-rowtag",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Classification": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-classifier-xmlclassifier.html#cfn-glue-classifier-xmlclassifier-classification",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-classifier-xmlclassifier.html#cfn-glue-classifier-xmlclassifier-name",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::EC2::SpotFleet.LoadBalancersConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-loadbalancersconfig.html",
+ "Properties": {
+ "ClassicLoadBalancersConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-loadbalancersconfig.html#cfn-ec2-spotfleet-loadbalancersconfig-classicloadbalancersconfig",
+ "Required": false,
+ "Type": "ClassicLoadBalancersConfig",
+ "UpdateType": "Mutable"
+ },
+ "TargetGroupsConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-loadbalancersconfig.html#cfn-ec2-spotfleet-loadbalancersconfig-targetgroupsconfig",
+ "Required": false,
+ "Type": "TargetGroupsConfig",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::SSM::MaintenanceWindowTask.TaskInvocationParameters": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-maintenancewindowtask-taskinvocationparameters.html",
+ "Properties": {
+ "MaintenanceWindowRunCommandParameters": {
+ "Type": "MaintenanceWindowRunCommandParameters",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-maintenancewindowtask-taskinvocationparameters.html#cfn-ssm-maintenancewindowtask-taskinvocationparameters-maintenancewindowruncommandparameters",
+ "UpdateType": "Mutable"
+ },
+ "MaintenanceWindowAutomationParameters": {
+ "Type": "MaintenanceWindowAutomationParameters",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-maintenancewindowtask-taskinvocationparameters.html#cfn-ssm-maintenancewindowtask-taskinvocationparameters-maintenancewindowautomationparameters",
+ "UpdateType": "Mutable"
+ },
+ "MaintenanceWindowStepFunctionsParameters": {
+ "Type": "MaintenanceWindowStepFunctionsParameters",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-maintenancewindowtask-taskinvocationparameters.html#cfn-ssm-maintenancewindowtask-taskinvocationparameters-maintenancewindowstepfunctionsparameters",
+ "UpdateType": "Mutable"
+ },
+ "MaintenanceWindowLambdaParameters": {
+ "Type": "MaintenanceWindowLambdaParameters",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-maintenancewindowtask-taskinvocationparameters.html#cfn-ssm-maintenancewindowtask-taskinvocationparameters-maintenancewindowlambdaparameters",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::KinesisFirehose::DeliveryStream.ProcessorParameter": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-processorparameter.html",
+ "Properties": {
+ "ParameterName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-processorparameter.html#cfn-kinesisfirehose-deliverystream-processorparameter-parametername",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "ParameterValue": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-processorparameter.html#cfn-kinesisfirehose-deliverystream-processorparameter-parametervalue",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::AppSync::DataSource.LambdaConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-datasource-lambdaconfig.html",
+ "Properties": {
+ "LambdaFunctionArn": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-datasource-lambdaconfig.html#cfn-appsync-datasource-lambdaconfig-lambdafunctionarn",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::KinesisAnalytics::ApplicationReferenceDataSource.MappingParameters": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationreferencedatasource-mappingparameters.html",
+ "Properties": {
+ "JSONMappingParameters": {
+ "Type": "JSONMappingParameters",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationreferencedatasource-mappingparameters.html#cfn-kinesisanalytics-applicationreferencedatasource-mappingparameters-jsonmappingparameters",
+ "UpdateType": "Mutable"
+ },
+ "CSVMappingParameters": {
+ "Type": "CSVMappingParameters",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationreferencedatasource-mappingparameters.html#cfn-kinesisanalytics-applicationreferencedatasource-mappingparameters-csvmappingparameters",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CodeDeploy::DeploymentGroup.EC2TagSet": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-ec2tagset.html",
+ "Properties": {
+ "Ec2TagSetList": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-ec2tagset.html#cfn-codedeploy-deploymentgroup-ec2tagset-ec2tagsetlist",
+ "DuplicatesAllowed": false,
+ "ItemType": "EC2TagSetListObject",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ApiGateway::ApiKey.StageKey": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-apikey-stagekey.html",
+ "Properties": {
+ "RestApiId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-apikey-stagekey.html#cfn-apigateway-apikey-stagekey-restapiid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "StageName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-apikey-stagekey.html#cfn-apigateway-apikey-stagekey-stagename",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::S3::Bucket.ServerSideEncryptionByDefault": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-serversideencryptionbydefault.html",
+ "Properties": {
+ "KMSMasterKeyID": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-serversideencryptionbydefault.html#cfn-s3-bucket-serversideencryptionbydefault-kmsmasterkeyid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "SSEAlgorithm": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-serversideencryptionbydefault.html#cfn-s3-bucket-serversideencryptionbydefault-ssealgorithm",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EMR::Cluster.EbsBlockDeviceConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-ebsblockdeviceconfig.html",
+ "Properties": {
+ "VolumeSpecification": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-ebsblockdeviceconfig.html#cfn-elasticmapreduce-cluster-ebsblockdeviceconfig-volumespecification",
+ "Required": true,
+ "Type": "VolumeSpecification",
+ "UpdateType": "Mutable"
+ },
+ "VolumesPerInstance": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-ebsblockdeviceconfig.html#cfn-elasticmapreduce-cluster-ebsblockdeviceconfig-volumesperinstance",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CodeDeploy::DeploymentGroup.ELBInfo": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-elbinfo.html",
+ "Properties": {
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-elbinfo.html#cfn-codedeploy-deploymentgroup-elbinfo-name",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::DynamoDB::Table.GlobalSecondaryIndex": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-gsi.html",
+ "Properties": {
+ "IndexName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-gsi.html#cfn-dynamodb-gsi-indexname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "KeySchema": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-gsi.html#cfn-dynamodb-gsi-keyschema",
+ "DuplicatesAllowed": false,
+ "ItemType": "KeySchema",
+ "Required": true,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "Projection": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-gsi.html#cfn-dynamodb-gsi-projection",
+ "Required": true,
+ "Type": "Projection",
+ "UpdateType": "Mutable"
+ },
+ "ProvisionedThroughput": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-gsi.html#cfn-dynamodb-gsi-provisionedthroughput",
+ "Required": true,
+ "Type": "ProvisionedThroughput",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::AutoScalingPlans::ScalingPlan.MetricDimension": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscalingplans-scalingplan-metricdimension.html",
+ "Properties": {
+ "Value": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscalingplans-scalingplan-metricdimension.html#cfn-autoscalingplans-scalingplan-metricdimension-value",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscalingplans-scalingplan-metricdimension.html#cfn-autoscalingplans-scalingplan-metricdimension-name",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Events::Rule.RunCommandTarget": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-rule-runcommandtarget.html",
+ "Properties": {
+ "Key": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-rule-runcommandtarget.html#cfn-events-rule-runcommandtarget-key",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Values": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-rule-runcommandtarget.html#cfn-events-rule-runcommandtarget-values",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": true,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::S3::Bucket.RedirectRule": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-websiteconfiguration-routingrules-redirectrule.html",
+ "Properties": {
+ "HostName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-websiteconfiguration-routingrules-redirectrule.html#cfn-s3-websiteconfiguration-redirectrule-hostname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "HttpRedirectCode": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-websiteconfiguration-routingrules-redirectrule.html#cfn-s3-websiteconfiguration-redirectrule-httpredirectcode",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Protocol": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-websiteconfiguration-routingrules-redirectrule.html#cfn-s3-websiteconfiguration-redirectrule-protocol",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "ReplaceKeyPrefixWith": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-websiteconfiguration-routingrules-redirectrule.html#cfn-s3-websiteconfiguration-redirectrule-replacekeyprefixwith",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "ReplaceKeyWith": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-websiteconfiguration-routingrules-redirectrule.html#cfn-s3-websiteconfiguration-redirectrule-replacekeywith",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EMR::InstanceGroupConfig.ScalingRule": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancegroupconfig-scalingrule.html",
+ "Properties": {
+ "Action": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancegroupconfig-scalingrule.html#cfn-elasticmapreduce-instancegroupconfig-scalingrule-action",
+ "Required": true,
+ "Type": "ScalingAction",
+ "UpdateType": "Mutable"
+ },
+ "Description": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancegroupconfig-scalingrule.html#cfn-elasticmapreduce-instancegroupconfig-scalingrule-description",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancegroupconfig-scalingrule.html#cfn-elasticmapreduce-instancegroupconfig-scalingrule-name",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Trigger": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancegroupconfig-scalingrule.html#cfn-elasticmapreduce-instancegroupconfig-scalingrule-trigger",
+ "Required": true,
+ "Type": "ScalingTrigger",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EMR::Cluster.PlacementType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-placementtype.html",
+ "Properties": {
+ "AvailabilityZone": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-placementtype.html#cfn-elasticmapreduce-cluster-placementtype-availabilityzone",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::ElasticLoadBalancingV2::ListenerRule.RuleCondition": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-listenerrule-conditions.html",
+ "Properties": {
+ "Field": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-listenerrule-conditions.html#cfn-elasticloadbalancingv2-listenerrule-conditions-field",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Values": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-listenerrule-conditions.html#cfn-elasticloadbalancingv2-listenerrule-conditions-values",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ApiGateway::Deployment.StageDescription": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-stagedescription.html",
+ "Properties": {
+ "AccessLogSetting": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-stagedescription.html#cfn-apigateway-deployment-stagedescription-accesslogsetting",
+ "Required": false,
+ "Type": "AccessLogSetting",
+ "UpdateType": "Mutable"
+ },
+ "CacheClusterEnabled": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-stagedescription.html#cfn-apigateway-deployment-stagedescription-cacheclusterenabled",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "CacheClusterSize": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-stagedescription.html#cfn-apigateway-deployment-stagedescription-cacheclustersize",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "CacheDataEncrypted": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-stagedescription.html#cfn-apigateway-deployment-stagedescription-cachedataencrypted",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "CacheTtlInSeconds": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-stagedescription.html#cfn-apigateway-deployment-stagedescription-cachettlinseconds",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "CachingEnabled": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-stagedescription.html#cfn-apigateway-deployment-stagedescription-cachingenabled",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "CanarySetting": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-stagedescription.html#cfn-apigateway-deployment-stagedescription-canarysetting",
+ "Required": false,
+ "Type": "CanarySetting",
+ "UpdateType": "Mutable"
+ },
+ "ClientCertificateId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-stagedescription.html#cfn-apigateway-deployment-stagedescription-clientcertificateid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "DataTraceEnabled": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-stagedescription.html#cfn-apigateway-deployment-stagedescription-datatraceenabled",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Description": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-stagedescription.html#cfn-apigateway-deployment-stagedescription-description",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "DocumentationVersion": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-stagedescription.html#cfn-apigateway-deployment-stagedescription-documentationversion",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "LoggingLevel": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-stagedescription.html#cfn-apigateway-deployment-stagedescription-logginglevel",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "MethodSettings": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-stagedescription.html#cfn-apigateway-deployment-stagedescription-methodsettings",
+ "DuplicatesAllowed": false,
+ "ItemType": "MethodSetting",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "MetricsEnabled": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-stagedescription.html#cfn-apigateway-deployment-stagedescription-metricsenabled",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "ThrottlingBurstLimit": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-stagedescription.html#cfn-apigateway-deployment-stagedescription-throttlingburstlimit",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "ThrottlingRateLimit": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-stagedescription.html#cfn-apigateway-deployment-stagedescription-throttlingratelimit",
+ "PrimitiveType": "Double",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Variables": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-stagedescription.html#cfn-apigateway-deployment-stagedescription-variables",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "Map",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EC2::SpotFleet.FleetLaunchTemplateSpecification": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-fleetlaunchtemplatespecification.html",
+ "Properties": {
+ "LaunchTemplateId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-fleetlaunchtemplatespecification.html#cfn-ec2-spotfleet-fleetlaunchtemplatespecification-launchtemplateid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "LaunchTemplateName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-fleetlaunchtemplatespecification.html#cfn-ec2-spotfleet-fleetlaunchtemplatespecification-launchtemplatename",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Version": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-fleetlaunchtemplatespecification.html#cfn-ec2-spotfleet-fleetlaunchtemplatespecification-version",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::S3::Bucket.RedirectAllRequestsTo": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-websiteconfiguration-redirectallrequeststo.html",
+ "Properties": {
+ "HostName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-websiteconfiguration-redirectallrequeststo.html#cfn-s3-websiteconfiguration-redirectallrequeststo-hostname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Protocol": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-websiteconfiguration-redirectallrequeststo.html#cfn-s3-websiteconfiguration-redirectallrequeststo-protocol",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::WAF::XssMatchSet.XssMatchTuple": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-xssmatchset-xssmatchtuple.html",
+ "Properties": {
+ "FieldToMatch": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-xssmatchset-xssmatchtuple.html#cfn-waf-xssmatchset-xssmatchtuple-fieldtomatch",
+ "Required": true,
+ "Type": "FieldToMatch",
+ "UpdateType": "Mutable"
+ },
+ "TextTransformation": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-xssmatchset-xssmatchtuple.html#cfn-waf-xssmatchset-xssmatchtuple-texttransformation",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CodeDeploy::DeploymentGroup.AlarmConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-alarmconfiguration.html",
+ "Properties": {
+ "Alarms": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-alarmconfiguration.html#cfn-codedeploy-deploymentgroup-alarmconfiguration-alarms",
+ "DuplicatesAllowed": false,
+ "ItemType": "Alarm",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "Enabled": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-alarmconfiguration.html#cfn-codedeploy-deploymentgroup-alarmconfiguration-enabled",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "IgnorePollAlarmFailure": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-alarmconfiguration.html#cfn-codedeploy-deploymentgroup-alarmconfiguration-ignorepollalarmfailure",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CodeBuild::Project.Environment": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-environment.html",
+ "Properties": {
+ "Type": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-environment.html#cfn-codebuild-project-environment-type",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "EnvironmentVariables": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-environment.html#cfn-codebuild-project-environment-environmentvariables",
+ "ItemType": "EnvironmentVariable",
+ "UpdateType": "Mutable"
+ },
+ "PrivilegedMode": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-environment.html#cfn-codebuild-project-environment-privilegedmode",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "Image": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-environment.html#cfn-codebuild-project-environment-image",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "ComputeType": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-environment.html#cfn-codebuild-project-environment-computetype",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Certificate": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-environment.html#cfn-codebuild-project-environment-certificate",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::S3::Bucket.S3KeyFilter": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-notificationconfiguration-config-filter-s3key.html",
+ "Properties": {
+ "Rules": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-notificationconfiguration-config-filter-s3key.html#cfn-s3-bucket-notificationconfiguraiton-config-filter-s3key-rules",
+ "DuplicatesAllowed": false,
+ "ItemType": "FilterRule",
+ "Required": true,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::KinesisAnalytics::ApplicationReferenceDataSource.JSONMappingParameters": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationreferencedatasource-jsonmappingparameters.html",
+ "Properties": {
+ "RecordRowPath": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationreferencedatasource-jsonmappingparameters.html#cfn-kinesisanalytics-applicationreferencedatasource-jsonmappingparameters-recordrowpath",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::OpsWorks::App.SslConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-app-sslconfiguration.html",
+ "Properties": {
+ "Certificate": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-app-sslconfiguration.html#cfn-opsworks-app-sslconfig-certificate",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Chain": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-app-sslconfiguration.html#cfn-opsworks-app-sslconfig-chain",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "PrivateKey": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-app-sslconfiguration.html#cfn-opsworks-app-sslconfig-privatekey",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ApplicationAutoScaling::ScalableTarget.ScheduledAction": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalabletarget-scheduledaction.html",
+ "Properties": {
+ "EndTime": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalabletarget-scheduledaction.html#cfn-applicationautoscaling-scalabletarget-scheduledaction-endtime",
+ "PrimitiveType": "Timestamp",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "ScalableTargetAction": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalabletarget-scheduledaction.html#cfn-applicationautoscaling-scalabletarget-scheduledaction-scalabletargetaction",
+ "Required": false,
+ "Type": "ScalableTargetAction",
+ "UpdateType": "Mutable"
+ },
+ "Schedule": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalabletarget-scheduledaction.html#cfn-applicationautoscaling-scalabletarget-scheduledaction-schedule",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "ScheduledActionName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalabletarget-scheduledaction.html#cfn-applicationautoscaling-scalabletarget-scheduledaction-scheduledactionname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "StartTime": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalabletarget-scheduledaction.html#cfn-applicationautoscaling-scalabletarget-scheduledaction-starttime",
+ "PrimitiveType": "Timestamp",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::SES::Template.Template": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-template-template.html",
+ "Properties": {
+ "HtmlPart": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-template-template.html#cfn-ses-template-template-htmlpart",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "TextPart": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-template-template.html#cfn-ses-template-template-textpart",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "TemplateName": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-template-template.html#cfn-ses-template-template-templatename",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "SubjectPart": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-template-template.html#cfn-ses-template-template-subjectpart",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::SSM::PatchBaseline.PatchFilter": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-patchbaseline-patchfilter.html",
+ "Properties": {
+ "Values": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-patchbaseline-patchfilter.html#cfn-ssm-patchbaseline-patchfilter-values",
+ "UpdateType": "Mutable"
+ },
+ "Key": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-patchbaseline-patchfilter.html#cfn-ssm-patchbaseline-patchfilter-key",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ElasticLoadBalancing::LoadBalancer.LBCookieStickinessPolicy": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-LBCookieStickinessPolicy.html",
+ "Properties": {
+ "CookieExpirationPeriod": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-LBCookieStickinessPolicy.html#cfn-elb-lbcookiestickinesspolicy-cookieexpirationperiod",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "PolicyName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-LBCookieStickinessPolicy.html#cfn-elb-lbcookiestickinesspolicy-policyname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EC2::Instance.InstanceIpv6Address": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-instanceipv6address.html",
+ "Properties": {
+ "Ipv6Address": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-instanceipv6address.html#cfn-ec2-instance-instanceipv6address-ipv6address",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EC2::Instance.Volume": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-mount-point.html",
+ "Properties": {
+ "Device": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-mount-point.html#cfn-ec2-mountpoint-device",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "VolumeId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-mount-point.html#cfn-ec2-mountpoint-volumeid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ElasticBeanstalk::Environment.Tier": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-beanstalk-environment-tier.html",
+ "Properties": {
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-beanstalk-environment-tier.html#cfn-beanstalk-env-tier-name",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Type": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-beanstalk-environment-tier.html#cfn-beanstalk-env-tier-type",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Version": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-beanstalk-environment-tier.html#cfn-beanstalk-env-tier-version",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EC2::NetworkAclEntry.PortRange": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-networkaclentry-portrange.html",
+ "Properties": {
+ "From": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-networkaclentry-portrange.html#cfn-ec2-networkaclentry-portrange-from",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "To": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-networkaclentry-portrange.html#cfn-ec2-networkaclentry-portrange-to",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Glue::Connection.ConnectionInput": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-connection-connectioninput.html",
+ "Properties": {
+ "Description": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-connection-connectioninput.html#cfn-glue-connection-connectioninput-description",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "ConnectionType": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-connection-connectioninput.html#cfn-glue-connection-connectioninput-connectiontype",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "MatchCriteria": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-connection-connectioninput.html#cfn-glue-connection-connectioninput-matchcriteria",
+ "UpdateType": "Mutable"
+ },
+ "PhysicalConnectionRequirements": {
+ "Type": "PhysicalConnectionRequirements",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-connection-connectioninput.html#cfn-glue-connection-connectioninput-physicalconnectionrequirements",
+ "UpdateType": "Mutable"
+ },
+ "ConnectionProperties": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-connection-connectioninput.html#cfn-glue-connection-connectioninput-connectionproperties",
+ "PrimitiveType": "Json",
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-connection-connectioninput.html#cfn-glue-connection-connectioninput-name",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::Route53::HostedZone.HostedZoneConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-hostedzone-hostedzoneconfig.html",
+ "Properties": {
+ "Comment": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-hostedzone-hostedzoneconfig.html#cfn-route53-hostedzone-hostedzoneconfig-comment",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CloudFront::Distribution.Origin": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html",
+ "Properties": {
+ "OriginCustomHeaders": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html#cfn-cloudfront-distribution-origin-origincustomheaders",
+ "ItemType": "OriginCustomHeader",
+ "UpdateType": "Mutable"
+ },
+ "DomainName": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html#cfn-cloudfront-distribution-origin-domainname",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "S3OriginConfig": {
+ "Type": "S3OriginConfig",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html#cfn-cloudfront-distribution-origin-s3originconfig",
+ "UpdateType": "Mutable"
+ },
+ "OriginPath": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html#cfn-cloudfront-distribution-origin-originpath",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Id": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html#cfn-cloudfront-distribution-origin-id",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "CustomOriginConfig": {
+ "Type": "CustomOriginConfig",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html#cfn-cloudfront-distribution-origin-customoriginconfig",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Events::Rule.InputTransformer": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-rule-inputtransformer.html",
+ "Properties": {
+ "InputPathsMap": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-rule-inputtransformer.html#cfn-events-rule-inputtransformer-inputpathsmap",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "Map",
+ "UpdateType": "Mutable"
+ },
+ "InputTemplate": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-rule-inputtransformer.html#cfn-events-rule-inputtransformer-inputtemplate",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::IoT::TopicRule.FirehoseAction": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-firehoseaction.html",
+ "Properties": {
+ "DeliveryStreamName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-firehoseaction.html#cfn-iot-topicrule-firehoseaction-deliverystreamname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "RoleArn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-firehoseaction.html#cfn-iot-topicrule-firehoseaction-rolearn",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Separator": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-firehoseaction.html#cfn-iot-topicrule-firehoseaction-separator",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::SSM::MaintenanceWindowTask.LoggingInfo": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-maintenancewindowtask-logginginfo.html",
+ "Properties": {
+ "S3Bucket": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-maintenancewindowtask-logginginfo.html#cfn-ssm-maintenancewindowtask-logginginfo-s3bucket",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Region": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-maintenancewindowtask-logginginfo.html#cfn-ssm-maintenancewindowtask-logginginfo-region",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "S3Prefix": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-maintenancewindowtask-logginginfo.html#cfn-ssm-maintenancewindowtask-logginginfo-s3prefix",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::IoT::TopicRule.TopicRulePayload": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-topicrulepayload.html",
+ "Properties": {
+ "Actions": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-topicrulepayload.html#cfn-iot-topicrule-topicrulepayload-actions",
+ "DuplicatesAllowed": false,
+ "ItemType": "Action",
+ "Required": true,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "AwsIotSqlVersion": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-topicrulepayload.html#cfn-iot-topicrule-topicrulepayload-awsiotsqlversion",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Description": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-topicrulepayload.html#cfn-iot-topicrule-topicrulepayload-description",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "RuleDisabled": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-topicrulepayload.html#cfn-iot-topicrule-topicrulepayload-ruledisabled",
+ "PrimitiveType": "Boolean",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Sql": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-topicrulepayload.html#cfn-iot-topicrule-topicrulepayload-sql",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EC2::Instance.AssociationParameter": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-ssmassociations-associationparameters.html",
+ "Properties": {
+ "Key": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-ssmassociations-associationparameters.html#cfn-ec2-instance-ssmassociations-associationparameters-key",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Value": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-ssmassociations-associationparameters.html#cfn-ec2-instance-ssmassociations-associationparameters-value",
+ "DuplicatesAllowed": true,
+ "PrimitiveItemType": "String",
+ "Required": true,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Cognito::IdentityPool.PushSync": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-identitypool-pushsync.html",
+ "Properties": {
+ "ApplicationArns": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-identitypool-pushsync.html#cfn-cognito-identitypool-pushsync-applicationarns",
+ "UpdateType": "Mutable"
+ },
+ "RoleArn": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-identitypool-pushsync.html#cfn-cognito-identitypool-pushsync-rolearn",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::S3::Bucket.InventoryConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-inventoryconfiguration.html",
+ "Properties": {
+ "Destination": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-inventoryconfiguration.html#cfn-s3-bucket-inventoryconfiguration-destination",
+ "Required": true,
+ "Type": "Destination",
+ "UpdateType": "Mutable"
+ },
+ "Enabled": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-inventoryconfiguration.html#cfn-s3-bucket-inventoryconfiguration-enabled",
+ "PrimitiveType": "Boolean",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Id": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-inventoryconfiguration.html#cfn-s3-bucket-inventoryconfiguration-id",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "IncludedObjectVersions": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-inventoryconfiguration.html#cfn-s3-bucket-inventoryconfiguration-includedobjectversions",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "OptionalFields": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-inventoryconfiguration.html#cfn-s3-bucket-inventoryconfiguration-optionalfields",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "Prefix": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-inventoryconfiguration.html#cfn-s3-bucket-inventoryconfiguration-prefix",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "ScheduleFrequency": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-inventoryconfiguration.html#cfn-s3-bucket-inventoryconfiguration-schedulefrequency",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ECS::TaskDefinition.VolumeFrom": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions-volumesfrom.html",
+ "Properties": {
+ "ReadOnly": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions-volumesfrom.html#cfn-ecs-taskdefinition-containerdefinition-volumesfrom-readonly",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "SourceContainer": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions-volumesfrom.html#cfn-ecs-taskdefinition-containerdefinition-volumesfrom-sourcecontainer",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::ElasticLoadBalancing::LoadBalancer.ConnectionDrainingPolicy": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-connectiondrainingpolicy.html",
+ "Properties": {
+ "Enabled": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-connectiondrainingpolicy.html#cfn-elb-connectiondrainingpolicy-enabled",
+ "PrimitiveType": "Boolean",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Timeout": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-connectiondrainingpolicy.html#cfn-elb-connectiondrainingpolicy-timeout",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ECS::Service.ServiceRegistry": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-serviceregistry.html",
+ "Properties": {
+ "ContainerName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-serviceregistry.html#cfn-ecs-service-serviceregistry-containername",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "ContainerPort": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-serviceregistry.html#cfn-ecs-service-serviceregistry-containerport",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Port": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-serviceregistry.html#cfn-ecs-service-serviceregistry-port",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "RegistryArn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-serviceregistry.html#cfn-ecs-service-serviceregistry-registryarn",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::S3::Bucket.WebsiteConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-websiteconfiguration.html",
+ "Properties": {
+ "ErrorDocument": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-websiteconfiguration.html#cfn-s3-websiteconfiguration-errordocument",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "IndexDocument": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-websiteconfiguration.html#cfn-s3-websiteconfiguration-indexdocument",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "RedirectAllRequestsTo": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-websiteconfiguration.html#cfn-s3-websiteconfiguration-redirectallrequeststo",
+ "Required": false,
+ "Type": "RedirectAllRequestsTo",
+ "UpdateType": "Mutable"
+ },
+ "RoutingRules": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-websiteconfiguration.html#cfn-s3-websiteconfiguration-routingrules",
+ "DuplicatesAllowed": false,
+ "ItemType": "RoutingRule",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Cognito::IdentityPool.CognitoIdentityProvider": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-identitypool-cognitoidentityprovider.html",
+ "Properties": {
+ "ServerSideTokenCheck": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-identitypool-cognitoidentityprovider.html#cfn-cognito-identitypool-cognitoidentityprovider-serversidetokencheck",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "ProviderName": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-identitypool-cognitoidentityprovider.html#cfn-cognito-identitypool-cognitoidentityprovider-providername",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "ClientId": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-identitypool-cognitoidentityprovider.html#cfn-cognito-identitypool-cognitoidentityprovider-clientid",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CloudFront::Distribution.GeoRestriction": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-georestriction.html",
+ "Properties": {
+ "Locations": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-georestriction.html#cfn-cloudfront-distribution-georestriction-locations",
+ "UpdateType": "Mutable"
+ },
+ "RestrictionType": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-georestriction.html#cfn-cloudfront-distribution-georestriction-restrictiontype",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::SES::ReceiptRule.SNSAction": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-snsaction.html",
+ "Properties": {
+ "TopicArn": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-snsaction.html#cfn-ses-receiptrule-snsaction-topicarn",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Encoding": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-snsaction.html#cfn-ses-receiptrule-snsaction-encoding",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::DMS::Endpoint.MongoDbSettings": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dms-endpoint-mongodbsettings.html",
+ "Properties": {
+ "AuthSource": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dms-endpoint-mongodbsettings.html#cfn-dms-endpoint-mongodbsettings-authsource",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "AuthMechanism": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dms-endpoint-mongodbsettings.html#cfn-dms-endpoint-mongodbsettings-authmechanism",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Username": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dms-endpoint-mongodbsettings.html#cfn-dms-endpoint-mongodbsettings-username",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "DocsToInvestigate": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dms-endpoint-mongodbsettings.html#cfn-dms-endpoint-mongodbsettings-docstoinvestigate",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "ServerName": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dms-endpoint-mongodbsettings.html#cfn-dms-endpoint-mongodbsettings-servername",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Port": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dms-endpoint-mongodbsettings.html#cfn-dms-endpoint-mongodbsettings-port",
+ "PrimitiveType": "Integer",
+ "UpdateType": "Mutable"
+ },
+ "ExtractDocId": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dms-endpoint-mongodbsettings.html#cfn-dms-endpoint-mongodbsettings-extractdocid",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "DatabaseName": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dms-endpoint-mongodbsettings.html#cfn-dms-endpoint-mongodbsettings-databasename",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "AuthType": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dms-endpoint-mongodbsettings.html#cfn-dms-endpoint-mongodbsettings-authtype",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Password": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dms-endpoint-mongodbsettings.html#cfn-dms-endpoint-mongodbsettings-password",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "NestingLevel": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dms-endpoint-mongodbsettings.html#cfn-dms-endpoint-mongodbsettings-nestinglevel",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ElasticBeanstalk::ConfigurationTemplate.ConfigurationOptionSetting": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticbeanstalk-configurationtemplate-configurationoptionsetting.html",
+ "Properties": {
+ "Namespace": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticbeanstalk-configurationtemplate-configurationoptionsetting.html#cfn-elasticbeanstalk-configurationtemplate-configurationoptionsetting-namespace",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "OptionName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticbeanstalk-configurationtemplate-configurationoptionsetting.html#cfn-elasticbeanstalk-configurationtemplate-configurationoptionsetting-optionname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "ResourceName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticbeanstalk-configurationtemplate-configurationoptionsetting.html#cfn-elasticbeanstalk-configurationtemplate-configurationoptionsetting-resourcename",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Value": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticbeanstalk-configurationtemplate-configurationoptionsetting.html#cfn-elasticbeanstalk-configurationtemplate-configurationoptionsetting-value",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::SSM::MaintenanceWindowTask.Target": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-maintenancewindowtask-target.html",
+ "Properties": {
+ "Values": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-maintenancewindowtask-target.html#cfn-ssm-maintenancewindowtask-target-values",
+ "UpdateType": "Mutable"
+ },
+ "Key": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-maintenancewindowtask-target.html#cfn-ssm-maintenancewindowtask-target-key",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Events::Rule.KinesisParameters": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-rule-kinesisparameters.html",
+ "Properties": {
+ "PartitionKeyPath": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-rule-kinesisparameters.html#cfn-events-rule-kinesisparameters-partitionkeypath",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Cognito::UserPool.Policies": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-policies.html",
+ "Properties": {
+ "PasswordPolicy": {
+ "Type": "PasswordPolicy",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-policies.html#cfn-cognito-userpool-policies-passwordpolicy",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::WAFRegional::ByteMatchSet.FieldToMatch": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-bytematchset-fieldtomatch.html",
+ "Properties": {
+ "Type": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-bytematchset-fieldtomatch.html#cfn-wafregional-bytematchset-fieldtomatch-type",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Data": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-bytematchset-fieldtomatch.html#cfn-wafregional-bytematchset-fieldtomatch-data",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CodeDeploy::DeploymentGroup.OnPremisesTagSetListObject": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-onpremisestagsetlistobject.html",
+ "Properties": {
+ "OnPremisesTagGroup": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-onpremisestagsetlistobject.html#cfn-codedeploy-deploymentgroup-onpremisestagsetlistobject-onpremisestaggroup",
+ "DuplicatesAllowed": false,
+ "ItemType": "TagFilter",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::SNS::Topic.Subscription": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sns-subscription.html",
+ "Properties": {
+ "Endpoint": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sns-subscription.html#cfn-sns-topic-subscription-endpoint",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "Protocol": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sns-subscription.html#cfn-sns-topic-subscription-protocol",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::EC2::Instance.LaunchTemplateSpecification": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-launchtemplatespecification.html",
+ "Properties": {
+ "LaunchTemplateId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-launchtemplatespecification.html#cfn-ec2-instance-launchtemplatespecification-launchtemplateid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "LaunchTemplateName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-launchtemplatespecification.html#cfn-ec2-instance-launchtemplatespecification-launchtemplatename",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Version": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-launchtemplatespecification.html#cfn-ec2-instance-launchtemplatespecification-version",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CodePipeline::Pipeline.ArtifactStore": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-artifactstore.html",
+ "Properties": {
+ "EncryptionKey": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-artifactstore.html#cfn-codepipeline-pipeline-artifactstore-encryptionkey",
+ "Required": false,
+ "Type": "EncryptionKey",
+ "UpdateType": "Mutable"
+ },
+ "Location": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-artifactstore.html#cfn-codepipeline-pipeline-artifactstore-location",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Type": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-artifactstore.html#cfn-codepipeline-pipeline-artifactstore-type",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CodeBuild::Project.CloudWatchLogsConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-cloudwatchlogsconfig.html",
+ "Properties": {
+ "Status": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-cloudwatchlogsconfig.html#cfn-codebuild-project-cloudwatchlogsconfig-status",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "GroupName": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-cloudwatchlogsconfig.html#cfn-codebuild-project-cloudwatchlogsconfig-groupname",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "StreamName": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-cloudwatchlogsconfig.html#cfn-codebuild-project-cloudwatchlogsconfig-streamname",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::AutoScaling::AutoScalingGroup.MetricsCollection": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-metricscollection.html",
+ "Properties": {
+ "Granularity": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-metricscollection.html#cfn-as-metricscollection-granularity",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Metrics": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-metricscollection.html#cfn-as-metricscollection-metrics",
+ "DuplicatesAllowed": true,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::DynamoDB::Table.KeySchema": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-keyschema.html",
+ "Properties": {
+ "AttributeName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-keyschema.html#aws-properties-dynamodb-keyschema-attributename",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "KeyType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-keyschema.html#aws-properties-dynamodb-keyschema-keytype",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::S3::Bucket.ReplicationConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-replicationconfiguration.html",
+ "Properties": {
+ "Role": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-replicationconfiguration.html#cfn-s3-bucket-replicationconfiguration-role",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Rules": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-replicationconfiguration.html#cfn-s3-bucket-replicationconfiguration-rules",
+ "DuplicatesAllowed": false,
+ "ItemType": "ReplicationRule",
+ "Required": true,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::KinesisAnalytics::Application.Input": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-application-input.html",
+ "Properties": {
+ "NamePrefix": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-application-input.html#cfn-kinesisanalytics-application-input-nameprefix",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "InputSchema": {
+ "Type": "InputSchema",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-application-input.html#cfn-kinesisanalytics-application-input-inputschema",
+ "UpdateType": "Mutable"
+ },
+ "KinesisStreamsInput": {
+ "Type": "KinesisStreamsInput",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-application-input.html#cfn-kinesisanalytics-application-input-kinesisstreamsinput",
+ "UpdateType": "Mutable"
+ },
+ "KinesisFirehoseInput": {
+ "Type": "KinesisFirehoseInput",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-application-input.html#cfn-kinesisanalytics-application-input-kinesisfirehoseinput",
+ "UpdateType": "Mutable"
+ },
+ "InputProcessingConfiguration": {
+ "Type": "InputProcessingConfiguration",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-application-input.html#cfn-kinesisanalytics-application-input-inputprocessingconfiguration",
+ "UpdateType": "Mutable"
+ },
+ "InputParallelism": {
+ "Type": "InputParallelism",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-application-input.html#cfn-kinesisanalytics-application-input-inputparallelism",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::KinesisAnalytics::Application.InputSchema": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-application-inputschema.html",
+ "Properties": {
+ "RecordEncoding": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-application-inputschema.html#cfn-kinesisanalytics-application-inputschema-recordencoding",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "RecordColumns": {
+ "Type": "List",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-application-inputschema.html#cfn-kinesisanalytics-application-inputschema-recordcolumns",
+ "ItemType": "RecordColumn",
+ "UpdateType": "Mutable"
+ },
+ "RecordFormat": {
+ "Type": "RecordFormat",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-application-inputschema.html#cfn-kinesisanalytics-application-inputschema-recordformat",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::SSM::PatchBaseline.Rule": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-patchbaseline-rule.html",
+ "Properties": {
+ "EnableNonSecurity": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-patchbaseline-rule.html#cfn-ssm-patchbaseline-rule-enablenonsecurity",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "PatchFilterGroup": {
+ "Type": "PatchFilterGroup",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-patchbaseline-rule.html#cfn-ssm-patchbaseline-rule-patchfiltergroup",
+ "UpdateType": "Mutable"
+ },
+ "ApproveAfterDays": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-patchbaseline-rule.html#cfn-ssm-patchbaseline-rule-approveafterdays",
+ "PrimitiveType": "Integer",
+ "UpdateType": "Mutable"
+ },
+ "ComplianceLevel": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-patchbaseline-rule.html#cfn-ssm-patchbaseline-rule-compliancelevel",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CloudFront::Distribution.ViewerCertificate": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-viewercertificate.html",
+ "Properties": {
+ "IamCertificateId": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-viewercertificate.html#cfn-cloudfront-distribution-viewercertificate-iamcertificateid",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "SslSupportMethod": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-viewercertificate.html#cfn-cloudfront-distribution-viewercertificate-sslsupportmethod",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "MinimumProtocolVersion": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-viewercertificate.html#cfn-cloudfront-distribution-viewercertificate-minimumprotocolversion",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "CloudFrontDefaultCertificate": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-viewercertificate.html#cfn-cloudfront-distribution-viewercertificate-cloudfrontdefaultcertificate",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "AcmCertificateArn": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-viewercertificate.html#cfn-cloudfront-distribution-viewercertificate-acmcertificatearn",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::S3::Bucket.SseKmsEncryptedObjects": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-ssekmsencryptedobjects.html",
+ "Properties": {
+ "Status": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-ssekmsencryptedobjects.html#cfn-s3-bucket-ssekmsencryptedobjects-status",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::SES::ConfigurationSetEventDestination.CloudWatchDestination": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-configurationseteventdestination-cloudwatchdestination.html",
+ "Properties": {
+ "DimensionConfigurations": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-configurationseteventdestination-cloudwatchdestination.html#cfn-ses-configurationseteventdestination-cloudwatchdestination-dimensionconfigurations",
+ "ItemType": "DimensionConfiguration",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EMR::Cluster.Configuration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-configuration.html",
+ "Properties": {
+ "Classification": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-configuration.html#cfn-elasticmapreduce-cluster-configuration-classification",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "ConfigurationProperties": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-configuration.html#cfn-elasticmapreduce-cluster-configuration-configurationproperties",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "Map",
+ "UpdateType": "Mutable"
+ },
+ "Configurations": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-configuration.html#cfn-elasticmapreduce-cluster-configuration-configurations",
+ "DuplicatesAllowed": false,
+ "ItemType": "Configuration",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EMR::InstanceFleetConfig.InstanceTypeConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancefleetconfig-instancetypeconfig.html",
+ "Properties": {
+ "BidPrice": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancefleetconfig-instancetypeconfig.html#cfn-elasticmapreduce-instancefleetconfig-instancetypeconfig-bidprice",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "BidPriceAsPercentageOfOnDemandPrice": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancefleetconfig-instancetypeconfig.html#cfn-elasticmapreduce-instancefleetconfig-instancetypeconfig-bidpriceaspercentageofondemandprice",
+ "PrimitiveType": "Double",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Configurations": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancefleetconfig-instancetypeconfig.html#cfn-elasticmapreduce-instancefleetconfig-instancetypeconfig-configurations",
+ "DuplicatesAllowed": false,
+ "ItemType": "Configuration",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ },
+ "EbsConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancefleetconfig-instancetypeconfig.html#cfn-elasticmapreduce-instancefleetconfig-instancetypeconfig-ebsconfiguration",
+ "Required": false,
+ "Type": "EbsConfiguration",
+ "UpdateType": "Immutable"
+ },
+ "InstanceType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancefleetconfig-instancetypeconfig.html#cfn-elasticmapreduce-instancefleetconfig-instancetypeconfig-instancetype",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "WeightedCapacity": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancefleetconfig-instancetypeconfig.html#cfn-elasticmapreduce-instancefleetconfig-instancetypeconfig-weightedcapacity",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::WAFRegional::XssMatchSet.XssMatchTuple": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-xssmatchset-xssmatchtuple.html",
+ "Properties": {
+ "TextTransformation": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-xssmatchset-xssmatchtuple.html#cfn-wafregional-xssmatchset-xssmatchtuple-texttransformation",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "FieldToMatch": {
+ "Type": "FieldToMatch",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-xssmatchset-xssmatchtuple.html#cfn-wafregional-xssmatchset-xssmatchtuple-fieldtomatch",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ApplicationAutoScaling::ScalingPolicy.PredefinedMetricSpecification": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalingpolicy-predefinedmetricspecification.html",
+ "Properties": {
+ "PredefinedMetricType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalingpolicy-predefinedmetricspecification.html#cfn-applicationautoscaling-scalingpolicy-predefinedmetricspecification-predefinedmetrictype",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "ResourceLabel": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalingpolicy-predefinedmetricspecification.html#cfn-applicationautoscaling-scalingpolicy-predefinedmetricspecification-resourcelabel",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ECS::TaskDefinition.HostEntry": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions-hostentry.html",
+ "Properties": {
+ "Hostname": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions-hostentry.html#cfn-ecs-taskdefinition-containerdefinition-hostentry-hostname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "IpAddress": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions-hostentry.html#cfn-ecs-taskdefinition-containerdefinition-hostentry-ipaddress",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::Cognito::UserPool.EmailConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-emailconfiguration.html",
+ "Properties": {
+ "ReplyToEmailAddress": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-emailconfiguration.html#cfn-cognito-userpool-emailconfiguration-replytoemailaddress",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "SourceArn": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-emailconfiguration.html#cfn-cognito-userpool-emailconfiguration-sourcearn",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::S3::Bucket.Rule": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule.html",
+ "Properties": {
+ "AbortIncompleteMultipartUpload": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule.html#cfn-s3-bucket-rule-abortincompletemultipartupload",
+ "Required": false,
+ "Type": "AbortIncompleteMultipartUpload",
+ "UpdateType": "Mutable"
+ },
+ "ExpirationDate": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule.html#cfn-s3-bucket-lifecycleconfig-rule-expirationdate",
+ "PrimitiveType": "Timestamp",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "ExpirationInDays": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule.html#cfn-s3-bucket-lifecycleconfig-rule-expirationindays",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Id": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule.html#cfn-s3-bucket-lifecycleconfig-rule-id",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "NoncurrentVersionExpirationInDays": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule.html#cfn-s3-bucket-lifecycleconfig-rule-noncurrentversionexpirationindays",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "NoncurrentVersionTransition": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule.html#cfn-s3-bucket-lifecycleconfig-rule-noncurrentversiontransition",
+ "Required": false,
+ "Type": "NoncurrentVersionTransition",
+ "UpdateType": "Mutable"
+ },
+ "NoncurrentVersionTransitions": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule.html#cfn-s3-bucket-lifecycleconfig-rule-noncurrentversiontransitions",
+ "DuplicatesAllowed": false,
+ "ItemType": "NoncurrentVersionTransition",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "Prefix": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule.html#cfn-s3-bucket-lifecycleconfig-rule-prefix",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Status": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule.html#cfn-s3-bucket-lifecycleconfig-rule-status",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "TagFilters": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule.html#cfn-s3-bucket-rule-tagfilters",
+ "DuplicatesAllowed": false,
+ "ItemType": "TagFilter",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "Transition": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule.html#cfn-s3-bucket-lifecycleconfig-rule-transition",
+ "Required": false,
+ "Type": "Transition",
+ "UpdateType": "Mutable"
+ },
+ "Transitions": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule.html#cfn-s3-bucket-lifecycleconfig-rule-transitions",
+ "DuplicatesAllowed": false,
+ "ItemType": "Transition",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ECS::TaskDefinition.KernelCapabilities": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-kernelcapabilities.html",
+ "Properties": {
+ "Add": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-kernelcapabilities.html#cfn-ecs-taskdefinition-kernelcapabilities-add",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ },
+ "Drop": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-kernelcapabilities.html#cfn-ecs-taskdefinition-kernelcapabilities-drop",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::S3::Bucket.QueueConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-notificationconfig-queueconfig.html",
+ "Properties": {
+ "Event": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-notificationconfig-queueconfig.html#cfn-s3-bucket-notificationconfig-queueconfig-event",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Filter": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-notificationconfig-queueconfig.html#cfn-s3-bucket-notificationconfig-queueconfig-filter",
+ "Required": false,
+ "Type": "NotificationFilter",
+ "UpdateType": "Mutable"
+ },
+ "Queue": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-notificationconfig-queueconfig.html#cfn-s3-bucket-notificationconfig-queueconfig-queue",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EMR::InstanceGroupConfig.ScalingAction": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancegroupconfig-scalingaction.html",
+ "Properties": {
+ "Market": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancegroupconfig-scalingaction.html#cfn-elasticmapreduce-instancegroupconfig-scalingaction-market",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "SimpleScalingPolicyConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancegroupconfig-scalingaction.html#cfn-elasticmapreduce-instancegroupconfig-scalingaction-simplescalingpolicyconfiguration",
+ "Required": true,
+ "Type": "SimpleScalingPolicyConfiguration",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CodePipeline::Webhook.WebhookFilterRule": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-webhook-webhookfilterrule.html",
+ "Properties": {
+ "JsonPath": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-webhook-webhookfilterrule.html#cfn-codepipeline-webhook-webhookfilterrule-jsonpath",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "MatchEquals": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-webhook-webhookfilterrule.html#cfn-codepipeline-webhook-webhookfilterrule-matchequals",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ElasticLoadBalancing::LoadBalancer.Listeners": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-listener.html",
+ "Properties": {
+ "InstancePort": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-listener.html#cfn-ec2-elb-listener-instanceport",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "InstanceProtocol": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-listener.html#cfn-ec2-elb-listener-instanceprotocol",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "LoadBalancerPort": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-listener.html#cfn-ec2-elb-listener-loadbalancerport",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "PolicyNames": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-listener.html#cfn-ec2-elb-listener-policynames",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "Protocol": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-listener.html#cfn-ec2-elb-listener-protocol",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "SSLCertificateId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-listener.html#cfn-ec2-elb-listener-sslcertificateid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EMR::InstanceGroupConfig.ScalingTrigger": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancegroupconfig-scalingtrigger.html",
+ "Properties": {
+ "CloudWatchAlarmDefinition": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancegroupconfig-scalingtrigger.html#cfn-elasticmapreduce-instancegroupconfig-scalingtrigger-cloudwatchalarmdefinition",
+ "Required": true,
+ "Type": "CloudWatchAlarmDefinition",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::S3::Bucket.TopicConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-notificationconfig-topicconfig.html",
+ "Properties": {
+ "Event": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-notificationconfig-topicconfig.html#cfn-s3-bucket-notificationconfig-topicconfig-event",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Filter": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-notificationconfig-topicconfig.html#cfn-s3-bucket-notificationconfig-topicconfig-filter",
+ "Required": false,
+ "Type": "NotificationFilter",
+ "UpdateType": "Mutable"
+ },
+ "Topic": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-notificationconfig-topicconfig.html#cfn-s3-bucket-notificationconfig-topicconfig-topic",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::AmazonMQ::Broker.MaintenanceWindow": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amazonmq-broker-maintenancewindow.html",
+ "Properties": {
+ "DayOfWeek": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amazonmq-broker-maintenancewindow.html#cfn-amazonmq-broker-maintenancewindow-dayofweek",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "TimeOfDay": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amazonmq-broker-maintenancewindow.html#cfn-amazonmq-broker-maintenancewindow-timeofday",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "TimeZone": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amazonmq-broker-maintenancewindow.html#cfn-amazonmq-broker-maintenancewindow-timezone",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Glue::Connection.PhysicalConnectionRequirements": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-connection-physicalconnectionrequirements.html",
+ "Properties": {
+ "AvailabilityZone": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-connection-physicalconnectionrequirements.html#cfn-glue-connection-physicalconnectionrequirements-availabilityzone",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "SecurityGroupIdList": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-connection-physicalconnectionrequirements.html#cfn-glue-connection-physicalconnectionrequirements-securitygroupidlist",
+ "UpdateType": "Mutable"
+ },
+ "SubnetId": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-connection-physicalconnectionrequirements.html#cfn-glue-connection-physicalconnectionrequirements-subnetid",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CloudFront::Distribution.S3OriginConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-s3originconfig.html",
+ "Properties": {
+ "OriginAccessIdentity": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-s3originconfig.html#cfn-cloudfront-distribution-s3originconfig-originaccessidentity",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ElasticLoadBalancingV2::LoadBalancer.LoadBalancerAttribute": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-loadbalancer-loadbalancerattributes.html",
+ "Properties": {
+ "Key": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-loadbalancer-loadbalancerattributes.html#cfn-elasticloadbalancingv2-loadbalancer-loadbalancerattributes-key",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Value": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-loadbalancer-loadbalancerattributes.html#cfn-elasticloadbalancingv2-loadbalancer-loadbalancerattributes-value",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EC2::SpotFleet.TargetGroup": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-targetgroup.html",
+ "Properties": {
+ "Arn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-targetgroup.html#cfn-ec2-spotfleet-targetgroup-arn",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EC2::LaunchTemplate.ElasticGpuSpecification": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-elasticgpuspecification.html",
+ "Properties": {
+ "Type": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-elasticgpuspecification.html#cfn-ec2-launchtemplate-elasticgpuspecification-type",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ECS::TaskDefinition.TaskDefinitionPlacementConstraint": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-taskdefinitionplacementconstraint.html",
+ "Properties": {
+ "Expression": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-taskdefinitionplacementconstraint.html#cfn-ecs-taskdefinition-taskdefinitionplacementconstraint-expression",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Type": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-taskdefinitionplacementconstraint.html#cfn-ecs-taskdefinition-taskdefinitionplacementconstraint-type",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::KinesisAnalytics::ApplicationReferenceDataSource.RecordFormat": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationreferencedatasource-recordformat.html",
+ "Properties": {
+ "MappingParameters": {
+ "Type": "MappingParameters",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationreferencedatasource-recordformat.html#cfn-kinesisanalytics-applicationreferencedatasource-recordformat-mappingparameters",
+ "UpdateType": "Mutable"
+ },
+ "RecordFormatType": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationreferencedatasource-recordformat.html#cfn-kinesisanalytics-applicationreferencedatasource-recordformat-recordformattype",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::SSM::Association.ParameterValues": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-association-parametervalues.html",
+ "Properties": {
+ "ParameterValues": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-association-parametervalues.html#cfn-ssm-association-parametervalues-parametervalues",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": true,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::KinesisAnalytics::Application.RecordColumn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-application-recordcolumn.html",
+ "Properties": {
+ "Mapping": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-application-recordcolumn.html#cfn-kinesisanalytics-application-recordcolumn-mapping",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "SqlType": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-application-recordcolumn.html#cfn-kinesisanalytics-application-recordcolumn-sqltype",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-application-recordcolumn.html#cfn-kinesisanalytics-application-recordcolumn-name",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Cognito::UserPool.LambdaConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-lambdaconfig.html",
+ "Properties": {
+ "CreateAuthChallenge": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-lambdaconfig.html#cfn-cognito-userpool-lambdaconfig-createauthchallenge",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "PreAuthentication": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-lambdaconfig.html#cfn-cognito-userpool-lambdaconfig-preauthentication",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "DefineAuthChallenge": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-lambdaconfig.html#cfn-cognito-userpool-lambdaconfig-defineauthchallenge",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "PreSignUp": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-lambdaconfig.html#cfn-cognito-userpool-lambdaconfig-presignup",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "PostAuthentication": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-lambdaconfig.html#cfn-cognito-userpool-lambdaconfig-postauthentication",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "PostConfirmation": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-lambdaconfig.html#cfn-cognito-userpool-lambdaconfig-postconfirmation",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "CustomMessage": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-lambdaconfig.html#cfn-cognito-userpool-lambdaconfig-custommessage",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "VerifyAuthChallengeResponse": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-lambdaconfig.html#cfn-cognito-userpool-lambdaconfig-verifyauthchallengeresponse",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::SSM::PatchBaseline.PatchFilterGroup": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-patchbaseline-patchfiltergroup.html",
+ "Properties": {
+ "PatchFilters": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-patchbaseline-patchfiltergroup.html#cfn-ssm-patchbaseline-patchfiltergroup-patchfilters",
+ "ItemType": "PatchFilter",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Glue::Crawler.JdbcTarget": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-crawler-jdbctarget.html",
+ "Properties": {
+ "ConnectionName": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-crawler-jdbctarget.html#cfn-glue-crawler-jdbctarget-connectionname",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Path": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-crawler-jdbctarget.html#cfn-glue-crawler-jdbctarget-path",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Exclusions": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-crawler-jdbctarget.html#cfn-glue-crawler-jdbctarget-exclusions",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EC2::NetworkInterface.PrivateIpAddressSpecification": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-network-interface-privateipspec.html",
+ "Properties": {
+ "Primary": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-network-interface-privateipspec.html#cfn-ec2-networkinterface-privateipspecification-primary",
+ "PrimitiveType": "Boolean",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "PrivateIpAddress": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-network-interface-privateipspec.html#cfn-ec2-networkinterface-privateipspecification-privateipaddress",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Glue::Table.TableInput": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-tableinput.html",
+ "Properties": {
+ "Owner": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-tableinput.html#cfn-glue-table-tableinput-owner",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "ViewOriginalText": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-tableinput.html#cfn-glue-table-tableinput-vieworiginaltext",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Description": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-tableinput.html#cfn-glue-table-tableinput-description",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "TableType": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-tableinput.html#cfn-glue-table-tableinput-tabletype",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Parameters": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-tableinput.html#cfn-glue-table-tableinput-parameters",
+ "PrimitiveType": "Json",
+ "UpdateType": "Mutable"
+ },
+ "ViewExpandedText": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-tableinput.html#cfn-glue-table-tableinput-viewexpandedtext",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "StorageDescriptor": {
+ "Type": "StorageDescriptor",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-tableinput.html#cfn-glue-table-tableinput-storagedescriptor",
+ "UpdateType": "Mutable"
+ },
+ "PartitionKeys": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-tableinput.html#cfn-glue-table-tableinput-partitionkeys",
+ "ItemType": "Column",
+ "UpdateType": "Mutable"
+ },
+ "Retention": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-tableinput.html#cfn-glue-table-tableinput-retention",
+ "PrimitiveType": "Integer",
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-tableinput.html#cfn-glue-table-tableinput-name",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::CodeBuild::Project.ProjectCache": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projectcache.html",
+ "Properties": {
+ "Type": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projectcache.html#cfn-codebuild-project-projectcache-type",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Location": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projectcache.html#cfn-codebuild-project-projectcache-location",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::WAF::SizeConstraintSet.FieldToMatch": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-sizeconstraintset-sizeconstraint-fieldtomatch.html",
+ "Properties": {
+ "Data": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-sizeconstraintset-sizeconstraint-fieldtomatch.html#cfn-waf-sizeconstraintset-sizeconstraint-fieldtomatch-data",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Type": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-sizeconstraintset-sizeconstraint-fieldtomatch.html#cfn-waf-sizeconstraintset-sizeconstraint-fieldtomatch-type",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::IoT::TopicRule.LambdaAction": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-lambdaaction.html",
+ "Properties": {
+ "FunctionArn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-lambdaaction.html#cfn-iot-topicrule-lambdaaction-functionarn",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Lambda::Function.TracingConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-tracingconfig.html",
+ "Properties": {
+ "Mode": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-tracingconfig.html#cfn-lambda-function-tracingconfig-mode",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EMR::Cluster.ScriptBootstrapActionConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-scriptbootstrapactionconfig.html",
+ "Properties": {
+ "Args": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-scriptbootstrapactionconfig.html#cfn-elasticmapreduce-cluster-scriptbootstrapactionconfig-args",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "Path": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-scriptbootstrapactionconfig.html#cfn-elasticmapreduce-cluster-scriptbootstrapactionconfig-path",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::AutoScaling::LaunchConfiguration.BlockDevice": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig-blockdev-template.html",
+ "Properties": {
+ "DeleteOnTermination": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig-blockdev-template.html#cfn-as-launchconfig-blockdev-template-deleteonterm",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Encrypted": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig-blockdev-template.html#cfn-as-launchconfig-blockdev-template-encrypted",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Iops": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig-blockdev-template.html#cfn-as-launchconfig-blockdev-template-iops",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "SnapshotId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig-blockdev-template.html#cfn-as-launchconfig-blockdev-template-snapshotid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "VolumeSize": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig-blockdev-template.html#cfn-as-launchconfig-blockdev-template-volumesize",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "VolumeType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig-blockdev-template.html#cfn-as-launchconfig-blockdev-template-volumetype",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::S3::Bucket.MetricsConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-metricsconfiguration.html",
+ "Properties": {
+ "Id": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-metricsconfiguration.html#cfn-s3-bucket-metricsconfiguration-id",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Prefix": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-metricsconfiguration.html#cfn-s3-bucket-metricsconfiguration-prefix",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "TagFilters": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-metricsconfiguration.html#cfn-s3-bucket-metricsconfiguration-tagfilters",
+ "DuplicatesAllowed": false,
+ "ItemType": "TagFilter",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ECS::Service.DeploymentConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-deploymentconfiguration.html",
+ "Properties": {
+ "MaximumPercent": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-deploymentconfiguration.html#cfn-ecs-service-deploymentconfiguration-maximumpercent",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "MinimumHealthyPercent": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-deploymentconfiguration.html#cfn-ecs-service-deploymentconfiguration-minimumhealthypercent",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::OpsWorks::Layer.AutoScalingThresholds": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-layer-loadbasedautoscaling-autoscalingthresholds.html",
+ "Properties": {
+ "CpuThreshold": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-layer-loadbasedautoscaling-autoscalingthresholds.html#cfn-opsworks-layer-loadbasedautoscaling-autoscalingthresholds-cputhreshold",
+ "PrimitiveType": "Double",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "IgnoreMetricsTime": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-layer-loadbasedautoscaling-autoscalingthresholds.html#cfn-opsworks-layer-loadbasedautoscaling-autoscalingthresholds-ignoremetricstime",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "InstanceCount": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-layer-loadbasedautoscaling-autoscalingthresholds.html#cfn-opsworks-layer-loadbasedautoscaling-autoscalingthresholds-instancecount",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "LoadThreshold": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-layer-loadbasedautoscaling-autoscalingthresholds.html#cfn-opsworks-layer-loadbasedautoscaling-autoscalingthresholds-loadthreshold",
+ "PrimitiveType": "Double",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "MemoryThreshold": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-layer-loadbasedautoscaling-autoscalingthresholds.html#cfn-opsworks-layer-loadbasedautoscaling-autoscalingthresholds-memorythreshold",
+ "PrimitiveType": "Double",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "ThresholdsWaitTime": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-layer-loadbasedautoscaling-autoscalingthresholds.html#cfn-opsworks-layer-loadbasedautoscaling-autoscalingthresholds-thresholdwaittime",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Batch::JobDefinition.MountPoints": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-mountpoints.html",
+ "Properties": {
+ "ReadOnly": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-mountpoints.html#cfn-batch-jobdefinition-mountpoints-readonly",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "SourceVolume": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-mountpoints.html#cfn-batch-jobdefinition-mountpoints-sourcevolume",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "ContainerPath": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-mountpoints.html#cfn-batch-jobdefinition-mountpoints-containerpath",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CodeDeploy::DeploymentGroup.DeploymentStyle": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deploymentstyle.html",
+ "Properties": {
+ "DeploymentOption": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deploymentstyle.html#cfn-codedeploy-deploymentgroup-deploymentstyle-deploymentoption",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "DeploymentType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deploymentstyle.html#cfn-codedeploy-deploymentgroup-deploymentstyle-deploymenttype",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Cognito::UserPool.AdminCreateUserConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-admincreateuserconfig.html",
+ "Properties": {
+ "InviteMessageTemplate": {
+ "Type": "InviteMessageTemplate",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-admincreateuserconfig.html#cfn-cognito-userpool-admincreateuserconfig-invitemessagetemplate",
+ "UpdateType": "Mutable"
+ },
+ "UnusedAccountValidityDays": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-admincreateuserconfig.html#cfn-cognito-userpool-admincreateuserconfig-unusedaccountvaliditydays",
+ "PrimitiveType": "Double",
+ "UpdateType": "Mutable"
+ },
+ "AllowAdminCreateUserOnly": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-admincreateuserconfig.html#cfn-cognito-userpool-admincreateuserconfig-allowadmincreateuseronly",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EC2::Instance.Ebs": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-blockdev-template.html",
+ "Properties": {
+ "DeleteOnTermination": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-blockdev-template.html#cfn-ec2-blockdev-template-deleteontermination",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Encrypted": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-blockdev-template.html#cfn-ec2-blockdev-template-encrypted",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Iops": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-blockdev-template.html#cfn-ec2-blockdev-template-iops",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "SnapshotId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-blockdev-template.html#cfn-ec2-blockdev-template-snapshotid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "VolumeSize": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-blockdev-template.html#cfn-ec2-blockdev-template-volumesize",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "VolumeType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-blockdev-template.html#cfn-ec2-blockdev-template-volumetype",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ApiGateway::Deployment.CanarySetting": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-canarysetting.html",
+ "Properties": {
+ "PercentTraffic": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-canarysetting.html#cfn-apigateway-deployment-canarysetting-percenttraffic",
+ "PrimitiveType": "Double",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "StageVariableOverrides": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-canarysetting.html#cfn-apigateway-deployment-canarysetting-stagevariableoverrides",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "Map",
+ "UpdateType": "Mutable"
+ },
+ "UseStageCache": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-canarysetting.html#cfn-apigateway-deployment-canarysetting-usestagecache",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CodeDeploy::DeploymentGroup.Alarm": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-alarm.html",
+ "Properties": {
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-alarm.html#cfn-codedeploy-deploymentgroup-alarm-name",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Cognito::UserPool.SchemaAttribute": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-schemaattribute.html",
+ "Properties": {
+ "DeveloperOnlyAttribute": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-schemaattribute.html#cfn-cognito-userpool-schemaattribute-developeronlyattribute",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "Mutable": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-schemaattribute.html#cfn-cognito-userpool-schemaattribute-mutable",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "AttributeDataType": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-schemaattribute.html#cfn-cognito-userpool-schemaattribute-attributedatatype",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "StringAttributeConstraints": {
+ "Type": "StringAttributeConstraints",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-schemaattribute.html#cfn-cognito-userpool-schemaattribute-stringattributeconstraints",
+ "UpdateType": "Mutable"
+ },
+ "Required": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-schemaattribute.html#cfn-cognito-userpool-schemaattribute-required",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "NumberAttributeConstraints": {
+ "Type": "NumberAttributeConstraints",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-schemaattribute.html#cfn-cognito-userpool-schemaattribute-numberattributeconstraints",
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-schemaattribute.html#cfn-cognito-userpool-schemaattribute-name",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::KinesisAnalytics::ApplicationReferenceDataSource.RecordColumn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationreferencedatasource-recordcolumn.html",
+ "Properties": {
+ "Mapping": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationreferencedatasource-recordcolumn.html#cfn-kinesisanalytics-applicationreferencedatasource-recordcolumn-mapping",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "SqlType": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationreferencedatasource-recordcolumn.html#cfn-kinesisanalytics-applicationreferencedatasource-recordcolumn-sqltype",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationreferencedatasource-recordcolumn.html#cfn-kinesisanalytics-applicationreferencedatasource-recordcolumn-name",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ApplicationAutoScaling::ScalingPolicy.CustomizedMetricSpecification": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalingpolicy-customizedmetricspecification.html",
+ "Properties": {
+ "Dimensions": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalingpolicy-customizedmetricspecification.html#cfn-applicationautoscaling-scalingpolicy-customizedmetricspecification-dimensions",
+ "DuplicatesAllowed": false,
+ "ItemType": "MetricDimension",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "MetricName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalingpolicy-customizedmetricspecification.html#cfn-applicationautoscaling-scalingpolicy-customizedmetricspecification-metricname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Namespace": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalingpolicy-customizedmetricspecification.html#cfn-applicationautoscaling-scalingpolicy-customizedmetricspecification-namespace",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Statistic": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalingpolicy-customizedmetricspecification.html#cfn-applicationautoscaling-scalingpolicy-customizedmetricspecification-statistic",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Unit": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalingpolicy-customizedmetricspecification.html#cfn-applicationautoscaling-scalingpolicy-customizedmetricspecification-unit",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Glue::Classifier.GrokClassifier": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-classifier-grokclassifier.html",
+ "Properties": {
+ "CustomPatterns": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-classifier-grokclassifier.html#cfn-glue-classifier-grokclassifier-custompatterns",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "GrokPattern": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-classifier-grokclassifier.html#cfn-glue-classifier-grokclassifier-grokpattern",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Classification": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-classifier-grokclassifier.html#cfn-glue-classifier-grokclassifier-classification",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-classifier-grokclassifier.html#cfn-glue-classifier-grokclassifier-name",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::SageMaker::Model.VpcConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-model-vpcconfig.html",
+ "Properties": {
+ "Subnets": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-model-vpcconfig.html#cfn-sagemaker-model-vpcconfig-subnets",
+ "UpdateType": "Immutable"
+ },
+ "SecurityGroupIds": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-model-vpcconfig.html#cfn-sagemaker-model-vpcconfig-securitygroupids",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::EC2::LaunchTemplate.TagSpecification": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-tagspecification.html",
+ "Properties": {
+ "ResourceType": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-tagspecification.html#cfn-ec2-launchtemplate-tagspecification-resourcetype",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Tags": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-tagspecification.html#cfn-ec2-launchtemplate-tagspecification-tags",
+ "ItemType": "Tag",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::KinesisAnalytics::Application.RecordFormat": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-application-recordformat.html",
+ "Properties": {
+ "MappingParameters": {
+ "Type": "MappingParameters",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-application-recordformat.html#cfn-kinesisanalytics-application-recordformat-mappingparameters",
+ "UpdateType": "Mutable"
+ },
+ "RecordFormatType": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-application-recordformat.html#cfn-kinesisanalytics-application-recordformat-recordformattype",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::AppSync::DataSource.HttpConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-datasource-httpconfig.html",
+ "Properties": {
+ "Endpoint": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-datasource-httpconfig.html#cfn-appsync-datasource-httpconfig-endpoint",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::S3::Bucket.TagFilter": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-tagfilter.html",
+ "Properties": {
+ "Key": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-tagfilter.html#cfn-s3-bucket-tagfilter-key",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Value": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-tagfilter.html#cfn-s3-bucket-tagfilter-value",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::WAF::SizeConstraintSet.SizeConstraint": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-sizeconstraintset-sizeconstraint.html",
+ "Properties": {
+ "ComparisonOperator": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-sizeconstraintset-sizeconstraint.html#cfn-waf-sizeconstraintset-sizeconstraint-comparisonoperator",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "FieldToMatch": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-sizeconstraintset-sizeconstraint.html#cfn-waf-sizeconstraintset-sizeconstraint-fieldtomatch",
+ "Required": true,
+ "Type": "FieldToMatch",
+ "UpdateType": "Mutable"
+ },
+ "Size": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-sizeconstraintset-sizeconstraint.html#cfn-waf-sizeconstraintset-sizeconstraint-size",
+ "PrimitiveType": "Integer",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "TextTransformation": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-sizeconstraintset-sizeconstraint.html#cfn-waf-sizeconstraintset-sizeconstraint-texttransformation",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::GuardDuty::Filter.Condition": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-filter-condition.html",
+ "Properties": {
+ "Lt": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-filter-condition.html#cfn-guardduty-filter-condition-lt",
+ "PrimitiveType": "Integer",
+ "UpdateType": "Mutable"
+ },
+ "Gte": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-filter-condition.html#cfn-guardduty-filter-condition-gte",
+ "PrimitiveType": "Integer",
+ "UpdateType": "Mutable"
+ },
+ "Neq": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-filter-condition.html#cfn-guardduty-filter-condition-neq",
+ "UpdateType": "Mutable"
+ },
+ "Eq": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-filter-condition.html#cfn-guardduty-filter-condition-eq",
+ "UpdateType": "Mutable"
+ },
+ "Lte": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-filter-condition.html#cfn-guardduty-filter-condition-lte",
+ "PrimitiveType": "Integer",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::OpsWorks::Instance.BlockDeviceMapping": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-instance-blockdevicemapping.html",
+ "Properties": {
+ "DeviceName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-instance-blockdevicemapping.html#cfn-opsworks-instance-blockdevicemapping-devicename",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Ebs": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-instance-blockdevicemapping.html#cfn-opsworks-instance-blockdevicemapping-ebs",
+ "Required": false,
+ "Type": "EbsBlockDevice",
+ "UpdateType": "Mutable"
+ },
+ "NoDevice": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-instance-blockdevicemapping.html#cfn-opsworks-instance-blockdevicemapping-nodevice",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "VirtualName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-instance-blockdevicemapping.html#cfn-opsworks-instance-blockdevicemapping-virtualname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EC2::LaunchTemplate.Ipv6Add": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-ipv6add.html",
+ "Properties": {
+ "Ipv6Address": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-ipv6add.html#cfn-ec2-launchtemplate-ipv6add-ipv6address",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EC2::LaunchTemplate.IamInstanceProfile": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-iaminstanceprofile.html",
+ "Properties": {
+ "Arn": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-iaminstanceprofile.html#cfn-ec2-launchtemplate-launchtemplatedata-iaminstanceprofile-arn",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-iaminstanceprofile.html#cfn-ec2-launchtemplate-launchtemplatedata-iaminstanceprofile-name",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Cognito::UserPool.NumberAttributeConstraints": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-numberattributeconstraints.html",
+ "Properties": {
+ "MinValue": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-numberattributeconstraints.html#cfn-cognito-userpool-numberattributeconstraints-minvalue",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "MaxValue": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-numberattributeconstraints.html#cfn-cognito-userpool-numberattributeconstraints-maxvalue",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::AutoScalingPlans::ScalingPlan.PredefinedScalingMetricSpecification": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscalingplans-scalingplan-predefinedscalingmetricspecification.html",
+ "Properties": {
+ "ResourceLabel": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscalingplans-scalingplan-predefinedscalingmetricspecification.html#cfn-autoscalingplans-scalingplan-predefinedscalingmetricspecification-resourcelabel",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "PredefinedScalingMetricType": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscalingplans-scalingplan-predefinedscalingmetricspecification.html#cfn-autoscalingplans-scalingplan-predefinedscalingmetricspecification-predefinedscalingmetrictype",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::SES::ReceiptRule.Rule": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-rule.html",
+ "Properties": {
+ "ScanEnabled": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-rule.html#cfn-ses-receiptrule-rule-scanenabled",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "Recipients": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-rule.html#cfn-ses-receiptrule-rule-recipients",
+ "UpdateType": "Mutable"
+ },
+ "Actions": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-rule.html#cfn-ses-receiptrule-rule-actions",
+ "ItemType": "Action",
+ "UpdateType": "Mutable"
+ },
+ "Enabled": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-rule.html#cfn-ses-receiptrule-rule-enabled",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-rule.html#cfn-ses-receiptrule-rule-name",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "TlsPolicy": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-rule.html#cfn-ses-receiptrule-rule-tlspolicy",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::AmazonMQ::Broker.LogList": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amazonmq-broker-loglist.html",
+ "Properties": {
+ "Audit": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amazonmq-broker-loglist.html#cfn-amazonmq-broker-loglist-audit",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "General": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amazonmq-broker-loglist.html#cfn-amazonmq-broker-loglist-general",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CloudTrail::Trail.DataResource": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudtrail-trail-dataresource.html",
+ "Properties": {
+ "Type": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudtrail-trail-dataresource.html#cfn-cloudtrail-trail-dataresource-type",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Values": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudtrail-trail-dataresource.html#cfn-cloudtrail-trail-dataresource-values",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::IoT::TopicRule.DynamoDBv2Action": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-dynamodbv2action.html",
+ "Properties": {
+ "PutItem": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-dynamodbv2action.html#cfn-iot-topicrule-dynamodbv2action-putitem",
+ "Required": false,
+ "Type": "PutItemInput",
+ "UpdateType": "Mutable"
+ },
+ "RoleArn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-dynamodbv2action.html#cfn-iot-topicrule-dynamodbv2action-rolearn",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::OpsWorks::Instance.EbsBlockDevice": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-instance-ebsblockdevice.html",
+ "Properties": {
+ "DeleteOnTermination": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-instance-ebsblockdevice.html#cfn-opsworks-instance-ebsblockdevice-deleteontermination",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Iops": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-instance-ebsblockdevice.html#cfn-opsworks-instance-ebsblockdevice-iops",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "SnapshotId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-instance-ebsblockdevice.html#cfn-opsworks-instance-ebsblockdevice-snapshotid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "VolumeSize": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-instance-ebsblockdevice.html#cfn-opsworks-instance-ebsblockdevice-volumesize",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "VolumeType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-instance-ebsblockdevice.html#cfn-opsworks-instance-ebsblockdevice-volumetype",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ApiGateway::UsagePlan.ThrottleSettings": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-usageplan-throttlesettings.html",
+ "Properties": {
+ "BurstLimit": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-usageplan-throttlesettings.html#cfn-apigateway-usageplan-throttlesettings-burstlimit",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "RateLimit": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-usageplan-throttlesettings.html#cfn-apigateway-usageplan-throttlesettings-ratelimit",
+ "PrimitiveType": "Double",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ApiGateway::DocumentationPart.Location": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-documentationpart-location.html",
+ "Properties": {
+ "Method": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-documentationpart-location.html#cfn-apigateway-documentationpart-location-method",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-documentationpart-location.html#cfn-apigateway-documentationpart-location-name",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Path": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-documentationpart-location.html#cfn-apigateway-documentationpart-location-path",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "StatusCode": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-documentationpart-location.html#cfn-apigateway-documentationpart-location-statuscode",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Type": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-documentationpart-location.html#cfn-apigateway-documentationpart-location-type",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::DataPipeline::Pipeline.PipelineObject": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datapipeline-pipeline-pipelineobjects.html",
+ "Properties": {
+ "Fields": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datapipeline-pipeline-pipelineobjects.html#cfn-datapipeline-pipeline-pipelineobjects-fields",
+ "DuplicatesAllowed": true,
+ "ItemType": "Field",
+ "Required": true,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "Id": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datapipeline-pipeline-pipelineobjects.html#cfn-datapipeline-pipeline-pipelineobjects-id",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datapipeline-pipeline-pipelineobjects.html#cfn-datapipeline-pipeline-pipelineobjects-name",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EC2::Instance.NoDevice": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-nodevice.html",
+ "Properties": {}
+ },
+ "AWS::Glue::Table.SerdeInfo": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-serdeinfo.html",
+ "Properties": {
+ "Parameters": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-serdeinfo.html#cfn-glue-table-serdeinfo-parameters",
+ "PrimitiveType": "Json",
+ "UpdateType": "Mutable"
+ },
+ "SerializationLibrary": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-serdeinfo.html#cfn-glue-table-serdeinfo-serializationlibrary",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-serdeinfo.html#cfn-glue-table-serdeinfo-name",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::AutoScaling::ScalingPolicy.StepAdjustment": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-stepadjustments.html",
+ "Properties": {
+ "MetricIntervalLowerBound": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-stepadjustments.html#cfn-autoscaling-scalingpolicy-stepadjustment-metricintervallowerbound",
+ "PrimitiveType": "Double",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "MetricIntervalUpperBound": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-stepadjustments.html#cfn-autoscaling-scalingpolicy-stepadjustment-metricintervalupperbound",
+ "PrimitiveType": "Double",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "ScalingAdjustment": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-stepadjustments.html#cfn-autoscaling-scalingpolicy-stepadjustment-scalingadjustment",
+ "PrimitiveType": "Integer",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::IAM::Role.Policy": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-policy.html",
+ "Properties": {
+ "PolicyDocument": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-policy.html#cfn-iam-policies-policydocument",
+ "PrimitiveType": "Json",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "PolicyName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-policy.html#cfn-iam-policies-policyname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Batch::JobDefinition.Environment": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-environment.html",
+ "Properties": {
+ "Value": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-environment.html#cfn-batch-jobdefinition-environment-value",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-environment.html#cfn-batch-jobdefinition-environment-name",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EC2::Instance.SsmAssociation": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-ssmassociations.html",
+ "Properties": {
+ "AssociationParameters": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-ssmassociations.html#cfn-ec2-instance-ssmassociations-associationparameters",
+ "DuplicatesAllowed": true,
+ "ItemType": "AssociationParameter",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "DocumentName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-ssmassociations.html#cfn-ec2-instance-ssmassociations-documentname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::AmazonMQ::Broker.ConfigurationId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amazonmq-broker-configurationid.html",
+ "Properties": {
+ "Revision": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amazonmq-broker-configurationid.html#cfn-amazonmq-broker-configurationid-revision",
+ "PrimitiveType": "Integer",
+ "UpdateType": "Mutable"
+ },
+ "Id": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amazonmq-broker-configurationid.html#cfn-amazonmq-broker-configurationid-id",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EMR::Cluster.CloudWatchAlarmDefinition": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-cloudwatchalarmdefinition.html",
+ "Properties": {
+ "ComparisonOperator": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-cloudwatchalarmdefinition.html#cfn-elasticmapreduce-cluster-cloudwatchalarmdefinition-comparisonoperator",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Dimensions": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-cloudwatchalarmdefinition.html#cfn-elasticmapreduce-cluster-cloudwatchalarmdefinition-dimensions",
+ "DuplicatesAllowed": false,
+ "ItemType": "MetricDimension",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "EvaluationPeriods": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-cloudwatchalarmdefinition.html#cfn-elasticmapreduce-cluster-cloudwatchalarmdefinition-evaluationperiods",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "MetricName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-cloudwatchalarmdefinition.html#cfn-elasticmapreduce-cluster-cloudwatchalarmdefinition-metricname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Namespace": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-cloudwatchalarmdefinition.html#cfn-elasticmapreduce-cluster-cloudwatchalarmdefinition-namespace",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Period": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-cloudwatchalarmdefinition.html#cfn-elasticmapreduce-cluster-cloudwatchalarmdefinition-period",
+ "PrimitiveType": "Integer",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Statistic": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-cloudwatchalarmdefinition.html#cfn-elasticmapreduce-cluster-cloudwatchalarmdefinition-statistic",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Threshold": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-cloudwatchalarmdefinition.html#cfn-elasticmapreduce-cluster-cloudwatchalarmdefinition-threshold",
+ "PrimitiveType": "Double",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Unit": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-cloudwatchalarmdefinition.html#cfn-elasticmapreduce-cluster-cloudwatchalarmdefinition-unit",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Glue::Crawler.Schedule": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-crawler-schedule.html",
+ "Properties": {
+ "ScheduleExpression": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-crawler-schedule.html#cfn-glue-crawler-schedule-scheduleexpression",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::SSM::PatchBaseline.PatchSource": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-patchbaseline-patchsource.html",
+ "Properties": {
+ "Products": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-patchbaseline-patchsource.html#cfn-ssm-patchbaseline-patchsource-products",
+ "UpdateType": "Mutable"
+ },
+ "Configuration": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-patchbaseline-patchsource.html#cfn-ssm-patchbaseline-patchsource-configuration",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-patchbaseline-patchsource.html#cfn-ssm-patchbaseline-patchsource-name",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::KinesisAnalytics::Application.KinesisFirehoseInput": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-application-kinesisfirehoseinput.html",
+ "Properties": {
+ "ResourceARN": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-application-kinesisfirehoseinput.html#cfn-kinesisanalytics-application-kinesisfirehoseinput-resourcearn",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "RoleARN": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-application-kinesisfirehoseinput.html#cfn-kinesisanalytics-application-kinesisfirehoseinput-rolearn",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::OpsWorks::Stack.StackConfigurationManager": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-stackconfigmanager.html",
+ "Properties": {
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-stackconfigmanager.html#cfn-opsworks-configmanager-name",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Version": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-stackconfigmanager.html#cfn-opsworks-configmanager-version",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CloudFront::StreamingDistribution.S3Origin": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-s3origin.html",
+ "Properties": {
+ "DomainName": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-s3origin.html#cfn-cloudfront-streamingdistribution-s3origin-domainname",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "OriginAccessIdentity": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-s3origin.html#cfn-cloudfront-streamingdistribution-s3origin-originaccessidentity",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CodeBuild::Project.VpcConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-vpcconfig.html",
+ "Properties": {
+ "Subnets": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-vpcconfig.html#cfn-codebuild-project-vpcconfig-subnets",
+ "UpdateType": "Mutable"
+ },
+ "VpcId": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-vpcconfig.html#cfn-codebuild-project-vpcconfig-vpcid",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "SecurityGroupIds": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-vpcconfig.html#cfn-codebuild-project-vpcconfig-securitygroupids",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::IoT::TopicRule.ElasticsearchAction": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-elasticsearchaction.html",
+ "Properties": {
+ "Endpoint": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-elasticsearchaction.html#cfn-iot-topicrule-elasticsearchaction-endpoint",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Id": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-elasticsearchaction.html#cfn-iot-topicrule-elasticsearchaction-id",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Index": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-elasticsearchaction.html#cfn-iot-topicrule-elasticsearchaction-index",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "RoleArn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-elasticsearchaction.html#cfn-iot-topicrule-elasticsearchaction-rolearn",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Type": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-elasticsearchaction.html#cfn-iot-topicrule-elasticsearchaction-type",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Glue::Partition.SkewedInfo": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-partition-skewedinfo.html",
+ "Properties": {
+ "SkewedColumnNames": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-partition-skewedinfo.html#cfn-glue-partition-skewedinfo-skewedcolumnnames",
+ "UpdateType": "Mutable"
+ },
+ "SkewedColumnValues": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-partition-skewedinfo.html#cfn-glue-partition-skewedinfo-skewedcolumnvalues",
+ "UpdateType": "Mutable"
+ },
+ "SkewedColumnValueLocationMaps": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-partition-skewedinfo.html#cfn-glue-partition-skewedinfo-skewedcolumnvaluelocationmaps",
+ "PrimitiveType": "Json",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ElasticBeanstalk::Application.ApplicationVersionLifecycleConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticbeanstalk-application-applicationversionlifecycleconfig.html",
+ "Properties": {
+ "MaxAgeRule": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticbeanstalk-application-applicationversionlifecycleconfig.html#cfn-elasticbeanstalk-application-applicationversionlifecycleconfig-maxagerule",
+ "Required": false,
+ "Type": "MaxAgeRule",
+ "UpdateType": "Mutable"
+ },
+ "MaxCountRule": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticbeanstalk-application-applicationversionlifecycleconfig.html#cfn-elasticbeanstalk-application-applicationversionlifecycleconfig-maxcountrule",
+ "Required": false,
+ "Type": "MaxCountRule",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Cognito::UserPool.SmsConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-smsconfiguration.html",
+ "Properties": {
+ "ExternalId": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-smsconfiguration.html#cfn-cognito-userpool-smsconfiguration-externalid",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "SnsCallerArn": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-smsconfiguration.html#cfn-cognito-userpool-smsconfiguration-snscallerarn",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Config::ConfigRule.Source": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-configrule-source.html",
+ "Properties": {
+ "Owner": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-configrule-source.html#cfn-config-configrule-source-owner",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "SourceDetails": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-configrule-source.html#cfn-config-configrule-source-sourcedetails",
+ "DuplicatesAllowed": false,
+ "ItemType": "SourceDetail",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "SourceIdentifier": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-configrule-source.html#cfn-config-configrule-source-sourceidentifier",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ApiGateway::RestApi.S3Location": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-restapi-s3location.html",
+ "Properties": {
+ "Bucket": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-restapi-s3location.html#cfn-apigateway-restapi-s3location-bucket",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "ETag": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-restapi-s3location.html#cfn-apigateway-restapi-s3location-etag",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Key": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-restapi-s3location.html#cfn-apigateway-restapi-s3location-key",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Version": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-restapi-s3location.html#cfn-apigateway-restapi-s3location-version",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::DynamoDB::Table.Projection": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-projectionobject.html",
+ "Properties": {
+ "NonKeyAttributes": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-projectionobject.html#cfn-dynamodb-projectionobj-nonkeyatt",
+ "DuplicatesAllowed": true,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "ProjectionType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-projectionobject.html#cfn-dynamodb-projectionobj-projtype",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EC2::LaunchTemplate.NetworkInterface": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html",
+ "Properties": {
+ "Description": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html#cfn-ec2-launchtemplate-networkinterface-description",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "PrivateIpAddress": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html#cfn-ec2-launchtemplate-networkinterface-privateipaddress",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "PrivateIpAddresses": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html#cfn-ec2-launchtemplate-networkinterface-privateipaddresses",
+ "ItemType": "PrivateIpAdd",
+ "UpdateType": "Mutable"
+ },
+ "SecondaryPrivateIpAddressCount": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html#cfn-ec2-launchtemplate-networkinterface-secondaryprivateipaddresscount",
+ "PrimitiveType": "Integer",
+ "UpdateType": "Mutable"
+ },
+ "Ipv6AddressCount": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html#cfn-ec2-launchtemplate-networkinterface-ipv6addresscount",
+ "PrimitiveType": "Integer",
+ "UpdateType": "Mutable"
+ },
+ "Groups": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html#cfn-ec2-launchtemplate-networkinterface-groups",
+ "UpdateType": "Mutable"
+ },
+ "DeviceIndex": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html#cfn-ec2-launchtemplate-networkinterface-deviceindex",
+ "PrimitiveType": "Integer",
+ "UpdateType": "Mutable"
+ },
+ "SubnetId": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html#cfn-ec2-launchtemplate-networkinterface-subnetid",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Ipv6Addresses": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html#cfn-ec2-launchtemplate-networkinterface-ipv6addresses",
+ "ItemType": "Ipv6Add",
+ "UpdateType": "Mutable"
+ },
+ "AssociatePublicIpAddress": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html#cfn-ec2-launchtemplate-networkinterface-associatepublicipaddress",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "NetworkInterfaceId": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html#cfn-ec2-launchtemplate-networkinterface-networkinterfaceid",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "DeleteOnTermination": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html#cfn-ec2-launchtemplate-networkinterface-deleteontermination",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ElasticLoadBalancingV2::Listener.Certificate": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-listener-certificates.html",
+ "Properties": {
+ "CertificateArn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-listener-certificates.html#cfn-elasticloadbalancingv2-listener-certificates-certificatearn",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ElasticLoadBalancingV2::TargetGroup.Matcher": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-targetgroup-matcher.html",
+ "Properties": {
+ "HttpCode": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-targetgroup-matcher.html#cfn-elasticloadbalancingv2-targetgroup-matcher-httpcode",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::WAFRegional::XssMatchSet.FieldToMatch": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-xssmatchset-fieldtomatch.html",
+ "Properties": {
+ "Type": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-xssmatchset-fieldtomatch.html#cfn-wafregional-xssmatchset-fieldtomatch-type",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Data": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-xssmatchset-fieldtomatch.html#cfn-wafregional-xssmatchset-fieldtomatch-data",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Config::ConfigurationAggregator.AccountAggregationSource": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-configurationaggregator-accountaggregationsource.html",
+ "Properties": {
+ "AllAwsRegions": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-configurationaggregator-accountaggregationsource.html#cfn-config-configurationaggregator-accountaggregationsource-allawsregions",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "AwsRegions": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-configurationaggregator-accountaggregationsource.html#cfn-config-configurationaggregator-accountaggregationsource-awsregions",
+ "UpdateType": "Mutable"
+ },
+ "AccountIds": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-configurationaggregator-accountaggregationsource.html#cfn-config-configurationaggregator-accountaggregationsource-accountids",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::IoT::TopicRule.DynamoDBAction": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-dynamodbaction.html",
+ "Properties": {
+ "HashKeyField": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-dynamodbaction.html#cfn-iot-topicrule-dynamodbaction-hashkeyfield",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "HashKeyType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-dynamodbaction.html#cfn-iot-topicrule-dynamodbaction-hashkeytype",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "HashKeyValue": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-dynamodbaction.html#cfn-iot-topicrule-dynamodbaction-hashkeyvalue",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "PayloadField": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-dynamodbaction.html#cfn-iot-topicrule-dynamodbaction-payloadfield",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "RangeKeyField": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-dynamodbaction.html#cfn-iot-topicrule-dynamodbaction-rangekeyfield",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "RangeKeyType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-dynamodbaction.html#cfn-iot-topicrule-dynamodbaction-rangekeytype",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "RangeKeyValue": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-dynamodbaction.html#cfn-iot-topicrule-dynamodbaction-rangekeyvalue",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "RoleArn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-dynamodbaction.html#cfn-iot-topicrule-dynamodbaction-rolearn",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "TableName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-dynamodbaction.html#cfn-iot-topicrule-dynamodbaction-tablename",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::IoT1Click::Project.DeviceTemplate": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot1click-project-devicetemplate.html",
+ "Properties": {
+ "DeviceType": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot1click-project-devicetemplate.html#cfn-iot1click-project-devicetemplate-devicetype",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "CallbackOverrides": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot1click-project-devicetemplate.html#cfn-iot1click-project-devicetemplate-callbackoverrides",
+ "PrimitiveType": "Json",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ECS::Service.PlacementConstraint": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-placementconstraint.html",
+ "Properties": {
+ "Expression": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-placementconstraint.html#cfn-ecs-service-placementconstraint-expression",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Type": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-placementconstraint.html#cfn-ecs-service-placementconstraint-type",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::ElasticLoadBalancingV2::TargetGroup.TargetDescription": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-targetgroup-targetdescription.html",
+ "Properties": {
+ "AvailabilityZone": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-targetgroup-targetdescription.html#cfn-elasticloadbalancingv2-targetgroup-targetdescription-availabilityzone",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Id": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-targetgroup-targetdescription.html#cfn-elasticloadbalancingv2-targetgroup-targetdescription-id",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Port": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-targetgroup-targetdescription.html#cfn-elasticloadbalancingv2-targetgroup-targetdescription-port",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CodeDeploy::DeploymentConfig.MinimumHealthyHosts": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentconfig-minimumhealthyhosts.html",
+ "Properties": {
+ "Type": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentconfig-minimumhealthyhosts.html#cfn-codedeploy-deploymentconfig-minimumhealthyhosts-type",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Value": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentconfig-minimumhealthyhosts.html#cfn-codedeploy-deploymentconfig-minimumhealthyhosts-value",
+ "PrimitiveType": "Integer",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::AutoScalingPlans::ScalingPlan.TagFilter": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscalingplans-scalingplan-tagfilter.html",
+ "Properties": {
+ "Values": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscalingplans-scalingplan-tagfilter.html#cfn-autoscalingplans-scalingplan-tagfilter-values",
+ "UpdateType": "Mutable"
+ },
+ "Key": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscalingplans-scalingplan-tagfilter.html#cfn-autoscalingplans-scalingplan-tagfilter-key",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Route53::RecordSetGroup.GeoLocation": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-recordset-geolocation.html",
+ "Properties": {
+ "ContinentCode": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-recordset-geolocation.html#cfn-route53-recordsetgroup-geolocation-continentcode",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "CountryCode": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-recordset-geolocation.html#cfn-route53-recordset-geolocation-countrycode",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "SubdivisionCode": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-recordset-geolocation.html#cfn-route53-recordset-geolocation-subdivisioncode",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EC2::Instance.CreditSpecification": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-creditspecification.html",
+ "Properties": {
+ "CPUCredits": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-creditspecification.html#cfn-ec2-instance-creditspecification-cpucredits",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ApiGateway::RestApi.EndpointConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-restapi-endpointconfiguration.html",
+ "Properties": {
+ "Types": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-restapi-endpointconfiguration.html#cfn-apigateway-restapi-endpointconfiguration-types",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EMR::InstanceGroupConfig.ScalingConstraints": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancegroupconfig-scalingconstraints.html",
+ "Properties": {
+ "MaxCapacity": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancegroupconfig-scalingconstraints.html#cfn-elasticmapreduce-instancegroupconfig-scalingconstraints-maxcapacity",
+ "PrimitiveType": "Integer",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "MinCapacity": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancegroupconfig-scalingconstraints.html#cfn-elasticmapreduce-instancegroupconfig-scalingconstraints-mincapacity",
+ "PrimitiveType": "Integer",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::WAFRegional::SizeConstraintSet.SizeConstraint": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-sizeconstraintset-sizeconstraint.html",
+ "Properties": {
+ "ComparisonOperator": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-sizeconstraintset-sizeconstraint.html#cfn-wafregional-sizeconstraintset-sizeconstraint-comparisonoperator",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Size": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-sizeconstraintset-sizeconstraint.html#cfn-wafregional-sizeconstraintset-sizeconstraint-size",
+ "PrimitiveType": "Integer",
+ "UpdateType": "Mutable"
+ },
+ "TextTransformation": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-sizeconstraintset-sizeconstraint.html#cfn-wafregional-sizeconstraintset-sizeconstraint-texttransformation",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "FieldToMatch": {
+ "Type": "FieldToMatch",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-sizeconstraintset-sizeconstraint.html#cfn-wafregional-sizeconstraintset-sizeconstraint-fieldtomatch",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::OpsWorks::Layer.Recipes": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-layer-recipes.html",
+ "Properties": {
+ "Configure": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-layer-recipes.html#cfn-opsworks-layer-customrecipes-configure",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "Deploy": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-layer-recipes.html#cfn-opsworks-layer-customrecipes-deploy",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "Setup": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-layer-recipes.html#cfn-opsworks-layer-customrecipes-setup",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "Shutdown": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-layer-recipes.html#cfn-opsworks-layer-customrecipes-shutdown",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "Undeploy": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-layer-recipes.html#cfn-opsworks-layer-customrecipes-undeploy",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Glue::Crawler.S3Target": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-crawler-s3target.html",
+ "Properties": {
+ "Path": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-crawler-s3target.html#cfn-glue-crawler-s3target-path",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Exclusions": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-crawler-s3target.html#cfn-glue-crawler-s3target-exclusions",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ECR::Repository.LifecyclePolicy": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecr-repository-lifecyclepolicy.html",
+ "Properties": {
+ "LifecyclePolicyText": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecr-repository-lifecyclepolicy.html#cfn-ecr-repository-lifecyclepolicy-lifecyclepolicytext",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "RegistryId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecr-repository-lifecyclepolicy.html#cfn-ecr-repository-lifecyclepolicy-registryid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ECS::TaskDefinition.Volume": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-volumes.html",
+ "Properties": {
+ "DockerVolumeConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-volumes.html#cfn-ecs-taskdefinition-volume-dockervolumeconfiguration",
+ "Required": false,
+ "Type": "DockerVolumeConfiguration",
+ "UpdateType": "Immutable"
+ },
+ "Host": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-volumes.html#cfn-ecs-taskdefinition-volumes-host",
+ "Required": false,
+ "Type": "HostVolumeProperties",
+ "UpdateType": "Immutable"
+ },
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-volumes.html#cfn-ecs-taskdefinition-volumes-name",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::CloudWatch::Alarm.Dimension": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-dimension.html",
+ "Properties": {
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-dimension.html#cfn-cloudwatch-alarm-dimension-name",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Value": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-dimension.html#cfn-cloudwatch-alarm-dimension-value",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EMR::InstanceGroupConfig.CloudWatchAlarmDefinition": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancegroupconfig-cloudwatchalarmdefinition.html",
+ "Properties": {
+ "ComparisonOperator": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancegroupconfig-cloudwatchalarmdefinition.html#cfn-elasticmapreduce-instancegroupconfig-cloudwatchalarmdefinition-comparisonoperator",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Dimensions": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancegroupconfig-cloudwatchalarmdefinition.html#cfn-elasticmapreduce-instancegroupconfig-cloudwatchalarmdefinition-dimensions",
+ "DuplicatesAllowed": false,
+ "ItemType": "MetricDimension",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "EvaluationPeriods": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancegroupconfig-cloudwatchalarmdefinition.html#cfn-elasticmapreduce-instancegroupconfig-cloudwatchalarmdefinition-evaluationperiods",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "MetricName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancegroupconfig-cloudwatchalarmdefinition.html#cfn-elasticmapreduce-instancegroupconfig-cloudwatchalarmdefinition-metricname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Namespace": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancegroupconfig-cloudwatchalarmdefinition.html#cfn-elasticmapreduce-instancegroupconfig-cloudwatchalarmdefinition-namespace",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Period": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancegroupconfig-cloudwatchalarmdefinition.html#cfn-elasticmapreduce-instancegroupconfig-cloudwatchalarmdefinition-period",
+ "PrimitiveType": "Integer",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Statistic": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancegroupconfig-cloudwatchalarmdefinition.html#cfn-elasticmapreduce-instancegroupconfig-cloudwatchalarmdefinition-statistic",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Threshold": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancegroupconfig-cloudwatchalarmdefinition.html#cfn-elasticmapreduce-instancegroupconfig-cloudwatchalarmdefinition-threshold",
+ "PrimitiveType": "Double",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Unit": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancegroupconfig-cloudwatchalarmdefinition.html#cfn-elasticmapreduce-instancegroupconfig-cloudwatchalarmdefinition-unit",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::S3::Bucket.Transition": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule-transition.html",
+ "Properties": {
+ "StorageClass": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule-transition.html#cfn-s3-bucket-lifecycleconfig-rule-transition-storageclass",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "TransitionDate": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule-transition.html#cfn-s3-bucket-lifecycleconfig-rule-transition-transitiondate",
+ "PrimitiveType": "Timestamp",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "TransitionInDays": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule-transition.html#cfn-s3-bucket-lifecycleconfig-rule-transition-transitionindays",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Route53::HostedZone.QueryLoggingConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-hostedzone-queryloggingconfig.html",
+ "Properties": {
+ "CloudWatchLogsLogGroupArn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-hostedzone-queryloggingconfig.html#cfn-route53-hostedzone-queryloggingconfig-cloudwatchlogsloggrouparn",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EC2::SpotFleet.InstanceIpv6Address": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-instanceipv6address.html",
+ "Properties": {
+ "Ipv6Address": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-instanceipv6address.html#cfn-ec2-spotfleet-instanceipv6address-ipv6address",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EMR::Cluster.EbsConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-ebsconfiguration.html",
+ "Properties": {
+ "EbsBlockDeviceConfigs": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-ebsconfiguration.html#cfn-elasticmapreduce-cluster-ebsconfiguration-ebsblockdeviceconfigs",
+ "DuplicatesAllowed": false,
+ "ItemType": "EbsBlockDeviceConfig",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "EbsOptimized": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-ebsconfiguration.html#cfn-elasticmapreduce-cluster-ebsconfiguration-ebsoptimized",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ServiceDiscovery::Service.HealthCheckCustomConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-servicediscovery-service-healthcheckcustomconfig.html",
+ "Properties": {
+ "FailureThreshold": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-servicediscovery-service-healthcheckcustomconfig.html#cfn-servicediscovery-service-healthcheckcustomconfig-failurethreshold",
+ "PrimitiveType": "Double",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::SSM::Association.S3OutputLocation": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-association-s3outputlocation.html",
+ "Properties": {
+ "OutputS3BucketName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-association-s3outputlocation.html#cfn-ssm-association-s3outputlocation-outputs3bucketname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "OutputS3KeyPrefix": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-association-s3outputlocation.html#cfn-ssm-association-s3outputlocation-outputs3keyprefix",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::S3::Bucket.DataExport": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-dataexport.html",
+ "Properties": {
+ "Destination": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-dataexport.html#cfn-s3-bucket-dataexport-destination",
+ "Required": true,
+ "Type": "Destination",
+ "UpdateType": "Mutable"
+ },
+ "OutputSchemaVersion": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-dataexport.html#cfn-s3-bucket-dataexport-outputschemaversion",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::WAFRegional::WebACL.Action": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-webacl-action.html",
+ "Properties": {
+ "Type": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-webacl-action.html#cfn-wafregional-webacl-action-type",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Lambda::Function.Code": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-code.html",
+ "Properties": {
+ "S3Bucket": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-code.html#cfn-lambda-function-code-s3bucket",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "S3Key": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-code.html#cfn-lambda-function-code-s3key",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "S3ObjectVersion": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-code.html#cfn-lambda-function-code-s3objectversion",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "ZipFile": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-code.html#cfn-lambda-function-code-zipfile",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CloudFront::Distribution.CustomErrorResponse": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-customerrorresponse.html",
+ "Properties": {
+ "ResponseCode": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-customerrorresponse.html#cfn-cloudfront-distribution-customerrorresponse-responsecode",
+ "PrimitiveType": "Integer",
+ "UpdateType": "Mutable"
+ },
+ "ErrorCachingMinTTL": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-customerrorresponse.html#cfn-cloudfront-distribution-customerrorresponse-errorcachingminttl",
+ "PrimitiveType": "Double",
+ "UpdateType": "Mutable"
+ },
+ "ErrorCode": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-customerrorresponse.html#cfn-cloudfront-distribution-customerrorresponse-errorcode",
+ "PrimitiveType": "Integer",
+ "UpdateType": "Mutable"
+ },
+ "ResponsePagePath": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-customerrorresponse.html#cfn-cloudfront-distribution-customerrorresponse-responsepagepath",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::SES::ReceiptRule.LambdaAction": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-lambdaaction.html",
+ "Properties": {
+ "FunctionArn": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-lambdaaction.html#cfn-ses-receiptrule-lambdaaction-functionarn",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "TopicArn": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-lambdaaction.html#cfn-ses-receiptrule-lambdaaction-topicarn",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "InvocationType": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-lambdaaction.html#cfn-ses-receiptrule-lambdaaction-invocationtype",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::KinesisFirehose::DeliveryStream.Processor": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-processor.html",
+ "Properties": {
+ "Parameters": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-processor.html#cfn-kinesisfirehose-deliverystream-processor-parameters",
+ "DuplicatesAllowed": false,
+ "ItemType": "ProcessorParameter",
+ "Required": true,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "Type": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-processor.html#cfn-kinesisfirehose-deliverystream-processor-type",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ECS::TaskDefinition.HealthCheck": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-healthcheck.html",
+ "Properties": {
+ "Command": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-healthcheck.html#cfn-ecs-taskdefinition-healthcheck-command",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": true,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ },
+ "Interval": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-healthcheck.html#cfn-ecs-taskdefinition-healthcheck-interval",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Retries": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-healthcheck.html#cfn-ecs-taskdefinition-healthcheck-retries",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "StartPeriod": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-healthcheck.html#cfn-ecs-taskdefinition-healthcheck-startperiod",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Timeout": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-healthcheck.html#cfn-ecs-taskdefinition-healthcheck-timeout",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::EC2::SpotFleet.TargetGroupsConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-targetgroupsconfig.html",
+ "Properties": {
+ "TargetGroups": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-targetgroupsconfig.html#cfn-ec2-spotfleet-targetgroupsconfig-targetgroups",
+ "DuplicatesAllowed": false,
+ "ItemType": "TargetGroup",
+ "Required": true,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ElasticLoadBalancingV2::LoadBalancer.SubnetMapping": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-loadbalancer-subnetmapping.html",
+ "Properties": {
+ "AllocationId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-loadbalancer-subnetmapping.html#cfn-elasticloadbalancingv2-loadbalancer-subnetmapping-allocationid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "SubnetId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-loadbalancer-subnetmapping.html#cfn-elasticloadbalancingv2-loadbalancer-subnetmapping-subnetid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CodeDeploy::DeploymentGroup.EC2TagFilter": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-ec2tagfilter.html",
+ "Properties": {
+ "Key": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-ec2tagfilter.html#cfn-codedeploy-deploymentgroup-ec2tagfilter-key",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Type": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-ec2tagfilter.html#cfn-codedeploy-deploymentgroup-ec2tagfilter-type",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Value": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-ec2tagfilter.html#cfn-codedeploy-deploymentgroup-ec2tagfilter-value",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::S3::Bucket.CorsConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-cors.html",
+ "Properties": {
+ "CorsRules": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-cors.html#cfn-s3-bucket-cors-corsrule",
+ "DuplicatesAllowed": false,
+ "ItemType": "CorsRule",
+ "Required": true,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::S3::Bucket.ReplicationDestination": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-replicationconfiguration-rules-destination.html",
+ "Properties": {
+ "AccessControlTranslation": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-replicationconfiguration-rules-destination.html#cfn-s3-bucket-replicationdestination-accesscontroltranslation",
+ "Required": false,
+ "Type": "AccessControlTranslation",
+ "UpdateType": "Mutable"
+ },
+ "Account": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-replicationconfiguration-rules-destination.html#cfn-s3-bucket-replicationdestination-account",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Bucket": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-replicationconfiguration-rules-destination.html#cfn-s3-bucket-replicationconfiguration-rules-destination-bucket",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "EncryptionConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-replicationconfiguration-rules-destination.html#cfn-s3-bucket-replicationdestination-encryptionconfiguration",
+ "Required": false,
+ "Type": "EncryptionConfiguration",
+ "UpdateType": "Mutable"
+ },
+ "StorageClass": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-replicationconfiguration-rules-destination.html#cfn-s3-bucket-replicationconfiguration-rules-destination-storageclass",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::SageMaker::NotebookInstanceLifecycleConfig.NotebookInstanceLifecycleHook": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-notebookinstancelifecycleconfig-notebookinstancelifecyclehook.html",
+ "Properties": {
+ "Content": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-notebookinstancelifecycleconfig-notebookinstancelifecyclehook.html#cfn-sagemaker-notebookinstancelifecycleconfig-notebookinstancelifecyclehook-content",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EC2::SecurityGroup.Egress": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-rule.html",
+ "Properties": {
+ "CidrIp": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-rule.html#cfn-ec2-security-group-rule-cidrip",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "CidrIpv6": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-rule.html#cfn-ec2-security-group-rule-cidripv6",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Description": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-rule.html#cfn-ec2-security-group-rule-description",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "DestinationPrefixListId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-rule.html#cfn-ec2-security-group-rule-destinationprefixlistid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "DestinationSecurityGroupId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-rule.html#cfn-ec2-security-group-rule-destsecgroupid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "FromPort": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-rule.html#cfn-ec2-security-group-rule-fromport",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "IpProtocol": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-rule.html#cfn-ec2-security-group-rule-ipprotocol",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "ToPort": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-rule.html#cfn-ec2-security-group-rule-toport",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::KinesisAnalytics::Application.InputParallelism": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-application-inputparallelism.html",
+ "Properties": {
+ "Count": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-application-inputparallelism.html#cfn-kinesisanalytics-application-inputparallelism-count",
+ "PrimitiveType": "Integer",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ServiceCatalog::CloudFormationProvisionedProduct.ProvisioningParameter": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-servicecatalog-cloudformationprovisionedproduct-provisioningparameter.html",
+ "Properties": {
+ "Value": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-servicecatalog-cloudformationprovisionedproduct-provisioningparameter.html#cfn-servicecatalog-cloudformationprovisionedproduct-provisioningparameter-value",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Key": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-servicecatalog-cloudformationprovisionedproduct-provisioningparameter.html#cfn-servicecatalog-cloudformationprovisionedproduct-provisioningparameter-key",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::IoT::TopicRule.KinesisAction": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-kinesisaction.html",
+ "Properties": {
+ "PartitionKey": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-kinesisaction.html#cfn-iot-topicrule-kinesisaction-partitionkey",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "RoleArn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-kinesisaction.html#cfn-iot-topicrule-kinesisaction-rolearn",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "StreamName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-kinesisaction.html#cfn-iot-topicrule-kinesisaction-streamname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ECS::TaskDefinition.PortMapping": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions-portmappings.html",
+ "Properties": {
+ "ContainerPort": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions-portmappings.html#cfn-ecs-taskdefinition-containerdefinition-portmappings-containerport",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "HostPort": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions-portmappings.html#cfn-ecs-taskdefinition-containerdefinition-portmappings-readonly",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Protocol": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions-portmappings.html#cfn-ecs-taskdefinition-containerdefinition-portmappings-sourcevolume",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::WAFRegional::SizeConstraintSet.FieldToMatch": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-sizeconstraintset-fieldtomatch.html",
+ "Properties": {
+ "Type": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-sizeconstraintset-fieldtomatch.html#cfn-wafregional-sizeconstraintset-fieldtomatch-type",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Data": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-sizeconstraintset-fieldtomatch.html#cfn-wafregional-sizeconstraintset-fieldtomatch-data",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::IoT::TopicRule.CloudwatchAlarmAction": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-cloudwatchalarmaction.html",
+ "Properties": {
+ "AlarmName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-cloudwatchalarmaction.html#cfn-iot-topicrule-cloudwatchalarmaction-alarmname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "RoleArn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-cloudwatchalarmaction.html#cfn-iot-topicrule-cloudwatchalarmaction-rolearn",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "StateReason": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-cloudwatchalarmaction.html#cfn-iot-topicrule-cloudwatchalarmaction-statereason",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "StateValue": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-cloudwatchalarmaction.html#cfn-iot-topicrule-cloudwatchalarmaction-statevalue",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ECS::TaskDefinition.Ulimit": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions-ulimit.html",
+ "Properties": {
+ "HardLimit": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions-ulimit.html#cfn-ecs-taskdefinition-containerdefinition-ulimit-hardlimit",
+ "PrimitiveType": "Integer",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions-ulimit.html#cfn-ecs-taskdefinition-containerdefinition-ulimit-name",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "SoftLimit": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions-ulimit.html#cfn-ecs-taskdefinition-containerdefinition-ulimit-softlimit",
+ "PrimitiveType": "Integer",
+ "Required": true,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::DynamoDB::Table.PointInTimeRecoverySpecification": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-pointintimerecoveryspecification.html",
+ "Properties": {
+ "PointInTimeRecoveryEnabled": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-pointintimerecoveryspecification.html#cfn-dynamodb-table-pointintimerecoveryspecification-pointintimerecoveryenabled",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::KinesisAnalytics::Application.InputProcessingConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-application-inputprocessingconfiguration.html",
+ "Properties": {
+ "InputLambdaProcessor": {
+ "Type": "InputLambdaProcessor",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-application-inputprocessingconfiguration.html#cfn-kinesisanalytics-application-inputprocessingconfiguration-inputlambdaprocessor",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Lambda::Function.Environment": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-environment.html",
+ "Properties": {
+ "Variables": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-environment.html#cfn-lambda-function-environment-variables",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "Map",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::OpsWorks::Layer.LifecycleEventConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-layer-lifecycleeventconfiguration.html",
+ "Properties": {
+ "ShutdownEventConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-layer-lifecycleeventconfiguration.html#cfn-opsworks-layer-lifecycleconfiguration-shutdowneventconfiguration",
+ "Required": false,
+ "Type": "ShutdownEventConfiguration",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::OpsWorks::Stack.RdsDbInstance": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-rdsdbinstance.html",
+ "Properties": {
+ "DbPassword": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-rdsdbinstance.html#cfn-opsworks-stack-rdsdbinstance-dbpassword",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "DbUser": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-rdsdbinstance.html#cfn-opsworks-stack-rdsdbinstance-dbuser",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "RdsDbInstanceArn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-rdsdbinstance.html#cfn-opsworks-stack-rdsdbinstance-rdsdbinstancearn",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EC2::SpotFleet.GroupIdentifier": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-securitygroups.html",
+ "Properties": {
+ "GroupId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-securitygroups.html#cfn-ec2-spotfleet-groupidentifier-groupid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Budgets::Budget.CostTypes": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-costtypes.html",
+ "Properties": {
+ "IncludeSupport": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-costtypes.html#cfn-budgets-budget-costtypes-includesupport",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "IncludeOtherSubscription": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-costtypes.html#cfn-budgets-budget-costtypes-includeothersubscription",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "IncludeTax": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-costtypes.html#cfn-budgets-budget-costtypes-includetax",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "IncludeSubscription": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-costtypes.html#cfn-budgets-budget-costtypes-includesubscription",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "UseBlended": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-costtypes.html#cfn-budgets-budget-costtypes-useblended",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "IncludeUpfront": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-costtypes.html#cfn-budgets-budget-costtypes-includeupfront",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "IncludeDiscount": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-costtypes.html#cfn-budgets-budget-costtypes-includediscount",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "IncludeCredit": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-costtypes.html#cfn-budgets-budget-costtypes-includecredit",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "IncludeRecurring": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-costtypes.html#cfn-budgets-budget-costtypes-includerecurring",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "UseAmortized": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-costtypes.html#cfn-budgets-budget-costtypes-useamortized",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "IncludeRefund": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-costtypes.html#cfn-budgets-budget-costtypes-includerefund",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EMR::Cluster.ScalingRule": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-scalingrule.html",
+ "Properties": {
+ "Action": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-scalingrule.html#cfn-elasticmapreduce-cluster-scalingrule-action",
+ "Required": true,
+ "Type": "ScalingAction",
+ "UpdateType": "Mutable"
+ },
+ "Description": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-scalingrule.html#cfn-elasticmapreduce-cluster-scalingrule-description",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-scalingrule.html#cfn-elasticmapreduce-cluster-scalingrule-name",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Trigger": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-scalingrule.html#cfn-elasticmapreduce-cluster-scalingrule-trigger",
+ "Required": true,
+ "Type": "ScalingTrigger",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CloudFront::StreamingDistribution.Logging": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-logging.html",
+ "Properties": {
+ "Bucket": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-logging.html#cfn-cloudfront-streamingdistribution-logging-bucket",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Enabled": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-logging.html#cfn-cloudfront-streamingdistribution-logging-enabled",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "Prefix": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-logging.html#cfn-cloudfront-streamingdistribution-logging-prefix",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::WAF::ByteMatchSet.FieldToMatch": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-bytematchset-bytematchtuples-fieldtomatch.html",
+ "Properties": {
+ "Data": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-bytematchset-bytematchtuples-fieldtomatch.html#cfn-waf-bytematchset-bytematchtuples-fieldtomatch-data",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Type": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-bytematchset-bytematchtuples-fieldtomatch.html#cfn-waf-bytematchset-bytematchtuples-fieldtomatch-type",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::IoT::TopicRule.Action": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-action.html",
+ "Properties": {
+ "CloudwatchAlarm": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-action.html#cfn-iot-topicrule-action-cloudwatchalarm",
+ "Required": false,
+ "Type": "CloudwatchAlarmAction",
+ "UpdateType": "Mutable"
+ },
+ "CloudwatchMetric": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-action.html#cfn-iot-topicrule-action-cloudwatchmetric",
+ "Required": false,
+ "Type": "CloudwatchMetricAction",
+ "UpdateType": "Mutable"
+ },
+ "DynamoDB": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-action.html#cfn-iot-topicrule-action-dynamodb",
+ "Required": false,
+ "Type": "DynamoDBAction",
+ "UpdateType": "Mutable"
+ },
+ "DynamoDBv2": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-action.html#cfn-iot-topicrule-action-dynamodbv2",
+ "Required": false,
+ "Type": "DynamoDBv2Action",
+ "UpdateType": "Mutable"
+ },
+ "Elasticsearch": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-action.html#cfn-iot-topicrule-action-elasticsearch",
+ "Required": false,
+ "Type": "ElasticsearchAction",
+ "UpdateType": "Mutable"
+ },
+ "Firehose": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-action.html#cfn-iot-topicrule-action-firehose",
+ "Required": false,
+ "Type": "FirehoseAction",
+ "UpdateType": "Mutable"
+ },
+ "Kinesis": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-action.html#cfn-iot-topicrule-action-kinesis",
+ "Required": false,
+ "Type": "KinesisAction",
+ "UpdateType": "Mutable"
+ },
+ "Lambda": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-action.html#cfn-iot-topicrule-action-lambda",
+ "Required": false,
+ "Type": "LambdaAction",
+ "UpdateType": "Mutable"
+ },
+ "Republish": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-action.html#cfn-iot-topicrule-action-republish",
+ "Required": false,
+ "Type": "RepublishAction",
+ "UpdateType": "Mutable"
+ },
+ "S3": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-action.html#cfn-iot-topicrule-action-s3",
+ "Required": false,
+ "Type": "S3Action",
+ "UpdateType": "Mutable"
+ },
+ "Sns": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-action.html#cfn-iot-topicrule-action-sns",
+ "Required": false,
+ "Type": "SnsAction",
+ "UpdateType": "Mutable"
+ },
+ "Sqs": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-action.html#cfn-iot-topicrule-action-sqs",
+ "Required": false,
+ "Type": "SqsAction",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Glue::Classifier.JsonClassifier": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-classifier-jsonclassifier.html",
+ "Properties": {
+ "JsonPath": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-classifier-jsonclassifier.html#cfn-glue-classifier-jsonclassifier-jsonpath",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-classifier-jsonclassifier.html#cfn-glue-classifier-jsonclassifier-name",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::S3::Bucket.AccelerateConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-accelerateconfiguration.html",
+ "Properties": {
+ "AccelerationStatus": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-accelerateconfiguration.html#cfn-s3-bucket-accelerateconfiguration-accelerationstatus",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::SES::ConfigurationSetEventDestination.KinesisFirehoseDestination": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-configurationseteventdestination-kinesisfirehosedestination.html",
+ "Properties": {
+ "IAMRoleARN": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-configurationseteventdestination-kinesisfirehosedestination.html#cfn-ses-configurationseteventdestination-kinesisfirehosedestination-iamrolearn",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "DeliveryStreamARN": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-configurationseteventdestination-kinesisfirehosedestination.html#cfn-ses-configurationseteventdestination-kinesisfirehosedestination-deliverystreamarn",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Glue::Trigger.Condition": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-trigger-condition.html",
+ "Properties": {
+ "State": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-trigger-condition.html#cfn-glue-trigger-condition-state",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "LogicalOperator": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-trigger-condition.html#cfn-glue-trigger-condition-logicaloperator",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "JobName": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-trigger-condition.html#cfn-glue-trigger-condition-jobname",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::KinesisFirehose::DeliveryStream.CopyCommand": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-copycommand.html",
+ "Properties": {
+ "CopyOptions": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-copycommand.html#cfn-kinesisfirehose-deliverystream-copycommand-copyoptions",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "DataTableColumns": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-copycommand.html#cfn-kinesisfirehose-deliverystream-copycommand-datatablecolumns",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "DataTableName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-copycommand.html#cfn-kinesisfirehose-deliverystream-copycommand-datatablename",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::DataPipeline::Pipeline.ParameterValue": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datapipeline-pipeline-parametervalues.html",
+ "Properties": {
+ "Id": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datapipeline-pipeline-parametervalues.html#cfn-datapipeline-pipeline-parametervalues-id",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "StringValue": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datapipeline-pipeline-parametervalues.html#cfn-datapipeline-pipeline-parametervalues-stringvalue",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CodeBuild::Project.ProjectTriggers": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projecttriggers.html",
+ "Properties": {
+ "Webhook": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projecttriggers.html#cfn-codebuild-project-projecttriggers-webhook",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::KinesisAnalytics::ApplicationReferenceDataSource.CSVMappingParameters": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationreferencedatasource-csvmappingparameters.html",
+ "Properties": {
+ "RecordRowDelimiter": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationreferencedatasource-csvmappingparameters.html#cfn-kinesisanalytics-applicationreferencedatasource-csvmappingparameters-recordrowdelimiter",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "RecordColumnDelimiter": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationreferencedatasource-csvmappingparameters.html#cfn-kinesisanalytics-applicationreferencedatasource-csvmappingparameters-recordcolumndelimiter",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CloudFront::Distribution.Logging": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-logging.html",
+ "Properties": {
+ "IncludeCookies": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-logging.html#cfn-cloudfront-distribution-logging-includecookies",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "Bucket": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-logging.html#cfn-cloudfront-distribution-logging-bucket",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Prefix": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-logging.html#cfn-cloudfront-distribution-logging-prefix",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CloudFront::Distribution.DistributionConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html",
+ "Properties": {
+ "Logging": {
+ "Type": "Logging",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-logging",
+ "UpdateType": "Mutable"
+ },
+ "Comment": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-comment",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "DefaultRootObject": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-defaultrootobject",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Origins": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-origins",
+ "ItemType": "Origin",
+ "UpdateType": "Mutable"
+ },
+ "ViewerCertificate": {
+ "Type": "ViewerCertificate",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-viewercertificate",
+ "UpdateType": "Mutable"
+ },
+ "PriceClass": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-priceclass",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "DefaultCacheBehavior": {
+ "Type": "DefaultCacheBehavior",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-defaultcachebehavior",
+ "UpdateType": "Mutable"
+ },
+ "CustomErrorResponses": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-customerrorresponses",
+ "ItemType": "CustomErrorResponse",
+ "UpdateType": "Mutable"
+ },
+ "Enabled": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-enabled",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "Aliases": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-aliases",
+ "UpdateType": "Mutable"
+ },
+ "IPV6Enabled": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-ipv6enabled",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "WebACLId": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-webaclid",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "HttpVersion": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-httpversion",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Restrictions": {
+ "Type": "Restrictions",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-restrictions",
+ "UpdateType": "Mutable"
+ },
+ "CacheBehaviors": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-cachebehaviors",
+ "ItemType": "CacheBehavior",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::S3::Bucket.NoncurrentVersionTransition": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule-noncurrentversiontransition.html",
+ "Properties": {
+ "StorageClass": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule-noncurrentversiontransition.html#cfn-s3-bucket-lifecycleconfig-rule-noncurrentversiontransition-storageclass",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "TransitionInDays": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule-noncurrentversiontransition.html#cfn-s3-bucket-lifecycleconfig-rule-noncurrentversiontransition-transitionindays",
+ "PrimitiveType": "Integer",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Cognito::IdentityPoolRoleAttachment.RulesConfigurationType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-identitypoolroleattachment-rulesconfigurationtype.html",
+ "Properties": {
+ "Rules": {
+ "Type": "List",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-identitypoolroleattachment-rulesconfigurationtype.html#cfn-cognito-identitypoolroleattachment-rulesconfigurationtype-rules",
+ "ItemType": "MappingRule",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ECS::TaskDefinition.LinuxParameters": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-linuxparameters.html",
+ "Properties": {
+ "Capabilities": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-linuxparameters.html#cfn-ecs-taskdefinition-linuxparameters-capabilities",
+ "Required": false,
+ "Type": "KernelCapabilities",
+ "UpdateType": "Immutable"
+ },
+ "Devices": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-linuxparameters.html#cfn-ecs-taskdefinition-linuxparameters-devices",
+ "DuplicatesAllowed": false,
+ "ItemType": "Device",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ },
+ "InitProcessEnabled": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-linuxparameters.html#cfn-ecs-taskdefinition-linuxparameters-initprocessenabled",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "SharedMemorySize": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-linuxparameters.html#cfn-ecs-taskdefinition-linuxparameters-sharedmemorysize",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Tmpfs": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-linuxparameters.html#cfn-ecs-taskdefinition-linuxparameters-tmpfs",
+ "DuplicatesAllowed": false,
+ "ItemType": "Tmpfs",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::Glue::Job.ExecutionProperty": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-job-executionproperty.html",
+ "Properties": {
+ "MaxConcurrentRuns": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-job-executionproperty.html#cfn-glue-job-executionproperty-maxconcurrentruns",
+ "PrimitiveType": "Double",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EC2::SpotFleet.LaunchTemplateOverrides": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-launchtemplateoverrides.html",
+ "Properties": {
+ "AvailabilityZone": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-launchtemplateoverrides.html#cfn-ec2-spotfleet-launchtemplateoverrides-availabilityzone",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "InstanceType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-launchtemplateoverrides.html#cfn-ec2-spotfleet-launchtemplateoverrides-instancetype",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "SpotPrice": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-launchtemplateoverrides.html#cfn-ec2-spotfleet-launchtemplateoverrides-spotprice",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "SubnetId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-launchtemplateoverrides.html#cfn-ec2-spotfleet-launchtemplateoverrides-subnetid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "WeightedCapacity": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-launchtemplateoverrides.html#cfn-ec2-spotfleet-launchtemplateoverrides-weightedcapacity",
+ "PrimitiveType": "Double",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::SES::ReceiptRule.S3Action": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-s3action.html",
+ "Properties": {
+ "BucketName": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-s3action.html#cfn-ses-receiptrule-s3action-bucketname",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "KmsKeyArn": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-s3action.html#cfn-ses-receiptrule-s3action-kmskeyarn",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "TopicArn": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-s3action.html#cfn-ses-receiptrule-s3action-topicarn",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "ObjectKeyPrefix": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-s3action.html#cfn-ses-receiptrule-s3action-objectkeyprefix",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::KinesisAnalytics::Application.JSONMappingParameters": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-application-jsonmappingparameters.html",
+ "Properties": {
+ "RecordRowPath": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-application-jsonmappingparameters.html#cfn-kinesisanalytics-application-jsonmappingparameters-recordrowpath",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Elasticsearch::Domain.SnapshotOptions": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticsearch-domain-snapshotoptions.html",
+ "Properties": {
+ "AutomatedSnapshotStartHour": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticsearch-domain-snapshotoptions.html#cfn-elasticsearch-domain-snapshotoptions-automatedsnapshotstarthour",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ApiGateway::Stage.AccessLogSetting": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-stage-accesslogsetting.html",
+ "Properties": {
+ "DestinationArn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-stage-accesslogsetting.html#cfn-apigateway-stage-accesslogsetting-destinationarn",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Format": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-stage-accesslogsetting.html#cfn-apigateway-stage-accesslogsetting-format",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ServiceDiscovery::Service.HealthCheckConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-servicediscovery-service-healthcheckconfig.html",
+ "Properties": {
+ "Type": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-servicediscovery-service-healthcheckconfig.html#cfn-servicediscovery-service-healthcheckconfig-type",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "ResourcePath": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-servicediscovery-service-healthcheckconfig.html#cfn-servicediscovery-service-healthcheckconfig-resourcepath",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "FailureThreshold": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-servicediscovery-service-healthcheckconfig.html#cfn-servicediscovery-service-healthcheckconfig-failurethreshold",
+ "PrimitiveType": "Double",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Cognito::UserPool.DeviceConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-deviceconfiguration.html",
+ "Properties": {
+ "DeviceOnlyRememberedOnUserPrompt": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-deviceconfiguration.html#cfn-cognito-userpool-deviceconfiguration-deviceonlyrememberedonuserprompt",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "ChallengeRequiredOnNewDevice": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-deviceconfiguration.html#cfn-cognito-userpool-deviceconfiguration-challengerequiredonnewdevice",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::OpsWorks::Layer.LoadBasedAutoScaling": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-layer-loadbasedautoscaling.html",
+ "Properties": {
+ "DownScaling": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-layer-loadbasedautoscaling.html#cfn-opsworks-layer-loadbasedautoscaling-downscaling",
+ "Required": false,
+ "Type": "AutoScalingThresholds",
+ "UpdateType": "Mutable"
+ },
+ "Enable": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-layer-loadbasedautoscaling.html#cfn-opsworks-layer-loadbasedautoscaling-enable",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "UpScaling": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-layer-loadbasedautoscaling.html#cfn-opsworks-layer-loadbasedautoscaling-upscaling",
+ "Required": false,
+ "Type": "AutoScalingThresholds",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Kinesis::Stream.StreamEncryption": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesis-stream-streamencryption.html",
+ "Properties": {
+ "EncryptionType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesis-stream-streamencryption.html#cfn-kinesis-stream-streamencryption-encryptiontype",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "KeyId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesis-stream-streamencryption.html#cfn-kinesis-stream-streamencryption-keyid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ApplicationAutoScaling::ScalingPolicy.TargetTrackingScalingPolicyConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalingpolicy-targettrackingscalingpolicyconfiguration.html",
+ "Properties": {
+ "CustomizedMetricSpecification": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalingpolicy-targettrackingscalingpolicyconfiguration.html#cfn-applicationautoscaling-scalingpolicy-targettrackingscalingpolicyconfiguration-customizedmetricspecification",
+ "Required": false,
+ "Type": "CustomizedMetricSpecification",
+ "UpdateType": "Mutable"
+ },
+ "DisableScaleIn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalingpolicy-targettrackingscalingpolicyconfiguration.html#cfn-applicationautoscaling-scalingpolicy-targettrackingscalingpolicyconfiguration-disablescalein",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "PredefinedMetricSpecification": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalingpolicy-targettrackingscalingpolicyconfiguration.html#cfn-applicationautoscaling-scalingpolicy-targettrackingscalingpolicyconfiguration-predefinedmetricspecification",
+ "Required": false,
+ "Type": "PredefinedMetricSpecification",
+ "UpdateType": "Mutable"
+ },
+ "ScaleInCooldown": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalingpolicy-targettrackingscalingpolicyconfiguration.html#cfn-applicationautoscaling-scalingpolicy-targettrackingscalingpolicyconfiguration-scaleincooldown",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "ScaleOutCooldown": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalingpolicy-targettrackingscalingpolicyconfiguration.html#cfn-applicationautoscaling-scalingpolicy-targettrackingscalingpolicyconfiguration-scaleoutcooldown",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "TargetValue": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalingpolicy-targettrackingscalingpolicyconfiguration.html#cfn-applicationautoscaling-scalingpolicy-targettrackingscalingpolicyconfiguration-targetvalue",
+ "PrimitiveType": "Double",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Batch::JobDefinition.Ulimit": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-ulimit.html",
+ "Properties": {
+ "SoftLimit": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-ulimit.html#cfn-batch-jobdefinition-ulimit-softlimit",
+ "PrimitiveType": "Integer",
+ "UpdateType": "Mutable"
+ },
+ "HardLimit": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-ulimit.html#cfn-batch-jobdefinition-ulimit-hardlimit",
+ "PrimitiveType": "Integer",
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-ulimit.html#cfn-batch-jobdefinition-ulimit-name",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::KinesisFirehose::DeliveryStream.S3DestinationConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-s3destinationconfiguration.html",
+ "Properties": {
+ "BucketARN": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-s3destinationconfiguration.html#cfn-kinesisfirehose-deliverystream-s3destinationconfiguration-bucketarn",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "BufferingHints": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-s3destinationconfiguration.html#cfn-kinesisfirehose-deliverystream-s3destinationconfiguration-bufferinghints",
+ "Required": true,
+ "Type": "BufferingHints",
+ "UpdateType": "Mutable"
+ },
+ "CloudWatchLoggingOptions": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-s3destinationconfiguration.html#cfn-kinesisfirehose-deliverystream-s3destinationconfiguration-cloudwatchloggingoptions",
+ "Required": false,
+ "Type": "CloudWatchLoggingOptions",
+ "UpdateType": "Mutable"
+ },
+ "CompressionFormat": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-s3destinationconfiguration.html#cfn-kinesisfirehose-deliverystream-s3destinationconfiguration-compressionformat",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "EncryptionConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-s3destinationconfiguration.html#cfn-kinesisfirehose-deliverystream-s3destinationconfiguration-encryptionconfiguration",
+ "Required": false,
+ "Type": "EncryptionConfiguration",
+ "UpdateType": "Mutable"
+ },
+ "Prefix": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-s3destinationconfiguration.html#cfn-kinesisfirehose-deliverystream-s3destinationconfiguration-prefix",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "RoleARN": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-s3destinationconfiguration.html#cfn-kinesisfirehose-deliverystream-s3destinationconfiguration-rolearn",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::SES::ConfigurationSetEventDestination.DimensionConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-configurationseteventdestination-dimensionconfiguration.html",
+ "Properties": {
+ "DimensionValueSource": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-configurationseteventdestination-dimensionconfiguration.html#cfn-ses-configurationseteventdestination-dimensionconfiguration-dimensionvaluesource",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "DefaultDimensionValue": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-configurationseteventdestination-dimensionconfiguration.html#cfn-ses-configurationseteventdestination-dimensionconfiguration-defaultdimensionvalue",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "DimensionName": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-configurationseteventdestination-dimensionconfiguration.html#cfn-ses-configurationseteventdestination-dimensionconfiguration-dimensionname",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Batch::JobDefinition.VolumesHost": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-volumeshost.html",
+ "Properties": {
+ "SourcePath": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-volumeshost.html#cfn-batch-jobdefinition-volumeshost-sourcepath",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CloudFront::StreamingDistribution.StreamingDistributionConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-streamingdistributionconfig.html",
+ "Properties": {
+ "Logging": {
+ "Type": "Logging",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-streamingdistributionconfig.html#cfn-cloudfront-streamingdistribution-streamingdistributionconfig-logging",
+ "UpdateType": "Mutable"
+ },
+ "Comment": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-streamingdistributionconfig.html#cfn-cloudfront-streamingdistribution-streamingdistributionconfig-comment",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "PriceClass": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-streamingdistributionconfig.html#cfn-cloudfront-streamingdistribution-streamingdistributionconfig-priceclass",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "S3Origin": {
+ "Type": "S3Origin",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-streamingdistributionconfig.html#cfn-cloudfront-streamingdistribution-streamingdistributionconfig-s3origin",
+ "UpdateType": "Mutable"
+ },
+ "Enabled": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-streamingdistributionconfig.html#cfn-cloudfront-streamingdistribution-streamingdistributionconfig-enabled",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "Aliases": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-streamingdistributionconfig.html#cfn-cloudfront-streamingdistribution-streamingdistributionconfig-aliases",
+ "UpdateType": "Mutable"
+ },
+ "TrustedSigners": {
+ "Type": "TrustedSigners",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-streamingdistributionconfig.html#cfn-cloudfront-streamingdistribution-streamingdistributionconfig-trustedsigners",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Glue::Trigger.Predicate": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-trigger-predicate.html",
+ "Properties": {
+ "Logical": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-trigger-predicate.html#cfn-glue-trigger-predicate-logical",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Conditions": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-trigger-predicate.html#cfn-glue-trigger-predicate-conditions",
+ "ItemType": "Condition",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EMR::Cluster.InstanceTypeConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-instancetypeconfig.html",
+ "Properties": {
+ "BidPrice": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-instancetypeconfig.html#cfn-elasticmapreduce-cluster-instancetypeconfig-bidprice",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "BidPriceAsPercentageOfOnDemandPrice": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-instancetypeconfig.html#cfn-elasticmapreduce-cluster-instancetypeconfig-bidpriceaspercentageofondemandprice",
+ "PrimitiveType": "Double",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Configurations": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-instancetypeconfig.html#cfn-elasticmapreduce-cluster-instancetypeconfig-configurations",
+ "DuplicatesAllowed": false,
+ "ItemType": "Configuration",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ },
+ "EbsConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-instancetypeconfig.html#cfn-elasticmapreduce-cluster-instancetypeconfig-ebsconfiguration",
+ "Required": false,
+ "Type": "EbsConfiguration",
+ "UpdateType": "Immutable"
+ },
+ "InstanceType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-instancetypeconfig.html#cfn-elasticmapreduce-cluster-instancetypeconfig-instancetype",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "WeightedCapacity": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-instancetypeconfig.html#cfn-elasticmapreduce-cluster-instancetypeconfig-weightedcapacity",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::IAM::Group.Policy": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-policy.html",
+ "Properties": {
+ "PolicyDocument": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-policy.html#cfn-iam-policies-policydocument",
+ "PrimitiveType": "Json",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "PolicyName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-policy.html#cfn-iam-policies-policyname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::SageMaker::Model.ContainerDefinition": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-model-containerdefinition.html",
+ "Properties": {
+ "ContainerHostname": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-model-containerdefinition.html#cfn-sagemaker-model-containerdefinition-containerhostname",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "Environment": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-model-containerdefinition.html#cfn-sagemaker-model-containerdefinition-environment",
+ "PrimitiveType": "Json",
+ "UpdateType": "Immutable"
+ },
+ "ModelDataUrl": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-model-containerdefinition.html#cfn-sagemaker-model-containerdefinition-modeldataurl",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "Image": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-model-containerdefinition.html#cfn-sagemaker-model-containerdefinition-image",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::Glue::Table.Order": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-order.html",
+ "Properties": {
+ "Column": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-order.html#cfn-glue-table-order-column",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "SortOrder": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-order.html#cfn-glue-table-order-sortorder",
+ "PrimitiveType": "Integer",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EC2::LaunchTemplate.Ebs": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-blockdevicemapping-ebs.html",
+ "Properties": {
+ "SnapshotId": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-blockdevicemapping-ebs.html#cfn-ec2-launchtemplate-blockdevicemapping-ebs-snapshotid",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "VolumeType": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-blockdevicemapping-ebs.html#cfn-ec2-launchtemplate-blockdevicemapping-ebs-volumetype",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "KmsKeyId": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-blockdevicemapping-ebs.html#cfn-ec2-launchtemplate-blockdevicemapping-ebs-kmskeyid",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Encrypted": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-blockdevicemapping-ebs.html#cfn-ec2-launchtemplate-blockdevicemapping-ebs-encrypted",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "Iops": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-blockdevicemapping-ebs.html#cfn-ec2-launchtemplate-blockdevicemapping-ebs-iops",
+ "PrimitiveType": "Integer",
+ "UpdateType": "Mutable"
+ },
+ "VolumeSize": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-blockdevicemapping-ebs.html#cfn-ec2-launchtemplate-blockdevicemapping-ebs-volumesize",
+ "PrimitiveType": "Integer",
+ "UpdateType": "Mutable"
+ },
+ "DeleteOnTermination": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-blockdevicemapping-ebs.html#cfn-ec2-launchtemplate-blockdevicemapping-ebs-deleteontermination",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Batch::JobQueue.ComputeEnvironmentOrder": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobqueue-computeenvironmentorder.html",
+ "Properties": {
+ "ComputeEnvironment": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobqueue-computeenvironmentorder.html#cfn-batch-jobqueue-computeenvironmentorder-computeenvironment",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Order": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobqueue-computeenvironmentorder.html#cfn-batch-jobqueue-computeenvironmentorder-order",
+ "PrimitiveType": "Integer",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::KinesisFirehose::DeliveryStream.ElasticsearchRetryOptions": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-elasticsearchretryoptions.html",
+ "Properties": {
+ "DurationInSeconds": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-elasticsearchretryoptions.html#cfn-kinesisfirehose-deliverystream-elasticsearchretryoptions-durationinseconds",
+ "PrimitiveType": "Integer",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Route53::HealthCheck.HealthCheckTag": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-healthcheck-healthchecktag.html",
+ "Properties": {
+ "Key": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-healthcheck-healthchecktag.html#cfn-route53-healthchecktags-key",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Value": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-healthcheck-healthchecktag.html#cfn-route53-healthchecktags-value",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CodeBuild::Project.EnvironmentVariable": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-environmentvariable.html",
+ "Properties": {
+ "Type": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-environmentvariable.html#cfn-codebuild-project-environmentvariable-type",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Value": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-environmentvariable.html#cfn-codebuild-project-environmentvariable-value",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-environmentvariable.html#cfn-codebuild-project-environmentvariable-name",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::SSM::MaintenanceWindowTask.MaintenanceWindowStepFunctionsParameters": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-maintenancewindowtask-maintenancewindowstepfunctionsparameters.html",
+ "Properties": {
+ "Input": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-maintenancewindowtask-maintenancewindowstepfunctionsparameters.html#cfn-ssm-maintenancewindowtask-maintenancewindowstepfunctionsparameters-input",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-maintenancewindowtask-maintenancewindowstepfunctionsparameters.html#cfn-ssm-maintenancewindowtask-maintenancewindowstepfunctionsparameters-name",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::IoT1Click::Project.PlacementTemplate": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot1click-project-placementtemplate.html",
+ "Properties": {
+ "DeviceTemplates": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot1click-project-placementtemplate.html#cfn-iot1click-project-placementtemplate-devicetemplates",
+ "PrimitiveType": "Json",
+ "UpdateType": "Immutable"
+ },
+ "DefaultAttributes": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot1click-project-placementtemplate.html#cfn-iot1click-project-placementtemplate-defaultattributes",
+ "PrimitiveType": "Json",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::DynamoDB::Table.SSESpecification": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-ssespecification.html",
+ "Properties": {
+ "SSEEnabled": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-ssespecification.html#cfn-dynamodb-table-ssespecification-sseenabled",
+ "PrimitiveType": "Boolean",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Route53::RecordSetGroup.AliasTarget": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-aliastarget.html",
+ "Properties": {
+ "DNSName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-aliastarget.html#cfn-route53-aliastarget-dnshostname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "EvaluateTargetHealth": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-aliastarget.html#cfn-route53-aliastarget-evaluatetargethealth",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "HostedZoneId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-aliastarget.html#cfn-route53-aliastarget-hostedzoneid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Lambda::Alias.AliasRoutingConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-alias-aliasroutingconfiguration.html",
+ "Properties": {
+ "AdditionalVersionWeights": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-alias-aliasroutingconfiguration.html#cfn-lambda-alias-aliasroutingconfiguration-additionalversionweights",
+ "DuplicatesAllowed": false,
+ "ItemType": "VersionWeight",
+ "Required": true,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Cognito::UserPool.InviteMessageTemplate": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-invitemessagetemplate.html",
+ "Properties": {
+ "EmailMessage": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-invitemessagetemplate.html#cfn-cognito-userpool-invitemessagetemplate-emailmessage",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "SMSMessage": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-invitemessagetemplate.html#cfn-cognito-userpool-invitemessagetemplate-smsmessage",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "EmailSubject": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-invitemessagetemplate.html#cfn-cognito-userpool-invitemessagetemplate-emailsubject",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::S3::Bucket.AbortIncompleteMultipartUpload": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-abortincompletemultipartupload.html",
+ "Properties": {
+ "DaysAfterInitiation": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-abortincompletemultipartupload.html#cfn-s3-bucket-abortincompletemultipartupload-daysafterinitiation",
+ "PrimitiveType": "Integer",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EMR::Cluster.MetricDimension": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-metricdimension.html",
+ "Properties": {
+ "Key": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-metricdimension.html#cfn-elasticmapreduce-cluster-metricdimension-key",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Value": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-metricdimension.html#cfn-elasticmapreduce-cluster-metricdimension-value",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ElasticBeanstalk::Application.MaxCountRule": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticbeanstalk-application-maxcountrule.html",
+ "Properties": {
+ "DeleteSourceFromS3": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticbeanstalk-application-maxcountrule.html#cfn-elasticbeanstalk-application-maxcountrule-deletesourcefroms3",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Enabled": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticbeanstalk-application-maxcountrule.html#cfn-elasticbeanstalk-application-maxcountrule-enabled",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "MaxCount": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticbeanstalk-application-maxcountrule.html#cfn-elasticbeanstalk-application-maxcountrule-maxcount",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::KinesisAnalytics::ApplicationReferenceDataSource.ReferenceSchema": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationreferencedatasource-referenceschema.html",
+ "Properties": {
+ "RecordEncoding": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationreferencedatasource-referenceschema.html#cfn-kinesisanalytics-applicationreferencedatasource-referenceschema-recordencoding",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "RecordColumns": {
+ "Type": "List",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationreferencedatasource-referenceschema.html#cfn-kinesisanalytics-applicationreferencedatasource-referenceschema-recordcolumns",
+ "ItemType": "RecordColumn",
+ "UpdateType": "Mutable"
+ },
+ "RecordFormat": {
+ "Type": "RecordFormat",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationreferencedatasource-referenceschema.html#cfn-kinesisanalytics-applicationreferencedatasource-referenceschema-recordformat",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CodePipeline::Pipeline.ActionTypeId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stages-actions-actiontypeid.html",
+ "Properties": {
+ "Category": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stages-actions-actiontypeid.html#cfn-codepipeline-pipeline-stages-actions-actiontypeid-category",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Owner": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stages-actions-actiontypeid.html#cfn-codepipeline-pipeline-stages-actions-actiontypeid-owner",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Provider": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stages-actions-actiontypeid.html#cfn-codepipeline-pipeline-stages-actions-actiontypeid-provider",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Version": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stages-actions-actiontypeid.html#cfn-codepipeline-pipeline-stages-actions-actiontypeid-version",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::S3::Bucket.FilterRule": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-notificationconfiguration-config-filter-s3key-rules.html",
+ "Properties": {
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-notificationconfiguration-config-filter-s3key-rules.html#cfn-s3-bucket-notificationconfiguraiton-config-filter-s3key-rules-name",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Value": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-notificationconfiguration-config-filter-s3key-rules.html#cfn-s3-bucket-notificationconfiguraiton-config-filter-s3key-rules-value",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::AutoScaling::AutoScalingGroup.TagProperty": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-tags.html",
+ "Properties": {
+ "Key": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-tags.html#cfn-as-tags-Key",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "PropagateAtLaunch": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-tags.html#cfn-as-tags-PropagateAtLaunch",
+ "PrimitiveType": "Boolean",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Value": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-tags.html#cfn-as-tags-Value",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CodePipeline::Pipeline.OutputArtifact": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stages-actions-outputartifacts.html",
+ "Properties": {
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stages-actions-outputartifacts.html#cfn-codepipeline-pipeline-stages-actions-outputartifacts-name",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Route53::HostedZone.VPC": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-route53-hostedzone-hostedzonevpcs.html",
+ "Properties": {
+ "VPCId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-route53-hostedzone-hostedzonevpcs.html#cfn-route53-hostedzone-hostedzonevpcs-vpcid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "VPCRegion": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-route53-hostedzone-hostedzonevpcs.html#cfn-route53-hostedzone-hostedzonevpcs-vpcregion",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "Tag": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html",
+ "Properties": {
+ "Key": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html#cfn-resource-tags-key",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Value": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html#cfn-resource-tags-value",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Glue::Partition.Column": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-partition-column.html",
+ "Properties": {
+ "Comment": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-partition-column.html#cfn-glue-partition-column-comment",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Type": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-partition-column.html#cfn-glue-partition-column-type",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-partition-column.html#cfn-glue-partition-column-name",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ECS::Service.AwsVpcConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-awsvpcconfiguration.html",
+ "Properties": {
+ "AssignPublicIp": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-awsvpcconfiguration.html#cfn-ecs-service-awsvpcconfiguration-assignpublicip",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "SecurityGroups": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-awsvpcconfiguration.html#cfn-ecs-service-awsvpcconfiguration-securitygroups",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "Subnets": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-awsvpcconfiguration.html#cfn-ecs-service-awsvpcconfiguration-subnets",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": true,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::IoT::Thing.AttributePayload": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-thing-attributepayload.html",
+ "Properties": {
+ "Attributes": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-thing-attributepayload.html#cfn-iot-thing-attributepayload-attributes",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "Map",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Cognito::IdentityPoolRoleAttachment.RoleMapping": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-identitypoolroleattachment-rolemapping.html",
+ "Properties": {
+ "Type": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-identitypoolroleattachment-rolemapping.html#cfn-cognito-identitypoolroleattachment-rolemapping-type",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "AmbiguousRoleResolution": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-identitypoolroleattachment-rolemapping.html#cfn-cognito-identitypoolroleattachment-rolemapping-ambiguousroleresolution",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "RulesConfiguration": {
+ "Type": "RulesConfigurationType",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-identitypoolroleattachment-rolemapping.html#cfn-cognito-identitypoolroleattachment-rolemapping-rulesconfiguration",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Events::Rule.EcsParameters": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-rule-ecsparameters.html",
+ "Properties": {
+ "TaskCount": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-rule-ecsparameters.html#cfn-events-rule-ecsparameters-taskcount",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "TaskDefinitionArn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-rule-ecsparameters.html#cfn-events-rule-ecsparameters-taskdefinitionarn",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CodeBuild::Project.S3LogsConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-s3logsconfig.html",
+ "Properties": {
+ "Status": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-s3logsconfig.html#cfn-codebuild-project-s3logsconfig-status",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Location": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-s3logsconfig.html#cfn-codebuild-project-s3logsconfig-location",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Budgets::Budget.TimePeriod": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-timeperiod.html",
+ "Properties": {
+ "Start": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-timeperiod.html#cfn-budgets-budget-timeperiod-start",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "End": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-timeperiod.html#cfn-budgets-budget-timeperiod-end",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CodeDeploy::DeploymentGroup.OnPremisesTagSet": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-onpremisestagset.html",
+ "Properties": {
+ "OnPremisesTagSetList": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-onpremisestagset.html#cfn-codedeploy-deploymentgroup-onpremisestagset-onpremisestagsetlist",
+ "DuplicatesAllowed": false,
+ "ItemType": "OnPremisesTagSetListObject",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Route53::HealthCheck.AlarmIdentifier": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-healthcheck-alarmidentifier.html",
+ "Properties": {
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-healthcheck-alarmidentifier.html#cfn-route53-healthcheck-alarmidentifier-name",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Region": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-healthcheck-alarmidentifier.html#cfn-route53-healthcheck-alarmidentifier-region",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ApiGateway::UsagePlan.QuotaSettings": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-usageplan-quotasettings.html",
+ "Properties": {
+ "Limit": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-usageplan-quotasettings.html#cfn-apigateway-usageplan-quotasettings-limit",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Offset": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-usageplan-quotasettings.html#cfn-apigateway-usageplan-quotasettings-offset",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Period": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-usageplan-quotasettings.html#cfn-apigateway-usageplan-quotasettings-period",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EC2::Instance.BlockDeviceMapping": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-blockdev-mapping.html",
+ "Properties": {
+ "DeviceName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-blockdev-mapping.html#cfn-ec2-blockdev-mapping-devicename",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Ebs": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-blockdev-mapping.html#cfn-ec2-blockdev-mapping-ebs",
+ "Required": false,
+ "Type": "Ebs",
+ "UpdateType": "Mutable"
+ },
+ "NoDevice": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-blockdev-mapping.html#cfn-ec2-blockdev-mapping-nodevice",
+ "Required": false,
+ "Type": "NoDevice",
+ "UpdateType": "Mutable"
+ },
+ "VirtualName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-blockdev-mapping.html#cfn-ec2-blockdev-mapping-virtualname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::DataPipeline::Pipeline.Field": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datapipeline-pipeline-pipelineobjects-fields.html",
+ "Properties": {
+ "Key": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datapipeline-pipeline-pipelineobjects-fields.html#cfn-datapipeline-pipeline-pipelineobjects-fields-key",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "RefValue": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datapipeline-pipeline-pipelineobjects-fields.html#cfn-datapipeline-pipeline-pipelineobjects-fields-refvalue",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "StringValue": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datapipeline-pipeline-pipelineobjects-fields.html#cfn-datapipeline-pipeline-pipelineobjects-fields-stringvalue",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CloudFront::Distribution.OriginCustomHeader": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origincustomheader.html",
+ "Properties": {
+ "HeaderValue": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origincustomheader.html#cfn-cloudfront-distribution-origincustomheader-headervalue",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "HeaderName": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origincustomheader.html#cfn-cloudfront-distribution-origincustomheader-headername",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::AppSync::GraphQLApi.UserPoolConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-graphqlapi-userpoolconfig.html",
+ "Properties": {
+ "AppIdClientRegex": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-graphqlapi-userpoolconfig.html#cfn-appsync-graphqlapi-userpoolconfig-appidclientregex",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "UserPoolId": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-graphqlapi-userpoolconfig.html#cfn-appsync-graphqlapi-userpoolconfig-userpoolid",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "AwsRegion": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-graphqlapi-userpoolconfig.html#cfn-appsync-graphqlapi-userpoolconfig-awsregion",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "DefaultAction": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-graphqlapi-userpoolconfig.html#cfn-appsync-graphqlapi-userpoolconfig-defaultaction",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::KinesisFirehose::DeliveryStream.KMSEncryptionConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-kmsencryptionconfig.html",
+ "Properties": {
+ "AWSKMSKeyARN": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-kmsencryptionconfig.html#cfn-kinesisfirehose-deliverystream-kmsencryptionconfig-awskmskeyarn",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::GameLift::Build.S3Location": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-build-storagelocation.html",
+ "Properties": {
+ "Bucket": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-build-storagelocation.html#cfn-gamelift-build-storage-bucket",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "Key": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-build-storagelocation.html#cfn-gamelift-build-storage-key",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "RoleArn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-build-storagelocation.html#cfn-gamelift-build-storage-rolearn",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::KinesisAnalytics::ApplicationReferenceDataSource.ReferenceDataSource": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationreferencedatasource-referencedatasource.html",
+ "Properties": {
+ "ReferenceSchema": {
+ "Type": "ReferenceSchema",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationreferencedatasource-referencedatasource.html#cfn-kinesisanalytics-applicationreferencedatasource-referencedatasource-referenceschema",
+ "UpdateType": "Mutable"
+ },
+ "TableName": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationreferencedatasource-referencedatasource.html#cfn-kinesisanalytics-applicationreferencedatasource-referencedatasource-tablename",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "S3ReferenceDataSource": {
+ "Type": "S3ReferenceDataSource",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationreferencedatasource-referencedatasource.html#cfn-kinesisanalytics-applicationreferencedatasource-referencedatasource-s3referencedatasource",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EKS::Cluster.ResourcesVpcConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-eks-cluster-resourcesvpcconfig.html",
+ "Properties": {
+ "SecurityGroupIds": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-eks-cluster-resourcesvpcconfig.html#cfn-eks-cluster-resourcesvpcconfig-securitygroupids",
+ "UpdateType": "Mutable"
+ },
+ "SubnetIds": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-eks-cluster-resourcesvpcconfig.html#cfn-eks-cluster-resourcesvpcconfig-subnetids",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EMR::Cluster.VolumeSpecification": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-volumespecification.html",
+ "Properties": {
+ "Iops": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-volumespecification.html#cfn-elasticmapreduce-cluster-volumespecification-iops",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "SizeInGB": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-volumespecification.html#cfn-elasticmapreduce-cluster-volumespecification-sizeingb",
+ "PrimitiveType": "Integer",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "VolumeType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-volumespecification.html#cfn-elasticmapreduce-cluster-volumespecification-volumetype",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CodePipeline::CustomActionType.ConfigurationProperties": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-customactiontype-configurationproperties.html",
+ "Properties": {
+ "Description": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-customactiontype-configurationproperties.html#cfn-codepipeline-customactiontype-configurationproperties-description",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Key": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-customactiontype-configurationproperties.html#cfn-codepipeline-customactiontype-configurationproperties-key",
+ "PrimitiveType": "Boolean",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-customactiontype-configurationproperties.html#cfn-codepipeline-customactiontype-configurationproperties-name",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Queryable": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-customactiontype-configurationproperties.html#cfn-codepipeline-customactiontype-configurationproperties-queryable",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Required": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-customactiontype-configurationproperties.html#cfn-codepipeline-customactiontype-configurationproperties-required",
+ "PrimitiveType": "Boolean",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Secret": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-customactiontype-configurationproperties.html#cfn-codepipeline-customactiontype-configurationproperties-secret",
+ "PrimitiveType": "Boolean",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Type": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-customactiontype-configurationproperties.html#cfn-codepipeline-customactiontype-configurationproperties-type",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::IoT::TopicRule.CloudwatchMetricAction": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-cloudwatchmetricaction.html",
+ "Properties": {
+ "MetricName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-cloudwatchmetricaction.html#cfn-iot-topicrule-cloudwatchmetricaction-metricname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "MetricNamespace": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-cloudwatchmetricaction.html#cfn-iot-topicrule-cloudwatchmetricaction-metricnamespace",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "MetricTimestamp": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-cloudwatchmetricaction.html#cfn-iot-topicrule-cloudwatchmetricaction-metrictimestamp",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "MetricUnit": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-cloudwatchmetricaction.html#cfn-iot-topicrule-cloudwatchmetricaction-metricunit",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "MetricValue": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-cloudwatchmetricaction.html#cfn-iot-topicrule-cloudwatchmetricaction-metricvalue",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "RoleArn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-cloudwatchmetricaction.html#cfn-iot-topicrule-cloudwatchmetricaction-rolearn",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EC2::SpotFleet.SpotFleetMonitoring": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-monitoring.html",
+ "Properties": {
+ "Enabled": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-monitoring.html#cfn-ec2-spotfleet-spotfleetmonitoring-enabled",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EC2::SpotFleet.BlockDeviceMapping": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-blockdevicemappings.html",
+ "Properties": {
+ "DeviceName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-blockdevicemappings.html#cfn-ec2-spotfleet-blockdevicemapping-devicename",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Ebs": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-blockdevicemappings.html#cfn-ec2-spotfleet-blockdevicemapping-ebs",
+ "Required": false,
+ "Type": "EbsBlockDevice",
+ "UpdateType": "Mutable"
+ },
+ "NoDevice": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-blockdevicemappings.html#cfn-ec2-spotfleet-blockdevicemapping-nodevice",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "VirtualName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-blockdevicemappings.html#cfn-ec2-spotfleet-blockdevicemapping-virtualname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::KinesisAnalytics::Application.InputLambdaProcessor": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-application-inputlambdaprocessor.html",
+ "Properties": {
+ "ResourceARN": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-application-inputlambdaprocessor.html#cfn-kinesisanalytics-application-inputlambdaprocessor-resourcearn",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "RoleARN": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-application-inputlambdaprocessor.html#cfn-kinesisanalytics-application-inputlambdaprocessor-rolearn",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::WAFRegional::SqlInjectionMatchSet.FieldToMatch": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-sqlinjectionmatchset-fieldtomatch.html",
+ "Properties": {
+ "Type": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-sqlinjectionmatchset-fieldtomatch.html#cfn-wafregional-sqlinjectionmatchset-fieldtomatch-type",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Data": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-sqlinjectionmatchset-fieldtomatch.html#cfn-wafregional-sqlinjectionmatchset-fieldtomatch-data",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::KinesisAnalytics::ApplicationOutput.LambdaOutput": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationoutput-lambdaoutput.html",
+ "Properties": {
+ "ResourceARN": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationoutput-lambdaoutput.html#cfn-kinesisanalytics-applicationoutput-lambdaoutput-resourcearn",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "RoleARN": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationoutput-lambdaoutput.html#cfn-kinesisanalytics-applicationoutput-lambdaoutput-rolearn",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::SES::ReceiptRule.AddHeaderAction": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-addheaderaction.html",
+ "Properties": {
+ "HeaderValue": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-addheaderaction.html#cfn-ses-receiptrule-addheaderaction-headervalue",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "HeaderName": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-addheaderaction.html#cfn-ses-receiptrule-addheaderaction-headername",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CodePipeline::Pipeline.EncryptionKey": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-artifactstore-encryptionkey.html",
+ "Properties": {
+ "Id": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-artifactstore-encryptionkey.html#cfn-codepipeline-pipeline-artifactstore-encryptionkey-id",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Type": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-artifactstore-encryptionkey.html#cfn-codepipeline-pipeline-artifactstore-encryptionkey-type",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::AppSync::DataSource.DynamoDBConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-datasource-dynamodbconfig.html",
+ "Properties": {
+ "TableName": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-datasource-dynamodbconfig.html#cfn-appsync-datasource-dynamodbconfig-tablename",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "AwsRegion": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-datasource-dynamodbconfig.html#cfn-appsync-datasource-dynamodbconfig-awsregion",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "UseCallerCredentials": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-datasource-dynamodbconfig.html#cfn-appsync-datasource-dynamodbconfig-usecallercredentials",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CodeDeploy::DeploymentGroup.AutoRollbackConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-autorollbackconfiguration.html",
+ "Properties": {
+ "Enabled": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-autorollbackconfiguration.html#cfn-codedeploy-deploymentgroup-autorollbackconfiguration-enabled",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Events": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-autorollbackconfiguration.html#cfn-codedeploy-deploymentgroup-autorollbackconfiguration-events",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EMR::InstanceGroupConfig.VolumeSpecification": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-ebsconfiguration-ebsblockdeviceconfig-volumespecification.html",
+ "Properties": {
+ "Iops": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-ebsconfiguration-ebsblockdeviceconfig-volumespecification.html#cfn-emr-ebsconfiguration-ebsblockdeviceconfig-volumespecification-iops",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "SizeInGB": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-ebsconfiguration-ebsblockdeviceconfig-volumespecification.html#cfn-emr-ebsconfiguration-ebsblockdeviceconfig-volumespecification-sizeingb",
+ "PrimitiveType": "Integer",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "VolumeType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-ebsconfiguration-ebsblockdeviceconfig-volumespecification.html#cfn-emr-ebsconfiguration-ebsblockdeviceconfig-volumespecification-volumetype",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EMR::InstanceFleetConfig.InstanceFleetProvisioningSpecifications": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancefleetconfig-instancefleetprovisioningspecifications.html",
+ "Properties": {
+ "SpotSpecification": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancefleetconfig-instancefleetprovisioningspecifications.html#cfn-elasticmapreduce-instancefleetconfig-instancefleetprovisioningspecifications-spotspecification",
+ "Required": true,
+ "Type": "SpotProvisioningSpecification",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ElasticLoadBalancing::LoadBalancer.Policies": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-policy.html",
+ "Properties": {
+ "Attributes": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-policy.html#cfn-ec2-elb-policy-attributes",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "Json",
+ "Required": true,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "InstancePorts": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-policy.html#cfn-ec2-elb-policy-instanceports",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "LoadBalancerPorts": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-policy.html#cfn-ec2-elb-policy-loadbalancerports",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "PolicyName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-policy.html#cfn-ec2-elb-policy-policyname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "PolicyType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-policy.html#cfn-ec2-elb-policy-policytype",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::OpsWorks::Stack.ElasticIp": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-elasticip.html",
+ "Properties": {
+ "Ip": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-elasticip.html#cfn-opsworks-stack-elasticip-ip",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-elasticip.html#cfn-opsworks-stack-elasticip-name",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::RDS::OptionGroup.OptionSetting": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-optiongroup-optionconfigurations-optionsettings.html",
+ "Properties": {
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-optiongroup-optionconfigurations-optionsettings.html#cfn-rds-optiongroup-optionconfigurations-optionsettings-name",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Value": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-optiongroup-optionconfigurations-optionsettings.html#cfn-rds-optiongroup-optionconfigurations-optionsettings-value",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::WAFRegional::SqlInjectionMatchSet.SqlInjectionMatchTuple": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-sqlinjectionmatchset-sqlinjectionmatchtuple.html",
+ "Properties": {
+ "TextTransformation": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-sqlinjectionmatchset-sqlinjectionmatchtuple.html#cfn-wafregional-sqlinjectionmatchset-sqlinjectionmatchtuple-texttransformation",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "FieldToMatch": {
+ "Type": "FieldToMatch",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-sqlinjectionmatchset-sqlinjectionmatchtuple.html#cfn-wafregional-sqlinjectionmatchset-sqlinjectionmatchtuple-fieldtomatch",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EMR::Cluster.AutoScalingPolicy": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-autoscalingpolicy.html",
+ "Properties": {
+ "Constraints": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-autoscalingpolicy.html#cfn-elasticmapreduce-cluster-autoscalingpolicy-constraints",
+ "Required": true,
+ "Type": "ScalingConstraints",
+ "UpdateType": "Mutable"
+ },
+ "Rules": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-autoscalingpolicy.html#cfn-elasticmapreduce-cluster-autoscalingpolicy-rules",
+ "DuplicatesAllowed": false,
+ "ItemType": "ScalingRule",
+ "Required": true,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CodeDeploy::DeploymentGroup.Deployment": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment.html",
+ "Properties": {
+ "Description": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment.html#cfn-properties-codedeploy-deploymentgroup-deployment-description",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "IgnoreApplicationStopFailures": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment.html#cfn-properties-codedeploy-deploymentgroup-deployment-ignoreapplicationstopfailures",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Revision": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment.html#cfn-properties-codedeploy-deploymentgroup-deployment-revision",
+ "Required": true,
+ "Type": "RevisionLocation",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::DynamoDB::Table.StreamSpecification": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-streamspecification.html",
+ "Properties": {
+ "StreamViewType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-streamspecification.html#cfn-dynamodb-streamspecification-streamviewtype",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::KinesisFirehose::DeliveryStream.ExtendedS3DestinationConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-extendeds3destinationconfiguration.html",
+ "Properties": {
+ "BucketARN": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-extendeds3destinationconfiguration.html#cfn-kinesisfirehose-deliverystream-extendeds3destinationconfiguration-bucketarn",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "BufferingHints": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-extendeds3destinationconfiguration.html#cfn-kinesisfirehose-deliverystream-extendeds3destinationconfiguration-bufferinghints",
+ "Required": true,
+ "Type": "BufferingHints",
+ "UpdateType": "Mutable"
+ },
+ "CloudWatchLoggingOptions": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-extendeds3destinationconfiguration.html#cfn-kinesisfirehose-deliverystream-extendeds3destinationconfiguration-cloudwatchloggingoptions",
+ "Required": false,
+ "Type": "CloudWatchLoggingOptions",
+ "UpdateType": "Mutable"
+ },
+ "CompressionFormat": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-extendeds3destinationconfiguration.html#cfn-kinesisfirehose-deliverystream-extendeds3destinationconfiguration-compressionformat",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "EncryptionConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-extendeds3destinationconfiguration.html#cfn-kinesisfirehose-deliverystream-extendeds3destinationconfiguration-encryptionconfiguration",
+ "Required": false,
+ "Type": "EncryptionConfiguration",
+ "UpdateType": "Mutable"
+ },
+ "Prefix": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-extendeds3destinationconfiguration.html#cfn-kinesisfirehose-deliverystream-extendeds3destinationconfiguration-prefix",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "ProcessingConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-extendeds3destinationconfiguration.html#cfn-kinesisfirehose-deliverystream-extendeds3destinationconfiguration-processingconfiguration",
+ "Required": false,
+ "Type": "ProcessingConfiguration",
+ "UpdateType": "Mutable"
+ },
+ "RoleARN": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-extendeds3destinationconfiguration.html#cfn-kinesisfirehose-deliverystream-extendeds3destinationconfiguration-rolearn",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "S3BackupConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-extendeds3destinationconfiguration.html#cfn-kinesisfirehose-deliverystream-extendeds3destinationconfiguration-s3backupconfiguration",
+ "Required": false,
+ "Type": "S3DestinationConfiguration",
+ "UpdateType": "Mutable"
+ },
+ "S3BackupMode": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-extendeds3destinationconfiguration.html#cfn-kinesisfirehose-deliverystream-extendeds3destinationconfiguration-s3backupmode",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Cognito::IdentityPoolRoleAttachment.MappingRule": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-identitypoolroleattachment-mappingrule.html",
+ "Properties": {
+ "MatchType": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-identitypoolroleattachment-mappingrule.html#cfn-cognito-identitypoolroleattachment-mappingrule-matchtype",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Value": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-identitypoolroleattachment-mappingrule.html#cfn-cognito-identitypoolroleattachment-mappingrule-value",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Claim": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-identitypoolroleattachment-mappingrule.html#cfn-cognito-identitypoolroleattachment-mappingrule-claim",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "RoleARN": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-identitypoolroleattachment-mappingrule.html#cfn-cognito-identitypoolroleattachment-mappingrule-rolearn",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CodeBuild::Project.Source": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-source.html",
+ "Properties": {
+ "Type": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-source.html#cfn-codebuild-project-source-type",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "ReportBuildStatus": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-source.html#cfn-codebuild-project-source-reportbuildstatus",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "Auth": {
+ "Type": "SourceAuth",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-source.html#cfn-codebuild-project-source-auth",
+ "UpdateType": "Mutable"
+ },
+ "SourceIdentifier": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-source.html#cfn-codebuild-project-source-sourceidentifier",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "BuildSpec": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-source.html#cfn-codebuild-project-source-buildspec",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "GitCloneDepth": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-source.html#cfn-codebuild-project-source-gitclonedepth",
+ "PrimitiveType": "Integer",
+ "UpdateType": "Mutable"
+ },
+ "InsecureSsl": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-source.html#cfn-codebuild-project-source-insecuressl",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "Location": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-source.html#cfn-codebuild-project-source-location",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EC2::Instance.PrivateIpAddressSpecification": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-network-interface-privateipspec.html",
+ "Properties": {
+ "Primary": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-network-interface-privateipspec.html#cfn-ec2-networkinterface-privateipspecification-primary",
+ "PrimitiveType": "Boolean",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "PrivateIpAddress": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-network-interface-privateipspec.html#cfn-ec2-networkinterface-privateipspecification-privateipaddress",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Cognito::IdentityPool.CognitoStreams": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-identitypool-cognitostreams.html",
+ "Properties": {
+ "StreamingStatus": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-identitypool-cognitostreams.html#cfn-cognito-identitypool-cognitostreams-streamingstatus",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "StreamName": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-identitypool-cognitostreams.html#cfn-cognito-identitypool-cognitostreams-streamname",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "RoleArn": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-identitypool-cognitostreams.html#cfn-cognito-identitypool-cognitostreams-rolearn",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::AppSync::DataSource.ElasticsearchConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-datasource-elasticsearchconfig.html",
+ "Properties": {
+ "AwsRegion": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-datasource-elasticsearchconfig.html#cfn-appsync-datasource-elasticsearchconfig-awsregion",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Endpoint": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-datasource-elasticsearchconfig.html#cfn-appsync-datasource-elasticsearchconfig-endpoint",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ECS::TaskDefinition.HostVolumeProperties": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-volumes-host.html",
+ "Properties": {
+ "SourcePath": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-volumes-host.html#cfn-ecs-taskdefinition-volumes-host-sourcepath",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::IAM::User.Policy": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-policy.html",
+ "Properties": {
+ "PolicyDocument": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-policy.html#cfn-iam-policies-policydocument",
+ "PrimitiveType": "Json",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "PolicyName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-policy.html#cfn-iam-policies-policyname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Glue::Partition.PartitionInput": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-partition-partitioninput.html",
+ "Properties": {
+ "Parameters": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-partition-partitioninput.html#cfn-glue-partition-partitioninput-parameters",
+ "PrimitiveType": "Json",
+ "UpdateType": "Mutable"
+ },
+ "StorageDescriptor": {
+ "Type": "StorageDescriptor",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-partition-partitioninput.html#cfn-glue-partition-partitioninput-storagedescriptor",
+ "UpdateType": "Mutable"
+ },
+ "Values": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-partition-partitioninput.html#cfn-glue-partition-partitioninput-values",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::KinesisFirehose::DeliveryStream.RedshiftDestinationConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-redshiftdestinationconfiguration.html",
+ "Properties": {
+ "CloudWatchLoggingOptions": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-redshiftdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-redshiftdestinationconfiguration-cloudwatchloggingoptions",
+ "Required": false,
+ "Type": "CloudWatchLoggingOptions",
+ "UpdateType": "Mutable"
+ },
+ "ClusterJDBCURL": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-redshiftdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-redshiftdestinationconfiguration-clusterjdbcurl",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "CopyCommand": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-redshiftdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-redshiftdestinationconfiguration-copycommand",
+ "Required": true,
+ "Type": "CopyCommand",
+ "UpdateType": "Mutable"
+ },
+ "Password": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-redshiftdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-redshiftdestinationconfiguration-password",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "ProcessingConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-redshiftdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-redshiftdestinationconfiguration-processingconfiguration",
+ "Required": false,
+ "Type": "ProcessingConfiguration",
+ "UpdateType": "Mutable"
+ },
+ "RoleARN": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-redshiftdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-redshiftdestinationconfiguration-rolearn",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "S3Configuration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-redshiftdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-redshiftdestinationconfiguration-s3configuration",
+ "Required": true,
+ "Type": "S3DestinationConfiguration",
+ "UpdateType": "Mutable"
+ },
+ "Username": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-redshiftdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-redshiftdestinationconfiguration-username",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Elasticsearch::Domain.EBSOptions": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticsearch-domain-ebsoptions.html",
+ "Properties": {
+ "EBSEnabled": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticsearch-domain-ebsoptions.html#cfn-elasticsearch-domain-ebsoptions-ebsenabled",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Iops": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticsearch-domain-ebsoptions.html#cfn-elasticsearch-domain-ebsoptions-iops",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "VolumeSize": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticsearch-domain-ebsoptions.html#cfn-elasticsearch-domain-ebsoptions-volumesize",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "VolumeType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticsearch-domain-ebsoptions.html#cfn-elasticsearch-domain-ebsoptions-volumetype",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ECS::Service.NetworkConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-networkconfiguration.html",
+ "Properties": {
+ "AwsvpcConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-networkconfiguration.html#cfn-ecs-service-networkconfiguration-awsvpcconfiguration",
+ "Required": false,
+ "Type": "AwsVpcConfiguration",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::KinesisAnalytics::ApplicationOutput.DestinationSchema": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationoutput-destinationschema.html",
+ "Properties": {
+ "RecordFormatType": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationoutput-destinationschema.html#cfn-kinesisanalytics-applicationoutput-destinationschema-recordformattype",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EMR::InstanceFleetConfig.EbsBlockDeviceConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancefleetconfig-ebsblockdeviceconfig.html",
+ "Properties": {
+ "VolumeSpecification": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancefleetconfig-ebsblockdeviceconfig.html#cfn-elasticmapreduce-instancefleetconfig-ebsblockdeviceconfig-volumespecification",
+ "Required": true,
+ "Type": "VolumeSpecification",
+ "UpdateType": "Immutable"
+ },
+ "VolumesPerInstance": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancefleetconfig-ebsblockdeviceconfig.html#cfn-elasticmapreduce-instancefleetconfig-ebsblockdeviceconfig-volumesperinstance",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::OpsWorks::Instance.TimeBasedAutoScaling": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-instance-timebasedautoscaling.html",
+ "Properties": {
+ "Friday": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-instance-timebasedautoscaling.html#cfn-opsworks-instance-timebasedautoscaling-friday",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "Map",
+ "UpdateType": "Mutable"
+ },
+ "Monday": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-instance-timebasedautoscaling.html#cfn-opsworks-instance-timebasedautoscaling-monday",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "Map",
+ "UpdateType": "Mutable"
+ },
+ "Saturday": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-instance-timebasedautoscaling.html#cfn-opsworks-instance-timebasedautoscaling-saturday",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "Map",
+ "UpdateType": "Mutable"
+ },
+ "Sunday": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-instance-timebasedautoscaling.html#cfn-opsworks-instance-timebasedautoscaling-sunday",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "Map",
+ "UpdateType": "Mutable"
+ },
+ "Thursday": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-instance-timebasedautoscaling.html#cfn-opsworks-instance-timebasedautoscaling-thursday",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "Map",
+ "UpdateType": "Mutable"
+ },
+ "Tuesday": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-instance-timebasedautoscaling.html#cfn-opsworks-instance-timebasedautoscaling-tuesday",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "Map",
+ "UpdateType": "Mutable"
+ },
+ "Wednesday": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-instance-timebasedautoscaling.html#cfn-opsworks-instance-timebasedautoscaling-wednesday",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "Map",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Config::ConfigRule.SourceDetail": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-configrule-source-sourcedetails.html",
+ "Properties": {
+ "EventSource": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-configrule-source-sourcedetails.html#cfn-config-configrule-source-sourcedetail-eventsource",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "MaximumExecutionFrequency": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-configrule-source-sourcedetails.html#cfn-config-configrule-sourcedetail-maximumexecutionfrequency",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "MessageType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-configrule-source-sourcedetails.html#cfn-config-configrule-source-sourcedetail-messagetype",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ElasticLoadBalancing::LoadBalancer.AppCookieStickinessPolicy": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-AppCookieStickinessPolicy.html",
+ "Properties": {
+ "CookieName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-AppCookieStickinessPolicy.html#cfn-elb-appcookiestickinesspolicy-cookiename",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "PolicyName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-AppCookieStickinessPolicy.html#cfn-elb-appcookiestickinesspolicy-policyname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::SES::ReceiptFilter.IpFilter": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptfilter-ipfilter.html",
+ "Properties": {
+ "Policy": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptfilter-ipfilter.html#cfn-ses-receiptfilter-ipfilter-policy",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Cidr": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptfilter-ipfilter.html#cfn-ses-receiptfilter-ipfilter-cidr",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EMR::Cluster.InstanceFleetProvisioningSpecifications": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-instancefleetprovisioningspecifications.html",
+ "Properties": {
+ "SpotSpecification": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-instancefleetprovisioningspecifications.html#cfn-elasticmapreduce-cluster-instancefleetprovisioningspecifications-spotspecification",
+ "Required": true,
+ "Type": "SpotProvisioningSpecification",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Cloud9::EnvironmentEC2.Repository": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloud9-environmentec2-repository.html",
+ "Properties": {
+ "PathComponent": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloud9-environmentec2-repository.html#cfn-cloud9-environmentec2-repository-pathcomponent",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "RepositoryUrl": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloud9-environmentec2-repository.html#cfn-cloud9-environmentec2-repository-repositoryurl",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::DAX::Cluster.SSESpecification": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dax-cluster-ssespecification.html",
+ "Properties": {
+ "SSEEnabled": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dax-cluster-ssespecification.html#cfn-dax-cluster-ssespecification-sseenabled",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ElastiCache::ReplicationGroup.NodeGroupConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-replicationgroup-nodegroupconfiguration.html",
+ "Properties": {
+ "NodeGroupId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-replicationgroup-nodegroupconfiguration.html#cfn-elasticache-replicationgroup-nodegroupconfiguration-nodegroupid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Conditional"
+ },
+ "PrimaryAvailabilityZone": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-replicationgroup-nodegroupconfiguration.html#cfn-elasticache-replicationgroup-nodegroupconfiguration-primaryavailabilityzone",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "ReplicaAvailabilityZones": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-replicationgroup-nodegroupconfiguration.html#cfn-elasticache-replicationgroup-nodegroupconfiguration-replicaavailabilityzones",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ },
+ "ReplicaCount": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-replicationgroup-nodegroupconfiguration.html#cfn-elasticache-replicationgroup-nodegroupconfiguration-replicacount",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Slots": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-replicationgroup-nodegroupconfiguration.html#cfn-elasticache-replicationgroup-nodegroupconfiguration-slots",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::Glue::Table.Column": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-column.html",
+ "Properties": {
+ "Comment": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-column.html#cfn-glue-table-column-comment",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Type": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-column.html#cfn-glue-table-column-type",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-column.html#cfn-glue-table-column-name",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::RDS::OptionGroup.OptionConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-optiongroup-optionconfigurations.html",
+ "Properties": {
+ "DBSecurityGroupMemberships": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-optiongroup-optionconfigurations.html#cfn-rds-optiongroup-optionconfigurations-dbsecuritygroupmemberships",
+ "DuplicatesAllowed": true,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "OptionName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-optiongroup-optionconfigurations.html#cfn-rds-optiongroup-optionconfigurations-optionname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "OptionSettings": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-optiongroup-optionconfigurations.html#cfn-rds-optiongroup-optionconfigurations-optionsettings",
+ "DuplicatesAllowed": false,
+ "ItemType": "OptionSetting",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "OptionVersion": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-optiongroup-optionconfigurations.html#cfn-rds-optiongroup-optionconfiguration-optionversion",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Port": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-optiongroup-optionconfigurations.html#cfn-rds-optiongroup-optionconfigurations-port",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "VpcSecurityGroupMemberships": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-optiongroup-optionconfigurations.html#cfn-rds-optiongroup-optionconfigurations-vpcsecuritygroupmemberships",
+ "DuplicatesAllowed": true,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::DMS::Endpoint.DynamoDbSettings": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dms-endpoint-dynamodbsettings.html",
+ "Properties": {
+ "ServiceAccessRoleArn": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dms-endpoint-dynamodbsettings.html#cfn-dms-endpoint-dynamodbsettings-serviceaccessrolearn",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Lambda::Alias.VersionWeight": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-alias-versionweight.html",
+ "Properties": {
+ "FunctionVersion": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-alias-versionweight.html#cfn-lambda-alias-versionweight-functionversion",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "FunctionWeight": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-alias-versionweight.html#cfn-lambda-alias-versionweight-functionweight",
+ "PrimitiveType": "Double",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::OpsWorks::App.Source": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-source.html",
+ "Properties": {
+ "Password": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-source.html#cfn-opsworks-custcookbooksource-pw",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Revision": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-source.html#cfn-opsworks-custcookbooksource-revision",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "SshKey": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-source.html#cfn-opsworks-custcookbooksource-sshkey",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Type": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-source.html#cfn-opsworks-custcookbooksource-type",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Url": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-source.html#cfn-opsworks-custcookbooksource-url",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Username": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-source.html#cfn-opsworks-custcookbooksource-username",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::SSM::MaintenanceWindowTask.MaintenanceWindowRunCommandParameters": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-maintenancewindowtask-maintenancewindowruncommandparameters.html",
+ "Properties": {
+ "TimeoutSeconds": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-maintenancewindowtask-maintenancewindowruncommandparameters.html#cfn-ssm-maintenancewindowtask-maintenancewindowruncommandparameters-timeoutseconds",
+ "PrimitiveType": "Integer",
+ "UpdateType": "Mutable"
+ },
+ "Comment": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-maintenancewindowtask-maintenancewindowruncommandparameters.html#cfn-ssm-maintenancewindowtask-maintenancewindowruncommandparameters-comment",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "OutputS3KeyPrefix": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-maintenancewindowtask-maintenancewindowruncommandparameters.html#cfn-ssm-maintenancewindowtask-maintenancewindowruncommandparameters-outputs3keyprefix",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Parameters": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-maintenancewindowtask-maintenancewindowruncommandparameters.html#cfn-ssm-maintenancewindowtask-maintenancewindowruncommandparameters-parameters",
+ "PrimitiveType": "Json",
+ "UpdateType": "Mutable"
+ },
+ "DocumentHashType": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-maintenancewindowtask-maintenancewindowruncommandparameters.html#cfn-ssm-maintenancewindowtask-maintenancewindowruncommandparameters-documenthashtype",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "ServiceRoleArn": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-maintenancewindowtask-maintenancewindowruncommandparameters.html#cfn-ssm-maintenancewindowtask-maintenancewindowruncommandparameters-servicerolearn",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "NotificationConfig": {
+ "Type": "NotificationConfig",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-maintenancewindowtask-maintenancewindowruncommandparameters.html#cfn-ssm-maintenancewindowtask-maintenancewindowruncommandparameters-notificationconfig",
+ "UpdateType": "Mutable"
+ },
+ "OutputS3BucketName": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-maintenancewindowtask-maintenancewindowruncommandparameters.html#cfn-ssm-maintenancewindowtask-maintenancewindowruncommandparameters-outputs3bucketname",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "DocumentHash": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-maintenancewindowtask-maintenancewindowruncommandparameters.html#cfn-ssm-maintenancewindowtask-maintenancewindowruncommandparameters-documenthash",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Elasticsearch::Domain.EncryptionAtRestOptions": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticsearch-domain-encryptionatrestoptions.html",
+ "Properties": {
+ "Enabled": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticsearch-domain-encryptionatrestoptions.html#cfn-elasticsearch-domain-encryptionatrestoptions-enabled",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "KmsKeyId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticsearch-domain-encryptionatrestoptions.html#cfn-elasticsearch-domain-encryptionatrestoptions-kmskeyid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::ElasticBeanstalk::Application.MaxAgeRule": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticbeanstalk-application-maxagerule.html",
+ "Properties": {
+ "DeleteSourceFromS3": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticbeanstalk-application-maxagerule.html#cfn-elasticbeanstalk-application-maxagerule-deletesourcefroms3",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Enabled": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticbeanstalk-application-maxagerule.html#cfn-elasticbeanstalk-application-maxagerule-enabled",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "MaxAgeInDays": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticbeanstalk-application-maxagerule.html#cfn-elasticbeanstalk-application-maxagerule-maxageindays",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EMR::InstanceGroupConfig.AutoScalingPolicy": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancegroupconfig-autoscalingpolicy.html",
+ "Properties": {
+ "Constraints": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancegroupconfig-autoscalingpolicy.html#cfn-elasticmapreduce-instancegroupconfig-autoscalingpolicy-constraints",
+ "Required": true,
+ "Type": "ScalingConstraints",
+ "UpdateType": "Mutable"
+ },
+ "Rules": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancegroupconfig-autoscalingpolicy.html#cfn-elasticmapreduce-instancegroupconfig-autoscalingpolicy-rules",
+ "DuplicatesAllowed": false,
+ "ItemType": "ScalingRule",
+ "Required": true,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ECS::TaskDefinition.Tmpfs": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-tmpfs.html",
+ "Properties": {
+ "ContainerPath": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-tmpfs.html#cfn-ecs-taskdefinition-tmpfs-containerpath",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "MountOptions": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-tmpfs.html#cfn-ecs-taskdefinition-tmpfs-mountoptions",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ },
+ "Size": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-tmpfs.html#cfn-ecs-taskdefinition-tmpfs-size",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::EMR::InstanceGroupConfig.EbsConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-ebsconfiguration.html",
+ "Properties": {
+ "EbsBlockDeviceConfigs": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-ebsconfiguration.html#cfn-emr-ebsconfiguration-ebsblockdeviceconfigs",
+ "DuplicatesAllowed": false,
+ "ItemType": "EbsBlockDeviceConfig",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "EbsOptimized": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-ebsconfiguration.html#cfn-emr-ebsconfiguration-ebsoptimized",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ApiGateway::Deployment.AccessLogSetting": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-accesslogsetting.html",
+ "Properties": {
+ "DestinationArn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-accesslogsetting.html#cfn-apigateway-deployment-accesslogsetting-destinationarn",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Format": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-accesslogsetting.html#cfn-apigateway-deployment-accesslogsetting-format",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CodePipeline::Webhook.WebhookAuthConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-webhook-webhookauthconfiguration.html",
+ "Properties": {
+ "AllowedIPRange": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-webhook-webhookauthconfiguration.html#cfn-codepipeline-webhook-webhookauthconfiguration-allowediprange",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "SecretToken": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-webhook-webhookauthconfiguration.html#cfn-codepipeline-webhook-webhookauthconfiguration-secrettoken",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EFS::FileSystem.ElasticFileSystemTag": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-efs-filesystem-filesystemtags.html",
+ "Properties": {
+ "Key": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-efs-filesystem-filesystemtags.html#cfn-efs-filesystem-filesystemtags-key",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Value": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-efs-filesystem-filesystemtags.html#cfn-efs-filesystem-filesystemtags-value",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Budgets::Budget.Spend": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-spend.html",
+ "Properties": {
+ "Amount": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-spend.html#cfn-budgets-budget-spend-amount",
+ "PrimitiveType": "Double",
+ "UpdateType": "Mutable"
+ },
+ "Unit": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-spend.html#cfn-budgets-budget-spend-unit",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EMR::Cluster.ScalingTrigger": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-scalingtrigger.html",
+ "Properties": {
+ "CloudWatchAlarmDefinition": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-scalingtrigger.html#cfn-elasticmapreduce-cluster-scalingtrigger-cloudwatchalarmdefinition",
+ "Required": true,
+ "Type": "CloudWatchAlarmDefinition",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Glue::Crawler.SchemaChangePolicy": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-crawler-schemachangepolicy.html",
+ "Properties": {
+ "UpdateBehavior": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-crawler-schemachangepolicy.html#cfn-glue-crawler-schemachangepolicy-updatebehavior",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "DeleteBehavior": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-crawler-schemachangepolicy.html#cfn-glue-crawler-schemachangepolicy-deletebehavior",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Cognito::UserPool.StringAttributeConstraints": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-stringattributeconstraints.html",
+ "Properties": {
+ "MinLength": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-stringattributeconstraints.html#cfn-cognito-userpool-stringattributeconstraints-minlength",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "MaxLength": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-stringattributeconstraints.html#cfn-cognito-userpool-stringattributeconstraints-maxlength",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ECS::TaskDefinition.RepositoryCredentials": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-repositorycredentials.html",
+ "Properties": {
+ "CredentialsParameter": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-repositorycredentials.html#cfn-ecs-taskdefinition-repositorycredentials-credentialsparameter",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::CodeDeploy::DeploymentGroup.EC2TagSetListObject": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-ec2tagsetlistobject.html",
+ "Properties": {
+ "Ec2TagGroup": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-ec2tagsetlistobject.html#cfn-codedeploy-deploymentgroup-ec2tagsetlistobject-ec2taggroup",
+ "DuplicatesAllowed": false,
+ "ItemType": "EC2TagFilter",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ApplicationAutoScaling::ScalableTarget.ScalableTargetAction": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalabletarget-scalabletargetaction.html",
+ "Properties": {
+ "MaxCapacity": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalabletarget-scalabletargetaction.html#cfn-applicationautoscaling-scalabletarget-scalabletargetaction-maxcapacity",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "MinCapacity": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalabletarget-scalabletargetaction.html#cfn-applicationautoscaling-scalabletarget-scalabletargetaction-mincapacity",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ }
+ },
+ "ResourceTypes": {
+ "AWS::ElasticBeanstalk::ConfigurationTemplate": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticbeanstalk-configurationtemplate.html",
+ "Properties": {
+ "ApplicationName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticbeanstalk-configurationtemplate.html#cfn-elasticbeanstalk-configurationtemplate-applicationname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "Description": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticbeanstalk-configurationtemplate.html#cfn-elasticbeanstalk-configurationtemplate-description",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "EnvironmentId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticbeanstalk-configurationtemplate.html#cfn-elasticbeanstalk-configurationtemplate-environmentid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "OptionSettings": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticbeanstalk-configurationtemplate.html#cfn-elasticbeanstalk-configurationtemplate-optionsettings",
+ "DuplicatesAllowed": true,
+ "ItemType": "ConfigurationOptionSetting",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "PlatformArn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticbeanstalk-configurationtemplate.html#cfn-elasticbeanstalk-configurationtemplate-platformarn",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "SolutionStackName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticbeanstalk-configurationtemplate.html#cfn-elasticbeanstalk-configurationtemplate-solutionstackname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "SourceConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticbeanstalk-configurationtemplate.html#cfn-elasticbeanstalk-configurationtemplate-sourceconfiguration",
+ "Required": false,
+ "Type": "SourceConfiguration",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::AmazonMQ::Broker": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amazonmq-broker.html",
+ "Attributes": {
+ "BrokerId": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Properties": {
+ "SecurityGroups": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amazonmq-broker.html#cfn-amazonmq-broker-securitygroups",
+ "UpdateType": "Immutable"
+ },
+ "EngineVersion": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amazonmq-broker.html#cfn-amazonmq-broker-engineversion",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "Configuration": {
+ "Type": "ConfigurationId",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amazonmq-broker.html#cfn-amazonmq-broker-configuration",
+ "UpdateType": "Mutable"
+ },
+ "MaintenanceWindowStartTime": {
+ "Type": "MaintenanceWindow",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amazonmq-broker.html#cfn-amazonmq-broker-maintenancewindowstarttime",
+ "UpdateType": "Immutable"
+ },
+ "HostInstanceType": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amazonmq-broker.html#cfn-amazonmq-broker-hostinstancetype",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "AutoMinorVersionUpgrade": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amazonmq-broker.html#cfn-amazonmq-broker-autominorversionupgrade",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Immutable"
+ },
+ "Users": {
+ "Type": "List",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amazonmq-broker.html#cfn-amazonmq-broker-users",
+ "ItemType": "User",
+ "UpdateType": "Mutable"
+ },
+ "Logs": {
+ "Type": "LogList",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amazonmq-broker.html#cfn-amazonmq-broker-logs",
+ "UpdateType": "Mutable"
+ },
+ "SubnetIds": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amazonmq-broker.html#cfn-amazonmq-broker-subnetids",
+ "UpdateType": "Immutable"
+ },
+ "BrokerName": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amazonmq-broker.html#cfn-amazonmq-broker-brokername",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "DeploymentMode": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amazonmq-broker.html#cfn-amazonmq-broker-deploymentmode",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "EngineType": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amazonmq-broker.html#cfn-amazonmq-broker-enginetype",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "PubliclyAccessible": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amazonmq-broker.html#cfn-amazonmq-broker-publiclyaccessible",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::EC2::RouteTable": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-route-table.html",
+ "Properties": {
+ "Tags": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-route-table.html#cfn-ec2-routetable-tags",
+ "DuplicatesAllowed": true,
+ "ItemType": "Tag",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "VpcId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-route-table.html#cfn-ec2-routetable-vpcid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::AppSync::DataSource": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-datasource.html",
+ "Attributes": {
+ "DataSourceArn": {
+ "PrimitiveType": "String"
+ },
+ "Name": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Properties": {
+ "Type": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-datasource.html#cfn-appsync-datasource-type",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Description": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-datasource.html#cfn-appsync-datasource-description",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "ServiceRoleArn": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-datasource.html#cfn-appsync-datasource-servicerolearn",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "HttpConfig": {
+ "Type": "HttpConfig",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-datasource.html#cfn-appsync-datasource-httpconfig",
+ "UpdateType": "Mutable"
+ },
+ "LambdaConfig": {
+ "Type": "LambdaConfig",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-datasource.html#cfn-appsync-datasource-lambdaconfig",
+ "UpdateType": "Mutable"
+ },
+ "ApiId": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-datasource.html#cfn-appsync-datasource-apiid",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "Name": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-datasource.html#cfn-appsync-datasource-name",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "DynamoDBConfig": {
+ "Type": "DynamoDBConfig",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-datasource.html#cfn-appsync-datasource-dynamodbconfig",
+ "UpdateType": "Mutable"
+ },
+ "ElasticsearchConfig": {
+ "Type": "ElasticsearchConfig",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-datasource.html#cfn-appsync-datasource-elasticsearchconfig",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ServiceCatalog::PortfolioShare": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-portfolioshare.html",
+ "Properties": {
+ "AccountId": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-portfolioshare.html#cfn-servicecatalog-portfolioshare-accountid",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "AcceptLanguage": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-portfolioshare.html#cfn-servicecatalog-portfolioshare-acceptlanguage",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "PortfolioId": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-portfolioshare.html#cfn-servicecatalog-portfolioshare-portfolioid",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::Cognito::IdentityPoolRoleAttachment": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-identitypoolroleattachment.html",
+ "Properties": {
+ "RoleMappings": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-identitypoolroleattachment.html#cfn-cognito-identitypoolroleattachment-rolemappings",
+ "PrimitiveType": "Json",
+ "UpdateType": "Mutable"
+ },
+ "IdentityPoolId": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-identitypoolroleattachment.html#cfn-cognito-identitypoolroleattachment-identitypoolid",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "Roles": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-identitypoolroleattachment.html#cfn-cognito-identitypoolroleattachment-roles",
+ "PrimitiveType": "Json",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Events::Rule": {
+ "Attributes": {
+ "Arn": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-rule.html",
+ "Properties": {
+ "Description": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-rule.html#cfn-events-rule-description",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "EventPattern": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-rule.html#cfn-events-rule-eventpattern",
+ "PrimitiveType": "Json",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-rule.html#cfn-events-rule-name",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "RoleArn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-rule.html#cfn-events-rule-rolearn",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "ScheduleExpression": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-rule.html#cfn-events-rule-scheduleexpression",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "State": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-rule.html#cfn-events-rule-state",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Targets": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-rule.html#cfn-events-rule-targets",
+ "DuplicatesAllowed": false,
+ "ItemType": "Target",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::WAF::IPSet": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-waf-ipset.html",
+ "Properties": {
+ "IPSetDescriptors": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-waf-ipset.html#cfn-waf-ipset-ipsetdescriptors",
+ "DuplicatesAllowed": false,
+ "ItemType": "IPSetDescriptor",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-waf-ipset.html#cfn-waf-ipset-name",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::IAM::Group": {
+ "Attributes": {
+ "Arn": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-group.html",
+ "Properties": {
+ "GroupName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-group.html#cfn-iam-group-groupname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "ManagedPolicyArns": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-group.html#cfn-iam-group-managepolicyarns",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "Path": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-group.html#cfn-iam-group-path",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Policies": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-group.html#cfn-iam-group-policies",
+ "DuplicatesAllowed": false,
+ "ItemType": "Policy",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CodePipeline::CustomActionType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codepipeline-customactiontype.html",
+ "Properties": {
+ "Category": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codepipeline-customactiontype.html#cfn-codepipeline-customactiontype-category",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "ConfigurationProperties": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codepipeline-customactiontype.html#cfn-codepipeline-customactiontype-configurationproperties",
+ "DuplicatesAllowed": false,
+ "ItemType": "ConfigurationProperties",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ },
+ "InputArtifactDetails": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codepipeline-customactiontype.html#cfn-codepipeline-customactiontype-inputartifactdetails",
+ "Required": true,
+ "Type": "ArtifactDetails",
+ "UpdateType": "Immutable"
+ },
+ "OutputArtifactDetails": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codepipeline-customactiontype.html#cfn-codepipeline-customactiontype-outputartifactdetails",
+ "Required": true,
+ "Type": "ArtifactDetails",
+ "UpdateType": "Immutable"
+ },
+ "Provider": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codepipeline-customactiontype.html#cfn-codepipeline-customactiontype-provider",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "Settings": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codepipeline-customactiontype.html#cfn-codepipeline-customactiontype-settings",
+ "Required": false,
+ "Type": "Settings",
+ "UpdateType": "Immutable"
+ },
+ "Version": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codepipeline-customactiontype.html#cfn-codepipeline-customactiontype-version",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::EC2::PlacementGroup": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-placementgroup.html",
+ "Properties": {
+ "Strategy": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-placementgroup.html#cfn-ec2-placementgroup-strategy",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::EC2::VPCPeeringConnection": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcpeeringconnection.html",
+ "Properties": {
+ "PeerOwnerId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcpeeringconnection.html#cfn-ec2-vpcpeeringconnection-peerownerid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "PeerRegion": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcpeeringconnection.html#cfn-ec2-vpcpeeringconnection-peerregion",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "PeerRoleArn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcpeeringconnection.html#cfn-ec2-vpcpeeringconnection-peerrolearn",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "PeerVpcId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcpeeringconnection.html#cfn-ec2-vpcpeeringconnection-peervpcid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "Tags": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcpeeringconnection.html#cfn-ec2-vpcpeeringconnection-tags",
+ "DuplicatesAllowed": true,
+ "ItemType": "Tag",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "VpcId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcpeeringconnection.html#cfn-ec2-vpcpeeringconnection-vpcid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::Elasticsearch::Domain": {
+ "Attributes": {
+ "Arn": {
+ "PrimitiveType": "String"
+ },
+ "DomainArn": {
+ "PrimitiveType": "String"
+ },
+ "DomainEndpoint": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticsearch-domain.html",
+ "Properties": {
+ "AccessPolicies": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticsearch-domain.html#cfn-elasticsearch-domain-accesspolicies",
+ "PrimitiveType": "Json",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "AdvancedOptions": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticsearch-domain.html#cfn-elasticsearch-domain-advancedoptions",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "Map",
+ "UpdateType": "Mutable"
+ },
+ "DomainName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticsearch-domain.html#cfn-elasticsearch-domain-domainname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "EBSOptions": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticsearch-domain.html#cfn-elasticsearch-domain-ebsoptions",
+ "Required": false,
+ "Type": "EBSOptions",
+ "UpdateType": "Mutable"
+ },
+ "ElasticsearchClusterConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticsearch-domain.html#cfn-elasticsearch-domain-elasticsearchclusterconfig",
+ "Required": false,
+ "Type": "ElasticsearchClusterConfig",
+ "UpdateType": "Mutable"
+ },
+ "ElasticsearchVersion": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticsearch-domain.html#cfn-elasticsearch-domain-elasticsearchversion",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "EncryptionAtRestOptions": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticsearch-domain.html#cfn-elasticsearch-domain-encryptionatrestoptions",
+ "Required": false,
+ "Type": "EncryptionAtRestOptions",
+ "UpdateType": "Immutable"
+ },
+ "SnapshotOptions": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticsearch-domain.html#cfn-elasticsearch-domain-snapshotoptions",
+ "Required": false,
+ "Type": "SnapshotOptions",
+ "UpdateType": "Mutable"
+ },
+ "Tags": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticsearch-domain.html#cfn-elasticsearch-domain-tags",
+ "DuplicatesAllowed": true,
+ "ItemType": "Tag",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "VPCOptions": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticsearch-domain.html#cfn-elasticsearch-domain-vpcoptions",
+ "Required": false,
+ "Type": "VPCOptions",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ApiGateway::RequestValidator": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-requestvalidator.html",
+ "Properties": {
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-requestvalidator.html#cfn-apigateway-requestvalidator-name",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "RestApiId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-requestvalidator.html#cfn-apigateway-requestvalidator-restapiid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "ValidateRequestBody": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-requestvalidator.html#cfn-apigateway-requestvalidator-validaterequestbody",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "ValidateRequestParameters": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-requestvalidator.html#cfn-apigateway-requestvalidator-validaterequestparameters",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::WAFRegional::SizeConstraintSet": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafregional-sizeconstraintset.html",
+ "Properties": {
+ "SizeConstraints": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafregional-sizeconstraintset.html#cfn-wafregional-sizeconstraintset-sizeconstraints",
+ "ItemType": "SizeConstraint",
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafregional-sizeconstraintset.html#cfn-wafregional-sizeconstraintset-name",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::RDS::DBSecurityGroupIngress": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-security-group-ingress.html",
+ "Properties": {
+ "CIDRIP": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-security-group-ingress.html#cfn-rds-securitygroup-ingress-cidrip",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "DBSecurityGroupName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-security-group-ingress.html#cfn-rds-securitygroup-ingress-dbsecuritygroupname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "EC2SecurityGroupId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-security-group-ingress.html#cfn-rds-securitygroup-ingress-ec2securitygroupid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "EC2SecurityGroupName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-security-group-ingress.html#cfn-rds-securitygroup-ingress-ec2securitygroupname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "EC2SecurityGroupOwnerId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-security-group-ingress.html#cfn-rds-securitygroup-ingress-ec2securitygroupownerid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EMR::InstanceFleetConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticmapreduce-instancefleetconfig.html",
+ "Properties": {
+ "ClusterId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticmapreduce-instancefleetconfig.html#cfn-elasticmapreduce-instancefleetconfig-clusterid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "InstanceFleetType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticmapreduce-instancefleetconfig.html#cfn-elasticmapreduce-instancefleetconfig-instancefleettype",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "InstanceTypeConfigs": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticmapreduce-instancefleetconfig.html#cfn-elasticmapreduce-instancefleetconfig-instancetypeconfigs",
+ "DuplicatesAllowed": false,
+ "ItemType": "InstanceTypeConfig",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ },
+ "LaunchSpecifications": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticmapreduce-instancefleetconfig.html#cfn-elasticmapreduce-instancefleetconfig-launchspecifications",
+ "Required": false,
+ "Type": "InstanceFleetProvisioningSpecifications",
+ "UpdateType": "Immutable"
+ },
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticmapreduce-instancefleetconfig.html#cfn-elasticmapreduce-instancefleetconfig-name",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "TargetOnDemandCapacity": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticmapreduce-instancefleetconfig.html#cfn-elasticmapreduce-instancefleetconfig-targetondemandcapacity",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "TargetSpotCapacity": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticmapreduce-instancefleetconfig.html#cfn-elasticmapreduce-instancefleetconfig-targetspotcapacity",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::WorkSpaces::Workspace": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspaces-workspace.html",
+ "Properties": {
+ "BundleId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspaces-workspace.html#cfn-workspaces-workspace-bundleid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Conditional"
+ },
+ "DirectoryId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspaces-workspace.html#cfn-workspaces-workspace-directoryid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Conditional"
+ },
+ "RootVolumeEncryptionEnabled": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspaces-workspace.html#cfn-workspaces-workspace-rootvolumeencryptionenabled",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Conditional"
+ },
+ "UserName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspaces-workspace.html#cfn-workspaces-workspace-username",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "UserVolumeEncryptionEnabled": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspaces-workspace.html#cfn-workspaces-workspace-uservolumeencryptionenabled",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Conditional"
+ },
+ "VolumeEncryptionKey": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspaces-workspace.html#cfn-workspaces-workspace-volumeencryptionkey",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Conditional"
+ }
+ }
+ },
+ "AWS::WAFRegional::SqlInjectionMatchSet": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafregional-sqlinjectionmatchset.html",
+ "Properties": {
+ "SqlInjectionMatchTuples": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafregional-sqlinjectionmatchset.html#cfn-wafregional-sqlinjectionmatchset-sqlinjectionmatchtuples",
+ "ItemType": "SqlInjectionMatchTuple",
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafregional-sqlinjectionmatchset.html#cfn-wafregional-sqlinjectionmatchset-name",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::CodePipeline::Webhook": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codepipeline-webhook.html",
+ "Attributes": {
+ "Url": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Properties": {
+ "AuthenticationConfiguration": {
+ "Type": "WebhookAuthConfiguration",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codepipeline-webhook.html#cfn-codepipeline-webhook-authenticationconfiguration",
+ "UpdateType": "Mutable"
+ },
+ "Filters": {
+ "Type": "List",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codepipeline-webhook.html#cfn-codepipeline-webhook-filters",
+ "ItemType": "WebhookFilterRule",
+ "UpdateType": "Mutable"
+ },
+ "Authentication": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codepipeline-webhook.html#cfn-codepipeline-webhook-authentication",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "TargetPipeline": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codepipeline-webhook.html#cfn-codepipeline-webhook-targetpipeline",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "TargetAction": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codepipeline-webhook.html#cfn-codepipeline-webhook-targetaction",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codepipeline-webhook.html#cfn-codepipeline-webhook-name",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "TargetPipelineVersion": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codepipeline-webhook.html#cfn-codepipeline-webhook-targetpipelineversion",
+ "PrimitiveType": "Integer",
+ "UpdateType": "Mutable"
+ },
+ "RegisterWithThirdParty": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codepipeline-webhook.html#cfn-codepipeline-webhook-registerwiththirdparty",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Logs::LogGroup": {
+ "Attributes": {
+ "Arn": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-loggroup.html",
+ "Properties": {
+ "LogGroupName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-loggroup.html#cfn-cwl-loggroup-loggroupname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "RetentionInDays": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-loggroup.html#cfn-cwl-loggroup-retentionindays",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Kinesis::Stream": {
+ "Attributes": {
+ "Arn": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesis-stream.html",
+ "Properties": {
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesis-stream.html#cfn-kinesis-stream-name",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "RetentionPeriodHours": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesis-stream.html#cfn-kinesis-stream-retentionperiodhours",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "ShardCount": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesis-stream.html#cfn-kinesis-stream-shardcount",
+ "PrimitiveType": "Integer",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "StreamEncryption": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesis-stream.html#cfn-kinesis-stream-streamencryption",
+ "Required": false,
+ "Type": "StreamEncryption",
+ "UpdateType": "Mutable"
+ },
+ "Tags": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesis-stream.html#cfn-kinesis-stream-tags",
+ "DuplicatesAllowed": true,
+ "ItemType": "Tag",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::AutoScaling::LaunchConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig.html",
+ "Properties": {
+ "AssociatePublicIpAddress": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig.html#cf-as-launchconfig-associatepubip",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "BlockDeviceMappings": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig.html#cfn-as-launchconfig-blockdevicemappings",
+ "DuplicatesAllowed": false,
+ "ItemType": "BlockDeviceMapping",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ },
+ "ClassicLinkVPCId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig.html#cfn-as-launchconfig-classiclinkvpcid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "ClassicLinkVPCSecurityGroups": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig.html#cfn-as-launchconfig-classiclinkvpcsecuritygroups",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ },
+ "EbsOptimized": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig.html#cfn-as-launchconfig-ebsoptimized",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "IamInstanceProfile": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig.html#cfn-as-launchconfig-iaminstanceprofile",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "ImageId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig.html#cfn-as-launchconfig-imageid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "InstanceId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig.html#cfn-as-launchconfig-instanceid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "InstanceMonitoring": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig.html#cfn-as-launchconfig-instancemonitoring",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "InstanceType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig.html#cfn-as-launchconfig-instancetype",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "KernelId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig.html#cfn-as-launchconfig-kernelid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "KeyName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig.html#cfn-as-launchconfig-keyname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "LaunchConfigurationName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig.html#cfn-autoscaling-launchconfig-launchconfigurationname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "PlacementTenancy": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig.html#cfn-as-launchconfig-placementtenancy",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "RamDiskId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig.html#cfn-as-launchconfig-ramdiskid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "SecurityGroups": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig.html#cfn-as-launchconfig-securitygroups",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ },
+ "SpotPrice": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig.html#cfn-as-launchconfig-spotprice",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "UserData": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig.html#cfn-as-launchconfig-userdata",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::SQS::Queue": {
+ "Attributes": {
+ "Arn": {
+ "PrimitiveType": "String"
+ },
+ "QueueName": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-queues.html",
+ "Properties": {
+ "ContentBasedDeduplication": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-queues.html#aws-sqs-queue-contentbaseddeduplication",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "DelaySeconds": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-queues.html#aws-sqs-queue-delayseconds",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "FifoQueue": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-queues.html#aws-sqs-queue-fifoqueue",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "KmsDataKeyReusePeriodSeconds": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-queues.html#aws-sqs-queue-kmsdatakeyreuseperiodseconds",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "KmsMasterKeyId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-queues.html#aws-sqs-queue-kmsmasterkeyid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "MaximumMessageSize": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-queues.html#aws-sqs-queue-maxmesgsize",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "MessageRetentionPeriod": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-queues.html#aws-sqs-queue-msgretentionperiod",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "QueueName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-queues.html#aws-sqs-queue-name",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "ReceiveMessageWaitTimeSeconds": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-queues.html#aws-sqs-queue-receivemsgwaittime",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "RedrivePolicy": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-queues.html#aws-sqs-queue-redrive",
+ "PrimitiveType": "Json",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Tags": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-queues.html#cfn-sqs-queue-tags",
+ "DuplicatesAllowed": true,
+ "ItemType": "Tag",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "VisibilityTimeout": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-queues.html#aws-sqs-queue-visiblitytimeout",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::AppSync::Resolver": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-resolver.html",
+ "Attributes": {
+ "TypeName": {
+ "PrimitiveType": "String"
+ },
+ "ResolverArn": {
+ "PrimitiveType": "String"
+ },
+ "FieldName": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Properties": {
+ "ResponseMappingTemplateS3Location": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-resolver.html#cfn-appsync-resolver-responsemappingtemplates3location",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "TypeName": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-resolver.html#cfn-appsync-resolver-typename",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "DataSourceName": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-resolver.html#cfn-appsync-resolver-datasourcename",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "RequestMappingTemplate": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-resolver.html#cfn-appsync-resolver-requestmappingtemplate",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "ResponseMappingTemplate": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-resolver.html#cfn-appsync-resolver-responsemappingtemplate",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "RequestMappingTemplateS3Location": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-resolver.html#cfn-appsync-resolver-requestmappingtemplates3location",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "ApiId": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-resolver.html#cfn-appsync-resolver-apiid",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "FieldName": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-resolver.html#cfn-appsync-resolver-fieldname",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::AutoScalingPlans::ScalingPlan": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscalingplans-scalingplan.html",
+ "Properties": {
+ "ApplicationSource": {
+ "Type": "ApplicationSource",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscalingplans-scalingplan.html#cfn-autoscalingplans-scalingplan-applicationsource",
+ "UpdateType": "Mutable"
+ },
+ "ScalingInstructions": {
+ "Type": "List",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscalingplans-scalingplan.html#cfn-autoscalingplans-scalingplan-scalinginstructions",
+ "ItemType": "ScalingInstruction",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EC2::VPCEndpointServicePermissions": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpointservicepermissions.html",
+ "Properties": {
+ "AllowedPrincipals": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpointservicepermissions.html#cfn-ec2-vpcendpointservicepermissions-allowedprincipals",
+ "UpdateType": "Mutable"
+ },
+ "ServiceId": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpointservicepermissions.html#cfn-ec2-vpcendpointservicepermissions-serviceid",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::Route53::RecordSet": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-recordset.html",
+ "Properties": {
+ "AliasTarget": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-recordset.html#cfn-route53-recordset-aliastarget",
+ "Required": false,
+ "Type": "AliasTarget",
+ "UpdateType": "Mutable"
+ },
+ "Comment": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-recordset.html#cfn-route53-recordset-comment",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Failover": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-recordset.html#cfn-route53-recordset-failover",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "GeoLocation": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-recordset.html#cfn-route53-recordset-geolocation",
+ "Required": false,
+ "Type": "GeoLocation",
+ "UpdateType": "Mutable"
+ },
+ "HealthCheckId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-recordset.html#cfn-route53-recordset-healthcheckid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "HostedZoneId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-recordset.html#cfn-route53-recordset-hostedzoneid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "HostedZoneName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-recordset.html#cfn-route53-recordset-hostedzonename",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-recordset.html#cfn-route53-recordset-name",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "Region": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-recordset.html#cfn-route53-recordset-region",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "ResourceRecords": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-recordset.html#cfn-route53-recordset-resourcerecords",
+ "DuplicatesAllowed": true,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "SetIdentifier": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-recordset.html#cfn-route53-recordset-setidentifier",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "TTL": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-recordset.html#cfn-route53-recordset-ttl",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Type": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-recordset.html#cfn-route53-recordset-type",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Weight": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-recordset.html#cfn-route53-recordset-weight",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::WAFRegional::XssMatchSet": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafregional-xssmatchset.html",
+ "Properties": {
+ "XssMatchTuples": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafregional-xssmatchset.html#cfn-wafregional-xssmatchset-xssmatchtuples",
+ "ItemType": "XssMatchTuple",
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafregional-xssmatchset.html#cfn-wafregional-xssmatchset-name",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::WAF::SizeConstraintSet": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-waf-sizeconstraintset.html",
+ "Properties": {
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-waf-sizeconstraintset.html#cfn-waf-sizeconstraintset-name",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "SizeConstraints": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-waf-sizeconstraintset.html#cfn-waf-sizeconstraintset-sizeconstraints",
+ "DuplicatesAllowed": false,
+ "ItemType": "SizeConstraint",
+ "Required": true,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EC2::NetworkAclEntry": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-acl-entry.html",
+ "Properties": {
+ "CidrBlock": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-acl-entry.html#cfn-ec2-networkaclentry-cidrblock",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Egress": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-acl-entry.html#cfn-ec2-networkaclentry-egress",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Icmp": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-acl-entry.html#cfn-ec2-networkaclentry-icmp",
+ "Required": false,
+ "Type": "Icmp",
+ "UpdateType": "Mutable"
+ },
+ "Ipv6CidrBlock": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-acl-entry.html#cfn-ec2-networkaclentry-ipv6cidrblock",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "NetworkAclId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-acl-entry.html#cfn-ec2-networkaclentry-networkaclid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "PortRange": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-acl-entry.html#cfn-ec2-networkaclentry-portrange",
+ "Required": false,
+ "Type": "PortRange",
+ "UpdateType": "Mutable"
+ },
+ "Protocol": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-acl-entry.html#cfn-ec2-networkaclentry-protocol",
+ "PrimitiveType": "Integer",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "RuleAction": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-acl-entry.html#cfn-ec2-networkaclentry-ruleaction",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "RuleNumber": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-acl-entry.html#cfn-ec2-networkaclentry-rulenumber",
+ "PrimitiveType": "Integer",
+ "Required": true,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::CloudWatch::Dashboard": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-dashboard.html",
+ "Properties": {
+ "DashboardName": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-dashboard.html#cfn-cloudwatch-dashboard-dashboardname",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "DashboardBody": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-dashboard.html#cfn-cloudwatch-dashboard-dashboardbody",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ECS::Cluster": {
+ "Attributes": {
+ "Arn": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-cluster.html",
+ "Properties": {
+ "ClusterName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-cluster.html#cfn-ecs-cluster-clustername",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::IAM::Policy": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-policy.html",
+ "Properties": {
+ "Groups": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-policy.html#cfn-iam-policy-groups",
+ "DuplicatesAllowed": true,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "PolicyDocument": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-policy.html#cfn-iam-policy-policydocument",
+ "PrimitiveType": "Json",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "PolicyName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-policy.html#cfn-iam-policy-policyname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Roles": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-policy.html#cfn-iam-policy-roles",
+ "DuplicatesAllowed": true,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "Users": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-policy.html#cfn-iam-policy-users",
+ "DuplicatesAllowed": true,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EC2::InternetGateway": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-internetgateway.html",
+ "Properties": {
+ "Tags": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-internetgateway.html#cfn-ec2-internetgateway-tags",
+ "DuplicatesAllowed": true,
+ "ItemType": "Tag",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ElasticLoadBalancingV2::ListenerCertificate": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-listenercertificate.html",
+ "Properties": {
+ "Certificates": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-listenercertificate.html#cfn-elasticloadbalancingv2-listenercertificate-certificates",
+ "DuplicatesAllowed": false,
+ "ItemType": "Certificate",
+ "Required": true,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ },
+ "ListenerArn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-listenercertificate.html#cfn-elasticloadbalancingv2-listenercertificate-listenerarn",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::IAM::Role": {
+ "Attributes": {
+ "Arn": {
+ "PrimitiveType": "String"
+ },
+ "RoleId": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html",
+ "Properties": {
+ "AssumeRolePolicyDocument": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html#cfn-iam-role-assumerolepolicydocument",
+ "PrimitiveType": "Json",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "ManagedPolicyArns": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html#cfn-iam-role-managepolicyarns",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "MaxSessionDuration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html#cfn-iam-role-maxsessionduration",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Path": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html#cfn-iam-role-path",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Policies": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html#cfn-iam-role-policies",
+ "DuplicatesAllowed": true,
+ "ItemType": "Policy",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "RoleName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html#cfn-iam-role-rolename",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::Neptune::DBParameterGroup": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbparametergroup.html",
+ "Properties": {
+ "Description": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbparametergroup.html#cfn-neptune-dbparametergroup-description",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "Parameters": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbparametergroup.html#cfn-neptune-dbparametergroup-parameters",
+ "PrimitiveType": "Json",
+ "UpdateType": "Mutable"
+ },
+ "Family": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbparametergroup.html#cfn-neptune-dbparametergroup-family",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "Tags": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbparametergroup.html#cfn-neptune-dbparametergroup-tags",
+ "ItemType": "Tag",
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbparametergroup.html#cfn-neptune-dbparametergroup-name",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::StepFunctions::Activity": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-stepfunctions-activity.html",
+ "Attributes": {
+ "Name": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Properties": {
+ "Name": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-stepfunctions-activity.html#cfn-stepfunctions-activity-name",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::KinesisAnalytics::ApplicationOutput": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesisanalytics-applicationoutput.html",
+ "Properties": {
+ "ApplicationName": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesisanalytics-applicationoutput.html#cfn-kinesisanalytics-applicationoutput-applicationname",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "Output": {
+ "Type": "Output",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesisanalytics-applicationoutput.html#cfn-kinesisanalytics-applicationoutput-output",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EC2::LaunchTemplate": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html",
+ "Attributes": {
+ "LatestVersionNumber": {
+ "PrimitiveType": "String"
+ },
+ "DefaultVersionNumber": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Properties": {
+ "LaunchTemplateName": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html#cfn-ec2-launchtemplate-launchtemplatename",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "LaunchTemplateData": {
+ "Type": "LaunchTemplateData",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html#cfn-ec2-launchtemplate-launchtemplatedata",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::OpsWorks::Volume": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-volume.html",
+ "Properties": {
+ "Ec2VolumeId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-volume.html#cfn-opsworks-volume-ec2volumeid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "MountPoint": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-volume.html#cfn-opsworks-volume-mountpoint",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-volume.html#cfn-opsworks-volume-name",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "StackId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-volume.html#cfn-opsworks-volume-stackid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::ServiceCatalog::TagOptionAssociation": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-tagoptionassociation.html",
+ "Properties": {
+ "TagOptionId": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-tagoptionassociation.html#cfn-servicecatalog-tagoptionassociation-tagoptionid",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "ResourceId": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-tagoptionassociation.html#cfn-servicecatalog-tagoptionassociation-resourceid",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::AppSync::GraphQLSchema": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-graphqlschema.html",
+ "Properties": {
+ "Definition": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-graphqlschema.html#cfn-appsync-graphqlschema-definition",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "DefinitionS3Location": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-graphqlschema.html#cfn-appsync-graphqlschema-definitions3location",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "ApiId": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-graphqlschema.html#cfn-appsync-graphqlschema-apiid",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::EC2::Volume": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ebs-volume.html",
+ "Properties": {
+ "AutoEnableIO": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ebs-volume.html#cfn-ec2-ebs-volume-autoenableio",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "AvailabilityZone": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ebs-volume.html#cfn-ec2-ebs-volume-availabilityzone",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Encrypted": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ebs-volume.html#cfn-ec2-ebs-volume-encrypted",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Iops": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ebs-volume.html#cfn-ec2-ebs-volume-iops",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "KmsKeyId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ebs-volume.html#cfn-ec2-ebs-volume-kmskeyid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Size": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ebs-volume.html#cfn-ec2-ebs-volume-size",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "SnapshotId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ebs-volume.html#cfn-ec2-ebs-volume-snapshotid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Tags": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ebs-volume.html#cfn-ec2-ebs-volume-tags",
+ "DuplicatesAllowed": true,
+ "ItemType": "Tag",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "VolumeType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ebs-volume.html#cfn-ec2-ebs-volume-volumetype",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::IAM::ServiceLinkedRole": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-servicelinkedrole.html",
+ "Properties": {
+ "CustomSuffix": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-servicelinkedrole.html#cfn-iam-servicelinkedrole-customsuffix",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "Description": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-servicelinkedrole.html#cfn-iam-servicelinkedrole-description",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "AWSServiceName": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-servicelinkedrole.html#cfn-iam-servicelinkedrole-awsservicename",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::ServiceCatalog::LaunchTemplateConstraint": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-launchtemplateconstraint.html",
+ "Properties": {
+ "Description": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-launchtemplateconstraint.html#cfn-servicecatalog-launchtemplateconstraint-description",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "AcceptLanguage": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-launchtemplateconstraint.html#cfn-servicecatalog-launchtemplateconstraint-acceptlanguage",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "PortfolioId": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-launchtemplateconstraint.html#cfn-servicecatalog-launchtemplateconstraint-portfolioid",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "ProductId": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-launchtemplateconstraint.html#cfn-servicecatalog-launchtemplateconstraint-productid",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "Rules": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-launchtemplateconstraint.html#cfn-servicecatalog-launchtemplateconstraint-rules",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::EMR::Cluster": {
+ "Attributes": {
+ "MasterPublicDNS": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticmapreduce-cluster.html",
+ "Properties": {
+ "AdditionalInfo": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticmapreduce-cluster.html#cfn-elasticmapreduce-cluster-additionalinfo",
+ "PrimitiveType": "Json",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Applications": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticmapreduce-cluster.html#cfn-elasticmapreduce-cluster-applications",
+ "DuplicatesAllowed": false,
+ "ItemType": "Application",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ },
+ "AutoScalingRole": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticmapreduce-cluster.html#cfn-elasticmapreduce-cluster-autoscalingrole",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "BootstrapActions": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticmapreduce-cluster.html#cfn-elasticmapreduce-cluster-bootstrapactions",
+ "DuplicatesAllowed": false,
+ "ItemType": "BootstrapActionConfig",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ },
+ "Configurations": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticmapreduce-cluster.html#cfn-elasticmapreduce-cluster-configurations",
+ "DuplicatesAllowed": false,
+ "ItemType": "Configuration",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ },
+ "CustomAmiId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticmapreduce-cluster.html#cfn-elasticmapreduce-cluster-customamiid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "EbsRootVolumeSize": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticmapreduce-cluster.html#cfn-elasticmapreduce-cluster-ebsrootvolumesize",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Instances": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticmapreduce-cluster.html#cfn-elasticmapreduce-cluster-instances",
+ "Required": true,
+ "Type": "JobFlowInstancesConfig",
+ "UpdateType": "Conditional"
+ },
+ "JobFlowRole": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticmapreduce-cluster.html#cfn-elasticmapreduce-cluster-jobflowrole",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "KerberosAttributes": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticmapreduce-cluster.html#cfn-elasticmapreduce-cluster-kerberosattributes",
+ "Required": false,
+ "Type": "KerberosAttributes",
+ "UpdateType": "Immutable"
+ },
+ "LogUri": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticmapreduce-cluster.html#cfn-elasticmapreduce-cluster-loguri",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticmapreduce-cluster.html#cfn-elasticmapreduce-cluster-name",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "ReleaseLabel": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticmapreduce-cluster.html#cfn-elasticmapreduce-cluster-releaselabel",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "ScaleDownBehavior": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticmapreduce-cluster.html#cfn-elasticmapreduce-cluster-scaledownbehavior",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "SecurityConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticmapreduce-cluster.html#cfn-elasticmapreduce-cluster-securityconfiguration",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "ServiceRole": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticmapreduce-cluster.html#cfn-elasticmapreduce-cluster-servicerole",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "Tags": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticmapreduce-cluster.html#cfn-elasticmapreduce-cluster-tags",
+ "DuplicatesAllowed": true,
+ "ItemType": "Tag",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "VisibleToAllUsers": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticmapreduce-cluster.html#cfn-elasticmapreduce-cluster-visibletoallusers",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EC2::SpotFleet": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-spotfleet.html",
+ "Properties": {
+ "SpotFleetRequestConfigData": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-spotfleet.html#cfn-ec2-spotfleet-spotfleetrequestconfigdata",
+ "Required": true,
+ "Type": "SpotFleetRequestConfigData",
+ "UpdateType": "Conditional"
+ }
+ }
+ },
+ "AWS::AppSync::GraphQLApi": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-graphqlapi.html",
+ "Attributes": {
+ "GraphQLUrl": {
+ "PrimitiveType": "String"
+ },
+ "Arn": {
+ "PrimitiveType": "String"
+ },
+ "ApiId": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Properties": {
+ "OpenIDConnectConfig": {
+ "Type": "OpenIDConnectConfig",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-graphqlapi.html#cfn-appsync-graphqlapi-openidconnectconfig",
+ "UpdateType": "Mutable"
+ },
+ "UserPoolConfig": {
+ "Type": "UserPoolConfig",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-graphqlapi.html#cfn-appsync-graphqlapi-userpoolconfig",
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-graphqlapi.html#cfn-appsync-graphqlapi-name",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "AuthenticationType": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-graphqlapi.html#cfn-appsync-graphqlapi-authenticationtype",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "LogConfig": {
+ "Type": "LogConfig",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-graphqlapi.html#cfn-appsync-graphqlapi-logconfig",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CloudFront::StreamingDistribution": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-streamingdistribution.html",
+ "Attributes": {
+ "DomainName": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Properties": {
+ "StreamingDistributionConfig": {
+ "Type": "StreamingDistributionConfig",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-streamingdistribution.html#cfn-cloudfront-streamingdistribution-streamingdistributionconfig",
+ "UpdateType": "Mutable"
+ },
+ "Tags": {
+ "Type": "List",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-streamingdistribution.html#cfn-cloudfront-streamingdistribution-tags",
+ "ItemType": "Tag",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::GameLift::Alias": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-alias.html",
+ "Properties": {
+ "Description": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-alias.html#cfn-gamelift-alias-description",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-alias.html#cfn-gamelift-alias-name",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "RoutingStrategy": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-alias.html#cfn-gamelift-alias-routingstrategy",
+ "Required": true,
+ "Type": "RoutingStrategy",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::GuardDuty::Filter": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-filter.html",
+ "Properties": {
+ "Action": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-filter.html#cfn-guardduty-filter-action",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Description": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-filter.html#cfn-guardduty-filter-description",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "DetectorId": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-filter.html#cfn-guardduty-filter-detectorid",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "FindingCriteria": {
+ "Type": "FindingCriteria",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-filter.html#cfn-guardduty-filter-findingcriteria",
+ "UpdateType": "Mutable"
+ },
+ "Rank": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-filter.html#cfn-guardduty-filter-rank",
+ "PrimitiveType": "Integer",
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-filter.html#cfn-guardduty-filter-name",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::EC2::VPNConnectionRoute": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpn-connection-route.html",
+ "Properties": {
+ "DestinationCidrBlock": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpn-connection-route.html#cfn-ec2-vpnconnectionroute-cidrblock",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "VpnConnectionId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpn-connection-route.html#cfn-ec2-vpnconnectionroute-connectionid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::WAF::Rule": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-waf-rule.html",
+ "Properties": {
+ "MetricName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-waf-rule.html#cfn-waf-rule-metricname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-waf-rule.html#cfn-waf-rule-name",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "Predicates": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-waf-rule.html#cfn-waf-rule-predicates",
+ "DuplicatesAllowed": false,
+ "ItemType": "Predicate",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::DirectoryService::MicrosoftAD": {
+ "Attributes": {
+ "Alias": {
+ "PrimitiveType": "String"
+ },
+ "DnsIpAddresses": {
+ "PrimitiveItemType": "String",
+ "Type": "List"
+ }
+ },
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-directoryservice-microsoftad.html",
+ "Properties": {
+ "CreateAlias": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-directoryservice-microsoftad.html#cfn-directoryservice-microsoftad-createalias",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Edition": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-directoryservice-microsoftad.html#cfn-directoryservice-microsoftad-edition",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "EnableSso": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-directoryservice-microsoftad.html#cfn-directoryservice-microsoftad-enablesso",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-directoryservice-microsoftad.html#cfn-directoryservice-microsoftad-name",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "Password": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-directoryservice-microsoftad.html#cfn-directoryservice-microsoftad-password",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "ShortName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-directoryservice-microsoftad.html#cfn-directoryservice-microsoftad-shortname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "VpcSettings": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-directoryservice-microsoftad.html#cfn-directoryservice-microsoftad-vpcsettings",
+ "Required": true,
+ "Type": "VpcSettings",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::SNS::Subscription": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sns-subscription.html",
+ "Properties": {
+ "DeliveryPolicy": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sns-subscription.html#cfn-sns-subscription-deliverypolicy",
+ "PrimitiveType": "Json",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Endpoint": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sns-subscription.html#cfn-sns-endpoint",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "FilterPolicy": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sns-subscription.html#cfn-sns-subscription-filterpolicy",
+ "PrimitiveType": "Json",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Protocol": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sns-subscription.html#cfn-sns-protocol",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "RawMessageDelivery": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sns-subscription.html#cfn-sns-subscription-rawmessagedelivery",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Region": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sns-subscription.html#cfn-sns-subscription-region",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "TopicArn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sns-subscription.html#topicarn",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::EFS::MountTarget": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-efs-mounttarget.html",
+ "Properties": {
+ "FileSystemId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-efs-mounttarget.html#cfn-efs-mounttarget-filesystemid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "IpAddress": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-efs-mounttarget.html#cfn-efs-mounttarget-ipaddress",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "SecurityGroups": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-efs-mounttarget.html#cfn-efs-mounttarget-securitygroups",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": true,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "SubnetId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-efs-mounttarget.html#cfn-efs-mounttarget-subnetid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::SSM::Document": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-document.html",
+ "Properties": {
+ "Content": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-document.html#cfn-ssm-document-content",
+ "PrimitiveType": "Json",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "DocumentType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-document.html#cfn-ssm-document-documenttype",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Tags": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-document.html#cfn-ssm-document-tags",
+ "DuplicatesAllowed": true,
+ "ItemType": "Tag",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::SageMaker::Model": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-model.html",
+ "Attributes": {
+ "ModelName": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Properties": {
+ "ExecutionRoleArn": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-model.html#cfn-sagemaker-model-executionrolearn",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "PrimaryContainer": {
+ "Type": "ContainerDefinition",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-model.html#cfn-sagemaker-model-primarycontainer",
+ "UpdateType": "Immutable"
+ },
+ "ModelName": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-model.html#cfn-sagemaker-model-modelname",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "VpcConfig": {
+ "Type": "VpcConfig",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-model.html#cfn-sagemaker-model-vpcconfig",
+ "UpdateType": "Immutable"
+ },
+ "Tags": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-model.html#cfn-sagemaker-model-tags",
+ "ItemType": "Tag",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::SNS::Topic": {
+ "Attributes": {
+ "TopicName": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sns-topic.html",
+ "Properties": {
+ "DisplayName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sns-topic.html#cfn-sns-topic-displayname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Subscription": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sns-topic.html#cfn-sns-topic-subscription",
+ "DuplicatesAllowed": true,
+ "ItemType": "Subscription",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "TopicName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sns-topic.html#cfn-sns-topic-topicname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::EC2::NetworkInterfacePermission": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-networkinterfacepermission.html",
+ "Properties": {
+ "AwsAccountId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-networkinterfacepermission.html#cfn-ec2-networkinterfacepermission-awsaccountid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "NetworkInterfaceId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-networkinterfacepermission.html#cfn-ec2-networkinterfacepermission-networkinterfaceid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "Permission": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-networkinterfacepermission.html#cfn-ec2-networkinterfacepermission-permission",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::Config::DeliveryChannel": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-deliverychannel.html",
+ "Properties": {
+ "ConfigSnapshotDeliveryProperties": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-deliverychannel.html#cfn-config-deliverychannel-configsnapshotdeliveryproperties",
+ "Required": false,
+ "Type": "ConfigSnapshotDeliveryProperties",
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-deliverychannel.html#cfn-config-deliverychannel-name",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "S3BucketName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-deliverychannel.html#cfn-config-deliverychannel-s3bucketname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "S3KeyPrefix": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-deliverychannel.html#cfn-config-deliverychannel-s3keyprefix",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "SnsTopicARN": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-deliverychannel.html#cfn-config-deliverychannel-snstopicarn",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::GameLift::Build": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-build.html",
+ "Properties": {
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-build.html#cfn-gamelift-build-name",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "StorageLocation": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-build.html#cfn-gamelift-build-storagelocation",
+ "Required": false,
+ "Type": "S3Location",
+ "UpdateType": "Immutable"
+ },
+ "Version": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-build.html#cfn-gamelift-build-version",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ServiceCatalog::TagOption": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-tagoption.html",
+ "Properties": {
+ "Active": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-tagoption.html#cfn-servicecatalog-tagoption-active",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "Value": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-tagoption.html#cfn-servicecatalog-tagoption-value",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "Key": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-tagoption.html#cfn-servicecatalog-tagoption-key",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::SageMaker::NotebookInstanceLifecycleConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstancelifecycleconfig.html",
+ "Attributes": {
+ "NotebookInstanceLifecycleConfigName": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Properties": {
+ "OnStart": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstancelifecycleconfig.html#cfn-sagemaker-notebookinstancelifecycleconfig-onstart",
+ "ItemType": "NotebookInstanceLifecycleHook",
+ "UpdateType": "Mutable"
+ },
+ "NotebookInstanceLifecycleConfigName": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstancelifecycleconfig.html#cfn-sagemaker-notebookinstancelifecycleconfig-notebookinstancelifecycleconfigname",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "OnCreate": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstancelifecycleconfig.html#cfn-sagemaker-notebookinstancelifecycleconfig-oncreate",
+ "ItemType": "NotebookInstanceLifecycleHook",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Cognito::UserPoolGroup": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolgroup.html",
+ "Properties": {
+ "GroupName": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolgroup.html#cfn-cognito-userpoolgroup-groupname",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "Description": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolgroup.html#cfn-cognito-userpoolgroup-description",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "UserPoolId": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolgroup.html#cfn-cognito-userpoolgroup-userpoolid",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "Precedence": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolgroup.html#cfn-cognito-userpoolgroup-precedence",
+ "PrimitiveType": "Double",
+ "UpdateType": "Mutable"
+ },
+ "RoleArn": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolgroup.html#cfn-cognito-userpoolgroup-rolearn",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ApiGateway::Deployment": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-deployment.html",
+ "Properties": {
+ "DeploymentCanarySettings": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-deployment.html#cfn-apigateway-deployment-deploymentcanarysettings",
+ "Required": false,
+ "Type": "DeploymentCanarySettings",
+ "UpdateType": "Immutable"
+ },
+ "Description": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-deployment.html#cfn-apigateway-deployment-description",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "RestApiId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-deployment.html#cfn-apigateway-deployment-restapiid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "StageDescription": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-deployment.html#cfn-apigateway-deployment-stagedescription",
+ "Required": false,
+ "Type": "StageDescription",
+ "UpdateType": "Mutable"
+ },
+ "StageName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-deployment.html#cfn-apigateway-deployment-stagename",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::KMS::Key": {
+ "Attributes": {
+ "Arn": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kms-key.html",
+ "Properties": {
+ "Description": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kms-key.html#cfn-kms-key-description",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "EnableKeyRotation": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kms-key.html#cfn-kms-key-enablekeyrotation",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Enabled": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kms-key.html#cfn-kms-key-enabled",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "KeyPolicy": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kms-key.html#cfn-kms-key-keypolicy",
+ "PrimitiveType": "Json",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "KeyUsage": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kms-key.html#cfn-kms-key-keyusage",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Tags": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kms-key.html#cfn-kms-key-tags",
+ "DuplicatesAllowed": true,
+ "ItemType": "Tag",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CloudWatch::Alarm": {
+ "Attributes": {
+ "Arn": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html",
+ "Properties": {
+ "ActionsEnabled": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-actionsenabled",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "AlarmActions": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-alarmactions",
+ "DuplicatesAllowed": true,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "AlarmDescription": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-alarmdescription",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "AlarmName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-alarmname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "ComparisonOperator": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-comparisonoperator",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Dimensions": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-dimension",
+ "DuplicatesAllowed": true,
+ "ItemType": "Dimension",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "EvaluateLowSampleCountPercentile": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-evaluatelowsamplecountpercentile",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "EvaluationPeriods": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-evaluationperiods",
+ "PrimitiveType": "Integer",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "ExtendedStatistic": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-extendedstatistic",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "InsufficientDataActions": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-insufficientdataactions",
+ "DuplicatesAllowed": true,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "MetricName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-metricname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Namespace": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-namespace",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "OKActions": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-okactions",
+ "DuplicatesAllowed": true,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "Period": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-period",
+ "PrimitiveType": "Integer",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Statistic": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-statistic",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Threshold": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-threshold",
+ "PrimitiveType": "Double",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "TreatMissingData": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-treatmissingdata",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Unit": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-unit",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Redshift::Cluster": {
+ "Attributes": {
+ "Endpoint.Address": {
+ "PrimitiveType": "String"
+ },
+ "Endpoint.Port": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html",
+ "Properties": {
+ "AllowVersionUpgrade": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html#cfn-redshift-cluster-allowversionupgrade",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "AutomatedSnapshotRetentionPeriod": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html#cfn-redshift-cluster-automatedsnapshotretentionperiod",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "AvailabilityZone": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html#cfn-redshift-cluster-availabilityzone",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "ClusterIdentifier": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html#cfn-redshift-cluster-clusteridentifier",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "ClusterParameterGroupName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html#cfn-redshift-cluster-clusterparametergroupname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "ClusterSecurityGroups": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html#cfn-redshift-cluster-clustersecuritygroups",
+ "DuplicatesAllowed": true,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "ClusterSubnetGroupName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html#cfn-redshift-cluster-clustersubnetgroupname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "ClusterType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html#cfn-redshift-cluster-clustertype",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "ClusterVersion": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html#cfn-redshift-cluster-clusterversion",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "DBName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html#cfn-redshift-cluster-dbname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "ElasticIp": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html#cfn-redshift-cluster-elasticip",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Encrypted": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html#cfn-redshift-cluster-encrypted",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "HsmClientCertificateIdentifier": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html#cfn-redshift-cluster-hsmclientcertidentifier",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "HsmConfigurationIdentifier": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html#cfn-redshift-cluster-HsmConfigurationIdentifier",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "IamRoles": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html#cfn-redshift-cluster-iamroles",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "KmsKeyId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html#cfn-redshift-cluster-kmskeyid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "LoggingProperties": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html#cfn-redshift-cluster-loggingproperties",
+ "Required": false,
+ "Type": "LoggingProperties",
+ "UpdateType": "Mutable"
+ },
+ "MasterUserPassword": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html#cfn-redshift-cluster-masteruserpassword",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "MasterUsername": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html#cfn-redshift-cluster-masterusername",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "NodeType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html#cfn-redshift-cluster-nodetype",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "NumberOfNodes": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html#cfn-redshift-cluster-nodetype",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "OwnerAccount": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html#cfn-redshift-cluster-owneraccount",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Port": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html#cfn-redshift-cluster-port",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "PreferredMaintenanceWindow": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html#cfn-redshift-cluster-preferredmaintenancewindow",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "PubliclyAccessible": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html#cfn-redshift-cluster-publiclyaccessible",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "SnapshotClusterIdentifier": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html#cfn-redshift-cluster-snapshotclusteridentifier",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "SnapshotIdentifier": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html#cfn-redshift-cluster-snapshotidentifier",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Tags": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html#cfn-redshift-cluster-tags",
+ "DuplicatesAllowed": true,
+ "ItemType": "Tag",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "VpcSecurityGroupIds": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html#cfn-redshift-cluster-vpcsecuritygroupids",
+ "DuplicatesAllowed": true,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::OpsWorks::App": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-app.html",
+ "Properties": {
+ "AppSource": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-app.html#cfn-opsworks-app-appsource",
+ "Required": false,
+ "Type": "Source",
+ "UpdateType": "Mutable"
+ },
+ "Attributes": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-app.html#cfn-opsworks-app-attributes",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "Map",
+ "UpdateType": "Mutable"
+ },
+ "DataSources": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-app.html#cfn-opsworks-app-datasources",
+ "DuplicatesAllowed": false,
+ "ItemType": "DataSource",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "Description": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-app.html#cfn-opsworks-app-description",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Domains": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-app.html#cfn-opsworks-app-domains",
+ "DuplicatesAllowed": true,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "EnableSsl": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-app.html#cfn-opsworks-app-enablessl",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Environment": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-app.html#cfn-opsworks-app-environment",
+ "DuplicatesAllowed": true,
+ "ItemType": "EnvironmentVariable",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-app.html#cfn-opsworks-app-name",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Shortname": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-app.html#cfn-opsworks-app-shortname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "SslConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-app.html#cfn-opsworks-app-sslconfiguration",
+ "Required": false,
+ "Type": "SslConfiguration",
+ "UpdateType": "Mutable"
+ },
+ "StackId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-app.html#cfn-opsworks-app-stackid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "Type": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-app.html#cfn-opsworks-app-type",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Lambda::EventSourceMapping": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html",
+ "Properties": {
+ "BatchSize": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-batchsize",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Enabled": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-enabled",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "EventSourceArn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-eventsourcearn",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "FunctionName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-functionname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "StartingPosition": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-startingposition",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::CertificateManager::Certificate": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-certificatemanager-certificate.html",
+ "Properties": {
+ "DomainName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-certificatemanager-certificate.html#cfn-certificatemanager-certificate-domainname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "DomainValidationOptions": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-certificatemanager-certificate.html#cfn-certificatemanager-certificate-domainvalidationoptions",
+ "DuplicatesAllowed": false,
+ "ItemType": "DomainValidationOption",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ },
+ "SubjectAlternativeNames": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-certificatemanager-certificate.html#cfn-certificatemanager-certificate-subjectalternativenames",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ },
+ "Tags": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-certificatemanager-certificate.html#cfn-certificatemanager-certificate-tags",
+ "DuplicatesAllowed": true,
+ "ItemType": "Tag",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "ValidationMethod": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-certificatemanager-certificate.html#cfn-certificatemanager-certificate-validationmethod",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::ApiGateway::Authorizer": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-authorizer.html",
+ "Properties": {
+ "AuthType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-authorizer.html#cfn-apigateway-authorizer-authtype",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "AuthorizerCredentials": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-authorizer.html#cfn-apigateway-authorizer-authorizercredentials",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "AuthorizerResultTtlInSeconds": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-authorizer.html#cfn-apigateway-authorizer-authorizerresultttlinseconds",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "AuthorizerUri": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-authorizer.html#cfn-apigateway-authorizer-authorizeruri",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "IdentitySource": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-authorizer.html#cfn-apigateway-authorizer-identitysource",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "IdentityValidationExpression": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-authorizer.html#cfn-apigateway-authorizer-identityvalidationexpression",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-authorizer.html#cfn-apigateway-authorizer-name",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "ProviderARNs": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-authorizer.html#cfn-apigateway-authorizer-providerarns",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "RestApiId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-authorizer.html#cfn-apigateway-authorizer-restapiid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "Type": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-authorizer.html#cfn-apigateway-authorizer-type",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::IoT1Click::Project": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot1click-project.html",
+ "Attributes": {
+ "ProjectName": {
+ "PrimitiveType": "String"
+ },
+ "Arn": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Properties": {
+ "Description": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot1click-project.html#cfn-iot1click-project-description",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "PlacementTemplate": {
+ "Type": "PlacementTemplate",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot1click-project.html#cfn-iot1click-project-placementtemplate",
+ "UpdateType": "Mutable"
+ },
+ "ProjectName": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot1click-project.html#cfn-iot1click-project-projectname",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::EC2::EIP": {
+ "Attributes": {
+ "AllocationId": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-eip.html",
+ "Properties": {
+ "Domain": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-eip.html#cfn-ec2-eip-domain",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "InstanceId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-eip.html#cfn-ec2-eip-instanceid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Inspector::ResourceGroup": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspector-resourcegroup.html",
+ "Attributes": {
+ "Arn": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Properties": {
+ "ResourceGroupTags": {
+ "Type": "List",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspector-resourcegroup.html#cfn-inspector-resourcegroup-resourcegrouptags",
+ "ItemType": "Tag",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::ApiGateway::DomainName": {
+ "Attributes": {
+ "DistributionDomainName": {
+ "PrimitiveType": "String"
+ },
+ "DistributionHostedZoneId": {
+ "PrimitiveType": "String"
+ },
+ "RegionalDomainName": {
+ "PrimitiveType": "String"
+ },
+ "RegionalHostedZoneId": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-domainname.html",
+ "Properties": {
+ "CertificateArn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-domainname.html#cfn-apigateway-domainname-certificatearn",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "DomainName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-domainname.html#cfn-apigateway-domainname-domainname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "EndpointConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-domainname.html#cfn-apigateway-domainname-endpointconfiguration",
+ "Required": false,
+ "Type": "EndpointConfiguration",
+ "UpdateType": "Mutable"
+ },
+ "RegionalCertificateArn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-domainname.html#cfn-apigateway-domainname-regionalcertificatearn",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Batch::JobDefinition": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-jobdefinition.html",
+ "Properties": {
+ "Type": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-jobdefinition.html#cfn-batch-jobdefinition-type",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Parameters": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-jobdefinition.html#cfn-batch-jobdefinition-parameters",
+ "PrimitiveType": "Json",
+ "UpdateType": "Mutable"
+ },
+ "Timeout": {
+ "Type": "Timeout",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-jobdefinition.html#cfn-batch-jobdefinition-timeout",
+ "UpdateType": "Mutable"
+ },
+ "ContainerProperties": {
+ "Type": "ContainerProperties",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-jobdefinition.html#cfn-batch-jobdefinition-containerproperties",
+ "UpdateType": "Mutable"
+ },
+ "JobDefinitionName": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-jobdefinition.html#cfn-batch-jobdefinition-jobdefinitionname",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "RetryStrategy": {
+ "Type": "RetryStrategy",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-jobdefinition.html#cfn-batch-jobdefinition-retrystrategy",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ServiceCatalog::PortfolioPrincipalAssociation": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-portfolioprincipalassociation.html",
+ "Properties": {
+ "PrincipalARN": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-portfolioprincipalassociation.html#cfn-servicecatalog-portfolioprincipalassociation-principalarn",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "AcceptLanguage": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-portfolioprincipalassociation.html#cfn-servicecatalog-portfolioprincipalassociation-acceptlanguage",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "PortfolioId": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-portfolioprincipalassociation.html#cfn-servicecatalog-portfolioprincipalassociation-portfolioid",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "PrincipalType": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-portfolioprincipalassociation.html#cfn-servicecatalog-portfolioprincipalassociation-principaltype",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::EC2::VPCEndpointConnectionNotification": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpointconnectionnotification.html",
+ "Properties": {
+ "ConnectionEvents": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpointconnectionnotification.html#cfn-ec2-vpcendpointconnectionnotification-connectionevents",
+ "UpdateType": "Mutable"
+ },
+ "VPCEndpointId": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpointconnectionnotification.html#cfn-ec2-vpcendpointconnectionnotification-vpcendpointid",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "ServiceId": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpointconnectionnotification.html#cfn-ec2-vpcendpointconnectionnotification-serviceid",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "ConnectionNotificationArn": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpointconnectionnotification.html#cfn-ec2-vpcendpointconnectionnotification-connectionnotificationarn",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::GameLift::Fleet": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-fleet.html",
+ "Properties": {
+ "BuildId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-fleet.html#cfn-gamelift-fleet-buildid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "Description": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-fleet.html#cfn-gamelift-fleet-description",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "DesiredEC2Instances": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-fleet.html#cfn-gamelift-fleet-desiredec2instances",
+ "PrimitiveType": "Integer",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "EC2InboundPermissions": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-fleet.html#cfn-gamelift-fleet-ec2inboundpermissions",
+ "DuplicatesAllowed": false,
+ "ItemType": "IpPermission",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "EC2InstanceType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-fleet.html#cfn-gamelift-fleet-ec2instancetype",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "LogPaths": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-fleet.html#cfn-gamelift-fleet-logpaths",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ },
+ "MaxSize": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-fleet.html#cfn-gamelift-fleet-maxsize",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "MinSize": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-fleet.html#cfn-gamelift-fleet-minsize",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-fleet.html#cfn-gamelift-fleet-name",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "ServerLaunchParameters": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-fleet.html#cfn-gamelift-fleet-serverlaunchparameters",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "ServerLaunchPath": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-fleet.html#cfn-gamelift-fleet-serverlaunchpath",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::EC2::SecurityGroupIngress": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-ingress.html",
+ "Properties": {
+ "CidrIp": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-ingress.html#cfn-ec2-security-group-ingress-cidrip",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "CidrIpv6": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-ingress.html#cfn-ec2-security-group-ingress-cidripv6",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Description": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-ingress.html#cfn-ec2-security-group-ingress-description",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "FromPort": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-ingress.html#cfn-ec2-security-group-ingress-fromport",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "GroupId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-ingress.html#cfn-ec2-security-group-ingress-groupid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "GroupName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-ingress.html#cfn-ec2-security-group-ingress-groupname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "IpProtocol": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-ingress.html#cfn-ec2-security-group-ingress-ipprotocol",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "SourceSecurityGroupId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-ingress.html#cfn-ec2-security-group-ingress-sourcesecuritygroupid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "SourceSecurityGroupName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-ingress.html#cfn-ec2-security-group-ingress-sourcesecuritygroupname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "SourceSecurityGroupOwnerId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-ingress.html#cfn-ec2-security-group-ingress-sourcesecuritygroupownerid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "ToPort": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-ingress.html#cfn-ec2-security-group-ingress-toport",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::ApiGateway::DocumentationPart": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-documentationpart.html",
+ "Properties": {
+ "Location": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-documentationpart.html#cfn-apigateway-documentationpart-location",
+ "Required": true,
+ "Type": "Location",
+ "UpdateType": "Immutable"
+ },
+ "Properties": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-documentationpart.html#cfn-apigateway-documentationpart-properties",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "RestApiId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-documentationpart.html#cfn-apigateway-documentationpart-restapiid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::RDS::DBCluster": {
+ "Attributes": {
+ "Endpoint.Address": {
+ "PrimitiveType": "String"
+ },
+ "Endpoint.Port": {
+ "PrimitiveType": "String"
+ },
+ "ReadEndpoint.Address": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html",
+ "Properties": {
+ "AvailabilityZones": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#cfn-rds-dbcluster-availabilityzones",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ },
+ "BackupRetentionPeriod": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#cfn-rds-dbcluster-backuprententionperiod",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "DBClusterIdentifier": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#cfn-rds-dbcluster-dbclusteridentifier",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "DBClusterParameterGroupName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#cfn-rds-dbcluster-dbclusterparametergroupname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "DBSubnetGroupName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#cfn-rds-dbcluster-dbsubnetgroupname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "DatabaseName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#cfn-rds-dbcluster-databasename",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Engine": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#cfn-rds-dbcluster-engine",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "EngineMode": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#cfn-rds-dbcluster-enginemode",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "EngineVersion": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#cfn-rds-dbcluster-engineversion",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "KmsKeyId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#cfn-rds-dbcluster-kmskeyid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "MasterUserPassword": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#cfn-rds-dbcluster-masteruserpassword",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "MasterUsername": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#cfn-rds-dbcluster-masterusername",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Port": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#cfn-rds-dbcluster-port",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "PreferredBackupWindow": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#cfn-rds-dbcluster-preferredbackupwindow",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "PreferredMaintenanceWindow": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#cfn-rds-dbcluster-preferredmaintenancewindow",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "ReplicationSourceIdentifier": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#cfn-rds-dbcluster-replicationsourceidentifier",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "ScalingConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#cfn-rds-dbcluster-scalingconfiguration",
+ "Required": false,
+ "Type": "ScalingConfiguration",
+ "UpdateType": "Mutable"
+ },
+ "SnapshotIdentifier": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#cfn-rds-dbcluster-snapshotidentifier",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "StorageEncrypted": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#cfn-rds-dbcluster-storageencrypted",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Tags": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#cfn-rds-dbcluster-tags",
+ "DuplicatesAllowed": true,
+ "ItemType": "Tag",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "VpcSecurityGroupIds": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#cfn-rds-dbcluster-vpcsecuritygroupids",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ECS::Service": {
+ "Attributes": {
+ "Name": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-service.html",
+ "Properties": {
+ "Cluster": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-service.html#cfn-ecs-service-cluster",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "DeploymentConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-service.html#cfn-ecs-service-deploymentconfiguration",
+ "Required": false,
+ "Type": "DeploymentConfiguration",
+ "UpdateType": "Mutable"
+ },
+ "DesiredCount": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-service.html#cfn-ecs-service-desiredcount",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "HealthCheckGracePeriodSeconds": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-service.html#cfn-ecs-service-healthcheckgraceperiodseconds",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "LaunchType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-service.html#cfn-ecs-service-launchtype",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "LoadBalancers": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-service.html#cfn-ecs-service-loadbalancers",
+ "DuplicatesAllowed": false,
+ "ItemType": "LoadBalancer",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ },
+ "NetworkConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-service.html#cfn-ecs-service-networkconfiguration",
+ "Required": false,
+ "Type": "NetworkConfiguration",
+ "UpdateType": "Mutable"
+ },
+ "PlacementConstraints": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-service.html#cfn-ecs-service-placementconstraints",
+ "DuplicatesAllowed": false,
+ "ItemType": "PlacementConstraint",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ },
+ "PlacementStrategies": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-service.html#cfn-ecs-service-placementstrategies",
+ "DuplicatesAllowed": false,
+ "ItemType": "PlacementStrategy",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ },
+ "PlatformVersion": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-service.html#cfn-ecs-service-platformversion",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Role": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-service.html#cfn-ecs-service-role",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "SchedulingStrategy": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-service.html#cfn-ecs-service-schedulingstrategy",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "ServiceName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-service.html#cfn-ecs-service-servicename",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "ServiceRegistries": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-service.html#cfn-ecs-service-serviceregistries",
+ "DuplicatesAllowed": false,
+ "ItemType": "ServiceRegistry",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ },
+ "TaskDefinition": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-service.html#cfn-ecs-service-taskdefinition",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::IAM::UserToGroupAddition": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-addusertogroup.html",
+ "Properties": {
+ "GroupName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-addusertogroup.html#cfn-iam-addusertogroup-groupname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Users": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-addusertogroup.html#cfn-iam-addusertogroup-users",
+ "DuplicatesAllowed": true,
+ "PrimitiveItemType": "String",
+ "Required": true,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::RDS::DBSubnetGroup": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbsubnet-group.html",
+ "Properties": {
+ "DBSubnetGroupDescription": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbsubnet-group.html#cfn-rds-dbsubnetgroup-dbsubnetgroupdescription",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "DBSubnetGroupName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbsubnet-group.html#cfn-rds-dbsubnetgroup-dbsubnetgroupname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "SubnetIds": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbsubnet-group.html#cfn-rds-dbsubnetgroup-subnetids",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": true,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "Tags": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbsubnet-group.html#cfn-rds-dbsubnetgroup-tags",
+ "DuplicatesAllowed": true,
+ "ItemType": "Tag",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Batch::JobQueue": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-jobqueue.html",
+ "Properties": {
+ "ComputeEnvironmentOrder": {
+ "Type": "List",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-jobqueue.html#cfn-batch-jobqueue-computeenvironmentorder",
+ "ItemType": "ComputeEnvironmentOrder",
+ "UpdateType": "Mutable"
+ },
+ "Priority": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-jobqueue.html#cfn-batch-jobqueue-priority",
+ "PrimitiveType": "Integer",
+ "UpdateType": "Mutable"
+ },
+ "State": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-jobqueue.html#cfn-batch-jobqueue-state",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "JobQueueName": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-jobqueue.html#cfn-batch-jobqueue-jobqueuename",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::IoT::Thing": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-thing.html",
+ "Properties": {
+ "AttributePayload": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-thing.html#cfn-iot-thing-attributepayload",
+ "Required": false,
+ "Type": "AttributePayload",
+ "UpdateType": "Mutable"
+ },
+ "ThingName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-thing.html#cfn-iot-thing-thingname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::ElasticLoadBalancing::LoadBalancer": {
+ "Attributes": {
+ "CanonicalHostedZoneName": {
+ "PrimitiveType": "String"
+ },
+ "CanonicalHostedZoneNameID": {
+ "PrimitiveType": "String"
+ },
+ "DNSName": {
+ "PrimitiveType": "String"
+ },
+ "SourceSecurityGroup.GroupName": {
+ "PrimitiveType": "String"
+ },
+ "SourceSecurityGroup.OwnerAlias": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb.html",
+ "Properties": {
+ "AccessLoggingPolicy": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb.html#cfn-ec2-elb-accessloggingpolicy",
+ "Required": false,
+ "Type": "AccessLoggingPolicy",
+ "UpdateType": "Mutable"
+ },
+ "AppCookieStickinessPolicy": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb.html#cfn-ec2-elb-appcookiestickinesspolicy",
+ "DuplicatesAllowed": false,
+ "ItemType": "AppCookieStickinessPolicy",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "AvailabilityZones": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb.html#cfn-ec2-elb-availabilityzones",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Conditional"
+ },
+ "ConnectionDrainingPolicy": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb.html#cfn-ec2-elb-connectiondrainingpolicy",
+ "Required": false,
+ "Type": "ConnectionDrainingPolicy",
+ "UpdateType": "Mutable"
+ },
+ "ConnectionSettings": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb.html#cfn-ec2-elb-connectionsettings",
+ "Required": false,
+ "Type": "ConnectionSettings",
+ "UpdateType": "Mutable"
+ },
+ "CrossZone": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb.html#cfn-ec2-elb-crosszone",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "HealthCheck": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb.html#cfn-ec2-elb-healthcheck",
+ "Required": false,
+ "Type": "HealthCheck",
+ "UpdateType": "Conditional"
+ },
+ "Instances": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb.html#cfn-ec2-elb-instances",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "LBCookieStickinessPolicy": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb.html#cfn-ec2-elb-lbcookiestickinesspolicy",
+ "DuplicatesAllowed": false,
+ "ItemType": "LBCookieStickinessPolicy",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "Listeners": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb.html#cfn-ec2-elb-listeners",
+ "DuplicatesAllowed": false,
+ "ItemType": "Listeners",
+ "Required": true,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "LoadBalancerName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb.html#cfn-ec2-elb-elbname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Policies": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb.html#cfn-ec2-elb-policies",
+ "DuplicatesAllowed": false,
+ "ItemType": "Policies",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "Scheme": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb.html#cfn-ec2-elb-scheme",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "SecurityGroups": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb.html#cfn-ec2-elb-securitygroups",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "Subnets": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb.html#cfn-ec2-elb-subnets",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Conditional"
+ },
+ "Tags": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb.html#cfn-elasticloadbalancing-loadbalancer-tags",
+ "DuplicatesAllowed": true,
+ "ItemType": "Tag",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::OpsWorks::Layer": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-layer.html",
+ "Properties": {
+ "Attributes": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-layer.html#cfn-opsworks-layer-attributes",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "Map",
+ "UpdateType": "Mutable"
+ },
+ "AutoAssignElasticIps": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-layer.html#cfn-opsworks-layer-autoassignelasticips",
+ "PrimitiveType": "Boolean",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "AutoAssignPublicIps": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-layer.html#cfn-opsworks-layer-autoassignpublicips",
+ "PrimitiveType": "Boolean",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "CustomInstanceProfileArn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-layer.html#cfn-opsworks-layer-custominstanceprofilearn",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "CustomJson": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-layer.html#cfn-opsworks-layer-customjson",
+ "PrimitiveType": "Json",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "CustomRecipes": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-layer.html#cfn-opsworks-layer-customrecipes",
+ "Required": false,
+ "Type": "Recipes",
+ "UpdateType": "Mutable"
+ },
+ "CustomSecurityGroupIds": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-layer.html#cfn-opsworks-layer-customsecuritygroupids",
+ "DuplicatesAllowed": true,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "EnableAutoHealing": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-layer.html#cfn-opsworks-layer-enableautohealing",
+ "PrimitiveType": "Boolean",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "InstallUpdatesOnBoot": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-layer.html#cfn-opsworks-layer-installupdatesonboot",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "LifecycleEventConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-layer.html#cfn-opsworks-layer-lifecycleeventconfiguration",
+ "Required": false,
+ "Type": "LifecycleEventConfiguration",
+ "UpdateType": "Mutable"
+ },
+ "LoadBasedAutoScaling": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-layer.html#cfn-opsworks-layer-loadbasedautoscaling",
+ "Required": false,
+ "Type": "LoadBasedAutoScaling",
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-layer.html#cfn-opsworks-layer-name",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Packages": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-layer.html#cfn-opsworks-layer-packages",
+ "DuplicatesAllowed": true,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "Shortname": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-layer.html#cfn-opsworks-layer-shortname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "StackId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-layer.html#cfn-opsworks-layer-stackid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "Tags": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-layer.html#cfn-opsworks-layer-tags",
+ "DuplicatesAllowed": true,
+ "ItemType": "Tag",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "Type": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-layer.html#cfn-opsworks-layer-type",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "UseEbsOptimizedInstances": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-layer.html#cfn-opsworks-layer-useebsoptimizedinstances",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "VolumeConfigurations": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-layer.html#cfn-opsworks-layer-volumeconfigurations",
+ "DuplicatesAllowed": true,
+ "ItemType": "VolumeConfiguration",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::DMS::Certificate": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-certificate.html",
+ "Properties": {
+ "CertificateIdentifier": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-certificate.html#cfn-dms-certificate-certificateidentifier",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "CertificatePem": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-certificate.html#cfn-dms-certificate-certificatepem",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "CertificateWallet": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-certificate.html#cfn-dms-certificate-certificatewallet",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::ApiGateway::ApiKey": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-apikey.html",
+ "Properties": {
+ "CustomerId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-apikey.html#cfn-apigateway-apikey-customerid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Description": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-apikey.html#cfn-apigateway-apikey-description",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Enabled": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-apikey.html#cfn-apigateway-apikey-enabled",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "GenerateDistinctId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-apikey.html#cfn-apigateway-apikey-generatedistinctid",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-apikey.html#cfn-apigateway-apikey-name",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "StageKeys": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-apikey.html#cfn-apigateway-apikey-stagekeys",
+ "DuplicatesAllowed": false,
+ "ItemType": "StageKey",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Glue::Table": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-table.html",
+ "Properties": {
+ "TableInput": {
+ "Type": "TableInput",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-table.html#cfn-glue-table-tableinput",
+ "UpdateType": "Mutable"
+ },
+ "DatabaseName": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-table.html#cfn-glue-table-databasename",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "CatalogId": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-table.html#cfn-glue-table-catalogid",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::EC2::SubnetRouteTableAssociation": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnet-route-table-assoc.html",
+ "Properties": {
+ "RouteTableId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnet-route-table-assoc.html#cfn-ec2-subnetroutetableassociation-routetableid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "SubnetId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnet-route-table-assoc.html#cfn-ec2-subnetroutetableassociation-subnetid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::ElastiCache::SecurityGroup": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-security-group.html",
+ "Properties": {
+ "Description": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-security-group.html#cfn-elasticache-securitygroup-description",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::IoT::Policy": {
+ "Attributes": {
+ "Arn": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-policy.html",
+ "Properties": {
+ "PolicyDocument": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-policy.html#cfn-iot-policy-policydocument",
+ "PrimitiveType": "Json",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "PolicyName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-policy.html#cfn-iot-policy-policyname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::IAM::InstanceProfile": {
+ "Attributes": {
+ "Arn": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-instanceprofile.html",
+ "Properties": {
+ "InstanceProfileName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-instanceprofile.html#cfn-iam-instanceprofile-instanceprofilename",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Path": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-instanceprofile.html#cfn-iam-instanceprofile-path",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Roles": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-instanceprofile.html#cfn-iam-instanceprofile-roles",
+ "DuplicatesAllowed": true,
+ "PrimitiveItemType": "String",
+ "Required": true,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CodeDeploy::DeploymentGroup": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codedeploy-deploymentgroup.html",
+ "Properties": {
+ "AlarmConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codedeploy-deploymentgroup.html#cfn-codedeploy-deploymentgroup-alarmconfiguration",
+ "Required": false,
+ "Type": "AlarmConfiguration",
+ "UpdateType": "Mutable"
+ },
+ "ApplicationName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codedeploy-deploymentgroup.html#cfn-codedeploy-deploymentgroup-applicationname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "AutoRollbackConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codedeploy-deploymentgroup.html#cfn-codedeploy-deploymentgroup-autorollbackconfiguration",
+ "Required": false,
+ "Type": "AutoRollbackConfiguration",
+ "UpdateType": "Mutable"
+ },
+ "AutoScalingGroups": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codedeploy-deploymentgroup.html#cfn-codedeploy-deploymentgroup-autoscalinggroups",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "Deployment": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codedeploy-deploymentgroup.html#cfn-codedeploy-deploymentgroup-deployment",
+ "Required": false,
+ "Type": "Deployment",
+ "UpdateType": "Mutable"
+ },
+ "DeploymentConfigName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codedeploy-deploymentgroup.html#cfn-codedeploy-deploymentgroup-deploymentconfigname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "DeploymentGroupName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codedeploy-deploymentgroup.html#cfn-codedeploy-deploymentgroup-deploymentgroupname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "DeploymentStyle": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codedeploy-deploymentgroup.html#cfn-codedeploy-deploymentgroup-deploymentstyle",
+ "Required": false,
+ "Type": "DeploymentStyle",
+ "UpdateType": "Mutable"
+ },
+ "Ec2TagFilters": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codedeploy-deploymentgroup.html#cfn-codedeploy-deploymentgroup-ec2tagfilters",
+ "DuplicatesAllowed": false,
+ "ItemType": "EC2TagFilter",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "Ec2TagSet": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codedeploy-deploymentgroup.html#cfn-codedeploy-deploymentgroup-ec2tagset",
+ "Required": false,
+ "Type": "EC2TagSet",
+ "UpdateType": "Mutable"
+ },
+ "LoadBalancerInfo": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codedeploy-deploymentgroup.html#cfn-codedeploy-deploymentgroup-loadbalancerinfo",
+ "Required": false,
+ "Type": "LoadBalancerInfo",
+ "UpdateType": "Mutable"
+ },
+ "OnPremisesInstanceTagFilters": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codedeploy-deploymentgroup.html#cfn-codedeploy-deploymentgroup-onpremisesinstancetagfilters",
+ "DuplicatesAllowed": false,
+ "ItemType": "TagFilter",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "OnPremisesTagSet": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codedeploy-deploymentgroup.html#cfn-codedeploy-deploymentgroup-onpremisestagset",
+ "Required": false,
+ "Type": "OnPremisesTagSet",
+ "UpdateType": "Mutable"
+ },
+ "ServiceRoleArn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codedeploy-deploymentgroup.html#cfn-codedeploy-deploymentgroup-servicerolearn",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "TriggerConfigurations": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codedeploy-deploymentgroup.html#cfn-codedeploy-deploymentgroup-triggerconfigurations",
+ "DuplicatesAllowed": false,
+ "ItemType": "TriggerConfig",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Batch::ComputeEnvironment": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-computeenvironment.html",
+ "Properties": {
+ "Type": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-computeenvironment.html#cfn-batch-computeenvironment-type",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "ServiceRole": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-computeenvironment.html#cfn-batch-computeenvironment-servicerole",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "ComputeEnvironmentName": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-computeenvironment.html#cfn-batch-computeenvironment-computeenvironmentname",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "ComputeResources": {
+ "Type": "ComputeResources",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-computeenvironment.html#cfn-batch-computeenvironment-computeresources",
+ "UpdateType": "Mutable"
+ },
+ "State": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-computeenvironment.html#cfn-batch-computeenvironment-state",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ApiGateway::Model": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-model.html",
+ "Properties": {
+ "ContentType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-model.html#cfn-apigateway-model-contenttype",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Description": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-model.html#cfn-apigateway-model-description",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-model.html#cfn-apigateway-model-name",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "RestApiId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-model.html#cfn-apigateway-model-restapiid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "Schema": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-model.html#cfn-apigateway-model-schema",
+ "PrimitiveType": "Json",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EC2::Route": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-route.html",
+ "Properties": {
+ "DestinationCidrBlock": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-route.html#cfn-ec2-route-destinationcidrblock",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "DestinationIpv6CidrBlock": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-route.html#cfn-ec2-route-destinationipv6cidrblock",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "EgressOnlyInternetGatewayId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-route.html#cfn-ec2-route-egressonlyinternetgatewayid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "GatewayId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-route.html#cfn-ec2-route-gatewayid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "InstanceId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-route.html#cfn-ec2-route-instanceid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "NatGatewayId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-route.html#cfn-ec2-route-natgatewayid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "NetworkInterfaceId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-route.html#cfn-ec2-route-networkinterfaceid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "RouteTableId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-route.html#cfn-ec2-route-routetableid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "VpcPeeringConnectionId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-route.html#cfn-ec2-route-vpcpeeringconnectionid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::GuardDuty::ThreatIntelSet": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-threatintelset.html",
+ "Properties": {
+ "Format": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-threatintelset.html#cfn-guardduty-threatintelset-format",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "Activate": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-threatintelset.html#cfn-guardduty-threatintelset-activate",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "DetectorId": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-threatintelset.html#cfn-guardduty-threatintelset-detectorid",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "Name": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-threatintelset.html#cfn-guardduty-threatintelset-name",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Location": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-threatintelset.html#cfn-guardduty-threatintelset-location",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Logs::MetricFilter": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-metricfilter.html",
+ "Properties": {
+ "FilterPattern": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-metricfilter.html#cfn-cwl-metricfilter-filterpattern",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "LogGroupName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-metricfilter.html#cfn-cwl-metricfilter-loggroupname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "MetricTransformations": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-metricfilter.html#cfn-cwl-metricfilter-metrictransformations",
+ "DuplicatesAllowed": false,
+ "ItemType": "MetricTransformation",
+ "Required": true,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ApiGateway::Resource": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-resource.html",
+ "Properties": {
+ "ParentId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-resource.html#cfn-apigateway-resource-parentid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "PathPart": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-resource.html#cfn-apigateway-resource-pathpart",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "RestApiId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-resource.html#cfn-apigateway-resource-restapiid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::IoT1Click::Device": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot1click-device.html",
+ "Attributes": {
+ "DeviceId": {
+ "PrimitiveType": "String"
+ },
+ "Enabled": {
+ "PrimitiveType": "Boolean"
+ },
+ "Arn": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Properties": {
+ "DeviceId": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot1click-device.html#cfn-iot1click-device-deviceid",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "Enabled": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot1click-device.html#cfn-iot1click-device-enabled",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Glue::Connection": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-connection.html",
+ "Properties": {
+ "ConnectionInput": {
+ "Type": "ConnectionInput",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-connection.html#cfn-glue-connection-connectioninput",
+ "UpdateType": "Mutable"
+ },
+ "CatalogId": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-connection.html#cfn-glue-connection-catalogid",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::SES::ReceiptFilter": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-receiptfilter.html",
+ "Properties": {
+ "Filter": {
+ "Type": "Filter",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-receiptfilter.html#cfn-ses-receiptfilter-filter",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::EC2::FlowLog": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-flowlog.html",
+ "Properties": {
+ "DeliverLogsPermissionArn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-flowlog.html#cfn-ec2-flowlog-deliverlogspermissionarn",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "LogDestination": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-flowlog.html#cfn-ec2-flowlog-logdestination",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "LogDestinationType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-flowlog.html#cfn-ec2-flowlog-logdestinationtype",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "LogGroupName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-flowlog.html#cfn-ec2-flowlog-loggroupname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "ResourceId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-flowlog.html#cfn-ec2-flowlog-resourceid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "ResourceType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-flowlog.html#cfn-ec2-flowlog-resourcetype",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "TrafficType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-flowlog.html#cfn-ec2-flowlog-traffictype",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::Cognito::IdentityPool": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-identitypool.html",
+ "Attributes": {
+ "Name": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Properties": {
+ "PushSync": {
+ "Type": "PushSync",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-identitypool.html#cfn-cognito-identitypool-pushsync",
+ "UpdateType": "Mutable"
+ },
+ "CognitoIdentityProviders": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-identitypool.html#cfn-cognito-identitypool-cognitoidentityproviders",
+ "ItemType": "CognitoIdentityProvider",
+ "UpdateType": "Mutable"
+ },
+ "CognitoEvents": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-identitypool.html#cfn-cognito-identitypool-cognitoevents",
+ "PrimitiveType": "Json",
+ "UpdateType": "Mutable"
+ },
+ "DeveloperProviderName": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-identitypool.html#cfn-cognito-identitypool-developerprovidername",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "CognitoStreams": {
+ "Type": "CognitoStreams",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-identitypool.html#cfn-cognito-identitypool-cognitostreams",
+ "UpdateType": "Mutable"
+ },
+ "IdentityPoolName": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-identitypool.html#cfn-cognito-identitypool-identitypoolname",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "AllowUnauthenticatedIdentities": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-identitypool.html#cfn-cognito-identitypool-allowunauthenticatedidentities",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "SupportedLoginProviders": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-identitypool.html#cfn-cognito-identitypool-supportedloginproviders",
+ "PrimitiveType": "Json",
+ "UpdateType": "Mutable"
+ },
+ "SamlProviderARNs": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-identitypool.html#cfn-cognito-identitypool-samlproviderarns",
+ "UpdateType": "Mutable"
+ },
+ "OpenIdConnectProviderARNs": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-identitypool.html#cfn-cognito-identitypool-openidconnectproviderarns",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ElasticBeanstalk::Application": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-beanstalk.html",
+ "Properties": {
+ "ApplicationName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-beanstalk.html#cfn-elasticbeanstalk-application-name",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Description": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-beanstalk.html#cfn-elasticbeanstalk-application-description",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "ResourceLifecycleConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-beanstalk.html#cfn-elasticbeanstalk-application-resourcelifecycleconfig",
+ "Required": false,
+ "Type": "ApplicationResourceLifecycleConfig",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ElasticLoadBalancingV2::LoadBalancer": {
+ "Attributes": {
+ "CanonicalHostedZoneID": {
+ "PrimitiveType": "String"
+ },
+ "DNSName": {
+ "PrimitiveType": "String"
+ },
+ "LoadBalancerFullName": {
+ "PrimitiveType": "String"
+ },
+ "LoadBalancerName": {
+ "PrimitiveType": "String"
+ },
+ "SecurityGroups": {
+ "PrimitiveItemType": "String",
+ "Type": "List"
+ }
+ },
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-loadbalancer.html",
+ "Properties": {
+ "IpAddressType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-loadbalancer.html#cfn-elasticloadbalancingv2-loadbalancer-ipaddresstype",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "LoadBalancerAttributes": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-loadbalancer.html#cfn-elasticloadbalancingv2-loadbalancer-loadbalancerattributes",
+ "DuplicatesAllowed": false,
+ "ItemType": "LoadBalancerAttribute",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-loadbalancer.html#cfn-elasticloadbalancingv2-loadbalancer-name",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Scheme": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-loadbalancer.html#cfn-elasticloadbalancingv2-loadbalancer-scheme",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "SecurityGroups": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-loadbalancer.html#cfn-elasticloadbalancingv2-loadbalancer-securitygroups",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "SubnetMappings": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-loadbalancer.html#cfn-elasticloadbalancingv2-loadbalancer-subnetmappings",
+ "DuplicatesAllowed": false,
+ "ItemType": "SubnetMapping",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ },
+ "Subnets": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-loadbalancer.html#cfn-elasticloadbalancingv2-loadbalancer-subnets",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "Tags": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-loadbalancer.html#cfn-elasticloadbalancingv2-loadbalancer-tags",
+ "DuplicatesAllowed": true,
+ "ItemType": "Tag",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "Type": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-loadbalancer.html#cfn-elasticloadbalancingv2-loadbalancer-type",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::IAM::AccessKey": {
+ "Attributes": {
+ "SecretAccessKey": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-accesskey.html",
+ "Properties": {
+ "Serial": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-accesskey.html#cfn-iam-accesskey-serial",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Status": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-accesskey.html#cfn-iam-accesskey-status",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "UserName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-accesskey.html#cfn-iam-accesskey-username",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::SES::ReceiptRule": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-receiptrule.html",
+ "Properties": {
+ "After": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-receiptrule.html#cfn-ses-receiptrule-after",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Rule": {
+ "Type": "Rule",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-receiptrule.html#cfn-ses-receiptrule-rule",
+ "UpdateType": "Mutable"
+ },
+ "RuleSetName": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-receiptrule.html#cfn-ses-receiptrule-rulesetname",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::DMS::ReplicationSubnetGroup": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-replicationsubnetgroup.html",
+ "Properties": {
+ "ReplicationSubnetGroupDescription": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-replicationsubnetgroup.html#cfn-dms-replicationsubnetgroup-replicationsubnetgroupdescription",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "ReplicationSubnetGroupIdentifier": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-replicationsubnetgroup.html#cfn-dms-replicationsubnetgroup-replicationsubnetgroupidentifier",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "SubnetIds": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-replicationsubnetgroup.html#cfn-dms-replicationsubnetgroup-subnetids",
+ "UpdateType": "Mutable"
+ },
+ "Tags": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-replicationsubnetgroup.html#cfn-dms-replicationsubnetgroup-tags",
+ "ItemType": "Tag",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::SES::ConfigurationSetEventDestination": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-configurationseteventdestination.html",
+ "Properties": {
+ "ConfigurationSetName": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-configurationseteventdestination.html#cfn-ses-configurationseteventdestination-configurationsetname",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "EventDestination": {
+ "Type": "EventDestination",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-configurationseteventdestination.html#cfn-ses-configurationseteventdestination-eventdestination",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ElastiCache::SubnetGroup": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-subnetgroup.html",
+ "Properties": {
+ "CacheSubnetGroupName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-subnetgroup.html#cfn-elasticache-subnetgroup-cachesubnetgroupname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Description": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-subnetgroup.html#cfn-elasticache-subnetgroup-description",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "SubnetIds": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-subnetgroup.html#cfn-elasticache-subnetgroup-subnetids",
+ "DuplicatesAllowed": true,
+ "PrimitiveItemType": "String",
+ "Required": true,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CodeBuild::Project": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html",
+ "Attributes": {
+ "Arn": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Properties": {
+ "Description": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-description",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "VpcConfig": {
+ "Type": "VpcConfig",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-vpcconfig",
+ "UpdateType": "Mutable"
+ },
+ "SecondarySources": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-secondarysources",
+ "ItemType": "Source",
+ "UpdateType": "Mutable"
+ },
+ "EncryptionKey": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-encryptionkey",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Triggers": {
+ "Type": "ProjectTriggers",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-triggers",
+ "UpdateType": "Mutable"
+ },
+ "SecondaryArtifacts": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-secondaryartifacts",
+ "ItemType": "Artifacts",
+ "UpdateType": "Mutable"
+ },
+ "Source": {
+ "Type": "Source",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-source",
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-name",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "Artifacts": {
+ "Type": "Artifacts",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-artifacts",
+ "UpdateType": "Mutable"
+ },
+ "BadgeEnabled": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-badgeenabled",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "LogsConfig": {
+ "Type": "LogsConfig",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-logsconfig",
+ "UpdateType": "Mutable"
+ },
+ "ServiceRole": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-servicerole",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Environment": {
+ "Type": "Environment",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-environment",
+ "UpdateType": "Mutable"
+ },
+ "Tags": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-tags",
+ "ItemType": "Tag",
+ "UpdateType": "Mutable"
+ },
+ "TimeoutInMinutes": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-timeoutinminutes",
+ "PrimitiveType": "Integer",
+ "UpdateType": "Mutable"
+ },
+ "Cache": {
+ "Type": "ProjectCache",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-cache",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Budgets::Budget": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-budgets-budget.html",
+ "Properties": {
+ "NotificationsWithSubscribers": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-budgets-budget.html#cfn-budgets-budget-notificationswithsubscribers",
+ "ItemType": "NotificationWithSubscribers",
+ "UpdateType": "Immutable"
+ },
+ "Budget": {
+ "Type": "BudgetData",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-budgets-budget.html#cfn-budgets-budget-budget",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::SNS::TopicPolicy": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sns-policy.html",
+ "Properties": {
+ "PolicyDocument": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sns-policy.html#cfn-sns-topicpolicy-policydocument",
+ "PrimitiveType": "Json",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Topics": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sns-policy.html#cfn-sns-topicpolicy-topics",
+ "DuplicatesAllowed": true,
+ "PrimitiveItemType": "String",
+ "Required": true,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Lambda::Alias": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-alias.html",
+ "Properties": {
+ "Description": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-alias.html#cfn-lambda-alias-description",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "FunctionName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-alias.html#cfn-lambda-alias-functionname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "FunctionVersion": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-alias.html#cfn-lambda-alias-functionversion",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-alias.html#cfn-lambda-alias-name",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "RoutingConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-alias.html#cfn-lambda-alias-routingconfig",
+ "Required": false,
+ "Type": "AliasRoutingConfiguration",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::WAFRegional::ByteMatchSet": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafregional-bytematchset.html",
+ "Properties": {
+ "ByteMatchTuples": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafregional-bytematchset.html#cfn-wafregional-bytematchset-bytematchtuples",
+ "ItemType": "ByteMatchTuple",
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafregional-bytematchset.html#cfn-wafregional-bytematchset-name",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::EC2::SecurityGroupEgress": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-security-group-egress.html",
+ "Properties": {
+ "CidrIp": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-security-group-egress.html#cfn-ec2-securitygroupegress-cidrip",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "CidrIpv6": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-security-group-egress.html#cfn-ec2-securitygroupegress-cidripv6",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Description": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-security-group-egress.html#cfn-ec2-securitygroupegress-description",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "DestinationPrefixListId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-security-group-egress.html#cfn-ec2-securitygroupegress-destinationprefixlistid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "DestinationSecurityGroupId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-security-group-egress.html#cfn-ec2-securitygroupegress-destinationsecuritygroupid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "FromPort": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-security-group-egress.html#cfn-ec2-securitygroupegress-fromport",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "GroupId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-security-group-egress.html#cfn-ec2-securitygroupegress-groupid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "IpProtocol": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-security-group-egress.html#cfn-ec2-securitygroupegress-ipprotocol",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "ToPort": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-security-group-egress.html#cfn-ec2-securitygroupegress-toport",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::ElasticLoadBalancingV2::Listener": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-listener.html",
+ "Properties": {
+ "Certificates": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-listener.html#cfn-elasticloadbalancingv2-listener-certificates",
+ "DuplicatesAllowed": false,
+ "ItemType": "Certificate",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "DefaultActions": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-listener.html#cfn-elasticloadbalancingv2-listener-defaultactions",
+ "DuplicatesAllowed": false,
+ "ItemType": "Action",
+ "Required": true,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "LoadBalancerArn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-listener.html#cfn-elasticloadbalancingv2-listener-loadbalancerarn",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "Port": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-listener.html#cfn-elasticloadbalancingv2-listener-port",
+ "PrimitiveType": "Integer",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Protocol": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-listener.html#cfn-elasticloadbalancingv2-listener-protocol",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "SslPolicy": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-listener.html#cfn-elasticloadbalancingv2-listener-sslpolicy",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EC2::NetworkInterface": {
+ "Attributes": {
+ "PrimaryPrivateIpAddress": {
+ "PrimitiveType": "String"
+ },
+ "SecondaryPrivateIpAddresses": {
+ "PrimitiveItemType": "String",
+ "Type": "List"
+ }
+ },
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-interface.html",
+ "Properties": {
+ "Description": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-interface.html#cfn-awsec2networkinterface-description",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "GroupSet": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-interface.html#cfn-awsec2networkinterface-groupset",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "InterfaceType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-interface.html#cfn-ec2-networkinterface-interfacetype",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Ipv6AddressCount": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-interface.html#cfn-ec2-networkinterface-ipv6addresscount",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Ipv6Addresses": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-interface.html#cfn-ec2-networkinterface-ipv6addresses",
+ "Required": false,
+ "Type": "InstanceIpv6Address",
+ "UpdateType": "Mutable"
+ },
+ "PrivateIpAddress": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-interface.html#cfn-awsec2networkinterface-privateipaddress",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "PrivateIpAddresses": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-interface.html#cfn-awsec2networkinterface-privateipaddresses",
+ "DuplicatesAllowed": false,
+ "ItemType": "PrivateIpAddressSpecification",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Conditional"
+ },
+ "SecondaryPrivateIpAddressCount": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-interface.html#cfn-awsec2networkinterface-secondaryprivateipcount",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "SourceDestCheck": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-interface.html#cfn-awsec2networkinterface-sourcedestcheck",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "SubnetId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-interface.html#cfn-awsec2networkinterface-subnetid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "Tags": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-interface.html#cfn-awsec2networkinterface-tags",
+ "DuplicatesAllowed": true,
+ "ItemType": "Tag",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::DAX::SubnetGroup": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dax-subnetgroup.html",
+ "Properties": {
+ "Description": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dax-subnetgroup.html#cfn-dax-subnetgroup-description",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "SubnetGroupName": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dax-subnetgroup.html#cfn-dax-subnetgroup-subnetgroupname",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "SubnetIds": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dax-subnetgroup.html#cfn-dax-subnetgroup-subnetids",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::SageMaker::EndpointConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-endpointconfig.html",
+ "Attributes": {
+ "EndpointConfigName": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Properties": {
+ "ProductionVariants": {
+ "Type": "List",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-endpointconfig.html#cfn-sagemaker-endpointconfig-productionvariants",
+ "ItemType": "ProductionVariant",
+ "UpdateType": "Immutable"
+ },
+ "KmsKeyId": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-endpointconfig.html#cfn-sagemaker-endpointconfig-kmskeyid",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "EndpointConfigName": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-endpointconfig.html#cfn-sagemaker-endpointconfig-endpointconfigname",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "Tags": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-endpointconfig.html#cfn-sagemaker-endpointconfig-tags",
+ "ItemType": "Tag",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::OpsWorks::Stack": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-stack.html",
+ "Properties": {
+ "AgentVersion": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-stack.html#cfn-opsworks-stack-agentversion",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Attributes": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-stack.html#cfn-opsworks-stack-attributes",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "Map",
+ "UpdateType": "Mutable"
+ },
+ "ChefConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-stack.html#cfn-opsworks-stack-chefconfiguration",
+ "Required": false,
+ "Type": "ChefConfiguration",
+ "UpdateType": "Mutable"
+ },
+ "CloneAppIds": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-stack.html#cfn-opsworks-stack-cloneappids",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ },
+ "ClonePermissions": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-stack.html#cfn-opsworks-stack-clonepermissions",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "ConfigurationManager": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-stack.html#cfn-opsworks-stack-configmanager",
+ "Required": false,
+ "Type": "StackConfigurationManager",
+ "UpdateType": "Mutable"
+ },
+ "CustomCookbooksSource": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-stack.html#cfn-opsworks-stack-custcookbooksource",
+ "Required": false,
+ "Type": "Source",
+ "UpdateType": "Mutable"
+ },
+ "CustomJson": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-stack.html#cfn-opsworks-stack-custjson",
+ "PrimitiveType": "Json",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "DefaultAvailabilityZone": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-stack.html#cfn-opsworks-stack-defaultaz",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "DefaultInstanceProfileArn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-stack.html#cfn-opsworks-stack-defaultinstanceprof",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "DefaultOs": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-stack.html#cfn-opsworks-stack-defaultos",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "DefaultRootDeviceType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-stack.html#cfn-opsworks-stack-defaultrootdevicetype",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "DefaultSshKeyName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-stack.html#cfn-opsworks-stack-defaultsshkeyname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "DefaultSubnetId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-stack.html#defaultsubnet",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "EcsClusterArn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-stack.html#cfn-opsworks-stack-ecsclusterarn",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "ElasticIps": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-stack.html#cfn-opsworks-stack-elasticips",
+ "DuplicatesAllowed": false,
+ "ItemType": "ElasticIp",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "HostnameTheme": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-stack.html#cfn-opsworks-stack-hostnametheme",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-stack.html#cfn-opsworks-stack-name",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "RdsDbInstances": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-stack.html#cfn-opsworks-stack-rdsdbinstances",
+ "DuplicatesAllowed": false,
+ "ItemType": "RdsDbInstance",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "ServiceRoleArn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-stack.html#cfn-opsworks-stack-servicerolearn",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "SourceStackId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-stack.html#cfn-opsworks-stack-sourcestackid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Tags": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-stack.html#cfn-opsworks-stack-tags",
+ "DuplicatesAllowed": true,
+ "ItemType": "Tag",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "UseCustomCookbooks": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-stack.html#usecustcookbooks",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "UseOpsworksSecurityGroups": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-stack.html#cfn-opsworks-stack-useopsworkssecuritygroups",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "VpcId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-stack.html#cfn-opsworks-stack-vpcid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::DataPipeline::Pipeline": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datapipeline-pipeline.html",
+ "Properties": {
+ "Activate": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datapipeline-pipeline.html#cfn-datapipeline-pipeline-activate",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Description": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datapipeline-pipeline.html#cfn-datapipeline-pipeline-description",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datapipeline-pipeline.html#cfn-datapipeline-pipeline-name",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "ParameterObjects": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datapipeline-pipeline.html#cfn-datapipeline-pipeline-parameterobjects",
+ "DuplicatesAllowed": true,
+ "ItemType": "ParameterObject",
+ "Required": true,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "ParameterValues": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datapipeline-pipeline.html#cfn-datapipeline-pipeline-parametervalues",
+ "DuplicatesAllowed": true,
+ "ItemType": "ParameterValue",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "PipelineObjects": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datapipeline-pipeline.html#cfn-datapipeline-pipeline-pipelineobjects",
+ "DuplicatesAllowed": true,
+ "ItemType": "PipelineObject",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "PipelineTags": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datapipeline-pipeline.html#cfn-datapipeline-pipeline-pipelinetags",
+ "DuplicatesAllowed": true,
+ "ItemType": "PipelineTag",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::StepFunctions::StateMachine": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-stepfunctions-statemachine.html",
+ "Attributes": {
+ "Name": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Properties": {
+ "DefinitionString": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-stepfunctions-statemachine.html#cfn-stepfunctions-statemachine-definitionstring",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "StateMachineName": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-stepfunctions-statemachine.html#cfn-stepfunctions-statemachine-statemachinename",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "RoleArn": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-stepfunctions-statemachine.html#cfn-stepfunctions-statemachine-rolearn",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CodeDeploy::DeploymentConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codedeploy-deploymentconfig.html",
+ "Properties": {
+ "DeploymentConfigName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codedeploy-deploymentconfig.html#cfn-codedeploy-deploymentconfig-deploymentconfigname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "MinimumHealthyHosts": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codedeploy-deploymentconfig.html#cfn-codedeploy-deploymentconfig-minimumhealthyhosts",
+ "Required": false,
+ "Type": "MinimumHealthyHosts",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::DMS::EventSubscription": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-eventsubscription.html",
+ "Properties": {
+ "SourceType": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-eventsubscription.html#cfn-dms-eventsubscription-sourcetype",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "EventCategories": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-eventsubscription.html#cfn-dms-eventsubscription-eventcategories",
+ "UpdateType": "Mutable"
+ },
+ "Enabled": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-eventsubscription.html#cfn-dms-eventsubscription-enabled",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "SubscriptionName": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-eventsubscription.html#cfn-dms-eventsubscription-subscriptionname",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "SnsTopicArn": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-eventsubscription.html#cfn-dms-eventsubscription-snstopicarn",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "SourceIds": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-eventsubscription.html#cfn-dms-eventsubscription-sourceids",
+ "UpdateType": "Immutable"
+ },
+ "Tags": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-eventsubscription.html#cfn-dms-eventsubscription-tags",
+ "ItemType": "Tag",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::DAX::ParameterGroup": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dax-parametergroup.html",
+ "Properties": {
+ "ParameterNameValues": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dax-parametergroup.html#cfn-dax-parametergroup-parameternamevalues",
+ "PrimitiveType": "Json",
+ "UpdateType": "Mutable"
+ },
+ "Description": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dax-parametergroup.html#cfn-dax-parametergroup-description",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "ParameterGroupName": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dax-parametergroup.html#cfn-dax-parametergroup-parametergroupname",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::EC2::SubnetNetworkAclAssociation": {
+ "Attributes": {
+ "AssociationId": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnet-network-acl-assoc.html",
+ "Properties": {
+ "NetworkAclId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnet-network-acl-assoc.html#cfn-ec2-subnetnetworkaclassociation-networkaclid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "SubnetId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnet-network-acl-assoc.html#cfn-ec2-subnetnetworkaclassociation-associationid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::Config::ConfigurationAggregator": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-configurationaggregator.html",
+ "Properties": {
+ "AccountAggregationSources": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-configurationaggregator.html#cfn-config-configurationaggregator-accountaggregationsources",
+ "ItemType": "AccountAggregationSource",
+ "UpdateType": "Mutable"
+ },
+ "ConfigurationAggregatorName": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-configurationaggregator.html#cfn-config-configurationaggregator-configurationaggregatorname",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "OrganizationAggregationSource": {
+ "Type": "OrganizationAggregationSource",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-configurationaggregator.html#cfn-config-configurationaggregator-organizationaggregationsource",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ApiGateway::Account": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-account.html",
+ "Properties": {
+ "CloudWatchRoleArn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-account.html#cfn-apigateway-account-cloudwatchrolearn",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::SES::Template": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-template.html",
+ "Properties": {
+ "Template": {
+ "Type": "Template",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-template.html#cfn-ses-template-template",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CloudFront::Distribution": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-distribution.html",
+ "Attributes": {
+ "DomainName": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Properties": {
+ "DistributionConfig": {
+ "Type": "DistributionConfig",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-distribution.html#cfn-cloudfront-distribution-distributionconfig",
+ "UpdateType": "Mutable"
+ },
+ "Tags": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-distribution.html#cfn-cloudfront-distribution-tags",
+ "ItemType": "Tag",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Redshift::ClusterParameterGroup": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-clusterparametergroup.html",
+ "Properties": {
+ "Description": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-clusterparametergroup.html#cfn-redshift-clusterparametergroup-description",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "ParameterGroupFamily": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-clusterparametergroup.html#cfn-redshift-clusterparametergroup-parametergroupfamily",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "Parameters": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-clusterparametergroup.html#cfn-redshift-clusterparametergroup-parameters",
+ "DuplicatesAllowed": true,
+ "ItemType": "Parameter",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "Tags": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-clusterparametergroup.html#cfn-redshift-clusterparametergroup-tags",
+ "DuplicatesAllowed": true,
+ "ItemType": "Tag",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CloudTrail::Trail": {
+ "Attributes": {
+ "Arn": {
+ "PrimitiveType": "String"
+ },
+ "SnsTopicArn": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudtrail-trail.html",
+ "Properties": {
+ "CloudWatchLogsLogGroupArn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudtrail-trail.html#cfn-cloudtrail-trail-cloudwatchlogsloggrouparn",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "CloudWatchLogsRoleArn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudtrail-trail.html#cfn-cloudtrail-trail-cloudwatchlogsrolearn",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "EnableLogFileValidation": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudtrail-trail.html#cfn-cloudtrail-trail-enablelogfilevalidation",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "EventSelectors": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudtrail-trail.html#cfn-cloudtrail-trail-eventselectors",
+ "DuplicatesAllowed": false,
+ "ItemType": "EventSelector",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "IncludeGlobalServiceEvents": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudtrail-trail.html#cfn-cloudtrail-trail-includeglobalserviceevents",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "IsLogging": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudtrail-trail.html#cfn-cloudtrail-trail-islogging",
+ "PrimitiveType": "Boolean",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "IsMultiRegionTrail": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudtrail-trail.html#cfn-cloudtrail-trail-ismultiregiontrail",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "KMSKeyId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudtrail-trail.html#cfn-cloudtrail-trail-kmskeyid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "S3BucketName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudtrail-trail.html#cfn-cloudtrail-trail-s3bucketname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "S3KeyPrefix": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudtrail-trail.html#cfn-cloudtrail-trail-s3keyprefix",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "SnsTopicName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudtrail-trail.html#cfn-cloudtrail-trail-snstopicname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Tags": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudtrail-trail.html#cfn-cloudtrail-trail-tags",
+ "DuplicatesAllowed": true,
+ "ItemType": "Tag",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "TrailName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudtrail-trail.html#cfn-cloudtrail-trail-trailname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::ServiceCatalog::LaunchRoleConstraint": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-launchroleconstraint.html",
+ "Properties": {
+ "Description": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-launchroleconstraint.html#cfn-servicecatalog-launchroleconstraint-description",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "AcceptLanguage": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-launchroleconstraint.html#cfn-servicecatalog-launchroleconstraint-acceptlanguage",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "PortfolioId": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-launchroleconstraint.html#cfn-servicecatalog-launchroleconstraint-portfolioid",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "ProductId": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-launchroleconstraint.html#cfn-servicecatalog-launchroleconstraint-productid",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "RoleArn": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-launchroleconstraint.html#cfn-servicecatalog-launchroleconstraint-rolearn",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::ServiceCatalog::CloudFormationProvisionedProduct": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-cloudformationprovisionedproduct.html",
+ "Attributes": {
+ "CloudformationStackArn": {
+ "PrimitiveType": "String"
+ },
+ "RecordId": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Properties": {
+ "PathId": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-cloudformationprovisionedproduct.html#cfn-servicecatalog-cloudformationprovisionedproduct-pathid",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "ProvisioningParameters": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-cloudformationprovisionedproduct.html#cfn-servicecatalog-cloudformationprovisionedproduct-provisioningparameters",
+ "ItemType": "ProvisioningParameter",
+ "UpdateType": "Mutable"
+ },
+ "ProductName": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-cloudformationprovisionedproduct.html#cfn-servicecatalog-cloudformationprovisionedproduct-productname",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "ProvisioningArtifactName": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-cloudformationprovisionedproduct.html#cfn-servicecatalog-cloudformationprovisionedproduct-provisioningartifactname",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "NotificationArns": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-cloudformationprovisionedproduct.html#cfn-servicecatalog-cloudformationprovisionedproduct-notificationarns",
+ "UpdateType": "Immutable"
+ },
+ "AcceptLanguage": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-cloudformationprovisionedproduct.html#cfn-servicecatalog-cloudformationprovisionedproduct-acceptlanguage",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "ProductId": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-cloudformationprovisionedproduct.html#cfn-servicecatalog-cloudformationprovisionedproduct-productid",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "Tags": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-cloudformationprovisionedproduct.html#cfn-servicecatalog-cloudformationprovisionedproduct-tags",
+ "ItemType": "Tag",
+ "UpdateType": "Immutable"
+ },
+ "ProvisionedProductName": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-cloudformationprovisionedproduct.html#cfn-servicecatalog-cloudformationprovisionedproduct-provisionedproductname",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "ProvisioningArtifactId": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-cloudformationprovisionedproduct.html#cfn-servicecatalog-cloudformationprovisionedproduct-provisioningartifactid",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EMR::InstanceGroupConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emr-instancegroupconfig.html",
+ "Properties": {
+ "AutoScalingPolicy": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emr-instancegroupconfig.html#cfn-elasticmapreduce-instancegroupconfig-autoscalingpolicy",
+ "Required": false,
+ "Type": "AutoScalingPolicy",
+ "UpdateType": "Mutable"
+ },
+ "BidPrice": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emr-instancegroupconfig.html#cfn-emr-instancegroupconfig-bidprice",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Configurations": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emr-instancegroupconfig.html#cfn-emr-instancegroupconfig-configurations",
+ "DuplicatesAllowed": false,
+ "ItemType": "Configuration",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ },
+ "EbsConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emr-instancegroupconfig.html#cfn-emr-instancegroupconfig-ebsconfiguration",
+ "Required": false,
+ "Type": "EbsConfiguration",
+ "UpdateType": "Immutable"
+ },
+ "InstanceCount": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emr-instancegroupconfig.html#cfn-emr-instancegroupconfiginstancecount-",
+ "PrimitiveType": "Integer",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "InstanceRole": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emr-instancegroupconfig.html#cfn-emr-instancegroupconfig-instancerole",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "InstanceType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emr-instancegroupconfig.html#cfn-emr-instancegroupconfig-instancetype",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "JobFlowId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emr-instancegroupconfig.html#cfn-emr-instancegroupconfig-jobflowid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "Market": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emr-instancegroupconfig.html#cfn-emr-instancegroupconfig-market",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emr-instancegroupconfig.html#cfn-emr-instancegroupconfig-name",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::Neptune::DBClusterParameterGroup": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbclusterparametergroup.html",
+ "Properties": {
+ "Description": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbclusterparametergroup.html#cfn-neptune-dbclusterparametergroup-description",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "Parameters": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbclusterparametergroup.html#cfn-neptune-dbclusterparametergroup-parameters",
+ "PrimitiveType": "Json",
+ "UpdateType": "Mutable"
+ },
+ "Family": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbclusterparametergroup.html#cfn-neptune-dbclusterparametergroup-family",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "Tags": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbclusterparametergroup.html#cfn-neptune-dbclusterparametergroup-tags",
+ "ItemType": "Tag",
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbclusterparametergroup.html#cfn-neptune-dbclusterparametergroup-name",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::EC2::SubnetCidrBlock": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnetcidrblock.html",
+ "Properties": {
+ "Ipv6CidrBlock": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnetcidrblock.html#cfn-ec2-subnetcidrblock-ipv6cidrblock",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "SubnetId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnetcidrblock.html#cfn-ec2-subnetcidrblock-subnetid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::AutoScaling::LifecycleHook": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-as-lifecyclehook.html",
+ "Properties": {
+ "AutoScalingGroupName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-as-lifecyclehook.html#cfn-as-lifecyclehook-autoscalinggroupname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "DefaultResult": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-as-lifecyclehook.html#cfn-as-lifecyclehook-defaultresult",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "HeartbeatTimeout": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-as-lifecyclehook.html#cfn-as-lifecyclehook-heartbeattimeout",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "LifecycleHookName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-as-lifecyclehook.html#cfn-autoscaling-lifecyclehook-lifecyclehookname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "LifecycleTransition": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-as-lifecyclehook.html#cfn-as-lifecyclehook-lifecycletransition",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "NotificationMetadata": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-as-lifecyclehook.html#cfn-as-lifecyclehook-notificationmetadata",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "NotificationTargetARN": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-as-lifecyclehook.html#cfn-as-lifecyclehook-notificationtargetarn",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "RoleARN": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-as-lifecyclehook.html#cfn-as-lifecyclehook-rolearn",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ElasticLoadBalancingV2::ListenerRule": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-listenerrule.html",
+ "Properties": {
+ "Actions": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-listenerrule.html#cfn-elasticloadbalancingv2-listenerrule-actions",
+ "DuplicatesAllowed": false,
+ "ItemType": "Action",
+ "Required": true,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "Conditions": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-listenerrule.html#cfn-elasticloadbalancingv2-listenerrule-conditions",
+ "DuplicatesAllowed": false,
+ "ItemType": "RuleCondition",
+ "Required": true,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "ListenerArn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-listenerrule.html#cfn-elasticloadbalancingv2-listenerrule-listenerarn",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "Priority": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-listenerrule.html#cfn-elasticloadbalancingv2-listenerrule-priority",
+ "PrimitiveType": "Integer",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CodePipeline::Pipeline": {
+ "Attributes": {
+ "Version": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codepipeline-pipeline.html",
+ "Properties": {
+ "ArtifactStore": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codepipeline-pipeline.html#cfn-codepipeline-pipeline-artifactstore",
+ "Required": true,
+ "Type": "ArtifactStore",
+ "UpdateType": "Mutable"
+ },
+ "DisableInboundStageTransitions": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codepipeline-pipeline.html#cfn-codepipeline-pipeline-disableinboundstagetransitions",
+ "DuplicatesAllowed": false,
+ "ItemType": "StageTransition",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codepipeline-pipeline.html#cfn-codepipeline-pipeline-name",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "RestartExecutionOnUpdate": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codepipeline-pipeline.html#cfn-codepipeline-pipeline-restartexecutiononupdate",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "RoleArn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codepipeline-pipeline.html#cfn-codepipeline-pipeline-rolearn",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Stages": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codepipeline-pipeline.html#cfn-codepipeline-pipeline-stages",
+ "DuplicatesAllowed": false,
+ "ItemType": "StageDeclaration",
+ "Required": true,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Redshift::ClusterSecurityGroupIngress": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-clustersecuritygroupingress.html",
+ "Properties": {
+ "CIDRIP": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-clustersecuritygroupingress.html#cfn-redshift-clustersecuritygroupingress-cidrip",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "ClusterSecurityGroupName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-clustersecuritygroupingress.html#cfn-redshift-clustersecuritygroupingress-clustersecuritygroupname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "EC2SecurityGroupName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-clustersecuritygroupingress.html#cfn-redshift-clustersecuritygroupingress-ec2securitygroupname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "EC2SecurityGroupOwnerId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-clustersecuritygroupingress.html#cfn-redshift-clustersecuritygroupingress-ec2securitygroupownerid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::RDS::OptionGroup": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-optiongroup.html",
+ "Properties": {
+ "EngineName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-optiongroup.html#cfn-rds-optiongroup-enginename",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "MajorEngineVersion": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-optiongroup.html#cfn-rds-optiongroup-majorengineversion",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "OptionConfigurations": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-optiongroup.html#cfn-rds-optiongroup-optionconfigurations",
+ "DuplicatesAllowed": true,
+ "ItemType": "OptionConfiguration",
+ "Required": true,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ },
+ "OptionGroupDescription": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-optiongroup.html#cfn-rds-optiongroup-optiongroupdescription",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "Tags": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-optiongroup.html#cfn-rds-optiongroup-tags",
+ "DuplicatesAllowed": true,
+ "ItemType": "Tag",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EC2::NatGateway": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-natgateway.html",
+ "Properties": {
+ "AllocationId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-natgateway.html#cfn-ec2-natgateway-allocationid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "SubnetId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-natgateway.html#cfn-ec2-natgateway-subnetid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "Tags": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-natgateway.html#cfn-ec2-natgateway-tags",
+ "DuplicatesAllowed": true,
+ "ItemType": "Tag",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ElastiCache::SecurityGroupIngress": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-security-group-ingress.html",
+ "Properties": {
+ "CacheSecurityGroupName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-security-group-ingress.html#cfn-elasticache-securitygroupingress-cachesecuritygroupname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "EC2SecurityGroupName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-security-group-ingress.html#cfn-elasticache-securitygroupingress-ec2securitygroupname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "EC2SecurityGroupOwnerId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-security-group-ingress.html#cfn-elasticache-securitygroupingress-ec2securitygroupownerid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::IoT::TopicRule": {
+ "Attributes": {
+ "Arn": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-topicrule.html",
+ "Properties": {
+ "RuleName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-topicrule.html#cfn-iot-topicrule-rulename",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "TopicRulePayload": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-topicrule.html#cfn-iot-topicrule-topicrulepayload",
+ "Required": true,
+ "Type": "TopicRulePayload",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::OpsWorks::ElasticLoadBalancerAttachment": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-elbattachment.html",
+ "Properties": {
+ "ElasticLoadBalancerName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-elbattachment.html#cfn-opsworks-elbattachment-elbname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "LayerId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-elbattachment.html#cfn-opsworks-elbattachment-layerid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ElastiCache::ReplicationGroup": {
+ "Attributes": {
+ "ConfigurationEndPoint.Address": {
+ "PrimitiveType": "String"
+ },
+ "ConfigurationEndPoint.Port": {
+ "PrimitiveType": "String"
+ },
+ "PrimaryEndPoint.Address": {
+ "PrimitiveType": "String"
+ },
+ "PrimaryEndPoint.Port": {
+ "PrimitiveType": "String"
+ },
+ "ReadEndPoint.Addresses": {
+ "PrimitiveType": "String"
+ },
+ "ReadEndPoint.Addresses.List": {
+ "PrimitiveItemType": "String",
+ "Type": "List"
+ },
+ "ReadEndPoint.Ports": {
+ "PrimitiveType": "String"
+ },
+ "ReadEndPoint.Ports.List": {
+ "PrimitiveItemType": "String",
+ "Type": "List"
+ }
+ },
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html",
+ "Properties": {
+ "AtRestEncryptionEnabled": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-atrestencryptionenabled",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "AuthToken": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-authtoken",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "AutoMinorVersionUpgrade": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-autominorversionupgrade",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "AutomaticFailoverEnabled": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-automaticfailoverenabled",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "CacheNodeType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-cachenodetype",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "CacheParameterGroupName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-cacheparametergroupname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "CacheSecurityGroupNames": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-cachesecuritygroupnames",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "CacheSubnetGroupName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-cachesubnetgroupname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Engine": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-engine",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "EngineVersion": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-engineversion",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "NodeGroupConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-nodegroupconfiguration",
+ "DuplicatesAllowed": false,
+ "ItemType": "NodeGroupConfiguration",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Conditional"
+ },
+ "NotificationTopicArn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-notificationtopicarn",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "NumCacheClusters": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-numcacheclusters",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "NumNodeGroups": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-numnodegroups",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Conditional"
+ },
+ "Port": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-port",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "PreferredCacheClusterAZs": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-preferredcacheclusterazs",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ },
+ "PreferredMaintenanceWindow": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-preferredmaintenancewindow",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "PrimaryClusterId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-primaryclusterid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "ReplicasPerNodeGroup": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-replicaspernodegroup",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "ReplicationGroupDescription": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-replicationgroupdescription",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "ReplicationGroupId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-replicationgroupid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "SecurityGroupIds": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-securitygroupids",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "SnapshotArns": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-snapshotarns",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ },
+ "SnapshotName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-snapshotname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "SnapshotRetentionLimit": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-snapshotretentionlimit",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "SnapshotWindow": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-snapshotwindow",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "SnapshottingClusterId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-snapshottingclusterid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Tags": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-tags",
+ "DuplicatesAllowed": true,
+ "ItemType": "Tag",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "TransitEncryptionEnabled": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-transitencryptionenabled",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::Cognito::UserPoolUser": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpooluser.html",
+ "Properties": {
+ "ValidationData": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpooluser.html#cfn-cognito-userpooluser-validationdata",
+ "ItemType": "AttributeType",
+ "UpdateType": "Immutable"
+ },
+ "UserPoolId": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpooluser.html#cfn-cognito-userpooluser-userpoolid",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "Username": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpooluser.html#cfn-cognito-userpooluser-username",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "MessageAction": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpooluser.html#cfn-cognito-userpooluser-messageaction",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "DesiredDeliveryMediums": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpooluser.html#cfn-cognito-userpooluser-desireddeliverymediums",
+ "UpdateType": "Immutable"
+ },
+ "ForceAliasCreation": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpooluser.html#cfn-cognito-userpooluser-forcealiascreation",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Immutable"
+ },
+ "UserAttributes": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpooluser.html#cfn-cognito-userpooluser-userattributes",
+ "ItemType": "AttributeType",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::WAFRegional::WebACLAssociation": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafregional-webaclassociation.html",
+ "Properties": {
+ "ResourceArn": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafregional-webaclassociation.html#cfn-wafregional-webaclassociation-resourcearn",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "WebACLId": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafregional-webaclassociation.html#cfn-wafregional-webaclassociation-webaclid",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::ServiceCatalog::CloudFormationProduct": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-cloudformationproduct.html",
+ "Attributes": {
+ "ProductName": {
+ "PrimitiveType": "String"
+ },
+ "ProvisioningArtifactIds": {
+ "PrimitiveType": "String"
+ },
+ "ProvisioningArtifactNames": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Properties": {
+ "Owner": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-cloudformationproduct.html#cfn-servicecatalog-cloudformationproduct-owner",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "SupportDescription": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-cloudformationproduct.html#cfn-servicecatalog-cloudformationproduct-supportdescription",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Description": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-cloudformationproduct.html#cfn-servicecatalog-cloudformationproduct-description",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Distributor": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-cloudformationproduct.html#cfn-servicecatalog-cloudformationproduct-distributor",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "SupportEmail": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-cloudformationproduct.html#cfn-servicecatalog-cloudformationproduct-supportemail",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "AcceptLanguage": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-cloudformationproduct.html#cfn-servicecatalog-cloudformationproduct-acceptlanguage",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "SupportUrl": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-cloudformationproduct.html#cfn-servicecatalog-cloudformationproduct-supporturl",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Tags": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-cloudformationproduct.html#cfn-servicecatalog-cloudformationproduct-tags",
+ "ItemType": "Tag",
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-cloudformationproduct.html#cfn-servicecatalog-cloudformationproduct-name",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "ProvisioningArtifactParameters": {
+ "Type": "List",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-cloudformationproduct.html#cfn-servicecatalog-cloudformationproduct-provisioningartifactparameters",
+ "ItemType": "ProvisioningArtifactProperties",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CloudFormation::WaitCondition": {
+ "Attributes": {
+ "Data": {
+ "PrimitiveType": "Json"
+ }
+ },
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waitcondition.html",
+ "Properties": {
+ "Count": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waitcondition.html#cfn-waitcondition-count",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Handle": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waitcondition.html#cfn-waitcondition-handle",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Timeout": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waitcondition.html#cfn-waitcondition-timeout",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EC2::SecurityGroup": {
+ "Attributes": {
+ "GroupId": {
+ "PrimitiveType": "String"
+ },
+ "VpcId": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group.html",
+ "Properties": {
+ "GroupDescription": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group.html#cfn-ec2-securitygroup-groupdescription",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "GroupName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group.html#cfn-ec2-securitygroup-groupname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "SecurityGroupEgress": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group.html#cfn-ec2-securitygroup-securitygroupegress",
+ "DuplicatesAllowed": true,
+ "ItemType": "Egress",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "SecurityGroupIngress": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group.html#cfn-ec2-securitygroup-securitygroupingress",
+ "DuplicatesAllowed": true,
+ "ItemType": "Ingress",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "Tags": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group.html#cfn-ec2-securitygroup-tags",
+ "DuplicatesAllowed": true,
+ "ItemType": "Tag",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "VpcId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group.html#cfn-ec2-securitygroup-vpcid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::Cloud9::EnvironmentEC2": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloud9-environmentec2.html",
+ "Attributes": {
+ "Arn": {
+ "PrimitiveType": "String"
+ },
+ "Name": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Properties": {
+ "Repositories": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloud9-environmentec2.html#cfn-cloud9-environmentec2-repositories",
+ "ItemType": "Repository",
+ "UpdateType": "Immutable"
+ },
+ "OwnerArn": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloud9-environmentec2.html#cfn-cloud9-environmentec2-ownerarn",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "Description": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloud9-environmentec2.html#cfn-cloud9-environmentec2-description",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "AutomaticStopTimeMinutes": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloud9-environmentec2.html#cfn-cloud9-environmentec2-automaticstoptimeminutes",
+ "PrimitiveType": "Integer",
+ "UpdateType": "Immutable"
+ },
+ "SubnetId": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloud9-environmentec2.html#cfn-cloud9-environmentec2-subnetid",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "InstanceType": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloud9-environmentec2.html#cfn-cloud9-environmentec2-instancetype",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "Name": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloud9-environmentec2.html#cfn-cloud9-environmentec2-name",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::WAFRegional::WebACL": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafregional-webacl.html",
+ "Properties": {
+ "MetricName": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafregional-webacl.html#cfn-wafregional-webacl-metricname",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "DefaultAction": {
+ "Type": "Action",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafregional-webacl.html#cfn-wafregional-webacl-defaultaction",
+ "UpdateType": "Mutable"
+ },
+ "Rules": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafregional-webacl.html#cfn-wafregional-webacl-rules",
+ "ItemType": "Rule",
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafregional-webacl.html#cfn-wafregional-webacl-name",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::WAFRegional::Rule": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafregional-rule.html",
+ "Properties": {
+ "MetricName": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafregional-rule.html#cfn-wafregional-rule-metricname",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "Predicates": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafregional-rule.html#cfn-wafregional-rule-predicates",
+ "ItemType": "Predicate",
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafregional-rule.html#cfn-wafregional-rule-name",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::CloudFront::CloudFrontOriginAccessIdentity": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-cloudfrontoriginaccessidentity.html",
+ "Attributes": {
+ "S3CanonicalUserId": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Properties": {
+ "CloudFrontOriginAccessIdentityConfig": {
+ "Type": "CloudFrontOriginAccessIdentityConfig",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-cloudfrontoriginaccessidentity.html#cfn-cloudfront-cloudfrontoriginaccessidentity-cloudfrontoriginaccessidentityconfig",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::SageMaker::Endpoint": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-endpoint.html",
+ "Attributes": {
+ "EndpointName": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Properties": {
+ "EndpointName": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-endpoint.html#cfn-sagemaker-endpoint-endpointname",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "EndpointConfigName": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-endpoint.html#cfn-sagemaker-endpoint-endpointconfigname",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Tags": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-endpoint.html#cfn-sagemaker-endpoint-tags",
+ "ItemType": "Tag",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::AppSync::ApiKey": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-apikey.html",
+ "Attributes": {
+ "ApiKey": {
+ "PrimitiveType": "String"
+ },
+ "Arn": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Properties": {
+ "Description": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-apikey.html#cfn-appsync-apikey-description",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Expires": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-apikey.html#cfn-appsync-apikey-expires",
+ "PrimitiveType": "Double",
+ "UpdateType": "Mutable"
+ },
+ "ApiId": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-apikey.html#cfn-appsync-apikey-apiid",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::Route53::HostedZone": {
+ "Attributes": {
+ "NameServers": {
+ "PrimitiveItemType": "String",
+ "Type": "List"
+ }
+ },
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-route53-hostedzone.html",
+ "Properties": {
+ "HostedZoneConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-route53-hostedzone.html#cfn-route53-hostedzone-hostedzoneconfig",
+ "Required": false,
+ "Type": "HostedZoneConfig",
+ "UpdateType": "Mutable"
+ },
+ "HostedZoneTags": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-route53-hostedzone.html#cfn-route53-hostedzone-hostedzonetags",
+ "DuplicatesAllowed": true,
+ "ItemType": "HostedZoneTag",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-route53-hostedzone.html#cfn-route53-hostedzone-name",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "QueryLoggingConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-route53-hostedzone.html#cfn-route53-hostedzone-queryloggingconfig",
+ "Required": false,
+ "Type": "QueryLoggingConfig",
+ "UpdateType": "Mutable"
+ },
+ "VPCs": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-route53-hostedzone.html#cfn-route53-hostedzone-vpcs",
+ "DuplicatesAllowed": true,
+ "ItemType": "VPC",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Conditional"
+ }
+ }
+ },
+ "AWS::ApiGateway::RestApi": {
+ "Attributes": {
+ "RootResourceId": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-restapi.html",
+ "Properties": {
+ "ApiKeySourceType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-restapi.html#cfn-apigateway-restapi-apikeysourcetype",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "BinaryMediaTypes": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-restapi.html#cfn-apigateway-restapi-binarymediatypes",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "Body": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-restapi.html#cfn-apigateway-restapi-body",
+ "PrimitiveType": "Json",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "BodyS3Location": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-restapi.html#cfn-apigateway-restapi-bodys3location",
+ "Required": false,
+ "Type": "S3Location",
+ "UpdateType": "Mutable"
+ },
+ "CloneFrom": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-restapi.html#cfn-apigateway-restapi-clonefrom",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Description": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-restapi.html#cfn-apigateway-restapi-description",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "EndpointConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-restapi.html#cfn-apigateway-restapi-endpointconfiguration",
+ "Required": false,
+ "Type": "EndpointConfiguration",
+ "UpdateType": "Mutable"
+ },
+ "FailOnWarnings": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-restapi.html#cfn-apigateway-restapi-failonwarnings",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "MinimumCompressionSize": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-restapi.html#cfn-apigateway-restapi-minimumcompressionsize",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-restapi.html#cfn-apigateway-restapi-name",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Parameters": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-restapi.html#cfn-apigateway-restapi-parameters",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "Map",
+ "UpdateType": "Mutable"
+ },
+ "Policy": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-restapi.html#cfn-apigateway-restapi-policy",
+ "PrimitiveType": "Json",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EC2::Subnet": {
+ "Attributes": {
+ "AvailabilityZone": {
+ "PrimitiveType": "String"
+ },
+ "Ipv6CidrBlocks": {
+ "PrimitiveItemType": "String",
+ "Type": "List"
+ },
+ "NetworkAclAssociationId": {
+ "PrimitiveType": "String"
+ },
+ "VpcId": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnet.html",
+ "Properties": {
+ "AssignIpv6AddressOnCreation": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnet.html#cfn-ec2-subnet-assignipv6addressoncreation",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "AvailabilityZone": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnet.html#cfn-ec2-subnet-availabilityzone",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "CidrBlock": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnet.html#cfn-ec2-subnet-cidrblock",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "Ipv6CidrBlock": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnet.html#cfn-ec2-subnet-ipv6cidrblock",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "MapPublicIpOnLaunch": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnet.html#cfn-ec2-subnet-mappubliciponlaunch",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Tags": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnet.html#cfn-ec2-subnet-tags",
+ "DuplicatesAllowed": true,
+ "ItemType": "Tag",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "VpcId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnet.html#cfn-awsec2subnet-prop-vpcid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::CodeDeploy::Application": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codedeploy-application.html",
+ "Properties": {
+ "ApplicationName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codedeploy-application.html#cfn-codedeploy-application-applicationname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "ComputePlatform": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codedeploy-application.html#cfn-codedeploy-application-computeplatform",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::ServiceCatalog::PortfolioProductAssociation": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-portfolioproductassociation.html",
+ "Properties": {
+ "SourcePortfolioId": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-portfolioproductassociation.html#cfn-servicecatalog-portfolioproductassociation-sourceportfolioid",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "AcceptLanguage": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-portfolioproductassociation.html#cfn-servicecatalog-portfolioproductassociation-acceptlanguage",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "PortfolioId": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-portfolioproductassociation.html#cfn-servicecatalog-portfolioproductassociation-portfolioid",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "ProductId": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-portfolioproductassociation.html#cfn-servicecatalog-portfolioproductassociation-productid",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::ServiceDiscovery::Instance": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicediscovery-instance.html",
+ "Properties": {
+ "InstanceAttributes": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicediscovery-instance.html#cfn-servicediscovery-instance-instanceattributes",
+ "PrimitiveType": "Json",
+ "UpdateType": "Mutable"
+ },
+ "InstanceId": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicediscovery-instance.html#cfn-servicediscovery-instance-instanceid",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "ServiceId": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicediscovery-instance.html#cfn-servicediscovery-instance-serviceid",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::EC2::VPC": {
+ "Attributes": {
+ "CidrBlock": {
+ "PrimitiveType": "String"
+ },
+ "CidrBlockAssociations": {
+ "PrimitiveItemType": "String",
+ "Type": "List"
+ },
+ "DefaultNetworkAcl": {
+ "PrimitiveType": "String"
+ },
+ "DefaultSecurityGroup": {
+ "PrimitiveType": "String"
+ },
+ "Ipv6CidrBlocks": {
+ "PrimitiveItemType": "String",
+ "Type": "List"
+ }
+ },
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpc.html",
+ "Properties": {
+ "CidrBlock": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpc.html#cfn-aws-ec2-vpc-cidrblock",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "EnableDnsHostnames": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpc.html#cfn-aws-ec2-vpc-EnableDnsHostnames",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "EnableDnsSupport": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpc.html#cfn-aws-ec2-vpc-EnableDnsSupport",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "InstanceTenancy": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpc.html#cfn-aws-ec2-vpc-instancetenancy",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Tags": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpc.html#cfn-aws-ec2-vpc-tags",
+ "DuplicatesAllowed": true,
+ "ItemType": "Tag",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EC2::Instance": {
+ "Attributes": {
+ "AvailabilityZone": {
+ "PrimitiveType": "String"
+ },
+ "PrivateDnsName": {
+ "PrimitiveType": "String"
+ },
+ "PrivateIp": {
+ "PrimitiveType": "String"
+ },
+ "PublicDnsName": {
+ "PrimitiveType": "String"
+ },
+ "PublicIp": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html",
+ "Properties": {
+ "AdditionalInfo": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-additionalinfo",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Conditional"
+ },
+ "Affinity": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-affinity",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Conditional"
+ },
+ "AvailabilityZone": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-availabilityzone",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "BlockDeviceMappings": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-blockdevicemappings",
+ "DuplicatesAllowed": true,
+ "ItemType": "BlockDeviceMapping",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Conditional"
+ },
+ "CreditSpecification": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-creditspecification",
+ "Required": false,
+ "Type": "CreditSpecification",
+ "UpdateType": "Mutable"
+ },
+ "DisableApiTermination": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-disableapitermination",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "EbsOptimized": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-ebsoptimized",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Conditional"
+ },
+ "ElasticGpuSpecifications": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-elasticgpuspecifications",
+ "DuplicatesAllowed": false,
+ "ItemType": "ElasticGpuSpecification",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ },
+ "HostId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-hostid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Conditional"
+ },
+ "IamInstanceProfile": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-iaminstanceprofile",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "ImageId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-imageid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "InstanceInitiatedShutdownBehavior": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-instanceinitiatedshutdownbehavior",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "InstanceType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-instancetype",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Conditional"
+ },
+ "Ipv6AddressCount": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-ipv6addresscount",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Ipv6Addresses": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-ipv6addresses",
+ "DuplicatesAllowed": true,
+ "ItemType": "InstanceIpv6Address",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ },
+ "KernelId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-kernelid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Conditional"
+ },
+ "KeyName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-keyname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "LaunchTemplate": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-launchtemplate",
+ "Required": false,
+ "Type": "LaunchTemplateSpecification",
+ "UpdateType": "Immutable"
+ },
+ "Monitoring": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-monitoring",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "NetworkInterfaces": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-networkinterfaces",
+ "DuplicatesAllowed": true,
+ "ItemType": "NetworkInterface",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ },
+ "PlacementGroupName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-placementgroupname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "PrivateIpAddress": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-privateipaddress",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "RamdiskId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-ramdiskid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Conditional"
+ },
+ "SecurityGroupIds": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-securitygroupids",
+ "DuplicatesAllowed": true,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Conditional"
+ },
+ "SecurityGroups": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-securitygroups",
+ "DuplicatesAllowed": true,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ },
+ "SourceDestCheck": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-sourcedestcheck",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "SsmAssociations": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-ssmassociations",
+ "DuplicatesAllowed": true,
+ "ItemType": "SsmAssociation",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "SubnetId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-subnetid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Tags": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-tags",
+ "DuplicatesAllowed": true,
+ "ItemType": "Tag",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "Tenancy": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-tenancy",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Conditional"
+ },
+ "UserData": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-userdata",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Conditional"
+ },
+ "Volumes": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-volumes",
+ "DuplicatesAllowed": true,
+ "ItemType": "Volume",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EKS::Cluster": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-eks-cluster.html",
+ "Attributes": {
+ "Endpoint": {
+ "PrimitiveType": "String"
+ },
+ "Arn": {
+ "PrimitiveType": "String"
+ },
+ "CertificateAuthorityData": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Properties": {
+ "Version": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-eks-cluster.html#cfn-eks-cluster-version",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "RoleArn": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-eks-cluster.html#cfn-eks-cluster-rolearn",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "ResourcesVpcConfig": {
+ "Type": "ResourcesVpcConfig",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-eks-cluster.html#cfn-eks-cluster-resourcesvpcconfig",
+ "UpdateType": "Immutable"
+ },
+ "Name": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-eks-cluster.html#cfn-eks-cluster-name",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::CloudFormation::Stack": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-stack.html",
+ "Properties": {
+ "NotificationARNs": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-stack.html#cfn-cloudformation-stack-notificationarns",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "Parameters": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-stack.html#cfn-cloudformation-stack-parameters",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "Map",
+ "UpdateType": "Mutable"
+ },
+ "Tags": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-stack.html#cfn-cloudformation-stack-tags",
+ "DuplicatesAllowed": true,
+ "ItemType": "Tag",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "TemplateURL": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-stack.html#cfn-cloudformation-stack-templateurl",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "TimeoutInMinutes": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-stack.html#cfn-cloudformation-stack-timeoutinminutes",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ElastiCache::ParameterGroup": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-parameter-group.html",
+ "Properties": {
+ "CacheParameterGroupFamily": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-parameter-group.html#cfn-elasticache-parametergroup-cacheparametergroupfamily",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Description": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-parameter-group.html#cfn-elasticache-parametergroup-description",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Properties": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-parameter-group.html#cfn-elasticache-parametergroup-properties",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "Map",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::WAF::ByteMatchSet": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-waf-bytematchset.html",
+ "Properties": {
+ "ByteMatchTuples": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-waf-bytematchset.html#cfn-waf-bytematchset-bytematchtuples",
+ "DuplicatesAllowed": false,
+ "ItemType": "ByteMatchTuple",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-waf-bytematchset.html#cfn-waf-bytematchset-name",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::Config::AggregationAuthorization": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-aggregationauthorization.html",
+ "Properties": {
+ "AuthorizedAccountId": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-aggregationauthorization.html#cfn-config-aggregationauthorization-authorizedaccountid",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "AuthorizedAwsRegion": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-aggregationauthorization.html#cfn-config-aggregationauthorization-authorizedawsregion",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::SQS::QueuePolicy": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-policy.html",
+ "Properties": {
+ "PolicyDocument": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-policy.html#cfn-sqs-queuepolicy-policydoc",
+ "PrimitiveType": "Json",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Queues": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-policy.html#cfn-sqs-queuepolicy-queues",
+ "DuplicatesAllowed": true,
+ "PrimitiveItemType": "String",
+ "Required": true,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EFS::FileSystem": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-efs-filesystem.html",
+ "Properties": {
+ "Encrypted": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-efs-filesystem.html#cfn-efs-filesystem-encrypted",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "FileSystemTags": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-efs-filesystem.html#cfn-efs-filesystem-filesystemtags",
+ "DuplicatesAllowed": false,
+ "ItemType": "ElasticFileSystemTag",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "KmsKeyId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-efs-filesystem.html#cfn-efs-filesystem-kmskeyid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "PerformanceMode": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-efs-filesystem.html#cfn-efs-filesystem-performancemode",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "ProvisionedThroughputInMibps": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-efs-filesystem.html#cfn-elasticfilesystem-filesystem-provisionedthroughputinmibps",
+ "PrimitiveType": "Double",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "ThroughputMode": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-efs-filesystem.html#cfn-elasticfilesystem-filesystem-throughputmode",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::WAF::SqlInjectionMatchSet": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-waf-sqlinjectionmatchset.html",
+ "Properties": {
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-waf-sqlinjectionmatchset.html#cfn-waf-sqlinjectionmatchset-name",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "SqlInjectionMatchTuples": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-waf-sqlinjectionmatchset.html#cfn-waf-sqlinjectionmatchset-sqlinjectionmatchtuples",
+ "DuplicatesAllowed": false,
+ "ItemType": "SqlInjectionMatchTuple",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::DAX::Cluster": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dax-cluster.html",
+ "Attributes": {
+ "ClusterDiscoveryEndpoint": {
+ "PrimitiveType": "String"
+ },
+ "Arn": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Properties": {
+ "SSESpecification": {
+ "Type": "SSESpecification",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dax-cluster.html#cfn-dax-cluster-ssespecification",
+ "UpdateType": "Immutable"
+ },
+ "Description": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dax-cluster.html#cfn-dax-cluster-description",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "ReplicationFactor": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dax-cluster.html#cfn-dax-cluster-replicationfactor",
+ "PrimitiveType": "Integer",
+ "UpdateType": "Mutable"
+ },
+ "ParameterGroupName": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dax-cluster.html#cfn-dax-cluster-parametergroupname",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "AvailabilityZones": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dax-cluster.html#cfn-dax-cluster-availabilityzones",
+ "UpdateType": "Mutable"
+ },
+ "IAMRoleARN": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dax-cluster.html#cfn-dax-cluster-iamrolearn",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "SubnetGroupName": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dax-cluster.html#cfn-dax-cluster-subnetgroupname",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "PreferredMaintenanceWindow": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dax-cluster.html#cfn-dax-cluster-preferredmaintenancewindow",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "NotificationTopicARN": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dax-cluster.html#cfn-dax-cluster-notificationtopicarn",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "SecurityGroupIds": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dax-cluster.html#cfn-dax-cluster-securitygroupids",
+ "UpdateType": "Mutable"
+ },
+ "NodeType": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dax-cluster.html#cfn-dax-cluster-nodetype",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "ClusterName": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dax-cluster.html#cfn-dax-cluster-clustername",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "Tags": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dax-cluster.html#cfn-dax-cluster-tags",
+ "PrimitiveType": "Json",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ApplicationAutoScaling::ScalingPolicy": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationautoscaling-scalingpolicy.html",
+ "Properties": {
+ "PolicyName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationautoscaling-scalingpolicy.html#cfn-applicationautoscaling-scalingpolicy-policyname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "PolicyType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationautoscaling-scalingpolicy.html#cfn-applicationautoscaling-scalingpolicy-policytype",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "ResourceId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationautoscaling-scalingpolicy.html#cfn-applicationautoscaling-scalingpolicy-resourceid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "ScalableDimension": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationautoscaling-scalingpolicy.html#cfn-applicationautoscaling-scalingpolicy-scalabledimension",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "ScalingTargetId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationautoscaling-scalingpolicy.html#cfn-applicationautoscaling-scalingpolicy-scalingtargetid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "ServiceNamespace": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationautoscaling-scalingpolicy.html#cfn-applicationautoscaling-scalingpolicy-servicenamespace",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "StepScalingPolicyConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationautoscaling-scalingpolicy.html#cfn-applicationautoscaling-scalingpolicy-stepscalingpolicyconfiguration",
+ "Required": false,
+ "Type": "StepScalingPolicyConfiguration",
+ "UpdateType": "Mutable"
+ },
+ "TargetTrackingScalingPolicyConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationautoscaling-scalingpolicy.html#cfn-applicationautoscaling-scalingpolicy-targettrackingscalingpolicyconfiguration",
+ "Required": false,
+ "Type": "TargetTrackingScalingPolicyConfiguration",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CodeCommit::Repository": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codecommit-repository.html",
+ "Attributes": {
+ "CloneUrlHttp": {
+ "PrimitiveType": "String"
+ },
+ "CloneUrlSsh": {
+ "PrimitiveType": "String"
+ },
+ "Arn": {
+ "PrimitiveType": "String"
+ },
+ "Name": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Properties": {
+ "RepositoryName": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codecommit-repository.html#cfn-codecommit-repository-repositoryname",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Triggers": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codecommit-repository.html#cfn-codecommit-repository-triggers",
+ "ItemType": "RepositoryTrigger",
+ "UpdateType": "Conditional"
+ },
+ "RepositoryDescription": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codecommit-repository.html#cfn-codecommit-repository-repositorydescription",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::SSM::PatchBaseline": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-patchbaseline.html",
+ "Properties": {
+ "OperatingSystem": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-patchbaseline.html#cfn-ssm-patchbaseline-operatingsystem",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "ApprovedPatches": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-patchbaseline.html#cfn-ssm-patchbaseline-approvedpatches",
+ "UpdateType": "Mutable"
+ },
+ "PatchGroups": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-patchbaseline.html#cfn-ssm-patchbaseline-patchgroups",
+ "UpdateType": "Mutable"
+ },
+ "Description": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-patchbaseline.html#cfn-ssm-patchbaseline-description",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "ApprovedPatchesComplianceLevel": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-patchbaseline.html#cfn-ssm-patchbaseline-approvedpatchescompliancelevel",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "ApprovedPatchesEnableNonSecurity": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-patchbaseline.html#cfn-ssm-patchbaseline-approvedpatchesenablenonsecurity",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "ApprovalRules": {
+ "Type": "RuleGroup",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-patchbaseline.html#cfn-ssm-patchbaseline-approvalrules",
+ "UpdateType": "Mutable"
+ },
+ "GlobalFilters": {
+ "Type": "PatchFilterGroup",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-patchbaseline.html#cfn-ssm-patchbaseline-globalfilters",
+ "UpdateType": "Mutable"
+ },
+ "Sources": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-patchbaseline.html#cfn-ssm-patchbaseline-sources",
+ "ItemType": "PatchSource",
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-patchbaseline.html#cfn-ssm-patchbaseline-name",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "RejectedPatches": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-patchbaseline.html#cfn-ssm-patchbaseline-rejectedpatches",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ServiceCatalog::Portfolio": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-portfolio.html",
+ "Attributes": {
+ "PortfolioName": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Properties": {
+ "ProviderName": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-portfolio.html#cfn-servicecatalog-portfolio-providername",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Description": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-portfolio.html#cfn-servicecatalog-portfolio-description",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "DisplayName": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-portfolio.html#cfn-servicecatalog-portfolio-displayname",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "AcceptLanguage": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-portfolio.html#cfn-servicecatalog-portfolio-acceptlanguage",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Tags": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-portfolio.html#cfn-servicecatalog-portfolio-tags",
+ "ItemType": "Tag",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::GuardDuty::Member": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-member.html",
+ "Properties": {
+ "Status": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-member.html#cfn-guardduty-member-status",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "MemberId": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-member.html#cfn-guardduty-member-memberid",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "Email": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-member.html#cfn-guardduty-member-email",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "Message": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-member.html#cfn-guardduty-member-message",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "DisableEmailNotification": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-member.html#cfn-guardduty-member-disableemailnotification",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "DetectorId": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-member.html#cfn-guardduty-member-detectorid",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::RDS::DBParameterGroup": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbparametergroup.html",
+ "Properties": {
+ "Description": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbparametergroup.html#cfn-rds-dbparametergroup-description",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Family": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbparametergroup.html#cfn-rds-dbparametergroup-family",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Parameters": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbparametergroup.html#cfn-rds-dbparametergroup-parameters",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "Map",
+ "UpdateType": "Mutable"
+ },
+ "Tags": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbparametergroup.html#cfn-rds-dbparametergroup-tags",
+ "DuplicatesAllowed": true,
+ "ItemType": "Tag",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ServiceCatalog::AcceptedPortfolioShare": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-acceptedportfolioshare.html",
+ "Properties": {
+ "AcceptLanguage": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-acceptedportfolioshare.html#cfn-servicecatalog-acceptedportfolioshare-acceptlanguage",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "PortfolioId": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-acceptedportfolioshare.html#cfn-servicecatalog-acceptedportfolioshare-portfolioid",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::ServiceDiscovery::Service": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicediscovery-service.html",
+ "Attributes": {
+ "Id": {
+ "PrimitiveType": "String"
+ },
+ "Arn": {
+ "PrimitiveType": "String"
+ },
+ "Name": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Properties": {
+ "Description": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicediscovery-service.html#cfn-servicediscovery-service-description",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "HealthCheckCustomConfig": {
+ "Type": "HealthCheckCustomConfig",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicediscovery-service.html#cfn-servicediscovery-service-healthcheckcustomconfig",
+ "UpdateType": "Mutable"
+ },
+ "DnsConfig": {
+ "Type": "DnsConfig",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicediscovery-service.html#cfn-servicediscovery-service-dnsconfig",
+ "UpdateType": "Mutable"
+ },
+ "HealthCheckConfig": {
+ "Type": "HealthCheckConfig",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicediscovery-service.html#cfn-servicediscovery-service-healthcheckconfig",
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicediscovery-service.html#cfn-servicediscovery-service-name",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::Logs::LogStream": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-logstream.html",
+ "Properties": {
+ "LogGroupName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-logstream.html#cfn-logs-logstream-loggroupname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "LogStreamName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-logstream.html#cfn-logs-logstream-logstreamname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::AutoScaling::ScalingPolicy": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-policy.html",
+ "Properties": {
+ "AdjustmentType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-policy.html#cfn-as-scalingpolicy-adjustmenttype",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "AutoScalingGroupName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-policy.html#cfn-as-scalingpolicy-autoscalinggroupname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Cooldown": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-policy.html#cfn-as-scalingpolicy-cooldown",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "EstimatedInstanceWarmup": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-policy.html#cfn-as-scalingpolicy-estimatedinstancewarmup",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "MetricAggregationType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-policy.html#cfn-as-scalingpolicy-metricaggregationtype",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "MinAdjustmentMagnitude": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-policy.html#cfn-as-scalingpolicy-minadjustmentmagnitude",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "PolicyType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-policy.html#cfn-as-scalingpolicy-policytype",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "ScalingAdjustment": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-policy.html#cfn-as-scalingpolicy-scalingadjustment",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "StepAdjustments": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-policy.html#cfn-as-scalingpolicy-stepadjustments",
+ "DuplicatesAllowed": false,
+ "ItemType": "StepAdjustment",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "TargetTrackingConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-policy.html#cfn-autoscaling-scalingpolicy-targettrackingconfiguration",
+ "Required": false,
+ "Type": "TargetTrackingConfiguration",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EMR::Step": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emr-step.html",
+ "Properties": {
+ "ActionOnFailure": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emr-step.html#cfn-elasticmapreduce-step-actiononfailure",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "HadoopJarStep": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emr-step.html#cfn-elasticmapreduce-step-hadoopjarstep",
+ "Required": true,
+ "Type": "HadoopJarStepConfig",
+ "UpdateType": "Immutable"
+ },
+ "JobFlowId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emr-step.html#cfn-elasticmapreduce-step-jobflowid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emr-step.html#cfn-elasticmapreduce-step-name",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::Config::ConfigurationRecorder": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-configurationrecorder.html",
+ "Properties": {
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-configurationrecorder.html#cfn-config-configurationrecorder-name",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "RecordingGroup": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-configurationrecorder.html#cfn-config-configurationrecorder-recordinggroup",
+ "Required": false,
+ "Type": "RecordingGroup",
+ "UpdateType": "Mutable"
+ },
+ "RoleARN": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-configurationrecorder.html#cfn-config-configurationrecorder-rolearn",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::RDS::EventSubscription": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-eventsubscription.html",
+ "Properties": {
+ "Enabled": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-eventsubscription.html#cfn-rds-eventsubscription-enabled",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "EventCategories": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-eventsubscription.html#cfn-rds-eventsubscription-eventcategories",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "SnsTopicArn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-eventsubscription.html#cfn-rds-eventsubscription-snstopicarn",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "SourceIds": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-eventsubscription.html#cfn-rds-eventsubscription-sourceids",
+ "DuplicatesAllowed": true,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "SourceType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-eventsubscription.html#cfn-rds-eventsubscription-sourcetype",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Conditional"
+ }
+ }
+ },
+ "AWS::ElasticBeanstalk::Environment": {
+ "Attributes": {
+ "EndpointURL": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-beanstalk-environment.html",
+ "Properties": {
+ "ApplicationName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-beanstalk-environment.html#cfn-beanstalk-environment-applicationname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "CNAMEPrefix": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-beanstalk-environment.html#cfn-beanstalk-environment-cnameprefix",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Description": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-beanstalk-environment.html#cfn-beanstalk-environment-description",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "EnvironmentName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-beanstalk-environment.html#cfn-beanstalk-environment-name",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "OptionSettings": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-beanstalk-environment.html#cfn-beanstalk-environment-optionsettings",
+ "DuplicatesAllowed": true,
+ "ItemType": "OptionSetting",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "PlatformArn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-beanstalk-environment.html#cfn-beanstalk-environment-platformarn",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "SolutionStackName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-beanstalk-environment.html#cfn-beanstalk-environment-solutionstackname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Tags": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-beanstalk-environment.html#cfn-elasticbeanstalk-environment-tags",
+ "DuplicatesAllowed": true,
+ "ItemType": "Tag",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "TemplateName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-beanstalk-environment.html#cfn-beanstalk-environment-templatename",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Tier": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-beanstalk-environment.html#cfn-beanstalk-environment-tier",
+ "Required": false,
+ "Type": "Tier",
+ "UpdateType": "Conditional"
+ },
+ "VersionLabel": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-beanstalk-environment.html#cfn-beanstalk-environment-versionlabel",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Lambda::Function": {
+ "Attributes": {
+ "Arn": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html",
+ "Properties": {
+ "Code": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-code",
+ "Required": true,
+ "Type": "Code",
+ "UpdateType": "Mutable"
+ },
+ "DeadLetterConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-deadletterconfig",
+ "Required": false,
+ "Type": "DeadLetterConfig",
+ "UpdateType": "Mutable"
+ },
+ "Description": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-description",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Environment": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-environment",
+ "Required": false,
+ "Type": "Environment",
+ "UpdateType": "Mutable"
+ },
+ "FunctionName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-functionname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Handler": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-handler",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "KmsKeyArn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-kmskeyarn",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "MemorySize": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-memorysize",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "ReservedConcurrentExecutions": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-reservedconcurrentexecutions",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Role": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-role",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Runtime": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-runtime",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Tags": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-tags",
+ "DuplicatesAllowed": true,
+ "ItemType": "Tag",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "Timeout": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-timeout",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "TracingConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-tracingconfig",
+ "Required": false,
+ "Type": "TracingConfig",
+ "UpdateType": "Mutable"
+ },
+ "VpcConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-vpcconfig",
+ "Required": false,
+ "Type": "VpcConfig",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::IoT1Click::Placement": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot1click-placement.html",
+ "Attributes": {
+ "PlacementName": {
+ "PrimitiveType": "String"
+ },
+ "ProjectName": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Properties": {
+ "PlacementName": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot1click-placement.html#cfn-iot1click-placement-placementname",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "ProjectName": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot1click-placement.html#cfn-iot1click-placement-projectname",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "AssociatedDevices": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot1click-placement.html#cfn-iot1click-placement-associateddevices",
+ "PrimitiveType": "Json",
+ "UpdateType": "Immutable"
+ },
+ "Attributes": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot1click-placement.html#cfn-iot1click-placement-attributes",
+ "PrimitiveType": "Json",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EC2::DHCPOptions": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-dhcp-options.html",
+ "Properties": {
+ "DomainName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-dhcp-options.html#cfn-ec2-dhcpoptions-domainname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "DomainNameServers": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-dhcp-options.html#cfn-ec2-dhcpoptions-domainnameservers",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ },
+ "NetbiosNameServers": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-dhcp-options.html#cfn-ec2-dhcpoptions-netbiosnameservers",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ },
+ "NetbiosNodeType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-dhcp-options.html#cfn-ec2-dhcpoptions-netbiosnodetype",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "NtpServers": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-dhcp-options.html#cfn-ec2-dhcpoptions-ntpservers",
+ "DuplicatesAllowed": true,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ },
+ "Tags": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-dhcp-options.html#cfn-ec2-dhcpoptions-tags",
+ "DuplicatesAllowed": true,
+ "ItemType": "Tag",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ApiGateway::UsagePlan": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-usageplan.html",
+ "Properties": {
+ "ApiStages": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-usageplan.html#cfn-apigateway-usageplan-apistages",
+ "DuplicatesAllowed": false,
+ "ItemType": "ApiStage",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "Description": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-usageplan.html#cfn-apigateway-usageplan-description",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Quota": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-usageplan.html#cfn-apigateway-usageplan-quota",
+ "Required": false,
+ "Type": "QuotaSettings",
+ "UpdateType": "Mutable"
+ },
+ "Throttle": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-usageplan.html#cfn-apigateway-usageplan-throttle",
+ "Required": false,
+ "Type": "ThrottleSettings",
+ "UpdateType": "Mutable"
+ },
+ "UsagePlanName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-usageplan.html#cfn-apigateway-usageplan-usageplanname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::IAM::User": {
+ "Attributes": {
+ "Arn": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-user.html",
+ "Properties": {
+ "Groups": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-user.html#cfn-iam-user-groups",
+ "DuplicatesAllowed": true,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "LoginProfile": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-user.html#cfn-iam-user-loginprofile",
+ "Required": false,
+ "Type": "LoginProfile",
+ "UpdateType": "Mutable"
+ },
+ "ManagedPolicyArns": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-user.html#cfn-iam-user-managepolicyarns",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "Path": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-user.html#cfn-iam-user-path",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Policies": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-user.html#cfn-iam-user-policies",
+ "DuplicatesAllowed": true,
+ "ItemType": "Policy",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "UserName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-user.html#cfn-iam-user-username",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::EC2::NetworkAcl": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-acl.html",
+ "Properties": {
+ "Tags": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-acl.html#cfn-ec2-networkacl-tags",
+ "DuplicatesAllowed": true,
+ "ItemType": "Tag",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "VpcId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-acl.html#cfn-ec2-networkacl-vpcid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::OpsWorks::Instance": {
+ "Attributes": {
+ "AvailabilityZone": {
+ "PrimitiveType": "String"
+ },
+ "PrivateDnsName": {
+ "PrimitiveType": "String"
+ },
+ "PrivateIp": {
+ "PrimitiveType": "String"
+ },
+ "PublicDnsName": {
+ "PrimitiveType": "String"
+ },
+ "PublicIp": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-instance.html",
+ "Properties": {
+ "AgentVersion": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-instance.html#cfn-opsworks-instance-agentversion",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "AmiId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-instance.html#cfn-opsworks-instance-amiid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Architecture": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-instance.html#cfn-opsworks-instance-architecture",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "AutoScalingType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-instance.html#cfn-opsworks-instance-autoscalingtype",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "AvailabilityZone": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-instance.html#cfn-opsworks-instance-availabilityzone",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "BlockDeviceMappings": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-instance.html#cfn-opsworks-instance-blockdevicemappings",
+ "DuplicatesAllowed": false,
+ "ItemType": "BlockDeviceMapping",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ },
+ "EbsOptimized": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-instance.html#cfn-opsworks-instance-ebsoptimized",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "ElasticIps": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-instance.html#cfn-opsworks-instance-elasticips",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "Hostname": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-instance.html#cfn-opsworks-instance-hostname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "InstallUpdatesOnBoot": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-instance.html#cfn-opsworks-instance-installupdatesonboot",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "InstanceType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-instance.html#cfn-opsworks-instance-instancetype",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "LayerIds": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-instance.html#cfn-opsworks-instance-layerids",
+ "DuplicatesAllowed": true,
+ "PrimitiveItemType": "String",
+ "Required": true,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "Os": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-instance.html#cfn-opsworks-instance-os",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "RootDeviceType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-instance.html#cfn-opsworks-instance-rootdevicetype",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "SshKeyName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-instance.html#cfn-opsworks-instance-sshkeyname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "StackId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-instance.html#cfn-opsworks-instance-stackid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "SubnetId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-instance.html#cfn-opsworks-instance-subnetid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Tenancy": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-instance.html#cfn-opsworks-instance-tenancy",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "TimeBasedAutoScaling": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-instance.html#cfn-opsworks-instance-timebasedautoscaling",
+ "Required": false,
+ "Type": "TimeBasedAutoScaling",
+ "UpdateType": "Immutable"
+ },
+ "VirtualizationType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-instance.html#cfn-opsworks-instance-virtualizationtype",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Volumes": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-instance.html#cfn-opsworks-instance-volumes",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Config::ConfigRule": {
+ "Attributes": {
+ "Arn": {
+ "PrimitiveType": "String"
+ },
+ "Compliance.Type": {
+ "PrimitiveType": "String"
+ },
+ "ConfigRuleId": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-configrule.html",
+ "Properties": {
+ "ConfigRuleName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-configrule.html#cfn-config-configrule-configrulename",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Description": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-configrule.html#cfn-config-configrule-description",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "InputParameters": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-configrule.html#cfn-config-configrule-inputparameters",
+ "PrimitiveType": "Json",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "MaximumExecutionFrequency": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-configrule.html#cfn-config-configrule-maximumexecutionfrequency",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Scope": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-configrule.html#cfn-config-configrule-scope",
+ "Required": false,
+ "Type": "Scope",
+ "UpdateType": "Mutable"
+ },
+ "Source": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-configrule.html#cfn-config-configrule-source",
+ "Required": true,
+ "Type": "Source",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::SES::ConfigurationSet": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-configurationset.html",
+ "Properties": {
+ "Name": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-configurationset.html#cfn-ses-configurationset-name",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::Glue::Partition": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-partition.html",
+ "Properties": {
+ "TableName": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-partition.html#cfn-glue-partition-tablename",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "DatabaseName": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-partition.html#cfn-glue-partition-databasename",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "CatalogId": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-partition.html#cfn-glue-partition-catalogid",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "PartitionInput": {
+ "Type": "PartitionInput",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-partition.html#cfn-glue-partition-partitioninput",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EC2::VPNGatewayRoutePropagation": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpn-gatewayrouteprop.html",
+ "Properties": {
+ "RouteTableIds": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpn-gatewayrouteprop.html#cfn-ec2-vpngatewayrouteprop-routetableids",
+ "DuplicatesAllowed": true,
+ "PrimitiveItemType": "String",
+ "Required": true,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "VpnGatewayId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpn-gatewayrouteprop.html#cfn-ec2-vpngatewayrouteprop-vpngatewayid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::WAF::WebACL": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-waf-webacl.html",
+ "Properties": {
+ "DefaultAction": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-waf-webacl.html#cfn-waf-webacl-defaultaction",
+ "Required": true,
+ "Type": "WafAction",
+ "UpdateType": "Mutable"
+ },
+ "MetricName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-waf-webacl.html#cfn-waf-webacl-metricname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-waf-webacl.html#cfn-waf-webacl-name",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "Rules": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-waf-webacl.html#cfn-waf-webacl-rules",
+ "DuplicatesAllowed": false,
+ "ItemType": "ActivatedRule",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Glue::Job": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-job.html",
+ "Properties": {
+ "Role": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-job.html#cfn-glue-job-role",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "DefaultArguments": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-job.html#cfn-glue-job-defaultarguments",
+ "PrimitiveType": "Json",
+ "UpdateType": "Mutable"
+ },
+ "Connections": {
+ "Type": "ConnectionsList",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-job.html#cfn-glue-job-connections",
+ "UpdateType": "Mutable"
+ },
+ "MaxRetries": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-job.html#cfn-glue-job-maxretries",
+ "PrimitiveType": "Double",
+ "UpdateType": "Mutable"
+ },
+ "Description": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-job.html#cfn-glue-job-description",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "LogUri": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-job.html#cfn-glue-job-loguri",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Command": {
+ "Type": "JobCommand",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-job.html#cfn-glue-job-command",
+ "UpdateType": "Mutable"
+ },
+ "AllocatedCapacity": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-job.html#cfn-glue-job-allocatedcapacity",
+ "PrimitiveType": "Double",
+ "UpdateType": "Mutable"
+ },
+ "ExecutionProperty": {
+ "Type": "ExecutionProperty",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-job.html#cfn-glue-job-executionproperty",
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-job.html#cfn-glue-job-name",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::Neptune::DBCluster": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbcluster.html",
+ "Attributes": {
+ "ClusterResourceId": {
+ "PrimitiveType": "String"
+ },
+ "Endpoint": {
+ "PrimitiveType": "String"
+ },
+ "Port": {
+ "PrimitiveType": "String"
+ },
+ "ReadEndpoint": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Properties": {
+ "StorageEncrypted": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbcluster.html#cfn-neptune-dbcluster-storageencrypted",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Immutable"
+ },
+ "KmsKeyId": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbcluster.html#cfn-neptune-dbcluster-kmskeyid",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "AvailabilityZones": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbcluster.html#cfn-neptune-dbcluster-availabilityzones",
+ "UpdateType": "Immutable"
+ },
+ "SnapshotIdentifier": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbcluster.html#cfn-neptune-dbcluster-snapshotidentifier",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "Port": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbcluster.html#cfn-neptune-dbcluster-port",
+ "PrimitiveType": "Integer",
+ "UpdateType": "Mutable"
+ },
+ "DBClusterIdentifier": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbcluster.html#cfn-neptune-dbcluster-dbclusteridentifier",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "PreferredMaintenanceWindow": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbcluster.html#cfn-neptune-dbcluster-preferredmaintenancewindow",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "IamAuthEnabled": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbcluster.html#cfn-neptune-dbcluster-iamauthenabled",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "DBSubnetGroupName": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbcluster.html#cfn-neptune-dbcluster-dbsubnetgroupname",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "PreferredBackupWindow": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbcluster.html#cfn-neptune-dbcluster-preferredbackupwindow",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "VpcSecurityGroupIds": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbcluster.html#cfn-neptune-dbcluster-vpcsecuritygroupids",
+ "UpdateType": "Mutable"
+ },
+ "DBClusterParameterGroupName": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbcluster.html#cfn-neptune-dbcluster-dbclusterparametergroupname",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "BackupRetentionPeriod": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbcluster.html#cfn-neptune-dbcluster-backupretentionperiod",
+ "PrimitiveType": "Integer",
+ "UpdateType": "Mutable"
+ },
+ "Tags": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbcluster.html#cfn-neptune-dbcluster-tags",
+ "ItemType": "Tag",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::S3::Bucket": {
+ "Attributes": {
+ "Arn": {
+ "PrimitiveType": "String"
+ },
+ "DomainName": {
+ "PrimitiveType": "String"
+ },
+ "DualStackDomainName": {
+ "PrimitiveType": "String"
+ },
+ "WebsiteURL": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket.html",
+ "Properties": {
+ "AccelerateConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket.html#cfn-s3-bucket-accelerateconfiguration",
+ "Required": false,
+ "Type": "AccelerateConfiguration",
+ "UpdateType": "Mutable"
+ },
+ "AccessControl": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket.html#cfn-s3-bucket-accesscontrol",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "AnalyticsConfigurations": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket.html#cfn-s3-bucket-analyticsconfigurations",
+ "DuplicatesAllowed": false,
+ "ItemType": "AnalyticsConfiguration",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "BucketEncryption": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket.html#cfn-s3-bucket-bucketencryption",
+ "Required": false,
+ "Type": "BucketEncryption",
+ "UpdateType": "Mutable"
+ },
+ "BucketName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket.html#cfn-s3-bucket-name",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "CorsConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket.html#cfn-s3-bucket-crossoriginconfig",
+ "Required": false,
+ "Type": "CorsConfiguration",
+ "UpdateType": "Mutable"
+ },
+ "InventoryConfigurations": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket.html#cfn-s3-bucket-inventoryconfigurations",
+ "DuplicatesAllowed": false,
+ "ItemType": "InventoryConfiguration",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "LifecycleConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket.html#cfn-s3-bucket-lifecycleconfig",
+ "Required": false,
+ "Type": "LifecycleConfiguration",
+ "UpdateType": "Mutable"
+ },
+ "LoggingConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket.html#cfn-s3-bucket-loggingconfig",
+ "Required": false,
+ "Type": "LoggingConfiguration",
+ "UpdateType": "Mutable"
+ },
+ "MetricsConfigurations": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket.html#cfn-s3-bucket-metricsconfigurations",
+ "DuplicatesAllowed": false,
+ "ItemType": "MetricsConfiguration",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "NotificationConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket.html#cfn-s3-bucket-notification",
+ "Required": false,
+ "Type": "NotificationConfiguration",
+ "UpdateType": "Mutable"
+ },
+ "ReplicationConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket.html#cfn-s3-bucket-replicationconfiguration",
+ "Required": false,
+ "Type": "ReplicationConfiguration",
+ "UpdateType": "Mutable"
+ },
+ "Tags": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket.html#cfn-s3-bucket-tags",
+ "DuplicatesAllowed": true,
+ "ItemType": "Tag",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "VersioningConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket.html#cfn-s3-bucket-versioning",
+ "Required": false,
+ "Type": "VersioningConfiguration",
+ "UpdateType": "Mutable"
+ },
+ "WebsiteConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket.html#cfn-s3-bucket-websiteconfiguration",
+ "Required": false,
+ "Type": "WebsiteConfiguration",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CloudFormation::WaitConditionHandle": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waitconditionhandle.html",
+ "Properties": {}
+ },
+ "AWS::Lambda::Version": {
+ "Attributes": {
+ "Version": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-version.html",
+ "Properties": {
+ "CodeSha256": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-version.html#cfn-lambda-version-codesha256",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Description": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-version.html#cfn-lambda-version-description",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "FunctionName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-version.html#cfn-lambda-version-functionname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::SageMaker::NotebookInstance": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html",
+ "Attributes": {
+ "NotebookInstanceName": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Properties": {
+ "KmsKeyId": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html#cfn-sagemaker-notebookinstance-kmskeyid",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "DirectInternetAccess": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html#cfn-sagemaker-notebookinstance-directinternetaccess",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "SubnetId": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html#cfn-sagemaker-notebookinstance-subnetid",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "NotebookInstanceName": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html#cfn-sagemaker-notebookinstance-notebookinstancename",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "InstanceType": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html#cfn-sagemaker-notebookinstance-instancetype",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "LifecycleConfigName": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html#cfn-sagemaker-notebookinstance-lifecycleconfigname",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "SecurityGroupIds": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html#cfn-sagemaker-notebookinstance-securitygroupids",
+ "UpdateType": "Immutable"
+ },
+ "RoleArn": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html#cfn-sagemaker-notebookinstance-rolearn",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Tags": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html#cfn-sagemaker-notebookinstance-tags",
+ "ItemType": "Tag",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ApiGateway::BasePathMapping": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-basepathmapping.html",
+ "Properties": {
+ "BasePath": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-basepathmapping.html#cfn-apigateway-basepathmapping-basepath",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "DomainName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-basepathmapping.html#cfn-apigateway-basepathmapping-domainname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "RestApiId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-basepathmapping.html#cfn-apigateway-basepathmapping-restapiid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Stage": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-basepathmapping.html#cfn-apigateway-basepathmapping-stage",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Cognito::UserPool": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html",
+ "Attributes": {
+ "ProviderName": {
+ "PrimitiveType": "String"
+ },
+ "ProviderURL": {
+ "PrimitiveType": "String"
+ },
+ "Arn": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Properties": {
+ "UserPoolTags": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html#cfn-cognito-userpool-userpooltags",
+ "PrimitiveType": "Json",
+ "UpdateType": "Mutable"
+ },
+ "Policies": {
+ "Type": "Policies",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html#cfn-cognito-userpool-policies",
+ "UpdateType": "Mutable"
+ },
+ "MfaConfiguration": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html#cfn-cognito-userpool-mfaconfiguration",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Schema": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html#cfn-cognito-userpool-schema",
+ "ItemType": "SchemaAttribute",
+ "UpdateType": "Immutable"
+ },
+ "AdminCreateUserConfig": {
+ "Type": "AdminCreateUserConfig",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html#cfn-cognito-userpool-admincreateuserconfig",
+ "UpdateType": "Mutable"
+ },
+ "SmsAuthenticationMessage": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html#cfn-cognito-userpool-smsauthenticationmessage",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "UserPoolName": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html#cfn-cognito-userpool-userpoolname",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "SmsVerificationMessage": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html#cfn-cognito-userpool-smsverificationmessage",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "EmailConfiguration": {
+ "Type": "EmailConfiguration",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html#cfn-cognito-userpool-emailconfiguration",
+ "UpdateType": "Mutable"
+ },
+ "SmsConfiguration": {
+ "Type": "SmsConfiguration",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html#cfn-cognito-userpool-smsconfiguration",
+ "UpdateType": "Mutable"
+ },
+ "AliasAttributes": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html#cfn-cognito-userpool-aliasattributes",
+ "UpdateType": "Immutable"
+ },
+ "EmailVerificationSubject": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html#cfn-cognito-userpool-emailverificationsubject",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "LambdaConfig": {
+ "Type": "LambdaConfig",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html#cfn-cognito-userpool-lambdaconfig",
+ "UpdateType": "Mutable"
+ },
+ "UsernameAttributes": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html#cfn-cognito-userpool-usernameattributes",
+ "UpdateType": "Immutable"
+ },
+ "AutoVerifiedAttributes": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html#cfn-cognito-userpool-autoverifiedattributes",
+ "UpdateType": "Mutable"
+ },
+ "DeviceConfiguration": {
+ "Type": "DeviceConfiguration",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html#cfn-cognito-userpool-deviceconfiguration",
+ "UpdateType": "Mutable"
+ },
+ "EmailVerificationMessage": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html#cfn-cognito-userpool-emailverificationmessage",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EC2::EgressOnlyInternetGateway": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-egressonlyinternetgateway.html",
+ "Properties": {
+ "VpcId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-egressonlyinternetgateway.html#cfn-ec2-egressonlyinternetgateway-vpcid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::Route53::RecordSetGroup": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-route53-recordsetgroup.html",
+ "Properties": {
+ "Comment": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-route53-recordsetgroup.html#cfn-route53-recordsetgroup-comment",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "HostedZoneId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-route53-recordsetgroup.html#cfn-route53-recordsetgroup-hostedzoneid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "HostedZoneName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-route53-recordsetgroup.html#cfn-route53-recordsetgroup-hostedzonename",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "RecordSets": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-route53-recordsetgroup.html#cfn-route53-recordsetgroup-recordsets",
+ "DuplicatesAllowed": false,
+ "ItemType": "RecordSet",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::KinesisFirehose::DeliveryStream": {
+ "Attributes": {
+ "Arn": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesisfirehose-deliverystream.html",
+ "Properties": {
+ "DeliveryStreamName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesisfirehose-deliverystream.html#cfn-kinesisfirehose-deliverystream-deliverystreamname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "DeliveryStreamType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesisfirehose-deliverystream.html#cfn-kinesisfirehose-deliverystream-deliverystreamtype",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "ElasticsearchDestinationConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesisfirehose-deliverystream.html#cfn-kinesisfirehose-deliverystream-elasticsearchdestinationconfiguration",
+ "Required": false,
+ "Type": "ElasticsearchDestinationConfiguration",
+ "UpdateType": "Mutable"
+ },
+ "ExtendedS3DestinationConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesisfirehose-deliverystream.html#cfn-kinesisfirehose-deliverystream-extendeds3destinationconfiguration",
+ "Required": false,
+ "Type": "ExtendedS3DestinationConfiguration",
+ "UpdateType": "Mutable"
+ },
+ "KinesisStreamSourceConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesisfirehose-deliverystream.html#cfn-kinesisfirehose-deliverystream-kinesisstreamsourceconfiguration",
+ "Required": false,
+ "Type": "KinesisStreamSourceConfiguration",
+ "UpdateType": "Mutable"
+ },
+ "RedshiftDestinationConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesisfirehose-deliverystream.html#cfn-kinesisfirehose-deliverystream-redshiftdestinationconfiguration",
+ "Required": false,
+ "Type": "RedshiftDestinationConfiguration",
+ "UpdateType": "Mutable"
+ },
+ "S3DestinationConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesisfirehose-deliverystream.html#cfn-kinesisfirehose-deliverystream-s3destinationconfiguration",
+ "Required": false,
+ "Type": "S3DestinationConfiguration",
+ "UpdateType": "Mutable"
+ },
+ "SplunkDestinationConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesisfirehose-deliverystream.html#cfn-kinesisfirehose-deliverystream-splunkdestinationconfiguration",
+ "Required": false,
+ "Type": "SplunkDestinationConfiguration",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EC2::NetworkInterfaceAttachment": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-interface-attachment.html",
+ "Properties": {
+ "DeleteOnTermination": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-interface-attachment.html#cfn-ec2-network-interface-attachment-deleteonterm",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "DeviceIndex": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-interface-attachment.html#cfn-ec2-network-interface-attachment-deviceindex",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "InstanceId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-interface-attachment.html#cfn-ec2-network-interface-attachment-instanceid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "NetworkInterfaceId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-interface-attachment.html#cfn-ec2-network-interface-attachment-networkinterfaceid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::IAM::ManagedPolicy": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html",
+ "Properties": {
+ "Description": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html#cfn-iam-managedpolicy-description",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Groups": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html#cfn-iam-managedpolicy-groups",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "ManagedPolicyName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html#cfn-iam-managedpolicy-managedpolicyname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Path": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html#cfn-ec2-dhcpoptions-path",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "PolicyDocument": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html#cfn-iam-managedpolicy-policydocument",
+ "PrimitiveType": "Json",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Roles": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html#cfn-iam-managedpolicy-roles",
+ "DuplicatesAllowed": true,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "Users": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html#cfn-iam-managedpolicy-users",
+ "DuplicatesAllowed": true,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::WAFRegional::IPSet": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafregional-ipset.html",
+ "Properties": {
+ "IPSetDescriptors": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafregional-ipset.html#cfn-wafregional-ipset-ipsetdescriptors",
+ "ItemType": "IPSetDescriptor",
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafregional-ipset.html#cfn-wafregional-ipset-name",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::RDS::DBInstance": {
+ "Attributes": {
+ "Endpoint.Address": {
+ "PrimitiveType": "String"
+ },
+ "Endpoint.Port": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html",
+ "Properties": {
+ "AllocatedStorage": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-allocatedstorage",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "AllowMajorVersionUpgrade": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-allowmajorversionupgrade",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "AutoMinorVersionUpgrade": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-autominorversionupgrade",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Conditional"
+ },
+ "AvailabilityZone": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-availabilityzone",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "BackupRetentionPeriod": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-backupretentionperiod",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Conditional"
+ },
+ "CharacterSetName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-charactersetname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "CopyTagsToSnapshot": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-copytagstosnapshot",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "DBClusterIdentifier": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-dbclusteridentifier",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "DBInstanceClass": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-dbinstanceclass",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "DBInstanceIdentifier": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-dbinstanceidentifier",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "DBName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-dbname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "DBParameterGroupName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-dbparametergroupname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Conditional"
+ },
+ "DBSecurityGroups": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-dbsecuritygroups",
+ "DuplicatesAllowed": true,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "DBSnapshotIdentifier": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-dbsnapshotidentifier",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "DBSubnetGroupName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-dbsubnetgroupname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Domain": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-domain",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "DomainIAMRoleName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-domainiamrolename",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Engine": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-engine",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "EngineVersion": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-engineversion",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Conditional"
+ },
+ "Iops": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-iops",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "KmsKeyId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-kmskeyid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "LicenseModel": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-licensemodel",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "MasterUserPassword": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-masteruserpassword",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "MasterUsername": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-masterusername",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "MonitoringInterval": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-monitoringinterval",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Conditional"
+ },
+ "MonitoringRoleArn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-monitoringrolearn",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "MultiAZ": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-multiaz",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "OptionGroupName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-optiongroupname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Port": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-port",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "PreferredBackupWindow": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-preferredbackupwindow",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "PreferredMaintenanceWindow": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-preferredmaintenancewindow",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Conditional"
+ },
+ "PubliclyAccessible": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-publiclyaccessible",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "SourceDBInstanceIdentifier": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-sourcedbinstanceidentifier",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "SourceRegion": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-sourceregion",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "StorageEncrypted": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-storageencrypted",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "StorageType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-storagetype",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Conditional"
+ },
+ "Tags": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-tags",
+ "DuplicatesAllowed": true,
+ "ItemType": "Tag",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "Timezone": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-timezone",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "VPCSecurityGroups": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-vpcsecuritygroups",
+ "DuplicatesAllowed": true,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::IoT::PolicyPrincipalAttachment": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-policyprincipalattachment.html",
+ "Properties": {
+ "PolicyName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-policyprincipalattachment.html#cfn-iot-policyprincipalattachment-policyname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "Principal": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-policyprincipalattachment.html#cfn-iot-policyprincipalattachment-principal",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::ApplicationAutoScaling::ScalableTarget": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationautoscaling-scalabletarget.html",
+ "Properties": {
+ "MaxCapacity": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationautoscaling-scalabletarget.html#cfn-applicationautoscaling-scalabletarget-maxcapacity",
+ "PrimitiveType": "Integer",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "MinCapacity": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationautoscaling-scalabletarget.html#cfn-applicationautoscaling-scalabletarget-mincapacity",
+ "PrimitiveType": "Integer",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "ResourceId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationautoscaling-scalabletarget.html#cfn-applicationautoscaling-scalabletarget-resourceid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "RoleARN": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationautoscaling-scalabletarget.html#cfn-applicationautoscaling-scalabletarget-rolearn",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "ScalableDimension": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationautoscaling-scalabletarget.html#cfn-applicationautoscaling-scalabletarget-scalabledimension",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "ScheduledActions": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationautoscaling-scalabletarget.html#cfn-applicationautoscaling-scalabletarget-scheduledactions",
+ "DuplicatesAllowed": false,
+ "ItemType": "ScheduledAction",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "ServiceNamespace": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationautoscaling-scalabletarget.html#cfn-applicationautoscaling-scalabletarget-servicenamespace",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::EC2::CustomerGateway": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-customer-gateway.html",
+ "Properties": {
+ "BgpAsn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-customer-gateway.html#cfn-ec2-customergateway-bgpasn",
+ "PrimitiveType": "Integer",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "IpAddress": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-customer-gateway.html#cfn-ec2-customergateway-ipaddress",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "Tags": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-customer-gateway.html#cfn-ec2-customergateway-tags",
+ "DuplicatesAllowed": true,
+ "ItemType": "Tag",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "Type": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-customer-gateway.html#cfn-ec2-customergateway-type",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::ApiGateway::Stage": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-stage.html",
+ "Properties": {
+ "AccessLogSetting": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-stage.html#cfn-apigateway-stage-accesslogsetting",
+ "Required": false,
+ "Type": "AccessLogSetting",
+ "UpdateType": "Mutable"
+ },
+ "CacheClusterEnabled": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-stage.html#cfn-apigateway-stage-cacheclusterenabled",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "CacheClusterSize": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-stage.html#cfn-apigateway-stage-cacheclustersize",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "CanarySetting": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-stage.html#cfn-apigateway-stage-canarysetting",
+ "Required": false,
+ "Type": "CanarySetting",
+ "UpdateType": "Mutable"
+ },
+ "ClientCertificateId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-stage.html#cfn-apigateway-stage-clientcertificateid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "DeploymentId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-stage.html#cfn-apigateway-stage-deploymentid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Description": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-stage.html#cfn-apigateway-stage-description",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "DocumentationVersion": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-stage.html#cfn-apigateway-stage-documentationversion",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "MethodSettings": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-stage.html#cfn-apigateway-stage-methodsettings",
+ "DuplicatesAllowed": false,
+ "ItemType": "MethodSetting",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "RestApiId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-stage.html#cfn-apigateway-stage-restapiid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "StageName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-stage.html#cfn-apigateway-stage-stagename",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Variables": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-stage.html#cfn-apigateway-stage-variables",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "Map",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::SDB::Domain": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-simpledb.html",
+ "Properties": {
+ "Description": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-simpledb.html#cfn-sdb-domain-description",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Cognito::UserPoolClient": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolclient.html",
+ "Attributes": {
+ "ClientSecret": {
+ "PrimitiveType": "String"
+ },
+ "Name": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Properties": {
+ "GenerateSecret": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolclient.html#cfn-cognito-userpoolclient-generatesecret",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Immutable"
+ },
+ "ClientName": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolclient.html#cfn-cognito-userpoolclient-clientname",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "UserPoolId": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolclient.html#cfn-cognito-userpoolclient-userpoolid",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "ExplicitAuthFlows": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolclient.html#cfn-cognito-userpoolclient-explicitauthflows",
+ "UpdateType": "Mutable"
+ },
+ "RefreshTokenValidity": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolclient.html#cfn-cognito-userpoolclient-refreshtokenvalidity",
+ "PrimitiveType": "Double",
+ "UpdateType": "Mutable"
+ },
+ "ReadAttributes": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolclient.html#cfn-cognito-userpoolclient-readattributes",
+ "UpdateType": "Mutable"
+ },
+ "WriteAttributes": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolclient.html#cfn-cognito-userpoolclient-writeattributes",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ApiGateway::VpcLink": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-vpclink.html",
+ "Properties": {
+ "Description": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-vpclink.html#cfn-apigateway-vpclink-description",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "TargetArns": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-vpclink.html#cfn-apigateway-vpclink-targetarns",
+ "UpdateType": "Immutable"
+ },
+ "Name": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-vpclink.html#cfn-apigateway-vpclink-name",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EC2::TrunkInterfaceAssociation": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-trunkinterfaceassociation.html",
+ "Properties": {
+ "BranchInterfaceId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-trunkinterfaceassociation.html#cfn-ec2-trunkinterfaceassociation-branchinterfaceid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "GREKey": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-trunkinterfaceassociation.html#cfn-ec2-trunkinterfaceassociation-grekey",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "TrunkInterfaceId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-trunkinterfaceassociation.html#cfn-ec2-trunkinterfaceassociation-trunkinterfaceid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "VLANId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-trunkinterfaceassociation.html#cfn-ec2-trunkinterfaceassociation-vlanid",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::ECR::Repository": {
+ "Attributes": {
+ "Arn": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-repository.html",
+ "Properties": {
+ "LifecyclePolicy": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-repository.html#cfn-ecr-repository-lifecyclepolicy",
+ "Required": false,
+ "Type": "LifecyclePolicy",
+ "UpdateType": "Mutable"
+ },
+ "RepositoryName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-repository.html#cfn-ecr-repository-repositoryname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "RepositoryPolicyText": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-repository.html#cfn-ecr-repository-repositorypolicytext",
+ "PrimitiveType": "Json",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ApiGateway::GatewayResponse": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-gatewayresponse.html",
+ "Properties": {
+ "ResponseParameters": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-gatewayresponse.html#cfn-apigateway-gatewayresponse-responseparameters",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "Map",
+ "UpdateType": "Mutable"
+ },
+ "ResponseTemplates": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-gatewayresponse.html#cfn-apigateway-gatewayresponse-responsetemplates",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "Map",
+ "UpdateType": "Mutable"
+ },
+ "ResponseType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-gatewayresponse.html#cfn-apigateway-gatewayresponse-responsetype",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "RestApiId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-gatewayresponse.html#cfn-apigateway-gatewayresponse-restapiid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "StatusCode": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-gatewayresponse.html#cfn-apigateway-gatewayresponse-statuscode",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Glue::Database": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-database.html",
+ "Properties": {
+ "DatabaseInput": {
+ "Type": "DatabaseInput",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-database.html#cfn-glue-database-databaseinput",
+ "UpdateType": "Mutable"
+ },
+ "CatalogId": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-database.html#cfn-glue-database-catalogid",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::ApiGateway::ClientCertificate": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-clientcertificate.html",
+ "Properties": {
+ "Description": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-clientcertificate.html#cfn-apigateway-clientcertificate-description",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ApiGateway::Method": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-method.html",
+ "Properties": {
+ "ApiKeyRequired": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-method.html#cfn-apigateway-method-apikeyrequired",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "AuthorizationScopes": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-method.html#cfn-apigateway-method-authorizationscopes",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "AuthorizationType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-method.html#cfn-apigateway-method-authorizationtype",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "AuthorizerId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-method.html#cfn-apigateway-method-authorizerid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "HttpMethod": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-method.html#cfn-apigateway-method-httpmethod",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Integration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-method.html#cfn-apigateway-method-integration",
+ "Required": false,
+ "Type": "Integration",
+ "UpdateType": "Mutable"
+ },
+ "MethodResponses": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-method.html#cfn-apigateway-method-methodresponses",
+ "DuplicatesAllowed": false,
+ "ItemType": "MethodResponse",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "OperationName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-method.html#cfn-apigateway-method-operationname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "RequestModels": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-method.html#cfn-apigateway-method-requestmodels",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "Map",
+ "UpdateType": "Mutable"
+ },
+ "RequestParameters": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-method.html#cfn-apigateway-method-requestparameters",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "Boolean",
+ "Required": false,
+ "Type": "Map",
+ "UpdateType": "Mutable"
+ },
+ "RequestValidatorId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-method.html#cfn-apigateway-method-requestvalidatorid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "ResourceId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-method.html#cfn-apigateway-method-resourceid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "RestApiId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-method.html#cfn-apigateway-method-restapiid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::DMS::Endpoint": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-endpoint.html",
+ "Attributes": {
+ "ExternalId": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Properties": {
+ "KmsKeyId": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-endpoint.html#cfn-dms-endpoint-kmskeyid",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "Port": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-endpoint.html#cfn-dms-endpoint-port",
+ "PrimitiveType": "Integer",
+ "UpdateType": "Mutable"
+ },
+ "DatabaseName": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-endpoint.html#cfn-dms-endpoint-databasename",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "S3Settings": {
+ "Type": "S3Settings",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-endpoint.html#cfn-dms-endpoint-s3settings",
+ "UpdateType": "Mutable"
+ },
+ "EngineName": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-endpoint.html#cfn-dms-endpoint-enginename",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "DynamoDbSettings": {
+ "Type": "DynamoDbSettings",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-endpoint.html#cfn-dms-endpoint-dynamodbsettings",
+ "UpdateType": "Mutable"
+ },
+ "Username": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-endpoint.html#cfn-dms-endpoint-username",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "SslMode": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-endpoint.html#cfn-dms-endpoint-sslmode",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "ServerName": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-endpoint.html#cfn-dms-endpoint-servername",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "ExtraConnectionAttributes": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-endpoint.html#cfn-dms-endpoint-extraconnectionattributes",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "EndpointType": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-endpoint.html#cfn-dms-endpoint-endpointtype",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Tags": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-endpoint.html#cfn-dms-endpoint-tags",
+ "ItemType": "Tag",
+ "UpdateType": "Immutable"
+ },
+ "EndpointIdentifier": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-endpoint.html#cfn-dms-endpoint-endpointidentifier",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Password": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-endpoint.html#cfn-dms-endpoint-password",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "CertificateArn": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-endpoint.html#cfn-dms-endpoint-certificatearn",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "MongoDbSettings": {
+ "Type": "MongoDbSettings",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-endpoint.html#cfn-dms-endpoint-mongodbsettings",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::SES::ReceiptRuleSet": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-receiptruleset.html",
+ "Properties": {
+ "RuleSetName": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-receiptruleset.html#cfn-ses-receiptruleset-rulesetname",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::ServiceCatalog::LaunchNotificationConstraint": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-launchnotificationconstraint.html",
+ "Properties": {
+ "Description": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-launchnotificationconstraint.html#cfn-servicecatalog-launchnotificationconstraint-description",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "NotificationArns": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-launchnotificationconstraint.html#cfn-servicecatalog-launchnotificationconstraint-notificationarns",
+ "UpdateType": "Immutable"
+ },
+ "AcceptLanguage": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-launchnotificationconstraint.html#cfn-servicecatalog-launchnotificationconstraint-acceptlanguage",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "PortfolioId": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-launchnotificationconstraint.html#cfn-servicecatalog-launchnotificationconstraint-portfolioid",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "ProductId": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-launchnotificationconstraint.html#cfn-servicecatalog-launchnotificationconstraint-productid",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::EC2::VolumeAttachment": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ebs-volumeattachment.html",
+ "Properties": {
+ "Device": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ebs-volumeattachment.html#cfn-ec2-ebs-volumeattachment-device",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "InstanceId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ebs-volumeattachment.html#cfn-ec2-ebs-volumeattachment-instanceid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "VolumeId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ebs-volumeattachment.html#cfn-ec2-ebs-volumeattachment-volumeid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::DirectoryService::SimpleAD": {
+ "Attributes": {
+ "Alias": {
+ "PrimitiveType": "String"
+ },
+ "DnsIpAddresses": {
+ "PrimitiveItemType": "String",
+ "Type": "List"
+ }
+ },
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-directoryservice-simplead.html",
+ "Properties": {
+ "CreateAlias": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-directoryservice-simplead.html#cfn-directoryservice-simplead-createalias",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Description": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-directoryservice-simplead.html#cfn-directoryservice-simplead-description",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "EnableSso": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-directoryservice-simplead.html#cfn-directoryservice-simplead-enablesso",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-directoryservice-simplead.html#cfn-directoryservice-simplead-name",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "Password": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-directoryservice-simplead.html#cfn-directoryservice-simplead-password",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "ShortName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-directoryservice-simplead.html#cfn-directoryservice-simplead-shortname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Size": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-directoryservice-simplead.html#cfn-directoryservice-simplead-size",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "VpcSettings": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-directoryservice-simplead.html#cfn-directoryservice-simplead-vpcsettings",
+ "Required": true,
+ "Type": "VpcSettings",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::EC2::Host": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-host.html",
+ "Properties": {
+ "AutoPlacement": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-host.html#cfn-ec2-host-autoplacement",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "AvailabilityZone": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-host.html#cfn-ec2-host-availabilityzone",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "InstanceType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-host.html#cfn-ec2-host-instancetype",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::RDS::DBSecurityGroup": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-security-group.html",
+ "Properties": {
+ "DBSecurityGroupIngress": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-security-group.html#cfn-rds-dbsecuritygroup-dbsecuritygroupingress",
+ "DuplicatesAllowed": false,
+ "ItemType": "Ingress",
+ "Required": true,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "EC2VpcId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-security-group.html#cfn-rds-dbsecuritygroup-ec2vpcid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "GroupDescription": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-security-group.html#cfn-rds-dbsecuritygroup-groupdescription",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "Tags": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-security-group.html#cfn-rds-dbsecuritygroup-tags",
+ "DuplicatesAllowed": true,
+ "ItemType": "Tag",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ECS::TaskDefinition": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-taskdefinition.html",
+ "Properties": {
+ "ContainerDefinitions": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-taskdefinition.html#cfn-ecs-taskdefinition-containerdefinitions",
+ "DuplicatesAllowed": false,
+ "ItemType": "ContainerDefinition",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ },
+ "Cpu": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-taskdefinition.html#cfn-ecs-taskdefinition-cpu",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "ExecutionRoleArn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-taskdefinition.html#cfn-ecs-taskdefinition-executionrolearn",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Family": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-taskdefinition.html#cfn-ecs-taskdefinition-family",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Memory": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-taskdefinition.html#cfn-ecs-taskdefinition-memory",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "NetworkMode": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-taskdefinition.html#cfn-ecs-taskdefinition-networkmode",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "PlacementConstraints": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-taskdefinition.html#cfn-ecs-taskdefinition-placementconstraints",
+ "DuplicatesAllowed": false,
+ "ItemType": "TaskDefinitionPlacementConstraint",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ },
+ "RequiresCompatibilities": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-taskdefinition.html#cfn-ecs-taskdefinition-requirescompatibilities",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ },
+ "TaskRoleArn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-taskdefinition.html#cfn-ecs-taskdefinition-taskrolearn",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Volumes": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-taskdefinition.html#cfn-ecs-taskdefinition-volumes",
+ "DuplicatesAllowed": false,
+ "ItemType": "Volume",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::KMS::Alias": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kms-alias.html",
+ "Properties": {
+ "AliasName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kms-alias.html#cfn-kms-alias-aliasname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "TargetKeyId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kms-alias.html#cfn-kms-alias-targetkeyid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Redshift::ClusterSubnetGroup": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-clustersubnetgroup.html",
+ "Properties": {
+ "Description": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-clustersubnetgroup.html#cfn-redshift-clustersubnetgroup-description",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "SubnetIds": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-clustersubnetgroup.html#cfn-redshift-clustersubnetgroup-subnetids",
+ "DuplicatesAllowed": true,
+ "PrimitiveItemType": "String",
+ "Required": true,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "Tags": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-clustersubnetgroup.html#cfn-redshift-clustersubnetgroup-tags",
+ "DuplicatesAllowed": true,
+ "ItemType": "Tag",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EC2::EIPAssociation": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-eip-association.html",
+ "Properties": {
+ "AllocationId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-eip-association.html#cfn-ec2-eipassociation-allocationid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Conditional"
+ },
+ "EIP": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-eip-association.html#cfn-ec2-eipassociation-eip",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Conditional"
+ },
+ "InstanceId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-eip-association.html#cfn-ec2-eipassociation-instanceid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Conditional"
+ },
+ "NetworkInterfaceId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-eip-association.html#cfn-ec2-eipassociation-networkinterfaceid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Conditional"
+ },
+ "PrivateIpAddress": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-eip-association.html#cfn-ec2-eipassociation-PrivateIpAddress",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EC2::VPNGateway": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpn-gateway.html",
+ "Properties": {
+ "AmazonSideAsn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpn-gateway.html#cfn-ec2-vpngateway-amazonsideasn",
+ "PrimitiveType": "Long",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Tags": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpn-gateway.html#cfn-ec2-vpngateway-tags",
+ "DuplicatesAllowed": true,
+ "ItemType": "Tag",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "Type": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpn-gateway.html#cfn-ec2-vpngateway-type",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::ElastiCache::CacheCluster": {
+ "Attributes": {
+ "ConfigurationEndpoint.Address": {
+ "PrimitiveType": "String"
+ },
+ "ConfigurationEndpoint.Port": {
+ "PrimitiveType": "String"
+ },
+ "RedisEndpoint.Address": {
+ "PrimitiveType": "String"
+ },
+ "RedisEndpoint.Port": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-cache-cluster.html",
+ "Properties": {
+ "AZMode": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-cache-cluster.html#cfn-elasticache-cachecluster-azmode",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Conditional"
+ },
+ "AutoMinorVersionUpgrade": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-cache-cluster.html#cfn-elasticache-cachecluster-autominorversionupgrade",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "CacheNodeType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-cache-cluster.html#cfn-elasticache-cachecluster-cachenodetype",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "CacheParameterGroupName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-cache-cluster.html#cfn-elasticache-cachecluster-cacheparametergroupname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "CacheSecurityGroupNames": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-cache-cluster.html#cfn-elasticache-cachecluster-cachesecuritygroupnames",
+ "DuplicatesAllowed": true,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "CacheSubnetGroupName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-cache-cluster.html#cfn-elasticache-cachecluster-cachesubnetgroupname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "ClusterName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-cache-cluster.html#cfn-elasticache-cachecluster-clustername",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Engine": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-cache-cluster.html#cfn-elasticache-cachecluster-engine",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "EngineVersion": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-cache-cluster.html#cfn-elasticache-cachecluster-engineversion",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "NotificationTopicArn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-cache-cluster.html#cfn-elasticache-cachecluster-notificationtopicarn",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "NumCacheNodes": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-cache-cluster.html#cfn-elasticache-cachecluster-numcachenodes",
+ "PrimitiveType": "Integer",
+ "Required": true,
+ "UpdateType": "Conditional"
+ },
+ "Port": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-cache-cluster.html#cfn-elasticache-cachecluster-port",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "PreferredAvailabilityZone": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-cache-cluster.html#cfn-elasticache-cachecluster-preferredavailabilityzone",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Conditional"
+ },
+ "PreferredAvailabilityZones": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-cache-cluster.html#cfn-elasticache-cachecluster-preferredavailabilityzones",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Conditional"
+ },
+ "PreferredMaintenanceWindow": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-cache-cluster.html#cfn-elasticache-cachecluster-preferredmaintenancewindow",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "SnapshotArns": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-cache-cluster.html#cfn-elasticache-cachecluster-snapshotarns",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ },
+ "SnapshotName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-cache-cluster.html#cfn-elasticache-cachecluster-snapshotname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "SnapshotRetentionLimit": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-cache-cluster.html#cfn-elasticache-cachecluster-snapshotretentionlimit",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "SnapshotWindow": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-cache-cluster.html#cfn-elasticache-cachecluster-snapshotwindow",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Tags": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-cache-cluster.html#cfn-elasticache-cachecluster-tags",
+ "DuplicatesAllowed": true,
+ "ItemType": "Tag",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "VpcSecurityGroupIds": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-cache-cluster.html#cfn-elasticache-cachecluster-vpcsecuritygroupids",
+ "DuplicatesAllowed": true,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::IoT::ThingPrincipalAttachment": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-thingprincipalattachment.html",
+ "Properties": {
+ "Principal": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-thingprincipalattachment.html#cfn-iot-thingprincipalattachment-principal",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "ThingName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-thingprincipalattachment.html#cfn-iot-thingprincipalattachment-thingname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::GuardDuty::Detector": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-detector.html",
+ "Properties": {
+ "Enable": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-detector.html#cfn-guardduty-detector-enable",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ServiceDiscovery::PrivateDnsNamespace": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicediscovery-privatednsnamespace.html",
+ "Attributes": {
+ "Id": {
+ "PrimitiveType": "String"
+ },
+ "Arn": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Properties": {
+ "Description": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicediscovery-privatednsnamespace.html#cfn-servicediscovery-privatednsnamespace-description",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "Vpc": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicediscovery-privatednsnamespace.html#cfn-servicediscovery-privatednsnamespace-vpc",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "Name": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicediscovery-privatednsnamespace.html#cfn-servicediscovery-privatednsnamespace-name",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::ElasticBeanstalk::ApplicationVersion": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-beanstalk-version.html",
+ "Properties": {
+ "ApplicationName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-beanstalk-version.html#cfn-elasticbeanstalk-applicationversion-applicationname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "Description": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-beanstalk-version.html#cfn-elasticbeanstalk-applicationversion-description",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "SourceBundle": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-beanstalk-version.html#cfn-elasticbeanstalk-applicationversion-sourcebundle",
+ "Required": true,
+ "Type": "SourceBundle",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::EC2::VPCEndpoint": {
+ "Attributes": {
+ "CreationTimestamp": {
+ "PrimitiveType": "String"
+ },
+ "DnsEntries": {
+ "PrimitiveItemType": "String",
+ "Type": "List"
+ },
+ "NetworkInterfaceIds": {
+ "PrimitiveItemType": "String",
+ "Type": "List"
+ }
+ },
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html",
+ "Properties": {
+ "PolicyDocument": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html#cfn-ec2-vpcendpoint-policydocument",
+ "PrimitiveType": "Json",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "PrivateDnsEnabled": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html#cfn-ec2-vpcendpoint-privatednsenabled",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "RouteTableIds": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html#cfn-ec2-vpcendpoint-routetableids",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "SecurityGroupIds": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html#cfn-ec2-vpcendpoint-securitygroupids",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "ServiceName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html#cfn-ec2-vpcendpoint-servicename",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "SubnetIds": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html#cfn-ec2-vpcendpoint-subnetids",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "VPCEndpointType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html#cfn-ec2-vpcendpoint-vpcendpointtype",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "VpcId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html#cfn-ec2-vpcendpoint-vpcid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::Glue::DevEndpoint": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-devendpoint.html",
+ "Properties": {
+ "ExtraJarsS3Path": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-devendpoint.html#cfn-glue-devendpoint-extrajarss3path",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "EndpointName": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-devendpoint.html#cfn-glue-devendpoint-endpointname",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "PublicKey": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-devendpoint.html#cfn-glue-devendpoint-publickey",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "NumberOfNodes": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-devendpoint.html#cfn-glue-devendpoint-numberofnodes",
+ "PrimitiveType": "Integer",
+ "UpdateType": "Mutable"
+ },
+ "SubnetId": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-devendpoint.html#cfn-glue-devendpoint-subnetid",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "ExtraPythonLibsS3Path": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-devendpoint.html#cfn-glue-devendpoint-extrapythonlibss3path",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "SecurityGroupIds": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-devendpoint.html#cfn-glue-devendpoint-securitygroupids",
+ "UpdateType": "Mutable"
+ },
+ "RoleArn": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-devendpoint.html#cfn-glue-devendpoint-rolearn",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::OpsWorks::UserProfile": {
+ "Attributes": {
+ "SshUsername": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-userprofile.html",
+ "Properties": {
+ "AllowSelfManagement": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-userprofile.html#cfn-opsworks-userprofile-allowselfmanagement",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "IamUserArn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-userprofile.html#cfn-opsworks-userprofile-iamuserarn",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "SshPublicKey": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-userprofile.html#cfn-opsworks-userprofile-sshpublickey",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "SshUsername": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-userprofile.html#cfn-opsworks-userprofile-sshusername",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ElasticLoadBalancingV2::TargetGroup": {
+ "Attributes": {
+ "LoadBalancerArns": {
+ "PrimitiveItemType": "String",
+ "Type": "List"
+ },
+ "TargetGroupFullName": {
+ "PrimitiveType": "String"
+ },
+ "TargetGroupName": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-targetgroup.html",
+ "Properties": {
+ "HealthCheckIntervalSeconds": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-targetgroup.html#cfn-elasticloadbalancingv2-targetgroup-healthcheckintervalseconds",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "HealthCheckPath": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-targetgroup.html#cfn-elasticloadbalancingv2-targetgroup-healthcheckpath",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "HealthCheckPort": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-targetgroup.html#cfn-elasticloadbalancingv2-targetgroup-healthcheckport",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "HealthCheckProtocol": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-targetgroup.html#cfn-elasticloadbalancingv2-targetgroup-healthcheckprotocol",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "HealthCheckTimeoutSeconds": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-targetgroup.html#cfn-elasticloadbalancingv2-targetgroup-healthchecktimeoutseconds",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "HealthyThresholdCount": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-targetgroup.html#cfn-elasticloadbalancingv2-targetgroup-healthythresholdcount",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Matcher": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-targetgroup.html#cfn-elasticloadbalancingv2-targetgroup-matcher",
+ "Required": false,
+ "Type": "Matcher",
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-targetgroup.html#cfn-elasticloadbalancingv2-targetgroup-name",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Port": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-targetgroup.html#cfn-elasticloadbalancingv2-targetgroup-port",
+ "PrimitiveType": "Integer",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "Protocol": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-targetgroup.html#cfn-elasticloadbalancingv2-targetgroup-protocol",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "Tags": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-targetgroup.html#cfn-elasticloadbalancingv2-targetgroup-tags",
+ "DuplicatesAllowed": true,
+ "ItemType": "Tag",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "TargetGroupAttributes": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-targetgroup.html#cfn-elasticloadbalancingv2-targetgroup-targetgroupattributes",
+ "DuplicatesAllowed": false,
+ "ItemType": "TargetGroupAttribute",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "TargetType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-targetgroup.html#cfn-elasticloadbalancingv2-targetgroup-targettype",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Targets": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-targetgroup.html#cfn-elasticloadbalancingv2-targetgroup-targets",
+ "DuplicatesAllowed": false,
+ "ItemType": "TargetDescription",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "UnhealthyThresholdCount": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-targetgroup.html#cfn-elasticloadbalancingv2-targetgroup-unhealthythresholdcount",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "VpcId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-targetgroup.html#cfn-elasticloadbalancingv2-targetgroup-vpcid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::Neptune::DBSubnetGroup": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbsubnetgroup.html",
+ "Properties": {
+ "DBSubnetGroupName": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbsubnetgroup.html#cfn-neptune-dbsubnetgroup-dbsubnetgroupname",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "DBSubnetGroupDescription": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbsubnetgroup.html#cfn-neptune-dbsubnetgroup-dbsubnetgroupdescription",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "SubnetIds": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbsubnetgroup.html#cfn-neptune-dbsubnetgroup-subnetids",
+ "UpdateType": "Mutable"
+ },
+ "Tags": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbsubnetgroup.html#cfn-neptune-dbsubnetgroup-tags",
+ "ItemType": "Tag",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EC2::VPCGatewayAttachment": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpc-gateway-attachment.html",
+ "Properties": {
+ "InternetGatewayId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpc-gateway-attachment.html#cfn-ec2-vpcgatewayattachment-internetgatewayid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "VpcId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpc-gateway-attachment.html#cfn-ec2-vpcgatewayattachment-vpcid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "VpnGatewayId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpc-gateway-attachment.html#cfn-ec2-vpcgatewayattachment-vpngatewayid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EC2::VPNConnection": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpn-connection.html",
+ "Properties": {
+ "CustomerGatewayId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpn-connection.html#cfn-ec2-vpnconnection-customergatewayid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "StaticRoutesOnly": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpn-connection.html#cfn-ec2-vpnconnection-StaticRoutesOnly",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Tags": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpn-connection.html#cfn-ec2-vpnconnection-tags",
+ "DuplicatesAllowed": true,
+ "ItemType": "Tag",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "Type": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpn-connection.html#cfn-ec2-vpnconnection-type",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "VpnGatewayId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpn-connection.html#cfn-ec2-vpnconnection-vpngatewayid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "VpnTunnelOptionsSpecifications": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpn-connection.html#cfn-ec2-vpnconnection-vpntunneloptionsspecifications",
+ "DuplicatesAllowed": false,
+ "ItemType": "VpnTunnelOptionsSpecification",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::Glue::Trigger": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-trigger.html",
+ "Properties": {
+ "Type": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-trigger.html#cfn-glue-trigger-type",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Description": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-trigger.html#cfn-glue-trigger-description",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Actions": {
+ "Type": "List",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-trigger.html#cfn-glue-trigger-actions",
+ "ItemType": "Action",
+ "UpdateType": "Mutable"
+ },
+ "Schedule": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-trigger.html#cfn-glue-trigger-schedule",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-trigger.html#cfn-glue-trigger-name",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "Predicate": {
+ "Type": "Predicate",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-trigger.html#cfn-glue-trigger-predicate",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::EC2::VPCCidrBlock": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpccidrblock.html",
+ "Properties": {
+ "AmazonProvidedIpv6CidrBlock": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpccidrblock.html#cfn-ec2-vpccidrblock-amazonprovidedipv6cidrblock",
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "CidrBlock": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpccidrblock.html#cfn-ec2-vpccidrblock-cidrblock",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "VpcId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpccidrblock.html#cfn-ec2-vpccidrblock-vpcid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::SSM::Parameter": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-parameter.html",
+ "Attributes": {
+ "Type": {
+ "PrimitiveType": "String"
+ },
+ "Value": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Properties": {
+ "Type": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-parameter.html#cfn-ssm-parameter-type",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Description": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-parameter.html#cfn-ssm-parameter-description",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "AllowedPattern": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-parameter.html#cfn-ssm-parameter-allowedpattern",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Value": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-parameter.html#cfn-ssm-parameter-value",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-parameter.html#cfn-ssm-parameter-name",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::Inspector::AssessmentTemplate": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspector-assessmenttemplate.html",
+ "Attributes": {
+ "Arn": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Properties": {
+ "AssessmentTargetArn": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspector-assessmenttemplate.html#cfn-inspector-assessmenttemplate-assessmenttargetarn",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "DurationInSeconds": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspector-assessmenttemplate.html#cfn-inspector-assessmenttemplate-durationinseconds",
+ "PrimitiveType": "Integer",
+ "UpdateType": "Immutable"
+ },
+ "AssessmentTemplateName": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspector-assessmenttemplate.html#cfn-inspector-assessmenttemplate-assessmenttemplatename",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "RulesPackageArns": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspector-assessmenttemplate.html#cfn-inspector-assessmenttemplate-rulespackagearns",
+ "UpdateType": "Immutable"
+ },
+ "UserAttributesForFindings": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspector-assessmenttemplate.html#cfn-inspector-assessmenttemplate-userattributesforfindings",
+ "ItemType": "Tag",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::Logs::SubscriptionFilter": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-subscriptionfilter.html",
+ "Properties": {
+ "DestinationArn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-subscriptionfilter.html#cfn-cwl-subscriptionfilter-destinationarn",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "FilterPattern": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-subscriptionfilter.html#cfn-cwl-subscriptionfilter-filterpattern",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "LogGroupName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-subscriptionfilter.html#cfn-cwl-subscriptionfilter-loggroupname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "RoleArn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-subscriptionfilter.html#cfn-cwl-subscriptionfilter-rolearn",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::KinesisAnalytics::ApplicationReferenceDataSource": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesisanalytics-applicationreferencedatasource.html",
+ "Properties": {
+ "ApplicationName": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesisanalytics-applicationreferencedatasource.html#cfn-kinesisanalytics-applicationreferencedatasource-applicationname",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "ReferenceDataSource": {
+ "Type": "ReferenceDataSource",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesisanalytics-applicationreferencedatasource.html#cfn-kinesisanalytics-applicationreferencedatasource-referencedatasource",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::SSM::ResourceDataSync": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-resourcedatasync.html",
+ "Properties": {
+ "KMSKeyArn": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-resourcedatasync.html#cfn-ssm-resourcedatasync-kmskeyarn",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "BucketName": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-resourcedatasync.html#cfn-ssm-resourcedatasync-bucketname",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "BucketRegion": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-resourcedatasync.html#cfn-ssm-resourcedatasync-bucketregion",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "SyncFormat": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-resourcedatasync.html#cfn-ssm-resourcedatasync-syncformat",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "SyncName": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-resourcedatasync.html#cfn-ssm-resourcedatasync-syncname",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "BucketPrefix": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-resourcedatasync.html#cfn-ssm-resourcedatasync-bucketprefix",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::AmazonMQ::Configuration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amazonmq-configuration.html",
+ "Attributes": {
+ "Revision": {
+ "PrimitiveType": "Integer"
+ },
+ "Id": {
+ "PrimitiveType": "String"
+ },
+ "Arn": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Properties": {
+ "EngineVersion": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amazonmq-configuration.html#cfn-amazonmq-configuration-engineversion",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "Description": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amazonmq-configuration.html#cfn-amazonmq-configuration-description",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "EngineType": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amazonmq-configuration.html#cfn-amazonmq-configuration-enginetype",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "Data": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amazonmq-configuration.html#cfn-amazonmq-configuration-data",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amazonmq-configuration.html#cfn-amazonmq-configuration-name",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::KinesisAnalytics::Application": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesisanalytics-application.html",
+ "Properties": {
+ "ApplicationName": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesisanalytics-application.html#cfn-kinesisanalytics-application-applicationname",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "Inputs": {
+ "Type": "List",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesisanalytics-application.html#cfn-kinesisanalytics-application-inputs",
+ "ItemType": "Input",
+ "UpdateType": "Mutable"
+ },
+ "ApplicationDescription": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesisanalytics-application.html#cfn-kinesisanalytics-application-applicationdescription",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "ApplicationCode": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesisanalytics-application.html#cfn-kinesisanalytics-application-applicationcode",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Logs::Destination": {
+ "Attributes": {
+ "Arn": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-destination.html",
+ "Properties": {
+ "DestinationName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-destination.html#cfn-logs-destination-destinationname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "DestinationPolicy": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-destination.html#cfn-logs-destination-destinationpolicy",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "RoleArn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-destination.html#cfn-logs-destination-rolearn",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "TargetArn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-destination.html#cfn-logs-destination-targetarn",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::DynamoDB::Table": {
+ "Attributes": {
+ "Arn": {
+ "PrimitiveType": "String"
+ },
+ "StreamArn": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html",
+ "Properties": {
+ "AttributeDefinitions": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-attributedef",
+ "DuplicatesAllowed": true,
+ "ItemType": "AttributeDefinition",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Conditional"
+ },
+ "GlobalSecondaryIndexes": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-gsi",
+ "DuplicatesAllowed": true,
+ "ItemType": "GlobalSecondaryIndex",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "KeySchema": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-keyschema",
+ "DuplicatesAllowed": false,
+ "ItemType": "KeySchema",
+ "Required": true,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ },
+ "LocalSecondaryIndexes": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-lsi",
+ "DuplicatesAllowed": true,
+ "ItemType": "LocalSecondaryIndex",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ },
+ "PointInTimeRecoverySpecification": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-pointintimerecoveryspecification",
+ "Required": false,
+ "Type": "PointInTimeRecoverySpecification",
+ "UpdateType": "Mutable"
+ },
+ "ProvisionedThroughput": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-provisionedthroughput",
+ "Required": true,
+ "Type": "ProvisionedThroughput",
+ "UpdateType": "Mutable"
+ },
+ "SSESpecification": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-ssespecification",
+ "Required": false,
+ "Type": "SSESpecification",
+ "UpdateType": "Conditional"
+ },
+ "StreamSpecification": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-streamspecification",
+ "Required": false,
+ "Type": "StreamSpecification",
+ "UpdateType": "Mutable"
+ },
+ "TableName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-tablename",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Tags": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-tags",
+ "DuplicatesAllowed": true,
+ "ItemType": "Tag",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "TimeToLiveSpecification": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-timetolivespecification",
+ "Required": false,
+ "Type": "TimeToLiveSpecification",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Redshift::ClusterSecurityGroup": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-clustersecuritygroup.html",
+ "Properties": {
+ "Description": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-clustersecuritygroup.html#cfn-redshift-clustersecuritygroup-description",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "Tags": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-clustersecuritygroup.html#cfn-redshift-clustersecuritygroup-tags",
+ "DuplicatesAllowed": true,
+ "ItemType": "Tag",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::WAF::XssMatchSet": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-waf-xssmatchset.html",
+ "Properties": {
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-waf-xssmatchset.html#cfn-waf-xssmatchset-name",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "XssMatchTuples": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-waf-xssmatchset.html#cfn-waf-xssmatchset-xssmatchtuples",
+ "DuplicatesAllowed": false,
+ "ItemType": "XssMatchTuple",
+ "Required": true,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Route53::HealthCheck": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-route53-healthcheck.html",
+ "Properties": {
+ "HealthCheckConfig": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-route53-healthcheck.html#cfn-route53-healthcheck-healthcheckconfig",
+ "Required": true,
+ "Type": "HealthCheckConfig",
+ "UpdateType": "Mutable"
+ },
+ "HealthCheckTags": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-route53-healthcheck.html#cfn-route53-healthcheck-healthchecktags",
+ "DuplicatesAllowed": true,
+ "ItemType": "HealthCheckTag",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Lambda::Permission": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html",
+ "Properties": {
+ "Action": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html#cfn-lambda-permission-action",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "EventSourceToken": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html#cfn-lambda-permission-eventsourcetoken",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "FunctionName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html#cfn-lambda-permission-functionname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "Principal": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html#cfn-lambda-permission-principal",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "SourceAccount": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html#cfn-lambda-permission-sourceaccount",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "SourceArn": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html#cfn-lambda-permission-sourcearn",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::GuardDuty::IPSet": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-ipset.html",
+ "Properties": {
+ "Format": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-ipset.html#cfn-guardduty-ipset-format",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "Activate": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-ipset.html#cfn-guardduty-ipset-activate",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "DetectorId": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-ipset.html#cfn-guardduty-ipset-detectorid",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "Name": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-ipset.html#cfn-guardduty-ipset-name",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Location": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-ipset.html#cfn-guardduty-ipset-location",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::IoT::Certificate": {
+ "Attributes": {
+ "Arn": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-certificate.html",
+ "Properties": {
+ "CertificateSigningRequest": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-certificate.html#cfn-iot-certificate-certificatesigningrequest",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "Status": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-certificate.html#cfn-iot-certificate-status",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::SSM::Association": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-association.html",
+ "Properties": {
+ "AssociationName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-association.html#cfn-ssm-association-associationname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "DocumentVersion": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-association.html#cfn-ssm-association-documentversion",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "InstanceId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-association.html#cfn-ssm-association-instanceid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-association.html#cfn-ssm-association-name",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "OutputLocation": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-association.html#cfn-ssm-association-outputlocation",
+ "Required": false,
+ "Type": "InstanceAssociationOutputLocation",
+ "UpdateType": "Mutable"
+ },
+ "Parameters": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-association.html#cfn-ssm-association-parameters",
+ "DuplicatesAllowed": false,
+ "ItemType": "ParameterValues",
+ "Required": false,
+ "Type": "Map",
+ "UpdateType": "Mutable"
+ },
+ "ScheduleExpression": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-association.html#cfn-ssm-association-scheduleexpression",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Targets": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-association.html#cfn-ssm-association-targets",
+ "DuplicatesAllowed": false,
+ "ItemType": "Target",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::RDS::DBClusterParameterGroup": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbclusterparametergroup.html",
+ "Properties": {
+ "Description": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbclusterparametergroup.html#cfn-rds-dbclusterparametergroup-description",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "Family": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbclusterparametergroup.html#cfn-rds-dbclusterparametergroup-family",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "Parameters": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbclusterparametergroup.html#cfn-rds-dbclusterparametergroup-parameters",
+ "PrimitiveType": "Json",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "Tags": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbclusterparametergroup.html#cfn-rds-dbclusterparametergroup-tags",
+ "DuplicatesAllowed": true,
+ "ItemType": "Tag",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Neptune::DBInstance": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbinstance.html",
+ "Attributes": {
+ "Endpoint": {
+ "PrimitiveType": "String"
+ },
+ "Port": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Properties": {
+ "DBParameterGroupName": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbinstance.html#cfn-neptune-dbinstance-dbparametergroupname",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "DBInstanceClass": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbinstance.html#cfn-neptune-dbinstance-dbinstanceclass",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "AllowMajorVersionUpgrade": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbinstance.html#cfn-neptune-dbinstance-allowmajorversionupgrade",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "DBClusterIdentifier": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbinstance.html#cfn-neptune-dbinstance-dbclusteridentifier",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "AvailabilityZone": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbinstance.html#cfn-neptune-dbinstance-availabilityzone",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "PreferredMaintenanceWindow": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbinstance.html#cfn-neptune-dbinstance-preferredmaintenancewindow",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "AutoMinorVersionUpgrade": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbinstance.html#cfn-neptune-dbinstance-autominorversionupgrade",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "DBSubnetGroupName": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbinstance.html#cfn-neptune-dbinstance-dbsubnetgroupname",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "DBInstanceIdentifier": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbinstance.html#cfn-neptune-dbinstance-dbinstanceidentifier",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "DBSnapshotIdentifier": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbinstance.html#cfn-neptune-dbinstance-dbsnapshotidentifier",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "Tags": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbinstance.html#cfn-neptune-dbinstance-tags",
+ "ItemType": "Tag",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Athena::NamedQuery": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-athena-namedquery.html",
+ "Properties": {
+ "Description": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-athena-namedquery.html#cfn-athena-namedquery-description",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "QueryString": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-athena-namedquery.html#cfn-athena-namedquery-querystring",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "Database": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-athena-namedquery.html#cfn-athena-namedquery-database",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "Name": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-athena-namedquery.html#cfn-athena-namedquery-name",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::GuardDuty::Master": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-master.html",
+ "Properties": {
+ "DetectorId": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-master.html#cfn-guardduty-master-detectorid",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "MasterId": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-master.html#cfn-guardduty-master-masterid",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "InvitationId": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-master.html#cfn-guardduty-master-invitationid",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::Inspector::AssessmentTarget": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspector-assessmenttarget.html",
+ "Attributes": {
+ "Arn": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Properties": {
+ "AssessmentTargetName": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspector-assessmenttarget.html#cfn-inspector-assessmenttarget-assessmenttargetname",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "ResourceGroupArn": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspector-assessmenttarget.html#cfn-inspector-assessmenttarget-resourcegrouparn",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::S3::BucketPolicy": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-policy.html",
+ "Properties": {
+ "Bucket": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-policy.html#aws-properties-s3-policy-bucket",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "PolicyDocument": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-policy.html#aws-properties-s3-policy-policydocument",
+ "PrimitiveType": "Json",
+ "Required": true,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::AutoScaling::AutoScalingGroup": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-group.html",
+ "Properties": {
+ "AutoScalingGroupName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-group.html#cfn-autoscaling-autoscalinggroup-autoscalinggroupname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "AvailabilityZones": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-group.html#cfn-as-group-availabilityzones",
+ "DuplicatesAllowed": true,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "Cooldown": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-group.html#cfn-as-group-cooldown",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "DesiredCapacity": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-group.html#cfn-as-group-desiredcapacity",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "HealthCheckGracePeriod": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-group.html#cfn-as-group-healthcheckgraceperiod",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "HealthCheckType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-group.html#cfn-as-group-healthchecktype",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "InstanceId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-group.html#cfn-as-group-instanceid",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "LaunchConfigurationName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-group.html#cfn-as-group-launchconfigurationname",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "LaunchTemplate": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-group.html#cfn-as-group-launchtemplate",
+ "Required": false,
+ "Type": "LaunchTemplateSpecification",
+ "UpdateType": "Mutable"
+ },
+ "LifecycleHookSpecificationList": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-group.html#cfn-autoscaling-autoscalinggroup-lifecyclehookspecificationlist",
+ "DuplicatesAllowed": true,
+ "ItemType": "LifecycleHookSpecification",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "LoadBalancerNames": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-group.html#cfn-as-group-loadbalancernames",
+ "DuplicatesAllowed": true,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "MaxSize": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-group.html#cfn-as-group-maxsize",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "MetricsCollection": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-group.html#cfn-as-group-metricscollection",
+ "DuplicatesAllowed": true,
+ "ItemType": "MetricsCollection",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "MinSize": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-group.html#cfn-as-group-minsize",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "NotificationConfigurations": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-group.html#cfn-as-group-notificationconfigurations",
+ "DuplicatesAllowed": true,
+ "ItemType": "NotificationConfiguration",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "PlacementGroup": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-group.html#cfn-as-group-placementgroup",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "ServiceLinkedRoleARN": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-group.html#cfn-autoscaling-autoscalinggroup-servicelinkedrolearn",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Tags": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-group.html#cfn-as-group-tags",
+ "DuplicatesAllowed": true,
+ "ItemType": "TagProperty",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "TargetGroupARNs": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-group.html#cfn-as-group-targetgrouparns",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "TerminationPolicies": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-group.html#cfn-as-group-termpolicy",
+ "DuplicatesAllowed": false,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ },
+ "VPCZoneIdentifier": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-group.html#cfn-as-group-vpczoneidentifier",
+ "DuplicatesAllowed": true,
+ "PrimitiveItemType": "String",
+ "Required": false,
+ "Type": "List",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::CloudFormation::CustomResource": {
+ "AdditionalProperties": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cfn-customresource.html",
+ "Properties": {
+ "ServiceToken": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cfn-customresource.html#cfn-customresource-servicetoken",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::Glue::Crawler": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-crawler.html",
+ "Properties": {
+ "Role": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-crawler.html#cfn-glue-crawler-role",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Classifiers": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-crawler.html#cfn-glue-crawler-classifiers",
+ "UpdateType": "Mutable"
+ },
+ "Description": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-crawler.html#cfn-glue-crawler-description",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "SchemaChangePolicy": {
+ "Type": "SchemaChangePolicy",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-crawler.html#cfn-glue-crawler-schemachangepolicy",
+ "UpdateType": "Mutable"
+ },
+ "Configuration": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-crawler.html#cfn-glue-crawler-configuration",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Schedule": {
+ "Type": "Schedule",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-crawler.html#cfn-glue-crawler-schedule",
+ "UpdateType": "Mutable"
+ },
+ "DatabaseName": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-crawler.html#cfn-glue-crawler-databasename",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Targets": {
+ "Type": "Targets",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-crawler.html#cfn-glue-crawler-targets",
+ "UpdateType": "Mutable"
+ },
+ "TablePrefix": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-crawler.html#cfn-glue-crawler-tableprefix",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-crawler.html#cfn-glue-crawler-name",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::ApiGateway::DocumentationVersion": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-documentationversion.html",
+ "Properties": {
+ "Description": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-documentationversion.html#cfn-apigateway-documentationversion-description",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "DocumentationVersion": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-documentationversion.html#cfn-apigateway-documentationversion-documentationversion",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "RestApiId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-documentationversion.html#cfn-apigateway-documentationversion-restapiid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::EC2::VPCDHCPOptionsAssociation": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpc-dhcp-options-assoc.html",
+ "Properties": {
+ "DhcpOptionsId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpc-dhcp-options-assoc.html#cfn-ec2-vpcdhcpoptionsassociation-dhcpoptionsid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Mutable"
+ },
+ "VpcId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpc-dhcp-options-assoc.html#cfn-ec2-vpcdhcpoptionsassociation-vpcid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::SSM::MaintenanceWindowTask": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-maintenancewindowtask.html",
+ "Properties": {
+ "MaxErrors": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-maintenancewindowtask.html#cfn-ssm-maintenancewindowtask-maxerrors",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Description": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-maintenancewindowtask.html#cfn-ssm-maintenancewindowtask-description",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "ServiceRoleArn": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-maintenancewindowtask.html#cfn-ssm-maintenancewindowtask-servicerolearn",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Priority": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-maintenancewindowtask.html#cfn-ssm-maintenancewindowtask-priority",
+ "PrimitiveType": "Integer",
+ "UpdateType": "Mutable"
+ },
+ "MaxConcurrency": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-maintenancewindowtask.html#cfn-ssm-maintenancewindowtask-maxconcurrency",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "Targets": {
+ "Type": "List",
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-maintenancewindowtask.html#cfn-ssm-maintenancewindowtask-targets",
+ "ItemType": "Target",
+ "UpdateType": "Mutable"
+ },
+ "Name": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-maintenancewindowtask.html#cfn-ssm-maintenancewindowtask-name",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "TaskArn": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-maintenancewindowtask.html#cfn-ssm-maintenancewindowtask-taskarn",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "TaskInvocationParameters": {
+ "Type": "TaskInvocationParameters",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-maintenancewindowtask.html#cfn-ssm-maintenancewindowtask-taskinvocationparameters",
+ "UpdateType": "Mutable"
+ },
+ "WindowId": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-maintenancewindowtask.html#cfn-ssm-maintenancewindowtask-windowid",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "TaskParameters": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-maintenancewindowtask.html#cfn-ssm-maintenancewindowtask-taskparameters",
+ "PrimitiveType": "Json",
+ "UpdateType": "Mutable"
+ },
+ "TaskType": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-maintenancewindowtask.html#cfn-ssm-maintenancewindowtask-tasktype",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "LoggingInfo": {
+ "Type": "LoggingInfo",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-maintenancewindowtask.html#cfn-ssm-maintenancewindowtask-logginginfo",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::DMS::ReplicationTask": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-replicationtask.html",
+ "Properties": {
+ "ReplicationTaskSettings": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-replicationtask.html#cfn-dms-replicationtask-replicationtasksettings",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "TableMappings": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-replicationtask.html#cfn-dms-replicationtask-tablemappings",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "ReplicationTaskIdentifier": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-replicationtask.html#cfn-dms-replicationtask-replicationtaskidentifier",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "SourceEndpointArn": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-replicationtask.html#cfn-dms-replicationtask-sourceendpointarn",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "MigrationType": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-replicationtask.html#cfn-dms-replicationtask-migrationtype",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "TargetEndpointArn": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-replicationtask.html#cfn-dms-replicationtask-targetendpointarn",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "ReplicationInstanceArn": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-replicationtask.html#cfn-dms-replicationtask-replicationinstancearn",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "Tags": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-replicationtask.html#cfn-dms-replicationtask-tags",
+ "ItemType": "Tag",
+ "UpdateType": "Immutable"
+ },
+ "CdcStartTime": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-replicationtask.html#cfn-dms-replicationtask-cdcstarttime",
+ "PrimitiveType": "Double",
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::ServiceDiscovery::PublicDnsNamespace": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicediscovery-publicdnsnamespace.html",
+ "Attributes": {
+ "Id": {
+ "PrimitiveType": "String"
+ },
+ "Arn": {
+ "PrimitiveType": "String"
+ }
+ },
+ "Properties": {
+ "Description": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicediscovery-publicdnsnamespace.html#cfn-servicediscovery-publicdnsnamespace-description",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "Name": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicediscovery-publicdnsnamespace.html#cfn-servicediscovery-publicdnsnamespace-name",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::ApiGateway::UsagePlanKey": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-usageplankey.html",
+ "Properties": {
+ "KeyId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-usageplankey.html#cfn-apigateway-usageplankey-keyid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "KeyType": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-usageplankey.html#cfn-apigateway-usageplankey-keytype",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "UsagePlanId": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-usageplankey.html#cfn-apigateway-usageplankey-usageplanid",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::EMR::SecurityConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emr-securityconfiguration.html",
+ "Properties": {
+ "Name": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emr-securityconfiguration.html#cfn-emr-securityconfiguration-name",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Immutable"
+ },
+ "SecurityConfiguration": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emr-securityconfiguration.html#cfn-emr-securityconfiguration-securityconfiguration",
+ "PrimitiveType": "Json",
+ "Required": true,
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::Cognito::UserPoolUserToGroupAttachment": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolusertogroupattachment.html",
+ "Properties": {
+ "GroupName": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolusertogroupattachment.html#cfn-cognito-userpoolusertogroupattachment-groupname",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "UserPoolId": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolusertogroupattachment.html#cfn-cognito-userpoolusertogroupattachment-userpoolid",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "Username": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolusertogroupattachment.html#cfn-cognito-userpoolusertogroupattachment-username",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::DMS::ReplicationInstance": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-replicationinstance.html",
+ "Attributes": {
+ "ReplicationInstancePublicIpAddresses": {
+ "PrimitiveItemType": "String",
+ "Type": "List"
+ },
+ "ReplicationInstancePrivateIpAddresses": {
+ "PrimitiveItemType": "String",
+ "Type": "List"
+ }
+ },
+ "Properties": {
+ "ReplicationInstanceIdentifier": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-replicationinstance.html#cfn-dms-replicationinstance-replicationinstanceidentifier",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "EngineVersion": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-replicationinstance.html#cfn-dms-replicationinstance-engineversion",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "KmsKeyId": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-replicationinstance.html#cfn-dms-replicationinstance-kmskeyid",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "AvailabilityZone": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-replicationinstance.html#cfn-dms-replicationinstance-availabilityzone",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "PreferredMaintenanceWindow": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-replicationinstance.html#cfn-dms-replicationinstance-preferredmaintenancewindow",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "AutoMinorVersionUpgrade": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-replicationinstance.html#cfn-dms-replicationinstance-autominorversionupgrade",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "ReplicationSubnetGroupIdentifier": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-replicationinstance.html#cfn-dms-replicationinstance-replicationsubnetgroupidentifier",
+ "PrimitiveType": "String",
+ "UpdateType": "Immutable"
+ },
+ "AllocatedStorage": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-replicationinstance.html#cfn-dms-replicationinstance-allocatedstorage",
+ "PrimitiveType": "Integer",
+ "UpdateType": "Mutable"
+ },
+ "VpcSecurityGroupIds": {
+ "PrimitiveItemType": "String",
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-replicationinstance.html#cfn-dms-replicationinstance-vpcsecuritygroupids",
+ "UpdateType": "Mutable"
+ },
+ "AllowMajorVersionUpgrade": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-replicationinstance.html#cfn-dms-replicationinstance-allowmajorversionupgrade",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "ReplicationInstanceClass": {
+ "Required": true,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-replicationinstance.html#cfn-dms-replicationinstance-replicationinstanceclass",
+ "PrimitiveType": "String",
+ "UpdateType": "Mutable"
+ },
+ "PubliclyAccessible": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-replicationinstance.html#cfn-dms-replicationinstance-publiclyaccessible",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Immutable"
+ },
+ "MultiAZ": {
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-replicationinstance.html#cfn-dms-replicationinstance-multiaz",
+ "PrimitiveType": "Boolean",
+ "UpdateType": "Mutable"
+ },
+ "Tags": {
+ "Type": "List",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-replicationinstance.html#cfn-dms-replicationinstance-tags",
+ "ItemType": "Tag",
+ "UpdateType": "Immutable"
+ }
+ }
+ },
+ "AWS::AutoScaling::ScheduledAction": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-as-scheduledaction.html",
+ "Properties": {
+ "AutoScalingGroupName": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-as-scheduledaction.html#cfn-as-scheduledaction-asgname",
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "DesiredCapacity": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-as-scheduledaction.html#cfn-as-scheduledaction-desiredcapacity",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "EndTime": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-as-scheduledaction.html#cfn-as-scheduledaction-endtime",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "MaxSize": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-as-scheduledaction.html#cfn-as-scheduledaction-maxsize",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "MinSize": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-as-scheduledaction.html#cfn-as-scheduledaction-minsize",
+ "PrimitiveType": "Integer",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "Recurrence": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-as-scheduledaction.html#cfn-as-scheduledaction-recurrence",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ },
+ "StartTime": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-as-scheduledaction.html#cfn-as-scheduledaction-starttime",
+ "PrimitiveType": "String",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ },
+ "AWS::Glue::Classifier": {
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-classifier.html",
+ "Properties": {
+ "XMLClassifier": {
+ "Type": "XMLClassifier",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-classifier.html#cfn-glue-classifier-xmlclassifier",
+ "UpdateType": "Mutable"
+ },
+ "JsonClassifier": {
+ "Type": "JsonClassifier",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-classifier.html#cfn-glue-classifier-jsonclassifier",
+ "UpdateType": "Mutable"
+ },
+ "GrokClassifier": {
+ "Type": "GrokClassifier",
+ "Required": false,
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-classifier.html#cfn-glue-classifier-grokclassifier",
+ "UpdateType": "Mutable"
+ }
+ }
+ }
+ },
+ "ResourceSpecificationVersion": "2.8.0"
+}
diff --git a/test/module/maintenance/__init__.py b/test/module/maintenance/__init__.py
new file mode 100644
--- /dev/null
+++ b/test/module/maintenance/__init__.py
@@ -0,0 +1,16 @@
+"""
+ Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ software and associated documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to use, copy, modify,
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
diff --git a/test/module/maintenance/test_patch_spec.py b/test/module/maintenance/test_patch_spec.py
new file mode 100644
--- /dev/null
+++ b/test/module/maintenance/test_patch_spec.py
@@ -0,0 +1,75 @@
+"""
+ Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ software and associated documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to use, copy, modify,
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
+import json
+import logging
+import pkg_resources
+from cfnlint.maintenance import patch_spec
+from testlib.testcase import BaseTestCase
+
+LOGGER = logging.getLogger('cfnlint.maintenance')
+LOGGER.addHandler(logging.NullHandler())
+
+class TestPatchJson(BaseTestCase):
+ """Used for Testing Rules"""
+
+ def setUp(self):
+ """Setup"""
+ region = 'us-east-1'
+ filename = pkg_resources.resource_filename(
+ __name__,
+ '../../fixtures/specs/%s.json' % region,
+ )
+ with open(filename, 'r') as f:
+ self.spec = json.loads(f.read())
+
+ def test_success_rds_dbcluster(self):
+ """Success test"""
+ patched = patch_spec(self.spec, 'us-east-1')
+ self.assertIn('SecondsUntilAutoPause', patched['PropertyTypes']['AWS::RDS::DBCluster.ScalingConfiguration']['Properties'])
+ self.assertIn('VpcEndpointType', patched['ResourceTypes']['AWS::EC2::VPCEndpoint']['Properties'])
+ self.assertFalse(patched['ResourceTypes']['AWS::CloudFormation::WaitCondition']['Properties']['Handle']['Required'])
+ self.assertFalse(patched['ResourceTypes']['AWS::CloudFormation::WaitCondition']['Properties']['Timeout']['Required'])
+ self.assertIn('Tags', patched['PropertyTypes']['AWS::EC2::SpotFleet.SpotFleetTagSpecification']['Properties'])
+ self.assertTrue(patched['PropertyTypes']['AWS::Cognito::UserPool.SmsConfiguration']['Properties']['ExternalId']['Required'])
+ self.assertIn('AWS::SSM::MaintenanceWindow', patched['ResourceTypes'])
+ self.assertIn('AWS::SSM::MaintenanceWindowTarget', patched['ResourceTypes'])
+ self.assertIn('AWS::SSM::MaintenanceWindowTarget.Target', patched['PropertyTypes'])
+ self.assertTrue(patched['ResourceTypes']['AWS::SNS::Subscription']['Properties']['TopicArn']['Required'])
+ self.assertTrue(patched['ResourceTypes']['AWS::SNS::Subscription']['Properties']['Protocol']['Required'])
+
+ def test_success_sbd_domain_removed(self):
+ """Success removal of SBD Domain form unsupported regions"""
+ patched = patch_spec(self.spec, 'us-east-2')
+ self.assertNotIn('AWS::SDB::Domain', patched['ResourceTypes'])
+
+ def test_failure_in_patch_parent(self):
+ """
+ Doesn't fail when a parent doesn't exist
+ """
+ spec = self.spec
+ del spec['ResourceTypes']['AWS::SNS::Subscription']
+ patched = patch_spec(spec, 'us-east-1')
+ self.assertNotIn('AWS::SNS::Subscription', patched['ResourceTypes'])
+
+ def test_failure_in_patch_move(self):
+ """
+ Doesn't fail when final key doesn't match
+ """
+ spec = self.spec
+ del spec['ResourceTypes']['AWS::EC2::VPCEndpoint']['Properties']['VPCEndpointType']
+ patched = patch_spec(spec, 'us-east-1')
+ self.assertNotIn('VPCEndpointType', patched['ResourceTypes']['AWS::EC2::VPCEndpoint']['Properties'])
|
smsConfiguration.externalId failed to satisfy constraint
*cfn-lint version: (`cfn-lint --version`)*
0.4.1
*Description of issue.*
`smsConfiguration.externalId ` not set is not required based on the docs cfn-lint does allow it (guess based on the docs) but the deployment fails.
Please provide as much information as possible:
* Template linting issues:
```1 validation error detected: Value null at 'smsConfiguration.externalId' failed to satisfy constraint: Member must not be null (Service: AWSCognitoIdentityProvider; Status Code: 400; Error Code: InvalidParameterException; Request ID: XXXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXXXX)```
* Please provide a CloudFormation sample that generated the issue.
```cloudformation
UserPool:
Type: AWS::Cognito::UserPool
Properties:
AutoVerifiedAttributes:
- phone_number
MfaConfiguration: "ON"
SmsConfiguration:
SnsCallerArn: !GetAtt SNSRole.Arn
Schema:
- Name: name
AttributeDataType: String
Mutable: true
Required: true
- Name: email
AttributeDataType: String
Mutable: false
Required: true
- Name: phone_number
AttributeDataType: String
Mutable: false
Required: true
- Name: slackId
AttributeDataType: String
Mutable: true
```
* If present, please add links to the (official) documentation for clarification.
* https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-smsconfiguration.html
* Feature request:
Not sure if the validator and docs are right or the parser of CFN, cfn-lint should catch this failure or CFN should deploy it IMHO.
|
Huh, yea we are giving you no errors based on the Spec (and documentation) so that is weird. We will have to go back and do more digging with the teams on this one.
Spec.
```
"AWS::Cognito::UserPool.SmsConfiguration": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-smsconfiguration.html",
"Properties": {
"ExternalId": {
"Required": false,
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-smsconfiguration.html#cfn-cognito-userpool-smsconfiguration-externalid",
"PrimitiveType": "String",
"UpdateType": "Mutable"
},
"SnsCallerArn": {
"Required": false,
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-smsconfiguration.html#cfn-cognito-userpool-smsconfiguration-snscallerarn",
"PrimitiveType": "String",
"UpdateType": "Mutable"
}
}
},
```
Documentation says its not required either.
@cmmeyer another one for you!
|
2018-10-15T16:54:59Z
|
[] |
[] |
aws-cloudformation/cfn-lint
| 402 |
aws-cloudformation__cfn-lint-402
|
[
"401"
] |
60027ac8b74a2f2e379b3f4364fce6246a5954db
|
diff --git a/src/cfnlint/rules/functions/SubNeeded.py b/src/cfnlint/rules/functions/SubNeeded.py
--- a/src/cfnlint/rules/functions/SubNeeded.py
+++ b/src/cfnlint/rules/functions/SubNeeded.py
@@ -27,7 +27,7 @@ class SubNeeded(CloudFormationLintRule):
tags = ['functions', 'sub']
# Free-form text properties to exclude from this rule
- excludes = ['UserData', 'ZipFile']
+ excludes = ['UserData', 'ZipFile', 'Resource', 'Condition']
def _match_values(self, searchRegex, cfnelem, path):
"""Recursively search for values matching the searchRegex"""
|
diff --git a/test/fixtures/templates/good/functions/sub_needed.yaml b/test/fixtures/templates/good/functions/sub_needed.yaml
new file mode 100644
--- /dev/null
+++ b/test/fixtures/templates/good/functions/sub_needed.yaml
@@ -0,0 +1,20 @@
+---
+AWSTemplateFormatVersion: "2010-09-09"
+Parameters:
+ AMIId:
+ Type: 'String'
+ Description: 'The AMI ID for the image to use.'
+Resources:
+ myPolicy:
+ Type: AWS::IAM::Policy
+ Properties:
+ Roles:
+ - testRole
+ PolicyName: test
+ PolicyDocument:
+ Version: "2012-10-17"
+ Statement:
+ - Effect: "Allow"
+ Action:
+ - "iam:UploadSSHPublicKey"
+ Resource: "arn:aws:iam::*:user/${aws:username}"
diff --git a/test/rules/functions/test_sub_needed.py b/test/rules/functions/test_sub_needed.py
--- a/test/rules/functions/test_sub_needed.py
+++ b/test/rules/functions/test_sub_needed.py
@@ -26,6 +26,7 @@ def setUp(self):
self.collection.register(SubNeeded())
self.success_templates = [
'fixtures/templates/good/functions_sub.yaml',
+ 'fixtures/templates/good/functions/sub_needed.yaml',
]
def test_file_positive(self):
|
${aws:username} now fails
*cfn-lint version: 0.8
E1029 Found an embedded parameter outside of an "Fn::Sub" at Resources/ForceMFAPolicy/Properties/PolicyDocument/Statement/3/Resource/0/arn:aws:iam::*:mfa/${aws:username}
It looks like the IAM variables are now being detected as embedded parameters in cfn-lint.
Effect: "Allow"
Action:
- "iam:UploadSSHPublicKey"
Resource: "arn:aws:iam::*:user/${aws:username}"
|
Looking into it. This will need a fix.
|
2018-10-19T18:34:52Z
|
[] |
[] |
aws-cloudformation/cfn-lint
| 409 |
aws-cloudformation__cfn-lint-409
|
[
"405"
] |
b66a5a4abde92ba47970c0e830f72634c24c1841
|
diff --git a/src/cfnlint/rules/resources/codepipeline/CodepipelineStageActions.py b/src/cfnlint/rules/resources/codepipeline/CodepipelineStageActions.py
--- a/src/cfnlint/rules/resources/codepipeline/CodepipelineStageActions.py
+++ b/src/cfnlint/rules/resources/codepipeline/CodepipelineStageActions.py
@@ -212,30 +212,29 @@ def match(self, cfn):
path = resource['Path']
properties = resource['Value']
- stages = properties.get('Stages')
- if not isinstance(stages, list):
- self.logger.debug('Stages not list. Should have been caught by generic linting.')
- return matches
-
- for sidx, stage in enumerate(stages):
- stage_path = path + ['Stages', sidx]
- action_names = set()
- actions = stage.get('Actions')
- if not isinstance(actions, list):
- self.logger.debug('Actions not list. Should have been caught by generic linting.')
+ s_stages = properties.get_safe('Stages', path)
+ for s_stage_v, s_stage_p in s_stages:
+ if not isinstance(s_stage_v, list):
+ self.logger.debug('Stages not list. Should have been caught by generic linting.')
return matches
- for aidx, action in enumerate(actions):
- action_path = stage_path + ['Actions', aidx]
-
- try:
- matches.extend(self.check_names_unique(action, action_path, action_names))
- matches.extend(self.check_version(action, action_path))
- matches.extend(self.check_owner(action, action_path))
- matches.extend(self.check_artifact_counts(action, 'InputArtifacts', action_path))
- matches.extend(self.check_artifact_counts(action, 'OutputArtifacts', action_path))
- except AttributeError as err:
- self.logger.debug('Got AttributeError. Should have been caught by generic linting. '
- 'Ignoring the error here: %s', str(err))
+ for l_i_stage, l_i_path in s_stage_v.items_safe(s_stage_p):
+ action_names = set()
+ s_actions = l_i_stage.get_safe('Actions', l_i_path)
+ for s_action_v, s_action_p in s_actions:
+ if not isinstance(s_action_v, list):
+ self.logger.debug('Actions not list. Should have been caught by generic linting.')
+ return matches
+
+ for l_i_a_action, l_i_a_path in s_action_v.items_safe(s_action_p):
+ try:
+ matches.extend(self.check_names_unique(l_i_a_action, l_i_a_path, action_names))
+ matches.extend(self.check_version(l_i_a_action, l_i_a_path))
+ matches.extend(self.check_owner(l_i_a_action, l_i_a_path))
+ matches.extend(self.check_artifact_counts(l_i_a_action, 'InputArtifacts', l_i_a_path))
+ matches.extend(self.check_artifact_counts(l_i_a_action, 'OutputArtifacts', l_i_a_path))
+ except AttributeError as err:
+ self.logger.debug('Got AttributeError. Should have been caught by generic linting. '
+ 'Ignoring the error here: %s', str(err))
return matches
diff --git a/src/cfnlint/rules/resources/codepipeline/CodepipelineStages.py b/src/cfnlint/rules/resources/codepipeline/CodepipelineStages.py
--- a/src/cfnlint/rules/resources/codepipeline/CodepipelineStages.py
+++ b/src/cfnlint/rules/resources/codepipeline/CodepipelineStages.py
@@ -106,27 +106,27 @@ def match(self, cfn):
path = resource['Path']
properties = resource['Value']
- stages = properties.get('Stages')
- if not isinstance(stages, list):
- self.logger.debug('Stages not list. Should have been caught by generic linting.')
- return matches
-
- try:
- matches.extend(
- self.check_stage_count(stages, path + ['Stages'])
- )
- matches.extend(
- self.check_first_stage(stages, path + ['Stages'])
- )
- matches.extend(
- self.check_source_actions(stages, path + ['Stages'])
- )
- matches.extend(
- self.check_names_unique(stages, path + ['Stages'])
- )
- except AttributeError as err:
- self.logger.debug('Got AttributeError. Should have been caught by generic linting. '
- 'Ignoring the error here: %s', str(err))
-
+ s_stages = properties.get_safe('Stages', path)
+ for s_stage_v, s_stage_p in s_stages:
+ if not isinstance(s_stage_v, list):
+ self.logger.debug('Stages not list. Should have been caught by generic linting.')
+ return matches
+
+ try:
+ matches.extend(
+ self.check_stage_count(s_stage_v, s_stage_p)
+ )
+ matches.extend(
+ self.check_first_stage(s_stage_v, s_stage_p)
+ )
+ matches.extend(
+ self.check_source_actions(s_stage_v, s_stage_p)
+ )
+ matches.extend(
+ self.check_names_unique(s_stage_v, s_stage_p)
+ )
+ except AttributeError as err:
+ self.logger.debug('Got AttributeError. Should have been caught by generic linting. '
+ 'Ignoring the error here: %s', str(err))
return matches
|
diff --git a/test/fixtures/templates/good/resources_codepipeline.yaml b/test/fixtures/templates/good/resources_codepipeline.yaml
--- a/test/fixtures/templates/good/resources_codepipeline.yaml
+++ b/test/fixtures/templates/good/resources_codepipeline.yaml
@@ -1,4 +1,6 @@
AWSTemplateFormatVersion: 2010-09-09
+Conditions:
+ myCondition: !Equals [!Ref "AWS::Region", 'us-east-1']
Resources:
TestPipeline:
Type: AWS::CodePipeline::Pipeline
@@ -39,6 +41,8 @@ Resources:
- Name: MyApp
- Name: !ImportValue TestImport
Actions:
+ - Fn::If:
+ - myCondition
- Name: CodeBuild
ActionTypeId:
Category: Build
@@ -49,3 +53,4 @@ Resources:
ProjectName: cfn-python-lint
InputArtifacts:
- Name: MyApp
+ - !Ref AWS::NoValue
|
E2541 is not working properly
*cfn-lint version: 0.8.1*
*Description of issue.*
E2541 For all currently supported action types, the only valid version string is "1".
But
> Version: "1"
|
I looked into this quick and wasn't able to reproduce. I was hoping to not see more of your template but I may need to do this justice.
In our testing (and testing manually) this template https://github.com/awslabs/cfn-python-lint/blob/master/test/fixtures/templates/good/resources_codepipeline.yaml is coming back clean which does have the `Version: "1"` set. I flipped it to "2" just to check and it did trigger. The only other thing I see here is that we are making sure its a string and not an integer. Your example shouldn't parse as an integer though.
I am sorry, can you please double-check?
Here the Codepipeline resource code:
Pipeline:
Type: AWS::CodePipeline::Pipeline
Properties:
Name: !Sub Payments-${Environment}
RoleArn: !GetAtt CodePipelineServiceRole.Arn
ArtifactStore:
Type: S3
Location: !Ref ArtifactBucket
Stages:
- Name: Source
Actions:
- Name: Payments
ActionTypeId:
Category: Source
Provider: S3
Owner: AWS
Version: "1"
Configuration:
S3Bucket: wallapop-trigger-link-cicd
S3ObjectKey: !Sub payment/payment-${Tag}.zip
OutputArtifacts:
- Name: App
- Name: Infrastructure
Actions:
- Name: RDS
ActionTypeId:
Category: Deploy
Owner: AWS
Version: "1"
Provider: CloudFormation
Configuration:
ActionMode: CREATE_UPDATE
Capabilities: CAPABILITY_IAM
StackName: !Sub PaymentsRDS-${Environment}
TemplateConfiguration: !Sub App::infrastructure/parameters/payments/rds/${Environment}.json
TemplatePath: App::infrastructure/templates/payments/payments-rds.yml
RoleArn: !GetAtt CloudFormationExecutionRole.Arn
InputArtifacts:
- Name: App
- Name: Resources
ActionTypeId:
Category: Deploy
Owner: AWS
Version: "1"
Provider: CloudFormation
Configuration:
ActionMode: CREATE_UPDATE
Capabilities: CAPABILITY_IAM
StackName: !Sub Payments-${Environment}
TemplateConfiguration: !Sub App::infrastructure/parameters/payments/resources/${Environment}.json
TemplatePath: App::infrastructure/templates/payments/payments-resources.yml
RoleArn: !GetAtt CloudFormationExecutionRole.Arn
InputArtifacts:
- Name: App
- Name: Service
ActionTypeId:
Category: Deploy
Owner: AWS
Version: "1"
Provider: CloudFormation
Configuration:
ActionMode: CREATE_UPDATE
Capabilities: CAPABILITY_IAM
StackName: !Sub payments-service-${Environment}
TemplateConfiguration: !Sub App::infrastructure/parameters/payments/service/${Environment}.json
TemplatePath: App::infrastructure/templates/payments/payments-service.yml
RoleArn: !GetAtt CloudFormationExecutionRole.Arn
InputArtifacts:
- Name: App
- Name: Pipeline
ActionTypeId:
Category: Deploy
Owner: AWS
Version: "1"
Provider: CloudFormation
Configuration:
ActionMode: CREATE_UPDATE
Capabilities: CAPABILITY_IAM
StackName: !Sub payments-pipeline-${Environment}
TemplateConfiguration: !Sub App::infrastructure/parameters/payments/pipeline/${Environment}.json
TemplatePath: App::infrastructure/templates/payments/payments-pipeline.yml
RoleArn: !GetAtt CloudFormationExecutionRole.Arn
InputArtifacts:
- Name: App
- Name: Alarms
ActionTypeId:
Category: Deploy
Owner: AWS
Version: "1"
Provider: CloudFormation
Configuration:
ActionMode: CREATE_UPDATE
Capabilities: CAPABILITY_IAM
StackName: !Sub payments-alarms-${Environment}
TemplateConfiguration: !Sub App::infrastructure/parameters/payments/alarms/${Environment}.json
TemplatePath: App::infrastructure/templates/payments/payments-alarms.yml
RoleArn: !GetAtt CloudFormationExecutionRole.Arn
InputArtifacts:
- Name: App
- !If
- CreateProdResources
- Name: Dashboard
ActionTypeId:
Category: Deploy
Owner: AWS
Version: "1"
Provider: CloudFormation
Configuration:
ActionMode: CREATE_UPDATE
Capabilities: CAPABILITY_IAM
StackName: !Sub payments-dashboard-${Environment}
TemplateConfiguration: !Sub App::infrastructure/parameters/payments/dashboard/${Environment}.json
TemplatePath: App::infrastructure/templates/payments/payments-dashboard.yml
RoleArn: !GetAtt CloudFormationExecutionRole.Arn
InputArtifacts:
- Name: App
- !Ref AWS::NoValue
- Name: Build
Actions:
- Name: Flyway
ActionTypeId:
Category: Build
Owner: AWS
Version: "1"
Provider: CodeBuild
Configuration:
ProjectName: !Ref CodeBuildDBScripts
InputArtifacts:
- Name: App
- Name: Deploy
Actions:
- Name: Deploy
ActionTypeId:
Category: Deploy
Owner: AWS
Version: "1"
Provider: ECS
Configuration:
ClusterName: !Ref Environment
ServiceName:
Fn::ImportValue:
!Sub "payments-${Environment}-name"
FileName: images.json
InputArtifacts:
- Name: App
RunOrder: 1`
If I run the last version linter:
```
$ sudo pip install -U cfn-lint
$ cfn-lint -t infrastructure/templates/delivery/delivery-pipeline.yml
E2541 For all currently supported action types, the only valid version string is "1".
infrastructure/templates/delivery/delivery-pipeline.yml:391:13
```
If I run an old version:
```
$ sudo pip install -U cfn-lint==0.6.1
$ cfn-lint -t infrastructure/templates/delivery/delivery-pipeline.yml
$
```
ok I was able to replicate this now. I'm looking into it.
Its the condition that is causing us issues. Should be able to get this fixed shortly.
|
2018-10-24T18:30:03Z
|
[] |
[] |
aws-cloudformation/cfn-lint
| 410 |
aws-cloudformation__cfn-lint-410
|
[
"408"
] |
470aa5ee34edbf2b0978b6f7e41a667eacced590
|
diff --git a/src/cfnlint/rules/resources/iam/InstanceProfile.py b/src/cfnlint/rules/resources/iam/InstanceProfile.py
--- a/src/cfnlint/rules/resources/iam/InstanceProfile.py
+++ b/src/cfnlint/rules/resources/iam/InstanceProfile.py
@@ -43,12 +43,17 @@ def match(self, cfn):
obj = tree[-1]
objtype = cfn.template.get('Resources', {}).get(obj[0], {}).get('Type')
if objtype:
- if objtype != 'AWS::IAM::InstanceProfile':
+ if objtype not in ['AWS::IAM::InstanceProfile', 'AWS::CloudFormation::Stack', 'AWS::CloudFormation::CustomResource']:
message = 'Property IamInstanceProfile should relate to AWS::IAM::InstanceProfile for %s' % (
'/'.join(map(str, tree[:-1])))
matches.append(RuleMatch(tree[:-1], message))
else:
- if cfn.template.get('Resources', {}).get(tree[1], {}).get('Type') in ['AWS::EC2::SpotFleet']:
+ if objtype in ['AWS::CloudFormation::Stack']:
+ if obj[1] != 'Outputs':
+ message = 'Property IamInstanceProfile should relate to AWS::IAM::InstanceProfile for %s' % (
+ '/'.join(map(str, tree[:-1])))
+ matches.append(RuleMatch(tree[:-1], message))
+ elif cfn.template.get('Resources', {}).get(tree[1], {}).get('Type') in ['AWS::EC2::SpotFleet']:
if obj[1] != 'Arn':
message = 'Property IamInstanceProfile should be an ARN for %s' % (
'/'.join(map(str, tree[:-1])))
|
diff --git a/test/fixtures/templates/good/resources/iam/instance_profile.yaml b/test/fixtures/templates/good/resources/iam/instance_profile.yaml
new file mode 100644
--- /dev/null
+++ b/test/fixtures/templates/good/resources/iam/instance_profile.yaml
@@ -0,0 +1,12 @@
+AWSTemplateFormatVersion: 2010-09-09
+Resources:
+ IAMInstanceProfile:
+ Type: AWS::CloudFormation::Stack
+ Properties:
+ TemplateURL: https://s3-us-west-2.amazonaws.com/example-bucket/example-instance-profile.yml
+ Instance:
+ Type: AWS::CloudFormation::Stack
+ Properties:
+ Parameters:
+ IamInstanceProfile: !GetAtt IAMInstanceProfile.Outputs.InstanceProfileArn
+ TemplateURL: https://s3-us-west-2.amazonaws.com/example-bucket/example-instance.yml
diff --git a/test/rules/resources/iam/test_iam_instance_profile.py b/test/rules/resources/iam/test_iam_instance_profile.py
--- a/test/rules/resources/iam/test_iam_instance_profile.py
+++ b/test/rules/resources/iam/test_iam_instance_profile.py
@@ -24,6 +24,9 @@ def setUp(self):
"""Setup"""
super(TestPropertyVpcId, self).setUp()
self.collection.register(InstanceProfile())
+ self.success_templates = [
+ 'fixtures/templates/good/resources/iam/instance_profile.yaml'
+ ]
def test_file_positive(self):
"""Test Positive"""
|
Nested stack reference to InstanceProfile triggers E2502 Property IamInstanceProfile should relate to AWS::IAM::InstanceProfile
*cfn-lint version: `0.8.1`*
# Description of issue
When using nested stacks and passing IamInstanceProfile ARNs between stacks, E2502 is triggered though it shouldn't be.
# Steps to reproduce
Create a parent template like this
```yaml
AWSTemplateFormatVersion: 2010-09-09
Resources:
IAMInstanceProfile:
Type: AWS::CloudFormation::Stack
Properties:
TemplateURL: https://s3-us-west-2.amazonaws.com/example-bucket/example-instance-profile.yml
Instance:
Type: AWS::CloudFormation::Stack
Properties:
Parameters:
IamInstanceProfile: !GetAtt IAMInstanceProfile.Outputs.InstanceProfileArn
TemplateURL: https://s3-us-west-2.amazonaws.com/example-bucket/example-instance.yml
```
and a child template like this
```yaml
AWSTemplateFormatVersion: 2010-09-09
Resources:
InstanceProfile:
Type: AWS::IAM::InstanceProfile
Properties:
Roles:
- ExampleRole
Outputs:
InstanceProfileArn:
Value: !GetAtt InstanceProfile.Arn
```
# Expected results
The `IamInstanceProfile` parameter in the parent template's `Instance` sub-stack resource definition does indeed contain a valid IAM Instance Profile ARN (passed in from the `IAMInstanceProfile` sub-stack resource and as a result, there should be no error.
Ideally cfn-lint would recognize that `GetAtt` is referencing an output from another stack which very well could be an InstanceProfile ARN and as a result, optimistically not report this error.
Alternatively, if cfn-lint could introspect the sub-stack and determine the object type of the output, it would know whether or not it was the correct object type.
# Actual results
cfn-lint reports the error
> E2502 Property IamInstanceProfile should relate to AWS::IAM::InstanceProfile for Resources/Instance/Properties/Parameters/IamInstanceProfile/Fn::GetAtt
> example-parent.yml:11:9
|
Got it. I'll double check that. If it relates to a nested stack we will just bail cause we can't verify anything at that point.
|
2018-10-24T19:03:56Z
|
[] |
[] |
aws-cloudformation/cfn-lint
| 413 |
aws-cloudformation__cfn-lint-413
|
[
"412"
] |
ebc07fa8b48cdc331d335e03053db583909534d9
|
diff --git a/src/cfnlint/rules/resources/stepfunctions/StateMachine.py b/src/cfnlint/rules/resources/stepfunctions/StateMachine.py
--- a/src/cfnlint/rules/resources/stepfunctions/StateMachine.py
+++ b/src/cfnlint/rules/resources/stepfunctions/StateMachine.py
@@ -37,13 +37,14 @@ def _check_state_json(self, def_json, state_name, path):
"""Check State JSON Definition"""
matches = []
+ # https://docs.aws.amazon.com/step-functions/latest/dg/amazon-states-language-common-fields.html
common_state_keys = [
'Next',
'End',
'Type',
'Comment',
- 'Input',
- 'Ouptut',
+ 'InputPath',
+ 'OutputPath',
]
common_state_required_keys = [
'Type',
|
diff --git a/test/fixtures/templates/good/resources/stepfunctions/state_machine.yaml b/test/fixtures/templates/good/resources/stepfunctions/state_machine.yaml
--- a/test/fixtures/templates/good/resources/stepfunctions/state_machine.yaml
+++ b/test/fixtures/templates/good/resources/stepfunctions/state_machine.yaml
@@ -12,6 +12,19 @@ Resources:
"HelloWorld": {
"Type": "Task",
"Resource": "arn:aws:lambda:us-east-1:111122223333:function:HelloFunction",
+ "Next": "CreatePublishedRequest"
+ },
+ "CreatePublishedRequest": {
+ "Type": "Task",
+ "Resource": "{$createPublishedRequest}",
+ "ResultPath":"$.publishedRequest",
+ "OutputPath":"$.publishedRequest",
+ "Next": "PutRequest"
+ },
+ "PutRequest": {
+ "Type": "Task",
+ "Resource": "{$updateKey}",
+ "ResultPath":"$.response",
"End": true
}
}
|
E2532 State Machine Definition key (OutputPath) for State of Type (Task) is not valid
cfn-lint version: 0.7.3
I am getting the above error when trying to lint a CF template containing a step function. The step function code is working fine in AWS console though.
"CreatePublishedRequest": {
"Type": "Task",
"Resource": "{$createPublishedRequest}",
"ResultPath":"$.publishedRequest",
"OutputPath":"$.publishedRequest",
"Next": "PutRequest"
},
"PutRequest": {
"Type": "Task",
"Resource": "{$updateKey}",
"ResultPath":"$.response",
"Next": "Take Down Mock"
},
When trying to change to using InputPath in "PutRequest" instead I am getting the same error, but for InputPath instead.
|
2018-10-25T13:55:41Z
|
[] |
[] |
|
aws-cloudformation/cfn-lint
| 426 |
aws-cloudformation__cfn-lint-426
|
[
"423"
] |
4765ff51ce92bc17a5c2406ef4d0d4888db8a64a
|
diff --git a/src/cfnlint/helpers.py b/src/cfnlint/helpers.py
--- a/src/cfnlint/helpers.py
+++ b/src/cfnlint/helpers.py
@@ -23,7 +23,7 @@
import re
import inspect
import pkg_resources
-from cfnlint.decode.node import dict_node, list_node
+from cfnlint.decode.node import dict_node, list_node, str_node
LOGGER = logging.getLogger(__name__)
@@ -216,13 +216,20 @@ def convert_dict(template, start_mark=(0, 0), end_mark=(0, 0)):
if isinstance(template, dict):
if not isinstance(template, dict_node):
template = dict_node(template, start_mark, end_mark)
- for k, v in template.items():
- template[k] = convert_dict(v)
+ for k, v in template.copy().items():
+ k_start_mark = start_mark
+ k_end_mark = end_mark
+ if isinstance(k, str_node):
+ k_start_mark = k.start_mark
+ k_end_mark = k.end_mark
+ new_k = str_node(k, k_start_mark, k_end_mark)
+ del template[k]
+ template[new_k] = convert_dict(v, k_start_mark, k_end_mark)
elif isinstance(template, list):
if not isinstance(template, list_node):
template = list_node(template, start_mark, end_mark)
for i, v in enumerate(template):
- template[i] = convert_dict(v)
+ template[i] = convert_dict(v, start_mark, end_mark)
return template
|
diff --git a/test/module/helpers/__init__.py b/test/module/helpers/__init__.py
new file mode 100644
--- /dev/null
+++ b/test/module/helpers/__init__.py
@@ -0,0 +1,16 @@
+"""
+ Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ software and associated documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to use, copy, modify,
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
diff --git a/test/module/helpers/test_convert_dict.py b/test/module/helpers/test_convert_dict.py
new file mode 100644
--- /dev/null
+++ b/test/module/helpers/test_convert_dict.py
@@ -0,0 +1,45 @@
+"""
+ Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ software and associated documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to use, copy, modify,
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
+import json
+from cfnlint.helpers import convert_dict
+from cfnlint.decode.node import dict_node, list_node, str_node
+from cfnlint import Runner
+import cfnlint.decode.cfn_yaml
+from testlib.testcase import BaseTestCase
+
+
+class TestConvertDict(BaseTestCase):
+ """Test Converting regular dicts into CFN Dicts """
+
+ def test_success_run(self):
+ """Test success run"""
+ obj = {
+ 'Key': {
+ 'SubKey': 'Value'
+ },
+ 'List': [
+ {'SubKey': 'AnotherValue'}
+ ]
+ }
+
+ results = convert_dict(obj)
+ self.assertTrue(isinstance(results, dict_node))
+ self.assertTrue(isinstance(results.get('Key'), dict_node))
+ self.assertTrue(isinstance(results.get('List')[0], dict_node))
+ self.assertTrue(isinstance(results.get('List'), list_node))
+ for k, _ in results.items():
+ self.assertTrue(isinstance(k, str_node))
|
E2507 error when using using policy statements for serverless functions
*cfn-lint version: 0.8.2* (and doesn't happen with earlier versions)
The template below produces the following error when processing it with `cfn-lint`:
```
E0002 Unknown exception while processing rule E2507: 'str' object has no attribute 'start_mark'
function_with_policy_templates.yaml:1:1
````
```yaml
AWSTemplateFormatVersion: '2010-09-09'
Transform: 'AWS::Serverless-2016-10-31'
Resources:
Test:
Type: 'AWS::Serverless::Function'
Properties:
CodeUri: ./
Handler: hello.handler
Runtime: python3.6
Policies:
- Statement:
- Action: [ 'dynamodb:*' ]
Effect: Allow
Resource: '*'
```
That issue goes away when removing the `Transform: 'AWS::Serverless-2016-10-31'`, but that's of course no fix, as that would prevent transformation of the `AWS::Serverless::Function`.
|
2018-10-29T23:19:59Z
|
[] |
[] |
|
aws-cloudformation/cfn-lint
| 429 |
aws-cloudformation__cfn-lint-429
|
[
"416"
] |
2f00ba429d4168a8655fdec530a1aa1d95299058
|
diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -48,10 +48,11 @@ def get_version(filename):
'data/CloudSpecs/*.json',
'data/AdditionalSpecs/*.json',
'data/Serverless/*.json',
+ 'data/CfnLintCli/config/schema.json'
]},
packages=find_packages('src'),
zip_safe=False,
- install_requires=['pyyaml', 'six', 'requests', 'aws-sam-translator>=1.6.0', 'jsonpatch'],
+ install_requires=['pyyaml', 'six', 'requests', 'aws-sam-translator>=1.6.0', 'jsonpatch', 'jsonschema~=2.6.0', 'pathlib2'],
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
entry_points={
'console_scripts': [
diff --git a/src/cfnlint/config.py b/src/cfnlint/config.py
new file mode 100644
--- /dev/null
+++ b/src/cfnlint/config.py
@@ -0,0 +1,469 @@
+"""
+ Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ software and associated documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to use, copy, modify,
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
+import sys
+import argparse
+import logging
+import glob
+import json
+import yaml
+import six
+import jsonschema
+from cfnlint.version import __version__
+try: # pragma: no cover
+ from pathlib import Path
+except ImportError: # pragma: no cover
+ from pathlib2 import Path
+
+LOGGER = logging.getLogger('cfnlint')
+
+
+def configure_logging(debug_logging):
+ """Setup Logging"""
+ ch = logging.StreamHandler()
+ ch.setLevel(logging.DEBUG)
+
+ if debug_logging:
+ LOGGER.setLevel(logging.DEBUG)
+ else:
+ LOGGER.setLevel(logging.INFO)
+ log_formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
+ ch.setFormatter(log_formatter)
+
+ # make sure all other log handlers are removed before adding it back
+ for handler in LOGGER.handlers:
+ LOGGER.removeHandler(handler)
+ LOGGER.addHandler(ch)
+
+
+class ConfigFileArgs(object):
+ """
+ Config File arguments.
+ Parses .cfnlintrc in the Home and Project folder.
+ """
+ file_args = {}
+
+ def __init__(self, schema=None):
+ # self.file_args = self.get_config_file_defaults()
+ self.__user_config_file = None
+ self.__project_config_file = None
+ self.file_args = {}
+ self.default_schema_file = Path(__file__).parent.joinpath('data/CfnLintCli/config/schema.json')
+ with self.default_schema_file.open() as f:
+ self.default_schema = json.load(f)
+ self.schema = self.default_schema if not schema else schema
+ self.load()
+
+ def _find_config(self):
+ """Looks up for user and project level config
+ Returns
+ -------
+ Tuple
+ (Path, Path)
+ Tuple with both configs and whether they were found
+ Example
+ -------
+ > user_config, project_config = self._find_config()
+ """
+ config_file_name = '.cfnlintrc'
+ self.__user_config_file = Path.home().joinpath(config_file_name)
+ self.__project_config_file = Path.cwd().joinpath(config_file_name)
+
+ user_config_path = ''
+ project_config_path = ''
+
+ if self._has_file(self.__user_config_file):
+ LOGGER.debug('Found User CFNLINTRC')
+ user_config_path = self.__user_config_file
+
+ if self._has_file(self.__project_config_file):
+ LOGGER.debug('Found Project level CFNLINTRC')
+ project_config_path = self.__project_config_file
+
+ return user_config_path, project_config_path
+
+ def _has_file(self, filename):
+ """Confirm whether file exists
+ Parameters
+ ----------
+ filename : str
+ Path to a file
+ Returns
+ -------
+ Boolean
+ """
+
+ return Path(filename).is_file()
+
+ def load(self):
+ """Load configuration file and expose as a dictionary
+ Returns
+ -------
+ Dict
+ CFLINTRC configuration
+ """
+
+ LOGGER.debug('Looking for CFLINTRC before attempting to load')
+ user_config, project_config = self._find_config()
+
+ user_config = self._read_config(user_config)
+ LOGGER.debug('Validating User CFNLINTRC')
+ self.validate_config(user_config, self.schema)
+
+ project_config = self._read_config(project_config)
+ LOGGER.debug('Validating Project CFNLINTRC')
+ self.validate_config(project_config, self.schema)
+
+ LOGGER.debug('User configuration loaded as')
+ LOGGER.debug('%s', user_config)
+ LOGGER.debug('Project configuration loaded as')
+ LOGGER.debug('%s', project_config)
+
+ LOGGER.debug('Merging configurations...')
+ self.file_args = self.merge_config(user_config, project_config)
+
+ def validate_config(self, config, schema):
+ """Validate configuration against schema
+ Parameters
+ ----------
+ config : dict
+ CFNLINTRC configuration
+ schema : dict
+ JSONSchema to validate against
+ Raises
+ -------
+ jsonschema.exceptions.ValidationError
+ Returned when cfnlintrc doesn't match schema provided
+ """
+ LOGGER.debug('Validating CFNLINTRC config with given JSONSchema')
+ LOGGER.debug('Schema used: %s', schema)
+ LOGGER.debug('Config used: %s', config)
+
+ jsonschema.validate(config, schema)
+ LOGGER.debug('CFNLINTRC looks valid!')
+
+ def merge_config(self, user_config, project_config):
+ """Merge project and user configuration into a single dictionary
+ Creates a new configuration with both configuration merged
+ it favours project level over user configuration if keys are duplicated
+ NOTE
+ ----
+ It takes any number of nested dicts
+ It overrides lists found in user_config with project_config
+ Parameters
+ ----------
+ user_config : Dict
+ User configuration (~/.cfnlintrc) found at user's home directory
+ project_config : Dict
+ Project configuration (.cfnlintrc) found at current directory
+ Returns
+ -------
+ Dict
+ Merged configuration
+ """
+ # Recursively override User config with Project config
+ for key in user_config:
+ if key in project_config:
+ # If both keys are the same, let's check whether they have nested keys
+ if isinstance(user_config[key], dict) and isinstance(project_config[key], dict):
+ self.merge_config(user_config[key], project_config[key])
+ else:
+ user_config[key] = project_config[key]
+ LOGGER.debug('Overriding User\'s key %s with Project\'s specific value %s.', key, project_config[key])
+
+ # Project may have unique config we need to copy over too
+ # so that we can have user+project config available as one
+ for key in project_config:
+ if key not in user_config:
+ user_config[key] = project_config[key]
+
+ return user_config
+
+ def _read_config(self, config):
+ """Parse given YAML configuration
+ Returns
+ -------
+ Dict
+ Parsed YAML configuration as dictionary
+ """
+ config = Path(config)
+ config_template = None
+
+ if self._has_file(config):
+ LOGGER.debug('Parsing CFNLINTRC')
+ config_template = yaml.safe_load(config.read_text())
+
+ if not config_template:
+ config_template = {}
+
+ return config_template
+
+
+def comma_separated_arg(string):
+ """ Split a comma separated string """
+ return string.split(',')
+
+
+class CliArgs(object):
+ """ Base Args class"""
+ cli_args = {}
+
+ def __init__(self, cli_args):
+ self.parser = self.create_parser()
+ self.cli_args, _ = self.parser.parse_known_args(cli_args)
+
+ def create_parser(self):
+ """Do first round of parsing parameters to set options"""
+ class ArgumentParser(argparse.ArgumentParser):
+ """ Override Argument Parser so we can control the exit code"""
+ def error(self, message):
+ self.print_help(sys.stderr)
+ self.exit(32, '%s: error: %s\n' % (self.prog, message))
+
+ class ExtendAction(argparse.Action):
+ """Support argument types that are lists and can be specified multiple times."""
+ def __call__(self, parser, namespace, values, option_string=None):
+ items = getattr(namespace, self.dest)
+ items = [] if items is None else items
+ for value in values:
+ if isinstance(value, list):
+ items.extend(value)
+ else:
+ items.append(value)
+ setattr(namespace, self.dest, items)
+
+ parser = ArgumentParser(description='CloudFormation Linter')
+ parser.register('action', 'extend', ExtendAction)
+
+ standard = parser.add_argument_group('Standard')
+ advanced = parser.add_argument_group('Advanced / Debugging')
+
+ # Alllow the template to be passes as an optional or a positional argument
+ standard.add_argument(
+ 'templates', metavar='TEMPLATE', nargs='*', help='The CloudFormation template to be linted')
+ standard.add_argument(
+ '-t', '--template', metavar='TEMPLATE', dest='template_alt',
+ help='The CloudFormation template to be linted', nargs='+', default=[], action='extend')
+ standard.add_argument(
+ '-b', '--ignore-bad-template', help='Ignore failures with Bad template',
+ action='store_true'
+ )
+ advanced.add_argument(
+ '-d', '--debug', help='Enable debug logging', action='store_true'
+ )
+ standard.add_argument(
+ '-f', '--format', help='Output Format', choices=['quiet', 'parseable', 'json']
+ )
+
+ standard.add_argument(
+ '-l', '--list-rules', dest='listrules', default=False,
+ action='store_true', help='list all the rules'
+ )
+ standard.add_argument(
+ '-r', '--regions', dest='regions', nargs='+', default=[],
+ type=comma_separated_arg, action='extend',
+ help='list the regions to validate against.'
+ )
+ advanced.add_argument(
+ '-a', '--append-rules', dest='append_rules', nargs='+', default=[],
+ type=comma_separated_arg, action='extend',
+ help='specify one or more rules directories using '
+ 'one or more --append-rules arguments. '
+ )
+ standard.add_argument(
+ '-i', '--ignore-checks', dest='ignore_checks', nargs='+', default=[],
+ type=comma_separated_arg, action='extend',
+ help='only check rules whose id do not match these values'
+ )
+ standard.add_argument(
+ '-c', '--include-checks', dest='include_checks', nargs='+', default=[],
+ type=comma_separated_arg, action='extend',
+ help='include rules whose id match these values'
+ )
+
+ advanced.add_argument(
+ '-o', '--override-spec', dest='override_spec',
+ help='A CloudFormation Spec override file that allows customization'
+ )
+
+ standard.add_argument(
+ '-v', '--version', help='Version of cfn-lint', action='version',
+ version='%(prog)s {version}'.format(version=__version__)
+ )
+ advanced.add_argument(
+ '-u', '--update-specs', help='Update the CloudFormation Specs',
+ action='store_true'
+ )
+ advanced.add_argument(
+ '--update-documentation', help=argparse.SUPPRESS,
+ action='store_true'
+ )
+
+ return parser
+
+
+class TemplateArgs(object):
+ """ Per Template Args """
+ def __init__(self, template_args):
+ self.set_template_args(template_args)
+
+ def get_template_args(self):
+ """ Get Template Args"""
+ return self._template_args
+
+ def set_template_args(self, template):
+ """ Set Template Args"""
+ defaults = {}
+ if isinstance(template, dict):
+ configs = template.get('Metadata', {}).get('cfn-lint', {}).get('config', {})
+
+ if isinstance(configs, dict):
+ for config_name, config_value in configs.items():
+ if config_name == 'ignore_checks':
+ if isinstance(config_value, list):
+ defaults['ignore_checks'] = config_value
+ if config_name == 'regions':
+ if isinstance(config_value, list):
+ defaults['regions'] = config_value
+ if config_name == 'append_rules':
+ if isinstance(config_value, list):
+ defaults['override_spec'] = config_value
+ if config_name == 'override_spec':
+ if isinstance(config_value, (six.string_types, six.text_type)):
+ defaults['override_spec'] = config_value
+ if config_name == 'ignore_bad_template':
+ if isinstance(config_value, bool):
+ defaults['ignore_bad_template'] = config_value
+ if config_name == 'include_checks':
+ if isinstance(config_value, list):
+ defaults['include_checks'] = config_value
+
+ self._template_args = defaults
+
+ template_args = property(get_template_args, set_template_args)
+
+
+class ConfigMixIn(TemplateArgs, CliArgs, ConfigFileArgs, object):
+ """ Mixin for the Configs """
+
+ def __init__(self, cli_args):
+ CliArgs.__init__(self, cli_args)
+ # configure debug as soon as we can
+ configure_logging(self.cli_args.debug)
+ ConfigFileArgs.__init__(self)
+ TemplateArgs.__init__(self, {})
+
+ def _get_argument_value(self, arg_name, is_template, is_config_file):
+ """ Get Argument value """
+ cli_value = getattr(self.cli_args, arg_name)
+ template_value = self.template_args.get(arg_name)
+ file_value = self.file_args.get(arg_name)
+ if cli_value:
+ return cli_value
+ if template_value and is_template:
+ return template_value
+ if file_value and is_config_file:
+ return file_value
+
+ return cli_value
+
+ @property
+ def ignore_checks(self):
+ """ ignore_checks """
+ return self._get_argument_value('ignore_checks', True, True)
+
+ @property
+ def include_checks(self):
+ """ include_checks """
+ return self._get_argument_value('include_checks', True, True)
+
+ @property
+ def regions(self):
+ """ regions """
+ results = self._get_argument_value('regions', True, True)
+ if not results:
+ return ['us-east-1']
+ return results
+
+ @property
+ def ignore_bad_template(self):
+ """ ignore_bad_template """
+ return self._get_argument_value('ignore_bad_template', True, True)
+
+ @property
+ def debug(self):
+ """ debug """
+ return self._get_argument_value('debug', False, False)
+
+ @property
+ def format(self):
+ """ format """
+ return self._get_argument_value('format', False, True)
+
+ @property
+ def templates(self):
+ """ templates """
+ templates_args = self._get_argument_value('templates', False, True)
+ template_alt_args = self._get_argument_value('template_alt', False, False)
+ if templates_args:
+ filenames = templates_args
+ elif template_alt_args:
+ filenames = template_alt_args
+ else:
+ return None
+
+ # if only one is specified convert it to array
+ if isinstance(filenames, six.string_types):
+ filenames = [filenames]
+
+ # handle different shells and Config files
+ # some shells don't expand * and configparser won't expand wildcards
+ all_filenames = []
+ for filename in filenames:
+ add_filenames = glob.glob(filename)
+ # only way to know of the glob failed is to test it
+ # then add the filename as requested
+ if not add_filenames:
+ all_filenames.append(filename)
+ else:
+ all_filenames.extend(add_filenames)
+
+ return all_filenames
+
+ @property
+ def append_rules(self):
+ """ append_rules """
+ return self._get_argument_value('append_rules', False, True)
+
+ @property
+ def override_spec(self):
+ """ override_spec """
+ return self._get_argument_value('override_spec', False, True)
+
+ @property
+ def update_specs(self):
+ """ update_specs """
+ return self._get_argument_value('update_specs', False, False)
+
+ @property
+ def update_documentation(self):
+ """ update_specs """
+ return self._get_argument_value('update_documentation', False, False)
+
+ @property
+ def listrules(self):
+ """ listrules """
+ return self._get_argument_value('listrules', False, False)
diff --git a/src/cfnlint/core.py b/src/cfnlint/core.py
--- a/src/cfnlint/core.py
+++ b/src/cfnlint/core.py
@@ -15,28 +15,21 @@
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
"""
import logging
-import sys
import os
-import argparse
-import six
+from jsonschema.exceptions import ValidationError
from cfnlint import RulesCollection
+import cfnlint.config
import cfnlint.formatters
import cfnlint.decode
import cfnlint.maintenance
from cfnlint.version import __version__
from cfnlint.helpers import REGIONS
+
LOGGER = logging.getLogger('cfnlint')
DEFAULT_RULESDIR = os.path.join(os.path.dirname(__file__), 'rules')
-class ArgumentParser(argparse.ArgumentParser):
- """ Override Argument Parser so we can control the exit code"""
- def error(self, message):
- self.print_help(sys.stderr)
- self.exit(32, '%s: error: %s\n' % (self.prog, message))
-
-
def run_cli(filename, template, rules, regions, override_spec):
"""Process args and run"""
@@ -60,118 +53,6 @@ def get_exit_code(matches):
return exit_code
-def configure_logging(debug_logging):
- """Setup Logging"""
- ch = logging.StreamHandler()
- ch.setLevel(logging.DEBUG)
-
- if debug_logging:
- LOGGER.setLevel(logging.DEBUG)
- else:
- LOGGER.setLevel(logging.INFO)
- log_formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
- ch.setFormatter(log_formatter)
-
- # make sure all other log handlers are removed before adding it back
- for handler in LOGGER.handlers:
- LOGGER.removeHandler(handler)
- LOGGER.addHandler(ch)
-
-
-def comma_separated_arg(string):
- """ Split a comma separated string """
- return string.split(',')
-
-
-def space_separated_arg(string):
- """ Split a comma separated string """
- return string.split(' ')
-
-
-class ExtendAction(argparse.Action):
- """Support argument types that are lists and can be specified multiple times."""
- def __call__(self, parser, namespace, values, option_string=None):
- items = getattr(namespace, self.dest)
- items = [] if items is None else items
- for value in values:
- if isinstance(value, list):
- items.extend(value)
- else:
- items.append(value)
- setattr(namespace, self.dest, items)
-
-
-def create_parser():
- """Do first round of parsing parameters to set options"""
- parser = ArgumentParser(description='CloudFormation Linter')
- parser.register('action', 'extend', ExtendAction)
-
- standard = parser.add_argument_group('Standard')
- advanced = parser.add_argument_group('Advanced / Debugging')
-
- # Alllow the template to be passes as an optional or a positional argument
- standard.add_argument(
- 'templates', metavar='TEMPLATE', nargs='*', help='The CloudFormation template to be linted')
- standard.add_argument(
- '-t', '--template', metavar='TEMPLATE', dest='template_alt',
- help='The CloudFormation template to be linted', nargs='+', default=[], action='extend')
- standard.add_argument(
- '-b', '--ignore-bad-template', help='Ignore failures with Bad template',
- action='store_true'
- )
- advanced.add_argument(
- '-d', '--debug', help='Enable debug logging', action='store_true'
- )
- standard.add_argument(
- '-f', '--format', help='Output Format', choices=['quiet', 'parseable', 'json']
- )
-
- standard.add_argument(
- '-l', '--list-rules', dest='listrules', default=False,
- action='store_true', help='list all the rules'
- )
- standard.add_argument(
- '-r', '--regions', dest='regions', nargs='+', default=[],
- type=comma_separated_arg, action='extend',
- help='list the regions to validate against.'
- )
- advanced.add_argument(
- '-a', '--append-rules', dest='append_rules', nargs='+', default=[],
- type=comma_separated_arg, action='extend',
- help='specify one or more rules directories using '
- 'one or more --append-rules arguments. '
- )
- standard.add_argument(
- '-i', '--ignore-checks', dest='ignore_checks', nargs='+', default=[],
- type=comma_separated_arg, action='extend',
- help='only check rules whose id do not match these values'
- )
- standard.add_argument(
- '-c', '--include-checks', dest='include_checks', nargs='+', default=[],
- type=comma_separated_arg, action='extend',
- help='include rules whose id match these values'
- )
-
- advanced.add_argument(
- '-o', '--override-spec', dest='override_spec',
- help='A CloudFormation Spec override file that allows customization'
- )
-
- standard.add_argument(
- '-v', '--version', help='Version of cfn-lint', action='version',
- version='%(prog)s {version}'.format(version=__version__)
- )
- advanced.add_argument(
- '-u', '--update-specs', help='Update the CloudFormation Specs',
- action='store_true'
- )
- advanced.add_argument(
- '--update-documentation', help=argparse.SUPPRESS,
- action='store_true'
- )
- return parser
-
-
def get_formatter(fmt):
""" Get Formatter"""
formatter = {}
@@ -204,53 +85,43 @@ def get_rules(rulesdir, ignore_rules, include_rules):
return rules
+def configure_logging(debug_logging):
+ """ Backwards compatibility for integrators """
+ LOGGER.debug('Update your integrations to use "cfnlint.config.configure_logging" instead')
+ cfnlint.config.configure_logging(debug_logging)
+
+
def get_args_filenames(cli_args):
""" Get Template Configuration items and set them as default values"""
- parser = create_parser()
- args, _ = parser.parse_known_args(cli_args)
-
- configure_logging(args.debug)
+ try:
+ config = cfnlint.config.ConfigMixIn(cli_args)
+ except ValidationError as e:
+ LOGGER.error('Error parsing config file: %s', str(e))
+ exit(1)
- fmt = args.format
+ fmt = config.format
formatter = get_formatter(fmt)
- # Filename can be speficied as positional or optional argument. Positional
- # is leading
- if args.templates:
- filenames = args.templates
- elif args.template_alt:
- filenames = args.template_alt
- else:
- filenames = None
+ rules = cfnlint.core.get_rules(config.append_rules, config.ignore_checks, config.include_checks)
- # if only one is specified convert it to array
- if isinstance(filenames, six.string_types):
- filenames = [filenames]
-
- # Set default regions if none are specified.
- if not args.regions:
- setattr(args, 'regions', ['us-east-1'])
-
- if args.update_specs:
+ if config.update_specs:
cfnlint.maintenance.update_resource_specs()
exit(0)
- if args.update_documentation:
- # Load ALL rules when generating documentation
- all_rules = cfnlint.core.get_rules([], [], ['E', 'W', 'I'])
- cfnlint.maintenance.update_documentation(all_rules)
+ if config.update_documentation:
+ cfnlint.maintenance.update_documentation(rules)
exit(0)
- if args.listrules:
- print(cfnlint.core.get_rules(args.append_rules, args.ignore_checks, args.include_checks))
+ if config.listrules:
+ print(rules)
exit(0)
- if not filenames:
+ if not config.templates:
# Not specified, print the help
- parser.print_help()
+ config.parser.print_help()
exit(1)
- return(args, filenames, formatter)
+ return(config, config.templates, formatter)
def get_template_rules(filename, args):
@@ -261,46 +132,13 @@ def get_template_rules(filename, args):
if matches:
return(template, [], matches)
- # If the template has cfn-lint Metadata but the same options are set on the command-
- # line, ignore the template's configuration. This works because these are all appends
- # that have default values of empty arrays or none. The only one that really doesn't
- # work is ignore_bad_template but you can't override that back to false at this point.
- for section, values in get_default_args(template).items():
- if not getattr(args, section):
- setattr(args, section, values)
+ args.template_args = template
rules = cfnlint.core.get_rules(args.append_rules, args.ignore_checks, args.include_checks)
return(template, rules, [])
-def get_default_args(template):
- """ Parse and validate default args """
- defaults = {}
- if isinstance(template, dict):
- configs = template.get('Metadata', {}).get('cfn-lint', {}).get('config', {})
-
- if isinstance(configs, dict):
- for config_name, config_value in configs.items():
- if config_name == 'ignore_checks':
- if isinstance(config_value, list):
- defaults['ignore_checks'] = config_value
- if config_name == 'regions':
- if isinstance(config_value, list):
- defaults['regions'] = config_value
- if config_name == 'append_rules':
- if isinstance(config_value, list):
- defaults['override_spec'] = config_value
- if config_name == 'override_spec':
- if isinstance(config_value, (six.string_types, six.text_type)):
- defaults['override_spec'] = config_value
- if config_name == 'ignore_bad_template':
- if isinstance(config_value, bool):
- defaults['ignore_bad_template'] = config_value
-
- return defaults
-
-
def run_checks(filename, template, rules, regions):
"""Run Checks against the template"""
if regions:
|
diff --git a/test/module/config/__init__.py b/test/module/config/__init__.py
new file mode 100644
--- /dev/null
+++ b/test/module/config/__init__.py
@@ -0,0 +1,16 @@
+"""
+ Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ software and associated documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to use, copy, modify,
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
diff --git a/test/module/core/test_arg_parser.py b/test/module/config/test_cli_args.py
similarity index 55%
rename from test/module/core/test_arg_parser.py
rename to test/module/config/test_cli_args.py
--- a/test/module/core/test_arg_parser.py
+++ b/test/module/config/test_cli_args.py
@@ -15,7 +15,8 @@
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
"""
import logging
-import cfnlint.core # pylint: disable=E0401
+from mock import patch, mock_open
+import cfnlint.config # pylint: disable=E0401
from testlib.testcase import BaseTestCase
LOGGER = logging.getLogger('cfnlint')
@@ -31,30 +32,35 @@ def tearDown(self):
def test_create_parser(self):
"""Test success run"""
- parser = cfnlint.core.create_parser()
- args = parser.parse_args([
+ config = cfnlint.config.CliArgs([
'-t', 'test.yaml', '--ignore-bad-template',
'--format', 'quiet', '--debug'])
- self.assertEqual(args.templates, [])
- self.assertEqual(args.template_alt, ['test.yaml'])
- self.assertEqual(args.ignore_bad_template, True)
- self.assertEqual(args.format, 'quiet')
- self.assertEqual(args.debug, True)
+ self.assertEqual(config.cli_args.templates, [])
+ self.assertEqual(config.cli_args.template_alt, ['test.yaml'])
+ self.assertEqual(config.cli_args.ignore_bad_template, True)
+ self.assertEqual(config.cli_args.format, 'quiet')
+ self.assertEqual(config.cli_args.debug, True)
def test_create_parser_default_param(self):
"""Test success run"""
- parser = cfnlint.core.create_parser()
- args = parser.parse_args([
+ config = cfnlint.config.CliArgs([
'--regions', 'us-east-1', 'us-west-2', '--', 'template1.yaml', 'template2.yaml'])
- self.assertEqual(args.templates, ['template1.yaml', 'template2.yaml'])
- self.assertEqual(args.template_alt, [])
- self.assertEqual(args.regions, ['us-east-1', 'us-west-2'])
+ self.assertEqual(config.cli_args.templates, ['template1.yaml', 'template2.yaml'])
+ self.assertEqual(config.cli_args.template_alt, [])
+ self.assertEqual(config.cli_args.regions, ['us-east-1', 'us-west-2'])
def test_create_parser_exend(self):
"""Test success run"""
- parser = cfnlint.core.create_parser()
- args = parser.parse_args(['-t', 'template1.yaml', '-t', 'template2.yaml'])
- self.assertEqual(args.templates, [])
- self.assertEqual(args.template_alt, ['template1.yaml', 'template2.yaml'])
+ config = cfnlint.config.CliArgs(['-t', 'template1.yaml', '-t', 'template2.yaml'])
+ self.assertEqual(config.cli_args.templates, [])
+ self.assertEqual(config.cli_args.template_alt, ['template1.yaml', 'template2.yaml'])
+
+ def test_create_parser_config_file(self):
+ """Test success run"""
+
+ config = cfnlint.config.CliArgs(['--regions', 'us-west-1', '--include-checks', 'I1234', '--', 'template1.yaml'])
+ self.assertEqual(config.cli_args.templates, ['template1.yaml'])
+ self.assertEqual(config.cli_args.include_checks, ['I1234'])
+ self.assertEqual(config.cli_args.regions, ['us-west-1'])
diff --git a/test/module/config/test_config_file_args.py b/test/module/config/test_config_file_args.py
new file mode 100644
--- /dev/null
+++ b/test/module/config/test_config_file_args.py
@@ -0,0 +1,66 @@
+"""
+ Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ software and associated documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to use, copy, modify,
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
+import logging
+from mock import patch, mock_open, Mock
+import jsonschema
+import cfnlint.config # pylint: disable=E0401
+from testlib.testcase import BaseTestCase
+
+
+LOGGER = logging.getLogger('cfnlint')
+
+
+class TestConfigFileArgs(BaseTestCase):
+ """Test ConfigParser Arguments """
+ def tearDown(self):
+ """Setup"""
+ for handler in LOGGER.handlers:
+ LOGGER.removeHandler(handler)
+
+ @patch('cfnlint.config.ConfigFileArgs._read_config', create=True)
+ def test_config_parser_read(self, yaml_mock):
+ """ Testing one file successful """
+ # cfnlintrc_mock.return_value.side_effect = [Mock(return_value=True), Mock(return_value=False)]
+ yaml_mock.side_effect = [
+ {"regions": ["us-west-1"]},
+ {}
+ ]
+ results = cfnlint.config.ConfigFileArgs()
+ self.assertEqual(results.file_args, {'regions': ['us-west-1']})
+
+ @patch('cfnlint.config.ConfigFileArgs._read_config', create=True)
+ def test_config_parser_read_merge(self, yaml_mock):
+ """ test the merge of config """
+
+ yaml_mock.side_effect = [
+ {"regions": ["us-west-1"]},
+ {"regions": ["us-east-1"]}
+ ]
+
+ results = cfnlint.config.ConfigFileArgs()
+ self.assertEqual(results.file_args, {'regions': ['us-east-1']})
+
+ @patch('cfnlint.config.ConfigFileArgs._read_config', create=True)
+ def test_config_parser_fail_on_bad_config(self, yaml_mock):
+ """ test the read call to the config parser is reading two files """
+
+ yaml_mock.side_effect = [
+ {"regions": True}, {}
+ ]
+
+ with self.assertRaises(jsonschema.exceptions.ValidationError):
+ cfnlint.config.ConfigFileArgs()
diff --git a/test/module/config/test_config_mixin.py b/test/module/config/test_config_mixin.py
new file mode 100644
--- /dev/null
+++ b/test/module/config/test_config_mixin.py
@@ -0,0 +1,110 @@
+"""
+ Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ software and associated documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to use, copy, modify,
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
+import logging
+from mock import patch, mock_open
+import cfnlint.config # pylint: disable=E0401
+from testlib.testcase import BaseTestCase
+
+
+LOGGER = logging.getLogger('cfnlint')
+
+
+class TestConfigMixIn(BaseTestCase):
+ """Test ConfigParser Arguments """
+ def tearDown(self):
+ """Setup"""
+ for handler in LOGGER.handlers:
+ LOGGER.removeHandler(handler)
+
+ @patch('cfnlint.config.ConfigFileArgs._read_config', create=True)
+ def test_config_mix_in(self, yaml_mock):
+ """ Test mix in """
+ yaml_mock.side_effect = [
+ {"include_checks": ["I", "I1111"], "regions": ["us-west-2"]},
+ {}
+ ]
+
+ config = cfnlint.config.ConfigMixIn(['--regions', 'us-west-1'])
+ self.assertEqual(config.regions, ['us-west-1'])
+ self.assertEqual(config.include_checks, ['I', 'I1111'])
+
+ @patch('cfnlint.config.ConfigFileArgs._read_config', create=True)
+ def test_config_precedence(self, yaml_mock):
+ """ Test precedence in """
+
+ yaml_mock.side_effect = [
+ {"include_checks": ["I"], "ignore_checks": ["E3001"], "regions": ["us-west-2"]},
+ {}
+ ]
+ config = cfnlint.config.ConfigMixIn(['--include-checks', 'I1234', 'I4321'])
+ config.template_args = {
+ 'Metadata': {
+ 'cfn-lint': {
+ 'config': {
+ 'include_checks': ['I9876'],
+ 'ignore_checks': ['W3001']
+ }
+ }
+ }
+ }
+ # config files wins
+ self.assertEqual(config.regions, ['us-west-2'])
+ # CLI should win
+ self.assertEqual(config.include_checks, ['I1234', 'I4321'])
+ # template file wins over config file
+ self.assertEqual(config.ignore_checks, ['W3001'])
+
+ @patch('cfnlint.config.ConfigFileArgs._read_config', create=True)
+ def test_config_default_region(self, yaml_mock):
+ """ Test precedence in """
+
+ yaml_mock.side_effect = [
+ {},
+ {}
+ ]
+ config = cfnlint.config.ConfigMixIn([])
+
+ # test defaults
+ self.assertEqual(config.regions, ['us-east-1'])
+
+ @patch('cfnlint.config.ConfigFileArgs._read_config', create=True)
+ def test_config_expand_paths(self, yaml_mock):
+ """ Test precedence in """
+
+ yaml_mock.side_effect = [
+ {'templates': ['fixtures/templates/public/*.yaml']},
+ {}
+ ]
+ config = cfnlint.config.ConfigMixIn([])
+
+ # test defaults
+ self.assertEqual(config.templates, [
+ 'fixtures/templates/public/lambda-poller.yaml',
+ 'fixtures/templates/public/rds-cluster.yaml'])
+
+ @patch('cfnlint.config.ConfigFileArgs._read_config', create=True)
+ def test_config_expand_paths_failure(self, yaml_mock):
+ """ Test precedence in """
+
+ yaml_mock.side_effect = [
+ {'templates': ['*.yaml']},
+ {}
+ ]
+ config = cfnlint.config.ConfigMixIn([])
+
+ # test defaults
+ self.assertEqual(config.templates, ['*.yaml'])
diff --git a/test/module/core/test_logging.py b/test/module/config/test_logging.py
similarity index 91%
rename from test/module/core/test_logging.py
rename to test/module/config/test_logging.py
--- a/test/module/core/test_logging.py
+++ b/test/module/config/test_logging.py
@@ -15,7 +15,7 @@
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
"""
import logging
-import cfnlint.core # pylint: disable=E0401
+import cfnlint.config # pylint: disable=E0401
from testlib.testcase import BaseTestCase
LOGGER = logging.getLogger('cfnlint')
@@ -31,13 +31,13 @@ def tearDown(self):
def test_logging_info(self):
"""Test success run"""
- cfnlint.core.configure_logging(False)
+ cfnlint.config.configure_logging(False)
self.assertEqual(logging.INFO, LOGGER.level)
self.assertEqual(len(LOGGER.handlers), 1)
def test_logging_debug(self):
"""Test debug level"""
- cfnlint.core.configure_logging(True)
+ cfnlint.config.configure_logging(True)
self.assertEqual(logging.DEBUG, LOGGER.level)
self.assertEqual(len(LOGGER.handlers), 1)
diff --git a/test/module/config/test_template_args.py b/test/module/config/test_template_args.py
new file mode 100644
--- /dev/null
+++ b/test/module/config/test_template_args.py
@@ -0,0 +1,46 @@
+"""
+ Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ software and associated documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to use, copy, modify,
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
+import logging
+from mock import patch, mock_open
+import cfnlint.config # pylint: disable=E0401
+from testlib.testcase import BaseTestCase
+
+
+LOGGER = logging.getLogger('cfnlint')
+
+
+class TestTempalteArgs(BaseTestCase):
+ """Test ConfigParser Arguments """
+ def tearDown(self):
+ """Setup"""
+ for handler in LOGGER.handlers:
+ LOGGER.removeHandler(handler)
+
+ def test_template_args(self):
+ """ test template args """
+ config = cfnlint.config.TemplateArgs({
+ 'Metadata': {
+ 'cfn-lint': {
+ 'config': {
+ 'regions': ['us-east-1', 'us-east-2'],
+ 'ignore_checks': ['E2530']
+ }
+ }
+ }
+ })
+
+ self.assertEqual(config.template_args['regions'], ['us-east-1', 'us-east-2'])
diff --git a/test/module/core/test_run_cli.py b/test/module/core/test_run_cli.py
--- a/test/module/core/test_run_cli.py
+++ b/test/module/core/test_run_cli.py
@@ -17,6 +17,8 @@
import logging
import cfnlint.core # pylint: disable=E0401
from testlib.testcase import BaseTestCase
+from mock import patch, mock_open
+import cfnlint.config # pylint: disable=E0401
LOGGER = logging.getLogger('cfnlint')
@@ -85,20 +87,19 @@ def test_template_config(self):
(args, _, _,) = cfnlint.core.get_args_filenames([
'--template', filename, '--ignore-bad-template'])
- self.assertEqual(vars(args), {
- 'append_rules': [],
- 'format': None,
- 'ignore_bad_template': True,
- 'ignore_checks': [],
- 'include_checks': [],
- 'listrules': False,
- 'debug': False,
- 'override_spec': None,
- 'regions': ['us-east-1'],
- 'template_alt': ['fixtures/templates/good/core/config_parameters.yaml'],
- 'templates': [],
- 'update_documentation': False,
- 'update_specs': False})
+ self.assertEqual(args.append_rules, [])
+ self.assertEqual(args.append_rules, [])
+ self.assertEqual(args.format, None)
+ self.assertEqual(args.ignore_bad_template, True)
+ self.assertEqual(args.ignore_checks, [])
+ self.assertEqual(args.include_checks, [])
+ self.assertEqual(args.listrules, False)
+ self.assertEqual(args.debug, False)
+ self.assertEqual(args.override_spec, None)
+ self.assertEqual(args.regions, ['us-east-1'])
+ self.assertEqual(args.templates, ['fixtures/templates/good/core/config_parameters.yaml'])
+ self.assertEqual(args.update_documentation, False)
+ self.assertEqual(args.update_specs, False)
def test_positional_template_parameters(self):
"""Test overriding parameters"""
@@ -107,20 +108,18 @@ def test_positional_template_parameters(self):
filename, '--ignore-bad-template',
'--ignore-checks', 'E0000'])
- self.assertEqual(vars(args), {
- 'append_rules': [],
- 'format': None,
- 'ignore_bad_template': True,
- 'ignore_checks': ['E0000'],
- 'include_checks': [],
- 'listrules': False,
- 'debug': False,
- 'override_spec': None,
- 'regions': ['us-east-1'],
- 'template_alt': [],
- 'templates': ['fixtures/templates/good/core/config_parameters.yaml'],
- 'update_documentation': False,
- 'update_specs': False})
+ self.assertEqual(args.append_rules, [])
+ self.assertEqual(args.format, None)
+ self.assertEqual(args.ignore_bad_template, True)
+ self.assertEqual(args.ignore_checks, ['E0000'])
+ self.assertEqual(args.include_checks, [])
+ self.assertEqual(args.listrules, False)
+ self.assertEqual(args.debug, False)
+ self.assertEqual(args.override_spec, None)
+ self.assertEqual(args.regions, ['us-east-1'])
+ self.assertEqual(args.templates, ['fixtures/templates/good/core/config_parameters.yaml'])
+ self.assertEqual(args.update_documentation, False)
+ self.assertEqual(args.update_specs, False)
def test_override_parameters(self):
"""Test overriding parameters"""
@@ -129,20 +128,18 @@ def test_override_parameters(self):
'--template', filename, '--ignore-bad-template',
'--ignore-checks', 'E0000'])
- self.assertEqual(vars(args), {
- 'append_rules': [],
- 'format': None,
- 'ignore_bad_template': True,
- 'ignore_checks': ['E0000'],
- 'include_checks': [],
- 'listrules': False,
- 'debug': False,
- 'override_spec': None,
- 'regions': ['us-east-1'],
- 'template_alt': ['fixtures/templates/good/core/config_parameters.yaml'],
- 'templates': [],
- 'update_documentation': False,
- 'update_specs': False})
+ self.assertEqual(args.append_rules, [])
+ self.assertEqual(args.format, None)
+ self.assertEqual(args.ignore_bad_template, True)
+ self.assertEqual(args.ignore_checks, ['E0000'])
+ self.assertEqual(args.include_checks, [])
+ self.assertEqual(args.listrules, False)
+ self.assertEqual(args.debug, False)
+ self.assertEqual(args.override_spec, None)
+ self.assertEqual(args.regions, ['us-east-1'])
+ self.assertEqual(args.templates, ['fixtures/templates/good/core/config_parameters.yaml'])
+ self.assertEqual(args.update_documentation, False)
+ self.assertEqual(args.update_specs, False)
def test_bad_config(self):
""" Test bad formatting in config"""
@@ -151,17 +148,15 @@ def test_bad_config(self):
(args, _, _) = cfnlint.core.get_args_filenames([
'--template', filename, '--ignore-bad-template'])
- self.assertEqual(vars(args), {
- 'append_rules': [],
- 'format': None,
- 'ignore_bad_template': True,
- 'ignore_checks': [],
- 'include_checks': [],
- 'listrules': False,
- 'debug': False,
- 'override_spec': None,
- 'regions': ['us-east-1'],
- 'template_alt': [filename],
- 'templates': [],
- 'update_documentation': False,
- 'update_specs': False})
+ self.assertEqual(args.append_rules, [])
+ self.assertEqual(args.format, None)
+ self.assertEqual(args.ignore_bad_template, True)
+ self.assertEqual(args.ignore_checks, [])
+ self.assertEqual(args.include_checks, [])
+ self.assertEqual(args.listrules, False)
+ self.assertEqual(args.debug, False)
+ self.assertEqual(args.override_spec, None)
+ self.assertEqual(args.regions, ['us-east-1'])
+ self.assertEqual(args.templates, [filename])
+ self.assertEqual(args.update_documentation, False)
+ self.assertEqual(args.update_specs, False)
|
Flag to lint a directory hierarchy recursively
*cfn-lint version: (`cfn-lint --version`)*
0.8.2
*Description of issue.*
I would like to point the linter at a directory (/template) and have it scan files recursively, including sub-directories.
Please provide as much information as possible:
Currently you can only lint the contents of a directory (/template/*) -- you need to script linting recursively via an external tool. I'd like to scan all templates at once.
|
2018-10-30T16:09:31Z
|
[] |
[] |
|
aws-cloudformation/cfn-lint
| 441 |
aws-cloudformation__cfn-lint-441
|
[
"439"
] |
a47819e25e2c0e03baf87870e1f7f068a3b04b4c
|
diff --git a/src/cfnlint/rules/resources/properties/Properties.py b/src/cfnlint/rules/resources/properties/Properties.py
--- a/src/cfnlint/rules/resources/properties/Properties.py
+++ b/src/cfnlint/rules/resources/properties/Properties.py
@@ -225,7 +225,7 @@ def propertycheck(self, text, proptype, parenttype, resourcename, path, root):
if ref in parameternames:
param_type = self.cfn.template['Parameters'][ref]['Type']
if param_type:
- if not param_type.startswith('List<') and not param_type == 'CommaDelimitedList':
+ if 'List<' not in param_type and '<List' not in param_type and not param_type == 'CommaDelimitedList':
message = 'Property {0} should be of type List or Parameter should ' \
'be a list for resource {1}'
matches.append(
|
diff --git a/test/fixtures/templates/good/resource_properties.yaml b/test/fixtures/templates/good/resource_properties.yaml
--- a/test/fixtures/templates/good/resource_properties.yaml
+++ b/test/fixtures/templates/good/resource_properties.yaml
@@ -218,6 +218,10 @@ Outputs:
- ElasticLoadBalancer
- DNSName
Parameters:
+ azList:
+ Type: "AWS::SSM::Parameter::Value<List<String>>"
+ Description: "The list of AZs from Parameter Store"
+ Default: '/regionSettings/azList'
InstanceType:
AllowedValues:
- t1.micro
@@ -606,3 +610,10 @@ Resources:
DistributionConfig:
Aliases: !Ref Aliases
Enabled: True
+ cacheForumRedisV1:
+ Type: AWS::ElastiCache::CacheCluster
+ Properties:
+ PreferredAvailabilityZones: !Ref azList
+ CacheNodeType: String
+ Engine: String
+ NumCacheNodes: 1
|
E3002 error thrown when using parameter lists
*cfn-lint version cfn-lint 0.8.3
*Description of issue. When using SSM parameters that are type list, the linter doesn't properly recognize them as a list and thows an error E3002
Specifically E3002 Property PreferredAvailabilityZones should be of type List or Parameter should be a list for resource cacheRedisV1
us-east-1.yaml:249:7
The parameter section for this is:
Parameters:
azList:
Type: "AWS::SSM::Parameter::Value<List<String>>"
Description: "The list of AZs from Parameter Store"
Default: '/regionSettings/azList'
The resource is defined as:
cacheForumRedisV1:
Type: AWS::ElastiCache::CacheCluster
Properties:
PreferredAvailabilityZones: !Ref azList
|
2018-11-05T18:07:27Z
|
[] |
[] |
|
aws-cloudformation/cfn-lint
| 446 |
aws-cloudformation__cfn-lint-446
|
[
"445"
] |
878f9d792ad2c37ac22cbbef7d6258306f392bff
|
diff --git a/src/cfnlint/rules/resources/properties/Properties.py b/src/cfnlint/rules/resources/properties/Properties.py
--- a/src/cfnlint/rules/resources/properties/Properties.py
+++ b/src/cfnlint/rules/resources/properties/Properties.py
@@ -267,7 +267,7 @@ def match(self, cfn):
for resourcename, resourcevalue in cfn.get_resources().items():
if 'Properties' in resourcevalue and 'Type' in resourcevalue:
resourcetype = resourcevalue.get('Type', None)
- if resourcetype.startswith('Custom::'):
+ if resourcetype.startswith('Custom::') and resourcetype not in self.resourcetypes:
resourcetype = 'AWS::CloudFormation::CustomResource'
if resourcetype in self.resourcetypes:
path = ['Resources', resourcename, 'Properties']
diff --git a/src/cfnlint/rules/resources/properties/Required.py b/src/cfnlint/rules/resources/properties/Required.py
--- a/src/cfnlint/rules/resources/properties/Required.py
+++ b/src/cfnlint/rules/resources/properties/Required.py
@@ -129,7 +129,7 @@ def match(self, cfn):
for resourcename, resourcevalue in cfn.get_resources().items():
if 'Properties' in resourcevalue and 'Type' in resourcevalue:
resourcetype = resourcevalue['Type']
- if resourcetype.startswith('Custom::'):
+ if resourcetype.startswith('Custom::') and resourcetype not in self.resourcetypes:
resourcetype = 'AWS::CloudFormation::CustomResource'
if resourcetype in self.resourcetypes:
tree = ['Resources', resourcename, 'Properties']
|
diff --git a/test/fixtures/templates/bad/properties_required.yaml b/test/fixtures/templates/bad/properties_required.yaml
--- a/test/fixtures/templates/bad/properties_required.yaml
+++ b/test/fixtures/templates/bad/properties_required.yaml
@@ -733,3 +733,8 @@ Resources:
Properties:
# ServiceToken: arn
StackName: StackName
+ CustomResource3:
+ Type: 'Custom::SpecifiedCustomResource'
+ Properties:
+ ServiceToken: arn
+ # RequiredString: present
diff --git a/test/fixtures/templates/bad/resources/properties/custom.yaml b/test/fixtures/templates/bad/resources/properties/custom.yaml
new file mode 100644
--- /dev/null
+++ b/test/fixtures/templates/bad/resources/properties/custom.yaml
@@ -0,0 +1,8 @@
+Resources:
+ CustomResource4:
+ Type: 'Custom::SpecifiedCustomResource'
+ Properties:
+ ServiceToken: arn
+ # RequiredString: present
+ OptionalBoolean: ['not-a-boolean']
+ NotAProperty: this-is-not-in-the-custom-spec
diff --git a/test/fixtures/templates/good/resource_properties.yaml b/test/fixtures/templates/good/resource_properties.yaml
--- a/test/fixtures/templates/good/resource_properties.yaml
+++ b/test/fixtures/templates/good/resource_properties.yaml
@@ -604,6 +604,12 @@ Resources:
Properties:
ServiceToken: arn
StackName: StackName
+ CustomResource3:
+ Type: 'Custom::SpecifiedCustomResource'
+ Properties:
+ ServiceToken: arn
+ RequiredString: present
+ OptionalBoolean: true
Distribution:
Type: "AWS::CloudFront::Distribution"
Properties:
diff --git a/test/fixtures/templates/good/resources/properties/custom.yaml b/test/fixtures/templates/good/resources/properties/custom.yaml
new file mode 100644
--- /dev/null
+++ b/test/fixtures/templates/good/resources/properties/custom.yaml
@@ -0,0 +1,7 @@
+Resources:
+ CustomResource4:
+ Type: 'Custom::SpecifiedCustomResource'
+ Properties:
+ ServiceToken: arn
+ RequiredString: present
+ OptionalBoolean: true
diff --git a/test/fixtures/templates/override_spec/custom.json b/test/fixtures/templates/override_spec/custom.json
new file mode 100644
--- /dev/null
+++ b/test/fixtures/templates/override_spec/custom.json
@@ -0,0 +1,24 @@
+{
+ "ResourceTypes": {
+ "Custom::SpecifiedCustomResource": {
+ "Properties": {
+ "ServiceToken": {
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "RequiredString": {
+ "PrimitiveType": "String",
+ "Required": true,
+ "UpdateType": "Immutable"
+ },
+ "OptionalBoolean": {
+ "PrimitiveType": "Boolean",
+ "Required": false,
+ "UpdateType": "Mutable"
+ }
+ }
+ }
+ },
+ "ResourceSpecificationVersion": "2.11.0"
+}
diff --git a/test/rules/resources/properties/test_properties.py b/test/rules/resources/properties/test_properties.py
--- a/test/rules/resources/properties/test_properties.py
+++ b/test/rules/resources/properties/test_properties.py
@@ -14,6 +14,8 @@
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
"""
+import cfnlint.helpers
+import json
from cfnlint.rules.resources.properties.Properties import Properties # pylint: disable=E0401
from ... import BaseRuleTestCase
@@ -44,3 +46,22 @@ def test_file_negative_2(self):
def test_file_negative_3(self):
"""Failure test"""
self.helper_file_negative('fixtures/templates/bad/resource_properties.yaml', 4)
+
+
+class TestSpecifiedCustomResourceProperties(TestResourceProperties):
+ """Repeat Resource Properties tests with Custom Resource override spec provided"""
+ def setUp(self):
+ """Setup"""
+ super(TestSpecifiedCustomResourceProperties, self).setUp()
+ # Add a Spec override that specifies the Custom::SpecifiedCustomResource type
+ with open('fixtures/templates/override_spec/custom.json') as fp:
+ custom_spec = json.load(fp)
+ cfnlint.helpers.set_specs(custom_spec)
+ # Reset Spec override after test
+ self.addCleanup(cfnlint.helpers.initialize_specs)
+
+ # ... all TestResourceProperties test cases are re-run with override spec ...
+
+ def test_file_negative_custom(self):
+ """Additional failure test for specified Custom Resource validation"""
+ self.helper_file_negative('fixtures/templates/bad/resources/properties/custom.yaml', 2)
diff --git a/test/rules/resources/properties/test_required.py b/test/rules/resources/properties/test_required.py
--- a/test/rules/resources/properties/test_required.py
+++ b/test/rules/resources/properties/test_required.py
@@ -14,6 +14,8 @@
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
"""
+import cfnlint.helpers
+import json
from cfnlint.rules.resources.properties.Required import Required # pylint: disable=E0401
from ... import BaseRuleTestCase
@@ -36,3 +38,23 @@ def test_file_negative(self):
def test_file_negative_generic(self):
"""Generic Test failure"""
self.helper_file_negative('fixtures/templates/bad/generic.yaml', 7)
+
+
+class TestSpecifiedCustomResourceRequiredProperties(TestResourceConfiguration):
+ """Test Custom Resource Required Properties when override spec is provided"""
+ def setUp(self):
+ """Setup"""
+ super(TestSpecifiedCustomResourceRequiredProperties, self).setUp()
+ # Add a Spec override that specifies the Custom::SpecifiedCustomResource type
+ with open('fixtures/templates/override_spec/custom.json') as fp:
+ custom_spec = json.load(fp)
+ cfnlint.helpers.set_specs(custom_spec)
+ # Reset Spec override after test
+ self.addCleanup(cfnlint.helpers.initialize_specs)
+
+ # ... all TestResourceConfiguration test cases are re-run with override spec ...
+
+ def test_file_negative(self):
+ """Test failure"""
+ # Additional Custom::SpecifiedCustomResource failure detected with custom spec
+ self.helper_file_negative('fixtures/templates/bad/properties_required.yaml', 13)
|
Custom resource types can't be validated with --override-spec
*cfn-lint version:* 0.8.3
*Description of issue:* When using custom resource types and supplying an override spec for the custom type, no property validations seem to be performed.
Example: specify a `Custom::Example` type with a required `ID` property and an optional Boolean `Enabled` property:
test.cf.yaml:
```yaml
Resources:
GoodExample:
Type: Custom::Example
Properties:
ServiceToken: example.arn
ID: good
Enabled: true
BadExample:
Type: Custom::Example
Properties:
ServiceToken: example.arn
# Missing required prop `ID`
Enabled: [invalid, 'must be a boolean']
Wrong: 'this prop is not in the spec'
```
CustomExampleSpec.json:
```json
{
"ResourceTypes": {
"Custom::Example": {
"Properties": {
"ServiceToken": {"PrimitiveType": "String", "Required": true, "UpdateType": "Immutable"},
"ID": {"PrimitiveType": "String", "Required": true, "UpdateType": "Immutable"},
"Enabled": {"PrimitiveType": "Boolean", "Required": false, "UpdateType": "Mutable"}
}
}
},
"ResourceSpecificationVersion": "2.11.0"
}
```
Run: `cfn-lint --override-spec CustomExampleSpec.json test.cf.yaml`
Results: No lint errors or warnings
Expected:
```
E3003 Property ID missing at Resources/BadExample/Properties
test.cf.yaml:11:5
E3002 Property should be of type Boolean not List at Resources/BadExample/Properties/Enabled
test.cf.yaml:14:7
E3002 Invalid Property Resources/BadExample/Properties/Wrong
test.cf.yaml:15:7
```
This is occurring because #295 unconditionally forces any type starting with `Custom::` to `AWS::CloudFormation::CustomResource`, which deliberately allows all properties. For unknown custom types, that's incredibly useful. But if you have a known spec for the custom type, it would be good to use that instead.
I think this can be accomplished by changing `if resourcetype.startswith('Custom::')` to add `... and not resourcetype in self.resourcetypes` in both [Properties.py](https://github.com/awslabs/cfn-python-lint/blob/v0.8.3/src/cfnlint/rules/resources/properties/Properties.py#L270) and [Required.py](https://github.com/awslabs/cfn-python-lint/blob/v0.8.3/src/cfnlint/rules/resources/properties/Required.py#L132).
|
Oooh. I don’t think it ever occurred to us that people could add specs for custom resources, but that makes perfect sense.
Any chance you’d want to take a stab at a PR? If you’re uncomfortable testing against your custom spec, we could certainly gin up a fake one.
|
2018-11-06T22:57:20Z
|
[] |
[] |
aws-cloudformation/cfn-lint
| 448 |
aws-cloudformation__cfn-lint-448
|
[
"444"
] |
4f8dd39166e03b84ba5a8cf7a1859b209a343f22
|
diff --git a/src/cfnlint/rules/resources/properties/Properties.py b/src/cfnlint/rules/resources/properties/Properties.py
--- a/src/cfnlint/rules/resources/properties/Properties.py
+++ b/src/cfnlint/rules/resources/properties/Properties.py
@@ -119,8 +119,26 @@ def check_list_for_condition(self, text, prop, parenttype, resourcename, propspe
message = 'Invalid !If condition specified at %s' % ('/'.join(map(str, path)))
matches.append(RuleMatch(path, message))
else:
- message = 'Property is an object instead of List at %s' % ('/'.join(map(str, path)))
- matches.append(RuleMatch(path, message))
+ # FindInMaps can be lists of objects so skip checking those
+ if sub_key != 'Fn::FindInMap':
+ # if its a GetAtt to a custom resource that custom resource
+ # can return a list of objects so skip.
+ if sub_key == 'Fn::GetAtt':
+ resource_name = None
+ if isinstance(sub_value, list):
+ resource_name = sub_value[0]
+ elif isinstance(sub_value, six.string_types):
+ resource_name = sub_value.split('.')[0]
+ if resource_name:
+ resource_type = self.cfn.template.get('Resources', {}).get(resource_name, {}).get('Type')
+ if not (resource_type == 'AWS::CloudFormation::CustomResource' or resource_type.startswith('Custom::')):
+ message = 'Property is an object instead of List at %s' % ('/'.join(map(str, path)))
+ matches.append(RuleMatch(path, message))
+ else:
+ message = 'Property is an object instead of List at %s' % ('/'.join(map(str, path)))
+ matches.append(RuleMatch(path, message))
+ else:
+ self.logger.debug('Too much logic to handle whats actually in the map "%s" so skipping any more validation.', sub_value)
else:
message = 'Property is an object instead of List at %s' % ('/'.join(map(str, path)))
matches.append(RuleMatch(path, message))
|
diff --git a/test/fixtures/templates/good/resource_properties.yaml b/test/fixtures/templates/good/resource_properties.yaml
--- a/test/fixtures/templates/good/resource_properties.yaml
+++ b/test/fixtures/templates/good/resource_properties.yaml
@@ -623,3 +623,24 @@ Resources:
CacheNodeType: String
Engine: String
NumCacheNodes: 1
+ ### Testing relationships for lists to Custom and Maps
+ Custom:
+ Type: AWS::CloudFormation::CustomResource
+ Properties:
+ ServiceToken: arn.example
+
+ LB1:
+ Type: AWS::ElasticLoadBalancingV2::LoadBalancer
+ Properties:
+ SecurityGroups: !GetAtt Custom.ExampleListOfStrings
+ # LoadBalancerAttributes: {Type: List, ItemType: LoadBalancerAttribute}
+ # should be allowed as the custom resource can return a list of objects
+ LoadBalancerAttributes: !GetAtt Custom.ExampleListOfKeyValuePairs
+ LB2:
+ Type: AWS::ElasticLoadBalancingV2::LoadBalancer
+ Properties:
+ SecurityGroups: !GetAtt Custom.ExampleListOfStrings
+ # LoadBalancerAttributes: {Type: List, ItemType: LoadBalancerAttribute}
+ # Should be allowed because mappings can have a list of objects
+ # This mapping isn't correct but validation of the actually mapping is more difficult
+ LoadBalancerAttributes: !FindInMap [ AWSInstanceType2Arch, c1.medium, Arch ]
|
False positive E3002 when using Fn to set non-primitive list property
*cfn-lint version:* 0.8.3
*Description of issue:* Using a function like `!GetAtt` or `!FindInMap` to set a list property generates an erroneous E3002 "Property is an object instead of List".
This only occurs for properties that are specced to be lists of *non*-primitive types. Properties that expect lists of primitives (e.g., List of String) seem to work fine with functions.
Minimal example (using `!GetAtt`):
```yaml
Resources:
Custom:
Type: AWS::CloudFormation::CustomResource
Properties:
ServiceToken: arn.example
LB:
Type: AWS::ElasticLoadBalancingV2::LoadBalancer
Properties:
# SecurityGroups: {Type: List, PrimitiveItemType: String}
# cfn-lint allows this:
SecurityGroups: !GetAtt Custom.ExampleListOfStrings
# LoadBalancerAttributes: {Type: List, ItemType: LoadBalancerAttribute}
# cfn-lint rejects this with "E3002 Property is an object instead of List":
LoadBalancerAttributes: !GetAtt Custom.ExampleListOfKeyValuePairs
```
Results: E3002 Property is an object instead of List at Resources/LB/Properties/LoadBalancerAttributes
Expected: No errors
Notes:
* The example uses a CustomResource only because that supports arbitrary GetAtts, and LoadBalancer because that has both primitive and non-primitive list properties, making it easy to demonstrate the difference in handling. But it's also reproducible using (e.g.,) `!FindInMap` to set a property to a list of objects.
* Real-world case: setting `AWS::Route53::RecordSetGroup.RecordSets` from a custom resource https://gitlab.com/medmunds/aws-cfn-ses-domain/blob/master/example-usage.cf.yaml#L46. (This template deploys properly, but shows the cfn-lint E3002 error.)
* It looks like #43 added support for `!If` conditions in this context, but didn't cover other functions that might be used for those property values.
|
2018-11-08T12:58:30Z
|
[] |
[] |
|
aws-cloudformation/cfn-lint
| 451 |
aws-cloudformation__cfn-lint-451
|
[
"450"
] |
2b9ab9d1a4818fbbbfe7bca325bbf647d23bc5a6
|
diff --git a/src/cfnlint/rules/resources/route53/RecordSet.py b/src/cfnlint/rules/resources/route53/RecordSet.py
--- a/src/cfnlint/rules/resources/route53/RecordSet.py
+++ b/src/cfnlint/rules/resources/route53/RecordSet.py
@@ -154,7 +154,7 @@ def check_txt_record(self, path, recordset):
if not record.startswith('"') or not record.endswith('"'):
message = 'TXT record ({}) has to be enclosed in double quotation marks (")'
matches.append(RuleMatch(tree, message.format(record)))
- elif len(record) > 255:
+ elif len(record) > 257: # 2 extra characters for start and end double quotation marks
message = 'The length of the TXT record ({}) exceeds the limit (255)'
matches.append(RuleMatch(tree, message.format(len(record))))
|
diff --git a/test/fixtures/templates/bad/route53.yaml b/test/fixtures/templates/bad/route53.yaml
--- a/test/fixtures/templates/bad/route53.yaml
+++ b/test/fixtures/templates/bad/route53.yaml
@@ -21,7 +21,8 @@ Resources:
Type: "TXT"
TTL: "300"
ResourceRecords:
- - "\"google-site-verification=asdfasdfasdfasdfasdfasdfasd123123123786123871623876128376128736123f This is way too longasdfasdfasdfasdfasdfasdfasd123123123786123871623876128376128736123f This is way too longasdfasdfasdfasdfasdfasdfasd123123123786123871623876128376128736123f This is way too long\"" # Too long
+ # 256 "a" characters - too long
+ - '"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"'
- "\"MS=ms123123\""
- "test2" # No quotation
MyARecordSet:
diff --git a/test/fixtures/templates/good/route53.yaml b/test/fixtures/templates/good/route53.yaml
--- a/test/fixtures/templates/good/route53.yaml
+++ b/test/fixtures/templates/good/route53.yaml
@@ -33,6 +33,8 @@ Resources:
TTL: "300"
ResourceRecords:
- "\"MS=ms123123\""
+ # 255 "a" characters + quotes
+ - "\"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\""
MyARecordSet:
Type: "AWS::Route53::RecordSet"
Properties:
|
Length limit check on Route53 TXT records is two characters short
*cfn-lint version: (`cfn-lint --version`)* master
*Description of issue.*
The length limit check on TXT records takes into account the starting and ending double quote characters, but these aren't counted on the API, so cfn-lint is really restricting to 253 characters rather than 255.
```
$ cat test.yml
Resources:
Example:
Type: AWS::Route53::RecordSet
Properties:
HostedZoneId: abc123
Name: example.com.
Type: TXT
TTL: '14400'
ResourceRecords:
# 255 "a" characters within appropriate quotes
- '"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"'
$ cfn-lint test.yml
E3020 The length of the TXT record (257) exceeds the limit (255)
test.yml:9:7
```
|
2018-11-12T10:10:49Z
|
[] |
[] |
|
aws-cloudformation/cfn-lint
| 469 |
aws-cloudformation__cfn-lint-469
|
[
"270"
] |
8e229bfcc15e7727ec1c18376cb3abee5ad3678e
|
diff --git a/src/cfnlint/rules/resources/rds/InstanceSize.py b/src/cfnlint/rules/resources/rds/InstanceSize.py
new file mode 100644
--- /dev/null
+++ b/src/cfnlint/rules/resources/rds/InstanceSize.py
@@ -0,0 +1,94 @@
+"""
+ Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ software and associated documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to use, copy, modify,
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
+import six
+import cfnlint.helpers
+from cfnlint import CloudFormationLintRule
+from cfnlint import RuleMatch
+
+
+class InstanceSize(CloudFormationLintRule):
+ """Check if Resources RDS Instance Size is compatible with the RDS type"""
+ id = 'E3025'
+ shortdesc = 'RDS instance type is compatible with the RDS type'
+ description = 'Check the RDS instance types are supported by the type of RDS engine. ' \
+ 'Only if the values are strings will this be checked.'
+ source_url = 'https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html'
+ tags = ['resources', 'rds']
+
+ valid_instance_types = cfnlint.helpers.load_resources('/data/AdditionalSpecs/RdsProperties.json')
+
+ def get_resources(self, cfn):
+ """ Get resources that can be checked """
+ results = []
+ for resource_name, resource_values in cfn.get_resources('AWS::RDS::DBInstance').items():
+ path = ['Resources', resource_name, 'Properties']
+ properties = resource_values.get('Properties')
+ for prop_safe, prop_path_safe in properties.items_safe(path):
+ engine = prop_safe.get('Engine')
+ inst_class = prop_safe.get('DBInstanceClass')
+ license_model = prop_safe.get('LicenseModel')
+ if isinstance(engine, six.string_types) and isinstance(inst_class, six.string_types):
+ results.append(
+ {
+ 'Engine': engine,
+ 'DBInstanceClass': inst_class,
+ 'Path': prop_path_safe,
+ 'LicenseModel': license_model
+ })
+
+ return results
+
+ def check_db_config(self, properties, region):
+ """ Check db properties """
+ matches = []
+
+ for valid_instance_type in self.valid_instance_types:
+ engine = properties.get('Engine')
+ if engine in valid_instance_type.get('engines'):
+ if region in valid_instance_type.get('regions'):
+ db_license = properties.get('LicenseModel')
+ valid_licenses = valid_instance_type.get('license')
+ db_instance_class = properties.get('DBInstanceClass')
+ valid_instance_types = valid_instance_type.get('instance_types')
+ if db_license and valid_licenses:
+ if db_license not in valid_licenses:
+ self.logger.debug('Skip evaluation based on license not matching.')
+ continue
+ if db_instance_class not in valid_instance_types:
+ if db_license is None:
+ message = 'DBInstanceClass "{0}" is not compatible with engine type "{1}" in region "{2}". Use instance types [{3}]'
+ matches.append(
+ RuleMatch(
+ properties.get('Path') + ['DBInstanceClass'], message.format(
+ db_instance_class, engine, region, ', '.join(map(str, valid_instance_types)))))
+ else:
+ message = 'DBInstanceClass "{0}" is not compatible with engine type "{1}" and LicenseModel "{2}" in region "{3}". Use instance types [{4}]'
+ matches.append(
+ RuleMatch(
+ properties.get('Path') + ['DBInstanceClass'], message.format(
+ db_instance_class, engine, db_license, region, ', '.join(map(str, valid_instance_types)))))
+ return matches
+
+ def match(self, cfn):
+ """Check RDS Resource Instance Sizes"""
+
+ matches = []
+ resources = self.get_resources(cfn)
+ for resource in resources:
+ for region in cfn.regions:
+ matches.extend(self.check_db_config(resource, region))
+ return matches
diff --git a/src/cfnlint/rules/resources/rds/__init__.py b/src/cfnlint/rules/resources/rds/__init__.py
new file mode 100644
--- /dev/null
+++ b/src/cfnlint/rules/resources/rds/__init__.py
@@ -0,0 +1,16 @@
+"""
+ Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ software and associated documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to use, copy, modify,
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
|
diff --git a/test/fixtures/templates/bad/resources/rds/instance_sizes.yaml b/test/fixtures/templates/bad/resources/rds/instance_sizes.yaml
new file mode 100644
--- /dev/null
+++ b/test/fixtures/templates/bad/resources/rds/instance_sizes.yaml
@@ -0,0 +1,29 @@
+---
+AWSTemplateFormatVersion: '2010-09-09'
+Resources:
+ # Fails on invalid instance type
+ DBInstance1:
+ Type: AWS::RDS::DBInstance
+ Properties:
+ DBInstanceClass: db.m4.xlarge
+ Engine: aurora-mysql
+ # invalid Instance Type
+ DBInstance2:
+ Type: AWS::RDS::DBInstance
+ Properties:
+ DBInstanceClass: db.x2e.xlarge
+ Engine: oracle-se2
+ LicenseModel: bring-your-own-license
+ # db.x1e.xlarge isn't for license include
+ DBInstance3:
+ Type: AWS::RDS::DBInstance
+ Properties:
+ DBInstanceClass: db.x1e.xlarge
+ Engine: oracle-se2
+ LicenseModel: license-included
+ # Fails in another region
+ DBInstance4:
+ Type: AWS::RDS::DBInstance
+ Properties:
+ DBInstanceClass: db.m4.xlarge
+ Engine: mysql
diff --git a/test/fixtures/templates/good/resources/rds/instance_sizes.yaml b/test/fixtures/templates/good/resources/rds/instance_sizes.yaml
new file mode 100644
--- /dev/null
+++ b/test/fixtures/templates/good/resources/rds/instance_sizes.yaml
@@ -0,0 +1,34 @@
+---
+AWSTemplateFormatVersion: '2010-09-09'
+Parameters:
+ snapshotid:
+ Type: String
+Conditions:
+ snapshot: !Not [!Equals [!Ref snapshotid, ""]]
+Resources:
+ # Doesnt check if conditions are used
+ DBInstance1:
+ Type: AWS::RDS::DBInstance
+ Properties:
+ DBInstanceClass: db.m4.xlarge
+ Engine: !If [snapshot, !Ref snapshotid, aurora-mysql ]
+ # Doesnt fail on valid instance type
+ DBInstance2:
+ Type: AWS::RDS::DBInstance
+ Properties:
+ DBInstanceClass: db.r4.xlarge
+ Engine: aurora-mysql
+ # Doesnt fail on valid instance type with license
+ DBInstance3:
+ Type: AWS::RDS::DBInstance
+ Properties:
+ DBInstanceClass: db.x1e.xlarge
+ Engine: oracle-se2
+ LicenseModel: bring-your-own-license
+ # Doesnt fail on valid instance type with license
+ DBInstance4:
+ Type: AWS::RDS::DBInstance
+ Properties:
+ DBInstanceClass: db.r4.large
+ Engine: oracle-se2
+ LicenseModel: license-included
diff --git a/test/rules/__init__.py b/test/rules/__init__.py
--- a/test/rules/__init__.py
+++ b/test/rules/__init__.py
@@ -43,10 +43,11 @@ def helper_file_positive_template(self, filename):
good_runner.transform()
self.assertEqual([], good_runner.run())
- def helper_file_negative(self, filename, err_count):
+ def helper_file_negative(self, filename, err_count, regions=None):
"""Failure test"""
+ regions = regions or ['us-east-1']
template = self.load_template(filename)
- bad_runner = Runner(self.collection, filename, template, ['us-east-1'], [])
+ bad_runner = Runner(self.collection, filename, template, regions, [])
bad_runner.transform()
errs = bad_runner.run()
self.assertEqual(err_count, len(errs))
diff --git a/test/rules/resources/rds/__init__.py b/test/rules/resources/rds/__init__.py
new file mode 100644
--- /dev/null
+++ b/test/rules/resources/rds/__init__.py
@@ -0,0 +1,16 @@
+"""
+ Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ software and associated documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to use, copy, modify,
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
diff --git a/test/rules/resources/rds/test_instance_sizes.py b/test/rules/resources/rds/test_instance_sizes.py
new file mode 100644
--- /dev/null
+++ b/test/rules/resources/rds/test_instance_sizes.py
@@ -0,0 +1,37 @@
+"""
+ Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ software and associated documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to use, copy, modify,
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
+from cfnlint.rules.resources.rds.InstanceSize import InstanceSize # pylint: disable=E0401
+from ... import BaseRuleTestCase
+
+
+class TestInstanceSize(BaseRuleTestCase):
+ """Test RDS Instance Size Configuration"""
+ def setUp(self):
+ """Setup"""
+ super(TestInstanceSize, self).setUp()
+ self.collection.register(InstanceSize())
+ self.success_templates = [
+ 'fixtures/templates/good/resources/rds/instance_sizes.yaml'
+ ]
+
+ def test_file_positive(self):
+ """Test Positive"""
+ self.helper_file_positive()
+
+ def test_file_negative_alias(self):
+ """Test failure"""
+ self.helper_file_negative('fixtures/templates/bad/resources/rds/instance_sizes.yaml', 7, ['us-east-1', 'eu-west-3'])
|
RDS instance types
Apologies for another enhancement ticket, but just ran into this problem with a development team.
*Description of issue.*
The team was using:
```
DatabaseDBClusterParameterGroup:
Type: "AWS::RDS::DBClusterParameterGroup"
Properties:
Family: "aurora5.6"
DBInstance1a:
Type: "AWS::RDS::DBInstance"
Properties:
DBInstanceClass: "db.m4.xlarge"
```
Which in CloudFormation will lead to the following eventual error:
> RDS does not support creating a DB instance with the following combination: DBInstanceClass=db.m4.xlarge, Engine=aurora, EngineVersion=5.6.10a, LicenseModel=general-public-license. For supported combinations of instance class and database engine version, see the documentation.
Developer points to https://aws.amazon.com/rds/instance-types/ which has the db.m4.xlarge on it. It's only when you scroll to the absolute bottom that you see, in a smaller font mind you, the following:
> Not every instance type is supported for every database engine, version, edition or region. Please see the DB engine-specific pricing pages for details.
Which leads to https://aws.amazon.com/rds/aurora/pricing/ and that shows only r3/r4 is available for Aurora MySQL.
This seems like something that is easily lintable, provided there is some auxiliary files like the CloudFormation spec files. So is there something similar available for instance types available for these aspects?
|
Was looking into this one tonight. I think we could get those out as a MVP that only does this evaluation if the values of those two are strings. (Not a function)
- We don't have a good conditions solution yet to handle cross resource cross property values when !If is being used.
- REFs to parameters would again cause too much confusion for rule writing
This would be a great check for most people and we can handle improvement requests once they arrive in the issues list.
This is going to be a little tedious. Working on the list of what is acceptable and its based on region, db engine, and license model and sadly there isn't a better way to get the list than via the pricing page (that I've found)
|
2018-11-19T04:52:21Z
|
[] |
[] |
aws-cloudformation/cfn-lint
| 470 |
aws-cloudformation__cfn-lint-470
|
[
"454"
] |
7a74e648a3e8a9b1ca775f092d43d7a1d356f6aa
|
diff --git a/src/cfnlint/rules/resources/route53/RecordSet.py b/src/cfnlint/rules/resources/route53/RecordSet.py
--- a/src/cfnlint/rules/resources/route53/RecordSet.py
+++ b/src/cfnlint/rules/resources/route53/RecordSet.py
@@ -17,9 +17,9 @@
import re
from cfnlint import CloudFormationLintRule
from cfnlint import RuleMatch
-
from cfnlint.helpers import REGEX_IPV4, REGEX_IPV6, REGEX_ALPHANUMERIC
+
class RecordSet(CloudFormationLintRule):
"""Check Route53 Recordset Configuration"""
id = 'E3020'
@@ -45,6 +45,7 @@ class RecordSet(CloudFormationLintRule):
]
REGEX_CNAME = re.compile(r'^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9])(.)$')
+ REGEX_TXT = re.compile(r'^("[^"]{1,255}" *)*"[^"]{1,255}"$')
def check_a_record(self, path, recordset):
"""Check A record Configuration"""
@@ -150,13 +151,15 @@ def check_txt_record(self, path, recordset):
for index, record in enumerate(resource_records):
tree = path[:] + ['ResourceRecords', index]
- if not isinstance(record, dict):
- if not record.startswith('"') or not record.endswith('"'):
- message = 'TXT record ({}) has to be enclosed in double quotation marks (")'
- matches.append(RuleMatch(tree, message.format(record)))
- elif len(record) > 257: # 2 extra characters for start and end double quotation marks
- message = 'The length of the TXT record ({}) exceeds the limit (255)'
- matches.append(RuleMatch(tree, message.format(len(record))))
+ if not isinstance(record, dict) and not re.match(self.REGEX_TXT, record):
+ message = 'TXT record is not structured as one or more items up to 255 characters ' \
+ 'enclosed in double quotation marks at {0}'
+ matches.append(RuleMatch(
+ tree,
+ (
+ message.format('/'.join(map(str, tree)))
+ ),
+ ))
return matches
|
diff --git a/test/fixtures/templates/bad/route53.yaml b/test/fixtures/templates/bad/route53.yaml
--- a/test/fixtures/templates/bad/route53.yaml
+++ b/test/fixtures/templates/bad/route53.yaml
@@ -21,8 +21,8 @@ Resources:
Type: "TXT"
TTL: "300"
ResourceRecords:
- # 256 "a" characters - too long
- - '"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"'
+ - '"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"' # 256 "a" characters - too long
+ - '"a""bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"' # 256 "b" characters in a second record - too long
- "\"MS=ms123123\""
- "test2" # No quotation
MyARecordSet:
diff --git a/test/fixtures/templates/good/route53.yaml b/test/fixtures/templates/good/route53.yaml
--- a/test/fixtures/templates/good/route53.yaml
+++ b/test/fixtures/templates/good/route53.yaml
@@ -33,8 +33,10 @@ Resources:
TTL: "300"
ResourceRecords:
- "\"MS=ms123123\""
+ - "\"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"" # 255 "a" characters
# 255 "a" characters + quotes
- - "\"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\""
+ - "\"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"\"bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\"" # 255 "a" characters and 255 "b" characters
+ - "\"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"\"bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\" \"ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc\"" # 255 "a" characters and 255 "b" characters and 255 "c" characters with a space between b and c
MyARecordSet:
Type: "AWS::Route53::RecordSet"
Properties:
diff --git a/test/rules/resources/route53/test_recordsets.py b/test/rules/resources/route53/test_recordsets.py
--- a/test/rules/resources/route53/test_recordsets.py
+++ b/test/rules/resources/route53/test_recordsets.py
@@ -34,4 +34,4 @@ def test_file_positive(self):
def test_file_negative_alias(self):
"""Test failure"""
- self.helper_file_negative('fixtures/templates/bad/route53.yaml', 24)
+ self.helper_file_negative('fixtures/templates/bad/route53.yaml', 25)
|
Length limit check on Route53 TXT records doesn't allow multiple values
*cfn-lint version: (`cfn-lint --version`)* master
*Description of issue.*
The length limit check on TXT records is not quite right. Multiple values of up to 255 characters *are* allowed, separated by spaces.
This valid template is thus categorized as invalid:
```
$ cat test.yml
Resources:
Example:
Type: AWS::Route53::RecordSet
Properties:
HostedZoneId: abc123
Name: example.com.
Type: TXT
TTL: '14400'
ResourceRecords:
# 255 "a" characters within appropriate quotes, then a "b"
- '"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" "b"'
$ cfn-lint test.yml
E3020 The length of the TXT record (261) exceeds the limit (255)
test.yml:9:7
```
Verified it's valid by creating an equivalent record on the console.
|
FWIW this doesn't seem to be documented: https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/ResourceRecordTypes.html#TXTFormat
I followed the documentation with creating the rules... If you've validated it in the console we need to fix this.
Do you create a PR @adamchainz or do you want me to change it? It's also wise to create a PR at the documentation (they actually process those I can tell based on experience 😉 )
I've had a stab at this but don't have any more time right now. One of the tests is unexpectedly passing. Maybe I'll pick it up later or someone else can:
```patch
diff --git a/src/cfnlint/rules/resources/route53/RecordSet.py b/src/cfnlint/rules/resources/route53/RecordSet.py
index 4b1f5f3..7330769 100644
--- a/src/cfnlint/rules/resources/route53/RecordSet.py
+++ b/src/cfnlint/rules/resources/route53/RecordSet.py
@@ -45,6 +45,7 @@ class RecordSet(CloudFormationLintRule):
]
REGEX_CNAME = re.compile(r'^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9])(.)$')
+ REGEX_TXT = re.compile(r'^("[^"]{1,255}" *)*"[^"]{1,255}"$')
def check_a_record(self, path, recordset):
"""Check A record Configuration"""
@@ -150,13 +151,14 @@ class RecordSet(CloudFormationLintRule):
for index, record in enumerate(resource_records):
tree = path[:] + ['ResourceRecords', index]
- if not isinstance(record, dict):
- if not record.startswith('"') or not record.endswith('"'):
- message = 'TXT record ({}) has to be enclosed in double quotation marks (")'
- matches.append(RuleMatch(tree, message.format(record)))
- elif len(record) > 257: # 2 extra characters for start and end double quotation marks
- message = 'The length of the TXT record ({}) exceeds the limit (255)'
- matches.append(RuleMatch(tree, message.format(len(record))))
+ if not isinstance(record, dict) and not re.match(self.REGEX_TXT, record):
+ matches.append(RuleMatch(
+ tree,
+ (
+ 'TXT record is not structured as one or more items up to 255 characters '
+ + 'enclosed in double quotation marks.'
+ ),
+ ))
return matches
diff --git a/test/fixtures/templates/bad/route53.yaml b/test/fixtures/templates/bad/route53.yaml
index e64f824..0596363 100644
--- a/test/fixtures/templates/bad/route53.yaml
+++ b/test/fixtures/templates/bad/route53.yaml
@@ -21,8 +21,8 @@ Resources:
Type: "TXT"
TTL: "300"
ResourceRecords:
- # 256 "a" characters - too long
- - '"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"'
+ - '"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"' # 256 "a" characters - too long
+ - '"a""bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"' # 256 "b" characters in a second record - too long
- "\"MS=ms123123\""
- "test2" # No quotation
MyARecordSet:
diff --git a/test/fixtures/templates/good/route53.yaml b/test/fixtures/templates/good/route53.yaml
index 9b2266c..f112c53 100644
--- a/test/fixtures/templates/good/route53.yaml
+++ b/test/fixtures/templates/good/route53.yaml
@@ -33,8 +33,9 @@ Resources:
TTL: "300"
ResourceRecords:
- "\"MS=ms123123\""
+ - "\"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"" # 255 "a" characters
# 255 "a" characters + quotes
- - "\"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\""
+ - "\"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"\"bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\"" # 255 "a" characters and 255 "b" characters
MyARecordSet:
Type: "AWS::Route53::RecordSet"
Properties:
```
|
2018-11-19T14:33:07Z
|
[] |
[] |
aws-cloudformation/cfn-lint
| 477 |
aws-cloudformation__cfn-lint-477
|
[
"475"
] |
96d0c8d59aedecedb71cf348697886b5d3beb277
|
diff --git a/src/cfnlint/rules/resources/stepfunctions/StateMachine.py b/src/cfnlint/rules/resources/stepfunctions/StateMachine.py
--- a/src/cfnlint/rules/resources/stepfunctions/StateMachine.py
+++ b/src/cfnlint/rules/resources/stepfunctions/StateMachine.py
@@ -122,15 +122,19 @@ def _check_definition_json(self, def_json, path):
matches.extend(self._check_state_json(state_value, state_name, path))
return matches
- def check_value(self, value, path):
+ def check_value(self, value, path, fail_on_loads=True):
"""Check Definition Value"""
matches = []
try:
def_json = json.loads(value)
# pylint: disable=W0703
except Exception as err:
- message = 'State Machine Definition needs to be formatted as JSON. Error %s' % err
- matches.append(RuleMatch(path, message))
+ if fail_on_loads:
+ message = 'State Machine Definition needs to be formatted as JSON. Error %s' % err
+ matches.append(RuleMatch(path, message))
+ return matches
+
+ self.logger.debug('State Machine definition could not be parsed. Skipping')
return matches
matches.extend(self._check_definition_json(def_json, path))
@@ -140,9 +144,9 @@ def check_sub(self, value, path):
"""Check Sub Object"""
matches = []
if isinstance(value, list):
- matches.extend(self.check_value(value[0], path))
+ matches.extend(self.check_value(value[0], path, False))
elif isinstance(value, six.string_types):
- matches.extend(self.check_value(value, path))
+ matches.extend(self.check_value(value, path, False))
return matches
|
diff --git a/test/fixtures/templates/good/resources/stepfunctions/state_machine.yaml b/test/fixtures/templates/good/resources/stepfunctions/state_machine.yaml
--- a/test/fixtures/templates/good/resources/stepfunctions/state_machine.yaml
+++ b/test/fixtures/templates/good/resources/stepfunctions/state_machine.yaml
@@ -1,5 +1,8 @@
AWSTemplateFormatVersion: '2010-09-09'
Description: An example template for a Step Functions state machine.
+Parameters:
+ timeout:
+ Type: Number
Resources:
MyStateMachine:
Type: AWS::StepFunctions::StateMachine
@@ -30,3 +33,41 @@ Resources:
}
}
RoleArn: arn:aws:iam::111122223333:role/service-role/StatesExecutionRole-us-east-1
+ # doesn't fail on sub that can't be parsed
+ MyStateMachine2:
+ Type: AWS::StepFunctions::StateMachine
+ Properties:
+ StateMachineName: HelloWorld-StateMachine
+ DefinitionString:
+ Fn::Sub:
+ - |
+ {
+ "StartAt": "HelloWorld",
+ "States": {
+ "HelloWorld": {
+ "Type": "Task",
+ "Resource": "arn:aws:lambda:us-east-1:111122223333:function:HelloFunction",
+ "Next": "CreatePublishedRequest"
+ },
+ "CreatePublishedRequest": {
+ "Type": "Task",
+ "Resource": "{$createPublishedRequest}",
+ "ResultPath":"$.publishedRequest",
+ "OutputPath":"$.publishedRequest",
+ "Next": "PutRequest"
+ },
+ "Sleep": {
+ "Type": "Wait",
+ "Seconds": ${TestParam},
+ "Next": "Stop"
+ },
+ "PutRequest": {
+ "Type": "Task",
+ "Resource": "{$updateKey}",
+ "ResultPath":"$.response",
+ "End": true
+ }
+ }
+ }
+ - TestParam: !Ref timeout
+ RoleArn: arn:aws:iam::111122223333:role/service-role/StatesExecutionRole-us-east-1
|
E2532 - StateMachine Json not parsing when using multi param !Sub
**cfn-lint version:**
```
$ cfn-lint --version
cfn-lint 0.9.1
```
**Description of issue:**
When using `!Sub` with 2 parameters as defined [here](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html) then cfn-lint chokes on the parameter being subbed in because technically this is not valid json. This is valid cloud formation though.
**Here is basic example showing issue:**
```yaml
AWSTemplateFormatVersion: 2010-09-09
Transform: AWS::Serverless-2016-10-31
Parameters:
TestParam:
Type: String
Resources:
StateMachine:
Type: AWS::StepFunctions::StateMachine
Properties:
StateMachineName: TestStatemachine
RoleArn: arn:aws:iam::123456789012:role/test-role
DefinitionString:
!Sub
- |
{
"StartAt": "FlowChoice",
"States": {
"FlowChoice": {
"Type": "Choice",
"Choices": [
{
"Variable": "$.sleep",
"StringEquals": "true",
"Next": "Sleep"
},
{
"Variable": "$.sleep",
"StringEquals": "false",
"Next": "Stop"
}
],
"Default": "Stop"
},
"Sleep": {
"Type": "Wait",
"Seconds": ${TestParam}, # <--- Not handled!
"Next": "Stop"
},
"Stop": {
"Type": "Succeed"
}
}
}
- {TestParam: !Ref TestParam}
```
|
Agreed. Should be able to fix this quickly. Thanks!
|
2018-11-20T22:08:30Z
|
[] |
[] |
aws-cloudformation/cfn-lint
| 484 |
aws-cloudformation__cfn-lint-484
|
[
"345"
] |
0bad6a0102c7545b03d87398538d578b5b2de6c7
|
diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -59,7 +59,8 @@ def get_version(filename):
'aws-sam-translator>=1.8.0',
'jsonpatch',
'jsonschema~=2.6',
- 'pathlib2>=2.3.0;python_version<"3.4"'
+ 'pathlib2>=2.3.0;python_version<"3.4"',
+ 'regex>=2018.11.07'
],
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
entry_points={
diff --git a/src/cfnlint/rules/resources/iam/ManagedPolicyDescription.py b/src/cfnlint/rules/resources/iam/ManagedPolicyDescription.py
new file mode 100644
--- /dev/null
+++ b/src/cfnlint/rules/resources/iam/ManagedPolicyDescription.py
@@ -0,0 +1,58 @@
+"""
+ Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ software and associated documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to use, copy, modify,
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
+import regex
+from cfnlint import CloudFormationLintRule
+from cfnlint import RuleMatch
+
+
+class ManagedPolicyDescription(CloudFormationLintRule):
+ """Check if IAM Policy Description is syntax correct"""
+ id = 'E3507'
+ shortdesc = 'Check if IAM Managed Policy description follows supported regex'
+ description = 'IAM Managed Policy description much comply with the regex [\\p{L}\\p{M}\\p{Z}\\p{S}\\p{N}\\p{P}]*'
+ source_url = 'https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html'
+ tags = ['properties', 'iam']
+
+ def __init__(self):
+ """Init"""
+ super(ManagedPolicyDescription, self).__init__()
+ self.resource_property_types.append('AWS::IAM::ManagedPolicy')
+
+ def check_value(self, value, path):
+ """Check the value"""
+ regex_string = r'^[\p{L}\p{M}\p{Z}\p{S}\p{N}\p{P}]+$'
+ r = regex.compile(regex_string)
+ if not r.match(value):
+ message = 'ManagedPolicy Description needs to follow regex pattern "{0}"'
+ return [
+ RuleMatch(path[:], message.format(regex_string))
+ ]
+
+ return []
+
+ def match_resource_properties(self, properties, _, path, cfn):
+ """Check CloudFormation Properties"""
+ matches = []
+
+ matches.extend(
+ cfn.check_value(
+ obj=properties, key='Description',
+ path=path[:],
+ check_value=self.check_value
+ ))
+
+ return matches
|
diff --git a/test/fixtures/templates/bad/resources/iam/managed_policy_description.yaml b/test/fixtures/templates/bad/resources/iam/managed_policy_description.yaml
new file mode 100644
--- /dev/null
+++ b/test/fixtures/templates/bad/resources/iam/managed_policy_description.yaml
@@ -0,0 +1,17 @@
+---
+AWSTemplateFormatVersion: "2010-09-09"
+Resources:
+ SomeManagedPolicy:
+ Type: "AWS::IAM::ManagedPolicy"
+ Properties:
+ Description: |
+ Example1
+ Managed Policy
+ PolicyDocument:
+ Version: "2012-10-17"
+ Statement:
+ - Effect: "Allow"
+ Action:
+ - "s3:ListBucket"
+ - "s3:GetObject"
+ Resource: '*'
diff --git a/test/fixtures/templates/good/resources/iam/managed_policy_description.yaml b/test/fixtures/templates/good/resources/iam/managed_policy_description.yaml
new file mode 100644
--- /dev/null
+++ b/test/fixtures/templates/good/resources/iam/managed_policy_description.yaml
@@ -0,0 +1,16 @@
+---
+AWSTemplateFormatVersion: "2010-09-09"
+Resources:
+ SomeManagedPolicy:
+ Type: "AWS::IAM::ManagedPolicy"
+ Properties:
+ Description: |
+ Example1? Managed Policy
+ PolicyDocument:
+ Version: "2012-10-17"
+ Statement:
+ - Effect: "Allow"
+ Action:
+ - "s3:ListBucket"
+ - "s3:GetObject"
+ Resource: '*'
diff --git a/test/rules/resources/iam/test_iam_managed_policy_description.py b/test/rules/resources/iam/test_iam_managed_policy_description.py
new file mode 100644
--- /dev/null
+++ b/test/rules/resources/iam/test_iam_managed_policy_description.py
@@ -0,0 +1,37 @@
+"""
+ Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ software and associated documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to use, copy, modify,
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
+from cfnlint.rules.resources.iam.ManagedPolicyDescription import ManagedPolicyDescription # pylint: disable=E0401
+from ... import BaseRuleTestCase
+
+
+class TestManagedPolicyDescription(BaseRuleTestCase):
+ """Test Managed Policy Description"""
+ def setUp(self):
+ """Setup"""
+ super(TestManagedPolicyDescription, self).setUp()
+ self.collection.register(ManagedPolicyDescription())
+ self.success_templates = [
+ 'fixtures/templates/good/resources/iam/managed_policy_description.yaml'
+ ]
+
+ def test_file_positive(self):
+ """Test Positive"""
+ self.helper_file_positive()
+
+ def test_file_negative(self):
+ """Test failure"""
+ self.helper_file_negative('fixtures/templates/bad/resources/iam/managed_policy_description.yaml', 1)
|
Validate ManagedPolicy Description
*cfn-lint version: (`cfn-lint --version`)* 0.7.1
*Description of issue.*
A recent deployment of a template with an IAM policy failed because a newline was accidentally included in the description, and IAM doesn't like that. Got this error:
> AWS::IAM::ManagedPolicy MyPolicy CREATE_FAILED: ... 'description' failed to satisfy constraint: Member must satisfy regular expression pattern: [\p{L}\p{M}\p{Z}\p{S}\p{N}\p{P}]* ...
This also isn't documented [on CloudFormation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html#cfn-iam-managedpolicy-description) or in the [IAM API](https://docs.aws.amazon.com/IAM/latest/APIReference/API_CreatePolicy.html).
|
I'm trying to convert this regex into something we could use. Looks like \p{Z} is for whitespace. What I can't tell if that also includes new lines as it looks to be a subset of this one.
@cmmeyer looks like to make this easier on ourselves we should convert to the regex package. https://pypi.org/project/regex/ it comes with easy unicode character matching and makes writing this rule a lot easier. It looks like it can drop in replace the current 're' but it would be a new dependency.
|
2018-11-21T21:28:11Z
|
[] |
[] |
aws-cloudformation/cfn-lint
| 505 |
aws-cloudformation__cfn-lint-505
|
[
"504"
] |
f18f5b3e067e1747c7b5c16f30b1ca05860011a7
|
diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -59,8 +59,7 @@ def get_version(filename):
'aws-sam-translator>=1.8.0',
'jsonpatch',
'jsonschema~=2.6',
- 'pathlib2>=2.3.0;python_version<"3.4"',
- 'regex>=2018.11.07'
+ 'pathlib2>=2.3.0;python_version<"3.4"'
],
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
entry_points={
diff --git a/src/cfnlint/rules/resources/iam/ManagedPolicyDescription.py b/src/cfnlint/rules/resources/iam/ManagedPolicyDescription.py
deleted file mode 100644
--- a/src/cfnlint/rules/resources/iam/ManagedPolicyDescription.py
+++ /dev/null
@@ -1,58 +0,0 @@
-"""
- Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
-
- Permission is hereby granted, free of charge, to any person obtaining a copy of this
- software and associated documentation files (the "Software"), to deal in the Software
- without restriction, including without limitation the rights to use, copy, modify,
- merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
- permit persons to whom the Software is furnished to do so.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
- INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
- PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
- HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-"""
-import regex
-from cfnlint import CloudFormationLintRule
-from cfnlint import RuleMatch
-
-
-class ManagedPolicyDescription(CloudFormationLintRule):
- """Check if IAM Policy Description is syntax correct"""
- id = 'E3507'
- shortdesc = 'Check if IAM Managed Policy description follows supported regex'
- description = 'IAM Managed Policy description much comply with the regex [\\p{L}\\p{M}\\p{Z}\\p{S}\\p{N}\\p{P}]*'
- source_url = 'https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html'
- tags = ['properties', 'iam']
-
- def __init__(self):
- """Init"""
- super(ManagedPolicyDescription, self).__init__()
- self.resource_property_types.append('AWS::IAM::ManagedPolicy')
-
- def check_value(self, value, path):
- """Check the value"""
- regex_string = r'^[\p{L}\p{M}\p{Z}\p{S}\p{N}\p{P}]+$'
- r = regex.compile(regex_string)
- if not r.match(value):
- message = 'ManagedPolicy Description needs to follow regex pattern "{0}"'
- return [
- RuleMatch(path[:], message.format(regex_string))
- ]
-
- return []
-
- def match_resource_properties(self, properties, _, path, cfn):
- """Check CloudFormation Properties"""
- matches = []
-
- matches.extend(
- cfn.check_value(
- obj=properties, key='Description',
- path=path[:],
- check_value=self.check_value
- ))
-
- return matches
|
diff --git a/test/rules/resources/iam/test_iam_managed_policy_description.py b/test/rules/resources/iam/test_iam_managed_policy_description.py
deleted file mode 100644
--- a/test/rules/resources/iam/test_iam_managed_policy_description.py
+++ /dev/null
@@ -1,37 +0,0 @@
-"""
- Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
-
- Permission is hereby granted, free of charge, to any person obtaining a copy of this
- software and associated documentation files (the "Software"), to deal in the Software
- without restriction, including without limitation the rights to use, copy, modify,
- merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
- permit persons to whom the Software is furnished to do so.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
- INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
- PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
- HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-"""
-from cfnlint.rules.resources.iam.ManagedPolicyDescription import ManagedPolicyDescription # pylint: disable=E0401
-from ... import BaseRuleTestCase
-
-
-class TestManagedPolicyDescription(BaseRuleTestCase):
- """Test Managed Policy Description"""
- def setUp(self):
- """Setup"""
- super(TestManagedPolicyDescription, self).setUp()
- self.collection.register(ManagedPolicyDescription())
- self.success_templates = [
- 'fixtures/templates/good/resources/iam/managed_policy_description.yaml'
- ]
-
- def test_file_positive(self):
- """Test Positive"""
- self.helper_file_positive()
-
- def test_file_negative(self):
- """Test failure"""
- self.helper_file_negative('fixtures/templates/bad/resources/iam/managed_policy_description.yaml', 1)
|
Pip install fails for 0.10.0
*cfn-lint version: (`cfn-lint --version`)*
0.10.0
*Description of issue.*
My pipeline started failing when installing the latest version via pip.
example:
`pip install cfn-lint==0.10.0`
```
[...]
.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.7
copying regex_3/regex.py -> build/lib.linux-x86_64-3.7
copying regex_3/_regex_core.py -> build/lib.linux-x86_64-3.7
copying regex_3/test_regex.py -> build/lib.linux-x86_64-3.7
running build_ext
building '_regex' extension
creating build/temp.linux-x86_64-3.7
creating build/temp.linux-x86_64-3.7/regex_3
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -I/usr/local/include/python3.7m -c regex_3/_regex.c -o build/temp.linux-x86_64-3.7/regex_3/_regex.o
unable to execute 'gcc': No such file or directory
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/usr/local/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-r143_0dz/regex/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-467tj48_/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-r143_0dz/regex/
```
Version 0.9.2 works well.
Replicate with:
`docker run --rm -it python:3.7.1-alpine3.8 /bin/sh -c 'pip install cfn-lint==0.10.0'`
|
Looking into it. Thanks for reporting this.
Same here. Found its defo caused by the introduction of the regex dependency with Pull Request #484.
Basically you need gcc available on the PATH now. Your call if thats fine, but I would have enjoyed a mention of this in the release notes :-)
|
2018-12-04T18:20:41Z
|
[] |
[] |
aws-cloudformation/cfn-lint
| 515 |
aws-cloudformation__cfn-lint-515
|
[
"513"
] |
f97005341477ac703ca6088fb8a9052b73493c41
|
diff --git a/src/cfnlint/rules/parameters/Cidr.py b/src/cfnlint/rules/parameters/Cidr.py
--- a/src/cfnlint/rules/parameters/Cidr.py
+++ b/src/cfnlint/rules/parameters/Cidr.py
@@ -62,14 +62,16 @@ def check_cidr_ref(self, value, path, parameters, resources):
if value in parameters:
parameter = parameters.get(value, {})
+ parameter_type = parameter.get('Type')
allowed_pattern = parameter.get('AllowedPattern', None)
allowed_values = parameter.get('AllowedValues', None)
- if not allowed_pattern and not allowed_values:
- param_path = ['Parameters', value]
- full_param_path = '/'.join(param_path)
- message = 'AllowedPattern and/or AllowedValues for Parameter should be specified at {1}. ' \
- 'Example for AllowedPattern: "{0}"'
- matches.append(RuleMatch(param_path, message.format(REGEX_CIDR.pattern, full_param_path)))
+ if parameter_type not in ['AWS::SSM::Parameter::Value<String>']:
+ if not allowed_pattern and not allowed_values:
+ param_path = ['Parameters', value]
+ full_param_path = '/'.join(param_path)
+ message = 'AllowedPattern and/or AllowedValues for Parameter should be specified at {1}. ' \
+ 'Example for AllowedPattern: "{0}"'
+ matches.append(RuleMatch(param_path, message.format(REGEX_CIDR.pattern, full_param_path)))
return matches
diff --git a/src/cfnlint/rules/resources/ectwo/Vpc.py b/src/cfnlint/rules/resources/ectwo/Vpc.py
--- a/src/cfnlint/rules/resources/ectwo/Vpc.py
+++ b/src/cfnlint/rules/resources/ectwo/Vpc.py
@@ -25,7 +25,8 @@ class Vpc(CloudFormationLintRule):
"""Check if EC2 VPC Resource Properties"""
id = 'E2505'
shortdesc = 'Resource EC2 VPC Properties'
- description = 'See if EC2 VPC Properties are set correctly'
+ description = 'Check if the default tenancy is default or dedicated and ' \
+ 'that CidrBlock is a valid CIDR range.'
source_url = 'https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpc.html'
tags = ['properties', 'vpc']
@@ -42,7 +43,8 @@ def check_vpc_ref(self, value, path, parameters, resources):
"""Check ref for VPC"""
matches = []
allowed_types = [
- 'String'
+ 'String',
+ 'AWS::SSM::Parameter::Value<String>',
]
if value in resources:
message = 'DefaultTenancy can\'t use a Ref to a resource for {0}'
@@ -52,7 +54,7 @@ def check_vpc_ref(self, value, path, parameters, resources):
parameter_type = parameter.get('Type', None)
if parameter_type not in allowed_types:
path_error = ['Parameters', value, 'Type']
- message = 'Security Group Id Parameter should be of type [{0}] for {1}'
+ message = 'DefaultTenancy parameter should be of type [{0}] for {1}'
matches.append(
RuleMatch(
path_error,
@@ -75,7 +77,8 @@ def check_cidr_ref(self, value, path, parameters, resources):
matches = []
allowed_types = [
- 'String'
+ 'String',
+ 'AWS::SSM::Parameter::Value<String>',
]
if value in resources:
resource_obj = resources.get(value, {})
@@ -89,7 +92,7 @@ def check_cidr_ref(self, value, path, parameters, resources):
parameter_type = parameter.get('Type', None)
if parameter_type not in allowed_types:
path_error = ['Parameters', value, 'Type']
- message = 'Security Group Id Parameter should be of type [{0}] for {1}'
+ message = 'CidrBlock parameter should be of type [{0}] for {1}'
matches.append(
RuleMatch(
path_error,
|
diff --git a/test/fixtures/templates/good/properties_ec2_vpc.yaml b/test/fixtures/templates/good/properties_ec2_vpc.yaml
--- a/test/fixtures/templates/good/properties_ec2_vpc.yaml
+++ b/test/fixtures/templates/good/properties_ec2_vpc.yaml
@@ -17,6 +17,9 @@ Parameters:
AllowedValues:
- '127.0.0.1/32'
- '8.8.8.8/32'
+ cidrBlockSsm:
+ Type: AWS::SSM::Parameter::Value<String>
+ Default: /Infra/VpcCidr
vpcTenancy:
Type: String
AllowedValues:
@@ -43,6 +46,11 @@ Resources:
Properties:
InstanceTenancy: !Ref vpcTenancy
CidrBlock: !Ref cidrBlockAllowedPatternValues
+ myVpc5:
+ Type: AWS::EC2::VPC
+ Properties:
+ InstanceTenancy: dedicated
+ CidrBlock: !Ref cidrBlockSsm
mySubnet21:
Type: AWS::EC2::Subnet
Properties:
diff --git a/test/rules/parameters/test_cidr.py b/test/rules/parameters/test_cidr.py
--- a/test/rules/parameters/test_cidr.py
+++ b/test/rules/parameters/test_cidr.py
@@ -27,6 +27,7 @@ def setUp(self):
success_templates = [
'test/fixtures/templates/good/functions_cidr.yaml',
+ 'test/fixtures/templates/good/properties_ec2_vpc.yaml',
]
def test_file_positive(self):
|
Handle SSM parameters in E2505
The check E2505 fails when reading the CIDR from SSM using the following code:
```
VpcCidr:
Description: 'VPC CIDR Block'
Type: AWS::SSM::Parameter::Value<String>
Default: /Infra/VpcCidr
```
The message is misleading, too. It is about security groups and not cidr ranges.
https://github.com/awslabs/cfn-python-lint/blob/3b785df6b262b733bedcaa8c8de9a2c65ac161b8/src/cfnlint/rules/resources/ectwo/Vpc.py#L92
|
2018-12-14T13:29:49Z
|
[] |
[] |
|
aws-cloudformation/cfn-lint
| 569 |
aws-cloudformation__cfn-lint-569
|
[
"390"
] |
37954b414f92bf6e09cf02ccaa4d4b10c67efed4
|
diff --git a/src/cfnlint/rules/functions/Sub.py b/src/cfnlint/rules/functions/Sub.py
--- a/src/cfnlint/rules/functions/Sub.py
+++ b/src/cfnlint/rules/functions/Sub.py
@@ -32,44 +32,26 @@ def _test_string(self, cfn, sub_string, parameters, tree):
matches = []
string_params = cfn.get_sub_parameters(sub_string)
- get_atts = cfn.get_valid_getatts()
-
- valid_pseudo_params = [
- 'AWS::Region',
- 'AWS::StackName',
- 'AWS::URLSuffix',
- 'AWS::StackId',
- 'AWS::Region',
- 'AWS::Partition',
- 'AWS::NotificationARNs',
- 'AWS::AccountId'
- ]
-
- valid_params = valid_pseudo_params
- valid_params.extend(cfn.get_parameter_names())
- valid_params.extend(cfn.get_resource_names())
- for key, _ in parameters.items():
- valid_params.append(key)
for string_param in string_params:
- if isinstance(string_param, (six.string_types, six.text_type)):
- if string_param not in valid_params:
- found = False
- for resource, attributes in get_atts.items():
- for attribute_name, _ in attributes.items():
- if resource == string_param.split('.')[0] and attribute_name == '*':
- found = True
- elif (resource == string_param.split('.')[0] and
- attribute_name == '.'.join(string_param.split('.')[1:])):
- found = True
- if not found:
- message = 'Parameter {0} for Fn::Sub not found at {1}'
- matches.append(RuleMatch(
- tree, message.format(string_param, '/'.join(map(str, tree)))))
+ if isinstance(string_param, (six.string_types)):
+ matches.extend(self._test_parameter(string_param, cfn, parameters, tree))
return matches
- def _test_parameters(self, parameters, tree):
+ def _get_parameters(self, cfn):
+ """Get all Parameter Names"""
+ results = {}
+ parameters = cfn.template.get('Parameters', {})
+ if isinstance(parameters, dict):
+ for param_name, param_values in parameters.items():
+ # This rule isn't here to check the Types but we need
+ # something valid if it doesn't exist
+ results[param_name] = param_values.get('Type', 'String')
+
+ return results
+
+ def _test_parameters(self, parameters, cfn, tree):
"""Check parameters for appropriate configuration"""
supported_functions = [
@@ -90,11 +72,18 @@ def _test_parameters(self, parameters, tree):
param_tree = tree[:] + [parameter_name]
if isinstance(parameter_value_obj, dict):
if len(parameter_value_obj) == 1:
- for key, _ in parameter_value_obj.items():
+ for key, value in parameter_value_obj.items():
if key not in supported_functions:
message = 'Sub parameter should use a valid function for {0}'
matches.append(RuleMatch(
param_tree, message.format('/'.join(map(str, tree)))))
+ elif key in ['Ref']:
+ matches.extend(self._test_parameter(value, cfn, {}, tree))
+ elif key in ['Fn::GetAtt']:
+ if isinstance(value, list):
+ matches.extend(self._test_parameter('.'.join(value), cfn, {}, tree))
+ elif isinstance(value, six.string_types):
+ matches.extend(self._test_parameter(value, cfn, {}, tree))
else:
message = 'Sub parameter should be an object of 1 for {0}'
matches.append(RuleMatch(
@@ -106,6 +95,68 @@ def _test_parameters(self, parameters, tree):
return matches
+ def _test_parameter(self, parameter, cfn, parameters, tree):
+ """ Test a parameter """
+
+ matches = []
+ get_atts = cfn.get_valid_getatts()
+
+ valid_pseudo_params = [
+ 'AWS::Region',
+ 'AWS::StackName',
+ 'AWS::URLSuffix',
+ 'AWS::StackId',
+ 'AWS::Region',
+ 'AWS::Partition',
+ 'AWS::NotificationARNs',
+ 'AWS::AccountId'
+ ]
+
+ odd_list_params = [
+ 'CommaDelimitedList',
+ 'AWS::SSM::Parameter::Value<CommaDelimitedList>',
+ ]
+
+ valid_params = valid_pseudo_params
+ valid_params.extend(cfn.get_resource_names())
+ template_parameters = self._get_parameters(cfn)
+
+ for key, _ in parameters.items():
+ valid_params.append(key)
+
+ if parameter not in valid_params:
+ found = False
+ if parameter in template_parameters:
+ found = True
+ if (
+ template_parameters.get(parameter) in odd_list_params or
+ template_parameters.get(parameter).startswith('AWS::SSM::Parameter::Value<List') or
+ template_parameters.get(parameter).startswith('List')):
+ message = 'Fn::Sub cannot use list {0} at {1}'
+ matches.append(RuleMatch(
+ tree, message.format(parameter, '/'.join(map(str, tree)))))
+ for resource, attributes in get_atts.items():
+ for attribute_name, attribute_values in attributes.items():
+ if resource == parameter.split('.')[0] and attribute_name == '*':
+ if attribute_values.get('Type') == 'List':
+ message = 'Fn::Sub cannot use list {0} at {1}'
+ matches.append(RuleMatch(
+ tree, message.format(parameter, '/'.join(map(str, tree)))))
+ found = True
+ elif (resource == parameter.split('.')[0] and
+ attribute_name == '.'.join(parameter.split('.')[1:])):
+ if attribute_values.get('Type') == 'List':
+ message = 'Fn::Sub cannot use list {0} at {1}'
+ matches.append(RuleMatch(
+ tree, message.format(parameter, '/'.join(map(str, tree)))))
+ found = True
+ if not found:
+ message = 'Parameter {0} for Fn::Sub not found at {1}'
+ matches.append(RuleMatch(
+ tree, message.format(parameter, '/'.join(map(str, tree)))))
+
+ return matches
+
def match(self, cfn):
"""Check CloudFormation Join"""
@@ -132,7 +183,7 @@ def match(self, cfn):
tree + [1], message.format('/'.join(map(str, tree)))))
else:
matches.extend(self._test_string(cfn, sub_string, parameters, tree + [0]))
- matches.extend(self._test_parameters(parameters, tree))
+ matches.extend(self._test_parameters(parameters, cfn, tree))
else:
message = 'Sub should be an array of 2 for {0}'
matches.append(RuleMatch(
|
diff --git a/test/fixtures/templates/bad/functions_sub.yaml b/test/fixtures/templates/bad/functions/sub.yaml
similarity index 75%
rename from test/fixtures/templates/bad/functions_sub.yaml
rename to test/fixtures/templates/bad/functions/sub.yaml
--- a/test/fixtures/templates/bad/functions_sub.yaml
+++ b/test/fixtures/templates/bad/functions/sub.yaml
@@ -2,6 +2,9 @@
AWSTemplateFormatVersion: "2010-09-09"
Description: >
Test Sub Functions
+Parameters:
+ CidrBlock:
+ Type: CommaDelimitedList
Resources:
myInstance:
Type: AWS::EC2::Instance
@@ -42,6 +45,24 @@ Resources:
Fn::Sub:
- yum install ${package}; echo ${AWS::Region}; echo ${!Literal}"
- mypackage: httpd
+ myVPc:
+ Type: AWS::EC2::VPC
+ Properties:
+ CidrBlock: !Sub "${CidrBlock}"
+ myVPc2:
+ Type: AWS::EC2::VPC
+ Properties:
+ CidrBlock:
+ Fn::Sub:
+ - "${myCidr}"
+ - myCidr: !Ref CidrBlock
Outputs:
myOutput:
Value: !Sub "${myInstance3.PrivateDnsName1}"
+ list:
+ Value: !Sub "${myVPc.CidrBlockAssociations}"
+ list2:
+ Value:
+ Fn::Sub:
+ - "${myCidr}"
+ - myCidr: !GetAtt myVPc.CidrBlockAssociations
diff --git a/test/fixtures/templates/good/functions_sub.yaml b/test/fixtures/templates/good/functions/sub.yaml
similarity index 100%
rename from test/fixtures/templates/good/functions_sub.yaml
rename to test/fixtures/templates/good/functions/sub.yaml
diff --git a/test/rules/functions/test_sub.py b/test/rules/functions/test_sub.py
--- a/test/rules/functions/test_sub.py
+++ b/test/rules/functions/test_sub.py
@@ -25,7 +25,7 @@ def setUp(self):
super(TestRulesSub, self).setUp()
self.collection.register(Sub())
self.success_templates = [
- 'test/fixtures/templates/good/functions_sub.yaml',
+ 'test/fixtures/templates/good/functions/sub.yaml',
]
def test_file_positive(self):
@@ -34,4 +34,4 @@ def test_file_positive(self):
def test_file_negative(self):
"""Test failure"""
- self.helper_file_negative('test/fixtures/templates/bad/functions_sub.yaml', 9)
+ self.helper_file_negative('test/fixtures/templates/bad/functions/sub.yaml', 13)
diff --git a/test/rules/functions/test_sub_needed.py b/test/rules/functions/test_sub_needed.py
--- a/test/rules/functions/test_sub_needed.py
+++ b/test/rules/functions/test_sub_needed.py
@@ -25,7 +25,7 @@ def setUp(self):
super(TestSubNeeded, self).setUp()
self.collection.register(SubNeeded())
self.success_templates = [
- 'test/fixtures/templates/good/functions_sub.yaml',
+ 'test/fixtures/templates/good/functions/sub.yaml',
'test/fixtures/templates/good/functions/sub_needed.yaml',
]
diff --git a/test/rules/functions/test_sub_unneeded.py b/test/rules/functions/test_sub_unneeded.py
--- a/test/rules/functions/test_sub_unneeded.py
+++ b/test/rules/functions/test_sub_unneeded.py
@@ -25,7 +25,7 @@ def setUp(self):
super(TestSubUnneeded, self).setUp()
self.collection.register(SubUnneeded())
self.success_templates = [
- 'test/fixtures/templates/good/functions_sub.yaml',
+ 'test/fixtures/templates/good/functions/sub.yaml',
]
def test_file_positive(self):
|
Can't use lists directly in a Sub.
*cfn-lint version: (`cfn-lint --version`)*
*Description of issue.*
"Template validation error: Template error: variable pValues in Fn::Sub expression does not resolve to a string"
Please provide as much information as possible:
* Template linting issues:
Subs can't be directly included in a Sub
```
---
AWSTemplateFormatVersion: "2010-09-09"
Parameters:
pKey:
Type: String
pValues:
Type: CommaDelimitedList
Resources:
MySubscription:
Type: AWS::SNS::Subscription
Properties:
FilterPolicy: !Sub |
${pKey}: ${pValues}
```
|
2019-01-09T02:21:10Z
|
[] |
[] |
|
aws-cloudformation/cfn-lint
| 571 |
aws-cloudformation__cfn-lint-571
|
[
"425"
] |
fc64753fb845a1be0da46bee2b55ad926b5dbb2d
|
diff --git a/src/cfnlint/rules/functions/FindInMap.py b/src/cfnlint/rules/functions/FindInMap.py
--- a/src/cfnlint/rules/functions/FindInMap.py
+++ b/src/cfnlint/rules/functions/FindInMap.py
@@ -59,6 +59,62 @@ def check_dict(self, obj, tree):
return matches
+ def map_name(self, map_name, mappings, tree):
+ """ Check the map name """
+ matches = []
+ if isinstance(map_name, (six.string_types, dict)):
+ if isinstance(map_name, dict):
+ matches.extend(self.check_dict(map_name, tree[:] + [0]))
+ else:
+ if map_name not in mappings:
+ message = 'Map Name {0} doesnt exist for {0}'
+ matches.append(RuleMatch(
+ tree[:] + [0], message.format(map_name, '/'.join(map(str, tree)))))
+ else:
+ message = 'Map Name should be a {0}, or string at {1}'
+ matches.append(RuleMatch(
+ tree[:] + [0],
+ message.format(
+ ', '.join(map(str, self.supported_functions)),
+ '/'.join(map(str, tree)))))
+
+ return matches
+
+ def first_key(self, first_key, tree):
+ """ Check the validity of the first key """
+ matches = []
+ if isinstance(first_key, (six.string_types, int)):
+ return matches
+ if isinstance(first_key, (dict)):
+ matches.extend(self.check_dict(first_key, tree[:] + [1]))
+ else:
+ message = 'FindInMap first key should be a {0}, string, or int at {1}'
+ matches.append(RuleMatch(
+ tree[:] + [1],
+ message.format(
+ ', '.join(map(str, self.supported_functions)),
+ '/'.join(map(str, tree)))))
+
+ return matches
+
+ def second_key(self, second_key, tree):
+ """ Check the validity of the second key """
+ matches = []
+ if isinstance(second_key, (six.string_types, int)):
+ return matches
+
+ if isinstance(second_key, (dict)):
+ matches.extend(self.check_dict(second_key, tree[:] + [2]))
+ else:
+ message = 'FindInMap second key should be a {0}, string, or int at {1}'
+ matches.append(RuleMatch(
+ tree[:] + [2],
+ message.format(
+ ', '.join(map(str, self.supported_functions)),
+ '/'.join(map(str, tree)))))
+
+ return matches
+
def match(self, cfn):
"""Check CloudFormation GetAtt"""
@@ -79,43 +135,9 @@ def match(self, cfn):
first_key = map_obj[1]
second_key = map_obj[2]
- if isinstance(map_name, (six.string_types, six.text_type, dict)):
- if isinstance(map_name, dict):
- matches.extend(self.check_dict(map_name, tree[:] + [0]))
- else:
- if map_name not in mappings:
- message = 'Map Name {0} doesnt exist for {0}'
- matches.append(RuleMatch(
- tree[:] + [0], message.format(map_name, '/'.join(map(str, tree)))))
- else:
- message = 'Map Name should be a {0}, or string at {1}'
- matches.append(RuleMatch(
- tree[:] + [0],
- message.format(
- ', '.join(map(str, self.supported_functions)),
- '/'.join(map(str, tree)))))
-
- if isinstance(first_key, (six.text_type, six.string_types, dict, int)):
- if isinstance(first_key, dict):
- matches.extend(self.check_dict(first_key, tree[:] + [1]))
- else:
- message = 'Map first key should be a {0}, string, or int at {1}'
- matches.append(RuleMatch(
- tree[:] + [1],
- message.format(
- ', '.join(map(str, self.supported_functions)),
- '/'.join(map(str, tree)))))
-
- if isinstance(second_key, (six.text_type, six.string_types, dict, int)):
- if isinstance(second_key, dict):
- matches.extend(self.check_dict(second_key, tree[:] + [2]))
- else:
- message = 'Map second key should be a {0}, string, or int at {1}'
- matches.append(RuleMatch(
- tree[:] + [2],
- message.format(
- ', '.join(map(str, self.supported_functions)),
- '/'.join(tree))))
+ matches.extend(self.map_name(map_name, mappings, tree))
+ matches.extend(self.first_key(first_key, tree))
+ matches.extend(self.second_key(second_key, tree))
else:
message = 'FindInMap is a list with 3 values for {0}'
diff --git a/src/cfnlint/rules/functions/FindInMapKeys.py b/src/cfnlint/rules/functions/FindInMapKeys.py
new file mode 100644
--- /dev/null
+++ b/src/cfnlint/rules/functions/FindInMapKeys.py
@@ -0,0 +1,78 @@
+"""
+ Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ software and associated documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to use, copy, modify,
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
+import six
+from cfnlint import CloudFormationLintRule
+from cfnlint import RuleMatch
+
+
+class FindInMapKeys(CloudFormationLintRule):
+ """Check if FindInMap values are correct"""
+ id = 'W1011'
+ shortdesc = 'FindInMap keys exist in the map'
+ description = 'Checks the keys in a FindInMap to make sure they exist. ' \
+ 'Check only if the Map Name is a string and if the key is a string.'
+ source_url = 'https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-findinmap.html'
+ tags = ['functions', 'findinmap']
+
+ def check_keys(self, map_name, keys, mappings, tree):
+ """ Check the validity of the first key """
+ matches = []
+ first_key = keys[0]
+ second_key = keys[1]
+ if isinstance(second_key, (six.string_types, int)):
+ if isinstance(map_name, (six.string_types)):
+ mapping = mappings.get(map_name)
+ if mapping:
+ if isinstance(first_key, (six.string_types, int)):
+ if isinstance(map_name, (six.string_types)):
+ if not mapping.get(first_key):
+ message = 'FindInMap first key "{0}" doesn\'t exist in map "{1}" at {3}'
+ matches.append(RuleMatch(
+ tree[:] + [1],
+ message.format(first_key, map_name, first_key, '/'.join(map(str, tree)))))
+ if mapping.get(first_key):
+ # Don't double error if they first key doesn't exist
+ if not mapping.get(first_key, {}).get(second_key):
+ message = 'FindInMap second key "{0}" doesn\'t exist in map "{1}" under "{2}" at {3}'
+ matches.append(RuleMatch(
+ tree[:] + [2],
+ message.format(second_key, map_name, first_key, '/'.join(map(str, tree)))))
+ else:
+ for key, value in mapping.items():
+ if not value.get(second_key):
+ message = 'FindInMap second key "{0}" doesn\'t exist in map "{1}" under "{2}" at {3}'
+ matches.append(RuleMatch(
+ tree[:] + [2],
+ message.format(second_key, map_name, key, '/'.join(map(str, tree)))))
+
+ return matches
+
+ def match(self, cfn):
+ """Check CloudFormation GetAtt"""
+
+ matches = []
+
+ findinmaps = cfn.search_deep_keys('Fn::FindInMap')
+ mappings = cfn.get_mappings()
+ for findinmap in findinmaps:
+ tree = findinmap[:-1]
+ map_obj = findinmap[-1]
+
+ if len(map_obj) == 3:
+ matches.extend(self.check_keys(map_obj[0], map_obj[1:], mappings, tree))
+
+ return matches
|
diff --git a/test/fixtures/templates/bad/functions/findinmap_keys.yaml b/test/fixtures/templates/bad/functions/findinmap_keys.yaml
new file mode 100644
--- /dev/null
+++ b/test/fixtures/templates/bad/functions/findinmap_keys.yaml
@@ -0,0 +1,25 @@
+---
+AWSTemplateFormatVersion: "2010-09-09"
+Mappings:
+ CertificateMap:
+ us-east-1:
+ Arn: arn:aws:acm:us-east-1:<account>:certificate/<id>
+Resources:
+ AppAlbListener1:
+ Type: AWS::ElasticLoadBalancingV2::Listener
+ Properties:
+ Certificates:
+ - CertificateArn: # Fails when the first key is bad
+ Fn::FindInMap: [CertificateMap, 'us-west-2', Arn]
+ AppAlbListener2:
+ Type: AWS::ElasticLoadBalancingV2::Listener
+ Properties:
+ Certificates:
+ - CertificateArn: # Fails when the 2nd key doesn't exist and first key is string
+ Fn::FindInMap: [CertificateMap, 'us-west-2', id]
+ AppAlbListener3:
+ Type: AWS::ElasticLoadBalancingV2::Listener
+ Properties:
+ Certificates:
+ - CertificateArn: # Fails when the 2nd key doesn't exist and the first key is a dict
+ Fn::FindInMap: [CertificateMap, !Ref 'AWS::Region', id]
diff --git a/test/fixtures/templates/good/functions/findinmap_keys.yaml b/test/fixtures/templates/good/functions/findinmap_keys.yaml
new file mode 100644
--- /dev/null
+++ b/test/fixtures/templates/good/functions/findinmap_keys.yaml
@@ -0,0 +1,34 @@
+---
+AWSTemplateFormatVersion: "2010-09-09"
+Mappings:
+ CertificateMap:
+ us-east-1:
+ Arn: arn:aws:acm:us-east-1:<account>:certificate/<id>
+ 2:
+ Arn: arn:aws:acm:us-east-1:<account>:certificate/<id>
+Resources:
+ AppAlbListener:
+ Type: AWS::ElasticLoadBalancingV2::Listener
+ Properties:
+ Certificates:
+ - CertificateArn:
+ Fn::FindInMap: [CertificateMap, !Ref 'AWS::Region', !Ref 'AWS::Region']
+ # Doesn't fail when a Ref is used
+ AppAlbListener1:
+ Type: AWS::ElasticLoadBalancingV2::Listener
+ Properties:
+ Certificates:
+ - CertificateArn: # Doesn't fail with hardcoded string
+ Fn::FindInMap: [CertificateMap, 'us-east-1', Arn]
+ AppAlbListener2:
+ Type: AWS::ElasticLoadBalancingV2::Listener
+ Properties:
+ Certificates:
+ - CertificateArn: # Doesn't fail with map is dynamic
+ Fn::FindInMap: [!Ref 'AWS::Region', 'us-west-2', id]
+ AppAlbListener3:
+ Type: AWS::ElasticLoadBalancingV2::Listener
+ Properties:
+ Certificates:
+ - CertificateArn: # Doesn't fail with integer
+ Fn::FindInMap: [!Ref 'AWS::Region', 2, id]
diff --git a/test/rules/functions/test_find_in_map_keys.py b/test/rules/functions/test_find_in_map_keys.py
new file mode 100644
--- /dev/null
+++ b/test/rules/functions/test_find_in_map_keys.py
@@ -0,0 +1,37 @@
+"""
+ Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ software and associated documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to use, copy, modify,
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
+from cfnlint.rules.functions.FindInMapKeys import FindInMapKeys # pylint: disable=E0401
+from .. import BaseRuleTestCase
+
+
+class TestRulesFindInMapKeys(BaseRuleTestCase):
+ """Test Find In Map Keys Rule """
+ def setUp(self):
+ """Setup"""
+ super(TestRulesFindInMapKeys, self).setUp()
+ self.collection.register(FindInMapKeys())
+ self.success_templates = [
+ 'test/fixtures/templates/good/functions/findinmap_keys.yaml',
+ ]
+
+ def test_file_positive(self):
+ """Test Positive"""
+ self.helper_file_positive()
+
+ def test_file_negative(self):
+ """Test failure"""
+ self.helper_file_negative('test/fixtures/templates/bad/functions/findinmap_keys.yaml', 3)
|
Invalid FindInMap does not get picked up
Got the following mapping:
```
Mappings:
CertificateMap:
us-east-1:
Arn: arn:aws:acm:us-east-1:<account>:certificate/<id>
Resources
AppAlbListener:
Type: AWS::ElasticLoadBalancingV2::Listener
Properties:
# ...
Certificates:
- CertificateArn:
Fn::FindInMap: [CertificateMap, !Ref 'AWS::Region', id]
```
As you can see, `Fn::FindInMap` is referencing the `id` key instead of `Arn`. We should add a rule to fail in such a scenario.
|
Agreed. This would be a great rule. Thanks.
Agreed! @hoshsadiq -- if you feel like tackling this let us know! There are some tools in the docs/ directory to help bootstrap you on writing rules, and you can reach out to any of us if you get stuck.
We've also got a Slack channel I can invite you too for real-time discussion.
Yes please, would be good. I do have a few questions.
Awesome -- send me your email either to [email protected] or as a DM on twitter (@chuckm) and I'll get you invited.
I had ideas to create this rule a few times but I always paused when you realized you can use Ref for the MapName. But what we should have done is just punt in that scenario. Have some check for common scenarios of the map being a string is better than nothing.
Yeah I realised that. It was one of the reason I wanted to join the Slack, to see if you guys already have a way of resolving refs as best as possible, but haven't had a chance to ask it yet as I've been without internet everytime I've started looking at this.
|
2019-01-10T02:11:48Z
|
[] |
[] |
aws-cloudformation/cfn-lint
| 595 |
aws-cloudformation__cfn-lint-595
|
[
"594"
] |
a8d5bcd75e181f4ee5ce050c2774a22dc4671b90
|
diff --git a/src/cfnlint/rules/resources/codepipeline/CodepipelineStageActions.py b/src/cfnlint/rules/resources/codepipeline/CodepipelineStageActions.py
--- a/src/cfnlint/rules/resources/codepipeline/CodepipelineStageActions.py
+++ b/src/cfnlint/rules/resources/codepipeline/CodepipelineStageActions.py
@@ -40,12 +40,6 @@ class CodepipelineStageActions(CloudFormationLintRule):
'OutputArtifactRange': 1,
}
},
- 'Build': {
- 'CodeBuild': {
- 'InputArtifactRange': 1,
- 'OutputArtifactRange': (0, 1),
- },
- },
'Test': {
'CodeBuild': {
'InputArtifactRange': 1,
|
diff --git a/test/fixtures/templates/bad/resources_codepipeline_action_artifact_counts.yaml b/test/fixtures/templates/bad/resources_codepipeline_action_artifact_counts.yaml
--- a/test/fixtures/templates/bad/resources_codepipeline_action_artifact_counts.yaml
+++ b/test/fixtures/templates/bad/resources_codepipeline_action_artifact_counts.yaml
@@ -37,4 +37,23 @@ Resources:
ProjectName: cfn-python-lint
InputArtifacts:
- Name: MyApp
- - Name: MyApp2
+ - Name: MyApp2 # No Longer an error
+ OutputArtifacts:
+ - Name: MyOutput1
+ - Name: MyOutput2 # No Longer an error
+ - Name: MyApprovalStage
+ Actions:
+ - Name: MyApprovalAction
+ ActionTypeId:
+ Category: Approval
+ Owner: AWS
+ Version: "1"
+ Provider: Manual
+ InputArtifacts:
+ - Name: MyApp # Error
+ OutputArtifacts:
+ - Name: MyOutput1 # Error
+ Configuration:
+ NotificationArn: arn:aws:sns:us-east-2:80398EXAMPLE:MyApprovalTopic
+ ExternalEntityLink: http://example.com
+ CustomData: The latest changes include feedback from Bob.
diff --git a/test/rules/resources/codepipeline/test_stageactions.py b/test/rules/resources/codepipeline/test_stageactions.py
--- a/test/rules/resources/codepipeline/test_stageactions.py
+++ b/test/rules/resources/codepipeline/test_stageactions.py
@@ -31,7 +31,7 @@ def test_file_positive(self):
def test_file_artifact_counts(self):
"""Test failure"""
- self.helper_file_negative('test/fixtures/templates/bad/resources_codepipeline_action_artifact_counts.yaml', 1)
+ self.helper_file_negative('test/fixtures/templates/bad/resources_codepipeline_action_artifact_counts.yaml', 2)
def test_file_invalid_owner(self):
"""Test failure"""
|
Support for multiple CodePipeline OutputArtifacts
*cfn-lint version*: 0.12.1
*Description of issue.*
The CloudFormation linter does not yet support having multiple values for the OutputArtifacts property. When linting a template it gives the following error message:
`E2541 Action "CodeBuild" declares 2 OutputArtifacts which is not in expected range [0, 1].`
```yaml
---
AWSTemplateFormatVersion: 2010-09-09
Resources:
Pipeline:
Type: AWS::CodePipeline::Pipeline
Properties:
Name: pipeline
RoleArn: 'rolearn'
RestartExecutionOnUpdate: true
ArtifactStore:
Location: 'artifactbucket'
Type: S3
Stages:
- Name: Source
Actions:
- Name: SourceRepo
ActionTypeId:
# More info on Possible Values: https://docs.aws.amazon.com/codepipeline/latest/userguide/reference-pipeline-structure.html#action-requirements
Category: Source
Owner: ThirdParty
Provider: GitHub
Version: "1"
Configuration:
Owner: '{{resolve:ssm:/service/github/owner:1}}'
OAuthToken: '{{resolve:ssm:/service/github/token:3}}'
Repo: 'repo'
Branch: 'develop'
PollForSourceChanges: true
OutputArtifacts:
- Name: source
RunOrder: 1
- Name: Build
Actions:
- Name: CodeBuild
ActionTypeId:
Category: Build
Owner: AWS
Provider: CodeBuild
Version: "1"
Configuration:
ProjectName: 'codebuildproject'
InputArtifacts:
- Name: source
OutputArtifacts:
- Name: artifact1
- Name: artifact2 # this goes wrong
RunOrder: 1
```
As additional information a [blog post](https://aws.amazon.com/about-aws/whats-new/2018/08/aws-codebuild-adds-ability-to-create-build-projects-with-multiple-input-sources-and-output-artifacts/) about the release of support for this and the [CloudFormation spec](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stages-actions.html).
|
2019-01-18T15:16:18Z
|
[] |
[] |
|
aws-cloudformation/cfn-lint
| 626 |
aws-cloudformation__cfn-lint-626
|
[
"619"
] |
b6119e994198754194346d1f597bf43acefa621c
|
diff --git a/src/cfnlint/conditions.py b/src/cfnlint/conditions.py
--- a/src/cfnlint/conditions.py
+++ b/src/cfnlint/conditions.py
@@ -192,14 +192,23 @@ class Conditions(object):
""" All the conditions """
Conditions = None
Equals = None
+ Parameters = None
def __init__(self, cfn):
self.Conditions = {}
self.Equals = {}
+ self.Parameters = {}
try:
self.Equals = self._get_condition_equals(cfn.search_deep_keys(cfnlint.helpers.FUNCTION_EQUALS))
for condition_name in cfn.template.get('Conditions', {}):
self.Conditions[condition_name] = Condition(cfn.template, condition_name)
+ # Configure parametrs Allowed Values if they have them
+ for parameter_name, parameter_values in cfn.template.get('Parameters', {}).items():
+ # ALlowed Values must be a list so validate they are
+ if isinstance(parameter_values.get('AllowedValues'), list):
+ # Any parameter in a condition could be used but would have to be done by
+ # Ref so build a ref to match for getting an equivalent hash
+ self.Parameters[get_hash({'Ref': parameter_name})] = parameter_values.get('AllowedValues')
except Exception as err: # pylint: disable=W0703
LOGGER.debug('While processing conditions got error: %s', err)
@@ -306,28 +315,50 @@ def get_scenarios(self, conditions):
for s_v in equal_values:
matched_equals[equal_key].add(s_v)
- def multiply_equals(currents, s_hash, sets):
+ def multiply_equals(currents, s_hash, sets, parameter_values):
""" Multiply Equals when building scenarios """
results = []
false_case = ''
if not currents:
- for s_set in sets:
+ # If the Parameter being REFed has Allowed Values use those instead
+ if parameter_values:
+ for p_value in parameter_values:
+ # the allowed value must be an integer or string
+ # protecting against really badlyl formatted templates
+ if isinstance(p_value, (six.integer_types, six.string_types)):
+ new = {}
+ # the allowed values could be numbers so force a string
+ new[s_hash] = str(p_value)
+ results.append(new)
+ else:
+ for s_set in sets:
+ new = {}
+ new[s_hash] = s_set
+ false_case += s_set
+ results.append(new)
new = {}
- new[s_hash] = s_set
- false_case += s_set
+ new[s_hash] = false_case + '.bad'
results.append(new)
- new = {}
- new[s_hash] = false_case + '.bad'
- results.append(new)
for current in currents:
- for s_set in sets:
+ # If the Parameter being REFed has Allowed Values use those instead
+ if parameter_values:
+ for p_value in parameter_values:
+ # the allowed value must be an integer or string
+ # protecting against really badlyl formatted templates
+ if isinstance(p_value, (six.integer_types, six.string_types)):
+ new = copy(current)
+ # the allowed values could be numbers so force a string
+ new[s_hash] = str(p_value)
+ results.append(new)
+ else:
+ for s_set in sets:
+ new = copy(current)
+ new[s_hash] = s_set
+ false_case += s_set
+ results.append(new)
new = copy(current)
- new[s_hash] = s_set
- false_case += s_set
+ new[s_hash] = false_case + '.bad'
results.append(new)
- new = copy(current)
- new[s_hash] = false_case + '.bad'
- results.append(new)
return results
@@ -338,9 +369,9 @@ def multiply_equals(currents, s_hash, sets):
return results
if matched_conditions:
- scenarios = set()
+ scenarios = []
for con_hash, sets in matched_equals.items():
- scenarios = multiply_equals(scenarios, con_hash, sets)
+ scenarios = multiply_equals(scenarios, con_hash, sets, self.Parameters.get(con_hash))
for scenario in scenarios:
r_condition = {}
|
diff --git a/test/module/conditions/test_conditions.py b/test/module/conditions/test_conditions.py
--- a/test/module/conditions/test_conditions.py
+++ b/test/module/conditions/test_conditions.py
@@ -24,6 +24,16 @@ def setUp(self):
""" setup the cfn object """
filename = 'test/fixtures/templates/good/core/conditions.yaml'
template = {
+ 'Parameters': {
+ 'NatType': {
+ 'Type': 'String',
+ 'AllowedValues': ['None', 'Single NAT', 'High Availability']
+ },
+ 'myEnvironment': {
+ 'Type': 'String',
+ 'AllowedValues': ['Dev', 'Stage', 'Prod']
+ }
+ },
'Conditions': {
'isProduction': {'Fn::Equals': [{'Ref': 'myEnvironment'}, 'Prod']},
'isPrimary': {'Fn::Equals': ['True', {'Fn::FindInMap': ['location', {'Ref': 'AWS::Region'}, 'primary']}]},
@@ -31,7 +41,14 @@ def setUp(self):
'isProductionOrStaging': {'Fn::Or': [{'Condition': 'isProduction'}, {'Fn::Equals': [{'Ref': 'myEnvironment'}, 'Stage']}]},
'isNotProduction': {'Fn::Not': [{'Condition': 'isProduction'}]},
'isDevelopment': {'Fn::Equals': ['Dev', {'Ref': 'myEnvironment'}]},
- 'isPrimaryAndProdOrStage': {'Fn::And': [{'Condition': 'isProductionOrStaging'}, {'Fn::Equals': ['True', {'Fn::FindInMap': ['location', {'Ref': 'AWS::Region'}, 'primary']}]}]}
+ 'isPrimaryAndProdOrStage': {'Fn::And': [{'Condition': 'isProductionOrStaging'}, {'Fn::Equals': ['True', {'Fn::FindInMap': ['location', {'Ref': 'AWS::Region'}, 'primary']}]}]},
+ 'DeployNatGateway': {'Fn::Not': [{'Fn::Equals': [{'Ref': 'NatType'}, 'None']}]},
+ 'Az1Nat': {
+ 'Fn::Or': [
+ {'Fn::Equals': [{'Ref': 'NatType'}, 'Single NAT']},
+ {'Fn::Equals': [{'Ref': 'NatType'}, 'High Availability']}
+ ]
+ }
},
'Resources': {}
}
@@ -40,7 +57,10 @@ def setUp(self):
def test_success_size_of_conditions(self):
"""Test success run"""
- self.assertEqual(len(self.conditions.Conditions), 7)
+ self.assertEqual(len(self.conditions.Conditions), 9)
+ self.assertEqual(len(self.conditions.Parameters), 2)
+ print(self.conditions.Parameters)
+ self.assertListEqual(self.conditions.Parameters['55caa18684cddafa866bdb947fb31ea563b2ea73'], ['None', 'Single NAT', 'High Availability'])
def test_success_is_production(self):
""" test isProduction """
@@ -243,6 +263,14 @@ def test_condition_relationship(self):
{'isProduction': False, 'isPrimary': False},
]
)
+ # Multiple conditions with parameters specified
+ self.assertEqualListOfDicts(
+ self.conditions.get_scenarios(['DeployNatGateway', 'Az1Nat']),
+ [
+ {'DeployNatGateway': True, 'Az1Nat': True},
+ {'DeployNatGateway': False, 'Az1Nat': False}
+ ]
+ )
class TestBadConditions(BaseTestCase):
|
W1001 incorrectly checking logic
`cfn-lint 0.13.0`
I'm receiving the following error:
```
W1001 Ref to resource "NatA" that many not be available when when condition "DeployNatGateway" is True and when condition "Az1Nat" is False at Resources/PrivateDefaultRouteA/Properties/NatGatewayId/Ref
```
W1001 is attempting to understand the logic of my Conditions but it's getting it wrong. For example, I have a VPC template that creates a NAT with the option of making it a single NAT or an HA NAT. So I have a parameter options that are
```
["None", "Single NAT", "High Availability"]
```
I then have the following conditions:
```
t.add_condition(
"DeployNatGateway",
Not(Equals(Ref(NatType), "None"))
)
t.add_condition(
"Az1Nat",
Or(
Equals(Ref(NatType), "Single NAT"),
Equals(Ref(NatType), "High Availability")
)
)
```
I then have `NatA` being deployed with the condition `Az1Nat`. There is another resource, `PrivateDefaultRouteA` that has a `Condition` on `DeployNatGateway` and a `Ref` on `NatA`. It appears that since `PrivateDefaultRouteA` implicitly `DependsOn` `NatA` but are using different conditions, it thinks that they can conflict when they're actually two conditions based on the same parameter but we're using mutually exclusive options.
I'm not sure if this is a bug that should be fixed or if this is an example of an edge case that it's not going to handle. In the meantime, I would advocate that this is a good example to implement #113 because we don't want to completely disable W1001 as it did catch some logic errors that are valid.
|
I will work on a patch for this.
I have one other feature I want to work on and then I will take a look at #113.
|
2019-01-30T19:27:48Z
|
[] |
[] |
aws-cloudformation/cfn-lint
| 632 |
aws-cloudformation__cfn-lint-632
|
[
"547"
] |
86f473ca2fa9dcb8db2e731581a189f8238359c3
|
diff --git a/src/cfnlint/__init__.py b/src/cfnlint/__init__.py
--- a/src/cfnlint/__init__.py
+++ b/src/cfnlint/__init__.py
@@ -48,6 +48,8 @@ class CloudFormationLintRule(object):
def __init__(self):
self.resource_property_types = []
self.resource_sub_property_types = []
+ self.config = {} # `-X E3012:strict=false`... Show more
+ self.config_definition = {}
def __repr__(self):
return '%s: %s' % (self.id, self.shortdesc)
@@ -59,6 +61,24 @@ def verbose(self):
def initialize(self, cfn):
"""Initialize the rule"""
+ def configure(self, configs=None):
+ """ Set the configuration """
+
+ # set defaults
+ if isinstance(self.config_definition, dict):
+ for config_name, config_values in self.config_definition.items():
+ self.config[config_name] = config_values['default']
+
+ if isinstance(configs, dict):
+ for key, value in configs.items():
+ if key in self.config_definition:
+ if self.config_definition[key]['type'] == 'boolean':
+ self.config[key] = cfnlint.helpers.bool_compare(value, True)
+ elif self.config_definition[key]['type'] == 'string':
+ self.config[key] = str(value)
+ elif self.config_definition[key]['type'] == 'integer':
+ self.config[key] = int(value)
+
match = None
match_resource_properties = None
match_resource_sub_properties = None
@@ -134,7 +154,7 @@ def matchall_resource_sub_properties(self, filename, cfn, resource_properties, p
class RulesCollection(object):
"""Collection of rules"""
- def __init__(self, ignore_rules=None, include_rules=None, include_experimental=False):
+ def __init__(self, ignore_rules=None, include_rules=None, configure_rules=None, include_experimental=False):
self.rules = []
# Whether "experimental" rules should be added
@@ -143,7 +163,7 @@ def __init__(self, ignore_rules=None, include_rules=None, include_experimental=F
# Make Ignore Rules not required
self.ignore_rules = ignore_rules or []
self.include_rules = include_rules or []
-
+ self.configure_rules = configure_rules or []
# by default include 'W' and 'E'
# 'I' has to be included manually for backwards compabitility
self.include_rules.extend(['W', 'E'])
@@ -152,6 +172,8 @@ def register(self, rule):
"""Register rules"""
if self.is_rule_enabled(rule.id, rule.experimental):
self.rules.append(rule)
+ if rule.id in self.configure_rules:
+ rule.configure(self.configure_rules[rule.id])
def __iter__(self):
return iter(self.rules)
@@ -164,6 +186,8 @@ def extend(self, more):
for rule in more:
if self.is_rule_enabled(rule.id, rule.experimental):
self.rules.append(rule)
+ if rule.id in self.configure_rules:
+ rule.configure(self.configure_rules[rule.id])
def __repr__(self):
return '\n'.join([rule.verbose()
@@ -342,14 +366,17 @@ def run(self, filename, cfn):
return matches
- @classmethod
- def create_from_directory(cls, rulesdir):
+ def create_from_directory(self, rulesdir):
"""Create rules from directory"""
- result = cls([])
+ result = []
if rulesdir != '':
- result.rules = cfnlint.helpers.load_plugins(os.path.expanduser(rulesdir))
+ result = cfnlint.helpers.load_plugins(os.path.expanduser(rulesdir))
- return result
+ for rule in result:
+ if rule.id in self.configure_rules:
+ rule.configure(self.configure_rules[rule.id])
+
+ self.extend(result)
class RuleMatch(object):
diff --git a/src/cfnlint/config.py b/src/cfnlint/config.py
--- a/src/cfnlint/config.py
+++ b/src/cfnlint/config.py
@@ -20,6 +20,7 @@
import glob
import json
import os
+import copy
import six
import jsonschema
import cfnlint.decode.cfn_yaml
@@ -221,6 +222,59 @@ def comma_separated_arg(string):
return string.split(',')
+def _ensure_value(namespace, name, value):
+ if getattr(namespace, name, None) is None:
+ setattr(namespace, name, value)
+ return getattr(namespace, name)
+
+
+class RuleConfigurationAction(argparse.Action):
+ """ Override the default Action """
+ def __init__(self, option_strings, dest, nargs=None, const=None, default=None,
+ type=None, choices=None, required=False, help=None, metavar=None): # pylint: disable=W0622
+ super(RuleConfigurationAction, self).__init__(
+ option_strings=option_strings,
+ dest=dest,
+ nargs=nargs,
+ const=const,
+ default=default,
+ type=type,
+ choices=choices,
+ required=required,
+ help=help,
+ metavar=metavar)
+
+ def _parse_rule_configuration(self, string):
+ """ Parse the config rule structure """
+ configs = comma_separated_arg(string)
+ results = {}
+ for config in configs:
+ rule_id = config.split(':')[0]
+ config_name = config.split(':')[1].split('=')[0]
+ config_value = config.split(':')[1].split('=')[1]
+ if rule_id not in results:
+ results[rule_id] = {}
+ results[rule_id][config_name] = config_value
+
+ return results
+
+ def __call__(self, parser, namespace, values, option_string=None):
+ items = copy.copy(_ensure_value(namespace, self.dest, {}))
+ try:
+ for value in values:
+ new_value = self._parse_rule_configuration(value)
+ for v_k, v_vs in new_value.items():
+ if v_k in items:
+ for s_k, s_v in v_vs.items():
+ items[v_k][s_k] = s_v
+ else:
+ items[v_k] = v_vs
+ setattr(namespace, self.dest, items)
+ except Exception: # pylint: disable=W0703
+ parser.print_help()
+ parser.exit()
+
+
class CliArgs(object):
""" Base Args class"""
cli_args = {}
@@ -305,6 +359,12 @@ def __call__(self, parser, namespace, values, option_string=None):
'-e', '--include-experimental', help='Include experimental rules', action='store_true'
)
+ standard.add_argument(
+ '-x', '--configure-rule', dest='configure_rules', nargs='+', default={},
+ action=RuleConfigurationAction,
+ help='Provide configuration for a rule. Format RuleId:key=value. Example: E3012:strict=false'
+ )
+
advanced.add_argument(
'-o', '--override-spec', dest='override_spec',
help='A CloudFormation Spec override file that allows customization'
@@ -365,6 +425,9 @@ def set_template_args(self, template):
if config_name == 'include_checks':
if isinstance(config_value, list):
defaults['include_checks'] = config_value
+ if config_name == 'configure_rules':
+ if isinstance(config_value, dict):
+ defaults['configure_rules'] = config_value
self._template_args = defaults
@@ -529,3 +592,8 @@ def update_iam_policies(self):
def listrules(self):
""" listrules """
return self._get_argument_value('listrules', False, False)
+
+ @property
+ def configure_rules(self):
+ """ Configure rules """
+ return self._get_argument_value('configure_rules', True, True)
diff --git a/src/cfnlint/core.py b/src/cfnlint/core.py
--- a/src/cfnlint/core.py
+++ b/src/cfnlint/core.py
@@ -86,14 +86,13 @@ def get_formatter(fmt):
return formatter
-def get_rules(rulesdir, ignore_rules, include_rules, include_experimental=False):
+def get_rules(rulesdir, ignore_rules, include_rules, configure_rules=None, include_experimental=False):
"""Get rules"""
- rules = RulesCollection(ignore_rules, include_rules, include_experimental)
+ rules = RulesCollection(ignore_rules, include_rules, configure_rules, include_experimental)
rules_dirs = [DEFAULT_RULESDIR] + rulesdir
try:
for rules_dir in rules_dirs:
- rules.extend(
- RulesCollection.create_from_directory(rules_dir))
+ rules.create_from_directory(rules_dir)
except OSError as e:
raise UnexpectedRuleException('Tried to append rules but got an error: %s' % str(e), 1)
return rules
@@ -120,11 +119,16 @@ def get_args_filenames(cli_args):
cfnlint.maintenance.update_resource_specs()
exit(0)
- rules = cfnlint.core.get_rules(config.append_rules, config.ignore_checks, config.include_checks)
+ rules = cfnlint.core.get_rules(
+ config.append_rules,
+ config.ignore_checks,
+ config.include_checks,
+ config.configure_rules
+ )
if config.update_documentation:
# Get ALL rules (ignore the CLI))
- documentation_rules = cfnlint.core.get_rules([], [], ['I', 'E', 'W'], True)
+ documentation_rules = cfnlint.core.get_rules([], [], ['I', 'E', 'W'], {}, True)
cfnlint.maintenance.update_documentation(documentation_rules)
exit(0)
@@ -154,7 +158,13 @@ def get_template_rules(filename, args):
args.template_args = template
- rules = cfnlint.core.get_rules(args.append_rules, args.ignore_checks, args.include_checks, args.include_experimental)
+ rules = cfnlint.core.get_rules(
+ args.append_rules,
+ args.ignore_checks,
+ args.include_checks,
+ args.configure_rules,
+ args.include_experimental,
+ )
return(template, rules, [])
diff --git a/src/cfnlint/helpers.py b/src/cfnlint/helpers.py
--- a/src/cfnlint/helpers.py
+++ b/src/cfnlint/helpers.py
@@ -208,10 +208,10 @@ def bool_compare(first, second):
""" Compare strings to boolean values """
if isinstance(first, six.string_types):
- first = bool(first.lower() == 'true')
+ first = bool(first.lower() in ['true', 'True'])
if isinstance(second, six.string_types):
- second = bool(second.lower() == 'true')
+ second = bool(second.lower() in ['true', 'True'])
return first is second
diff --git a/src/cfnlint/maintenance.py b/src/cfnlint/maintenance.py
--- a/src/cfnlint/maintenance.py
+++ b/src/cfnlint/maintenance.py
@@ -104,26 +104,26 @@ def update_documentation(rules):
# Add the rules
new_file.write('The following **{}** rules are applied by this linter:\n\n'.format(len(sorted_rules)))
- new_file.write('| Rule ID | Title | Description | Source | Tags |\n')
- new_file.write('| -------- | ----- | ----------- | ------ | ---- |\n')
+ new_file.write('| Rule ID | Title | Description | Config<br />(Name:Type:Default) | Source | Tags |\n')
+ new_file.write('| -------- | ----- | ----------- | ---------- | ------ | ---- |\n')
- rule_output = '| {0}<a name="{0}"></a> | {1} | {2} | [Source]({3}) | {4} |\n'
+ rule_output = '| {0}<a name="{0}"></a> | {1} | {2} | {3} | [Source]({4}) | {5} |\n'
# Add system Errors (hardcoded)
parseerror = cfnlint.ParseError()
tags = ','.join('`{0}`'.format(tag) for tag in parseerror.tags)
new_file.write(rule_output.format(
- parseerror.id, parseerror.shortdesc, parseerror.description, '', tags))
+ parseerror.id, parseerror.shortdesc, parseerror.description, '', '', tags))
transformerror = cfnlint.TransformError()
tags = ','.join('`{0}`'.format(tag) for tag in transformerror.tags)
new_file.write(rule_output.format(
- transformerror.id, transformerror.shortdesc, transformerror.description, '', tags))
+ transformerror.id, transformerror.shortdesc, transformerror.description, '', '', tags))
ruleerror = cfnlint.RuleError()
tags = ','.join('`{0}`'.format(tag) for tag in ruleerror.tags)
new_file.write(
- rule_output.format(ruleerror.id, ruleerror.shortdesc, ruleerror.description, '', tags))
+ rule_output.format(ruleerror.id, ruleerror.shortdesc, ruleerror.description, '', '', tags))
# Seprate the experimental rules
experimental_rules = []
@@ -135,7 +135,8 @@ def update_documentation(rules):
continue
tags = ','.join('`{0}`'.format(tag) for tag in rule.tags)
- new_file.write(rule_output.format(rule.id, rule.shortdesc, rule.description, rule.source_url, tags))
+ config = '<br />'.join('{0}:{1}:{2}'.format(key, values.get('type'), values.get('default')) for key, values in rule.config_definition.items())
+ new_file.write(rule_output.format(rule.id, rule.shortdesc, rule.description, config, rule.source_url, tags))
# Output the experimental rules (if any)
if experimental_rules:
@@ -145,7 +146,8 @@ def update_documentation(rules):
for rule in experimental_rules:
tags = ','.join('`{0}`'.format(tag) for tag in rule.tags)
- new_file.write(rule_output.format(rule.id, rule.shortdesc, rule.description, rule.source_url, tags))
+ config = '<br />'.join('{0}:{1}:{2}'.format(key, values.get('type'), values.get('default')) for key, values in rule.config_definition.items())
+ new_file.write(rule_output.format(rule.id, rule.shortdesc, rule.description, config, rule.source_url, tags))
def patch_spec(content, region):
"""Patch the spec file"""
diff --git a/src/cfnlint/rules/resources/properties/ValuePrimitiveType.py b/src/cfnlint/rules/resources/properties/ValuePrimitiveType.py
--- a/src/cfnlint/rules/resources/properties/ValuePrimitiveType.py
+++ b/src/cfnlint/rules/resources/properties/ValuePrimitiveType.py
@@ -35,6 +35,13 @@ def __init__(self):
super(ValuePrimitiveType, self).__init__()
self.resource_specs = []
self.property_specs = []
+ self.config_definition = {
+ 'strict': {
+ 'default': True,
+ 'type': 'boolean'
+ }
+ }
+ self.configure()
def initialize(self, cfn):
"""Initialize the rule"""
@@ -46,6 +53,43 @@ def initialize(self, cfn):
for property_spec in self.property_specs:
self.resource_sub_property_types.append(property_spec)
+ def _value_check(self, value, path, item_type, extra_args):
+ """ Checks non strict """
+ matches = []
+ if not self.config['strict']:
+ try:
+ if item_type in ['String']:
+ str(value)
+ elif item_type in ['Boolean']:
+ if value not in ['True', 'true', 'False', 'false']:
+ message = 'Property %s should be of type %s' % ('/'.join(map(str, path)), item_type)
+ matches.append(RuleMatch(path, message, **extra_args))
+ elif item_type in ['Integer', 'Long', 'Double']:
+ if isinstance(value, bool):
+ message = 'Property %s should be of type %s' % ('/'.join(map(str, path)), item_type)
+ matches.append(RuleMatch(path, message, **extra_args))
+ elif item_type in ['Integer']:
+ int(value)
+ elif item_type in ['Long']:
+ # Some times python will strip the decimals when doing a conversion
+ if isinstance(value, float):
+ message = 'Property %s should be of type %s' % ('/'.join(map(str, path)), item_type)
+ matches.append(RuleMatch(path, message, **extra_args))
+ if sys.version_info < (3,):
+ long(value) # pylint: disable=undefined-variable
+ else:
+ int(value)
+ else: # has to be a Double
+ float(value)
+ except Exception: # pylint: disable=W0703
+ message = 'Property %s should be of type %s' % ('/'.join(map(str, path)), item_type)
+ matches.append(RuleMatch(path, message, **extra_args))
+ else:
+ message = 'Property %s should be of type %s' % ('/'.join(map(str, path)), item_type)
+ matches.append(RuleMatch(path, message, **extra_args))
+
+ return matches
+
def check_primitive_type(self, value, item_type, path):
"""Chec item type"""
matches = []
@@ -53,34 +97,29 @@ def check_primitive_type(self, value, item_type, path):
if isinstance(value, dict) and item_type == 'Json':
return matches
if item_type in ['String']:
- if not isinstance(value, (str, six.text_type, six.string_types)):
- message = 'Property %s should be of type String' % ('/'.join(map(str, path)))
+ if not isinstance(value, (six.string_types)):
extra_args = {'actual_type': type(value).__name__, 'expected_type': str.__name__}
- matches.append(RuleMatch(path, message, **extra_args))
+ matches.extend(self._value_check(value, path, item_type, extra_args))
elif item_type in ['Boolean']:
if not isinstance(value, (bool)):
- message = 'Property %s should be of type Boolean' % ('/'.join(map(str, path)))
extra_args = {'actual_type': type(value).__name__, 'expected_type': bool.__name__}
- matches.append(RuleMatch(path, message, **extra_args))
+ matches.extend(self._value_check(value, path, item_type, extra_args))
elif item_type in ['Double']:
if not isinstance(value, (float, int)):
- message = 'Property %s should be of type Double' % ('/'.join(map(str, path)))
extra_args = {'actual_type': type(value).__name__, 'expected_type': [float.__name__, int.__name__]}
- matches.append(RuleMatch(path, message, **extra_args))
+ matches.extend(self._value_check(value, path, item_type, extra_args))
elif item_type in ['Integer']:
if not isinstance(value, (int)):
- message = 'Property %s should be of type Integer' % ('/'.join(map(str, path)))
extra_args = {'actual_type': type(value).__name__, 'expected_type': int.__name__}
- matches.append(RuleMatch(path, message, **extra_args))
+ matches.extend(self._value_check(value, path, item_type, extra_args))
elif item_type in ['Long']:
if sys.version_info < (3,):
integer_types = (int, long,) # pylint: disable=undefined-variable
else:
integer_types = (int,)
if not isinstance(value, integer_types):
- message = 'Property %s should be of type Long' % ('/'.join(map(str, path)))
extra_args = {'actual_type': type(value).__name__, 'expected_type': ' or '.join([x.__name__ for x in integer_types])}
- matches.append(RuleMatch(path, message, **extra_args))
+ matches.extend(self._value_check(value, path, item_type, extra_args))
elif isinstance(value, list):
message = 'Property should be of type %s at %s' % (item_type, '/'.join(map(str, path)))
extra_args = {'actual_type': type(value).__name__, 'expected_type': list.__name__}
|
diff --git a/test/fixtures/results/quickstart/non_strict/cis_benchmark.json b/test/fixtures/results/quickstart/non_strict/cis_benchmark.json
new file mode 100644
--- /dev/null
+++ b/test/fixtures/results/quickstart/non_strict/cis_benchmark.json
@@ -0,0 +1,1073 @@
+[
+ {
+ "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 27,
+ "LineNumber": 122
+ },
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 122
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (MasterConfigRole), dependency already enforced by a \"Fn:GetAtt\" at Resources/FunctiontForEvaluateCisBenchmarkingPreconditions/Properties/Role/Fn::GetAtt/[u'MasterConfigRole', u'Arn']",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 16,
+ "LineNumber": 181
+ },
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 181
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (FunctiontForEvaluateCisBenchmarkingPreconditions), dependency already enforced by a \"Fn:GetAtt\" at Resources/ResourceForEvaluateCisBenchmarkingPreconditions/Properties/ServiceToken/Fn::GetAtt/[u'FunctiontForEvaluateCisBenchmarkingPreconditions', u'Arn']",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 27,
+ "LineNumber": 228
+ },
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 228
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (MasterConfigRole), dependency already enforced by a \"Fn:GetAtt\" at Resources/FunctionForEvaluateRootAccountRule/Properties/Role/Fn::GetAtt/[u'MasterConfigRole', u'Arn']",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 16,
+ "LineNumber": 315
+ },
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 315
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (FunctionForEvaluateRootAccountRule), dependency already enforced by a \"Fn:GetAtt\" at Resources/EvaluateRootAccountFunctionPermission/Properties/FunctionName/Fn::GetAtt/[u'FunctionForEvaluateRootAccountRule', u'Arn']",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 27,
+ "LineNumber": 422
+ },
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 422
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (MasterConfigRole), dependency already enforced by a \"Fn:GetAtt\" at Resources/FunctionForVpcFlowLogRule/Properties/Role/Fn::GetAtt/[u'MasterConfigRole', u'Arn']",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 16,
+ "LineNumber": 486
+ },
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 486
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (FunctionForVpcFlowLogRule), dependency already enforced by a \"Fn:GetAtt\" at Resources/ConfigPermissionToCallVpcFlowLogLambda/Properties/FunctionName/Fn::GetAtt/[u'FunctionForVpcFlowLogRule', u'Arn']",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 27,
+ "LineNumber": 498
+ },
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 498
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (MasterConfigRole), dependency already enforced by a \"Fn:GetAtt\" at Resources/FunctionForVpcDefaultSecurityGroupsRule/Properties/Role/Fn::GetAtt/[u'MasterConfigRole', u'Arn']",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 16,
+ "LineNumber": 556
+ },
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 556
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (FunctionForVpcDefaultSecurityGroupsRule), dependency already enforced by a \"Fn:GetAtt\" at Resources/ConfigPermissionToCallVpcDefaultSecurityGroupsLambda/Properties/FunctionName/Fn::GetAtt/[u'FunctionForVpcDefaultSecurityGroupsRule', u'Arn']",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 50,
+ "LineNumber": 566
+ },
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 566
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (FunctionForVpcDefaultSecurityGroupsRule), dependency already enforced by a \"Fn:GetAtt\" at Resources/ConfigRuleForVpcDefaultSecurityGroupss/Properties/Source/SourceIdentifier/Fn::GetAtt/[u'FunctionForVpcDefaultSecurityGroupsRule', u'Arn']",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 36,
+ "LineNumber": 585
+ },
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 585
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (FunctionForVpcFlowLogRule), dependency already enforced by a \"Fn:GetAtt\" at Resources/ConfigRuleForVpcFlowLogs/Properties/Source/SourceIdentifier/Fn::GetAtt/[u'FunctionForVpcFlowLogRule', u'Arn']",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 27,
+ "LineNumber": 607
+ },
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 607
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (MasterConfigRole), dependency already enforced by a \"Fn:GetAtt\" at Resources/FunctionForRoleForMfaOnUsersRule/Properties/Role/Fn::GetAtt/[u'MasterConfigRole', u'Arn']",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 16,
+ "LineNumber": 671
+ },
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 671
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (FunctionForRoleForMfaOnUsersRule), dependency already enforced by a \"Fn:GetAtt\" at Resources/ConfigPermissionToCallMfaForUsersLambda/Properties/FunctionName/Fn::GetAtt/[u'FunctionForRoleForMfaOnUsersRule', u'Arn']",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 27,
+ "LineNumber": 700
+ },
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 700
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (MasterConfigRole), dependency already enforced by a \"Fn:GetAtt\" at Resources/FunctionForEvaluatePolicyPermissionsRule/Properties/Role/Fn::GetAtt/[u'MasterConfigRole', u'Arn']",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 16,
+ "LineNumber": 765
+ },
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 765
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (FunctionForEvaluatePolicyPermissionsRule), dependency already enforced by a \"Fn:GetAtt\" at Resources/ConfigPermissionToCallEvaluatePolicyPermissionsLambda/Properties/FunctionName/Fn::GetAtt/[u'FunctionForEvaluatePolicyPermissionsRule', u'Arn']",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 51,
+ "LineNumber": 774
+ },
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 774
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (FunctionForEvaluatePolicyPermissionsRule), dependency already enforced by a \"Fn:GetAtt\" at Resources/ConfigRuleForEvaluatePolicyPermissions/Properties/Source/SourceIdentifier/Fn::GetAtt/[u'FunctionForEvaluatePolicyPermissionsRule', u'Arn']",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 27,
+ "LineNumber": 796
+ },
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 796
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (MasterConfigRole), dependency already enforced by a \"Fn:GetAtt\" at Resources/FunctionForEvaluateUserPolicyAssociationRule/Properties/Role/Fn::GetAtt/[u'MasterConfigRole', u'Arn']",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 16,
+ "LineNumber": 855
+ },
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 855
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (FunctionForEvaluateUserPolicyAssociationRule), dependency already enforced by a \"Fn:GetAtt\" at Resources/ConfigPermissionToCallEvaluateUserPolicyAssociationLambda/Properties/FunctionName/Fn::GetAtt/[u'FunctionForEvaluateUserPolicyAssociationRule', u'Arn']",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 55,
+ "LineNumber": 864
+ },
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 864
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (FunctionForEvaluateUserPolicyAssociationRule), dependency already enforced by a \"Fn:GetAtt\" at Resources/ConfigRuleForEvaluateUserPolicyAssociations/Properties/Source/SourceIdentifier/Fn::GetAtt/[u'FunctionForEvaluateUserPolicyAssociationRule', u'Arn']",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 27,
+ "LineNumber": 887
+ },
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 887
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (MasterConfigRole), dependency already enforced by a \"Fn:GetAtt\" at Resources/FunctionForEvaluateCloudTrailRule/Properties/Role/Fn::GetAtt/[u'MasterConfigRole', u'Arn']",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 16,
+ "LineNumber": 971
+ },
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 971
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (FunctionForEvaluateCloudTrailRule), dependency already enforced by a \"Fn:GetAtt\" at Resources/ConfigPermissionToCallEvaluateCloudTrailLambda/Properties/FunctionName/Fn::GetAtt/[u'FunctionForEvaluateCloudTrailRule', u'Arn']",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 44,
+ "LineNumber": 980
+ },
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 980
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (FunctionForEvaluateCloudTrailRule), dependency already enforced by a \"Fn:GetAtt\" at Resources/ConfigRuleForEvaluateCloudTrail/Properties/Source/SourceIdentifier/Fn::GetAtt/[u'FunctionForEvaluateCloudTrailRule', u'Arn']",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 27,
+ "LineNumber": 1000
+ },
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 1000
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (MasterConfigRole), dependency already enforced by a \"Fn:GetAtt\" at Resources/FunctionForEvaluateCloudTrailBucketRule/Properties/Role/Fn::GetAtt/[u'MasterConfigRole', u'Arn']",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 16,
+ "LineNumber": 1087
+ },
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 1087
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (FunctionForEvaluateCloudTrailBucketRule), dependency already enforced by a \"Fn:GetAtt\" at Resources/ConfigPermissionToCallEvaluateCloudTrailBucketLambda/Properties/FunctionName/Fn::GetAtt/[u'FunctionForEvaluateCloudTrailBucketRule', u'Arn']",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 50,
+ "LineNumber": 1096
+ },
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 1096
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (FunctionForEvaluateCloudTrailBucketRule), dependency already enforced by a \"Fn:GetAtt\" at Resources/ConfigRuleForEvaluateCloudTrailBucket/Properties/Source/SourceIdentifier/Fn::GetAtt/[u'FunctionForEvaluateCloudTrailBucketRule', u'Arn']",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 27,
+ "LineNumber": 1117
+ },
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 1117
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (MasterConfigRole), dependency already enforced by a \"Fn:GetAtt\" at Resources/FunctionForEvaluateCloudTrailLogIntegrityRule/Properties/Role/Fn::GetAtt/[u'MasterConfigRole', u'Arn']",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 16,
+ "LineNumber": 1184
+ },
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 1184
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (FunctionForEvaluateCloudTrailLogIntegrityRule), dependency already enforced by a \"Fn:GetAtt\" at Resources/ConfigPermissionToCallEvaluateCloudTrailLogIntegrityLambda/Properties/FunctionName/Fn::GetAtt/[u'FunctionForEvaluateCloudTrailLogIntegrityRule', u'Arn']",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 56,
+ "LineNumber": 1194
+ },
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 1194
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (FunctionForEvaluateCloudTrailLogIntegrityRule), dependency already enforced by a \"Fn:GetAtt\" at Resources/ConfigRuleForEvaluateCloudTrailLogIntegrity/Properties/Source/SourceIdentifier/Fn::GetAtt/[u'FunctionForEvaluateCloudTrailLogIntegrityRule', u'Arn']",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 27,
+ "LineNumber": 1214
+ },
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 1214
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (MasterConfigRole), dependency already enforced by a \"Fn:GetAtt\" at Resources/FunctionForInstanceRoleUseRule/Properties/Role/Fn::GetAtt/[u'MasterConfigRole', u'Arn']",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 16,
+ "LineNumber": 1266
+ },
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 1266
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (FunctionForInstanceRoleUseRule), dependency already enforced by a \"Fn:GetAtt\" at Resources/ConfigPermissionToCallInstanceRoleUseLambda/Properties/FunctionName/Fn::GetAtt/[u'FunctionForInstanceRoleUseRule', u'Arn']",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 41,
+ "LineNumber": 1276
+ },
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 1276
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (FunctionForInstanceRoleUseRule), dependency already enforced by a \"Fn:GetAtt\" at Resources/ConfigRuleForInstanceRoleUses/Properties/Source/SourceIdentifier/Fn::GetAtt/[u'FunctionForInstanceRoleUseRule', u'Arn']",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 27,
+ "LineNumber": 1299
+ },
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 1299
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (MasterConfigRole), dependency already enforced by a \"Fn:GetAtt\" at Resources/FunctionForEvaluateKeyRotationRule/Properties/Role/Fn::GetAtt/[u'MasterConfigRole', u'Arn']",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 16,
+ "LineNumber": 1363
+ },
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 1363
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (FunctionForEvaluateKeyRotationRule), dependency already enforced by a \"Fn:GetAtt\" at Resources/ConfigPermissionToCallEvaluateKeyRotationLambda/Properties/FunctionName/Fn::GetAtt/[u'FunctionForEvaluateKeyRotationRule', u'Arn']",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 45,
+ "LineNumber": 1373
+ },
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 1373
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (FunctionForEvaluateKeyRotationRule), dependency already enforced by a \"Fn:GetAtt\" at Resources/ConfigRuleForEvaluateKeyRotations/Properties/Source/SourceIdentifier/Fn::GetAtt/[u'FunctionForEvaluateKeyRotationRule', u'Arn']",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 27,
+ "LineNumber": 1395
+ },
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 1395
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (MasterConfigRole), dependency already enforced by a \"Fn:GetAtt\" at Resources/FunctionForEvaluateConfigInAllRegionsRule/Properties/Role/Fn::GetAtt/[u'MasterConfigRole', u'Arn']",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 16,
+ "LineNumber": 1470
+ },
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 1470
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (FunctionForEvaluateConfigInAllRegionsRule), dependency already enforced by a \"Fn:GetAtt\" at Resources/EvaluateConfigInAllRegionsFunctionPermission/Properties/FunctionName/Fn::GetAtt/[u'FunctionForEvaluateConfigInAllRegionsRule', u'Arn']",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 27,
+ "LineNumber": 1500
+ },
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 1500
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (MasterConfigRole), dependency already enforced by a \"Fn:GetAtt\" at Resources/FunctionForVpcPeeringRouteTablesRule/Properties/Role/Fn::GetAtt/[u'MasterConfigRole', u'Arn']",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 16,
+ "LineNumber": 1555
+ },
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 1555
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (FunctionForVpcPeeringRouteTablesRule), dependency already enforced by a \"Fn:GetAtt\" at Resources/ConfigPermissionToCallVpcPeeringRouteTablesLambda/Properties/FunctionName/Fn::GetAtt/[u'FunctionForVpcPeeringRouteTablesRule', u'Arn']",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 47,
+ "LineNumber": 1565
+ },
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 1565
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (FunctionForVpcPeeringRouteTablesRule), dependency already enforced by a \"Fn:GetAtt\" at Resources/ConfigRuleForVpcPeeringRouteTabless/Properties/Source/SourceIdentifier/Fn::GetAtt/[u'FunctionForVpcPeeringRouteTablesRule', u'Arn']",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 16,
+ "LineNumber": 1601
+ },
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 1601
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (MasterConfigRole), dependency already enforced by a \"Fn:GetAtt\" at Resources/GetCloudTrailCloudWatchLog/Properties/Role/Fn::GetAtt/[u'MasterConfigRole', u'Arn']",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 16,
+ "LineNumber": 1638
+ },
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 1638
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (GetCloudTrailCloudWatchLog), dependency already enforced by a \"Fn:GetAtt\" at Resources/ResourceForGetCloudTrailCloudWatchLog/Properties/ServiceToken/Fn::GetAtt/[u'GetCloudTrailCloudWatchLog', u'Arn']",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 48,
+ "LineNumber": 1649
+ },
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 1649
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (ResourceForGetCloudTrailCloudWatchLog), dependency already enforced by a \"Fn:GetAtt\" at Resources/UnauthorizedAttemptsCloudWatchFilter/Properties/LogGroupName/Fn::GetAtt/[u'ResourceForGetCloudTrailCloudWatchLog', u'LogName']",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 48,
+ "LineNumber": 1683
+ },
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 1683
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (ResourceForGetCloudTrailCloudWatchLog), dependency already enforced by a \"Fn:GetAtt\" at Resources/IAMRootActivityCloudWatchMetric/Properties/LogGroupName/Fn::GetAtt/[u'ResourceForGetCloudTrailCloudWatchLog', u'LogName']",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 48,
+ "LineNumber": 1720
+ },
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 1720
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (ResourceForGetCloudTrailCloudWatchLog), dependency already enforced by a \"Fn:GetAtt\" at Resources/ConsoleSigninWithoutMfaCloudWatchMetric/Properties/LogGroupName/Fn::GetAtt/[u'ResourceForGetCloudTrailCloudWatchLog', u'LogName']",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 48,
+ "LineNumber": 1759
+ },
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 1759
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (ResourceForGetCloudTrailCloudWatchLog), dependency already enforced by a \"Fn:GetAtt\" at Resources/ConsoleLoginFailureCloudWatchMetric/Properties/LogGroupName/Fn::GetAtt/[u'ResourceForGetCloudTrailCloudWatchLog', u'LogName']",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 48,
+ "LineNumber": 1796
+ },
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 1796
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (ResourceForGetCloudTrailCloudWatchLog), dependency already enforced by a \"Fn:GetAtt\" at Resources/KMSCustomerKeyDeletionCloudWatchMetric/Properties/LogGroupName/Fn::GetAtt/[u'ResourceForGetCloudTrailCloudWatchLog', u'LogName']",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 16,
+ "LineNumber": 1830
+ },
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 1830
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (SnsTopicForCloudWatchEvents), dependency already enforced by a \"Ref\" at Resources/RoleForCloudWatchEvents/Properties/Policies/0/PolicyDocument/Statement/0/Resource/Ref/SnsTopicForCloudWatchEvents",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 34,
+ "LineNumber": 1857
+ },
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 1857
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (RoleForCloudWatchEvents), dependency already enforced by a \"Fn:GetAtt\" at Resources/FunctionToFormatCloudWatchEvent/Properties/Role/Fn::GetAtt/[u'RoleForCloudWatchEvents', u'Arn']",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 42,
+ "LineNumber": 1895
+ },
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 1895
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (FunctionToFormatCloudWatchEvent), dependency already enforced by a \"Fn:GetAtt\" at Resources/LambdaPermissionForCloudTrailCloudWatchEventRules/Properties/FunctionName/Fn::GetAtt/[u'FunctionToFormatCloudWatchEvent', u'Arn']",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 48,
+ "LineNumber": 2185
+ },
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 2185
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (ResourceForGetCloudTrailCloudWatchLog), dependency already enforced by a \"Fn:GetAtt\" at Resources/BillingChangesCloudWatchFilter/Properties/LogGroupName/Fn::GetAtt/[u'ResourceForGetCloudTrailCloudWatchLog', u'LogName']",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 16,
+ "LineNumber": 2253
+ },
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 2253
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (RoleForDisableUnusedCredentialsFunction), dependency already enforced by a \"Fn:GetAtt\" at Resources/FunctionToDisableUnusedCredentials/Properties/Role/Fn::GetAtt/[u'RoleForDisableUnusedCredentialsFunction', u'Arn']",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 45,
+ "LineNumber": 2340
+ },
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 2340
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (FunctionToDisableUnusedCredentials), dependency already enforced by a \"Fn:GetAtt\" at Resources/LambdaPermissionForDisableUnusedCredentials/Properties/FunctionName/Fn::GetAtt/[u'FunctionToDisableUnusedCredentials', u'Arn']",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ }
+]
diff --git a/test/fixtures/results/quickstart/non_strict/nist_application.json b/test/fixtures/results/quickstart/non_strict/nist_application.json
new file mode 100644
--- /dev/null
+++ b/test/fixtures/results/quickstart/non_strict/nist_application.json
@@ -0,0 +1,401 @@
+[
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 10,
+ "LineNumber": 125
+ },
+ "Start": {
+ "ColumnNumber": 3,
+ "LineNumber": 125
+ }
+ },
+ "Message": "Parameter pAppAmi should be of type [AWS::EC2::Image::Id, AWS::SSM::Parameter::Value<AWS::EC2::Image::Id>]",
+ "Rule": {
+ "Description": "See if there are any refs for ImageId to a parameter of inappropriate type. Appropriate Types are [AWS::EC2::Image::Id, AWS::SSM::Parameter::Value<AWS::EC2::Image::Id>]",
+ "Id": "W2506",
+ "ShortDescription": "Check if ImageId Parameters have the correct type",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/best-practices.html#parmtypes"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 18,
+ "LineNumber": 182
+ },
+ "Start": {
+ "ColumnNumber": 3,
+ "LineNumber": 182
+ }
+ },
+ "Message": "AllowedPattern and/or AllowedValues for Parameter should be specified at Parameters/pManagementCIDR. Example for AllowedPattern: \"^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/([0-9]|[1-2][0-9]|3[0-2]))$\"",
+ "Rule": {
+ "Description": "Check if a parameter is being used as a CIDR. If it is make sure it has allowed values regex comparisons",
+ "Id": "W2509",
+ "ShortDescription": "CIDR Parameters have allowed values",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/parameters-section-structure.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 18,
+ "LineNumber": 185
+ },
+ "Start": {
+ "ColumnNumber": 3,
+ "LineNumber": 185
+ }
+ },
+ "Message": "AllowedPattern and/or AllowedValues for Parameter should be specified at Parameters/pProductionCIDR. Example for AllowedPattern: \"^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/([0-9]|[1-2][0-9]|3[0-2]))$\"",
+ "Rule": {
+ "Description": "Check if a parameter is being used as a CIDR. If it is make sure it has allowed values regex comparisons",
+ "Id": "W2509",
+ "ShortDescription": "CIDR Parameters have allowed values",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/parameters-section-structure.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 16,
+ "LineNumber": 213
+ },
+ "Start": {
+ "ColumnNumber": 3,
+ "LineNumber": 213
+ }
+ },
+ "Message": "Parameter pWebServerAMI should be of type [AWS::EC2::Image::Id, AWS::SSM::Parameter::Value<AWS::EC2::Image::Id>]",
+ "Rule": {
+ "Description": "See if there are any refs for ImageId to a parameter of inappropriate type. Appropriate Types are [AWS::EC2::Image::Id, AWS::SSM::Parameter::Value<AWS::EC2::Image::Id>]",
+ "Id": "W2506",
+ "ShortDescription": "Check if ImageId Parameters have the correct type",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/best-practices.html#parmtypes"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 14,
+ "LineNumber": 219
+ },
+ "Start": {
+ "ColumnNumber": 5,
+ "LineNumber": 219
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (rRDSInstanceMySQL), dependency already enforced by a \"Fn:GetAtt\" at Resources/rAutoScalingConfigApp/Metadata/AWS::CloudFormation::Init/install_wordpress/files//tmp/create-wp-config/content/Fn::Join/1/12/Fn::GetAtt/['rRDSInstanceMySQL', 'Endpoint.Address']",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 14,
+ "LineNumber": 418
+ },
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 418
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (rELBApp), dependency already enforced by a \"Fn:GetAtt\" at Resources/rAutoScalingConfigWeb/Metadata/AWS::CloudFormation::Init/nginx/files//tmp/nginx/default.conf/content/Fn::Join/1/9/Fn::GetAtt/['rELBApp', 'DNSName']",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 14,
+ "LineNumber": 577
+ },
+ "Start": {
+ "ColumnNumber": 5,
+ "LineNumber": 577
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (rAutoScalingConfigApp), dependency already enforced by a \"Ref\" at Resources/rAutoScalingGroupApp/Properties/LaunchConfigurationName/Ref/rAutoScalingConfigApp",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 14,
+ "LineNumber": 603
+ },
+ "Start": {
+ "ColumnNumber": 5,
+ "LineNumber": 603
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (rAutoScalingConfigWeb), dependency already enforced by a \"Ref\" at Resources/rAutoScalingGroupWeb/Properties/LaunchConfigurationName/Ref/rAutoScalingConfigWeb",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 14,
+ "LineNumber": 698
+ },
+ "Start": {
+ "ColumnNumber": 5,
+ "LineNumber": 698
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (rAutoScalingGroupWeb), dependency already enforced by a \"Ref\" at Resources/rCWAlarmLowCPUWeb/Properties/Dimensions/0/Value/Ref/rAutoScalingGroupWeb",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 23,
+ "LineNumber": 724
+ },
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 724
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (rS3ELBAccessLogs), dependency already enforced by a \"Ref\" at Resources/rELBApp/Properties/AccessLoggingPolicy/S3BucketName/Ref/rS3ELBAccessLogs",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 24,
+ "LineNumber": 725
+ },
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 725
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (rSecurityGroupApp), dependency already enforced by a \"Ref\" at Resources/rELBApp/Properties/SecurityGroups/0/Ref/rSecurityGroupApp",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 23,
+ "LineNumber": 760
+ },
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 760
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (rS3ELBAccessLogs), dependency already enforced by a \"Ref\" at Resources/rELBWeb/Properties/AccessLoggingPolicy/S3BucketName/Ref/rS3ELBAccessLogs",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 24,
+ "LineNumber": 761
+ },
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 761
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (rSecurityGroupWeb), dependency already enforced by a \"Ref\" at Resources/rELBWeb/Properties/SecurityGroups/0/Ref/rSecurityGroupWeb",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 21,
+ "LineNumber": 1004
+ },
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 1004
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (rDBSubnetGroup), dependency already enforced by a \"Ref\" at Resources/rRDSInstanceMySQL/Properties/DBSubnetGroupName/Ref/rDBSubnetGroup",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 24,
+ "LineNumber": 1005
+ },
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 1005
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (rSecurityGroupRDS), dependency already enforced by a \"Ref\" at Resources/rRDSInstanceMySQL/Properties/VPCSecurityGroups/0/Ref/rSecurityGroupRDS",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 16,
+ "LineNumber": 1057
+ },
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 1057
+ }
+ },
+ "Message": "IAM Policy Version should be updated to '2012-10-17'.",
+ "Rule": {
+ "Description": "See if the elements inside an IAM Resource policy are configured correctly.",
+ "Id": "W2511",
+ "ShortDescription": "Check IAM Resource Policies syntax",
+ "Source": "https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 14,
+ "LineNumber": 1197
+ },
+ "Start": {
+ "ColumnNumber": 5,
+ "LineNumber": 1197
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (rWebContentBucket), dependency already enforced by a \"Ref\" at Resources/rWebContentS3Policy/Properties/PolicyDocument/Statement/0/Resource/Fn::Join/1/3/Ref/rWebContentBucket",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 14,
+ "LineNumber": 1197
+ },
+ "Start": {
+ "ColumnNumber": 5,
+ "LineNumber": 1197
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (rWebContentBucket), dependency already enforced by a \"Ref\" at Resources/rWebContentS3Policy/Properties/PolicyDocument/Statement/1/Resource/Fn::Join/1/3/Ref/rWebContentBucket",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 14,
+ "LineNumber": 1197
+ },
+ "Start": {
+ "ColumnNumber": 5,
+ "LineNumber": 1197
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (rWebContentBucket), dependency already enforced by a \"Ref\" at Resources/rWebContentS3Policy/Properties/Bucket/Ref/rWebContentBucket",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ }
+]
diff --git a/test/fixtures/results/quickstart/non_strict/nist_high_master.json b/test/fixtures/results/quickstart/non_strict/nist_high_master.json
new file mode 100644
--- /dev/null
+++ b/test/fixtures/results/quickstart/non_strict/nist_high_master.json
@@ -0,0 +1,506 @@
+[
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_high_master.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 30,
+ "LineNumber": 11
+ },
+ "Start": {
+ "ColumnNumber": 3,
+ "LineNumber": 11
+ }
+ },
+ "Message": "Condition LoadConfigRulesTemplateAuto not used",
+ "Rule": {
+ "Description": "Making sure the conditions defined are used",
+ "Id": "W8001",
+ "ShortDescription": "Check if Conditions are Used",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_high_master.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 28,
+ "LineNumber": 278
+ },
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 278
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (ProductionVpcTemplate), dependency already enforced by a \"Fn:GetAtt\" at Resources/ApplicationTemplate/Properties/Parameters/pAppPrivateSubnetB/Fn::GetAtt/['ProductionVpcTemplate', 'Outputs.rAppPrivateSubnetB']",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_high_master.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 28,
+ "LineNumber": 278
+ },
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 278
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (ProductionVpcTemplate), dependency already enforced by a \"Fn:GetAtt\" at Resources/ApplicationTemplate/Properties/Parameters/pDBPrivateSubnetA/Fn::GetAtt/['ProductionVpcTemplate', 'Outputs.rDBPrivateSubnetA']",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_high_master.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 28,
+ "LineNumber": 278
+ },
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 278
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (ProductionVpcTemplate), dependency already enforced by a \"Fn:GetAtt\" at Resources/ApplicationTemplate/Properties/Parameters/pDBPrivateSubnetB/Fn::GetAtt/['ProductionVpcTemplate', 'Outputs.rDBPrivateSubnetB']",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_high_master.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 28,
+ "LineNumber": 278
+ },
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 278
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (ProductionVpcTemplate), dependency already enforced by a \"Fn:GetAtt\" at Resources/ApplicationTemplate/Properties/Parameters/pDMZSubnetA/Fn::GetAtt/['ProductionVpcTemplate', 'Outputs.rDMZSubnetA']",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_high_master.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 28,
+ "LineNumber": 278
+ },
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 278
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (ProductionVpcTemplate), dependency already enforced by a \"Fn:GetAtt\" at Resources/ApplicationTemplate/Properties/Parameters/pDMZSubnetB/Fn::GetAtt/['ProductionVpcTemplate', 'Outputs.rDMZSubnetB']",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_high_master.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 28,
+ "LineNumber": 278
+ },
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 278
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (ProductionVpcTemplate), dependency already enforced by a \"Fn:GetAtt\" at Resources/ApplicationTemplate/Properties/Parameters/pAppPrivateSubnetA/Fn::GetAtt/['ProductionVpcTemplate', 'Outputs.rAppPrivateSubnetA']",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_high_master.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 28,
+ "LineNumber": 278
+ },
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 278
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (ProductionVpcTemplate), dependency already enforced by a \"Fn:GetAtt\" at Resources/ApplicationTemplate/Properties/Parameters/pProductionVPC/Fn::GetAtt/['ProductionVpcTemplate', 'Outputs.rVPCProduction']",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_high_master.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 28,
+ "LineNumber": 279
+ },
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 279
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (ManagementVpcTemplate), dependency already enforced by a \"Fn:GetAtt\" at Resources/ApplicationTemplate/Properties/Parameters/pDeepSecurityAgentDownload/Fn::GetAtt/['ManagementVpcTemplate', 'Outputs.rDeepSecurityAgentDownload']",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_high_master.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 28,
+ "LineNumber": 279
+ },
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 279
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (ManagementVpcTemplate), dependency already enforced by a \"Fn:GetAtt\" at Resources/ApplicationTemplate/Properties/Parameters/pDeepSecurityHeartbeat/Fn::GetAtt/['ManagementVpcTemplate', 'Outputs.rDeepSecurityHeartbeat']",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_high_master.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 21,
+ "LineNumber": 293
+ },
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 293
+ }
+ },
+ "Message": "GetAtt to resource \"ProductionVpcTemplate\" that may not be available when condition \"EulaAccepted\" is False at Resources/ApplicationTemplate/Properties/Parameters/pAppPrivateSubnetA/Fn::GetAtt",
+ "Rule": {
+ "Description": "Check the Conditions that affect a Ref/GetAtt to make sure the resource being related to is available when there is a resource condition.",
+ "Id": "W1001",
+ "ShortDescription": "Ref/GetAtt to resource that is available when conditions are applied",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-ref.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_high_master.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 21,
+ "LineNumber": 297
+ },
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 297
+ }
+ },
+ "Message": "GetAtt to resource \"ProductionVpcTemplate\" that may not be available when condition \"EulaAccepted\" is False at Resources/ApplicationTemplate/Properties/Parameters/pAppPrivateSubnetB/Fn::GetAtt",
+ "Rule": {
+ "Description": "Check the Conditions that affect a Ref/GetAtt to make sure the resource being related to is available when there is a resource condition.",
+ "Id": "W1001",
+ "ShortDescription": "Ref/GetAtt to resource that is available when conditions are applied",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-ref.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_high_master.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 21,
+ "LineNumber": 311
+ },
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 311
+ }
+ },
+ "Message": "GetAtt to resource \"ProductionVpcTemplate\" that may not be available when condition \"EulaAccepted\" is False at Resources/ApplicationTemplate/Properties/Parameters/pDBPrivateSubnetA/Fn::GetAtt",
+ "Rule": {
+ "Description": "Check the Conditions that affect a Ref/GetAtt to make sure the resource being related to is available when there is a resource condition.",
+ "Id": "W1001",
+ "ShortDescription": "Ref/GetAtt to resource that is available when conditions are applied",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-ref.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_high_master.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 21,
+ "LineNumber": 315
+ },
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 315
+ }
+ },
+ "Message": "GetAtt to resource \"ProductionVpcTemplate\" that may not be available when condition \"EulaAccepted\" is False at Resources/ApplicationTemplate/Properties/Parameters/pDBPrivateSubnetB/Fn::GetAtt",
+ "Rule": {
+ "Description": "Check the Conditions that affect a Ref/GetAtt to make sure the resource being related to is available when there is a resource condition.",
+ "Id": "W1001",
+ "ShortDescription": "Ref/GetAtt to resource that is available when conditions are applied",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-ref.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_high_master.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 21,
+ "LineNumber": 320
+ },
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 320
+ }
+ },
+ "Message": "GetAtt to resource \"ProductionVpcTemplate\" that may not be available when condition \"EulaAccepted\" is False at Resources/ApplicationTemplate/Properties/Parameters/pDMZSubnetA/Fn::GetAtt",
+ "Rule": {
+ "Description": "Check the Conditions that affect a Ref/GetAtt to make sure the resource being related to is available when there is a resource condition.",
+ "Id": "W1001",
+ "ShortDescription": "Ref/GetAtt to resource that is available when conditions are applied",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-ref.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_high_master.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 21,
+ "LineNumber": 324
+ },
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 324
+ }
+ },
+ "Message": "GetAtt to resource \"ProductionVpcTemplate\" that may not be available when condition \"EulaAccepted\" is False at Resources/ApplicationTemplate/Properties/Parameters/pDMZSubnetB/Fn::GetAtt",
+ "Rule": {
+ "Description": "Check the Conditions that affect a Ref/GetAtt to make sure the resource being related to is available when there is a resource condition.",
+ "Id": "W1001",
+ "ShortDescription": "Ref/GetAtt to resource that is available when conditions are applied",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-ref.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_high_master.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 21,
+ "LineNumber": 345
+ },
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 345
+ }
+ },
+ "Message": "GetAtt to resource \"ProductionVpcTemplate\" that may not be available when condition \"EulaAccepted\" is False at Resources/ApplicationTemplate/Properties/Parameters/pProductionVPC/Fn::GetAtt",
+ "Rule": {
+ "Description": "Check the Conditions that affect a Ref/GetAtt to make sure the resource being related to is available when there is a resource condition.",
+ "Id": "W1001",
+ "ShortDescription": "Ref/GetAtt to resource that is available when conditions are applied",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-ref.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_high_master.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 21,
+ "LineNumber": 353
+ },
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 353
+ }
+ },
+ "Message": "GetAtt to resource \"LoggingTemplate\" that may not be available when condition \"EulaAccepted\" is False at Resources/ApplicationTemplate/Properties/Parameters/pSecurityAlarmTopic/Fn::GetAtt",
+ "Rule": {
+ "Description": "Check the Conditions that affect a Ref/GetAtt to make sure the resource being related to is available when there is a resource condition.",
+ "Id": "W1001",
+ "ShortDescription": "Ref/GetAtt to resource that is available when conditions are applied",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-ref.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_high_master.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 14,
+ "LineNumber": 445
+ },
+ "Start": {
+ "ColumnNumber": 5,
+ "LineNumber": 445
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (ProductionVpcTemplate), dependency already enforced by a \"Fn:GetAtt\" at Resources/ManagementVpcTemplate/Properties/Parameters/pRouteTableProdPublic/Fn::GetAtt/['ProductionVpcTemplate', 'Outputs.rRouteTableProdPublic']",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_high_master.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 14,
+ "LineNumber": 445
+ },
+ "Start": {
+ "ColumnNumber": 5,
+ "LineNumber": 445
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (ProductionVpcTemplate), dependency already enforced by a \"Fn:GetAtt\" at Resources/ManagementVpcTemplate/Properties/Parameters/pRouteTableProdPrivate/Fn::GetAtt/['ProductionVpcTemplate', 'Outputs.rRouteTableProdPrivate']",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_high_master.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 14,
+ "LineNumber": 445
+ },
+ "Start": {
+ "ColumnNumber": 5,
+ "LineNumber": 445
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (ProductionVpcTemplate), dependency already enforced by a \"Fn:GetAtt\" at Resources/ManagementVpcTemplate/Properties/Parameters/pProductionVPC/Fn::GetAtt/['ProductionVpcTemplate', 'Outputs.rVPCProduction']",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_high_master.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 21,
+ "LineNumber": 490
+ },
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 490
+ }
+ },
+ "Message": "GetAtt to resource \"ProductionVpcTemplate\" that may not be available when condition \"EulaAccepted\" is False at Resources/ManagementVpcTemplate/Properties/Parameters/pProductionVPC/Fn::GetAtt",
+ "Rule": {
+ "Description": "Check the Conditions that affect a Ref/GetAtt to make sure the resource being related to is available when there is a resource condition.",
+ "Id": "W1001",
+ "ShortDescription": "Ref/GetAtt to resource that is available when conditions are applied",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-ref.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_high_master.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 21,
+ "LineNumber": 498
+ },
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 498
+ }
+ },
+ "Message": "GetAtt to resource \"ProductionVpcTemplate\" that may not be available when condition \"EulaAccepted\" is False at Resources/ManagementVpcTemplate/Properties/Parameters/pRouteTableProdPrivate/Fn::GetAtt",
+ "Rule": {
+ "Description": "Check the Conditions that affect a Ref/GetAtt to make sure the resource being related to is available when there is a resource condition.",
+ "Id": "W1001",
+ "ShortDescription": "Ref/GetAtt to resource that is available when conditions are applied",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-ref.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_high_master.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 21,
+ "LineNumber": 502
+ },
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 502
+ }
+ },
+ "Message": "GetAtt to resource \"ProductionVpcTemplate\" that may not be available when condition \"EulaAccepted\" is False at Resources/ManagementVpcTemplate/Properties/Parameters/pRouteTableProdPublic/Fn::GetAtt",
+ "Rule": {
+ "Description": "Check the Conditions that affect a Ref/GetAtt to make sure the resource being related to is available when there is a resource condition.",
+ "Id": "W1001",
+ "ShortDescription": "Ref/GetAtt to resource that is available when conditions are applied",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-ref.html"
+ }
+ }
+]
diff --git a/test/fixtures/results/quickstart/non_strict/openshift.json b/test/fixtures/results/quickstart/non_strict/openshift.json
new file mode 100644
--- /dev/null
+++ b/test/fixtures/results/quickstart/non_strict/openshift.json
@@ -0,0 +1,128 @@
+[
+ {
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 18,
+ "LineNumber": 25
+ },
+ "Start": {
+ "ColumnNumber": 3,
+ "LineNumber": 25
+ }
+ },
+ "Message": "Mapping 'LinuxAMINameMap' is defined but not used",
+ "Rule": {
+ "Description": "Making sure the mappings defined are used",
+ "Id": "W7001",
+ "ShortDescription": "Check if Mappings are Used",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 14,
+ "LineNumber": 283
+ },
+ "Start": {
+ "ColumnNumber": 5,
+ "LineNumber": 283
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (OpenShiftNodeASG), dependency already enforced by a \"Ref\" at Resources/AnsibleConfigServer/Properties/UserData/Fn::Base64/Fn::Join/1/43/Ref/OpenShiftNodeASG",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 14,
+ "LineNumber": 283
+ },
+ "Start": {
+ "ColumnNumber": 5,
+ "LineNumber": 283
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (OpenShiftNodeASG), dependency already enforced by a \"Ref\" at Resources/AnsibleConfigServer/Properties/UserData/Fn::Base64/Fn::Join/1/88/Ref/OpenShiftNodeASG",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 13,
+ "LineNumber": 775
+ },
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 775
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (KeyGen), dependency already enforced by a \"Fn:GetAtt\" at Resources/GetRSA/Properties/ServiceToken/Fn::GetAtt/['KeyGen', 'Arn']",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 18,
+ "LineNumber": 804
+ },
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 804
+ }
+ },
+ "Message": "Fn::Sub isn't needed because there are no variables at Resources/KeyGen/Properties/Code/S3Key/Fn::Sub",
+ "Rule": {
+ "Description": "Checks sub strings to see if a variable is defined.",
+ "Id": "W1020",
+ "ShortDescription": "Sub isn't needed if it doesn't have a variable defined",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 14,
+ "LineNumber": 1085
+ },
+ "Start": {
+ "ColumnNumber": 5,
+ "LineNumber": 1085
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (GetRSA), dependency already enforced by a \"Fn:GetAtt\" at Resources/OpenShiftMasterASLaunchConfig/Metadata/AWS::CloudFormation::Init/GetPublicKey/files//root/.ssh/public.key/content/Fn::Join/1/1/Fn::GetAtt/['GetRSA', 'PUB']",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ }
+]
diff --git a/test/fixtures/templates/bad/resources/properties/value_non_strict.yaml b/test/fixtures/templates/bad/resources/properties/value_non_strict.yaml
new file mode 100644
--- /dev/null
+++ b/test/fixtures/templates/bad/resources/properties/value_non_strict.yaml
@@ -0,0 +1,51 @@
+AWSTemplateFormatVersion: '2010-09-09'
+Description: 'AWS CloudFormation Sample Template AutoScalingMultiAZWithNotifications:
+ Create a multi-az, load balanced and Auto Scaled sample web site running on an Apache
+ Web Serever. The application is configured to span all Availability Zones in the
+ region and is Auto-Scaled based on the CPU utilization of the web servers. Notifications
+ will be sent to the operator email address on scaling events. The instances are
+ load balanced with a simple health check against the default web page. **WARNING**
+ This template creates one or more Amazon EC2 instances and an Elastic Load Balancer.
+ You will be billed for the AWS resources used if you create a stack from this template.'
+Metadata:
+ cfn-lint:
+ config:
+ configure_rules:
+ E3012:
+ strict: False
+Resources:
+ ElasticLoadBalancer:
+ Type: AWS::ElasticLoadBalancing::LoadBalancer
+ Properties:
+ AvailabilityZones:
+ Fn::GetAZs: ''
+ CrossZone: 'badValue'
+ HealthCheck:
+ HealthyThreshold: '3'
+ Interval: '30'
+ Target: HTTP:80/
+ Timeout: '5'
+ UnhealthyThreshold: '5'
+ Listeners:
+ - InstancePort: '80'
+ LoadBalancerPort: '80'
+ Protocol: HTTP
+ WebServerScaleUpPolicy:
+ Properties:
+ AdjustmentType: ChangeInCapacity
+ AutoScalingGroupName:
+ Ref: WebServerGroup
+ Cooldown: 60
+ ScalingAdjustment: '1a'
+ Type: AWS::AutoScaling::ScalingPolicy
+ VpnGateway:
+ Type: AWS::EC2::VPNGateway
+ Properties:
+ AmazonSideAsn: 6300a
+ Type: String
+ Glue:
+ Type: AWS::Glue::Job
+ Properties:
+ AllocatedCapacity: 6300a
+ Command: {}
+ Role: String
diff --git a/test/fixtures/templates/good/resources/properties/value_non_strict.yaml b/test/fixtures/templates/good/resources/properties/value_non_strict.yaml
new file mode 100644
--- /dev/null
+++ b/test/fixtures/templates/good/resources/properties/value_non_strict.yaml
@@ -0,0 +1,55 @@
+AWSTemplateFormatVersion: '2010-09-09'
+Description: 'AWS CloudFormation Sample Template AutoScalingMultiAZWithNotifications:
+ Create a multi-az, load balanced and Auto Scaled sample web site running on an Apache
+ Web Serever. The application is configured to span all Availability Zones in the
+ region and is Auto-Scaled based on the CPU utilization of the web servers. Notifications
+ will be sent to the operator email address on scaling events. The instances are
+ load balanced with a simple health check against the default web page. **WARNING**
+ This template creates one or more Amazon EC2 instances and an Elastic Load Balancer.
+ You will be billed for the AWS resources used if you create a stack from this template.'
+Outputs:
+ URL:
+ Description: The URL of the website
+ Value:
+ Fn::Join:
+ - ''
+ - - http://
+ - Fn::GetAtt:
+ - ElasticLoadBalancer
+ - DNSName
+Resources:
+ ElasticLoadBalancer:
+ Type: AWS::ElasticLoadBalancing::LoadBalancer
+ Properties:
+ AvailabilityZones:
+ Fn::GetAZs: ''
+ CrossZone: 'True'
+ HealthCheck:
+ HealthyThreshold: '3'
+ Interval: '30'
+ Target: HTTP:80/
+ Timeout: '5'
+ UnhealthyThreshold: '5'
+ Listeners:
+ - InstancePort: '80'
+ LoadBalancerPort: '80'
+ Protocol: HTTP
+ WebServerScaleUpPolicy:
+ Properties:
+ AdjustmentType: ChangeInCapacity
+ AutoScalingGroupName:
+ Ref: WebServerGroup
+ Cooldown: 60
+ ScalingAdjustment: '1'
+ Type: AWS::AutoScaling::ScalingPolicy
+ VpnGateway:
+ Type: AWS::EC2::VPNGateway
+ Properties:
+ AmazonSideAsn: 6300
+ Type: String
+ Glue:
+ Type: AWS::Glue::Job
+ Properties:
+ AllocatedCapacity: 6300
+ Command: {}
+ Role: String
diff --git a/test/integration/test_directives.py b/test/integration/test_directives.py
--- a/test/integration/test_directives.py
+++ b/test/integration/test_directives.py
@@ -27,8 +27,7 @@ def setUp(self):
self.rules = RulesCollection(include_rules=['I'])
rulesdirs = [DEFAULT_RULESDIR]
for rulesdir in rulesdirs:
- self.rules.extend(
- RulesCollection.create_from_directory(rulesdir))
+ self.rules.create_from_directory(rulesdir)
def test_templates(self):
"""Test ignoring certain rules"""
diff --git a/test/integration/test_good_templates.py b/test/integration/test_good_templates.py
--- a/test/integration/test_good_templates.py
+++ b/test/integration/test_good_templates.py
@@ -27,8 +27,7 @@ def setUp(self):
self.rules = RulesCollection(include_rules=['I'])
rulesdirs = [DEFAULT_RULESDIR]
for rulesdir in rulesdirs:
- self.rules.extend(
- RulesCollection.create_from_directory(rulesdir))
+ self.rules.create_from_directory(rulesdir)
self.filenames = {
'generic': {
diff --git a/test/integration/test_quickstart_templates.py b/test/integration/test_quickstart_templates.py
--- a/test/integration/test_quickstart_templates.py
+++ b/test/integration/test_quickstart_templates.py
@@ -28,8 +28,7 @@ def setUp(self):
self.rules = RulesCollection(include_rules=['I'], include_experimental=True)
rulesdirs = [DEFAULT_RULESDIR]
for rulesdir in rulesdirs:
- self.rules.extend(
- RulesCollection.create_from_directory(rulesdir))
+ self.rules.create_from_directory(rulesdir)
self.filenames = {
'config_rule': {
diff --git a/test/integration/test_quickstart_templates_non_strict.py b/test/integration/test_quickstart_templates_non_strict.py
new file mode 100644
--- /dev/null
+++ b/test/integration/test_quickstart_templates_non_strict.py
@@ -0,0 +1,84 @@
+"""
+ Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ software and associated documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to use, copy, modify,
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
+import json
+from cfnlint import RulesCollection, Runner # pylint: disable=E0401
+from cfnlint.core import DEFAULT_RULESDIR # pylint: disable=E0401
+import cfnlint.decode.cfn_yaml # pylint: disable=E0401
+from testlib.testcase import BaseTestCase
+
+
+class TestQuickStartTemplatesNonStrict(BaseTestCase):
+ """Test QuickStart Templates Parsing """
+ def setUp(self):
+ """ SetUp template object"""
+ self.rules = RulesCollection(
+ include_rules=['I'],
+ include_experimental=True,
+ configure_rules={'E3012': {'strict': 'false'}}
+ )
+ rulesdirs = [DEFAULT_RULESDIR]
+ for rulesdir in rulesdirs:
+ self.rules.create_from_directory(rulesdir)
+
+ self.filenames = {
+ 'nist_high_master': {
+ 'filename': 'test/fixtures/templates/quickstart/nist_high_master.yaml',
+ 'results_filename': 'test/fixtures/results/quickstart/non_strict/nist_high_master.json'
+ },
+ 'nist_application': {
+ 'filename': 'test/fixtures/templates/quickstart/nist_application.yaml',
+ 'results_filename': 'test/fixtures/results/quickstart/non_strict/nist_application.json'
+ },
+ 'openshift': {
+ 'filename': 'test/fixtures/templates/quickstart/openshift.yaml',
+ 'results_filename': 'test/fixtures/results/quickstart/non_strict/openshift.json'
+ },
+ 'cis_benchmark': {
+ 'filename': 'test/fixtures/templates/quickstart/cis_benchmark.yaml',
+ 'results_filename': 'test/fixtures/results/quickstart/non_strict/cis_benchmark.json'
+ }
+ }
+
+ def test_templates(self):
+ """Test Successful JSON Parsing"""
+ for _, values in self.filenames.items():
+ filename = values.get('filename')
+ failures = values.get('failures')
+ results_filename = values.get('results_filename')
+ template = cfnlint.decode.cfn_yaml.load(filename)
+
+ runner = Runner(self.rules, filename, template, ['us-east-1'])
+ matches = []
+ matches.extend(runner.transform())
+ if not matches:
+ matches.extend(runner.run())
+
+ if results_filename:
+ with open(results_filename) as json_data:
+ correct = json.load(json_data)
+
+ assert len(matches) == len(correct), 'Expected {} failures, got {} on {}'.format(len(correct), len(matches), filename)
+ for c in correct:
+ matched = False
+ for match in matches:
+ if c['Location']['Start']['LineNumber'] == match.linenumber and \
+ c['Location']['Start']['ColumnNumber'] == match.columnnumber and \
+ c['Rule']['Id'] == match.rule.id:
+ matched = True
+ assert matched is True, 'Expected error {} at line {}, column {} in matches for {}'.format(c['Rule']['Id'], c['Location']['Start']['LineNumber'], c['Location']['Start']['ColumnNumber'], filename)
+ else:
+ assert len(matches) == failures, 'Expected {} failures, got {} on {}'.format(failures, len(matches), filename)
diff --git a/test/module/cfn_json/test_cfn_json.py b/test/module/cfn_json/test_cfn_json.py
--- a/test/module/cfn_json/test_cfn_json.py
+++ b/test/module/cfn_json/test_cfn_json.py
@@ -30,8 +30,7 @@ def setUp(self):
self.rules = RulesCollection(include_experimental=True)
rulesdirs = [DEFAULT_RULESDIR]
for rulesdir in rulesdirs:
- self.rules.extend(
- RulesCollection.create_from_directory(rulesdir))
+ self.rules.create_from_directory(rulesdir)
self.filenames = {
"config_rule": {
diff --git a/test/module/cfn_yaml/test_yaml.py b/test/module/cfn_yaml/test_yaml.py
--- a/test/module/cfn_yaml/test_yaml.py
+++ b/test/module/cfn_yaml/test_yaml.py
@@ -29,8 +29,7 @@ def setUp(self):
self.rules = RulesCollection()
rulesdirs = [DEFAULT_RULESDIR]
for rulesdir in rulesdirs:
- self.rules.extend(
- RulesCollection.create_from_directory(rulesdir))
+ self.rules.create_from_directory(rulesdir)
self.filenames = {
"config_rule": {
diff --git a/test/module/config/test_cli_args.py b/test/module/config/test_cli_args.py
--- a/test/module/config/test_cli_args.py
+++ b/test/module/config/test_cli_args.py
@@ -64,3 +64,9 @@ def test_create_parser_config_file(self):
self.assertEqual(config.cli_args.templates, ['template1.yaml'])
self.assertEqual(config.cli_args.include_checks, ['I1234'])
self.assertEqual(config.cli_args.regions, ['us-west-1'])
+
+ def test_create_parser_rule_configuration(self):
+ """Test success run"""
+
+ config = cfnlint.config.CliArgs(['-x', 'E3012:strict=true', '-x', 'E3012:key=value,E3001:key=value'])
+ self.assertEqual(config.cli_args.configure_rules, {'E3012': {'key': 'value', 'strict': 'true'}, 'E3001': {'key': 'value'}})
diff --git a/test/module/config/test_config_file_args.py b/test/module/config/test_config_file_args.py
--- a/test/module/config/test_config_file_args.py
+++ b/test/module/config/test_config_file_args.py
@@ -82,3 +82,20 @@ def test_config_parser_fail_on_bad_config(self, yaml_mock):
with self.assertRaises(jsonschema.exceptions.ValidationError):
cfnlint.config.ConfigFileArgs()
+
+ @patch('cfnlint.config.ConfigFileArgs._read_config', create=True)
+ def test_config_parser_fail_on_config_rules(self, yaml_mock):
+ """ test the read call to the config parser is parsing configure rules correctly"""
+
+ yaml_mock.side_effect = [
+ {
+ 'configure_rules': {
+ 'E3012': {
+ 'strict': False
+ }
+ }
+ }, {}
+ ]
+
+ results = cfnlint.config.ConfigFileArgs()
+ self.assertEqual(results.file_args, {'configure_rules': {'E3012': {'strict': False}}})
diff --git a/test/module/config/test_template_args.py b/test/module/config/test_template_args.py
--- a/test/module/config/test_template_args.py
+++ b/test/module/config/test_template_args.py
@@ -37,10 +37,82 @@ def test_template_args(self):
'cfn-lint': {
'config': {
'regions': ['us-east-1', 'us-east-2'],
- 'ignore_checks': ['E2530']
+ 'ignore_checks': ['E2530'],
+ 'configure_rules': {
+ 'E3012': {
+ 'strict': 'false'
+ }
+ }
}
}
}
})
self.assertEqual(config.template_args['regions'], ['us-east-1', 'us-east-2'])
+ self.assertEqual(config.template_args['configure_rules'], {'E3012': {'strict': 'false'}})
+
+ def test_template_args_failure_bad_format(self):
+ """ test template args """
+ config = cfnlint.config.TemplateArgs({
+ 'Metadata': {
+ 'cfn-lint': {
+ 'config': {
+ 'configure_rules': [
+ {
+ 'E3012': {
+ 'strict': 'false'
+ }
+ }
+ ]
+ }
+ }
+ }
+ })
+
+ self.assertEqual(config.template_args.get('configure_rules'), None)
+
+ def test_template_args_failure_bad_value(self):
+ """ test template args """
+ config = cfnlint.config.TemplateArgs({
+ 'Metadata': {
+ 'cfn-lint': {
+ 'config': {
+ 'configure_rules': [
+ {
+ 'E3012': {
+ 'bad_value': 'false'
+ }
+ }
+ ]
+ }
+ }
+ }
+ })
+
+ self.assertEqual(config.template_args.get('configure_rules'), None)
+
+ def test_template_args_failure_good_and_bad_value(self):
+ """ test template args """
+ config = cfnlint.config.TemplateArgs({
+ 'Metadata': {
+ 'cfn-lint': {
+ 'config': {
+ 'configure_rules': [
+ {
+ 'A1': {
+ 'strict': 'false'
+ },
+ 'E3012': {
+ 'strict': 'false'
+ },
+ 'Z1': {
+ 'strict': 'false'
+ }
+ }
+ ]
+ }
+ }
+ }
+ })
+
+ self.assertEqual(config.template_args.get('configure_rules'), None)
diff --git a/test/module/core/test_get_rules.py b/test/module/core/test_get_rules.py
--- a/test/module/core/test_get_rules.py
+++ b/test/module/core/test_get_rules.py
@@ -26,7 +26,7 @@ def test_invalid_rule(self):
"""test invalid rules"""
err = None
try:
- cfnlint.core.get_rules(["invalid"], [], [])
+ cfnlint.core.get_rules(["invalid"], [], [], [])
except cfnlint.core.UnexpectedRuleException as e:
err = e
assert (type(err) == cfnlint.core.UnexpectedRuleException)
diff --git a/test/module/rule/__init__.py b/test/module/rule/__init__.py
new file mode 100644
--- /dev/null
+++ b/test/module/rule/__init__.py
@@ -0,0 +1,16 @@
+"""
+ Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ software and associated documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to use, copy, modify,
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
diff --git a/test/module/rule/test_rule.py b/test/module/rule/test_rule.py
new file mode 100644
--- /dev/null
+++ b/test/module/rule/test_rule.py
@@ -0,0 +1,86 @@
+"""
+ Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ software and associated documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to use, copy, modify,
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
+from cfnlint import CloudFormationLintRule # pylint: disable=E0401
+from testlib.testcase import BaseTestCase
+
+
+class TestCloudFormationRule(BaseTestCase):
+ """ Test CloudFormation Rule """
+ def test_base(self):
+ """ Test Base Rule """
+ class TestRule(CloudFormationLintRule):
+ """ Def Rule """
+ id = 'E1000'
+ shortdesc = 'Test Rule'
+ description = 'Test Rule Description'
+ source_url = 'https://github.com/aws-cloudformation/cfn-python-lint/'
+ tags = ['resources']
+
+ self.assertEqual(TestRule.id, 'E1000')
+ self.assertEqual(TestRule.shortdesc, 'Test Rule')
+ self.assertEqual(TestRule.description, 'Test Rule Description')
+ self.assertEqual(TestRule.source_url, 'https://github.com/aws-cloudformation/cfn-python-lint/')
+ self.assertEqual(TestRule.tags, ['resources'])
+
+ def test_config(self):
+ """ Test Configuration """
+ class TestRule(CloudFormationLintRule):
+ """ Def Rule """
+ id = 'E1000'
+ shortdesc = 'Test Rule'
+ description = 'Test Rule'
+ source_url = 'https://github.com/aws-cloudformation/cfn-python-lint/'
+ tags = ['resources']
+
+ def __init__(self):
+ """Init"""
+ super(TestRule, self).__init__()
+ self.config_definition = {
+ 'testBoolean': {
+ 'default': True,
+ 'type': 'boolean'
+ },
+ 'testString': {
+ 'default': 'default',
+ 'type': 'string'
+ },
+ 'testInteger': {
+ 'default': 1,
+ 'type': 'integer'
+ }
+ }
+ self.configure()
+
+ def get_config(self):
+ """ Get the Config """
+ return self.config
+
+ rule = TestRule()
+ config = rule.get_config()
+ self.assertTrue(config.get('testBoolean'))
+ self.assertEqual(config.get('testString'), 'default')
+ self.assertEqual(config.get('testInteger'), 1)
+
+ rule.configure({
+ 'testBoolean': 'false',
+ 'testString': 'new',
+ 'testInteger': 2
+ })
+
+ self.assertFalse(config.get('testBoolean'))
+ self.assertEqual(config.get('testString'), 'new')
+ self.assertEqual(config.get('testInteger'), 2)
diff --git a/test/module/test_duplicate.py b/test/module/test_duplicate.py
--- a/test/module/test_duplicate.py
+++ b/test/module/test_duplicate.py
@@ -29,8 +29,7 @@ def setUp(self):
self.rules = RulesCollection()
rulesdirs = [DEFAULT_RULESDIR]
for rulesdir in rulesdirs:
- self.rules.extend(
- RulesCollection.create_from_directory(rulesdir))
+ self.rules.create_from_directory(rulesdir)
def test_success_run(self):
"""Test success run"""
diff --git a/test/module/test_null_values.py b/test/module/test_null_values.py
--- a/test/module/test_null_values.py
+++ b/test/module/test_null_values.py
@@ -29,8 +29,7 @@ def setUp(self):
self.rules = RulesCollection()
rulesdirs = [DEFAULT_RULESDIR]
for rulesdir in rulesdirs:
- self.rules.extend(
- RulesCollection.create_from_directory(rulesdir))
+ self.rules.create_from_directory(rulesdir)
def test_success_run(self):
"""Test success run"""
diff --git a/test/module/test_rules_collections.py b/test/module/test_rules_collections.py
--- a/test/module/test_rules_collections.py
+++ b/test/module/test_rules_collections.py
@@ -27,8 +27,7 @@ def setUp(self):
self.rules = RulesCollection()
rulesdirs = [DEFAULT_RULESDIR]
for rulesdir in rulesdirs:
- self.rules.extend(
- RulesCollection.create_from_directory(rulesdir))
+ self.rules.create_from_directory(rulesdir)
def test_rule_ids_unique(self):
"""Test Rule IDs are Unique"""
diff --git a/test/rules/__init__.py b/test/rules/__init__.py
--- a/test/rules/__init__.py
+++ b/test/rules/__init__.py
@@ -14,6 +14,7 @@
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
"""
+import cfnlint.config
from cfnlint import Runner, RulesCollection
from testlib.testcase import BaseTestCase
@@ -36,6 +37,16 @@ def helper_file_positive(self):
failures = good_runner.run()
assert [] == failures, 'Got failures {} on {}'.format(failures, filename)
+ def helper_file_rule_config(self, filename, config, err_count):
+ """Success test with rule config included"""
+ template = self.load_template(filename)
+ self.collection.rules[0].configure(config)
+ good_runner = Runner(self.collection, filename, template, ['us-east-1'], [])
+ good_runner.transform()
+ failures = good_runner.run()
+ self.assertEqual(err_count, len(failures), 'Expected {} failures but got {} on {}'.format(err_count, failures, filename))
+ self.collection.rules[0].configure(config)
+
def helper_file_positive_template(self, filename):
"""Success test with template parameter"""
template = self.load_template(filename)
diff --git a/test/rules/resources/properties/test_value_primitive_type.py b/test/rules/resources/properties/test_value_primitive_type.py
--- a/test/rules/resources/properties/test_value_primitive_type.py
+++ b/test/rules/resources/properties/test_value_primitive_type.py
@@ -27,13 +27,24 @@ def setUp(self):
success_templates = [
'test/fixtures/templates/good/generic.yaml',
- 'test/fixtures/templates/good/resource_properties.yaml'
+ 'test/fixtures/templates/good/resource_properties.yaml',
]
def test_file_positive(self):
"""Test Positive"""
self.helper_file_positive()
+ def test_template_config(self):
+ """Test strict false"""
+ self.helper_file_rule_config(
+ 'test/fixtures/templates/good/resources/properties/value_non_strict.yaml',
+ {'strict': False}, 0
+ )
+ self.helper_file_rule_config(
+ 'test/fixtures/templates/bad/resources/properties/value_non_strict.yaml',
+ {'strict': False}, 4
+ )
+
def test_file_negative_nist_high_master(self):
"""Generic Test failure"""
self.helper_file_negative('test/fixtures/templates/quickstart/nist_high_master.yaml', 6)
@@ -49,3 +60,45 @@ def test_file_negative_nist_config_rules(self):
def test_file_negative_generic(self):
"""Generic Test failure"""
self.helper_file_negative('test/fixtures/templates/bad/generic.yaml', 7)
+
+
+class TestResourceValuePrimitiveTypeNonStrict(BaseRuleTestCase):
+ """Test Primitive Value Types"""
+ def setUp(self):
+ """Setup"""
+ self.rule = ValuePrimitiveType()
+ self.rule.config['strict'] = False
+
+ def test_file_positive(self):
+ """Test Positive"""
+ # Test Booleans
+ self.assertEqual(len(self.rule._value_check('True', ['test'], 'Boolean', {})), 0)
+ self.assertEqual(len(self.rule._value_check('False', ['test'], 'Boolean', {})), 0)
+ self.assertEqual(len(self.rule._value_check(1, ['test'], 'Boolean', {})), 1)
+ # Test Strings
+ self.assertEqual(len(self.rule._value_check(1, ['test'], 'String', {})), 0)
+ self.assertEqual(len(self.rule._value_check(2, ['test'], 'String', {})), 0)
+ self.assertEqual(len(self.rule._value_check(True, ['test'], 'String', {})), 0)
+ # Test Integer
+ self.assertEqual(len(self.rule._value_check('1', ['test'], 'Integer', {})), 0)
+ self.assertEqual(len(self.rule._value_check('1.2', ['test'], 'Integer', {})), 1)
+ self.assertEqual(len(self.rule._value_check(True, ['test'], 'Integer', {})), 1)
+ self.assertEqual(len(self.rule._value_check('test', ['test'], 'Integer', {})), 1)
+ # Test Double
+ self.assertEqual(len(self.rule._value_check('1', ['test'], 'Double', {})), 0)
+ self.assertEqual(len(self.rule._value_check('1.2', ['test'], 'Double', {})), 0)
+ self.assertEqual(len(self.rule._value_check(1, ['test'], 'Double', {})), 0)
+ self.assertEqual(len(self.rule._value_check(True, ['test'], 'Double', {})), 1)
+ self.assertEqual(len(self.rule._value_check('test', ['test'], 'Double', {})), 1)
+ # Test Long
+ self.assertEqual(len(self.rule._value_check(str(65536 * 65536), ['test'], 'Long', {})), 0)
+ self.assertEqual(len(self.rule._value_check('1', ['test'], 'Long', {})), 0)
+ self.assertEqual(len(self.rule._value_check('1.2', ['test'], 'Long', {})), 1)
+ self.assertEqual(len(self.rule._value_check(1.2, ['test'], 'Long', {})), 1)
+ self.assertEqual(len(self.rule._value_check(65536 * 65536, ['test'], 'Long', {})), 0)
+ self.assertEqual(len(self.rule._value_check(True, ['test'], 'Long', {})), 1)
+ self.assertEqual(len(self.rule._value_check('test', ['test'], 'Long', {})), 1)
+ # Test Unknown type doesn't return error
+ self.assertEqual(len(self.rule._value_check(1, ['test'], 'Unknown', {})), 0)
+ self.assertEqual(len(self.rule._value_check('1', ['test'], 'Unknown', {})), 0)
+ self.assertEqual(len(self.rule._value_check(True, ['test'], 'Unknown', {})), 0)
|
E3012 Property Type Checks are Too Strict
*cfn-lint version: 0.9.2*
There are many properties that demand a "String" type when they are integer in nature. Here are examples:
* `AWS::AutoScaling::AutoScalingGroup/Properties/DesiredCapacity`
* `AWS::AutoScaling::AutoScalingGroup/Properties/MaxSize`
* `AWS::AutoScaling::AutoScalingGroup/Properties/MinSize`
* `AWS::Route53::RecordSet/Properties/TTL`
This list is actually pretty huge, which is why I haven't wanted to create an override spec. Since these are all accepted as numbers by CloudFormation, we should be able to treat that as such.
|
@cmmeyer may be able to shed some light on why one is picked over the other as I think it can be pretty random at times. I think there are even cases where something like port will be string or int depending on the resource.
This is related to an earlier discussion #42. At the time of that discussion there was an issue where CloudFormation wouldn't convert an int to a string. I retested that scenario tonight and it looks like that has been fixed. The original concern is that CloudFormation didn't always convert between types and we didn't have any idea of where we could trust it to the needful or when it would fail. So it was easier to stick to the spec and force that type.
Originally cfn-lint would would try convert a string to an int if an int was required but a string was provided. The annoying part as you describe is that if the type is string we wouldn't know to try and convert it. Which brings up a great discussion to this topic. If the spec asks for a string where it can only be an int why wouldn't we just make it an int.
To be clear on what your desired outcome is...
1. Is that those values should really be of type integer (not of type string)
1. that cfn-lints type checking is to strict and needs to be relaxed
1. Or maybe a combination of both
More information here: https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype
There indeed are "weird" types indeed, but that's all in the Specification files. If the Spec files specifies a type is a String, it has to be a String
> There are many properties that demand a "String" type when they are integer in nature.
I consider this an assumption. We're working with automated systems. In these systems the specification/API tells what the type of a property is. This might go against personal feelings or ideas, but that is not the issue. If an API expects a String, the value is a String... Even if the names gives a feeling that it should be a different type....
Besides, consider the fact that maybe it's on purpose. Maybe the Cfn team is planning on support TTL in a `"5h"` format 🤔
|
2019-02-04T12:55:09Z
|
[] |
[] |
aws-cloudformation/cfn-lint
| 644 |
aws-cloudformation__cfn-lint-644
|
[
"643"
] |
387836c8d3479368712a86ec29e1491ddc49ab45
|
diff --git a/src/cfnlint/conditions.py b/src/cfnlint/conditions.py
--- a/src/cfnlint/conditions.py
+++ b/src/cfnlint/conditions.py
@@ -96,17 +96,24 @@ class Condition(object):
Equals = None
Influenced_Equals = None
- def __init__(self, template, name):
+ def __init__(self, template, name=None, sub_condition=None):
self.And = []
self.Or = []
self.Not = []
self.Influenced_Equals = {}
- value = template.get('Conditions', {}).get(name, {})
- try:
- self.process_condition(template, value)
- except ConditionParseError:
- LOGGER.debug('Error parsing condition: %s', name)
- self.Equal = None
+ if name is not None:
+ value = template.get('Conditions', {}).get(name, {})
+ try:
+ self.process_condition(template, value)
+ except ConditionParseError:
+ LOGGER.debug('Error parsing condition: %s', name)
+ self.Equals = None
+ elif sub_condition is not None:
+ try:
+ self.process_condition(template, sub_condition)
+ except ConditionParseError:
+ LOGGER.debug('Error parsing condition: %s', name)
+ self.Equals = None
def test(self, scenarios):
""" Test a condition based on a scenario """
@@ -123,7 +130,6 @@ def test(self, scenarios):
if self.Not:
for n in self.Not:
return not n.test(scenarios)
-
return self.Equals.test(scenarios)
def process_influenced_equal(self, equal):
@@ -172,7 +178,11 @@ def process_function(self, template, values):
if isinstance(value, dict):
if len(value) == 1:
for k, v in value.items():
- if k == 'Condition':
+ if k == cfnlint.helpers.FUNCTION_EQUALS:
+ equal = Equals(v)
+ self.process_influenced_equal(equal)
+ results.append(equal)
+ elif k == 'Condition':
condition = Condition(template, v)
results.append(condition)
for i_e_k, i_e_v in condition.Influenced_Equals.items():
@@ -180,10 +190,14 @@ def process_function(self, template, values):
self.Influenced_Equals[i_e_k] = set()
for s_v in i_e_v:
self.Influenced_Equals[i_e_k].add(s_v)
- elif k == cfnlint.helpers.FUNCTION_EQUALS:
- equal = Equals(v)
- self.process_influenced_equal(equal)
- results.append(equal)
+ else:
+ condition = Condition(template, None, value)
+ results.append(condition)
+ for i_e_k, i_e_v in condition.Influenced_Equals.items():
+ if not self.Influenced_Equals.get(i_e_k):
+ self.Influenced_Equals[i_e_k] = set()
+ for s_v in i_e_v:
+ self.Influenced_Equals[i_e_k].add(s_v)
return results
|
diff --git a/test/module/conditions/test_condition.py b/test/module/conditions/test_condition.py
--- a/test/module/conditions/test_condition.py
+++ b/test/module/conditions/test_condition.py
@@ -216,3 +216,47 @@ def test_bad_format_condition_bad_equals_size(self):
self.assertEqual(result.Not, []) # No Not
self.assertIsNone(result.Equals)
self.assertEqual(result.Influenced_Equals, {})
+
+ def test_nested_conditions(self):
+ """ Test getting a condition setup """
+ template = {
+ 'Conditions': {
+ 'condition1': {
+ 'Fn::Equals': [{'Ref': 'AWS::Region'}, 'us-east-1']
+ },
+ 'condition2': {
+ 'Fn::Equals': [{'Ref': 'myEnvironment'}, 'prod']
+ },
+ 'orCondition': {'Fn::Or': [
+ {'Fn::And': [{'Condition': 'condition1'}, {'Condition': 'condition2'}]},
+ {'Fn::Or': [
+ {'Fn::Equals': [{'Ref': 'AWS::Region'}, 'us-west-2']},
+ {'Fn::Equals': [{'Ref': 'AWS::Region'}, 'eu-north-1']},
+ ]}
+ ]}
+ }
+ }
+ result = conditions.Condition(template, 'orCondition')
+ self.assertEqual(
+ result.Influenced_Equals,
+ {
+ '36305712594f5e76fbcbbe2f82cd3f850f6018e9': {'us-east-1', 'us-west-2', 'eu-north-1'},
+ 'd60d12101638186a2c742b772ec8e69b3e2382b9': {'prod'}
+ }
+ )
+ self.assertTrue(
+ result.test({
+ '36305712594f5e76fbcbbe2f82cd3f850f6018e9': 'us-east-1',
+ 'd60d12101638186a2c742b772ec8e69b3e2382b9': 'prod'}))
+ self.assertFalse(
+ result.test({
+ '36305712594f5e76fbcbbe2f82cd3f850f6018e9': 'us-east-1',
+ 'd60d12101638186a2c742b772ec8e69b3e2382b9': 'dev'}))
+ self.assertFalse(
+ result.test({
+ '36305712594f5e76fbcbbe2f82cd3f850f6018e9': 'us-west-1',
+ 'd60d12101638186a2c742b772ec8e69b3e2382b9': 'prod'}))
+ self.assertTrue(
+ result.test({
+ '36305712594f5e76fbcbbe2f82cd3f850f6018e9': 'us-west-2',
+ 'd60d12101638186a2c742b772ec8e69b3e2382b9': 'dev'}))
diff --git a/test/module/conditions/test_conditions.py b/test/module/conditions/test_conditions.py
--- a/test/module/conditions/test_conditions.py
+++ b/test/module/conditions/test_conditions.py
@@ -59,7 +59,6 @@ def test_success_size_of_conditions(self):
"""Test success run"""
self.assertEqual(len(self.conditions.Conditions), 9)
self.assertEqual(len(self.conditions.Parameters), 2)
- print(self.conditions.Parameters)
self.assertListEqual(self.conditions.Parameters['55caa18684cddafa866bdb947fb31ea563b2ea73'], ['None', 'Single NAT', 'High Availability'])
def test_success_is_production(self):
|
E0002 Unknown exception while processing rule W1001
*cfn-lint version: (`cfn-lint --version`)* cfn-lint 0.13.1
*Description of issue.* I have a large template. Still working on creating a reproducible test case. I can send this template to you privately if you give me an email address.
This is what I see:
```
$ cfn-lint standards/region.cfn.yaml
E0002 Unknown exception while processing rule W1001: 'NoneType' object has no attribute 'test'
standards/region.cfn.yaml:1:1
```
When I re-run with `-d` logging, the output ends with this traceback:
```pytb
File "/usr/local/lib/python3.7/site-packages/cfnlint/__init__.py", line 186, in run_check
return check(*args)
File "/usr/local/lib/python3.7/site-packages/cfnlint/__init__.py", line 77, in wrapper
results = match_function(self, filename, cfn, *args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/cfnlint/__init__.py", line 106, in matchall
return self.match(cfn) # pylint: disable=E1102
File "/usr/local/lib/python3.7/site-packages/cfnlint/rules/functions/RelationshipConditions.py", line 43, in match
scenarios = cfn.is_resource_available(ref_obj, value)
File "/usr/local/lib/python3.7/site-packages/cfnlint/__init__.py", line 911, in is_resource_available
scenarios = self.conditions.get_scenarios(test_path_conditions.keys())
File "/usr/local/lib/python3.7/site-packages/cfnlint/conditions.py", line 379, in get_scenarios
r_condition[condition] = self.Conditions.get(condition).test(scenario)
File "/usr/local/lib/python3.7/site-packages/cfnlint/conditions.py", line 115, in test
if not a.test(scenarios):
File "/usr/local/lib/python3.7/site-packages/cfnlint/conditions.py", line 127, in test
return self.Equals.test(scenarios)
AttributeError: 'NoneType' object has no attribute 'test'
```
Adding some debugging before line 127 in `conditions.py` shows that `self.Equals` is None when this happens.
|
We've got some new conditional parsing logic that really tried to dig in on the different scenarios. Sounds like you've found the edges of it. We're evaluating the efficacy down each of the different paths within the conditions of the template. Sounds like there's something we're not catching in your Fn:If logic.
@alexjurkiewicz At the last I would just need your conditions block. I'll do some digging into how that could happen.
I've sent you the full template via aws developers slack
On Wed, 6 Feb 2019 at 01:24 kddejong <[email protected]> wrote:
> @alexjurkiewicz <https://github.com/alexjurkiewicz> At the last I would
> just need your conditions block. I'll do some digging into how that could
> happen.
>
> —
> You are receiving this because you were mentioned.
>
>
> Reply to this email directly, view it on GitHub
> <https://github.com/awslabs/cfn-python-lint/issues/643#issuecomment-460655708>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AAXKdZs3Lhk46pkcwcUOMxrFstw-G8z-ks5vKZQagaJpZM4aih3s>
> .
>
Thanks. I think I got this figured out. Should have a fix in shortly.
|
2019-02-06T01:21:21Z
|
[] |
[] |
aws-cloudformation/cfn-lint
| 648 |
aws-cloudformation__cfn-lint-648
|
[
"647"
] |
76a1a61c50c5ebd4811e55b7d958233609216730
|
diff --git a/src/cfnlint/rules/resources/properties/Properties.py b/src/cfnlint/rules/resources/properties/Properties.py
--- a/src/cfnlint/rules/resources/properties/Properties.py
+++ b/src/cfnlint/rules/resources/properties/Properties.py
@@ -80,7 +80,7 @@ def primitivetypecheck(self, value, primtype, proppath):
def check_list_for_condition(self, text, prop, parenttype, resourcename, propspec, path):
"""Checks lists that are a dict for conditions"""
matches = []
- if len(text[prop]) == 1:
+ if len(text[prop]) == 1: # pylint: disable=R1702
for sub_key, sub_value in text[prop].items():
if sub_key in cfnlint.helpers.CONDITION_FUNCTIONS:
if len(sub_value) == 3:
@@ -98,11 +98,26 @@ def check_list_for_condition(self, text, prop, parenttype, resourcename, propspe
if len(if_v) == 1:
for d_k, d_v in if_v.items():
if d_k != 'Ref' or d_v != 'AWS::NoValue':
- message = 'Property {0} should be of type List for resource {1} at {2}'
- matches.append(
- RuleMatch(
- condition_path,
- message.format(prop, resourcename, ('/'.join(str(x) for x in condition_path)))))
+ if d_k == 'Fn::GetAtt':
+ resource_name = None
+ if isinstance(d_v, list):
+ resource_name = d_v[0]
+ elif isinstance(d_v, six.string_types):
+ resource_name = d_v.split('.')[0]
+ if resource_name:
+ resource_type = self.cfn.template.get('Resources', {}).get(resource_name, {}).get('Type')
+ if not (resource_type.startswith('Custom::')):
+ message = 'Property {0} should be of type List for resource {1} at {2}'
+ matches.append(
+ RuleMatch(
+ condition_path,
+ message.format(prop, resourcename, ('/'.join(str(x) for x in condition_path)))))
+ else:
+ message = 'Property {0} should be of type List for resource {1} at {2}'
+ matches.append(
+ RuleMatch(
+ condition_path,
+ message.format(prop, resourcename, ('/'.join(str(x) for x in condition_path)))))
else:
message = 'Property {0} should be of type List for resource {1} at {2}'
matches.append(
|
diff --git a/test/fixtures/templates/good/resource_properties.yaml b/test/fixtures/templates/good/resource_properties.yaml
--- a/test/fixtures/templates/good/resource_properties.yaml
+++ b/test/fixtures/templates/good/resource_properties.yaml
@@ -313,6 +313,11 @@ Parameters:
Default: "foo.com, bar.com"
Conditions:
HasSingleClusterInstance: !Equals [!Ref 'AWS::Region', 'us-east-1']
+ Conditions:
+ ConditionTrue:
+ Fn::Equals:
+ - ""
+ - ""
Resources:
CPUAlarmHigh:
Properties:
@@ -667,3 +672,31 @@ Resources:
GroupDescription: test
SecurityGroupIngress:
Fn::FindInMap: [ runtime, us-east-1, production ]
+ MyCustomEnvironmentVariables:
+ Type: Custom::EnvironmentVariables
+ Properties:
+ ServiceToken:
+ Fn::ImportValue: "MyServiceToken"
+ String: "envvar1=1, envvar2=2"
+
+ ProjectBuild:
+ Type: AWS::CodeBuild::Project
+ Properties:
+ Name: "My Project"
+ Description: "My Description"
+ Artifacts:
+ Type: CODEPIPELINE
+ ServiceRole:
+ Fn::ImportValue: "ServiceRole"
+ Environment:
+ ComputeType: BUILD_GENERAL1_SMALL
+ Image: aws/codebuild/python:3.7.1
+ Type: LINUX_CONTAINER
+ EnvironmentVariables:
+ Fn::If:
+ - ConditionTrue
+ - Fn::GetAtt: [MyCustomEnvironmentVariables, Variables]
+ - Ref: AWS::NoValue
+ Source:
+ BuildSpec: buildspec.yaml
+ Type: CODEPIPELINE
|
E3002 received when using Fn::GetAtt in an Fn::If for a property that should be a list
*cfn-lint version: (0.13.2)*
*E3002 false positive when using Fn::If and Fn::GetAtt in an AWS::CodeBuild::Project's EnvironmentVariables*
Please provide as much information as possible:
* Template linting issues:
* Please provide a CloudFormation sample that generated the issue.
Spec Override:
```json
{
"ResourceTypes": {
"Custom::EnvironmentVariables": {
"Documentation": "https://github.com/IntuitiveWebSolutions/BriteDevelopment/blob/master/CustomResources.md#yaml-parser",
"Properties": {
"ServiceToken": {
"PrimitiveType": "String",
"Required": true,
"UpdateType": "Immutable"
},
"String": {
"PrimitiveType": "String",
"Required": true,
"UpdateType": "Mutable"
}
},
"Attributes": {
"Variables": {
"ItemType": "AWS::CodeBuild::Project.EnvironmentVariable",
"Type": "List"
}
}
}
},
"ResourceSpecificationVersion": "2.11.0"
}
```
Example template:
```yaml
Conditions:
ConditionTrue:
Fn::Equals:
- ""
- ""
Resources:
MyCustomEnvironmentVariables:
Type: Custom::EnvironmentVariables
Properties:
ServiceToken:
Fn::ImportValue: "MyServiceToken"
String: "envvar1=1, envvar2=2"
ProjectBuild:
Type: AWS::CodeBuild::Project
Properties:
Name: "My Project"
Description: "My Description"
Artifacts:
Type: CODEPIPELINE
ServiceRole:
Fn::ImportValue: "ServiceRole"
Environment:
ComputeType: BUILD_GENERAL1_SMALL
Image: aws/codebuild/python:3.7.1
Type: LINUX_CONTAINER
EnvironmentVariables:
Fn::If:
- ConditionTrue
- Fn::GetAtt: [MyCustomEnvironmentVariables, Variables]
- Ref: AWS::NoValue
Source:
BuildSpec: buildspec.yaml
Type: CODEPIPELINE
```
* If present, please add links to the (official) documentation for clarification.
The Custom::EnvironmentVariables sets the value of the attribute `Variables` with a list of items meeting the definition of `AWS::CodeBuild::Project.EnvironmentVariable` found [here](https://raw.githubusercontent.com/awslabs/cfn-python-lint/master/src/cfnlint/data/CloudSpecs/us-east-1.json)
* Bug Report:
The above CloudFormation is valid, however, cfn-lint gripes with E3002 when using a conditional statement to set `EnvironmentVariables` to the <List> attribute provided by the `Custom::EnvironmentVariables` resource.
Example usage:
$ cfn-lint -o specs.json example.yaml
E3002 Property EnvironmentVariables should be of type List for resource ProjectBuild at Resources/ProjectBuild/Properties/Environment/EnvironmentVariables/Fn::If/1
example.yaml:30:11
In cfnlint/rules/resources/properties/Properties.py:100 d_k is "Fn::GetAtt" and d_v is ['MyCustomEnvironmentVariables', 'Variables'] which results in the false positive being emitted.
|
2019-02-08T00:53:08Z
|
[] |
[] |
|
aws-cloudformation/cfn-lint
| 659 |
aws-cloudformation__cfn-lint-659
|
[
"657"
] |
fae9468768fae73b1663f16f2650874663f242a1
|
diff --git a/src/cfnlint/rules/resources/properties/ValueRefGetAtt.py b/src/cfnlint/rules/resources/properties/ValueRefGetAtt.py
--- a/src/cfnlint/rules/resources/properties/ValueRefGetAtt.py
+++ b/src/cfnlint/rules/resources/properties/ValueRefGetAtt.py
@@ -140,8 +140,7 @@ def check_value_getatt(self, value, path, **kwargs):
# Nested Stack Outputs
# if its a string type we are good and return matches
# if its a list its a failure as Outputs can only be strings
-
- if is_value_a_list:
+ if is_value_a_list and property_type == 'List':
message = 'CloudFormation stack outputs need to be strings not lists at {0}'
matches.append(RuleMatch(path, message.format('/'.join(map(str, path)))))
|
diff --git a/test/fixtures/templates/good/resources/properties/value.yaml b/test/fixtures/templates/good/resources/properties/value.yaml
--- a/test/fixtures/templates/good/resources/properties/value.yaml
+++ b/test/fixtures/templates/good/resources/properties/value.yaml
@@ -125,3 +125,7 @@ Resources:
Value: '50'
SecurityGroups:
- !GetAtt SubStack.Outputs.SecurityGroups
+ Listener:
+ Type: AWS::ElasticLoadBalancingV2::Listener
+ Properties:
+ LoadBalancerArn: !GetAtt SubStack.Outputs.LoadBalancerArn
|
!GetAtt reference lint error
Hello,
Getting validation error on `AWS::ElasticLoadBalancingV2::Listener` property `LoadBalancerArn` when the `LoadBalancerArn` is referenced using !GetAtt nested-stack-name.Outputs.LoadbalancerArn
`[cfn-lint] E3008:CloudFormation stack outputs need to be strings not lists at Resources/ApiGwNlbListener/Properties/LoadBalancerArn/Fn::GetAtt
`
|
2019-02-14T02:04:31Z
|
[] |
[] |
|
aws-cloudformation/cfn-lint
| 674 |
aws-cloudformation__cfn-lint-674
|
[
"673"
] |
532ef836d3d0e10eafd0c41b398a8cfedbcce0b1
|
diff --git a/src/cfnlint/config.py b/src/cfnlint/config.py
--- a/src/cfnlint/config.py
+++ b/src/cfnlint/config.py
@@ -21,8 +21,8 @@
import json
import os
import six
-import yaml
import jsonschema
+import cfnlint.decode.cfn_yaml
from cfnlint.version import __version__
try: # pragma: no cover
from pathlib import Path
@@ -208,7 +208,7 @@ def _read_config(self, config):
if self._has_file(config):
LOGGER.debug('Parsing CFNLINTRC')
- config_template = yaml.safe_load(config.read_text())
+ config_template = cfnlint.decode.cfn_yaml.load(str(config))
if not config_template:
config_template = {}
|
diff --git a/test/fixtures/configs/cfnlintrc_read.yaml b/test/fixtures/configs/cfnlintrc_read.yaml
new file mode 100644
--- /dev/null
+++ b/test/fixtures/configs/cfnlintrc_read.yaml
@@ -0,0 +1,4 @@
+templates:
+- test/fixtures/templates/good/**/*.yaml
+include_checks:
+- I
diff --git a/test/module/config/test_config_file_args.py b/test/module/config/test_config_file_args.py
--- a/test/module/config/test_config_file_args.py
+++ b/test/module/config/test_config_file_args.py
@@ -19,6 +19,10 @@
import jsonschema
import cfnlint.config # pylint: disable=E0401
from testlib.testcase import BaseTestCase
+try: # pragma: no cover
+ from pathlib import Path
+except ImportError: # pragma: no cover
+ from pathlib2 import Path
LOGGER = logging.getLogger('cfnlint')
@@ -31,6 +35,20 @@ def tearDown(self):
for handler in LOGGER.handlers:
LOGGER.removeHandler(handler)
+ def test_config_parser_read_config(self):
+ """ Testing one file successful """
+ # cfnlintrc_mock.return_value.side_effect = [Mock(return_value=True), Mock(return_value=False)]
+ config = cfnlint.config.ConfigFileArgs()
+ config_file = Path('test/fixtures/configs/cfnlintrc_read.yaml')
+ config_template = config._read_config(config_file)
+ self.assertEqual(
+ config_template,
+ {
+ 'templates': ['test/fixtures/templates/good/**/*.yaml'],
+ 'include_checks': ['I']
+ }
+ )
+
@patch('cfnlint.config.ConfigFileArgs._read_config', create=True)
def test_config_parser_read(self, yaml_mock):
""" Testing one file successful """
|
AttributeError: 'PosixPath' object has no attribute 'read_text'
*cfn-lint version:*
0.9.x & 0.11.x
*Description of issue.*
When running `cfn-lint -c I -t <path to template.yml> -a <path to rules>` with a .cfnlintrc file, I receive the error from here:
https://github.com/awslabs/cfn-python-lint/blob/master/src/cfnlint/config.py#L211
*Please provide as much information as possible:*
When running `cfn-lint -c I -t <path to template.yml> -a <path to rules>` with a .cfnlintrc file in my root of my workspace, I get the following error:
```
File "/REDACTED/cfnlint/config.py", line 211, in _read_config line 211, in _read_config
config_template = yaml.safe_load(config.read_text())
AttributeError: 'PosixPath' object has no attribute 'read_text'
```
I believe read_text is not supported until Python 3.5.3 per some other Github Issues I saw on this in other repos.
Looking into the code-coverage looks like that line is not covered which is why its not failing the build - https://codecov.io/gh/awslabs/cfn-python-lint/src/master/src/cfnlint/config.py#L211
|
2019-02-26T01:31:16Z
|
[] |
[] |
|
aws-cloudformation/cfn-lint
| 681 |
aws-cloudformation__cfn-lint-681
|
[
"623"
] |
8f9cf11942fac5f832e67f2e172f91c90dafb612
|
diff --git a/src/cfnlint/rules/resources/route53/HealthCheck.py b/src/cfnlint/rules/resources/route53/HealthCheck.py
new file mode 100644
--- /dev/null
+++ b/src/cfnlint/rules/resources/route53/HealthCheck.py
@@ -0,0 +1,64 @@
+"""
+ Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ software and associated documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to use, copy, modify,
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
+from cfnlint import CloudFormationLintRule
+from cfnlint import RuleMatch
+
+
+class HealthCheck(CloudFormationLintRule):
+ """Check Route53 Recordset Configuration"""
+ id = 'E3023'
+ shortdesc = 'Validate that AlarmIdentifier is specified when using CloudWatch Metrics'
+ description = 'When using a CloudWatch Metric for Route53 Health Checks you must also specify the AlarmIdentifier'
+ source_url = 'https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-healthcheck-healthcheckconfig.html#cfn-route53-healthcheck-healthcheckconfig-alarmidentifier'
+ tags = ['resources', 'route53', 'alarm_identifier']
+
+ def __init__(self):
+ """Init"""
+ super(HealthCheck, self).__init__()
+ self.resource_sub_property_types = ['AWS::Route53::HealthCheck.HealthCheckConfig']
+
+ def check(self, properties, path, cfn):
+ """Check itself"""
+ matches = []
+ property_sets = cfn.get_object_without_conditions(properties)
+ for property_set in property_sets:
+ health_type = property_set.get('Object').get('Type')
+ if health_type == 'CLOUDWATCH_METRIC':
+ if 'AlarmIdentifier' not in property_set.get('Object'):
+ if property_set['Scenario'] is None:
+ message = '"AlarmIdentifier" must be specified when the check type is "CLOUDWATCH_METRIC" at {0}'
+ matches.append(RuleMatch(
+ path,
+ message.format('/'.join(map(str, path)))
+ ))
+ else:
+ scenario_text = ' and '.join(['when condition "%s" is %s' % (k, v) for (k, v) in property_set['Scenario'].items()])
+ message = '"AlarmIdentifier" must be specified when the check type is "CLOUDWATCH_METRIC" {0} at {1}'
+ matches.append(RuleMatch(
+ path,
+ message.format(scenario_text, '/'.join(map(str, path)))
+ ))
+
+ return matches
+
+ def match_resource_sub_properties(self, properties, _, path, cfn):
+ """Match for sub properties"""
+ matches = []
+
+ matches.extend(self.check(properties, path, cfn))
+
+ return matches
|
diff --git a/test/fixtures/templates/bad/resources/route53/health_check.yaml b/test/fixtures/templates/bad/resources/route53/health_check.yaml
new file mode 100644
--- /dev/null
+++ b/test/fixtures/templates/bad/resources/route53/health_check.yaml
@@ -0,0 +1,23 @@
+---
+AWSTemplateFormatVersion: "2010-09-09"
+Conditions:
+ cIsPrimaryRegion: !Equals ['us-east-1', !Ref 'AWS::Region']
+Resources:
+ Route53HealthCheck:
+ Type: "AWS::Route53::HealthCheck"
+ Properties:
+ HealthCheckConfig:
+ InsufficientDataHealthStatus: "Healthy"
+ Type: "CLOUDWATCH_METRIC"
+ Route53HealthCheck1:
+ Type: "AWS::Route53::HealthCheck"
+ Properties:
+ HealthCheckConfig:
+ InsufficientDataHealthStatus: "Healthy"
+ Type: !If [cIsPrimaryRegion, "CLOUDWATCH_METRIC", "HTTP"]
+ AlarmIdentifier:
+ Fn::If:
+ - cIsPrimaryRegion
+ - !Ref 'AWS::NoValue'
+ - Name: String
+ Region: String
diff --git a/test/fixtures/templates/good/resources/route53/health_check.yaml b/test/fixtures/templates/good/resources/route53/health_check.yaml
new file mode 100644
--- /dev/null
+++ b/test/fixtures/templates/good/resources/route53/health_check.yaml
@@ -0,0 +1,26 @@
+---
+AWSTemplateFormatVersion: "2010-09-09"
+Conditions:
+ cIsPrimaryRegion: !Equals ['us-east-1', !Ref 'AWS::Region']
+Resources:
+ Route53HealthCheck:
+ Type: "AWS::Route53::HealthCheck"
+ Properties:
+ HealthCheckConfig:
+ InsufficientDataHealthStatus: "Healthy"
+ Type: "CLOUDWATCH_METRIC"
+ AlarmIdentifier:
+ Name: String
+ Region: String
+ Route53HealthCheck1:
+ Type: "AWS::Route53::HealthCheck"
+ Properties:
+ HealthCheckConfig:
+ InsufficientDataHealthStatus: "Healthy"
+ Type: !If [cIsPrimaryRegion, "CLOUDWATCH_METRIC", "HTTP"]
+ AlarmIdentifier:
+ Fn::If:
+ - cIsPrimaryRegion
+ - Name: String
+ Region: String
+ - !Ref 'AWS::NoValue'
diff --git a/test/rules/resources/route53/test_health_check.py b/test/rules/resources/route53/test_health_check.py
new file mode 100644
--- /dev/null
+++ b/test/rules/resources/route53/test_health_check.py
@@ -0,0 +1,37 @@
+"""
+ Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ software and associated documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to use, copy, modify,
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
+from cfnlint.rules.resources.route53.HealthCheck import HealthCheck # pylint: disable=E0401
+from ... import BaseRuleTestCase
+
+
+class TestRoute53RecordSets(BaseRuleTestCase):
+ """Test CloudFront Aliases Configuration"""
+ def setUp(self):
+ """Setup"""
+ super(TestRoute53RecordSets, self).setUp()
+ self.collection.register(HealthCheck())
+ self.success_templates = [
+ 'test/fixtures/templates/good/resources/route53/health_check.yaml'
+ ]
+
+ def test_file_positive(self):
+ """Test Positive"""
+ self.helper_file_positive()
+
+ def test_file_negative(self):
+ """Test failure"""
+ self.helper_file_negative('test/fixtures/templates/bad/resources/route53/health_check.yaml', 2)
|
Add rule for "AWS::Route53::HealthCheck" Configuration
According to the documentation and the Specfiles the `AlarmIdentifier` of the
Route 53 HealthCheck HealthCheckConfig is optional. But I get the following error:

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-healthcheck-healthcheckconfig.html#cfn-route53-healthcheck-healthcheckconfig-alarmidentifier
https://docs.aws.amazon.com/Route53/latest/APIReference/API_HealthCheckConfig.html
Used resource:
```
Route53HealthCheck:
Type: "AWS::Route53::HealthCheck"
Properties:
HealthCheckConfig:
InsufficientDataHealthStatus: "Healthy"
Type: "CLOUDWATCH_METRIC"
```
@cmmeyer Can you share some light on this?
|
@fatbasstard -- Since you've set your HealthCheck to by of Type to `CLOUDWATCH_METRIC`, Route53 expects an `AlarmIdentifier` to track for health. It's not required for other HealthCheck types. For instance, I was able to successfully create the following `HTTP` HealthCheck w/o an AlarmIdentifier (yes, yes, it's JSON...)
```
{
"AWSTemplateFormatVersion": "2010-09-09",
"Resources": {
"myHealthCheck": {
"Type": "AWS::Route53::HealthCheck",
"Properties": {
"HealthCheckConfig": {
"Port": 80,
"Type": "HTTP",
"ResourcePath": "/example/index.html",
"FullyQualifiedDomainName": "example.com",
"RequestInterval": 30,
"FailureThreshold": 3
}
}
}
}
}
```
This seems to be a documentation failing across the board -- it's hard to figure out even from the API docs. It would make a good rule, but I don't think it's a spec bug...
Renamed the issue to "Create a rule for this"
|
2019-02-26T23:46:58Z
|
[] |
[] |
aws-cloudformation/cfn-lint
| 682 |
aws-cloudformation__cfn-lint-682
|
[
"509"
] |
078f91e396c3fd453d54e09e43cf55a8f6911353
|
diff --git a/src/cfnlint/rules/resources/dynamodb/BillingMode.py b/src/cfnlint/rules/resources/dynamodb/BillingMode.py
new file mode 100644
--- /dev/null
+++ b/src/cfnlint/rules/resources/dynamodb/BillingMode.py
@@ -0,0 +1,65 @@
+"""
+ Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ software and associated documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to use, copy, modify,
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
+from cfnlint import CloudFormationLintRule
+from cfnlint import RuleMatch
+
+
+class BillingMode(CloudFormationLintRule):
+ """Check DynamoDB BillingMode Configuration"""
+ id = 'E3024'
+ shortdesc = 'Validate that ProvisionedThroughput is not specified with BillingMode PAY_PER_REQUEST'
+ description = 'When using ProvisionedThroughput with BillingMode PAY_PER_REQUEST will result in ' \
+ 'BillingMode being changed to PROVISIONED'
+ source_url = 'https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html'
+ tags = ['resources', 'dynamodb', 'provisioned_throughput', 'billing_mode']
+
+ def __init__(self):
+ """Init"""
+ super(BillingMode, self).__init__()
+ self.resource_property_types = ['AWS::DynamoDB::Table']
+
+ def check(self, properties, path, cfn):
+ """Check itself"""
+ matches = []
+ property_sets = cfn.get_object_without_conditions(properties)
+ for property_set in property_sets:
+ billing_mode = property_set.get('Object').get('BillingMode')
+ if billing_mode == 'PAY_PER_REQUEST':
+ if 'ProvisionedThroughput' in property_set.get('Object'):
+ if property_set['Scenario'] is None:
+ message = '"ProvisionedThroughput" must not be specified when BillingMode is set to "PAY_PER_REQUEST" at {0}'
+ matches.append(RuleMatch(
+ path,
+ message.format('/'.join(map(str, path)))
+ ))
+ else:
+ scenario_text = ' and '.join(['when condition "%s" is %s' % (k, v) for (k, v) in property_set['Scenario'].items()])
+ message = '"ProvisionedThroughput" must not be specified when BillingMode is set to "PAY_PER_REQUEST" {0} at {1}'
+ matches.append(RuleMatch(
+ path,
+ message.format(scenario_text, '/'.join(map(str, path)))
+ ))
+
+ return matches
+
+ def match_resource_properties(self, properties, _, path, cfn):
+ """Match for sub properties"""
+ matches = []
+
+ matches.extend(self.check(properties, path, cfn))
+
+ return matches
|
diff --git a/test/fixtures/templates/bad/resources/dynamodb/billing_mode.yaml b/test/fixtures/templates/bad/resources/dynamodb/billing_mode.yaml
new file mode 100644
--- /dev/null
+++ b/test/fixtures/templates/bad/resources/dynamodb/billing_mode.yaml
@@ -0,0 +1,43 @@
+---
+AWSTemplateFormatVersion: "2010-09-09"
+Conditions:
+ cIsPrimaryRegion: !Equals ['us-east-1', !Ref 'AWS::Region']
+Resources:
+ DynamoDb:
+ Type: "AWS::DynamoDB::Table"
+ Properties:
+ KeySchema:
+ -
+ AttributeName: String
+ KeyType: String
+ BillingMode: PAY_PER_REQUEST
+ ProvisionedThroughput:
+ WriteCapacityUnits: 1
+ ReadCapacityUnits: 1
+ DynamoDbConditioned:
+ Type: "AWS::DynamoDB::Table"
+ Properties:
+ KeySchema:
+ -
+ AttributeName: String
+ KeyType: String
+ BillingMode: !If [cIsPrimaryRegion, PAY_PER_REQUEST, PROVISIONED]
+ ProvisionedThroughput:
+ Fn::If:
+ - cIsPrimaryRegion
+ - WriteCapacityUnits: 1
+ ReadCapacityUnits: 1
+ - WriteCapacityUnits: 1
+ ReadCapacityUnits: 1
+ # This shouldn't fail but probably will for for now
+ DynamoDbConditionedDeep:
+ Type: "AWS::DynamoDB::Table"
+ Properties:
+ KeySchema:
+ -
+ AttributeName: String
+ KeyType: String
+ BillingMode: !If [cIsPrimaryRegion, PAY_PER_REQUEST, PROVISIONED]
+ ProvisionedThroughput:
+ WriteCapacityUnits: !If [cIsPrimaryRegion, !Ref 'AWS::NoValue', 1]
+ ReadCapacityUnits: !If [cIsPrimaryRegion, !Ref 'AWS::NoValue', 1]
diff --git a/test/fixtures/templates/good/resources/dynamodb/billing_mode.yaml b/test/fixtures/templates/good/resources/dynamodb/billing_mode.yaml
new file mode 100644
--- /dev/null
+++ b/test/fixtures/templates/good/resources/dynamodb/billing_mode.yaml
@@ -0,0 +1,28 @@
+---
+AWSTemplateFormatVersion: "2010-09-09"
+Conditions:
+ cIsPrimaryRegion: !Equals ['us-east-1', !Ref 'AWS::Region']
+Resources:
+ DynamoDb:
+ Type: "AWS::DynamoDB::Table"
+ Properties:
+ KeySchema:
+ -
+ AttributeName: String
+ KeyType: String
+ BillingMode: PAY_PER_REQUEST
+ DynamoDbConditioned:
+ Type: "AWS::DynamoDB::Table"
+ Properties:
+ KeySchema:
+ -
+ AttributeName: String
+ KeyType: String
+ BillingMode: !If [cIsPrimaryRegion, PAY_PER_REQUEST, PROVISIONED]
+ ProvisionedThroughput:
+ Fn::If:
+ - cIsPrimaryRegion
+ - !Ref "AWS::NoValue"
+ - WriteCapacityUnits: 1
+ ReadCapacityUnits: 1
+
diff --git a/test/rules/resources/dynamodb/test_billing_mode.py b/test/rules/resources/dynamodb/test_billing_mode.py
new file mode 100644
--- /dev/null
+++ b/test/rules/resources/dynamodb/test_billing_mode.py
@@ -0,0 +1,37 @@
+"""
+ Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ software and associated documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to use, copy, modify,
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
+from cfnlint.rules.resources.dynamodb.BillingMode import BillingMode # pylint: disable=E0401
+from ... import BaseRuleTestCase
+
+
+class TestBillingMode(BaseRuleTestCase):
+ """Test BillingMode"""
+ def setUp(self):
+ """Setup"""
+ super(TestBillingMode, self).setUp()
+ self.collection.register(BillingMode())
+ self.success_templates = [
+ 'test/fixtures/templates/good/resources/dynamodb/billing_mode.yaml'
+ ]
+
+ def test_file_positive(self):
+ """Test Positive"""
+ self.helper_file_positive()
+
+ def test_file_negative_alias(self):
+ """Test failure"""
+ self.helper_file_negative('test/fixtures/templates/bad/resources/dynamodb/billing_mode.yaml', 3)
|
Feature request: Check for mutual exclusive attributes for DynamoDB capacity
Currently you can specify provisioned capacity and `BillingMode: PAY_PER_REQUEST` for a DynamoDB table and CloudFormation will process the resource without errors. In that case the provisioned capacity settings are prioritized over the billing mode, resulting in the table still being set to `BillingMode: PROVISIONED`.
I propose that `cfn-lint` checks that `BillingMode: PAY_PER_REQUEST` and provisioned capacity on a table and its global indexes are mutually exclusive.
|
Ran into a similar issue myself, so I am currently writing the supporting code. Hope to have a PR this week for this.
@cmmeyer this seems like a weird one. I'm going to put this one as an Error and you can debate me later on it. Error not because it will fail but it won't do what you ask it to do.
|
2019-02-27T00:44:04Z
|
[] |
[] |
aws-cloudformation/cfn-lint
| 683 |
aws-cloudformation__cfn-lint-683
|
[
"531"
] |
bdea0c4b424e2b35e8f556624c12368541716cf5
|
diff --git a/src/cfnlint/config.py b/src/cfnlint/config.py
--- a/src/cfnlint/config.py
+++ b/src/cfnlint/config.py
@@ -265,6 +265,10 @@ def __call__(self, parser, namespace, values, option_string=None):
'-b', '--ignore-bad-template', help='Ignore failures with Bad template',
action='store_true'
)
+ standard.add_argument(
+ '--ignore-templates', dest='ignore_templates',
+ help='Ignore templates', nargs='+', default=[], action='extend'
+ )
advanced.add_argument(
'-d', '--debug', help='Enable debug logging', action='store_true'
)
@@ -432,6 +436,40 @@ def templates(self):
if isinstance(filenames, six.string_types):
filenames = [filenames]
+ # handle different shells and Config files
+ # some shells don't expand * and configparser won't expand wildcards
+ all_filenames = []
+ ignore_templates = self._ignore_templates()
+ for filename in filenames:
+ if sys.version_info >= (3, 5):
+ # pylint: disable=E1123
+ add_filenames = glob.glob(filename, recursive=True)
+ else:
+ add_filenames = glob.glob(filename)
+ # only way to know of the glob failed is to test it
+ # then add the filename as requested
+ if not add_filenames:
+ if filename not in ignore_templates:
+ all_filenames.append(filename)
+ else:
+ for add_filename in add_filenames:
+ if add_filename not in ignore_templates:
+ all_filenames.append(add_filename)
+
+ return all_filenames
+
+ def _ignore_templates(self):
+ """ templates """
+ ignore_template_args = self._get_argument_value('ignore_templates', False, True)
+ if ignore_template_args:
+ filenames = ignore_template_args
+ else:
+ return []
+
+ # if only one is specified convert it to array
+ if isinstance(filenames, six.string_types):
+ filenames = [filenames]
+
# handle different shells and Config files
# some shells don't expand * and configparser won't expand wildcards
all_filenames = []
|
diff --git a/test/module/config/test_config_mixin.py b/test/module/config/test_config_mixin.py
--- a/test/module/config/test_config_mixin.py
+++ b/test/module/config/test_config_mixin.py
@@ -101,10 +101,26 @@ def test_config_expand_paths_failure(self, yaml_mock):
""" Test precedence in """
yaml_mock.side_effect = [
- {'templates': ['*.yaml']},
+ {'templates': ['test/fixtures/templates/badpath/*.yaml']},
{}
]
config = cfnlint.config.ConfigMixIn([])
# test defaults
- self.assertEqual(config.templates, ['*.yaml'])
+ self.assertEqual(config.templates, ['test/fixtures/templates/badpath/*.yaml'])
+
+ @patch('cfnlint.config.ConfigFileArgs._read_config', create=True)
+ def test_config_expand_ignore_templates(self, yaml_mock):
+ """ Test ignore templates """
+
+ yaml_mock.side_effect = [
+ {
+ 'templates': ['test/fixtures/templates/bad/resources/iam/*.yaml'],
+ 'ignore_templates': ['test/fixtures/templates/bad/resources/iam/resource_*.yaml']},
+ {}
+ ]
+ config = cfnlint.config.ConfigMixIn([])
+
+ # test defaults
+ self.assertNotIn('test/fixtures/templates/bad/resources/iam/resource_policy.yaml', config.templates)
+ self.assertEqual(len(config.templates), 2)
diff --git a/test/module/core/test_run_cli.py b/test/module/core/test_run_cli.py
--- a/test/module/core/test_run_cli.py
+++ b/test/module/core/test_run_cli.py
@@ -81,8 +81,14 @@ def test_template_invalid_json_ignore(self):
self.assertEqual(len(matches), 1)
- def test_template_config(self):
+ @patch('cfnlint.config.ConfigFileArgs._read_config', create=True)
+ def test_template_config(self, yaml_mock):
"""Test template config"""
+ yaml_mock.side_effect = [
+ {},
+ {}
+ ]
+
filename = 'test/fixtures/templates/good/core/config_parameters.yaml'
(args, _, _,) = cfnlint.core.get_args_filenames([
'--template', filename, '--ignore-bad-template'])
@@ -101,8 +107,14 @@ def test_template_config(self):
self.assertEqual(args.update_documentation, False)
self.assertEqual(args.update_specs, False)
- def test_positional_template_parameters(self):
+ @patch('cfnlint.config.ConfigFileArgs._read_config', create=True)
+ def test_positional_template_parameters(self, yaml_mock):
"""Test overriding parameters"""
+ yaml_mock.side_effect = [
+ {},
+ {}
+ ]
+
filename = 'test/fixtures/templates/good/core/config_parameters.yaml'
(args, _, _) = cfnlint.core.get_args_filenames([
filename, '--ignore-bad-template',
@@ -121,8 +133,14 @@ def test_positional_template_parameters(self):
self.assertEqual(args.update_documentation, False)
self.assertEqual(args.update_specs, False)
- def test_override_parameters(self):
+ @patch('cfnlint.config.ConfigFileArgs._read_config', create=True)
+ def test_override_parameters(self, yaml_mock):
"""Test overriding parameters"""
+ yaml_mock.side_effect = [
+ {},
+ {}
+ ]
+
filename = 'test/fixtures/templates/good/core/config_parameters.yaml'
(args, _, _) = cfnlint.core.get_args_filenames([
'--template', filename, '--ignore-bad-template',
@@ -141,8 +159,13 @@ def test_override_parameters(self):
self.assertEqual(args.update_documentation, False)
self.assertEqual(args.update_specs, False)
- def test_bad_config(self):
+ @patch('cfnlint.config.ConfigFileArgs._read_config', create=True)
+ def test_bad_config(self, yaml_mock):
""" Test bad formatting in config"""
+ yaml_mock.side_effect = [
+ {},
+ {}
+ ]
filename = 'test/fixtures/templates/bad/core/config_parameters.yaml'
(args, _, _) = cfnlint.core.get_args_filenames([
|
Exclude file from recursive search
*cfn-lint version: v0.10.2*
I have plenty of CF template files in `iac` folder. I would like them to be recursively linting:
```
templates:
- iac/CloudFormation/**/*.yaml
```
But I would like also to ignore some files from directory. Do you support something like:
```
ignore-templates:
- iac/CloudFormation/notCfTempl.yaml
```
|
@Sergei-Rudenkov Quick question... The file you want to exclude, are that JSON/YAML file that are no CloudFormation files? Or also (valid) CloudFormation files that you'd like to exclude from the list?
@fatbasstard The first option. I would like to exclude JSON/YAML file that are no CloudFormation files.
A second vote for this. Particularly frustrating that I can't exclude my buildspec.yml (for AWS CodeBuild) so that I can run from the root directory of my repository. It can be avoided by specifying and retaining all CloudFormation files in a particular directory. Would be a nice enhancement to see for an otherwise great little tool!
|
2019-02-27T02:39:20Z
|
[] |
[] |
aws-cloudformation/cfn-lint
| 721 |
aws-cloudformation__cfn-lint-721
|
[
"447"
] |
f11f5d5ac078546fa952123109804a19551b052f
|
diff --git a/src/cfnlint/__init__.py b/src/cfnlint/__init__.py
--- a/src/cfnlint/__init__.py
+++ b/src/cfnlint/__init__.py
@@ -947,6 +947,62 @@ def is_resource_available(self, path, resource):
# if resource condition isn't available then the resource is available
return results
+ def get_value_from_scenario(self, obj, scenario):
+ """
+ Get object values from a provided scenario
+ """
+
+ def get_value(value, scenario): # pylint: disable=R0911
+ """ Get the value based on the scenario resolving nesting """
+ if isinstance(value, dict):
+ if len(value) == 1:
+ if 'Fn::If' in value:
+ if_values = value.get('Fn::If')
+ if len(if_values) == 3:
+ if_path = scenario.get(if_values[0], None)
+ if if_path is not None:
+ if if_path:
+ return get_value(if_values[1], scenario)
+ return get_value(if_values[2], scenario)
+ elif value.get('Ref') == 'AWS::NoValue':
+ return None
+ else:
+ return value
+
+ return value
+ if isinstance(value, list):
+ new_list = []
+ for item in value:
+ new_value = get_value(item, scenario)
+ if new_value is not None:
+ new_list.append(get_value(item, scenario))
+
+ return new_list
+
+ return value
+
+ result = {}
+ if isinstance(obj, dict):
+ if len(obj) == 1:
+ if obj.get('Fn::If'):
+ new_value = get_value(obj, scenario)
+ if new_value is not None:
+ result = new_value
+ else:
+ result = {}
+ for key, value in obj.items():
+ new_value = get_value(value, scenario)
+ if new_value is not None:
+ result[key] = new_value
+ else:
+ result = {}
+ for key, value in obj.items():
+ new_value = get_value(value, scenario)
+ if new_value is not None:
+ result[key] = new_value
+
+ return result
+
def get_object_without_conditions(self, obj):
"""
Gets a list of object values without conditions included
@@ -979,7 +1035,7 @@ def get_object_without_conditions(self, obj):
]
"""
results = []
- scenarios = self.get_conditions_scenarios_from_object(obj)
+ scenarios = self.get_conditions_scenarios_from_object([obj])
if not isinstance(obj, dict):
return results
@@ -994,63 +1050,17 @@ def get_object_without_conditions(self, obj):
'Object': obj
}]
- def get_value(value, scenario): # pylint: disable=R0911
- """ Get the value based on the scenario resolving nesting """
- if isinstance(value, dict):
- if len(value) == 1:
- if 'Fn::If' in value:
- if_values = value.get('Fn::If')
- if len(if_values) == 3:
- if_path = scenario.get(if_values[0], None)
- if if_path is not None:
- if if_path:
- return get_value(if_values[1], scenario)
- return get_value(if_values[2], scenario)
- elif value.get('Ref') == 'AWS::NoValue':
- return None
- else:
- return value
-
- return value
- if isinstance(value, list):
- new_list = []
- for item in value:
- new_value = get_value(item, scenario)
- if new_value is not None:
- new_list.append(get_value(item, scenario))
-
- return new_list
-
- return value
-
for scenario in scenarios:
- result = {
- 'Scenario': scenario,
- 'Object': {}
- }
- if isinstance(obj, dict):
- if len(obj) == 1:
- if obj.get('Fn::If'):
- new_value = get_value(obj, scenario)
- if new_value is not None:
- result['Object'] = new_value
- results.append(result)
- else:
- for key, value in obj.items():
- new_value = get_value(value, scenario)
- if new_value is not None:
- result['Object'][key] = new_value
- results.append(result)
- else:
- for key, value in obj.items():
- new_value = get_value(value, scenario)
- if new_value is not None:
- result['Object'][key] = new_value
- results.append(result)
+ result_obj = self.get_value_from_scenario(obj, scenario)
+ if result_obj:
+ results.append({
+ 'Scenario': scenario,
+ 'Object': result_obj
+ })
return results
- def get_conditions_scenarios_from_object(self, value):
+ def get_conditions_scenarios_from_object(self, objs):
"""
Get condition from objects
"""
@@ -1072,18 +1082,23 @@ def get_conditions_from_property(value):
return results
con = set()
- if isinstance(value, dict):
- for k, v in value.items():
- # handle conditions directly under the object
- if len(value) == 1 and k == 'Fn::If' and len(v) == 3:
- con.add(v[0])
- for r_c in v[1:]:
- if isinstance(r_c, dict):
- for s_k, s_v in r_c.items():
- if s_k == 'Fn::If':
- con = con.union(get_conditions_from_property({s_k: s_v}))
- else:
- con = con.union(get_conditions_from_property(v))
+
+ if isinstance(objs, dict):
+ objs = [objs]
+
+ for obj in objs:
+ if isinstance(obj, dict):
+ for k, v in obj.items():
+ # handle conditions directly under the object
+ if len(obj) == 1 and k == 'Fn::If' and len(v) == 3:
+ con.add(v[0])
+ for r_c in v[1:]:
+ if isinstance(r_c, dict):
+ for s_k, s_v in r_c.items():
+ if s_k == 'Fn::If':
+ con = con.union(get_conditions_from_property({s_k: s_v}))
+ else:
+ con = con.union(get_conditions_from_property(v))
return self.conditions.get_scenarios(list(con))
diff --git a/src/cfnlint/decode/node.py b/src/cfnlint/decode/node.py
--- a/src/cfnlint/decode/node.py
+++ b/src/cfnlint/decode/node.py
@@ -132,7 +132,7 @@ def get_safe(self, key, default=None, path=None, type_t=()):
return [(value, (path[:] + [key]))]
results = []
- for sub_v, sub_path in value.items_safe(path):
+ for sub_v, sub_path in value.items_safe(path + [key]):
if isinstance(sub_v, type_t) or not type_t:
results.append((sub_v, sub_path))
@@ -159,7 +159,7 @@ def items_safe(self, path=None, type_t=()):
else:
if isinstance(if_v, type_t) or not type_t:
yield if_v, path[:] + [k, i + 1]
- elif k != 'Ref' and v != 'AWS::NoValue':
+ elif not (k == 'Ref' and v == 'AWS::NoValue'):
if isinstance(self, type_t) or not type_t:
yield self, path[:]
else:
diff --git a/src/cfnlint/helpers.py b/src/cfnlint/helpers.py
--- a/src/cfnlint/helpers.py
+++ b/src/cfnlint/helpers.py
@@ -23,6 +23,7 @@
import re
import inspect
import pkg_resources
+import six
from cfnlint.decode.node import dict_node, list_node, str_node
LOGGER = logging.getLogger(__name__)
@@ -202,6 +203,18 @@ def is_custom_resource(resource_type):
return resource_type and (resource_type == 'AWS::CloudFormation::CustomResource' or resource_type.startswith('Custom::'))
+def bool_compare(first, second):
+ """ Compare strings to boolean values """
+
+ if isinstance(first, six.string_types):
+ first = bool(first.lower() == 'true')
+
+ if isinstance(second, six.string_types):
+ second = bool(second.lower() == 'true')
+
+ return first is second
+
+
def initialize_specs():
""" Reload Resource Specs """
for reg in REGIONS:
diff --git a/src/cfnlint/rules/resources/elasticache/CacheClusterFailover.py b/src/cfnlint/rules/resources/elasticache/CacheClusterFailover.py
new file mode 100644
--- /dev/null
+++ b/src/cfnlint/rules/resources/elasticache/CacheClusterFailover.py
@@ -0,0 +1,116 @@
+"""
+ Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ software and associated documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to use, copy, modify,
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
+from cfnlint.helpers import bool_compare
+from cfnlint import CloudFormationLintRule
+from cfnlint import RuleMatch
+
+
+class CacheClusterFailover(CloudFormationLintRule):
+ """Check automatic failover on a cache cluster"""
+ id = 'E3026'
+ shortdesc = 'Check Elastic Cache Redis Cluster settings'
+ description = 'Evaluate Redis Cluster groups to make sure automatic failover is ' \
+ 'enabled when cluster mode is enabled'
+ source_url = 'https://github.com/awslabs/cfn-python-lint'
+ tags = ['resources', 'elasticcache']
+
+ def __init__(self):
+ """Init"""
+ super(CacheClusterFailover, self).__init__()
+ self.resource_property_types.append('AWS::ElastiCache::ReplicationGroup')
+
+ def is_cluster_enabled(self, properties):
+ """Test if cluster is enabled """
+ if isinstance(properties, dict):
+ for property_name, property_value in properties.items():
+ if property_name == 'cluster-enabled' and property_value == 'yes':
+ return True
+
+ return False
+
+ def _test_cluster_settings(self, properties, path, pg_properties, pg_path, cfn, scenario):
+ """ test for each scenario """
+ results = []
+ pg_conditions = cfn.get_conditions_from_path(cfn.template, pg_path)
+ # test to make sure that any condition that may apply to the path for the Ref
+ # is not applicable
+ if pg_conditions:
+ for c_name, c_value in scenario.items():
+ if c_name in pg_conditions:
+ if c_value not in pg_conditions.get(c_name):
+ return results
+ if self.is_cluster_enabled(cfn.get_value_from_scenario(pg_properties, scenario)):
+ c_props = cfn.get_value_from_scenario(properties, scenario)
+ automatic_failover = c_props.get('AutomaticFailoverEnabled')
+ if bool_compare(automatic_failover, False):
+ pathmessage = path[:] + ['AutomaticFailoverEnabled']
+ if scenario is None:
+ message = '"AutomaticFailoverEnabled" must be misssing or True when setting up a cluster at {0}'
+ results.append(
+ RuleMatch(pathmessage, message.format('/'.join(map(str, pathmessage)))))
+ else:
+ message = '"AutomaticFailoverEnabled" must be misssing or True when setting up a cluster when {0} at {1}'
+ scenario_text = ' and '.join(['when condition "%s" is %s' % (k, v) for (k, v) in scenario.items()])
+ results.append(
+ RuleMatch(pathmessage, message.format(scenario_text, '/'.join(map(str, pathmessage)))))
+ num_cach_nodes = c_props.get('NumCacheClusters', 0)
+ if num_cach_nodes <= 1:
+ pathmessage = path[:] + ['NumCacheClusters']
+ if scenario is None:
+ message = '"NumCacheClusters" must be greater than one when creating a cluster at {0}'
+ results.append(
+ RuleMatch(pathmessage, message.format('/'.join(map(str, pathmessage)))))
+ else:
+ message = '"NumCacheClusters" must be greater than one when creating a cluster when {0} at {1}'
+ scenario_text = ' and '.join(['when condition "%s" is %s' % (k, v) for (k, v) in scenario.items()])
+ results.append(
+ RuleMatch(pathmessage, message.format(scenario_text, '/'.join(map(str, pathmessage)))))
+
+ return results
+
+ def test_cluster_settings(self, properties, path, pg_resource_name, pg_path, cfn):
+ """ Test cluster settings for the parameter group and Replication Group """
+ results = []
+ pg_properties = cfn.template.get('Resources', {}).get(pg_resource_name, {}).get('Properties', {}).get('Properties', {})
+ scenarios = cfn.get_conditions_scenarios_from_object([
+ properties,
+ pg_properties
+ ])
+ for scenario in scenarios:
+ results.extend(
+ self._test_cluster_settings(properties, path, pg_properties, pg_path, cfn, scenario))
+ return results
+
+ def match_resource_properties(self, properties, _, path, cfn):
+ """Check CloudFormation Properties"""
+ matches = []
+
+ parameter_groups = properties.get_safe('CacheParameterGroupName', '', path)
+ for parameter_group in parameter_groups:
+ pg_value = parameter_group[0]
+ pg_path = parameter_group[1]
+ if isinstance(pg_value, dict):
+ for pg_key, pg_resource in pg_value.items():
+ if pg_key == 'Ref' and pg_resource in cfn.get_resources():
+ matches.extend(
+ self.test_cluster_settings(
+ properties, path,
+ pg_resource, pg_path,
+ cfn
+ ))
+
+ return matches
diff --git a/src/cfnlint/rules/resources/elasticache/__init__.py b/src/cfnlint/rules/resources/elasticache/__init__.py
new file mode 100644
--- /dev/null
+++ b/src/cfnlint/rules/resources/elasticache/__init__.py
@@ -0,0 +1,16 @@
+"""
+ Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ software and associated documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to use, copy, modify,
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
|
diff --git a/test/fixtures/templates/bad/resources/elasticache/cache_cluster_failover.yaml b/test/fixtures/templates/bad/resources/elasticache/cache_cluster_failover.yaml
new file mode 100644
--- /dev/null
+++ b/test/fixtures/templates/bad/resources/elasticache/cache_cluster_failover.yaml
@@ -0,0 +1,73 @@
+---
+AWSTemplateFormatVersion: "2010-09-09"
+Parameters:
+ toCluster:
+ Type: String
+ Default: 'yes'
+Conditions:
+ isCluster: !Equals [!Ref 'toCluster', 'yes']
+Resources:
+ MyParameterGroup:
+ Type: AWS::ElastiCache::ParameterGroup
+ Properties:
+ Description: "MyNewParameterGroup"
+ CacheParameterGroupFamily: redis3.2
+ Properties:
+ cas_disabled: "1"
+ cluster-enabled: !If [isCluster, 'no', 'yes']
+ MyClusterParameterGroup:
+ Type: AWS::ElastiCache::ParameterGroup
+ Properties:
+ Description: "MyNewParameterGroup"
+ CacheParameterGroupFamily: redis3.2
+ Properties:
+ cas_disabled: "1"
+ cluster-enabled: 'yes'
+ MyNonClusterParameterGroup:
+ Type: AWS::ElastiCache::ParameterGroup
+ Properties:
+ Description: "MyNewParameterGroup"
+ CacheParameterGroupFamily: "memcached1.4"
+ Properties:
+ cas_disabled: "1"
+ cluster-enabled: 'no'
+ BasicReplicationGroup:
+ Type: AWS::ElastiCache::ReplicationGroup
+ Properties:
+ AutomaticFailoverEnabled: !If [isCluster, false, true]
+ AutoMinorVersionUpgrade: true
+ CacheParameterGroupName: !If [isCluster, !Ref MyClusterParameterGroup, !Ref MyNonClusterParameterGroup]
+ CacheNodeType: cache.r3.large
+ CacheSubnetGroupName: subnetgroup
+ Engine: redis
+ EngineVersion: '3.2'
+ NumNodeGroups: 2
+ NumCacheClusters: 1
+ ReplicasPerNodeGroup: 3
+ Port: 6379
+ PreferredMaintenanceWindow: sun:05:00-sun:09:00
+ ReplicationGroupDescription: A sample replication group
+ SecurityGroupIds:
+ - sg-12345abc
+ SnapshotRetentionLimit: 5
+ SnapshotWindow: 10:00-12:00
+ SecondReplicationGroup:
+ Type: AWS::ElastiCache::ReplicationGroup
+ Properties:
+ AutomaticFailoverEnabled: !If [isCluster, true, false]
+ AutoMinorVersionUpgrade: true
+ CacheParameterGroupName: !If [isCluster, !Ref MyNonClusterParameterGroup, !Ref MyClusterParameterGroup]
+ CacheNodeType: cache.r3.large
+ CacheSubnetGroupName: subnetgroup
+ Engine: redis
+ EngineVersion: '3.2'
+ NumNodeGroups: 2
+ NumCacheClusters: 1
+ ReplicasPerNodeGroup: 3
+ Port: 6379
+ PreferredMaintenanceWindow: sun:05:00-sun:09:00
+ ReplicationGroupDescription: A sample replication group
+ SecurityGroupIds:
+ - sg-12345abc
+ SnapshotRetentionLimit: 5
+ SnapshotWindow: 10:00-12:00
diff --git a/test/fixtures/templates/good/resources/elasticache/cache_cluster_failover.yaml b/test/fixtures/templates/good/resources/elasticache/cache_cluster_failover.yaml
new file mode 100644
--- /dev/null
+++ b/test/fixtures/templates/good/resources/elasticache/cache_cluster_failover.yaml
@@ -0,0 +1,92 @@
+---
+AWSTemplateFormatVersion: "2010-09-09"
+Parameters:
+ toCluster:
+ Type: String
+ Default: 'yes'
+Conditions:
+ isCluster: !Equals [!Ref 'toCluster', 'yes']
+Resources:
+ MyParameterGroup:
+ Type: AWS::ElastiCache::ParameterGroup
+ Properties:
+ Description: "MyNewParameterGroup"
+ CacheParameterGroupFamily: redis3.2
+ Properties:
+ cas_disabled: "1"
+ cluster-enabled: !If [isCluster, 'yes', !Ref 'AWS::NoValue']
+ MyClusterParameterGroup:
+ Type: AWS::ElastiCache::ParameterGroup
+ Properties:
+ Description: "MyNewParameterGroup"
+ CacheParameterGroupFamily: redis3.2
+ Properties:
+ cas_disabled: "1"
+ cluster-enabled: 'yes'
+ MyNonClusterParameterGroup:
+ Type: AWS::ElastiCache::ParameterGroup
+ Properties:
+ Description: "MyNewParameterGroup"
+ CacheParameterGroupFamily: "memcached1.4"
+ Properties:
+ cas_disabled: "1"
+ cluster-enabled: 'no'
+ BasicReplicationGroup:
+ Type: AWS::ElastiCache::ReplicationGroup
+ Properties:
+ AutomaticFailoverEnabled: !If [isCluster, true, false]
+ AutoMinorVersionUpgrade: true
+ CacheParameterGroupName: !If [isCluster, !Ref MyClusterParameterGroup, !Ref MyParameterGroup]
+ CacheNodeType: cache.r3.large
+ CacheSubnetGroupName: subnetgroup
+ Engine: redis
+ EngineVersion: '3.2'
+ NumNodeGroups: 2
+ NumCacheClusters: 2
+ ReplicasPerNodeGroup: 3
+ Port: 6379
+ PreferredMaintenanceWindow: sun:05:00-sun:09:00
+ ReplicationGroupDescription: A sample replication group
+ SecurityGroupIds:
+ - sg-12345abc
+ SnapshotRetentionLimit: 5
+ SnapshotWindow: 10:00-12:00
+ SecondReplicationGroup:
+ Type: AWS::ElastiCache::ReplicationGroup
+ Properties:
+ AutomaticFailoverEnabled: !If [isCluster, true, false]
+ AutoMinorVersionUpgrade: true
+ CacheParameterGroupName: !If [isCluster, !Ref MyClusterParameterGroup, !Ref MyParameterGroup]
+ CacheNodeType: cache.r3.large
+ CacheSubnetGroupName: subnetgroup
+ Engine: redis
+ EngineVersion: '3.2'
+ NumNodeGroups: 2
+ NumCacheClusters: 2
+ ReplicasPerNodeGroup: 3
+ Port: 6379
+ PreferredMaintenanceWindow: sun:05:00-sun:09:00
+ ReplicationGroupDescription: A sample replication group
+ SecurityGroupIds:
+ - sg-12345abc
+ SnapshotRetentionLimit: 5
+ SnapshotWindow: 10:00-12:00
+ ThirdReplicationGroup:
+ Type: AWS::ElastiCache::ReplicationGroup
+ Properties:
+ AutoMinorVersionUpgrade: true
+ CacheParameterGroupName: !Ref MyClusterParameterGroup # Don't fail when missing
+ CacheNodeType: cache.r3.large
+ CacheSubnetGroupName: subnetgroup
+ Engine: redis
+ EngineVersion: '3.2'
+ NumNodeGroups: 2
+ NumCacheClusters: 2
+ ReplicasPerNodeGroup: 3
+ Port: 6379
+ PreferredMaintenanceWindow: sun:05:00-sun:09:00
+ ReplicationGroupDescription: A sample replication group
+ SecurityGroupIds:
+ - sg-12345abc
+ SnapshotRetentionLimit: 5
+ SnapshotWindow: 10:00-12:00
diff --git a/test/module/decode/test_node.py b/test/module/decode/test_node.py
--- a/test/module/decode/test_node.py
+++ b/test/module/decode/test_node.py
@@ -156,7 +156,7 @@ def test_success_fnif_get(self):
}, (0, 1), (2, 3))
obj = template.get_safe("Test")
- self.assertEqual(obj, [('True', ['Fn::If', 1]), ('False', ['Fn::If', 2])])
+ self.assertEqual(obj, [('True', ['Test', 'Fn::If', 1]), ('False', ['Test', 'Fn::If', 2])])
def test_success_fnif_get_nested(self):
"""Test Dict Object"""
@@ -177,9 +177,9 @@ def test_success_fnif_get_nested(self):
obj = template.get_safe("Test")
self.assertEqual(obj, [
- ('True,True', ['Fn::If', 1, 'Fn::If', 1]),
- ('True,False', ['Fn::If', 1, 'Fn::If', 2]),
- ('False', ['Fn::If', 2])
+ ('True,True', ['Test', 'Fn::If', 1, 'Fn::If', 1]),
+ ('True,False', ['Test', 'Fn::If', 1, 'Fn::If', 2]),
+ ('False', ['Test', 'Fn::If', 2])
])
def test_success_fnif_list_strings(self):
diff --git a/test/rules/resources/elasticache/__init__.py b/test/rules/resources/elasticache/__init__.py
new file mode 100644
--- /dev/null
+++ b/test/rules/resources/elasticache/__init__.py
@@ -0,0 +1,16 @@
+"""
+ Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ software and associated documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to use, copy, modify,
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
diff --git a/test/rules/resources/elasticache/test_cache_cluster_failover.py b/test/rules/resources/elasticache/test_cache_cluster_failover.py
new file mode 100644
--- /dev/null
+++ b/test/rules/resources/elasticache/test_cache_cluster_failover.py
@@ -0,0 +1,37 @@
+"""
+ Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ software and associated documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to use, copy, modify,
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
+from cfnlint.rules.resources.elasticache.CacheClusterFailover import CacheClusterFailover # pylint: disable=E0401
+from ... import BaseRuleTestCase
+
+
+class TestElasticCacheClusterFailover(BaseRuleTestCase):
+ """Test ElasticCache CacheClusterFailover"""
+ def setUp(self):
+ """Setup"""
+ super(TestElasticCacheClusterFailover, self).setUp()
+ self.collection.register(CacheClusterFailover())
+ self.success_templates = [
+ 'test/fixtures/templates/good/resources/elasticache/cache_cluster_failover.yaml'
+ ]
+
+ def test_file_positive(self):
+ """Test Positive"""
+ self.helper_file_positive()
+
+ def test_file_artifact_failure(self):
+ """Test failure"""
+ self.helper_file_negative('test/fixtures/templates/bad/resources/elasticache/cache_cluster_failover.yaml', 4)
|
Feature request: Redis cluster mode enabled => ensure AutomaticFailover is enabled.
Found an issue which can probably easily be picked up by the linter.
When creating a ElastiCacheReplicationGroup, if the replication group has a ElastiCacheParameterGroup with parameter 'cluster-enabled' set to 'yes', then the ElastiCacheReplicationGroup must have its `AutomaticFailoverEnabled` property set to true. Failing to do so yields `Redis with cluster mode enabled cannot be created with auto failover turned off. (Service: AmazonElastiCache; Status Code: 400; Error Code: InvalidParameterValue)`.
|
Thanks for suggestion! Do you know if this Is this Redis specific or does it apply to Memcached as well?
This one is Redis-specific, because the ElasticacheReplicationGroup is used by Redis only.
Related, but perhaps already covered, is the following: "If you specify true, you must specify a value greater than 1 for the NumCacheClusters property. "
So in pseudo-code:
Within a Cache Cluster, if the ElastiCacheParameterGroup::parameters contains "cluster-enabled", and the value of that param is true, then ElasticacheReplicationGroup::AutomaticFalloverEnabled must be "true-or-missing".
if property "AutomaticFailoverEnabled" is "true-or-missing"
Then Check NumCacheClusters > 1
True-or-missing is due to it defaulting to true.
This is waiting on some logic around how to compare two resources and the conditions that may affect their properties.
I started working on this one but there a few other things to note.
```
You cannot enable automatic failover for Redis versions earlier than 2.8.6 or for T1 cache node types. Automatic failover is supported on T2 node types only if you are running Redis version 3.2.4 or later with cluster mode enabled.
```
|
2019-03-14T00:34:03Z
|
[] |
[] |
aws-cloudformation/cfn-lint
| 731 |
aws-cloudformation__cfn-lint-731
|
[
"725"
] |
655b7bc0421533020ecab8e65f9f7218e333bfb7
|
diff --git a/src/cfnlint/rules/resources/properties/AllowedPattern.py b/src/cfnlint/rules/resources/properties/AllowedPattern.py
--- a/src/cfnlint/rules/resources/properties/AllowedPattern.py
+++ b/src/cfnlint/rules/resources/properties/AllowedPattern.py
@@ -15,7 +15,6 @@
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
"""
import re
-import six
from cfnlint import CloudFormationLintRule
from cfnlint import RuleMatch
@@ -37,21 +36,6 @@ def initialize(self, cfn):
for property_type_spec in RESOURCE_SPECS.get(cfn.regions[0]).get('PropertyTypes'):
self.resource_sub_property_types.append(property_type_spec)
- def check_sub(self, value, path, property_name, **kwargs):
- """Check Value of a Sub"""
- matches = []
-
- if isinstance(value, list):
- if isinstance(value[0], six.string_types):
- # Remove the sub (${}) from the value
- stripped_value = re.sub(r'\${.*}', '', value[0])
- matches.extend(self.check_value(stripped_value, path[:] + [0], property_name, **kwargs))
- else:
- # Remove the sub (${}) from the value
- stripped_value = re.sub(r'\${.*}', '', value)
- matches.extend(self.check_value(stripped_value, path[:], property_name, **kwargs))
- return matches
-
def check_value(self, value, path, property_name, **kwargs):
"""Check Value"""
matches = []
@@ -86,7 +70,6 @@ def check(self, cfn, properties, value_specs, property_specs, path):
cfn.check_value(
p_value, prop, p_path,
check_value=self.check_value,
- check_sub=self.check_sub,
value_specs=RESOURCE_SPECS.get(cfn.regions[0]).get('ValueTypes').get(value_type, {}),
cfn=cfn, property_type=property_type, property_name=prop
)
|
diff --git a/test/rules/resources/properties/test_allowed_pattern.py b/test/rules/resources/properties/test_allowed_pattern.py
--- a/test/rules/resources/properties/test_allowed_pattern.py
+++ b/test/rules/resources/properties/test_allowed_pattern.py
@@ -44,7 +44,7 @@ def test_file_positive(self):
def test_file_negative_sg_description(self):
"""Test failure"""
- self.helper_file_negative('test/fixtures/templates/bad/properties_sg_description.yaml', 3)
+ self.helper_file_negative('test/fixtures/templates/bad/properties_sg_description.yaml', 1)
def test_file_negative_sg_ingress(self):
"""Test failure"""
|
E3031 CidrIp contains invalid characters fails when Fn::Sub is present
*cfn-lint version: (`cfn-lint --version`)*
`cfn-lint 0.16.0`
*Description of issue.*
When `CidrIp` value is `!Sub`ed from `Parameters` - E3031 lint error is raised. Sample template:
```lang=yaml
AWSTemplateFormatVersion: 2010-09-09
Description: AMI Builder Stack
Parameters:
BuilderCidr:
Type: String
Resources:
SecurityGroup:
Type: AWS::EC2::SecurityGroup
Properties:
GroupDescription: Description
VpcId: vpc-id
SecurityGroupIngress:
- IpProtocol: tcp
FromPort: 1
ToPort: 65535
CidrIp: !Sub ${BuilderCidr}
```
Expected output: successful lint
Actual output:
```
E3031 CidrIp contains invalid characters (Pattern: x.x.x.x/y) at Resources/SecurityGroup/Properties/SecurityGroupIngress/0/CidrIp/Fn::Sub
```
> Cfn-lint uses the [CloudFormation Resource Specifications](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-resource-specification.html) as the base to do validation. These files are included as part of the application version. Please update to the latest version of `cfn-lint` or update the spec files manually (`cfn-lint -u`)
The problem still persists after running `cfn-lint -u`
|
Variables are replaced with ""... In this case a `!Ref` would be more "logical" btw, but the rule should not break ofcourse
|
2019-03-14T18:28:16Z
|
[] |
[] |
aws-cloudformation/cfn-lint
| 734 |
aws-cloudformation__cfn-lint-734
|
[
"727"
] |
6930b7b8155e9395535ddfd788cf281e919a8679
|
diff --git a/src/cfnlint/decode/__init__.py b/src/cfnlint/decode/__init__.py
--- a/src/cfnlint/decode/__init__.py
+++ b/src/cfnlint/decode/__init__.py
@@ -57,11 +57,12 @@ def decode(filename, ignore_bad_template):
except cfnlint.decode.cfn_yaml.CfnParseError as err:
err.match.Filename = filename
matches = [err.match]
-
except ParserError as err:
matches = [create_match_yaml_parser_error(err, filename)]
except ScannerError as err:
- if err.problem == 'found character \'\\t\' that cannot start any token':
+ if err.problem in [
+ 'found character \'\\t\' that cannot start any token',
+ 'found unknown escape character']:
try:
template = cfnlint.decode.cfn_json.load(filename)
except cfnlint.decode.cfn_json.JSONDecodeError as json_err:
|
diff --git a/test/fixtures/templates/good/decode/parsing.json b/test/fixtures/templates/good/decode/parsing.json
new file mode 100644
--- /dev/null
+++ b/test/fixtures/templates/good/decode/parsing.json
@@ -0,0 +1,9 @@
+{
+ "Parameters": {
+ "VPN": {
+ "Type": "String",
+ "AllowedPattern": "^\\\/"
+ }
+ },
+ "Resources": {}
+}
diff --git a/test/module/cfn_json/test_cfn_json.py b/test/module/cfn_json/test_cfn_json.py
--- a/test/module/cfn_json/test_cfn_json.py
+++ b/test/module/cfn_json/test_cfn_json.py
@@ -73,6 +73,17 @@ def test_success_parse(self):
matches.extend(self.rules.run(filename, cfn))
assert len(matches) == failures, 'Expected {} failures, got {} on {}'.format(failures, len(matches), filename)
+ def test_success_escape_character(self):
+ """Test Successful JSON Parsing"""
+ failures = 1
+ filename = 'test/fixtures/templates/good/decode/parsing.json'
+ template = cfnlint.decode.cfn_json.load(filename)
+ cfn = Template(filename, template, ['us-east-1'])
+
+ matches = []
+ matches.extend(self.rules.run(filename, cfn))
+ assert len(matches) == failures, 'Expected {} failures, got {} on {}'.format(failures, len(matches), filename)
+
def test_success_parse_stdin(self):
"""Test Successful JSON Parsing through stdin"""
for _, values in self.filenames.items():
|
E0000 found unknown escape character ‘/’
version:1:1
cfn-lint --template vpc.cf.json
E0000 found unknown escape character ‘/’
vpc.cf.json:12:135
this is the string that it says container the escape character error. this however works fine when deployed to the CFN service.
"^([0-9]{1,3}\\.){3}[0-9]{1,3}(\\\/([0-9]|[1-2][0-9]|3[0-2]))?$"

|
2019-03-14T22:20:05Z
|
[] |
[] |
|
aws-cloudformation/cfn-lint
| 746 |
aws-cloudformation__cfn-lint-746
|
[
"738"
] |
281956c33d993a423f917a246543481add50884d
|
diff --git a/src/cfnlint/__init__.py b/src/cfnlint/__init__.py
--- a/src/cfnlint/__init__.py
+++ b/src/cfnlint/__init__.py
@@ -408,7 +408,7 @@ def __eq__(self, item):
))
-class Template(object):
+class Template(object): # pylint: disable=R0904
"""Class for a CloudFormation template"""
# pylint: disable=dangerous-default-value
@@ -959,6 +959,64 @@ def is_resource_available(self, path, resource):
# if resource condition isn't available then the resource is available
return results
+ def get_object_without_nested_conditions(self, obj, path):
+ """
+ Get a list of object values without conditions included.
+ Evaluates deep into the object removing any nested conditions as well
+ """
+ results = []
+ scenarios = self.get_condition_scenarios_below_path(path)
+ if not isinstance(obj, (dict, list)):
+ return results
+
+ if not scenarios:
+ if isinstance(obj, dict):
+ if len(obj) == 1:
+ if obj.get('Ref') == 'AWS::NoValue':
+ return results
+ return [{
+ 'Scenario': None,
+ 'Object': obj
+ }]
+
+ def get_value(value, scenario): # pylint: disable=R0911
+ """ Get the value based on the scenario resolving nesting """
+ if isinstance(value, dict):
+ if len(value) == 1:
+ if 'Fn::If' in value:
+ if_values = value.get('Fn::If')
+ if len(if_values) == 3:
+ if_path = scenario.get(if_values[0], None)
+ if if_path is not None:
+ if if_path:
+ return get_value(if_values[1], scenario)
+ return get_value(if_values[2], scenario)
+ elif value.get('Ref') == 'AWS::NoValue':
+ return None
+
+ new_object = {}
+ for k, v in value.items():
+ new_object[k] = get_value(v, scenario)
+ return new_object
+ if isinstance(value, list):
+ new_list = []
+ for item in value:
+ new_value = get_value(item, scenario)
+ if new_value is not None:
+ new_list.append(get_value(item, scenario))
+
+ return new_list
+
+ return value
+
+ for scenario in scenarios:
+ results.append({
+ 'Scenario': scenario,
+ 'Object': get_value(obj, scenario)
+ })
+
+ return results
+
def get_value_from_scenario(self, obj, scenario):
"""
Get object values from a provided scenario
@@ -1072,6 +1130,25 @@ def get_object_without_conditions(self, obj):
return results
+ def get_condition_scenarios_below_path(self, path, include_if_in_function=False):
+ """
+ get Condition Scenarios from below path
+ """
+ fn_ifs = self.search_deep_keys('Fn::If')
+ results = {}
+ for fn_if in fn_ifs:
+ if len(fn_if) >= len(path):
+ if path == fn_if[0:len(path)]:
+ # This needs to handle items only below the Path
+ result = self.get_conditions_from_path(self.template, fn_if[0:-1], False, include_if_in_function)
+ for condition_name, condition_values in result.items():
+ if condition_name in results:
+ results[condition_name].union(condition_values)
+ else:
+ results[condition_name] = condition_values
+
+ return self.conditions.get_scenarios(results.keys())
+
def get_conditions_scenarios_from_object(self, objs):
"""
Get condition from objects
@@ -1114,7 +1191,7 @@ def get_conditions_from_property(value):
return self.conditions.get_scenarios(list(con))
- def get_conditions_from_path(self, text, path):
+ def get_conditions_from_path(self, text, path, include_resource_conditions=True, include_if_in_function=True, only_last=False):
"""
Parent function to handle resources with conditions.
Input:
@@ -1126,18 +1203,19 @@ def get_conditions_from_path(self, text, path):
{'condition': {True}}
"""
- results = self._get_conditions_from_path(text, path)
- if len(path) >= 2:
- if path[0] in ['Resources', 'Outputs']:
- condition = text.get(path[0], {}).get(path[1], {}).get('Condition')
- if condition:
- if not results.get(condition):
- results[condition] = set()
- results[condition].add(True)
+ results = self._get_conditions_from_path(text, path, include_if_in_function, only_last)
+ if include_resource_conditions:
+ if len(path) >= 2:
+ if path[0] in ['Resources', 'Outputs']:
+ condition = text.get(path[0], {}).get(path[1], {}).get('Condition')
+ if condition:
+ if not results.get(condition):
+ results[condition] = set()
+ results[condition].add(True)
return results
- def _get_conditions_from_path(self, text, path):
+ def _get_conditions_from_path(self, text, path, include_if_in_function=True, only_last=False):
"""
Get the conditions and their True/False value for the path provided
Input:
@@ -1170,7 +1248,7 @@ def get_condition_name(value, num=None):
try:
# Found a condition at the root of the Path
- if path[0] == 'Fn::If':
+ if path[0] == 'Fn::If' and ((len(path) == 1 and only_last) or not only_last):
condition = text.get('Fn::If')
if len(path) > 1:
if path[1] in [1, 2]:
@@ -1179,7 +1257,9 @@ def get_condition_name(value, num=None):
get_condition_name(condition)
# Iterate if the Path has more than one value
if len(path) > 1:
- child_results = self._get_conditions_from_path(text[path[0]], path[1:])
+ if (path[0] in cfnlint.helpers.FUNCTIONS and path[0] != 'Fn::If') and not include_if_in_function:
+ return results
+ child_results = self._get_conditions_from_path(text[path[0]], path[1:], include_if_in_function, only_last)
for c_r_k, c_r_v in child_results.items():
if not results.get(c_r_k):
results[c_r_k] = set()
diff --git a/src/cfnlint/rules/resources/iam/Limits.py b/src/cfnlint/rules/resources/iam/Limits.py
deleted file mode 100644
--- a/src/cfnlint/rules/resources/iam/Limits.py
+++ /dev/null
@@ -1,108 +0,0 @@
-"""
- Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
-
- Permission is hereby granted, free of charge, to any person obtaining a copy of this
- software and associated documentation files (the "Software"), to deal in the Software
- without restriction, including without limitation the rights to use, copy, modify,
- merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
- permit persons to whom the Software is furnished to do so.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
- INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
- PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
- HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-"""
-import datetime
-import json
-
-from cfnlint import CloudFormationLintRule
-from cfnlint import RuleMatch
-
-
-class Limits(CloudFormationLintRule):
- """Check if IAM limits are not breached"""
- id = 'E2508'
- shortdesc = 'Check IAM resource limits'
- description = 'See if IAM resources do not breach limits'
- source_url = 'https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html'
- tags = ['resources', 'iam']
-
- def _serialize_date(self, obj):
- if isinstance(obj, datetime.date):
- return obj.isoformat()
- raise TypeError('Object of type {} is not JSON serializable'.format(obj.__class__.__name__))
-
- def check_instance_profile_roles(self, properties, path, cfn):
- """Check InstanceProfile.Roles is within limits"""
- matches = []
-
- if 'Roles' not in properties:
- return matches
-
- property_sets = cfn.get_object_without_conditions(properties)
- for property_set in property_sets:
- roles = property_set.get('Object').get('Roles')
- if isinstance(roles, list):
- if len(roles) > 1:
- if property_set['Scenario'] is None:
- matches.append(
- RuleMatch(
- path + ['Roles'],
- 'InstanceProfile can only have one role attached'
- )
- )
- else:
- scenario_text = ' and '.join(['when condition "%s" is %s' % (k, v) for (k, v) in property_set['Scenario'].items()])
- message = 'InstanceProfile can only have one role attached when {0}'
- matches.append(
- RuleMatch(
- path + ['Roles'],
- message.format(scenario_text),
- )
- )
-
- return matches
-
- def check_role_assume_role_policy_document(self, properties, path, _):
- """Check Role.AssumeRolePolicyDocument is within limits"""
- matches = []
-
- if 'AssumeRolePolicyDocument' not in properties:
- return matches
-
- if len(json.dumps(properties['AssumeRolePolicyDocument'], default=self._serialize_date)) > 2048:
- matches.append(
- RuleMatch(
- path + ['AssumeRolePolicyDocument'],
- 'Role trust policy JSON text cannot be longer than 2048 characters',
- )
- )
-
- return matches
-
- def match(self, cfn):
- """Check that IAM resources are below limits"""
- matches = []
- types = {
- 'AWS::IAM::User': [
- ],
- 'AWS::IAM::Group': [
- ],
- 'AWS::IAM::Role': [
- self.check_role_assume_role_policy_document,
- ],
- 'AWS::IAM::InstanceProfile': [
- ],
- }
-
- for resource_type, check_list in types.items():
- resources = cfn.get_resources(resource_type=resource_type)
- for resource_name, resource_object in resources.items():
- path = ['Resources', resource_name, 'Properties']
- properties = resource_object.get('Properties', {})
- for check in check_list:
- matches.extend(check(properties, path, cfn))
-
- return matches
diff --git a/src/cfnlint/rules/resources/properties/JsonSize.py b/src/cfnlint/rules/resources/properties/JsonSize.py
new file mode 100644
--- /dev/null
+++ b/src/cfnlint/rules/resources/properties/JsonSize.py
@@ -0,0 +1,132 @@
+"""
+ Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ software and associated documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to use, copy, modify,
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
+import datetime
+import json
+import re
+import six
+import cfnlint.helpers
+from cfnlint import CloudFormationLintRule
+from cfnlint import RuleMatch
+from cfnlint.helpers import RESOURCE_SPECS
+
+
+class JsonSize(CloudFormationLintRule):
+ """Check if JSON Object Size is within the specified length"""
+ id = 'E3502'
+ shortdesc = 'Check if a JSON Object is within size limits'
+ description = 'Validate properties that are JSON values so that their length is within the limits'
+ source_url = 'https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html'
+ tags = ['resources', 'limits', 'json']
+
+ def initialize(self, cfn):
+ """Initialize the rule"""
+ for resource_type_spec in RESOURCE_SPECS.get(cfn.regions[0]).get('ResourceTypes'):
+ self.resource_property_types.append(resource_type_spec)
+ for property_type_spec in RESOURCE_SPECS.get(cfn.regions[0]).get('PropertyTypes'):
+ self.resource_sub_property_types.append(property_type_spec)
+
+ def _serialize_date(self, obj):
+ if isinstance(obj, datetime.date):
+ return obj.isoformat()
+ raise TypeError('Object of type {} is not JSON serializable'.format(obj.__class__.__name__))
+
+ def check_value(self, value, path, prop, cfn, specs):
+ """Check Role.AssumeRolePolicyDocument is within limits"""
+ matches = []
+
+ def remove_functions(obj):
+ """ Replaces intrinsic functions with string """
+ if isinstance(obj, dict):
+ new_obj = {}
+ if len(obj) == 1:
+ for k, v in obj.items():
+ if k in cfnlint.helpers.FUNCTIONS:
+ if k == 'Fn::Sub':
+ if isinstance(v, six.string_types):
+ return re.sub(r'\${.*}', '', v)
+ if isinstance(v, list):
+ return re.sub(r'\${.*}', '', v[0])
+ else:
+ new_obj[k] = remove_functions(v)
+ return new_obj
+ else:
+ for k, v in obj.items():
+ new_obj[k] = remove_functions(v)
+ return new_obj
+ elif isinstance(obj, list):
+ new_list = []
+ for v in obj:
+ new_list.append(remove_functions(v))
+ return new_list
+
+ return obj
+
+ scenarios = cfn.get_object_without_nested_conditions(value, path)
+ json_max_size = specs.get('JsonMax')
+ for scenario in scenarios:
+ if len(json.dumps(remove_functions(scenario['Object']), default=self._serialize_date)) > json_max_size:
+ if scenario['Scenario']:
+ message = 'Role trust policy JSON text cannot be longer than {0} characters when {1}'
+ scenario_text = ' and '.join(['when condition "%s" is %s' % (k, v) for (k, v) in scenario['Scenario'].items()])
+ matches.append(RuleMatch(path + [prop], message.format(json_max_size, scenario_text)))
+ else:
+ message = 'Role trust policy JSON text cannot be longer than {0} characters'
+ matches.append(
+ RuleMatch(
+ path + [prop],
+ message.format(json_max_size),
+ )
+ )
+
+ return matches
+
+ def check(self, cfn, properties, specs, path):
+ """Check itself"""
+ matches = []
+ for p_value, p_path in properties.items_safe(path[:]):
+ for prop in p_value:
+ if prop in specs:
+ value = specs.get(prop).get('Value', {})
+ if value:
+ value_type = value.get('ValueType', '')
+ primitive_type = specs.get(prop).get('PrimitiveType')
+ if primitive_type == 'Json':
+ matches.extend(
+ self.check_value(
+ p_value, p_path, prop, cfn,
+ RESOURCE_SPECS.get(cfn.regions[0]).get('ValueTypes').get(value_type, {})
+ )
+ )
+ return matches
+
+ def match_resource_sub_properties(self, properties, property_type, path, cfn):
+ """Match for sub properties"""
+ matches = list()
+
+ specs = RESOURCE_SPECS.get(cfn.regions[0]).get('PropertyTypes').get(property_type, {}).get('Properties', {})
+ matches.extend(self.check(cfn, properties, specs, path))
+
+ return matches
+
+ def match_resource_properties(self, properties, resource_type, path, cfn):
+ """Check CloudFormation Properties"""
+ matches = list()
+
+ specs = RESOURCE_SPECS.get(cfn.regions[0]).get('ResourceTypes').get(resource_type, {}).get('Properties', {})
+ matches.extend(self.check(cfn, properties, specs, path))
+
+ return matches
|
diff --git a/test/fixtures/templates/bad/resources/properties/json_size.yaml b/test/fixtures/templates/bad/resources/properties/json_size.yaml
new file mode 100644
--- /dev/null
+++ b/test/fixtures/templates/bad/resources/properties/json_size.yaml
@@ -0,0 +1,136 @@
+AWSTemplateFormatVersion: "2010-09-09"
+Description: Test bad ManagedPolicyArns setup
+Conditions:
+ isProduction: !Equals [!Ref 'AWS::Region', 'us-east1']
+Resources:
+ IamRole:
+ Type: AWS::IAM::Role
+ Properties:
+ AssumeRolePolicyDocument:
+ Version: '2012-10-17'
+ Statement:
+ - Sid: VeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongText
+ Effect: Allow
+ Principal:
+ Service: cloudformation.amazonaws.com
+ Action: sts:AssumeRole
+ - Sid: VeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongText
+ Effect: Allow
+ Principal:
+ Service: cloudformation.amazonaws.com
+ Action: sts:AssumeRole
+ - Sid: VeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongText
+ Effect: Allow
+ Principal:
+ Service: cloudformation.amazonaws.com
+ Action: sts:AssumeRole
+ - Sid: VeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongText
+ Effect: Allow
+ Principal:
+ Service: cloudformation.amazonaws.com
+ Action: sts:AssumeRole
+ - Sid: VeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongText
+ Effect: Allow
+ Principal:
+ Service: cloudformation.amazonaws.com
+ Action: sts:AssumeRole
+ - Sid: VeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongText
+ Effect: Allow
+ Principal:
+ Service: cloudformation.amazonaws.com
+ Action: sts:AssumeRole
+ - Sid: VeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongText
+ Effect: Allow
+ Principal:
+ Service: cloudformation.amazonaws.com
+ Action: sts:AssumeRole
+ - Sid: VeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongText
+ Effect: Allow
+ Principal:
+ Service: cloudformation.amazonaws.com
+ Action: sts:AssumeRole
+ - Sid: VeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongText
+ Effect: Allow
+ Principal:
+ Service: cloudformation.amazonaws.com
+ Action: sts:AssumeRole
+ - Sid: VeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongText
+ Effect: Allow
+ Principal:
+ Service: cloudformation.amazonaws.com
+ Action: sts:AssumeRole
+ - Sid: VeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongText
+ Effect: Allow
+ Principal:
+ Service: cloudformation.amazonaws.com
+ Action: sts:AssumeRole
+ IamRoleConditions:
+ Type: AWS::IAM::Role
+ Properties:
+ AssumeRolePolicyDocument:
+ Fn::If:
+ - isProduction
+ - Version: '2012-10-17'
+ Statement:
+ - Sid: VeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongText
+ Effect: Allow
+ Principal:
+ Service: cloudformation.amazonaws.com
+ Action: sts:AssumeRole
+ - Sid: VeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongText
+ Effect: Allow
+ Principal:
+ Service: cloudformation.amazonaws.com
+ Action: sts:AssumeRole
+ - Sid: VeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongText
+ Effect: Allow
+ Principal:
+ Service: cloudformation.amazonaws.com
+ Action: sts:AssumeRole
+ - Sid: VeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongText
+ Effect: Allow
+ Principal:
+ Service: cloudformation.amazonaws.com
+ Action: sts:AssumeRole
+ - Sid: VeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongText
+ Effect: Allow
+ Principal:
+ Service: cloudformation.amazonaws.com
+ Action: sts:AssumeRole
+ - Sid: VeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongText
+ Effect: Allow
+ Principal:
+ Service: cloudformation.amazonaws.com
+ Action: sts:AssumeRole
+ - Sid: VeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongText
+ Effect: Allow
+ Principal:
+ Service: cloudformation.amazonaws.com
+ Action: sts:AssumeRole
+ - Sid: VeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongText
+ Effect: Allow
+ Principal:
+ Service: cloudformation.amazonaws.com
+ Action: sts:AssumeRole
+ - Sid: VeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongText
+ Effect: Allow
+ Principal:
+ Service: cloudformation.amazonaws.com
+ Action: sts:AssumeRole
+ - Sid: VeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongText
+ Effect: Allow
+ Principal:
+ Service: cloudformation.amazonaws.com
+ Action: sts:AssumeRole
+ - Sid: VeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongText
+ Effect: Allow
+ Principal:
+ Service: cloudformation.amazonaws.com
+ Action: sts:AssumeRole
+ - Version: '2012-10-17'
+ Statement:
+ - Sid: VeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongText
+ Effect: Allow
+ Principal:
+ Service: cloudformation.amazonaws.com
+ Action: sts:AssumeRole
diff --git a/test/fixtures/templates/bad/resources_iam_role_assume_role_policy_document.yaml b/test/fixtures/templates/bad/resources_iam_role_assume_role_policy_document.yaml
deleted file mode 100644
--- a/test/fixtures/templates/bad/resources_iam_role_assume_role_policy_document.yaml
+++ /dev/null
@@ -1,64 +0,0 @@
-AWSTemplateFormatVersion: "2010-09-09"
-Description: Test bad ManagedPolicyArns setup
-Resources:
- IamRole:
- Type: AWS::IAM::Role
- Properties:
- AssumeRolePolicyDocument:
- Version: '2012-10-17'
- Statement:
- - Sid: VeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongText
- Effect: Allow
- Principal:
- Service: cloudformation.amazonaws.com
- Action: sts:AssumeRole
- - Sid: VeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongText
- Effect: Allow
- Principal:
- Service: cloudformation.amazonaws.com
- Action: sts:AssumeRole
- - Sid: VeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongText
- Effect: Allow
- Principal:
- Service: cloudformation.amazonaws.com
- Action: sts:AssumeRole
- - Sid: VeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongText
- Effect: Allow
- Principal:
- Service: cloudformation.amazonaws.com
- Action: sts:AssumeRole
- - Sid: VeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongText
- Effect: Allow
- Principal:
- Service: cloudformation.amazonaws.com
- Action: sts:AssumeRole
- - Sid: VeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongText
- Effect: Allow
- Principal:
- Service: cloudformation.amazonaws.com
- Action: sts:AssumeRole
- - Sid: VeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongText
- Effect: Allow
- Principal:
- Service: cloudformation.amazonaws.com
- Action: sts:AssumeRole
- - Sid: VeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongText
- Effect: Allow
- Principal:
- Service: cloudformation.amazonaws.com
- Action: sts:AssumeRole
- - Sid: VeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongText
- Effect: Allow
- Principal:
- Service: cloudformation.amazonaws.com
- Action: sts:AssumeRole
- - Sid: VeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongText
- Effect: Allow
- Principal:
- Service: cloudformation.amazonaws.com
- Action: sts:AssumeRole
- - Sid: VeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongTextVeryLongText
- Effect: Allow
- Principal:
- Service: cloudformation.amazonaws.com
- Action: sts:AssumeRole
diff --git a/test/fixtures/templates/good/resources/properties/json_size.yaml b/test/fixtures/templates/good/resources/properties/json_size.yaml
new file mode 100644
--- /dev/null
+++ b/test/fixtures/templates/good/resources/properties/json_size.yaml
@@ -0,0 +1,118 @@
+AWSTemplateFormatVersion: "2010-09-09"
+Description: Test bad ManagedPolicyArns setup
+Parameters:
+ UserName:
+ Type: String
+Conditions:
+ cPrimaryRegion: !Equals ['us-east-1', !Ref 'AWS::Region']
+ IsLimitAdminUse: !Equals ['us-east-1', !Ref 'AWS::Region']
+Resources:
+ IamRole:
+ Type: AWS::IAM::Role
+ Properties:
+ AssumeRolePolicyDocument: {}
+ ManagedPolicyArns:
+ - arn:aws:iam::aws:policy/AdministratorAccess
+ - arn:aws:iam::aws:policy/AmazonEC2ReadOnlyAccess
+ - arn:aws:iam::aws:policy/AmazonElastiCacheReadOnlyAccess
+ - arn:aws:iam::aws:policy/AmazonKinesisReadOnlyAccess
+ - arn:aws:iam::aws:policy/AmazonRDSReadOnlyAccess
+ - arn:aws:iam::aws:policy/AmazonS3ReadOnlyAccess
+ - arn:aws:iam::aws:policy/AutoScalingConsoleReadOnlyAccess
+ - arn:aws:iam::aws:policy/AWSCloudFormationReadOnlyAccess
+ - arn:aws:iam::aws:policy/AWSCodeBuildReadOnlyAccess
+ - !If [cPrimaryRegion, 'arn:aws:iam::aws:policy/IAMReadOnlyAccess', !Ref 'AWS::NoValue']
+ IamGroup:
+ Type: AWS::IAM::Group
+ Properties:
+ ManagedPolicyArns:
+ Fn::If:
+ - cPrimaryRegion
+ - - arn:aws:iam::aws:policy/AmazonEC2ReadOnlyAccess
+ - - arn:aws:iam::aws:policy/AdministratorAccess
+ AdminRole:
+ Type: AWS::IAM::Role
+ Properties:
+ AssumeRolePolicyDocument:
+ Statement:
+ - Action: sts:AssumeRole
+ Condition:
+ Bool:
+ aws:MultiFactorAuthPresent: 'true'
+ Effect: Allow
+ Principal:
+ AWS: !If
+ - IsLimitAdminUse
+ # Too many characters but filtered down to ok because the Subs are replaces
+ - - !Sub
+ - arn:aws:iam::${Account}:user/${User}
+ - Account: !Ref AWS::AccountId
+ User: !Ref UserName
+ - !Sub
+ - arn:aws:iam::${Account}:user/${User}
+ - Account: !Ref AWS::AccountId
+ User: !Ref UserName
+ - !Sub
+ - arn:aws:iam::${Account}:user/${User}
+ - Account: !Ref AWS::AccountId
+ User: !Ref UserName
+ - !Sub
+ - arn:aws:iam::${Account}:user/${User}
+ - Account: !Ref AWS::AccountId
+ User: !Ref UserName
+ - !Sub
+ - arn:aws:iam::${Account}:user/${User}
+ - Account: !Ref AWS::AccountId
+ User: !Ref UserName
+ - !Sub
+ - arn:aws:iam::${Account}:user/${User}
+ - Account: !Ref AWS::AccountId
+ User: !Ref UserName
+ - !Sub
+ - arn:aws:iam::${Account}:user/${User}
+ - Account: !Ref AWS::AccountId
+ User: !Ref UserName
+ - !Sub
+ - arn:aws:iam::${Account}:user/${User}
+ - Account: !Ref AWS::AccountId
+ User: !Ref UserName
+ - !Sub
+ - arn:aws:iam::${Account}:user/${User}
+ - Account: !Ref AWS::AccountId
+ User: !Ref UserName
+ - !Sub
+ - arn:aws:iam::${Account}:user/${User}
+ - Account: !Ref AWS::AccountId
+ User: !Ref UserName
+ - !Sub
+ - arn:aws:iam::${Account}:user/${User}
+ - Account: !Ref AWS::AccountId
+ User: !Ref UserName
+ - !Sub
+ - arn:aws:iam::${Account}:user/${User}
+ - Account: !Ref AWS::AccountId
+ User: !Ref UserName
+ - !Sub
+ - arn:aws:iam::${Account}:user/${User}
+ - Account: !Ref AWS::AccountId
+ User: !Ref UserName
+ - !Sub
+ - arn:aws:iam::${Account}:user/${User}
+ - Account: !Ref AWS::AccountId
+ User: !Ref UserName
+ - !Sub
+ - arn:aws:iam::${Account}:user/${User}
+ - Account: !Ref AWS::AccountId
+ User: !Ref UserName
+ - !Sub
+ - arn:aws:iam::${Account}:user/${User}
+ - Account: !Ref AWS::AccountId
+ User: !Ref UserName
+ - !Sub
+ - arn:aws:iam::${Account}:root
+ - Account: !Ref AWS::AccountId
+ Sid: ''
+ Version: '2012-10-17'
+ ManagedPolicyArns:
+ - arn:aws:iam::aws:policy/AdministratorAccess
+ Path: /
diff --git a/test/integration/test_patched_specs.py b/test/integration/test_patched_specs.py
--- a/test/integration/test_patched_specs.py
+++ b/test/integration/test_patched_specs.py
@@ -114,7 +114,7 @@ def test_property_value_types(self):
for v_name, v_values in self.spec.get('ValueTypes').items():
list_count = 0
for p_name, p_values in v_values.items():
- self.assertIn(p_name, ['Ref', 'GetAtt', 'AllowedValues', 'AllowedPattern', 'AllowedPatternRegex', 'ListMin', 'ListMax'])
+ self.assertIn(p_name, ['Ref', 'GetAtt', 'AllowedValues', 'AllowedPattern', 'AllowedPatternRegex', 'ListMin', 'ListMax', 'JsonMax'])
if p_name in ['ListMin', 'ListMax']:
list_count += 1
if p_name == 'Ref':
diff --git a/test/module/test_template.py b/test/module/test_template.py
--- a/test/module/test_template.py
+++ b/test/module/test_template.py
@@ -722,3 +722,203 @@ def test_get_object_without_nested_conditions(self):
else:
# Blanket assertion error
self.assertDictEqual(result['Scenario'], {})
+
+ def test_get_object_without_nested_conditions_iam(self):
+ """ Test Getting condition names in an object/list """
+ template = {
+ 'Conditions': {
+ 'isProduction': {'Fn::Equals': [{'Ref': 'myEnvironment'}, 'prod']},
+ 'isDevelopment': {'Fn::Equals': [{'Ref': 'myEnvironment'}, 'dev']}
+ },
+ 'Resources': {
+ 'Role': {
+ 'Type': 'AWS::IAM::Role',
+ 'Properties': {
+ 'AssumeRolePolicyDocument': {
+ 'Version': '2012-10-17',
+ 'Statement': [
+ {
+ 'Sid': '',
+ 'Action': 'sts:AssumeRole',
+ 'Effect': 'Allow',
+ 'Principal': {
+ 'AWS': {
+ 'Fn::If': [
+ 'isProduction',
+ '123456789012',
+ '210987654321'
+ ]
+ }
+ }
+ }
+ ]
+ },
+ 'ManagedPolicyArns': [
+ 'arn:aws:iam::aws:policy/AdministratorAccess'
+ ],
+ 'Path': '/'
+ }
+ }
+ }
+ }
+
+ template = Template('test.yaml', template)
+
+ results = template.get_object_without_nested_conditions(
+ template.template.get('Resources', {}).get('Role', {}).get('Properties', {}).get('AssumeRolePolicyDocument', {}),
+ ['Resources', 'Role', 'Properties', 'AssumeRolePolicyDocument']
+ )
+
+ self.assertEqual(len(results), 2)
+ for result in results:
+ if not result['Scenario']['isProduction']:
+ self.assertDictEqual(
+ result['Object'],
+ {
+ 'Version': '2012-10-17',
+ 'Statement': [
+ {
+ 'Sid': '',
+ 'Action': 'sts:AssumeRole',
+ 'Effect': 'Allow',
+ 'Principal': {
+ 'AWS': '210987654321'
+ }
+ }
+ ]
+ }
+ )
+ if result['Scenario']['isProduction']:
+ self.assertDictEqual(
+ result['Object'],
+ {
+ 'Version': '2012-10-17',
+ 'Statement': [
+ {
+ 'Sid': '',
+ 'Action': 'sts:AssumeRole',
+ 'Effect': 'Allow',
+ 'Principal': {
+ 'AWS': '123456789012'
+ }
+ }
+ ]
+ }
+ )
+
+ def test_get_object_without_nested_conditions_basic(self):
+ """ Test Getting condition names in an object/list """
+ template = {
+ 'Resources': {
+ 'Test': 'Test'
+ }
+ }
+
+ template = Template('test.yaml', template)
+
+ results = template.get_object_without_nested_conditions(
+ template.template.get('Resources', {}).get('Test', {}),
+ ['Resources', 'Test']
+ )
+ self.assertEqual(results, [])
+
+ def test_get_object_without_nested_conditions_ref(self):
+ """ Test Getting condition names in an object/list """
+ template = {
+ 'Resources': {
+ 'Test': {
+ 'Ref': 'AWS::NoValue'
+ }
+ }
+ }
+
+ template = Template('test.yaml', template)
+
+ results = template.get_object_without_nested_conditions(
+ template.template.get('Resources', {}).get('Test', {}),
+ ['Resources', 'Test']
+ )
+ self.assertEqual(results, [])
+ results = template.get_object_without_nested_conditions(
+ template.template.get('Resources', {}),
+ ['Resources']
+ )
+ self.assertEqual(results, [{'Object': {'Test': {'Ref': 'AWS::NoValue'}}, 'Scenario': None}])
+
+ def test_get_condition_scenarios_below_path(self):
+ """ Test Getting condition names in an object/list """
+ template = {
+ 'Parameters': {
+ 'Environment': {
+ 'Type': 'String'
+ }
+ },
+ 'Conditions': {
+ 'isPrimaryRegion': {'Fn::Equals': [{'Ref': 'AWS::Region'}, 'us-east-1']},
+ 'isProduction': {'Fn::Equals': [{'Ref': 'Environment'}, 'prod']},
+ },
+ 'Resources': {
+ 'Role': {
+ 'Type': 'AWS::IAM::Role',
+ 'Properties': {
+ 'AssumeRolePolicyDocument': {
+ 'Version': '2012-10-17',
+ 'Statement': [
+ {
+ 'Sid': '',
+ 'Action': 'sts:AssumeRole',
+ 'Effect': 'Allow',
+ 'Principal': {
+ 'AWS': {
+ 'Fn::If': [
+ 'isProduction',
+ {
+ 'Fn::Sub': [
+ '{account}',
+ {
+ 'account': {
+ 'Fn::If': [
+ 'isPrimaryRegion',
+ '123456789012',
+ 'ABCDEFGHIJKL'
+ ]
+ }
+ }
+ ]
+ },
+ '210987654321'
+ ]
+ }
+ }
+ }
+ ]
+ },
+ 'ManagedPolicyArns': [
+ 'arn:aws:iam::aws:policy/AdministratorAccess'
+ ],
+ 'Path': '/'
+ }
+ }
+ }
+ }
+
+ template = Template('test.yaml', template)
+ results = template.get_condition_scenarios_below_path(
+ ['Resources', 'Role', 'Properties', 'AssumeRolePolicyDocument']
+ )
+ self.assertEqualListOfDicts(
+ results,
+ [{'isProduction': True}, {'isProduction': False}]
+ )
+ results = template.get_condition_scenarios_below_path(
+ ['Resources', 'Role', 'Properties', 'AssumeRolePolicyDocument'], True
+ )
+ self.assertEqualListOfDicts(
+ results,
+ [
+ {'isPrimaryRegion': False, 'isProduction': False},
+ {'isPrimaryRegion': False, 'isProduction': True},
+ {'isPrimaryRegion': True, 'isProduction': False},
+ {'isPrimaryRegion': True, 'isProduction': True},
+ ]
+ )
diff --git a/test/rules/resources/iam/test_iam_limits.py b/test/rules/resources/properties/test_json_size.py
similarity index 76%
rename from test/rules/resources/iam/test_iam_limits.py
rename to test/rules/resources/properties/test_json_size.py
--- a/test/rules/resources/iam/test_iam_limits.py
+++ b/test/rules/resources/properties/test_json_size.py
@@ -14,16 +14,19 @@
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
"""
-from cfnlint.rules.resources.iam.Limits import Limits # pylint: disable=E0401
+from cfnlint.rules.resources.properties.JsonSize import JsonSize # pylint: disable=E0401
from ... import BaseRuleTestCase
-class TestPropertyIamLimits(BaseRuleTestCase):
- """Test IAM Limits"""
+class TestJsonSize(BaseRuleTestCase):
+ """Test Json Size"""
def setUp(self):
"""Setup"""
- super(TestPropertyIamLimits, self).setUp()
- self.collection.register(Limits())
+ super(TestJsonSize, self).setUp()
+ self.collection.register(JsonSize())
+ self.success_templates = [
+ 'test/fixtures/templates/good/resources/properties/json_size.yaml'
+ ]
def test_file_positive(self):
"""Test Positive"""
@@ -31,4 +34,4 @@ def test_file_positive(self):
def test_role_assume_role_policy_document(self):
"""Test failure"""
- self.helper_file_negative('test/fixtures/templates/bad/resources_iam_role_assume_role_policy_document.yaml', 1)
+ self.helper_file_negative('test/fixtures/templates/bad/resources/properties/json_size.yaml', 2)
|
Trust Policy check counts Functions in length (E2508 Role trust policy JSON text cannot be longer than 2048 characters)
*cfn-lint version: (`cfn-lint --version`)*
cfn-lint 0.16.0
*Description of issue.*
When using functions in a Trust Policy, they get counted as characters and trigger the length check. This may cause false positives eg, if there is an "If" function in there, or false negatives, eg if the there is a Ref('short') that returns a long value.
Example template:
```
Parameters:
# Testing with this set to No will deploy
LimitAdminUse:
AllowedValues:
- 'Yes'
- 'No'
Default: 'No'
Type: String
UserName:
Type: String
Conditions:
IsLimitAdminUse: !Equals
- !Ref 'LimitAdminUse'
- 'Yes'
Resources:
AdminRole:
Type: AWS::IAM::Role
Properties:
AssumeRolePolicyDocument:
Statement:
- Action: sts:AssumeRole
Condition:
Bool:
aws:MultiFactorAuthPresent: 'true'
Effect: Allow
Principal:
AWS: !If
- IsLimitAdminUse
# We repeat a lot, to get more characters, this could be all different usernames in a real template
- - !Sub
- arn:aws:iam::${Account}:user/${User}
- Account: !Ref AWS::AccountId
User: !Ref UserName
- !Sub
- arn:aws:iam::${Account}:user/${User}
- Account: !Ref AWS::AccountId
User: !Ref UserName
- !Sub
- arn:aws:iam::${Account}:user/${User}
- Account: !Ref AWS::AccountId
User: !Ref UserName
- !Sub
- arn:aws:iam::${Account}:user/${User}
- Account: !Ref AWS::AccountId
User: !Ref UserName
- !Sub
- arn:aws:iam::${Account}:user/${User}
- Account: !Ref AWS::AccountId
User: !Ref UserName
- !Sub
- arn:aws:iam::${Account}:user/${User}
- Account: !Ref AWS::AccountId
User: !Ref UserName
- !Sub
- arn:aws:iam::${Account}:user/${User}
- Account: !Ref AWS::AccountId
User: !Ref UserName
- !Sub
- arn:aws:iam::${Account}:user/${User}
- Account: !Ref AWS::AccountId
User: !Ref UserName
- !Sub
- arn:aws:iam::${Account}:user/${User}
- Account: !Ref AWS::AccountId
User: !Ref UserName
- !Sub
- arn:aws:iam::${Account}:user/${User}
- Account: !Ref AWS::AccountId
User: !Ref UserName
- !Sub
- arn:aws:iam::${Account}:user/${User}
- Account: !Ref AWS::AccountId
User: !Ref UserName
- !Sub
- arn:aws:iam::${Account}:user/${User}
- Account: !Ref AWS::AccountId
User: !Ref UserName
- !Sub
- arn:aws:iam::${Account}:user/${User}
- Account: !Ref AWS::AccountId
User: !Ref UserName
- !Sub
- arn:aws:iam::${Account}:user/${User}
- Account: !Ref AWS::AccountId
User: !Ref UserName
- !Sub
- arn:aws:iam::${Account}:user/${User}
- Account: !Ref AWS::AccountId
User: !Ref UserName
- !Sub
- arn:aws:iam::${Account}:root
- Account: !Ref AWS::AccountId
Sid: ''
Version: '2012-10-17'
ManagedPolicyArns:
- arn:aws:iam::aws:policy/AdministratorAccess
Path: /
```
* Feature request:
Getting this check to work reliably is hard, there are some mays to make it better.
1. Ignore the check if there are functions in the trust policy
2. (a bit better) Count every function as 0 characters (this should return the minimum number of characters)
2. (even better). Count every function that returns a value as 0, and handle If's as the maximum of its branches.
|
agreed. I've been doing a lot of work on how to process conditions. I think I have enough of the core engine built to do option 3. I still need to do a few things so give me a little time
I got the code to fix this working. I'm going to have to test it a little bit more and make sure I covered most of the scenarios. This will work as you have describe in option 3.
1. We will remove the Fn::Ifs by playing out the condition logic.
1. Then we will remove all other functions (besides Fn::Sub) replacing them with 0. For Fn::Sub we will use the string but replace any variables with an empty string.
1. Then we will check the size of the resulting JSON
This way we can expand the logic around Fn::Sub to get even closer to reality. Replace AccountId with a 12 digit number, etc.
That's awesome!
May I suggest treating Fn::Join similar to Fn::Sub (keeping the length of anything that is a real string, and maybe in the future count Ref's to an AccountId as 12).
The `Fn::Base64` is also pretty straight-forward to count, as this is always at least the length of the string given to it. More accurately it's the length of the string * 8\6 (8 bits per string characters, and 6 bits per base64 character)
The other functions are harder to do :)
|
2019-03-19T00:22:50Z
|
[] |
[] |
aws-cloudformation/cfn-lint
| 756 |
aws-cloudformation__cfn-lint-756
|
[
"752"
] |
19ed6d52fd1c08d9a5517f9c4f0bff64e959f171
|
diff --git a/src/cfnlint/rules/resources/codepipeline/CodepipelineStageActions.py b/src/cfnlint/rules/resources/codepipeline/CodepipelineStageActions.py
--- a/src/cfnlint/rules/resources/codepipeline/CodepipelineStageActions.py
+++ b/src/cfnlint/rules/resources/codepipeline/CodepipelineStageActions.py
@@ -14,6 +14,7 @@
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
"""
+import six
from cfnlint import CloudFormationLintRule
from cfnlint import RuleMatch
@@ -44,6 +45,12 @@ class CodepipelineStageActions(CloudFormationLintRule):
'OutputArtifactRange': (0, 5),
}
},
+ 'Build': {
+ 'CodeBuild': {
+ 'InputArtifactRange': (1, 5),
+ 'OutputArtifactRange': (0, 5),
+ }
+ },
'Approval': {
'Manual': {
'InputArtifactRange': 0,
@@ -167,12 +174,14 @@ def check_names_unique(self, action, path, action_names):
"""Check that action names are unique."""
matches = []
- if action.get('Name') in action_names:
- message = 'All action names within a stage must be unique. ({name})'.format(
- name=action.get('Name')
- )
- matches.append(RuleMatch(path + ['Name'], message))
- action_names.add(action.get('Name'))
+ action_name = action.get('Name')
+ if isinstance(action_name, six.string_types):
+ if action.get('Name') in action_names:
+ message = 'All action names within a stage must be unique. ({name})'.format(
+ name=action.get('Name')
+ )
+ matches.append(RuleMatch(path + ['Name'], message))
+ action_names.add(action.get('Name'))
return matches
|
diff --git a/test/fixtures/templates/bad/resources_codepipeline_stages_second_stage.yaml b/test/fixtures/templates/bad/resources_codepipeline_stages_second_stage.yaml
--- a/test/fixtures/templates/bad/resources_codepipeline_stages_second_stage.yaml
+++ b/test/fixtures/templates/bad/resources_codepipeline_stages_second_stage.yaml
@@ -29,7 +29,7 @@ Resources:
OAuthToken: 'secret-token'
- Name: MoreSource
Actions:
- - Name: Github
+ - Name: !Ref Github
ActionTypeId:
Category: Source
Owner: ThirdParty
diff --git a/test/fixtures/templates/good/resources/codepipeline/stage_actions.yaml b/test/fixtures/templates/good/resources/codepipeline/stage_actions.yaml
new file mode 100644
--- /dev/null
+++ b/test/fixtures/templates/good/resources/codepipeline/stage_actions.yaml
@@ -0,0 +1,44 @@
+AWSTemplateFormatVersion: 2010-09-09
+Description: >
+ Good CodePipeline Template
+Parameters:
+ CodeBuild:
+ Type: String
+Resources:
+ TestPipeline:
+ Type: AWS::CodePipeline::Pipeline
+ Properties:
+ Name: Test-pipeline
+ ArtifactStore:
+ Location: 'pipeline-bucket'
+ Type: S3
+ RoleArn: arn:aws:iam:::role/AWSCodePipelineRole
+ Stages:
+ - Name: Source
+ Actions:
+ - Name: Github
+ ActionTypeId:
+ Category: Source
+ Owner: ThirdParty
+ Provider: GitHub
+ Version: "1"
+ OutputArtifacts:
+ - Name: MyApp
+ Configuration:
+ Owner: aws-cloudformation
+ Repo: cfn-python-lint
+ PollForSourceChanges: true
+ Branch: master
+ OAuthToken: 'secret-token'
+ - Name: MoreSource
+ Actions:
+ - Name: !Ref CodeBuild # doesn't fail when Ref is used
+ ActionTypeId:
+ Category: Build
+ Owner: AWS
+ Version: "1"
+ Provider: CodeBuild
+ Configuration:
+ ProjectName: cfn-python-lint
+ InputArtifacts:
+ - Name: MyApp
diff --git a/test/rules/resources/codepipeline/test_stageactions.py b/test/rules/resources/codepipeline/test_stageactions.py
--- a/test/rules/resources/codepipeline/test_stageactions.py
+++ b/test/rules/resources/codepipeline/test_stageactions.py
@@ -24,6 +24,9 @@ def setUp(self):
"""Setup"""
super(TestCodePipelineStageActions, self).setUp()
self.collection.register(CodepipelineStageActions())
+ self.success_templates = [
+ 'test/fixtures/templates/good/resources/codepipeline/stage_actions.yaml'
+ ]
def test_file_positive(self):
"""Test Positive"""
|
[cfn-lint] E0002:Unknown exception while processing rule E2541: unhashable type: 'dict_node'
*cfn-lint version: 0.16.0
I got the error message:
`[cfn-lint] E0002:Unknown exception while processing rule E2541: unhashable type: 'dict_node'
`
If I put a "!Ref Name" in the source action Name: see below
```
Stages:
- Name: GitHub
Actions:
- Name: !Ref GitHubSourceRepo1
ActionTypeId:
Category: Source
Owner: Custom
Version: 1
Provider: GitHUBcustom
.
.
.
.
```
If I remove the !Ref, the cfn-lint works fine.
|
2019-03-22T01:08:49Z
|
[] |
[] |
|
aws-cloudformation/cfn-lint
| 757 |
aws-cloudformation__cfn-lint-757
|
[
"755"
] |
333cf89cc6680a367281e4af71b2e9bf52ea3ab0
|
diff --git a/src/cfnlint/transform.py b/src/cfnlint/transform.py
--- a/src/cfnlint/transform.py
+++ b/src/cfnlint/transform.py
@@ -70,7 +70,9 @@ def _replace_local_codeuri(self):
if resource_type == 'AWS::Serverless::Function':
Transform._update_to_s3_uri('CodeUri', resource_dict)
-
+ if resource_type in ['AWS::Serverless::LayerVersion']:
+ if resource_dict.get('ContentUri'):
+ Transform._update_to_s3_uri('ContentUri', resource_dict)
if resource_type == 'AWS::Serverless::Api':
if 'DefinitionBody' not in resource_dict:
Transform._update_to_s3_uri('DefinitionUri', resource_dict)
|
diff --git a/test/fixtures/templates/bad/transform_serverless_template.yaml b/test/fixtures/templates/bad/transform_serverless_template.yaml
--- a/test/fixtures/templates/bad/transform_serverless_template.yaml
+++ b/test/fixtures/templates/bad/transform_serverless_template.yaml
@@ -47,6 +47,12 @@ Resources:
detail:
state:
- terminated
+ ExampleLayer:
+ Type: AWS::Serverless::LayerVersion
+ Properties:
+ LayerName: "Example"
+ CompatibleRuntimes:
+ - python3.6
myBucket:
Type: AWS::S3::Bucket
Properties: {}
diff --git a/test/fixtures/templates/good/transform.yaml b/test/fixtures/templates/good/transform.yaml
--- a/test/fixtures/templates/good/transform.yaml
+++ b/test/fixtures/templates/good/transform.yaml
@@ -8,6 +8,13 @@ Resources:
Handler: index.handler
Runtime: nodejs4.3
CodeUri: 's3://testBucket/mySourceCode.zip'
+ ExampleLayer:
+ Type: AWS::Serverless::LayerVersion
+ Properties:
+ LayerName: "Example"
+ ContentUri: "./layers/example.zip"
+ CompatibleRuntimes:
+ - python3.6
Outputs:
myOutput:
Value: !GetAtt [ MyServerlessFunctionLogicalID, Arn ]
|
E0001 when LayerVersion ContentUri references local file
*cfn-lint version: 0.16.0*
Using latest version of cfn-lint and updated spec files.
*Description of issue.*
Linting a SAM template fails when including a LayerVersion with `ContentUri` referencing a local file.
Example template:
```yaml
AWSTemplateFormatVersion: 2010-09-09
Transform: AWS::Serverless-2016-10-31
Resources:
ExampleLayer:
Type: AWS::Serverless::LayerVersion
Properties:
LayerName: "Example"
ContentUri: "./layers/example.zip"
CompatibleRuntimes:
- python3.6
```
Error:
```
E0001 Error transforming template: Resource with id [ExampleLayere5b6fe5ccd] is invalid. 'ContentUri' is not a valid S3 Uri of the form "s3://bucket/key" with optional versionId query parameter.
example.yaml:1:1
```
However, this template validates with `sam validate` and works as expected with `sam package`. Example output template from `sam package`:
```yaml
AWSTemplateFormatVersion: 2010-09-09
Resources:
ExampleLayer:
Properties:
CompatibleRuntimes:
- python3.6
ContentUri: s3://<redacted>/ca1212f406e4a73dbe62c2ac6b8b02f0
LayerName: Example
Type: AWS::Serverless::LayerVersion
Transform: AWS::Serverless-2016-10-31
```
I will note that even though this is the expected `sam package` behavior, I do not believe it is properly documented in either SAM CLI or AWS CLI (`aws cloudformation package`) docs.
|
2019-03-22T01:41:14Z
|
[] |
[] |
|
aws-cloudformation/cfn-lint
| 758 |
aws-cloudformation__cfn-lint-758
|
[
"700"
] |
63689b6c7f4635f8d013ac2833946ef6658662ce
|
diff --git a/src/cfnlint/transform.py b/src/cfnlint/transform.py
--- a/src/cfnlint/transform.py
+++ b/src/cfnlint/transform.py
@@ -73,6 +73,10 @@ def _replace_local_codeuri(self):
if resource_type in ['AWS::Serverless::LayerVersion']:
if resource_dict.get('ContentUri'):
Transform._update_to_s3_uri('ContentUri', resource_dict)
+ if resource_type == 'AWS::Serverless::Application':
+ if resource_dict.get('Location'):
+ resource_dict['Location'] = ''
+ Transform._update_to_s3_uri('Location', resource_dict)
if resource_type == 'AWS::Serverless::Api':
if 'DefinitionBody' not in resource_dict:
Transform._update_to_s3_uri('DefinitionUri', resource_dict)
|
diff --git a/test/fixtures/templates/bad/transform_serverless_template.yaml b/test/fixtures/templates/bad/transform_serverless_template.yaml
--- a/test/fixtures/templates/bad/transform_serverless_template.yaml
+++ b/test/fixtures/templates/bad/transform_serverless_template.yaml
@@ -53,6 +53,13 @@ Resources:
LayerName: "Example"
CompatibleRuntimes:
- python3.6
+ AppName:
+ Type: AWS::Serverless::Application
+ Properties:
+ Parameters:
+ Debug: 'True'
+ MemorySizeMB: '128'
+ TimeoutSec: '300'
myBucket:
Type: AWS::S3::Bucket
Properties: {}
diff --git a/test/fixtures/templates/good/transform.yaml b/test/fixtures/templates/good/transform.yaml
--- a/test/fixtures/templates/good/transform.yaml
+++ b/test/fixtures/templates/good/transform.yaml
@@ -15,6 +15,16 @@ Resources:
ContentUri: "./layers/example.zip"
CompatibleRuntimes:
- python3.6
+ AppName:
+ Type: AWS::Serverless::Application
+ Properties:
+ Location:
+ ApplicationId: arn:aws:serverlessrepo:us-west-2:<my-account-id>:applications/<app-name>
+ SemanticVersion: 1.0.0
+ Parameters:
+ Debug: 'True'
+ MemorySizeMB: '128'
+ TimeoutSec: '300'
Outputs:
myOutput:
Value: !GetAtt [ MyServerlessFunctionLogicalID, Arn ]
diff --git a/test/integration/test_good_templates.py b/test/integration/test_good_templates.py
--- a/test/integration/test_good_templates.py
+++ b/test/integration/test_good_templates.py
@@ -43,6 +43,10 @@ def setUp(self):
"filename": 'test/fixtures/templates/good/transform.yaml',
"failures": 0
},
+ 'transform_bad': {
+ "filename": 'test/fixtures/templates/bad/transform_serverless_template.yaml',
+ "failures": 3
+ },
'conditions': {
"filename": 'test/fixtures/templates/good/conditions.yaml',
"failures": 0
|
E0001 Error for SAR Apps
*cfn-lint version: `cfn-lint 0.15.0`*
*Description of issue*
While running `cfn-lint` on a nested CloudFormation stack containing `AWS::Serverless::Application` resources, it errors with:
```yaml
Resources:
AppName:
Type: AWS::Serverless::Application
Properties:
Location:
ApplicationId: arn:aws:serverlessrepo:us-west-2:<my-account-id>:applications/<app-name>
SemanticVersion: 1.0.0
Parameters:
Debug: 'True'
MemorySizeMB: 128
TimeoutSec: 300
```
```bash
$ cfn-lint template.yml
E0001 Resource with id [AppName] is invalid. Application with id arn:aws:serverlessrepo:us-west-2:<my-account-Id-hosting-the-app>:applications/<app-name> could not be found.
template.yml:1:1
```
Supporting evidence:
1. The Application definitely exists, since the template runs with no issues.
2. I have admin permissions with the current user to make, update, view, delete the app.
|
Interesting. Validation of serverless resources occurs via the SAM validation libraries. Do you happen to have the SAM CLI installed? I'm curious what results you get validating through the CLI.
@cmmeyer I get the following:
```bash
$ sam validate --template infra.yml
infra.yml is a valid SAM Template
```
@cmmeyer we actually use their Translator. https://github.com/aws-cloudformation/cfn-python-lint/blob/master/src/cfnlint/transform.py#L118 Before SAM SAR we would validate the translated templated from SAM. What I think we need to figure out is what Translator does with a SAM SAR application. My basic understanding is in the end its just a nested template. My hope is it isn't reaching out to SAM SAR to validate and pull information about the application.
Oddly enough, I'm having another issue with a different SAM template running in CI (no nested stacks or anything, just some AWS::Serverless resources):
```
E0001 Error transforming template: 'module' object has no attribute 'logging'
```
Really not sure where to start with this one. It's on the latest version of `cfn-lint` too... Any ideas @cmmeyer ?
. @Dunedan figured out the logging issue: #702
So it looks like you may have gotten sam-translator 1.10.0 in the mix at some point. I wonder if the other issues may stem from that as well.
Not solving it, but is it an idea to output the transformed template with `--debug`?
Playing around with this and I think I got it.
(I'm running sam-translater 1.9.0, so it's not related to 1.10.)
* The error is actually coming from SAM since it's a [`E0001 `](https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/rules.md#E0001) error.
* SAM actually does stuff in AWS, so your AWS Credentials need to be valid to retrieve the data needed (I get a `Resource with id [AppName] is invalid. User: XXX is not authorized to perform: serverlessrepo:CreateCloudFormationTemplate on resource: arn:aws:serverlessrepo:us-west-2:<my-account-id>:applications/<app-name>` error when running this sample (least privilege here))
Based on this:
- I created a PR to clarify the transformation. Added output of the transformed template (if successful) and the region to the debug output (`-d` or `--debug`) and added an explicit `Error transforming template` to the error message.
- Can you check the privileges on your side? I think it has to do something with that
> Can you check the privileges on your side? I think it has to do something with that
I'm using admin privs, so it can't be that.
I think @fatbasstard meant your AWS privileges. Since it looks like SAR is causing it to reach out to AWS you will need credentials and privileges to query it. We have tried to remain completely offline during all of our linting but this new feature in SAM has changed that. I want to dig a little farther into why its doing that, etc. To see if we can stop it or prevent it.
Might even be the region.. Which region is the function in, and against what region is the linter running?
It might search for the function in another region, which causes the "cannot find it". The linter is running against `us-east-1` if no region is specified
My guess is we are going to have to translate this before we go to SAM to prevent it reaching out to the account. This is an example of what gets output on full transformation. The Template URL is probably provided by the call out to the serverless repo. The good part is we don't worry about the validity of the Url only the properties and their values for formatting reasons. What I'm proposing is we translate `AWS::Serverless::Application` to its equivalent resource `AWS::CloudFormation::Stack` voiding the TemplateURL. Or maybe there is a clever way to provide the feedback to the call that samtranslator is making to provide it a generic TemplateURL.
```
"Bucket": {
"Type": "AWS::CloudFormation::Stack",
"Properties": {
"TemplateURL": "https://awsserverlessrepo-changesets-plntc6bfnfj.s3.amazonaws.com/AIDAJEF4MAIJQFOIKLXX6-51d20263-e5dc-461c-8d34-029afde3a90f.yaml?X-Amz-Security-Token=FQoGZXIvYXdzEAoaDLPbjmWojhcH4U1rcyKCApkuQ%2ByITP3xcIIJAQO5Ehty%2F6GWw2rHaNaxECDXgItWZh1Q6cPt0HXeTEWo8nGuohPU6IluBfzuuFfh5c6gXC3JXzygRxbloe3rSljQaI3G3ior7LqTEARPcauKlEV1uSwQ%2BS0PsiJfv8QNms0%2BV46w8iPrgDBwTrTJt%2FgLhHykWM15M4nbql1OmlC4x4866A%2FqQ5Qwtgc60Q%2FWxu4sqEj9J6y9ElwGsLUAe5oZTp%2FcnOzmkEh%2FwDfeBBq60tcZpCm0YAKHU6HB9G39Uhkze%2Bps3Y1CgTR6PHO2a71oHJJKKP88QNzIJhzTjoLXjqnSJhv8O7aaREQhqd6lVDMKBync%2FCimuZ%2FkBQ%3D%3D&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20190312T164245Z&X-Amz-SignedHeaders=host&X-Amz-Expires=21599&X-Amz-Credential=ASIAQ63C33MXBRRTMRDP%2F20190312%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Signature=40f006d885d7f4b2af8da077e1ef09d9c5ecda6c4d3bab5ae288d1bb9713fb65",
"Parameters": {
"BucketName": "test-123456789012-us-east-1"
},
"Tags": [
{
"Value": "SAM",
"Key": "lambda:createdBy"
},
{
"Value": "arn:aws:serverlessrepo:us-east-1:123456789012:applications/test",
"Key": "serverlessrepo:applicationId"
},
{
"Value": "0.0.1",
"Key": "serverlessrepo:semanticVersion"
}
]
}
}
```
|
2019-03-22T01:56:06Z
|
[] |
[] |
aws-cloudformation/cfn-lint
| 759 |
aws-cloudformation__cfn-lint-759
|
[
"739"
] |
7cbabd7b9ac3609d2acfc3c7ff4f718cfd57a16a
|
diff --git a/src/cfnlint/rules/resources/iam/Limits.py b/src/cfnlint/rules/resources/iam/Limits.py
--- a/src/cfnlint/rules/resources/iam/Limits.py
+++ b/src/cfnlint/rules/resources/iam/Limits.py
@@ -34,37 +34,6 @@ def _serialize_date(self, obj):
return obj.isoformat()
raise TypeError('Object of type {} is not JSON serializable'.format(obj.__class__.__name__))
- def check_managed_policy_arns(self, properties, path, cfn):
- """Check ManagedPolicyArns is within limits"""
- matches = []
-
- if 'ManagedPolicyArns' not in properties:
- return matches
-
- property_sets = cfn.get_object_without_conditions(properties)
- for property_set in property_sets:
- managed_policies = property_set.get('Object').get('ManagedPolicyArns')
- if isinstance(managed_policies, list):
- if len(managed_policies) > 10:
- if property_set['Scenario'] is None:
- matches.append(
- RuleMatch(
- path + ['ManagedPolicyArns'],
- 'IAM resources cannot have more than 10 ManagedPolicyArns',
- )
- )
- else:
- scenario_text = ' and '.join(['when condition "%s" is %s' % (k, v) for (k, v) in property_set['Scenario'].items()])
- message = 'IAM resources cannot have more than 10 ManagedPolicyArns when {0}'
- matches.append(
- RuleMatch(
- path + ['ManagedPolicyArns'],
- message.format(scenario_text),
- )
- )
-
- return matches
-
def check_instance_profile_roles(self, properties, path, cfn):
"""Check InstanceProfile.Roles is within limits"""
matches = []
@@ -96,37 +65,6 @@ def check_instance_profile_roles(self, properties, path, cfn):
return matches
- def check_user_groups(self, properties, path, cfn):
- """Check User.Groups is within limits"""
- matches = []
-
- if 'Groups' not in properties:
- return matches
-
- property_sets = cfn.get_object_without_conditions(properties)
- for property_set in property_sets:
- groups = property_set.get('Object').get('Groups')
- if isinstance(groups, list):
- if len(groups) > 10:
- if property_set['Scenario'] is None:
- matches.append(
- RuleMatch(
- path + ['Groups'],
- 'User can be a member of maximum 10 groups',
- )
- )
- else:
- scenario_text = ' and '.join(['when condition "%s" is %s' % (k, v) for (k, v) in property_set['Scenario'].items()])
- message = 'User can be a member of maximum 10 groups when {0}'
- matches.append(
- RuleMatch(
- path + ['Groups'],
- message.format(scenario_text),
- )
- )
-
- return matches
-
def check_role_assume_role_policy_document(self, properties, path, _):
"""Check Role.AssumeRolePolicyDocument is within limits"""
matches = []
@@ -149,18 +87,13 @@ def match(self, cfn):
matches = []
types = {
'AWS::IAM::User': [
- self.check_managed_policy_arns,
- self.check_user_groups,
],
'AWS::IAM::Group': [
- self.check_managed_policy_arns,
],
'AWS::IAM::Role': [
- self.check_managed_policy_arns,
self.check_role_assume_role_policy_document,
],
'AWS::IAM::InstanceProfile': [
- self.check_instance_profile_roles,
],
}
diff --git a/src/cfnlint/rules/resources/properties/ListSize.py b/src/cfnlint/rules/resources/properties/ListSize.py
new file mode 100644
--- /dev/null
+++ b/src/cfnlint/rules/resources/properties/ListSize.py
@@ -0,0 +1,107 @@
+"""
+ Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ software and associated documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to use, copy, modify,
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
+from cfnlint import CloudFormationLintRule
+from cfnlint import RuleMatch
+
+from cfnlint.helpers import RESOURCE_SPECS
+
+
+class ListSize(CloudFormationLintRule):
+ """Check if List has a size within the limit"""
+ id = 'E3032'
+ shortdesc = 'Check if a list has between min and max number of values specified'
+ description = 'Check lists for the number of items in the list to validate they are between the minimum and maximum'
+ source_url = 'https://github.com/awslabs/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#allowedpattern'
+ tags = ['resources', 'property', 'list', 'size']
+
+ def initialize(self, cfn):
+ """Initialize the rule"""
+ for resource_type_spec in RESOURCE_SPECS.get(cfn.regions[0]).get('ResourceTypes'):
+ self.resource_property_types.append(resource_type_spec)
+ for property_type_spec in RESOURCE_SPECS.get(cfn.regions[0]).get('PropertyTypes'):
+ self.resource_sub_property_types.append(property_type_spec)
+
+ def check_value(self, properties, path, property_name, cfn, value_specs):
+ """Check Value"""
+ matches = []
+
+ # Get the Min and Max for a List
+ list_min = value_specs.get('ListMin')
+ list_max = value_specs.get('ListMax')
+
+ if list_min is not None and list_max is not None:
+ property_sets = cfn.get_object_without_conditions(properties)
+ for property_set in property_sets:
+ prop = property_set.get('Object').get(property_name)
+ if isinstance(prop, list):
+ if not list_min <= len(prop) <= list_max:
+ if property_set['Scenario'] is None:
+ message = '{0} has to have between {1} and {2} items specified'
+ matches.append(
+ RuleMatch(
+ path + [property_name],
+ message.format(property_name, list_min, list_max),
+ )
+ )
+ else:
+ scenario_text = ' and '.join(['when condition "%s" is %s' % (k, v) for (k, v) in property_set['Scenario'].items()])
+ message = '{0} has to have between {1} and {2} items specified when {0}'
+ matches.append(
+ RuleMatch(
+ path + [property_name],
+ message.format(property_name, list_min, list_max, scenario_text),
+ )
+ )
+
+ return matches
+
+ def check(self, cfn, properties, specs, path):
+ """Check itself"""
+ matches = []
+ for p_value, p_path in properties.items_safe(path[:]):
+ for prop in p_value:
+ if prop in specs:
+ value = specs.get(prop).get('Value', {})
+ if value:
+ value_type = value.get('ValueType', '')
+ property_type = specs.get(prop).get('Type')
+ if property_type == 'List':
+ matches.extend(
+ self.check_value(
+ p_value, p_path, prop, cfn,
+ RESOURCE_SPECS.get(cfn.regions[0]).get('ValueTypes').get(value_type, {})
+ )
+ )
+ return matches
+
+ def match_resource_sub_properties(self, properties, property_type, path, cfn):
+ """Match for sub properties"""
+ matches = list()
+
+ specs = RESOURCE_SPECS.get(cfn.regions[0]).get('PropertyTypes').get(property_type, {}).get('Properties', {})
+ matches.extend(self.check(cfn, properties, specs, path))
+
+ return matches
+
+ def match_resource_properties(self, properties, resource_type, path, cfn):
+ """Check CloudFormation Properties"""
+ matches = list()
+
+ specs = RESOURCE_SPECS.get(cfn.regions[0]).get('ResourceTypes').get(resource_type, {}).get('Properties', {})
+ matches.extend(self.check(cfn, properties, specs, path))
+
+ return matches
|
diff --git a/test/integration/test_patched_specs.py b/test/integration/test_patched_specs.py
--- a/test/integration/test_patched_specs.py
+++ b/test/integration/test_patched_specs.py
@@ -112,8 +112,11 @@ def test_sub_properties(self):
def test_property_value_types(self):
"""Test Property Value Types"""
for v_name, v_values in self.spec.get('ValueTypes').items():
+ list_count = 0
for p_name, p_values in v_values.items():
- self.assertIn(p_name, ['Ref', 'GetAtt', 'AllowedValues', 'AllowedPattern', 'AllowedPatternRegex'])
+ self.assertIn(p_name, ['Ref', 'GetAtt', 'AllowedValues', 'AllowedPattern', 'AllowedPatternRegex', 'ListMin', 'ListMax'])
+ if p_name in ['ListMin', 'ListMax']:
+ list_count += 1
if p_name == 'Ref':
self.assertIsInstance(p_values, dict, 'ValueTypes: %s, Type: %s' % (v_name, p_name))
for r_name, r_value in p_values.items():
@@ -138,6 +141,7 @@ def test_property_value_types(self):
self.assertIsInstance(p_values, list)
for l_value in p_values:
self.assertIsInstance(l_value, (six.string_types, six.integer_types), 'ValueTypes: %s, Type: %s' % (v_name, p_name))
+ self.assertIn(list_count, [0, 2], 'Both ListMin and ListMax must be specified')
def test_parameter_types(self):
"""Test Parameter Types"""
diff --git a/test/rules/resources/iam/test_iam_limits.py b/test/rules/resources/iam/test_iam_limits.py
--- a/test/rules/resources/iam/test_iam_limits.py
+++ b/test/rules/resources/iam/test_iam_limits.py
@@ -29,18 +29,6 @@ def test_file_positive(self):
"""Test Positive"""
self.helper_file_positive()
- def test_managedpolicyarns(self):
- """Test failure"""
- self.helper_file_negative('test/fixtures/templates/bad/resources_iam_managedpolicyarns.yaml', 3)
-
- def test_user_groups(self):
- """Test failure"""
- self.helper_file_negative('test/fixtures/templates/bad/resources_iam_user_groups.yaml', 1)
-
- def test_instance_profile_roles(self):
- """Test failure"""
- self.helper_file_negative('test/fixtures/templates/bad/resources_iam_instanceprofile_roles.yaml', 1)
-
def test_role_assume_role_policy_document(self):
"""Test failure"""
self.helper_file_negative('test/fixtures/templates/bad/resources_iam_role_assume_role_policy_document.yaml', 1)
diff --git a/test/rules/resources/properties/test_list_size.py b/test/rules/resources/properties/test_list_size.py
new file mode 100644
--- /dev/null
+++ b/test/rules/resources/properties/test_list_size.py
@@ -0,0 +1,38 @@
+"""
+ Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ software and associated documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to use, copy, modify,
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
+from cfnlint.rules.resources.properties.ListSize import ListSize # pylint: disable=E0401
+from ... import BaseRuleTestCase
+
+
+class TestListSize(BaseRuleTestCase):
+ """Test List Size Property Configuration"""
+ def setUp(self):
+ """Setup"""
+ super(TestListSize, self).setUp()
+ self.collection.register(ListSize())
+
+ def test_file_positive(self):
+ """Test Positive"""
+ self.helper_file_positive()
+
+ def test_file_negative_iam_managed_policies(self):
+ """Test failure"""
+ self.helper_file_negative('test/fixtures/templates/bad/resources_iam_managedpolicyarns.yaml', 3)
+
+ def test_file_negative_iam_user_groups(self):
+ """Test failure"""
+ self.helper_file_negative('test/fixtures/templates/bad/resources_iam_user_groups.yaml', 1)
|
Continued expansion of the Spec files to include Min/Max
I would like to propose a continued expansion of the spec files to include Min/Max information
- [x] Min/Max of string
- [x] Min/Max size of a JSON object (example: IAM Policy)
- [x] Min/Max size of a list
- [x] Min/Max of a number
All of these need some level of handling functions (especially conditions). We can build out the core functionality and then it becomes easier to add additional checks for similar patterns.
|
Love the idea (of course). Maybe we need to restructure the AllowedValues (and/or spec patching definition) a bit in order to support it?
|
2019-03-25T11:36:01Z
|
[] |
[] |
aws-cloudformation/cfn-lint
| 769 |
aws-cloudformation__cfn-lint-769
|
[
"768"
] |
30c7193d6313e4500d1dc95f9c711c4671c4b7f7
|
diff --git a/src/cfnlint/__init__.py b/src/cfnlint/__init__.py
--- a/src/cfnlint/__init__.py
+++ b/src/cfnlint/__init__.py
@@ -824,7 +824,10 @@ def get_location_yaml(self, text, path):
# If the last item of the path is an integer, and the vaue is an array,
# Get the location of the item in the array
if isinstance(text, list) and isinstance(path[0], int):
- result = self._loc(text[path[0]])
+ try:
+ result = self._loc(text[path[0]])
+ except AttributeError as err:
+ LOGGER.debug(err)
else:
try:
for key in text:
|
diff --git a/test/module/cfn_json/test_cfn_json.py b/test/module/cfn_json/test_cfn_json.py
--- a/test/module/cfn_json/test_cfn_json.py
+++ b/test/module/cfn_json/test_cfn_json.py
@@ -48,7 +48,7 @@ def setUp(self):
},
"vpc_management": {
"filename": 'test/fixtures/templates/quickstart/vpc-management.json',
- "failures": 33
+ "failures": 35
},
"vpc": {
"filename": 'test/fixtures/templates/quickstart/vpc.json',
|
E0002 Unknown exception while processing rule E3012: 'int' object has no attribute 'start_mark'
**cfn-lint version:**
0.17.0
**Exception:**
E0002 Unknown exception while processing rule E3012: 'int' object has no attribute 'start_mark'
template.yml:1:1
**Example template:**
```yaml
AWSTemplateFormatVersion: 2010-09-09
Resources:
emrStep:
Type: 'AWS::EMR::Step'
Properties:
ActionOnFailure: CANCEL_AND_WAIT
HadoopJarStep:
Args:
- string
- 2
- otherstring
Jar: command-runner.jar
JobFlowId: 'foo'
Name: 'bar'
```
**Explanation:**
All items in the list for Resources.emrStep.Properties.HadoopJarStep.Args should be of type string per https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-step-hadoopjarstepconfig.html, when a non-string value is provided cfn-lint generates an exception instead of noting the error.
Changing the args to the correct format by removing the `2` or putting quotes around it resolves the exception.
The (actual) template deploys successfully even though it has some ints instead of a strings in the args like the example does
|
2019-03-27T23:02:57Z
|
[] |
[] |
|
aws-cloudformation/cfn-lint
| 781 |
aws-cloudformation__cfn-lint-781
|
[
"638"
] |
04febe6ab894c1a3c718d8ed0f1b6dd83b5a9d32
|
diff --git a/src/cfnlint/rules/resources/elb/Elb.py b/src/cfnlint/rules/resources/elb/Elb.py
--- a/src/cfnlint/rules/resources/elb/Elb.py
+++ b/src/cfnlint/rules/resources/elb/Elb.py
@@ -44,6 +44,24 @@ def check_protocol_value(self, value, path, **kwargs):
return matches
+ def check_alb_subnets(self, props, path):
+ """ Validate at least two subnets with ALBs"""
+ matches = []
+ elb_type = props.get('Type')
+ if elb_type == 'application':
+ subnets = props.get('Subnets')
+ if isinstance(subnets, list):
+ if len(subnets) < 2:
+ path = path + ['Subnets']
+ matches.append(RuleMatch(path, 'You must specify at least two Subnets for load balancers with type "application"'))
+ subnet_mappings = props.get('SubnetMappings')
+ if isinstance(subnet_mappings, list):
+ if len(subnet_mappings) < 2:
+ path = path + ['SubnetMappings']
+ matches.append(RuleMatch(path, 'You must specify at least two SubnetMappings for load balancers with type "application"'))
+
+ return matches
+
def match(self, cfn):
"""Check ELB Resource Parameters"""
@@ -74,9 +92,12 @@ def match(self, cfn):
results = cfn.get_resource_properties(['AWS::ElasticLoadBalancingV2::LoadBalancer'])
for result in results:
properties = result['Value']
- if 'Type' in properties and properties['Type'] == 'network':
+ elb_type = properties.get('Type')
+ if elb_type == 'network':
if 'SecurityGroups' in properties:
path = result['Path'] + ['SecurityGroups']
matches.append(RuleMatch(path, 'Security groups are not supported for load balancers with type "network"'))
+ matches.extend(self.check_alb_subnets(properties, result['Path']))
+
return matches
|
diff --git a/test/rules/resources/elb/test_elb.py b/test/rules/resources/elb/test_elb.py
--- a/test/rules/resources/elb/test_elb.py
+++ b/test/rules/resources/elb/test_elb.py
@@ -35,3 +35,66 @@ def test_file_positive(self):
def test_file_negative(self):
"""Test failure"""
self.helper_file_negative('test/fixtures/templates/bad/properties_elb.yaml', 6)
+
+ def test_alb_subnets(self):
+ """ Test ALB Subnet Logic"""
+ rule = Elb()
+
+ # Failure when 1 subnet defined
+ props = {
+ "Type": "application",
+ "Subnets": [
+ "subnet-123456"
+ ]
+ }
+
+ matches = rule.check_alb_subnets(props, ['Resources', 'ALB', 'Properties'])
+ self.assertEqual(len(matches), 1)
+
+ # No Failure when 2 subnets defined
+ props = {
+ "Type": "application",
+ "Subnets": [
+ "subnet-123456",
+ "subnet-abcdef"
+ ]
+ }
+
+ matches = rule.check_alb_subnets(props, ['Resources', 'ALB', 'Properties'])
+ self.assertEqual(len(matches), 0)
+
+ # Failure when 1 SubnetMapping defined
+ props = {
+ "Type": "application",
+ "SubnetMappings": [
+ {
+ "SubnetId": "subnet-123456"
+ }
+ ]
+ }
+
+ matches = rule.check_alb_subnets(props, ['Resources', 'ALB', 'Properties'])
+ self.assertEqual(len(matches), 1)
+
+ # No Failure when 2 SubnetMapping defined
+ props = {
+ "Type": "application",
+ "SubnetMappings": [
+ {"SubnetId": "subnet-123456"},
+ {"SubnetId": "subnet-abcdef"}
+ ]
+ }
+
+ matches = rule.check_alb_subnets(props, ['Resources', 'ALB', 'Properties'])
+ self.assertEqual(len(matches), 0)
+
+ # No Failure when 1 Subnet and NLB
+ props = {
+ "Type": "network",
+ "Subnets": [
+ "subnet-123456"
+ ]
+ }
+
+ matches = rule.check_alb_subnets(props, ['Resources', 'NLB', 'Properties'])
+ self.assertEqual(len(matches), 0)
|
Single-subnet ELB detection
*cfn-lint version: 0.10.3*
*Description of issue.*
When configuring `AWS::ElasticLoadBalancingV2::LoadBalancer`, if you specify only 1 subnet, you get back from AWS:
> 2019-02-05 12:22:39 +1100 Elb AWS::ElasticLoadBalancingV2::LoadBalancer CREATE_FAILED At least two subnets in two different Availability Zones must be specified (Service: AmazonElasticLoadBalancingV2; Status Code: 400; Error Code: ValidationError; Request ID: ...)
This could be covered by a cfn-lint check.
|
Solid rule idea. I'll label this as a new rule until someone picks it up.
Thanks!
I think this becomes a definition in the spec once #759 is merged
|
2019-03-31T13:24:46Z
|
[] |
[] |
aws-cloudformation/cfn-lint
| 795 |
aws-cloudformation__cfn-lint-795
|
[
"794"
] |
7cc16998b0f49cdb1487f01905bce9ab0efc141d
|
diff --git a/src/cfnlint/rules/parameters/AllowedValue.py b/src/cfnlint/rules/parameters/AllowedValue.py
--- a/src/cfnlint/rules/parameters/AllowedValue.py
+++ b/src/cfnlint/rules/parameters/AllowedValue.py
@@ -14,6 +14,7 @@
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
"""
+import six
from cfnlint import CloudFormationLintRule
from cfnlint import RuleMatch
@@ -47,20 +48,24 @@ def check_value_ref(self, value, **kwargs):
param = cfn.template.get('Parameters').get(value, {})
parameter_values = param.get('AllowedValues')
default_value = param.get('Default')
-
- # Check Allowed Values
- if parameter_values:
- for index, allowed_value in enumerate(parameter_values):
- if allowed_value not in allowed_value_specs:
- param_path = ['Parameters', value, 'AllowedValues', index]
- message = 'You must specify a valid allowed value for {0} ({1}).\nValid values are {2}'
- matches.append(RuleMatch(param_path, message.format(value, allowed_value, allowed_value_specs)))
- elif default_value:
- # Check Default, only if no allowed Values are specified in the parameter (that's covered by E2015)
- if default_value not in allowed_value_specs:
- param_path = ['Parameters', value, 'Default']
- message = 'You must specify a valid Default value for {0} ({1}).\nValid values are {2}'
- matches.append(RuleMatch(param_path, message.format(value, default_value, allowed_value_specs)))
+ parameter_type = param.get('Type')
+ if isinstance(parameter_type, six.string_types):
+ if ((not parameter_type.startswith('List<')) and
+ (not parameter_type.startswith('AWS::SSM::Parameter::Value<')) and
+ parameter_type not in ['CommaDelimitedList']):
+ # Check Allowed Values
+ if parameter_values:
+ for index, allowed_value in enumerate(parameter_values):
+ if allowed_value not in allowed_value_specs:
+ param_path = ['Parameters', value, 'AllowedValues', index]
+ message = 'You must specify a valid allowed value for {0} ({1}).\nValid values are {2}'
+ matches.append(RuleMatch(param_path, message.format(value, allowed_value, allowed_value_specs)))
+ elif default_value:
+ # Check Default, only if no allowed Values are specified in the parameter (that's covered by E2015)
+ if default_value not in allowed_value_specs:
+ param_path = ['Parameters', value, 'Default']
+ message = 'You must specify a valid Default value for {0} ({1}).\nValid values are {2}'
+ matches.append(RuleMatch(param_path, message.format(value, default_value, allowed_value_specs)))
return matches
|
diff --git a/test/fixtures/templates/good/resources/properties/allowed_values.yaml b/test/fixtures/templates/good/resources/properties/allowed_values.yaml
--- a/test/fixtures/templates/good/resources/properties/allowed_values.yaml
+++ b/test/fixtures/templates/good/resources/properties/allowed_values.yaml
@@ -17,6 +17,10 @@ Parameters:
- "standard"
ImageId:
Type: "AWS::EC2::Image::Id"
+ SsmInstanceType:
+ Default: /Demo/DemoInstanceType # Recommend t3.nano
+ Description: EC2 instance type to use to create the collector host
+ Type: AWS::SSM::Parameter::Value<String>
Resources:
AmazonMQBroker:
Type: "AWS::AmazonMQ::Broker"
@@ -525,6 +529,11 @@ Resources:
- DeviceName: "/dev/sdm"
Ebs:
VolumeType: "gp2" # Valid AllowedValue
+ EC2Instance2:
+ Type: AWS::EC2::Instance
+ Properties:
+ ImageId: "ami-2f726546"
+ InstanceType: !Ref SsmInstanceType
GlueConnection:
Type: "AWS::Glue::Connection"
Properties:
|
Getting 'W2030:You must specify a valid Default value' in 0.17.1
*cfn-lint version: (`cfn-lint --version`)*
`cfn-lint 0.17.1`
*Description of issue.*
```
[cfn-lint] W2030:You must specify a valid Default value for DemoInstanceType (/Demo/DemoInstanceType).
Valid values are ['a1.2xlarge', 'a1.4xlarge', 'a1.large', 'a1.medium', 'a1.xlarge', 'c1.medium', 'c1.xlarge', 'c3.2xlarge', 'c3.4xlarge', 'c3.8xlarge', 'c3.large', 'c3.xlarge', 'c4.2xlarge', 'c4.4xlarge', 'c4.8xlarge', 'c4.large', 'c4.xlarge', 'c5.18xlarge', 'c5.2xlarge', 'c5.4xlarge', 'c5.9xlarge', 'c5.large', 'c5.xlarge', 'c5d.18xlarge', 'c5d.2xlarge', 'c5d.4xlarge', 'c5d.9xlarge', 'c5d.large', 'c5d.xlarge', 'c5n.18xlarge', 'c5n.2xlarge', 'c5n.4xlarge', 'c5n.9xlarge', 'c5n.large', 'c5n.xlarge', 'cc2.8xlarge', 'cr1.8xlarge', 'd2.2xlarge', 'd2.4xlarge', 'd2.8xlarge', 'd2.xlarge', 'f1.16xlarge', 'f1.2xlarge', 'f1.4xlarge', 'g2.2xlarge', 'g2.8xlarge', 'g3.16xlarge', 'g3.4xlarge', 'g3.8xlarge', 'g3s.xlarge', 'h1.16xlarge', 'h1.2xlarge', 'h1.4xlarge', 'h1.8xlarge', 'hs1.8xlarge', 'i2.2xlarge', 'i2.4xlarge', 'i2.8xlarge', 'i2.xlarge', 'i3.16xlarge', 'i3.2xlarge', 'i3.4xlarge', 'i3.8xlarge', 'i3.large', 'i3.xlarge', 'm1.large', 'm1.medium', 'm1.small', 'm1.xlarge', 'm2.2xlarge', 'm2.4xlarge', 'm2.xlarge', 'm3.2xlarge', 'm3.large', 'm3.medium', 'm3.xlarge', 'm4.10xlarge', 'm4.16xlarge', 'm4.2xlarge', 'm4.4xlarge', 'm4.large', 'm4.xlarge', 'm5.12xlarge', 'm5.24xlarge', 'm5.2xlarge', 'm5.4xlarge', 'm5.large', 'm5.metal', 'm5.xlarge', 'm5a.12xlarge', 'm5a.24xlarge', 'm5a.2xlarge', 'm5a.4xlarge', 'm5a.large', 'm5a.xlarge', 'm5ad.12xlarge', 'm5ad.24xlarge', 'm5ad.2xlarge', 'm5ad.4xlarge', 'm5ad.large', 'm5ad.xlarge', 'm5d.12xlarge', 'm5d.24xlarge', 'm5d.2xlarge', 'm5d.4xlarge', 'm5d.large', 'm5d.metal', 'm5d.xlarge', 'p2.16xlarge', 'p2.8xlarge', 'p2.xlarge', 'p3.16xlarge', 'p3.2xlarge', 'p3.8xlarge', 'p3dn.24xlarge', 'r3.2xlarge', 'r3.4xlarge', 'r3.8xlarge', 'r3.large', 'r3.xlarge', 'r4.16xlarge', 'r4.2xlarge', 'r4.4xlarge', 'r4.8xlarge', 'r4.large', 'r4.xlarge', 'r5.12xlarge', 'r5.24xlarge', 'r5.2xlarge', 'r5.4xlarge', 'r5.large', 'r5.xlarge', 'r5a.12xlarge', 'r5a.24xlarge', 'r5a.2xlarge', 'r5a.4xlarge', 'r5a.large', 'r5a.xlarge', 'r5ad.12xlarge', 'r5ad.24xlarge', 'r5ad.2xlarge', 'r5ad.4xlarge', 'r5ad.large', 'r5ad.xlarge', 'r5d.12xlarge', 'r5d.24xlarge', 'r5d.2xlarge', 'r5d.4xlarge', 'r5d.large', 'r5d.xlarge', 't1.micro', 't2.2xlarge', 't2.large', 't2.medium', 't2.micro', 't2.nano', 't2.small', 't2.xlarge', 't3.2xlarge', 't3.large', 't3.medium', 't3.micro', 't3.nano', 't3.small', 't3.xlarge', 'x1.16xlarge', 'x1.32xlarge', 'x1e.16xlarge', 'x1e.2xlarge', 'x1e.32xlarge', 'x1e.4xlarge', 'x1e.8xlarge', 'x1e.xlarge', 'z1d.12xlarge', 'z1d.2xlarge', 'z1d.3xlarge', 'z1d.6xlarge', 'z1d.large', 'z1d.xlarge']
```
The CloudFormation parameter is :
```
DemoInstanceType:
Default: /Demo/DemoInstanceType # Recommend t3.nano
Description: EC2 instance type to use to create the collector host
Type: AWS::SSM::Parameter::Value<String>
```
The value of the SSM parameter is `t3.nano`
I have an older project using the same pattern and the virtual environment still has cfn-lint version 0.12.0. It's not raising this complaint. I verified by updating to latest (0.17.1) and the problem cropped up. When I downgraded back to 0.12.0, the problem went away.
|
Looking into it now. Thanks for reporting this.
|
2019-04-04T12:46:45Z
|
[] |
[] |
aws-cloudformation/cfn-lint
| 810 |
aws-cloudformation__cfn-lint-810
|
[
"806"
] |
b0740dbe9c89c4e891d5a8d0eea44c775f834b4f
|
diff --git a/scripts/update_specs_from_pricing.py b/scripts/update_specs_from_pricing.py
--- a/scripts/update_specs_from_pricing.py
+++ b/scripts/update_specs_from_pricing.py
@@ -191,6 +191,34 @@ def get_rds_pricing():
FormatVersion='aws_v1',
)
+ product_map = {
+ '2': ['mysql'],
+ '3': ['oracle-se1'],
+ '4': ['oracle-se'],
+ '5': ['oracle-ee'],
+ '6': ['oracle-se1'],
+ '8': ['sqlserver-se'],
+ '9': ['sqlserver-ee'],
+ '10': ['sqlserver-ex'],
+ '11': ['sqlserver-web'],
+ '12': ['sqlserver-se'],
+ '14': ['postgres'],
+ '15': ['sqlserver-ee'],
+ '16': ['aurora-mysql', 'aurora'],
+ '18': ['mariadb'],
+ '19': ['oracle-se2'],
+ '20': ['oracle-se2'],
+ '21': ['aurora-postgresql'],
+ }
+
+ license_map = {
+ 'License included': 'license-included',
+ 'Bring your own license': 'bring-your-own-license',
+ 'No license required': 'general-public-license'
+ }
+
+ rds_specs = {}
+
results = {}
for page in page_iterator:
for price_item in page.get('PriceList', []):
@@ -198,11 +226,36 @@ def get_rds_pricing():
product = products.get('product', {})
if product:
if product.get('productFamily') == 'Database Instance':
+ # Get overall instance types
if not results.get(region_map[product.get('attributes').get('location')]):
results[region_map[product.get('attributes').get('location')]] = set()
results[region_map[product.get('attributes').get('location')]].add(
product.get('attributes').get('instanceType')
)
+ # Rds Instance Size spec
+ product_names = product_map.get(product.get('attributes').get('engineCode'), [])
+ product_region = region_map.get(product.get('attributes').get('location'))
+ license_name = license_map.get(product.get('attributes').get('licenseModel'))
+ instance_type = product.get('attributes').get('instanceType')
+ for product_name in product_names:
+ if not rds_specs.get(license_name):
+ rds_specs[license_name] = {}
+ if not rds_specs.get(license_name).get(product_name):
+ rds_specs[license_name][product_name] = {}
+ if not rds_specs.get(license_name).get(product_name).get(product_region):
+ rds_specs[license_name][product_name][product_region] = set()
+
+ rds_specs[license_name][product_name][product_region].add(instance_type)
+
+ for license_name, license_values in rds_specs.items():
+ for product_name, product_values in license_values.items():
+ for product_region, instance_types in product_values.items():
+ rds_specs[license_name][product_name][product_region] = list(sorted(instance_types))
+
+ LOGGER.info('Updating RDS Spec files')
+ filename = 'src/cfnlint/data/AdditionalSpecs/RdsProperties.json'
+ with open(filename, 'w+') as f:
+ json.dump(rds_specs, f, indent=2, sort_keys=True, separators=(',', ': '))
return results
def get_neptune_pricing():
diff --git a/src/cfnlint/rules/resources/rds/InstanceSize.py b/src/cfnlint/rules/resources/rds/InstanceSize.py
--- a/src/cfnlint/rules/resources/rds/InstanceSize.py
+++ b/src/cfnlint/rules/resources/rds/InstanceSize.py
@@ -31,24 +31,48 @@ class InstanceSize(CloudFormationLintRule):
valid_instance_types = cfnlint.helpers.load_resources('data/AdditionalSpecs/RdsProperties.json')
+ def _get_license_model(self, engine, license_model):
+ """ Logic to get the correct license model"""
+ if not license_model:
+ if engine in self.valid_instance_types.get('license-included'):
+ license_model = 'license-included'
+ elif engine in self.valid_instance_types.get('bring-your-own-license'):
+ license_model = 'bring-your-own-license'
+ else:
+ license_model = 'general-public-license'
+ self.logger.debug('Based on Engine: %s we determined the default license will be %s', engine, license_model)
+
+ return license_model
+
def get_resources(self, cfn):
""" Get resources that can be checked """
results = []
for resource_name, resource_values in cfn.get_resources('AWS::RDS::DBInstance').items():
path = ['Resources', resource_name, 'Properties']
properties = resource_values.get('Properties')
+ # Properties items_safe heps remove conditions and focusing on the actual values and scenarios
for prop_safe, prop_path_safe in properties.items_safe(path):
engine = prop_safe.get('Engine')
inst_class = prop_safe.get('DBInstanceClass')
license_model = prop_safe.get('LicenseModel')
+
+ # Need to get a default license model if none provided
+ # Also need to validate all these values are strings otherwise we cannot
+ # do validation
if isinstance(engine, six.string_types) and isinstance(inst_class, six.string_types):
- results.append(
- {
- 'Engine': engine,
- 'DBInstanceClass': inst_class,
- 'Path': prop_path_safe,
- 'LicenseModel': license_model
- })
+ license_model = self._get_license_model(engine, license_model)
+ if isinstance(license_model, six.string_types):
+ results.append(
+ {
+ 'Engine': engine,
+ 'DBInstanceClass': inst_class,
+ 'Path': prop_path_safe,
+ 'LicenseModel': license_model
+ })
+ else:
+ self.logger.debug('Skip evaluation based on [LicenseModel] not being a string.')
+ else:
+ self.logger.debug('Skip evaluation based on [Engine] or [DBInstanceClass] not being strings.')
return results
@@ -56,31 +80,20 @@ def check_db_config(self, properties, region):
""" Check db properties """
matches = []
- for valid_instance_type in self.valid_instance_types:
- engine = properties.get('Engine')
- if engine in valid_instance_type.get('engines'):
- if region in valid_instance_type.get('regions'):
- db_license = properties.get('LicenseModel')
- valid_licenses = valid_instance_type.get('license')
- db_instance_class = properties.get('DBInstanceClass')
- valid_instance_types = valid_instance_type.get('instance_types')
- if db_license and valid_licenses:
- if db_license not in valid_licenses:
- self.logger.debug('Skip evaluation based on license not matching.')
- continue
- if db_instance_class not in valid_instance_types:
- if db_license is None:
- message = 'DBInstanceClass "{0}" is not compatible with engine type "{1}" in region "{2}". Use instance types [{3}]'
- matches.append(
- RuleMatch(
- properties.get('Path') + ['DBInstanceClass'], message.format(
- db_instance_class, engine, region, ', '.join(map(str, valid_instance_types)))))
- else:
- message = 'DBInstanceClass "{0}" is not compatible with engine type "{1}" and LicenseModel "{2}" in region "{3}". Use instance types [{4}]'
- matches.append(
- RuleMatch(
- properties.get('Path') + ['DBInstanceClass'], message.format(
- db_instance_class, engine, db_license, region, ', '.join(map(str, valid_instance_types)))))
+ db_engine = properties.get('Engine')
+ db_license = properties.get('LicenseModel')
+ db_instance_class = properties.get('DBInstanceClass')
+ if db_license in self.valid_instance_types:
+ if db_engine in self.valid_instance_types[db_license]:
+ if region in self.valid_instance_types[db_license][db_engine]:
+ if db_instance_class not in self.valid_instance_types[db_license][db_engine][region]:
+ message = 'DBInstanceClass "{0}" is not compatible with engine type "{1}" and LicenseModel "{2}" in region "{3}". Use instance types [{4}]'
+ matches.append(
+ RuleMatch(
+ properties.get('Path') + ['DBInstanceClass'], message.format(
+ db_instance_class, db_engine, db_license, region, ', '.join(map(str, self.valid_instance_types[db_license][db_engine][region])))))
+ else:
+ self.logger.debug('Skip evaluation based on license [%s] not matching.', db_license)
return matches
def match(self, cfn):
|
diff --git a/test/fixtures/templates/bad/resources/rds/instance_sizes.yaml b/test/fixtures/templates/bad/resources/rds/instance_sizes.yaml
--- a/test/fixtures/templates/bad/resources/rds/instance_sizes.yaml
+++ b/test/fixtures/templates/bad/resources/rds/instance_sizes.yaml
@@ -1,5 +1,10 @@
---
AWSTemplateFormatVersion: '2010-09-09'
+Parameters:
+ DatabaseEngine:
+ Type: String
+ License:
+ Type: String
Resources:
# Fails on invalid instance type
DBInstance1:
@@ -27,3 +32,30 @@ Resources:
Properties:
DBInstanceClass: db.m4.xlarge
Engine: mysql
+ # Doesn't fail when InstanceClass is wrong but the Engine can't be determined
+ DBInstance5:
+ Type: AWS::RDS::DBInstance
+ Properties:
+ DBInstanceClass: notanappropriatetype
+ Engine: !Ref DatabaseEngine
+ # Doesn't fail when InstanceClass is wrong but the LicenseModel can't be determined
+ DBInstance7:
+ Type: AWS::RDS::DBInstance
+ Properties:
+ DBInstanceClass: notanappropriatetype
+ Engine: sqlserver-se
+ LicenseModel: !Ref License
+ # Doesn't fail when LicenseModel isn't a valid value
+ DBInstance8:
+ Type: AWS::RDS::DBInstance
+ Properties:
+ DBInstanceClass: notanappropriatetype
+ Engine: sqlserver-se
+ LicenseModel: bad-license-model
+ # Doesn't fail when Egnine isn't a valid value
+ DBInstance9:
+ Type: AWS::RDS::DBInstance
+ Properties:
+ DBInstanceClass: notanappropriatetype
+ Engine: bad-ee
+ LicenseModel: license-included
diff --git a/test/fixtures/templates/good/resources/rds/instance_sizes.yaml b/test/fixtures/templates/good/resources/rds/instance_sizes.yaml
--- a/test/fixtures/templates/good/resources/rds/instance_sizes.yaml
+++ b/test/fixtures/templates/good/resources/rds/instance_sizes.yaml
@@ -32,3 +32,15 @@ Resources:
DBInstanceClass: db.r4.large
Engine: oracle-se2
LicenseModel: license-included
+ # Doesnt fail on no license when default is license-included
+ DBInstance5:
+ Type: AWS::RDS::DBInstance
+ Properties:
+ DBInstanceClass: db.m1.small
+ Engine: sqlserver-ex
+ # Doesnt fail on no license when default is bring-your-own-license
+ DBInstance6:
+ Type: AWS::RDS::DBInstance
+ Properties:
+ DBInstanceClass: db.m1.small
+ Engine: oracle-ee
|
E3025 RDS Instance Type db.t3 Support
*cfn-lint version: (`0.18.1 w/ latest Spec files`)*
*Description of issue:*
When attempting to specify an RDS Instance Type of the new db.t3 instances cfn-lint throws a E3025 error stating that a db.t3 is incompatible with engine type mysql in region us-east-1.
Looking at [RdsProperties.json](../blob/master/src/cfnlint/data/AdditionalSpecs/RdsProperties.json) it appears that the new db.t3 instance types have not been added yet.
Looking at the reference page [Amazon RDS for MySQL Pricing](https://aws.amazon.com/rds/mysql/pricing/) the db.t3 instances are supported when using mysql as the engine type.
*Example Code:*
```yaml
AppDB
Type: AWS::RDS::DBInstance
Properties:
DBInstanceClass: db.t3.large
Engine: mysql
```
|
looking into it.
|
2019-04-06T13:42:48Z
|
[] |
[] |
aws-cloudformation/cfn-lint
| 812 |
aws-cloudformation__cfn-lint-812
|
[
"112"
] |
efe7947fb5d6b1d53d6a69e48bc9efdf876a741f
|
diff --git a/src/cfnlint/rules/resources/codepipeline/CodepipelineStages.py b/src/cfnlint/rules/resources/codepipeline/CodepipelineStages.py
--- a/src/cfnlint/rules/resources/codepipeline/CodepipelineStages.py
+++ b/src/cfnlint/rules/resources/codepipeline/CodepipelineStages.py
@@ -27,17 +27,25 @@ class CodepipelineStages(CloudFormationLintRule):
source_url = 'https://docs.aws.amazon.com/codepipeline/latest/userguide/reference-pipeline-structure.html#pipeline-requirements'
tags = ['properties', 'codepipeline']
- def check_stage_count(self, stages, path):
+ def _format_error_message(self, message, scenario):
+ """Format error message with scenario text"""
+ if scenario:
+ scenario_text = ' When ' + ' and '.join(['condition "%s" is %s' % (k, v) for (k, v) in scenario.items()])
+ return message + scenario_text
+
+ return message
+
+ def check_stage_count(self, stages, path, scenario):
"""Check that there is minimum 2 stages."""
matches = []
if len(stages) < 2:
- message = 'A pipeline must contain at least two stages.'
- matches.append(RuleMatch(path, message))
+ message = 'CodePipeline has {} stages. There must be at least two stages.'.format(len(stages))
+ matches.append(RuleMatch(path, self._format_error_message(message, scenario)))
return matches
- def check_first_stage(self, stages, path):
+ def check_first_stage(self, stages, path, scenario):
"""Validate the first stage of a pipeline has source actions."""
matches = []
@@ -49,15 +57,15 @@ def check_first_stage(self, stages, path):
first_stage = set([a.get('ActionTypeId').get('Category') for a in stages[0]['Actions']])
if first_stage and 'Source' not in first_stage:
message = 'The first stage of a pipeline must contain at least one source action.'
- matches.append(RuleMatch(path + [0], message))
+ matches.append(RuleMatch(path + [0, 'Name'], self._format_error_message(message, scenario)))
if len(first_stage) != 1:
message = 'The first stage of a pipeline must contain only source actions.'
- matches.append(RuleMatch(path + [0], message))
+ matches.append(RuleMatch(path + [0, 'Name'], self._format_error_message(message, scenario)))
return matches
- def check_source_actions(self, stages, path):
+ def check_source_actions(self, stages, path, scenario):
"""Validate the all of the stages."""
matches = []
categories = set()
@@ -72,15 +80,15 @@ def check_source_actions(self, stages, path):
categories.add(action_type_id.get('Category'))
if sidx > 0 and action_type_id.get('Category') == 'Source':
message = 'Only the first stage of a pipeline may contain source actions.'
- matches.append(RuleMatch(path + [sidx, 'Actions', aidx], message))
+ matches.append(RuleMatch(path + [sidx, 'Actions', aidx], self._format_error_message(message, scenario)))
if not (categories - set(['Source'])):
message = 'At least one stage in pipeline must contain an action that is not a source action.'
- matches.append(RuleMatch(path, message))
+ matches.append(RuleMatch(path, self._format_error_message(message, scenario)))
return matches
- def check_names_unique(self, value, path):
+ def check_names_unique(self, value, path, scenario):
"""Check that stage names are unique."""
matches = []
stage_names = set()
@@ -91,7 +99,7 @@ def check_names_unique(self, value, path):
message = 'All stage names within a pipeline must be unique. ({name})'.format(
name=stage_name,
)
- matches.append(RuleMatch(path + [sidx, 'Name'], message))
+ matches.append(RuleMatch(path + [sidx, 'Name'], self._format_error_message(message, scenario)))
stage_names.add(stage_name)
else:
self.logger.debug('Found non string for stage name: %s', stage_name)
@@ -103,28 +111,29 @@ def match(self, cfn):
resources = cfn.get_resource_properties(['AWS::CodePipeline::Pipeline'])
for resource in resources:
- path = resource['Path']
+ path = resource['Path'] + ['Stages']
properties = resource['Value']
- s_stages = properties.get_safe('Stages', path)
- for s_stage_v, s_stage_p in s_stages:
- if not isinstance(s_stage_v, list):
+ s_stages = cfn.get_object_without_nested_conditions(properties.get('Stages'), path)
+ for s_stage in s_stages:
+ s_stage_obj = s_stage.get('Object')
+ s_scenario = s_stage.get('Scenario')
+ if not isinstance(s_stage_obj, list):
self.logger.debug('Stages not list. Should have been caught by generic linting.')
- return matches
+ continue
try:
- stage_path = path + s_stage_p
matches.extend(
- self.check_stage_count(s_stage_v, stage_path)
+ self.check_stage_count(s_stage_obj, path, s_scenario)
)
matches.extend(
- self.check_first_stage(s_stage_v, stage_path)
+ self.check_first_stage(s_stage_obj, path, s_scenario)
)
matches.extend(
- self.check_source_actions(s_stage_v, stage_path)
+ self.check_source_actions(s_stage_obj, path, s_scenario)
)
matches.extend(
- self.check_names_unique(s_stage_v, stage_path)
+ self.check_names_unique(s_stage_obj, path, s_scenario)
)
except AttributeError as err:
self.logger.debug('Got AttributeError. Should have been caught by generic linting. '
|
diff --git a/test/fixtures/templates/bad/resources_codepipeline_action_artifact_counts.yaml b/test/fixtures/templates/bad/resources/codepipeline/action_artifact_counts.yaml
similarity index 100%
rename from test/fixtures/templates/bad/resources_codepipeline_action_artifact_counts.yaml
rename to test/fixtures/templates/bad/resources/codepipeline/action_artifact_counts.yaml
diff --git a/test/fixtures/templates/bad/resources_codepipeline_action_invalid_version.yaml b/test/fixtures/templates/bad/resources/codepipeline/action_invalid_version.yaml
similarity index 100%
rename from test/fixtures/templates/bad/resources_codepipeline_action_invalid_version.yaml
rename to test/fixtures/templates/bad/resources/codepipeline/action_invalid_version.yaml
diff --git a/test/fixtures/templates/bad/resources_codepipeline_action_non_unique.yaml b/test/fixtures/templates/bad/resources/codepipeline/action_non_unique.yaml
similarity index 100%
rename from test/fixtures/templates/bad/resources_codepipeline_action_non_unique.yaml
rename to test/fixtures/templates/bad/resources/codepipeline/action_non_unique.yaml
diff --git a/test/fixtures/templates/bad/resources_codepipeline_stages_no_source.yaml b/test/fixtures/templates/bad/resources/codepipeline/stages_no_source.yaml
similarity index 100%
rename from test/fixtures/templates/bad/resources_codepipeline_stages_no_source.yaml
rename to test/fixtures/templates/bad/resources/codepipeline/stages_no_source.yaml
diff --git a/test/fixtures/templates/bad/resources_codepipeline_stages_non_unique.yaml b/test/fixtures/templates/bad/resources/codepipeline/stages_non_unique.yaml
similarity index 100%
rename from test/fixtures/templates/bad/resources_codepipeline_stages_non_unique.yaml
rename to test/fixtures/templates/bad/resources/codepipeline/stages_non_unique.yaml
diff --git a/test/fixtures/templates/bad/resources_codepipeline_stages_one_stage.yaml b/test/fixtures/templates/bad/resources/codepipeline/stages_one_stage.yaml
similarity index 79%
rename from test/fixtures/templates/bad/resources_codepipeline_stages_one_stage.yaml
rename to test/fixtures/templates/bad/resources/codepipeline/stages_one_stage.yaml
--- a/test/fixtures/templates/bad/resources_codepipeline_stages_one_stage.yaml
+++ b/test/fixtures/templates/bad/resources/codepipeline/stages_one_stage.yaml
@@ -37,3 +37,13 @@ Resources:
ProjectName: cfn-python-lint
InputArtifacts:
- Name: MyApp
+ TestPipeline2: # no Error when Stages is a dict
+ Type: AWS::CodePipeline::Pipeline
+ Properties:
+ Name: Test-pipeline
+ ArtifactStore:
+ Location: 'pipeline-bucket'
+ Type: S3
+ RoleArn: arn:aws:iam:::role/AWSCodePipelineRole
+ Stages:
+ Name: Source2
diff --git a/test/fixtures/templates/bad/resources/codepipeline/stages_only_source.yaml b/test/fixtures/templates/bad/resources/codepipeline/stages_only_source.yaml
new file mode 100644
--- /dev/null
+++ b/test/fixtures/templates/bad/resources/codepipeline/stages_only_source.yaml
@@ -0,0 +1,29 @@
+AWSTemplateFormatVersion: 2010-09-09
+Description: >
+ Bad CodePipeline Template
+Resources:
+ TestPipeline:
+ Type: AWS::CodePipeline::Pipeline
+ Properties:
+ Name: Test-pipeline
+ ArtifactStore:
+ Location: 'pipeline-bucket'
+ Type: S3
+ RoleArn: arn:aws:iam:::role/AWSCodePipelineRole
+ Stages:
+ - Name: Source
+ Actions:
+ - Name: Github
+ ActionTypeId:
+ Category: Source
+ Owner: ThirdParty
+ Provider: GitHub
+ Version: "1"
+ OutputArtifacts:
+ - Name: MyApp
+ Configuration:
+ Owner: aws-cloudformation
+ Repo: cfn-python-lint
+ PollForSourceChanges: true
+ Branch: master
+ OAuthToken: 'secret-token'
diff --git a/test/fixtures/templates/bad/resources_codepipeline_stages_second_stage.yaml b/test/fixtures/templates/bad/resources/codepipeline/stages_second_stage.yaml
similarity index 100%
rename from test/fixtures/templates/bad/resources_codepipeline_stages_second_stage.yaml
rename to test/fixtures/templates/bad/resources/codepipeline/stages_second_stage.yaml
diff --git a/test/rules/resources/codepipeline/test_stageactions.py b/test/rules/resources/codepipeline/test_stageactions.py
--- a/test/rules/resources/codepipeline/test_stageactions.py
+++ b/test/rules/resources/codepipeline/test_stageactions.py
@@ -34,12 +34,12 @@ def test_file_positive(self):
def test_file_artifact_counts(self):
"""Test failure"""
- self.helper_file_negative('test/fixtures/templates/bad/resources_codepipeline_action_artifact_counts.yaml', 4)
+ self.helper_file_negative('test/fixtures/templates/bad/resources/codepipeline/action_artifact_counts.yaml', 4)
def test_file_invalid_version(self):
"""Test failure"""
- self.helper_file_negative('test/fixtures/templates/bad/resources_codepipeline_action_invalid_version.yaml', 3)
+ self.helper_file_negative('test/fixtures/templates/bad/resources/codepipeline/action_invalid_version.yaml', 3)
def test_file_non_unique(self):
"""Test failure"""
- self.helper_file_negative('test/fixtures/templates/bad/resources_codepipeline_action_non_unique.yaml', 1)
+ self.helper_file_negative('test/fixtures/templates/bad/resources/codepipeline/action_non_unique.yaml', 1)
diff --git a/test/rules/resources/codepipeline/test_stages.py b/test/rules/resources/codepipeline/test_stages.py
--- a/test/rules/resources/codepipeline/test_stages.py
+++ b/test/rules/resources/codepipeline/test_stages.py
@@ -31,16 +31,27 @@ def test_file_positive(self):
def test_file_negative_onestage(self):
"""Test failure"""
- self.helper_file_negative('test/fixtures/templates/bad/resources_codepipeline_stages_one_stage.yaml', 2)
+ self.helper_file_negative('test/fixtures/templates/bad/resources/codepipeline/stages_one_stage.yaml', 2)
def test_file_negative_no_source(self):
"""Test failure"""
- self.helper_file_negative('test/fixtures/templates/bad/resources_codepipeline_stages_no_source.yaml', 1)
+ self.helper_file_negative('test/fixtures/templates/bad/resources/codepipeline/stages_no_source.yaml', 1)
def test_file_negative_second_stage(self):
"""Test failure"""
- self.helper_file_negative('test/fixtures/templates/bad/resources_codepipeline_stages_second_stage.yaml', 1)
+ self.helper_file_negative('test/fixtures/templates/bad/resources/codepipeline/stages_second_stage.yaml', 1)
def test_file_negative_non_unique(self):
"""Test failure"""
- self.helper_file_negative('test/fixtures/templates/bad/resources_codepipeline_stages_non_unique.yaml', 1)
+ self.helper_file_negative('test/fixtures/templates/bad/resources/codepipeline/stages_non_unique.yaml', 1)
+
+ def test_file_negative_only_source_types(self):
+ """Test failure"""
+ self.helper_file_negative('test/fixtures/templates/bad/resources/codepipeline/stages_only_source.yaml', 2)
+
+ def test_scenario_format(self):
+ """Test scenario formatting"""
+ rule = CodepipelineStages()
+
+ self.assertEqual(rule._format_error_message('Test.', {'Condition': True}), 'Test. When condition "Condition" is True')
+ self.assertEqual(rule._format_error_message('Test.', None), 'Test.')
|
False errors given with property relationships when conditions are used
Right now we check for attributes that should or shouldn't be defined together. These scenarios can get tricky with conditions and AWS::NoValue.
- [x] Short term hotfix to not give errors when complex situations are found
- [x] Ability to analyze if a related resource is available when conditions are used
- [x] Pull out values of properties in an object when values include conditions
- [x] Related objects and their values when each object has a condition applied
Related issues:
- https://github.com/awslabs/aws-cfn-lint-atom/issues/8
|
Working to invalidate pull request #121. When the condition numbers are high the scenarios get large and can cause linting to be slow.
Working to replace with #352 which is more light weight and less costly.
As it exists #121 will build a list of scenarios for the conditions. That logic may have to be moved to a new rule that checks if Ref/GetAtt/DependsOn resources exist when using resource level conditions.
Conditions when used in place of a resource property have to be singular.
```
Properties:
Fn::If: [myCondition, { "ImageId": "ami-123456"}, {"LaunchConfiguration": "myLaunch"}]
```
is valid but the following is invalid because you cannot put an Fn::If with other properties. (Still double checking this)
```
Properties:
LaunchConfiguration: myLaunch
Fn::If: [myCondition, { "ImageId": "ami-123456"}, {"Ref": "AWS::NoValue"}]
```
This means our Inclusive and Exclusive checks will be easier to write. If someone puts a condition in the properties section there isn't a mixing of properties from inside and outside of the condition that will cause confusion.
starting with pull request #523
Next will be to get property values when conditions are used for values of those properties.
Facing a similar issue with E2540 linting error.
Error :
> E2540 At least one stage in pipeline must contain an action that is not a source action.
Template
```
Pipeline:
Type: AWS::CodePipeline::Pipeline
Properties:
RoleArn: !GetAtt CodePipelineServiceRole.Arn
ArtifactStore:
Location: !Ref PipelineBucket
Type: S3
Stages:
- Name: Source
Actions:
- Name: Source
ActionTypeId:
Category: Source
Owner: AWS
Version: "1"
Provider: S3
Configuration:
S3Bucket: !Ref ThisEnvBucket
S3ObjectKey: !Sub ${ProjectName}.zip
OutputArtifacts:
- Name: SourceOutput
RunOrder: 1
- !If
- NotCiEnv
- Name: Deploy
Actions:
- Name: Deploy
ActionTypeId:
Category: Build
Owner: AWS
Version: '1'
Provider: CodeBuild
Configuration:
ProjectName: !Ref SSMPushProjectUpperEnvs
InputArtifacts:
- Name: SourceOutput
OutputArtifacts: []
RunOrder: 2
- !Ref 'AWS::NoValue'
- !If
- NeedApproval
- Name: ApprovePromotion
Actions:
- Name: Approval
ActionTypeId:
Category: Approval
Owner: AWS
Version: '1'
Provider: Manual
InputArtifacts: []
OutputArtifacts: []
RunOrder: 3
- !Ref 'AWS::NoValue'
- !If
- NextEnvExists
- Name: Promote
Actions:
- Name: Promote
ActionTypeId:
Category: Build
Owner: AWS
Version: '1'
Provider: CodeBuild
Configuration:
ProjectName: !Ref PromotionBuild
InputArtifacts:
- Name: SourceOutput
OutputArtifacts: []
RunOrder: 4
- !Ref 'AWS::NoValue'
```
@ap-hyperbole been working on a bunch of logic to make this easier. I think I can work on this after I get #746 done. That one will basically strip out all the conditions from a nested object giving us the different scenarios to test.
|
2019-04-07T00:57:40Z
|
[] |
[] |
aws-cloudformation/cfn-lint
| 814 |
aws-cloudformation__cfn-lint-814
|
[
"813"
] |
dcae79cc32bafb661eca2d13cdb9b3de457a4f0e
|
diff --git a/src/cfnlint/rules/resources/iam/RefWithPath.py b/src/cfnlint/rules/resources/iam/RefWithPath.py
new file mode 100644
--- /dev/null
+++ b/src/cfnlint/rules/resources/iam/RefWithPath.py
@@ -0,0 +1,70 @@
+"""
+ Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ software and associated documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to use, copy, modify,
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
+from cfnlint import CloudFormationLintRule
+from cfnlint import RuleMatch
+
+
+class RefWithPath(CloudFormationLintRule):
+ """Check if IAM Policy Version is correct"""
+ id = 'E3050'
+ shortdesc = 'Check if REFing to a IAM resource with path set'
+ description = 'Some resources don\'t support looking up the IAM resource by name. ' \
+ 'This check validates when a REF is being used and the Path is not \'/\''
+ source_url = 'https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements.html'
+ tags = ['properties', 'iam']
+
+ def __init__(self):
+ """Init"""
+ super(RefWithPath, self).__init__()
+ self.resources_and_keys = {
+ 'AWS::CodeBuild::Project': 'ServiceRole',
+ }
+
+ for resource_type in self.resources_and_keys:
+ self.resource_property_types.append(resource_type)
+
+ def check_ref(self, value, parameters, resources, path): # pylint: disable=W0613
+ """ Check Ref """
+ matches = []
+
+ iam_path = resources.get(value, {}).get('Properties', {}).get('Path')
+ if not iam_path:
+ return matches
+
+ if iam_path != '/':
+ message = 'When using a Ref to IAM resource the Path must be \'/\'. Switch to GetAtt if the Path has to be \'{}\'.'
+ matches.append(
+ RuleMatch(path, message.format(iam_path)))
+
+ return matches
+
+ def match_resource_properties(self, properties, resourcetype, path, cfn):
+ """Check CloudFormation Properties"""
+ matches = []
+
+ key = None
+ if resourcetype in self.resources_and_keys:
+ key = self.resources_and_keys.get(resourcetype)
+
+ matches.extend(
+ cfn.check_value(
+ properties, key, path,
+ check_ref=self.check_ref
+ )
+ )
+
+ return matches
|
diff --git a/test/fixtures/templates/bad/resources/iam/ref_with_path.yaml b/test/fixtures/templates/bad/resources/iam/ref_with_path.yaml
new file mode 100644
--- /dev/null
+++ b/test/fixtures/templates/bad/resources/iam/ref_with_path.yaml
@@ -0,0 +1,81 @@
+---
+AWSTemplateFormatVersion: "2010-09-09"
+Resources:
+ CodeBuildProject:
+ Type: AWS::CodeBuild::Project
+ Properties:
+ ServiceRole: !Ref CodeBuildRole
+ Artifacts:
+ Type: CODEPIPELINE
+ Environment:
+ Type: LINUX_CONTAINER
+ ComputeType: BUILD_GENERAL1_SMALL
+ Image: aws/codebuild/ubuntu-base:14.04
+ EnvironmentVariables:
+ - Name: varName1
+ Value: varValue1
+ - Name: varName2
+ Value: varValue2
+ Type: PLAINTEXT
+ - Name: varName3
+ Value: /CodeBuild/testParameter
+ Type: PARAMETER_STORE
+ Source:
+ Type: CODEPIPELINE
+ TimeoutInMinutes: 10
+ VpcConfig:
+ VpcId: !Ref CodeBuildVPC
+ Subnets: [!Ref CodeBuildSubnet]
+ SecurityGroupIds: [!Ref CodeBuildSecurityGroup]
+ Cache:
+ Type: S3
+ Location: mybucket/prefix
+ CodeBuildRole:
+ Type: AWS::IAM::Role
+ Properties:
+ AssumeRolePolicyDocument:
+ Statement:
+ - Action: ['sts:AssumeRole']
+ Effect: Allow
+ Principal:
+ Service: [codebuild.amazonaws.com]
+ Version: '2012-10-17'
+ Path: /test/
+ Policies:
+ - PolicyName: CodeBuildAccess
+ PolicyDocument:
+ Version: '2012-10-17'
+ Statement:
+ - Action:
+ - 'logs:*'
+ - 'ec2:CreateNetworkInterface'
+ - 'ec2:DescribeNetworkInterfaces'
+ - 'ec2:DeleteNetworkInterface'
+ - 'ec2:DescribeSubnets'
+ - 'ec2:DescribeSecurityGroups'
+ - 'ec2:DescribeDhcpOptions'
+ - 'ec2:DescribeVpcs'
+ - 'ec2:CreateNetworkInterfacePermission'
+ Effect: Allow
+ Resource: '*'
+ CodeBuildVPC:
+ Type: AWS::EC2::VPC
+ Properties:
+ CidrBlock: 10.0.0.0/16
+ EnableDnsSupport: True
+ EnableDnsHostnames: True
+ Tags:
+ - Key: name
+ Value: codebuild
+ CodeBuildSubnet:
+ Type: AWS::EC2::Subnet
+ Properties:
+ VpcId:
+ Ref: CodeBuildVPC
+ CidrBlock: 10.0.1.0/24
+ CodeBuildSecurityGroup:
+ Type: AWS::EC2::SecurityGroup
+ Properties:
+ GroupName: Codebuild Internet Group
+ GroupDescription: 'CodeBuild SecurityGroup'
+ VpcId: !Ref CodeBuildVPC
diff --git a/test/fixtures/templates/good/resources/iam/ref_with_path.yaml b/test/fixtures/templates/good/resources/iam/ref_with_path.yaml
new file mode 100644
--- /dev/null
+++ b/test/fixtures/templates/good/resources/iam/ref_with_path.yaml
@@ -0,0 +1,81 @@
+---
+AWSTemplateFormatVersion: "2010-09-09"
+Resources:
+ CodeBuildProject:
+ Type: AWS::CodeBuild::Project
+ Properties:
+ ServiceRole: !Ref CodeBuildRole
+ Artifacts:
+ Type: CODEPIPELINE
+ Environment:
+ Type: LINUX_CONTAINER
+ ComputeType: BUILD_GENERAL1_SMALL
+ Image: aws/codebuild/ubuntu-base:14.04
+ EnvironmentVariables:
+ - Name: varName1
+ Value: varValue1
+ - Name: varName2
+ Value: varValue2
+ Type: PLAINTEXT
+ - Name: varName3
+ Value: /CodeBuild/testParameter
+ Type: PARAMETER_STORE
+ Source:
+ Type: CODEPIPELINE
+ TimeoutInMinutes: 10
+ VpcConfig:
+ VpcId: !Ref CodeBuildVPC
+ Subnets: [!Ref CodeBuildSubnet]
+ SecurityGroupIds: [!Ref CodeBuildSecurityGroup]
+ Cache:
+ Type: S3
+ Location: mybucket/prefix
+ CodeBuildRole:
+ Type: AWS::IAM::Role
+ Properties:
+ AssumeRolePolicyDocument:
+ Statement:
+ - Action: ['sts:AssumeRole']
+ Effect: Allow
+ Principal:
+ Service: [codebuild.amazonaws.com]
+ Version: '2012-10-17'
+ Path: /
+ Policies:
+ - PolicyName: CodeBuildAccess
+ PolicyDocument:
+ Version: '2012-10-17'
+ Statement:
+ - Action:
+ - 'logs:*'
+ - 'ec2:CreateNetworkInterface'
+ - 'ec2:DescribeNetworkInterfaces'
+ - 'ec2:DeleteNetworkInterface'
+ - 'ec2:DescribeSubnets'
+ - 'ec2:DescribeSecurityGroups'
+ - 'ec2:DescribeDhcpOptions'
+ - 'ec2:DescribeVpcs'
+ - 'ec2:CreateNetworkInterfacePermission'
+ Effect: Allow
+ Resource: '*'
+ CodeBuildVPC:
+ Type: AWS::EC2::VPC
+ Properties:
+ CidrBlock: 10.0.0.0/16
+ EnableDnsSupport: True
+ EnableDnsHostnames: True
+ Tags:
+ - Key: name
+ Value: codebuild
+ CodeBuildSubnet:
+ Type: AWS::EC2::Subnet
+ Properties:
+ VpcId:
+ Ref: CodeBuildVPC
+ CidrBlock: 10.0.1.0/24
+ CodeBuildSecurityGroup:
+ Type: AWS::EC2::SecurityGroup
+ Properties:
+ GroupName: Codebuild Internet Group
+ GroupDescription: 'CodeBuild SecurityGroup'
+ VpcId: !Ref CodeBuildVPC
diff --git a/test/module/config/test_config_mixin.py b/test/module/config/test_config_mixin.py
--- a/test/module/config/test_config_mixin.py
+++ b/test/module/config/test_config_mixin.py
@@ -123,4 +123,4 @@ def test_config_expand_ignore_templates(self, yaml_mock):
# test defaults
self.assertNotIn('test/fixtures/templates/bad/resources/iam/resource_policy.yaml', config.templates)
- self.assertEqual(len(config.templates), 3)
+ self.assertEqual(len(config.templates), 4)
diff --git a/test/rules/resources/iam/test_ref_with_path.py b/test/rules/resources/iam/test_ref_with_path.py
new file mode 100644
--- /dev/null
+++ b/test/rules/resources/iam/test_ref_with_path.py
@@ -0,0 +1,37 @@
+"""
+ Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ software and associated documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to use, copy, modify,
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
+from cfnlint.rules.resources.iam.RefWithPath import RefWithPath # pylint: disable=E0401
+from ... import BaseRuleTestCase
+
+
+class TestRefWithPath(BaseRuleTestCase):
+ """Test IAM Policies"""
+ def setUp(self):
+ """Setup"""
+ super(TestRefWithPath, self).setUp()
+ self.collection.register(RefWithPath())
+ self.success_templates = [
+ 'test/fixtures/templates/good/resources/iam/ref_with_path.yaml'
+ ]
+
+ def test_file_positive(self):
+ """Test Positive"""
+ self.helper_file_positive()
+
+ def test_file_negative(self):
+ """Test failure"""
+ self.helper_file_negative('test/fixtures/templates/bad/resources/iam/ref_with_path.yaml', 1)
|
E3008 Property "ServiceRole" has no valid Refs to Resources at Resources/CodeBuildProject/Properties/ServiceRole/Ref
*cfn-lint version: (`cfn-lint --version`)*
cfn-lint 0.18.1
*Description of issue.*
Using the default example template for CodeBuild (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html)
Get the following:
```
E3008 Property "ServiceRole" has no valid Refs to Resources at Resources/CodeBuildProject/Properties/ServiceRole/Ref
x.yaml:6:7
```
Please provide as much information as possible:
* Template linting issues:
* Please provide a CloudFormation sample that generated the issue.
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html
* If present, please add links to the (official) documentation for clarification.
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html
* Validate if the issue still exists with the latest version of `cfn-lint` and/or the latest Spec files
Cfn-lint uses the [CloudFormation Resource Specifications](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-resource-specification.html) as the base to do validation. These files are included as part of the application version. Please update to the latest version of `cfn-lint` or update the spec files manually (`cfn-lint -u`)
Confirmed. Still exists.
|
I do like doing this
But I need to go find some money around where I can get the money I minded for early its everywhere it's been taking from 3 time and I need to try and get for my kids.
I will be back
|
2019-04-07T20:57:09Z
|
[] |
[] |
aws-cloudformation/cfn-lint
| 824 |
aws-cloudformation__cfn-lint-824
|
[
"773"
] |
dd262f1e10b6612c9f5e3b3cb0f264485e54dcf3
|
diff --git a/src/cfnlint/rules/resources/lmbd/EventsLogGroupName.py b/src/cfnlint/rules/resources/lmbd/EventsLogGroupName.py
new file mode 100644
--- /dev/null
+++ b/src/cfnlint/rules/resources/lmbd/EventsLogGroupName.py
@@ -0,0 +1,68 @@
+"""
+ Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ software and associated documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to use, copy, modify,
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so.
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
+from cfnlint import CloudFormationLintRule
+from cfnlint import RuleMatch
+
+
+class EventsLogGroupName(CloudFormationLintRule):
+ """Check if the settings of multiple subscriptions are included for one LogGroup"""
+ id = 'E2529'
+ shortdesc = 'Check for duplicate Lambda events'
+ description = 'Check if there are any duplicate log groups in the Lambda event trigger element.'
+ source_url = 'https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#user-content-cloudwatchlogs'
+ tags = ['resources', 'lambda']
+
+ def check_events_subscription_duplicated(self, cfn):
+ """Check if Lambda Events Subscription is duplicated"""
+ matches = []
+ message = 'You must specify the AWS::Serverless::Function event correctly. ' \
+ 'LogGroups are duplicated. '
+
+ log_group_name_list = self.__get_log_group_name_list(cfn)
+
+ if self.__is_duplicated(log_group_name_list):
+ matches.append(
+ RuleMatch(
+ 'path', message.format()
+ )
+ )
+
+ return matches
+
+ def __is_duplicated(self, duplicate_list):
+ unique_list = self.__remove(duplicate_list)
+ return len(unique_list) != len(duplicate_list)
+
+ def __remove(self, duplicate):
+ final_list = []
+ for ele in duplicate:
+ if ele not in final_list:
+ final_list.append(ele)
+ return final_list
+
+ def __get_log_group_name_list(self, cfn):
+ log_group_name_list = []
+ for value in cfn.get_resources('AWS::Logs::SubscriptionFilter').items():
+ prop = value[1].get('Properties')
+ log_group_name_list.append(prop.get('LogGroupName'))
+ return log_group_name_list
+
+ def match(self, cfn):
+ """Check if Lambda Events Subscription is duplicated"""
+ matches = []
+ matches.extend(
+ self.check_events_subscription_duplicated(cfn)
+ )
+ return matches
|
diff --git a/test/fixtures/templates/bad/some_logs_stream_lambda.yaml b/test/fixtures/templates/bad/some_logs_stream_lambda.yaml
new file mode 100644
--- /dev/null
+++ b/test/fixtures/templates/bad/some_logs_stream_lambda.yaml
@@ -0,0 +1,77 @@
+AWSTemplateFormatVersion: '2010-09-09'
+Transform: AWS::Serverless-2016-10-31
+Description: >
+ subscription-filter-failed-template
+
+ Sample SAM Template for subscription-filter-failed-template
+
+# More info about Globals: https://github.com/awslabs/serverless-application-model/blob/master/docs/globals.rst
+Globals:
+ Function:
+ Timeout: 30
+
+
+Resources:
+
+ FunctionA:
+ Type: AWS::Serverless::Function
+ Properties:
+ CodeUri: hello_world/build/
+ Handler: app.lambda_handler
+ Runtime: python3.6
+ FunctionALogGroup:
+ Type: AWS::Logs::LogGroup
+ Properties:
+ LogGroupName: !Sub /aws/lambda/${FunctionA}
+ RetentionInDays: 3
+
+ FunctionB:
+ Type: AWS::Serverless::Function
+ Properties:
+ CodeUri: hello_world/build/
+ Handler: app.lambda_handler
+ Runtime: python3.6
+ FunctionBLogGroup:
+ Type: AWS::Logs::LogGroup
+ Properties:
+ LogGroupName: !Sub /aws/lambda/${FunctionB}
+ RetentionInDays: 3
+ FunctionC:
+ Type: AWS::Serverless::Function
+ Properties:
+ CodeUri: hello_world/build/
+ Handler: app.lambda_handler
+ Runtime: python3.6
+ FunctionCLogGroup:
+ Type: AWS::Logs::LogGroup
+ Properties:
+ LogGroupName: !Sub /aws/lambda/${FunctionC}
+ RetentionInDays: 3
+
+ LogSubscriptionFunction:
+ Type: AWS::Serverless::Function # More info about Function Resource: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction
+ Properties:
+ CodeUri: subscription_function/build/
+ Handler: app.lambda_handler
+ Runtime: python3.6
+ Events:
+ FunctionALogGroup:
+ Type: CloudWatchLogs
+ Properties:
+ LogGroupName: !Ref FunctionALogGroup
+ FilterPattern: ""
+ FunctionBLogGroup:
+ Type: CloudWatchLogs
+ Properties:
+ LogGroupName: !Ref FunctionBLogGroup
+ FilterPattern: ""
+ FunctionCLogGroup:
+ Type: CloudWatchLogs
+ Properties:
+ LogGroupName: !Ref FunctionALogGroup
+ FilterPattern: ""
+ LogSubscriptionFunctionLogGroup:
+ Type: AWS::Logs::LogGroup
+ Properties:
+ LogGroupName: !Sub /aws/lambda/${LogSubscriptionFunction}
+ RetentionInDays: 3
diff --git a/test/fixtures/templates/good/some_logs_stream_lambda.yaml b/test/fixtures/templates/good/some_logs_stream_lambda.yaml
new file mode 100644
--- /dev/null
+++ b/test/fixtures/templates/good/some_logs_stream_lambda.yaml
@@ -0,0 +1,77 @@
+AWSTemplateFormatVersion: '2010-09-09'
+Transform: AWS::Serverless-2016-10-31
+Description: >
+ subscription-filter-failed-template
+
+ Sample SAM Template for subscription-filter-failed-template
+
+# More info about Globals: https://github.com/awslabs/serverless-application-model/blob/master/docs/globals.rst
+Globals:
+ Function:
+ Timeout: 30
+
+
+Resources:
+
+ FunctionA:
+ Type: AWS::Serverless::Function
+ Properties:
+ CodeUri: hello_world/build/
+ Handler: app.lambda_handler
+ Runtime: python3.6
+ FunctionALogGroup:
+ Type: AWS::Logs::LogGroup
+ Properties:
+ LogGroupName: !Sub /aws/lambda/${FunctionA}
+ RetentionInDays: 3
+
+ FunctionB:
+ Type: AWS::Serverless::Function
+ Properties:
+ CodeUri: hello_world/build/
+ Handler: app.lambda_handler
+ Runtime: python3.6
+ FunctionBLogGroup:
+ Type: AWS::Logs::LogGroup
+ Properties:
+ LogGroupName: !Sub /aws/lambda/${FunctionB}
+ RetentionInDays: 3
+ FunctionC:
+ Type: AWS::Serverless::Function
+ Properties:
+ CodeUri: hello_world/build/
+ Handler: app.lambda_handler
+ Runtime: python3.6
+ FunctionCLogGroup:
+ Type: AWS::Logs::LogGroup
+ Properties:
+ LogGroupName: !Sub /aws/lambda/${FunctionC}
+ RetentionInDays: 3
+
+ LogSubscriptionFunction:
+ Type: AWS::Serverless::Function # More info about Function Resource: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction
+ Properties:
+ CodeUri: subscription_function/build/
+ Handler: app.lambda_handler
+ Runtime: python3.6
+ Events:
+ FunctionALogGroup:
+ Type: CloudWatchLogs
+ Properties:
+ LogGroupName: !Ref FunctionALogGroup
+ FilterPattern: ""
+ FunctionBLogGroup:
+ Type: CloudWatchLogs
+ Properties:
+ LogGroupName: !Ref FunctionBLogGroup
+ FilterPattern: ""
+ FunctionCLogGroup:
+ Type: CloudWatchLogs
+ Properties:
+ LogGroupName: !Ref FunctionCLogGroup
+ FilterPattern: ""
+ LogSubscriptionFunctionLogGroup:
+ Type: AWS::Logs::LogGroup
+ Properties:
+ LogGroupName: !Sub /aws/lambda/${LogSubscriptionFunction}
+ RetentionInDays: 3
diff --git a/test/rules/resources/lmbd/test_events_log_group_name.py b/test/rules/resources/lmbd/test_events_log_group_name.py
new file mode 100644
--- /dev/null
+++ b/test/rules/resources/lmbd/test_events_log_group_name.py
@@ -0,0 +1,37 @@
+"""
+ Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ software and associated documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to use, copy, modify,
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
+from cfnlint.rules.resources.lmbd.EventsLogGroupName import EventsLogGroupName
+from ... import BaseRuleTestCase
+
+
+class TestEventsLogGroupName(BaseRuleTestCase):
+ """Test Lambda Trigger Events CloudWatchLogs Property Configuration"""
+ def setUp(self):
+ """Setup"""
+ super(TestEventsLogGroupName, self).setUp()
+ self.collection.register(EventsLogGroupName())
+ self.success_templates = [
+ 'test/fixtures/templates/good/some_logs_stream_lambda.yaml'
+ ]
+
+ def test_file_positive(self):
+ """Test Positive"""
+ self.helper_file_positive()
+
+ def test_file_negative(self):
+ """Test failure"""
+ self.helper_file_negative('test/fixtures/templates/bad/some_logs_stream_lambda.yaml', 1)
|
CloudWatchLogGroups are must not duplicated in the Lambda's Events section
*cfn-lint version: cfn-lint 0.9.0*
*Description of issue.*

In this configuration, Lambda for log analysis (LogSubscriptionFunction in this figure) subscribes and processes multiple Lambda logs output to CloudWatchLogs.
CloudFormation templates can be described as follows.
```.yaml
LogSubscriptionFunction:
Type: AWS::Serverless::Function
Properties:
CodeUri: subscription_function/build/
Handler: app.lambda_handler
Runtime: python3.6
Events:
FunctionALogGroup:
Type: CloudWatchLogs
Properties:
LogGroupName: !Ref FunctionALogGroup
FilterPattern: ""
FunctionBLogGroup:
Type: CloudWatchLogs
Properties:
LogGroupName: !Ref FunctionALogGroup # <--- log group is duplicated !!
FilterPattern: ""
```
If the log group is duplicated in the Events section, the following error occurs when creating a stack:
> Resource limit exceeded. (Service: AWSLogs; Status Code: 400; Error Code: LimitExceededException; Request ID: 565efb75-522a-11e9-a6c3-61534eead0f1)
I think that it is necessary to have an implementation that causes an error by Linter when LogGroup is described in duplicate.
|
@chuckmeyer and @rjlohan is this the same idea of the route table association to subnet check we have?
|
2019-04-13T16:48:20Z
|
[] |
[] |
aws-cloudformation/cfn-lint
| 830 |
aws-cloudformation__cfn-lint-830
|
[
"829"
] |
d25be5759bb0eefeaf4d4d11c7b8a5ec4da56d07
|
diff --git a/src/cfnlint/rules/resources/route53/RecordSet.py b/src/cfnlint/rules/resources/route53/RecordSet.py
--- a/src/cfnlint/rules/resources/route53/RecordSet.py
+++ b/src/cfnlint/rules/resources/route53/RecordSet.py
@@ -32,184 +32,163 @@ class RecordSet(CloudFormationLintRule):
REGEX_TXT = re.compile(r'^("[^"]{1,255}" *)*"[^"]{1,255}"$')
REGEX_CNAME_VALIDATIONS = re.compile(r'^.*\.acm-validations\.aws\.?$')
- def check_a_record(self, path, recordset):
- """Check A record Configuration"""
+ def count_c_names(self, records, path, cfn):
+ """ Count C Names """
matches = []
- resource_records = recordset.get('ResourceRecords')
- for index, record in enumerate(resource_records):
+ scenarios = cfn.get_object_without_nested_conditions(records, path)
+ for scenario in scenarios:
+ if len(scenario.get('Object')) > 1:
+ scenario = scenario.get('Scenario')
+ message = 'A CNAME recordset can only contain 1 value'
+ if scenario is None:
+ message = 'A CNAME recordset can only contain 1 value'
+ matches.append(
+ RuleMatch(path, message.format('/'.join(map(str, message)))))
+ else:
+ message = 'A CNAME recordset can only contain 1 value {0} at {1}'
+ scenario_text = ' and '.join(['when condition "%s" is %s' % (k, v) for (k, v) in scenario.items()])
+ matches.append(
+ RuleMatch(path, message.format(scenario_text, '/'.join(map(str, path)))))
- if not isinstance(record, dict):
- tree = path[:] + ['ResourceRecords', index]
+ return matches
- # Check if a valid IPv4 address is specified
- if not re.match(REGEX_IPV4, record):
- message = 'A record ({}) is not a valid IPv4 address'
- matches.append(RuleMatch(tree, message.format(record)))
+ def check_a_record(self, value, path):
+ """Check A record Configuration"""
+ matches = []
+
+ # Check if a valid IPv4 address is specified
+ if not re.match(REGEX_IPV4, value):
+ message = 'A record ({}) is not a valid IPv4 address'
+ matches.append(RuleMatch(path, message.format(value)))
return matches
- def check_aaaa_record(self, path, recordset):
+ def check_aaaa_record(self, value, path):
"""Check AAAA record Configuration"""
matches = []
- resource_records = recordset.get('ResourceRecords')
- for index, record in enumerate(resource_records):
-
- if not isinstance(record, dict):
- tree = path[:] + ['ResourceRecords', index]
-
- # Check if a valid IPv4 address is specified
- if not re.match(REGEX_IPV6, record):
- message = 'AAAA record ({}) is not a valid IPv6 address'
- matches.append(RuleMatch(tree, message.format(record)))
+ if not isinstance(value, dict):
+ # Check if a valid IPv4 address is specified
+ if not re.match(REGEX_IPV6, value):
+ message = 'AAAA record ({}) is not a valid IPv6 address'
+ matches.append(RuleMatch(path, message.format(value)))
return matches
- def check_caa_record(self, path, recordset):
+ def check_caa_record(self, value, path):
"""Check CAA record Configuration"""
matches = []
- resource_records = recordset.get('ResourceRecords')
-
- for index, record in enumerate(resource_records):
- tree = path[:] + ['ResourceRecords', index]
+ if not isinstance(value, dict):
+ # Split the record up to the mandatory settings (flags tag "value")
+ items = value.split(' ', 2)
+ # Check if the 3 settings are given.
+ if len(items) != 3:
+ message = 'CAA record must contain 3 settings (flags tag "value"), record contains {} settings.'
+ matches.append(RuleMatch(path, message.format(len(items))))
+ else:
+ # Check the flag value
+ if not items[0].isdigit():
+ message = 'CAA record flag setting ({}) should be of type Integer.'
+ matches.append(RuleMatch(path, message.format(items[0])))
+ else:
+ if int(items[0]) not in [0, 128]:
+ message = 'Invalid CAA record flag setting ({}) given, must be 0 or 128.'
+ matches.append(RuleMatch(path, message.format(items[0])))
- if not isinstance(record, dict):
- # Split the record up to the mandatory settings (flags tag "value")
- items = record.split(' ', 2)
+ # Check the tag value
+ if not re.match(REGEX_ALPHANUMERIC, items[1]):
+ message = 'Invalid CAA record tag setting {}. Value has to be alphanumeric.'
+ matches.append(RuleMatch(path, message.format(items[1])))
- # Check if the 3 settings are given.
- if len(items) != 3:
- message = 'CAA record must contain 3 settings (flags tag "value"), record contains {} settings.'
- matches.append(RuleMatch(tree, message.format(len(items))))
- else:
- # Check the flag value
- if not items[0].isdigit():
- message = 'CAA record flag setting ({}) should be of type Integer.'
- matches.append(RuleMatch(tree, message.format(items[0])))
- else:
- if int(items[0]) not in [0, 128]:
- message = 'Invalid CAA record flag setting ({}) given, must be 0 or 128.'
- matches.append(RuleMatch(tree, message.format(items[0])))
-
- # Check the tag value
- if not re.match(REGEX_ALPHANUMERIC, items[1]):
- message = 'Invalid CAA record tag setting {}. Value has to be alphanumeric.'
- matches.append(RuleMatch(tree, message.format(items[0])))
-
- # Check the value
- if not items[2].startswith('"') or not items[2].endswith('"'):
- message = 'CAA record value setting has to be enclosed in double quotation marks (").'
- matches.append(RuleMatch(tree, message))
+ # Check the value
+ if not items[2].startswith('"') or not items[2].endswith('"'):
+ message = 'CAA record value setting has to be enclosed in double quotation marks (").'
+ matches.append(RuleMatch(path, message))
return matches
- def check_cname_record(self, path, recordset):
+ def check_cname_record(self, value, path):
"""Check CNAME record Configuration"""
matches = []
- resource_records = recordset.get('ResourceRecords')
- if len(resource_records) > 1:
- message = 'A CNAME recordset can only contain 1 value'
- matches.append(RuleMatch(path + ['ResourceRecords'], message))
- else:
- for index, record in enumerate(resource_records):
- if not isinstance(record, dict):
- tree = path[:] + ['ResourceRecords', index]
- if (not re.match(self.REGEX_DOMAINNAME, record) and
- not re.match(self.REGEX_CNAME_VALIDATIONS, record)):
- # ACM Route 53 validation uses invalid CNAMEs starting with `_`,
- # special-case them rather than complicate the regex.
- message = 'CNAME record ({}) does not contain a valid domain name'
- matches.append(RuleMatch(tree, message.format(record)))
+ if not isinstance(value, dict):
+ if (not re.match(self.REGEX_DOMAINNAME, value) and
+ not re.match(self.REGEX_CNAME_VALIDATIONS, value)):
+ # ACM Route 53 validation uses invalid CNAMEs starting with `_`,
+ # special-case them rather than complicate the regex.
+ message = 'CNAME record ({}) does not contain a valid domain name'
+ matches.append(RuleMatch(path, message.format(value)))
return matches
- def check_mx_record(self, path, recordset):
+ def check_mx_record(self, value, path):
"""Check MX record Configuration"""
matches = []
- resource_records = recordset.get('ResourceRecords')
-
- for index, record in enumerate(resource_records):
- tree = path[:] + ['ResourceRecords', index]
-
- if not isinstance(record, dict):
- # Split the record up to the mandatory settings (priority domainname)
- items = record.split(' ')
-
- # Check if the 3 settings are given.
- if len(items) != 2:
- message = 'MX record must contain 2 settings (priority domainname), record contains {} settings.'
- matches.append(RuleMatch(tree, message.format(len(items), record)))
+ if not isinstance(value, dict):
+ # Split the record up to the mandatory settings (priority domainname)
+ items = value.split(' ')
+
+ # Check if the 3 settings are given.
+ if len(items) != 2:
+ message = 'MX record must contain 2 settings (priority domainname), record contains {} settings.'
+ matches.append(RuleMatch(path, message.format(len(items), value)))
+ else:
+ # Check the priority value
+ if not items[0].isdigit():
+ message = 'MX record priority setting ({}) should be of type Integer.'
+ matches.append(RuleMatch(path, message.format(items[0], value)))
else:
- # Check the priority value
- if not items[0].isdigit():
- message = 'MX record priority setting ({}) should be of type Integer.'
- matches.append(RuleMatch(tree, message.format(items[0], record)))
- else:
- if not 0 <= int(items[0]) <= 65535:
- message = 'Invalid MX record priority setting ({}) given, must be between 0 and 65535.'
- matches.append(RuleMatch(tree, message.format(items[0], record)))
-
- # Check the domainname value
- if not re.match(self.REGEX_DOMAINNAME, items[1]):
- matches.append(RuleMatch(tree, message.format(items[1])))
+ if not 0 <= int(items[0]) <= 65535:
+ message = 'Invalid MX record priority setting ({}) given, must be between 0 and 65535.'
+ matches.append(RuleMatch(path, message.format(items[0], value)))
+
+ # Check the domainname value
+ if not re.match(self.REGEX_DOMAINNAME, items[1]):
+ matches.append(RuleMatch(path, message.format(items[1])))
return matches
- def check_ns_record(self, path, recordset):
+ def check_ns_record(self, value, path):
"""Check NS record Configuration"""
matches = []
- resource_records = recordset.get('ResourceRecords')
+ if not isinstance(value, dict):
+ if not re.match(self.REGEX_DOMAINNAME, value):
+ message = 'NS record ({}) does not contain a valid domain name'
+ matches.append(RuleMatch(path, message.format(value)))
- for index, record in enumerate(resource_records):
- if not isinstance(record, dict):
- tree = path[:] + ['ResourceRecords', index]
- if not re.match(self.REGEX_DOMAINNAME, record):
- message = 'NS record ({}) does not contain a valid domain name'
- matches.append(RuleMatch(tree, message.format(record)))
return matches
- def check_ptr_record(self, path, recordset):
+ def check_ptr_record(self, value, path):
"""Check PTR record Configuration"""
matches = []
- resource_records = recordset.get('ResourceRecords')
-
- for index, record in enumerate(resource_records):
- if not isinstance(record, dict):
- tree = path[:] + ['ResourceRecords', index]
- if not re.match(self.REGEX_DOMAINNAME, record):
- message = 'PTR record ({}) does not contain a valid domain name'
- matches.append(RuleMatch(tree, message.format(record)))
+ if not isinstance(value, dict):
+ if not re.match(self.REGEX_DOMAINNAME, value):
+ message = 'PTR record ({}) does not contain a valid domain name'
+ matches.append(RuleMatch(path, message.format(value)))
return matches
- def check_txt_record(self, path, recordset):
+ def check_txt_record(self, value, path):
"""Check TXT record Configuration"""
matches = []
- # Check quotation of the records
- resource_records = recordset.get('ResourceRecords')
-
- for index, record in enumerate(resource_records):
- tree = path[:] + ['ResourceRecords', index]
-
- if not isinstance(record, dict) and not re.match(self.REGEX_TXT, record):
- message = 'TXT record is not structured as one or more items up to 255 characters ' \
- 'enclosed in double quotation marks at {0}'
- matches.append(RuleMatch(
- tree,
- (
- message.format('/'.join(map(str, tree)))
- ),
- ))
+ if not isinstance(value, dict) and not re.match(self.REGEX_TXT, value):
+ message = 'TXT record is not structured as one or more items up to 255 characters ' \
+ 'enclosed in double quotation marks at {0}'
+ matches.append(RuleMatch(
+ path,
+ (
+ message.format('/'.join(map(str, path)))
+ ),
+ ))
return matches
- def check_recordset(self, path, recordset):
+ def check_recordset(self, path, recordset, cfn):
"""Check record configuration"""
matches = []
@@ -220,25 +199,69 @@ def check_recordset(self, path, recordset):
if not recordset.get('AliasTarget'):
# If no Alias is specified, ResourceRecords has to be specified
if not recordset.get('ResourceRecords'):
- message = 'Property ResourceRecords missing at {}'
- matches.append(RuleMatch(path, message.format('/'.join(map(str, path)))))
+ return matches
# Record type specific checks
- elif recordset_type == 'A':
- matches.extend(self.check_a_record(path, recordset))
+ if recordset_type == 'A':
+ matches.extend(
+ cfn.check_value(
+ recordset, 'ResourceRecords', path[:],
+ check_value=self.check_a_record,
+ )
+ )
elif recordset_type == 'AAAA':
- matches.extend(self.check_aaaa_record(path, recordset))
+ matches.extend(
+ cfn.check_value(
+ recordset, 'ResourceRecords', path[:],
+ check_value=self.check_aaaa_record,
+ )
+ )
elif recordset_type == 'CAA':
- matches.extend(self.check_caa_record(path, recordset))
+ matches.extend(
+ cfn.check_value(
+ recordset, 'ResourceRecords', path[:],
+ check_value=self.check_caa_record,
+ )
+ )
elif recordset_type == 'CNAME':
- matches.extend(self.check_cname_record(path, recordset))
+ matches.extend(
+ self.count_c_names(
+ recordset.get('ResourceRecords'), path[:] + ['ResourceRecords'], cfn
+ )
+ )
+ matches.extend(
+ cfn.check_value(
+ recordset, 'ResourceRecords', path[:],
+ check_value=self.check_cname_record,
+ )
+ )
elif recordset_type == 'MX':
- matches.extend(self.check_mx_record(path, recordset))
+ matches.extend(
+ cfn.check_value(
+ recordset, 'ResourceRecords', path[:],
+ check_value=self.check_mx_record,
+ )
+ )
elif recordset_type == 'NS':
- matches.extend(self.check_ns_record(path, recordset))
+ matches.extend(
+ cfn.check_value(
+ recordset, 'ResourceRecords', path[:],
+ check_value=self.check_ns_record,
+ )
+ )
elif recordset_type == 'PTR':
- matches.extend(self.check_ptr_record(path, recordset))
+ matches.extend(
+ cfn.check_value(
+ recordset, 'ResourceRecords', path[:],
+ check_value=self.check_ptr_record,
+ )
+ )
elif recordset_type == 'TXT':
- matches.extend(self.check_txt_record(path, recordset))
+ matches.extend(
+ cfn.check_value(
+ recordset, 'ResourceRecords', path[:],
+ check_value=self.check_txt_record,
+ )
+ )
return matches
@@ -255,7 +278,7 @@ def match(self, cfn):
if isinstance(recordset, dict):
props = recordset.get('Properties')
if props:
- matches.extend(self.check_recordset(path, props))
+ matches.extend(self.check_recordset(path, props, cfn))
recordsetgroups = cfn.get_resource_properties(['AWS::Route53::RecordSetGroup', 'RecordSets'])
@@ -265,6 +288,6 @@ def match(self, cfn):
if isinstance(value, list):
for index, recordset in enumerate(value):
tree = path[:] + [index]
- matches.extend(self.check_recordset(tree, recordset))
+ matches.extend(self.check_recordset(tree, recordset, cfn))
return matches
|
diff --git a/test/fixtures/templates/bad/route53.yaml b/test/fixtures/templates/bad/route53.yaml
--- a/test/fixtures/templates/bad/route53.yaml
+++ b/test/fixtures/templates/bad/route53.yaml
@@ -4,6 +4,8 @@ Parameters:
DomainName:
Type: String
Default: "www.example.com"
+Conditions:
+ isPrimaryRegion: !Equals [!Ref 'AWS::Region', 'us-east-1']
Resources:
MyHostedZone:
Type: "AWS::Route53::HostedZone"
@@ -63,7 +65,7 @@ Resources:
MyCNAMERecordSet:
Type: "AWS::Route53::RecordSet"
Properties:
- Comment: "Invalid CAA Record"
+ Comment: "Invalid CNAME Record"
HostedZoneId: !Ref "MyHostedZone"
Name: "cname.example.com"
Type: "CNAME"
@@ -71,6 +73,20 @@ Resources:
ResourceRecords: # Multiple records
- "cname1.example.com"
- "cname2.example.com"
+ MyCNAMERecordSetConditions:
+ Type: "AWS::Route53::RecordSet"
+ Properties:
+ Comment: "Invalid CNAME Record"
+ HostedZoneId: !Ref "MyHostedZone"
+ Name: "cname.example.com"
+ Type: "CNAME"
+ TTL: "300"
+ ResourceRecords: # Multiple records
+ Fn::If:
+ - isPrimaryRegion
+ - - "cname1.example.com"
+ - "cname2.example.com"
+ - - "cname1.example.com"
MyMXRecordSet:
Type: "AWS::Route53::RecordSet"
Properties:
@@ -141,6 +157,7 @@ Resources:
TTL: "300"
ResourceRecords:
- "1 issue \"amazon.com; example.com\"" # Invalid flag
+ - "A issue \"amazon.com; example.com\"" # Invalid flag
- "0 special-value \"amazon.com\"" # Invalid tag (not numeric)
- Name: "cname.example.com"
Type: "CNAME"
@@ -163,3 +180,12 @@ Resources:
TTL: "300"
ResourceRecords:
- "\"henk\""
+ PoorlyConfiguredRoute53:
+ Type: "AWS::Route53::RecordSetGroup"
+ Properties:
+ HostedZoneId: !Ref "MyHostedZone"
+ RecordSets:
+ - Name: "z.example.com"
+ Type: "TXT"
+ TTL: "300"
+ # Missing AliasTarget and ResourceRecords. Don't fail
diff --git a/test/rules/resources/route53/test_recordsets.py b/test/rules/resources/route53/test_recordsets.py
--- a/test/rules/resources/route53/test_recordsets.py
+++ b/test/rules/resources/route53/test_recordsets.py
@@ -34,4 +34,4 @@ def test_file_positive(self):
def test_file_negative(self):
"""Test failure"""
- self.helper_file_negative('test/fixtures/templates/bad/route53.yaml', 30)
+ self.helper_file_negative('test/fixtures/templates/bad/route53.yaml', 32)
|
RecrodSet linting fails if inside Fn::If
*cfn-lint version: `cfn-lint 0.18.1`*
*Description of issue.*
CFN-lint errors if a RecordSet defined inside a RecordSetGroup is surrounded by an Fn::If block.
cfn-lint error:
```
E3020 Property ResourceRecords missing at Resources/PublicDns/Properties/RecordSets/1
```
Example template (see non-prod.example.com entry):
```
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "dns-definitions",
"Conditions": {
"EnvIsNotProd": { "Fn::Not": [ { "Fn::Equals": [ "prod", "prod" ] } ] }
},
"Resources": {
"PublicDns": {
"Type": "AWS::Route53::RecordSetGroup",
"Properties": {
"HostedZoneId": "HZID",
"RecordSets": [
{
"Name": "my-service-admin.example.com",
"Type": "A",
"AliasTarget": {
"HostedZoneId": "HZID",
"DNSName": "admin.example.com"
}
},
{
"Fn::If": [
"EnvIsNotProd",
{
"Name": "non-prod.example.com",
"Type": "CNAME",
"TTL": "900",
"ResourceRecords": [ "other-non-prod.example.com" ]
},
{ "Ref": "AWS::NoValue" }
]
}]
}
}
}
}
```
|
2019-04-17T12:00:01Z
|
[] |
[] |
|
aws-cloudformation/cfn-lint
| 834 |
aws-cloudformation__cfn-lint-834
|
[
"833"
] |
bb6e324f9c70dc75d45f06ace636fb659f9ce500
|
diff --git a/src/cfnlint/rules/parameters/AllowedValue.py b/src/cfnlint/rules/parameters/AllowedValue.py
--- a/src/cfnlint/rules/parameters/AllowedValue.py
+++ b/src/cfnlint/rules/parameters/AllowedValue.py
@@ -56,13 +56,13 @@ def check_value_ref(self, value, **kwargs):
# Check Allowed Values
if parameter_values:
for index, allowed_value in enumerate(parameter_values):
- if allowed_value not in allowed_value_specs:
+ if str(allowed_value) not in allowed_value_specs:
param_path = ['Parameters', value, 'AllowedValues', index]
message = 'You must specify a valid allowed value for {0} ({1}).\nValid values are {2}'
matches.append(RuleMatch(param_path, message.format(value, allowed_value, allowed_value_specs)))
- elif default_value:
+ if default_value:
# Check Default, only if no allowed Values are specified in the parameter (that's covered by E2015)
- if default_value not in allowed_value_specs:
+ if str(default_value) not in allowed_value_specs:
param_path = ['Parameters', value, 'Default']
message = 'You must specify a valid Default value for {0} ({1}).\nValid values are {2}'
matches.append(RuleMatch(param_path, message.format(value, default_value, allowed_value_specs)))
|
diff --git a/test/fixtures/templates/good/resources/properties/allowed_values.yaml b/test/fixtures/templates/good/resources/properties/allowed_values.yaml
--- a/test/fixtures/templates/good/resources/properties/allowed_values.yaml
+++ b/test/fixtures/templates/good/resources/properties/allowed_values.yaml
@@ -21,7 +21,19 @@ Parameters:
Default: /Demo/DemoInstanceType # Recommend t3.nano
Description: EC2 instance type to use to create the collector host
Type: AWS::SSM::Parameter::Value<String>
+ LogsRetentionLength:
+ AllowedValues:
+ - 1
+ - 3
+ Default: 1
+ Description: The retention length of the logs.
+ Type: Number
Resources:
+ LogGroup:
+ Type: AWS::Logs::LogGroup
+ Properties:
+ RetentionInDays: !Ref LogsRetentionLength
+ LogGroupName: '/name'
AmazonMQBroker:
Type: "AWS::AmazonMQ::Broker"
Properties:
diff --git a/test/rules/parameters/test_allowed_value.py b/test/rules/parameters/test_allowed_value.py
--- a/test/rules/parameters/test_allowed_value.py
+++ b/test/rules/parameters/test_allowed_value.py
@@ -34,4 +34,4 @@ def test_file_positive(self):
def test_file_negative(self):
"""Test failure"""
- self.helper_file_negative('test/fixtures/templates/bad/resources/properties/allowed_values.yaml', 1)
+ self.helper_file_negative('test/fixtures/templates/bad/resources/properties/allowed_values.yaml', 2)
|
W2030 - Number expected as String
cfn-lint 0.19.0
W2030 - Number expected as String
The following warning has started to appear in the latest version:
W2030 You must specify a valid allowed value for NAME_OF_THE_PARAMETER
Template example:
```
LogsRetentionLength:
AllowedValues:
- 1
- 3
Default: 1
Description: The retention length of the logs.
Type: Number
```
```
LogGroup:
Type: AWS::Logs::LogGroup
Properties:
RetentionInDays: !Ref LogsRetentionLength
LogGroupName: '/name'
```
Error:
```
W2030 You must specify a valid allowed value for LogsRetentionLength (1).
Valid values are ['1', '3', '5', '7', '14', '30', '60', '90', '120', '150', '180', '365', '400', '545', '731', '1827', '3653']
W2030 You must specify a valid allowed value for LogsRetentionLength (3).
Valid values are ['1', '3', '5', '7', '14', '30', '60', '90', '120', '150', '180', '365', '400', '545', '731', '1827', '3653']
W2030 You must specify a valid Default value for LogsRetentionLength (1).
Valid values are ['1', '3', '5', '7', '14', '30', '60', '90', '120', '150', '180', '365', '400', '545', '731', '1827', '3653']
```
Changing the templates as follow fixes the issue but it's incorrect:
```
LogsRetentionLength:
AllowedValues:
- '1'
- '3'
Default: '1'
Description: The retention length of the logs.
Type: Number
```
|
Looking into this should have something to you shortly.
|
2019-04-18T14:36:46Z
|
[] |
[] |
aws-cloudformation/cfn-lint
| 839 |
aws-cloudformation__cfn-lint-839
|
[
"835"
] |
2384cea8f8b214dd743806661576d94ddf85dd43
|
diff --git a/src/cfnlint/__init__.py b/src/cfnlint/__init__.py
--- a/src/cfnlint/__init__.py
+++ b/src/cfnlint/__init__.py
@@ -565,6 +565,22 @@ def get_valid_getatts(self):
return results
+ def get_directives(self):
+ """ Get Directives"""
+ results = {}
+ for _, resource_values in self.template.get('Resources', {}).items():
+ ignore_rule_ids = resource_values.get('Metadata', {}).get('cfn-lint', {}).get('config', {}).get('ignore_checks', [])
+ for ignore_rule_id in ignore_rule_ids:
+ if ignore_rule_id not in results:
+ results[ignore_rule_id] = []
+ location = self._loc(resource_values)
+ results[ignore_rule_id].append({
+ 'start': location[0],
+ 'end': location[2]
+ })
+
+ return results
+
def _get_sub_resource_properties(self, keys, properties, path):
"""Used for recursive handling of properties in the keys"""
LOGGER.debug('Get Sub Resource Properties from %s', keys)
@@ -1310,11 +1326,20 @@ def run(self):
self.rules.run(
self.filename, self.cfn))
- # uniq the list of incidents
+ # uniq the list of incidents and filter out exceptions from the template
+ directives = self.cfn.get_directives()
return_matches = []
- for _, match in enumerate(matches):
+ for match in matches:
if not any(match == u for u in return_matches):
- return_matches.append(match)
+ if match.rule.id not in directives:
+ return_matches.append(match)
+ else:
+ exception = False
+ for directive in directives.get(match.rule.id):
+ if directive.get('start') <= match.linenumber <= directive.get('end'):
+ exception = True
+ if not exception:
+ return_matches.append(match)
return return_matches
|
diff --git a/test/fixtures/templates/bad/core/directives.yaml b/test/fixtures/templates/bad/core/directives.yaml
new file mode 100644
--- /dev/null
+++ b/test/fixtures/templates/bad/core/directives.yaml
@@ -0,0 +1,37 @@
+---
+AWSTemplateFormatVersion: "2010-09-09"
+
+Resources:
+ myBucketPass:
+ Type: AWS::S3::Bucket
+ Metadata:
+ cfn-lint:
+ config:
+ ignore_checks:
+ - E3002
+ Properties:
+ BucketName1: String
+ myBucketFail:
+ Type: AWS::S3::Bucket
+ Properties:
+ BucketName1: String
+ myBucketFirstAndLastPass:
+ BadProperty: Test
+ Type: AWS::S3::Bucket
+ Metadata:
+ cfn-lint:
+ config:
+ ignore_checks:
+ - E3030
+ - E3001
+ Properties:
+ BadKey: Value # other errors still show up
+ VersioningConfiguration:
+ Status: Enabled1
+ myBucketFirstAndLastFail:
+ BadProperty: Test
+ Type: AWS::S3::Bucket
+ Properties:
+ BadKey: Value # other errors still show up
+ VersioningConfiguration:
+ Status: Enabled1
diff --git a/test/integration/test_directives.py b/test/integration/test_directives.py
new file mode 100644
--- /dev/null
+++ b/test/integration/test_directives.py
@@ -0,0 +1,44 @@
+"""
+ Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ software and associated documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to use, copy, modify,
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
+from cfnlint import Template, RulesCollection, Runner # pylint: disable=E0401
+from cfnlint.core import DEFAULT_RULESDIR # pylint: disable=E0401
+import cfnlint.decode.cfn_yaml # pylint: disable=E0401
+from testlib.testcase import BaseTestCase
+
+
+class TestDirectives(BaseTestCase):
+ """Test Directives """
+ def setUp(self):
+ """ SetUp template object"""
+ self.rules = RulesCollection(include_rules=['I'])
+ rulesdirs = [DEFAULT_RULESDIR]
+ for rulesdir in rulesdirs:
+ self.rules.extend(
+ RulesCollection.create_from_directory(rulesdir))
+
+ def test_templates(self):
+ """Test ignoring certain rules"""
+ filename = 'test/fixtures/templates/bad/core/directives.yaml'
+ failures = 5
+
+ template = cfnlint.decode.cfn_yaml.load(filename)
+ runner = Runner(self.rules, filename, template, ['us-east-1'])
+ matches = []
+ matches.extend(runner.transform())
+ if not matches:
+ matches.extend(runner.run())
+ assert len(matches) == failures, 'Expected {} failures, got {} on {}'.format(failures, len(matches), filename)
diff --git a/test/rules/__init__.py b/test/rules/__init__.py
--- a/test/rules/__init__.py
+++ b/test/rules/__init__.py
@@ -25,7 +25,7 @@ class BaseRuleTestCase(BaseTestCase):
def setUp(self):
"""Setup"""
- self.collection = RulesCollection(include_rules=['I'],include_experimental=True)
+ self.collection = RulesCollection(include_rules=['I'], include_experimental=True)
def helper_file_positive(self):
"""Success test"""
|
Support resource metadata for ignoring checks
*cfn-lint version: any*
*Description of issue.*
This is a feature request for using the metadata section of resources. Declaring `ignore_checks` at the resource level would allow for ignoring a specific instance of a check while keeping that check active for the rest of a template.
Possibly related: #113
|
I think this is the first iteration to #113. Let me look into what it will take to get this done.
Thanks! Happy to contribute where I can.
|
2019-04-23T11:47:00Z
|
[] |
[] |
aws-cloudformation/cfn-lint
| 870 |
aws-cloudformation__cfn-lint-870
|
[
"869"
] |
55ee92bb6f227a42d0524054b553de62fe4e3f82
|
diff --git a/src/cfnlint/rules/resources/properties/AvailabilityZone.py b/src/cfnlint/rules/resources/properties/AvailabilityZone.py
--- a/src/cfnlint/rules/resources/properties/AvailabilityZone.py
+++ b/src/cfnlint/rules/resources/properties/AvailabilityZone.py
@@ -63,9 +63,11 @@ def check_az_value(self, value, path):
"""Check ref for VPC"""
matches = []
- if path[-1] != 'Fn::GetAZs':
- message = 'Don\'t hardcode {0} for AvailabilityZones'
- matches.append(RuleMatch(path, message.format(value)))
+ # value of `all` is a valide exception in AWS::ElasticLoadBalancingV2::TargetGroup
+ if value not in ['all']:
+ if path[-1] != ['Fn::GetAZs']:
+ message = 'Don\'t hardcode {0} for AvailabilityZones'
+ matches.append(RuleMatch(path, message.format(value)))
return matches
|
diff --git a/test/fixtures/templates/good/resources/properties/az.yaml b/test/fixtures/templates/good/resources/properties/az.yaml
new file mode 100644
--- /dev/null
+++ b/test/fixtures/templates/good/resources/properties/az.yaml
@@ -0,0 +1,24 @@
+---
+AWSTemplateFormatVersion: "2010-09-09"
+Resources:
+ DefaultTargetGroup:
+ Type: "AWS::ElasticLoadBalancingV2::TargetGroup"
+ Properties:
+ VpcId: hello
+ Port: 80
+ Protocol: HTTP
+ HealthCheckIntervalSeconds: 30
+ HealthCheckPath: "/"
+ HealthCheckPort: "80"
+ HealthCheckProtocol: "HTTP"
+ HealthCheckTimeoutSeconds: 5
+ HealthyThresholdCount: 5
+ TargetType: ip
+ Targets:
+ - Id: "10.31.33.28"
+ AvailabilityZone: all
+ Matcher:
+ HttpCode: "200"
+ TargetGroupAttributes:
+ - Key: deregistration_delay.timeout_seconds
+ Value: "20"
diff --git a/test/rules/resources/properties/test_availability_zone.py b/test/rules/resources/properties/test_availability_zone.py
--- a/test/rules/resources/properties/test_availability_zone.py
+++ b/test/rules/resources/properties/test_availability_zone.py
@@ -24,6 +24,9 @@ def setUp(self):
"""Setup"""
super(TestPropertyAvailabilityZone, self).setUp()
self.collection.register(AvailabilityZone())
+ self.success_templates = [
+ 'test/fixtures/templates/good/resources/properties/az.yaml'
+ ]
def test_file_positive(self):
"""Success test"""
|
Don't hardcode all for AvailabilityZones not relevant for AWS::ElasticLoadBalancingV2::TargetGroup
Hello,
*cfn-lint version: 0.19.1*
*Description of issue.*
The following snippet :
```
Resources:
DefaultTargetGroup:
Type: "AWS::ElasticLoadBalancingV2::TargetGroup"
Properties:
VpcId: hello
Port: 80
Protocol: HTTP
HealthCheckIntervalSeconds: 30
HealthCheckPath: "/"
HealthCheckPort: "80"
HealthCheckProtocol: "HTTP"
HealthCheckTimeoutSeconds: 5
HealthyThresholdCount: 5
TargetType: ip
Targets:
-
Id: "10.31.33.28"
AvailabilityZone: all
Matcher:
HttpCode: "200"
TargetGroupAttributes:
- Key: deregistration_delay.timeout_seconds
Value: "20"
```
Triggers this warn message :
> W3010 Don't hardcode all for AvailabilityZones
In the case of AWS::ElasticLoadBalancingV2::TargetGroup, there is legitimacy to hardcode all for AvailabilityZones :
> If the IP address is outside the VPC, this parameter is required. With an Application Load Balancer, if the target type is ip and the IP address is outside the VPC for the target group, the only supported value is all.
I'm unsure what to PR here. Should we get rid of this line ? https://github.com/aws-cloudformation/cfn-python-lint/blob/master/src/cfnlint/rules/resources/properties/AvailabilityZone.py#L52
Thanks for the suggestions.
[1] https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-targetgroup-targetdescription.html#aws-properties-elasticloadbalancingv2-targetgroup-targetdescription-properties
|
2019-05-08T01:07:17Z
|
[] |
[] |
|
aws-cloudformation/cfn-lint
| 877 |
aws-cloudformation__cfn-lint-877
|
[
"863"
] |
68e5e20ccadb6d80bdb00003f0daf008f66791be
|
diff --git a/src/cfnlint/rules/resources/properties/ValuePrimitiveType.py b/src/cfnlint/rules/resources/properties/ValuePrimitiveType.py
--- a/src/cfnlint/rules/resources/properties/ValuePrimitiveType.py
+++ b/src/cfnlint/rules/resources/properties/ValuePrimitiveType.py
@@ -138,6 +138,10 @@ def check_value(self, value, path, **kwargs):
if not isinstance(map_value, dict):
matches.extend(self.check_primitive_type(map_value, primitive_type, path + [map_key]))
else:
+ # some properties support primitive types and objects
+ # skip in the case it could be an object and the value is a object
+ if item_type and isinstance(value, dict):
+ return matches
matches.extend(self.check_primitive_type(value, primitive_type, path))
return matches
|
diff --git a/test/fixtures/templates/good/resources/properties/primitive_types.yaml b/test/fixtures/templates/good/resources/properties/primitive_types.yaml
new file mode 100644
--- /dev/null
+++ b/test/fixtures/templates/good/resources/properties/primitive_types.yaml
@@ -0,0 +1,23 @@
+---
+AWSTemplateFormatVersion: "2010-09-09"
+Resources:
+ BaselinePatchDailySSMMaintenanceWindow:
+ Type: AWS::SSM::MaintenanceWindow
+ Properties:
+ Name: Test
+ Cutoff: 0
+ Schedule: 'rate(1 days)'
+ AllowUnassociatedTargets: false
+ Duration: 1
+ BaselinePatchDailySSMMaintenanceWindowTarget:
+ Type: AWS::SSM::MaintenanceWindowTarget
+ Properties:
+ Name: BaselinePatchDailyTarget
+ Description: Systems with Tag Key=Patch,Value=Daily.
+ WindowId: !Ref BaselinePatchDailySSMMaintenanceWindow
+ ResourceType: INSTANCE
+ Targets:
+ - Key: tag:Patch
+ Values:
+ - Daily
+ - daily
diff --git a/test/rules/resources/properties/test_value_primitive_type.py b/test/rules/resources/properties/test_value_primitive_type.py
--- a/test/rules/resources/properties/test_value_primitive_type.py
+++ b/test/rules/resources/properties/test_value_primitive_type.py
@@ -28,6 +28,7 @@ def setUp(self):
success_templates = [
'test/fixtures/templates/good/generic.yaml',
'test/fixtures/templates/good/resource_properties.yaml',
+ 'test/fixtures/templates/good/resources/properties/primitive_types.yaml',
]
def test_file_positive(self):
|
E3002, E3003, E3012 - AWS::SSM::MaintenanceWindowTarget errors
cfn-lint version: 0.19.1
cfn-lint -u has been run
I am unable to to get a clean lint on a SSM template file that seems alright and that has loaded properly in AWS. Would really appreciate any assistance.
The documentation is here on MaintenanceWindowTarget:
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-maintenancewindowtarget.html
And the associated targets:
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-maintenancewindowtarget-targets.html
The below cf should be syntactically correct.....
```
BaselinePatchDailySSMMaintenanceWindowTarget:
Type: AWS::SSM::MaintenanceWindowTarget
Properties:
Name: BaselinePatchDailyTarget
Description: Systems with Tag Key=Patch,Value=Daily.
WindowId: !Ref BaselinePatchDailySSMMaintenanceWindow
ResourceType: INSTANCE
Targets:
- Key: tag:Patch
Values:
- Daily
- daily
```
Results in the following cfn-lint errors:
```
E0002 Unknown exception while processing rule E3002: 'AWS::SSM::MaintenanceWindowTarget.Target'
BaselineSSMConfig.yaml:1:1
E0002 Unknown exception while processing rule E3003: 'AWS::SSM::MaintenanceWindowTarget.Target'
BaselineSSMConfig.yaml:1:1
E3012 Property Resources/BaselinePatchDailySSMMaintenanceWindowTarget/Properties/Targets/0 should be of type String
BaselineSSMConfig.yaml:292:9
```
Edited file as follows to attempt to make target a string:
```
BaselinePatchDailySSMMaintenanceWindowTarget:
Type: AWS::SSM::MaintenanceWindowTarget
Properties:
Name: BaselinePatchDailyTarget
Description: Systems with Tag Key=Patch,Value=Daily.
WindowId: !Ref BaselinePatchDailySSMMaintenanceWindow
ResourceType: INSTANCE
Targets: Key=tag:Patch,Values=Daily,daily
```
Results in the following cfn-lint error:
```
E3002 Property Targets should be of type List for resource BaselinePatchDailySSMMaintenanceWindowTarget
BaselineSSMConfig.yaml:291:7
```
Attempting to make the string a list:
```
BaselinePatchDailySSMMaintenanceWindowTarget:
Type: AWS::SSM::MaintenanceWindowTarget
Properties:
Name: BaselinePatchDailyTarget
Description: Systems with Tag Key=Patch,Value=Daily.
WindowId: !Ref BaselinePatchDailySSMMaintenanceWindow
ResourceType: INSTANCE
Targets:
- Key=tag:Patch,Values=Daily,daily
```
Results in the following errors:
```
E0002 Unknown exception while processing rule E3002: 'AWS::SSM::MaintenanceWindowTarget.Target'
BaselineSSMConfig.yaml:1:1
E0002 Unknown exception while processing rule E3003: 'AWS::SSM::MaintenanceWindowTarget.Target'
BaselineSSMConfig.yaml:1:1
```
Thanks!
|
cfn-lint version: 0.20.1
cfn-lint -u has run
I updated to the newest patch and a slightly different set of errors are happening. They are now E3002, and E3012.
The original cf that should be correct:
```
BaselinePatchDailySSMMaintenanceWindowTarget:
Type: AWS::SSM::MaintenanceWindowTarget
Properties:
Name: BaselinePatchDailyTarget
Description: Systems with Tag Key=Patch,Value=Daily.
WindowId: !Ref BaselinePatchDailySSMMaintenanceWindow
ResourceType: INSTANCE
Targets:
- Key: tag:Patch
Values:
- Daily
- daily
```
Still has one of the errors from before:
```
E3012 Property Resources/BaselinePatchDailySSMMaintenanceWindowTarget/Properties/Targets/0 should be of type String
BaselineSSMConfig.yaml:292:9
```
Changing that line to a string format as it asks:
```
BaselinePatchDailySSMMaintenanceWindowTarget:
Type: AWS::SSM::MaintenanceWindowTarget
Properties:
Name: BaselinePatchDailyTarget
Description: Systems with Tag Key=Patch,Value=Daily.
WindowId: !Ref BaselinePatchDailySSMMaintenanceWindow
ResourceType: INSTANCE
Targets: Key=tag:Patch,Values=Daily,daily
```
Leads to the same error as before:
```
E3002 Property Targets should be of type List for resource BaselinePatchDailySSMMaintenanceWindowTarget
BaselineSSMConfig.yaml:295:7
```
Note it was a list originally. Changing the string to a list:
```
BaselinePatchDailySSMMaintenanceWindowTarget:
Type: AWS::SSM::MaintenanceWindowTarget
Properties:
Name: BaselinePatchDailyTarget
Description: Systems with Tag Key=Patch,Value=Daily.
WindowId: !Ref BaselinePatchDailySSMMaintenanceWindow
ResourceType: INSTANCE
Targets:
- Key=tag:Patch,Values=Daily,daily
```
Has the following different from before error:
```
E3002 Expecting an object at Resources/BaselinePatchDailySSMMaintenanceWindowTarget/Properties/Targets/0
BaselineSSMConfig.yaml:296:9
```
Looking into this.
ok, I think I got what my issues are. It may take a day or two to get a fix fully in if I don't run into anything major. They did something new in the specs that we hadn't accounted for.
Thanks for your help!
I'm sure you tried a few of these options too (against CloudFormation)
This works.
```
Targets:
- Key: tag:Patch
Values:
- Daily
- daily
```
This does not even though the documentation says it should
```
Targets:
- Key=tag:Patch,Values=Daily,daily
```
Hmm. Both of those are coming up with the same errors as earlier for me. The first one that you mention as working is erroring for me:
```
E3012 Property Resources/BaselinePatchDailySSMMaintenanceWindowTarget/Properties/Targets/0 should be of type String
BaselineSSMConfig.yaml:292:9
```
Second one is still:
```
E3002 Expecting an object at Resources/BaselinePatchDailySSMMaintenanceWindowTarget/Properties/Targets/0
BaselineSSMConfig.yaml:292:9
```
I haven't been able to get any clean runs. Just uninstalled the module and resinstalled in case there was some leftover cruft as well.
|
2019-05-09T14:35:49Z
|
[] |
[] |
aws-cloudformation/cfn-lint
| 907 |
aws-cloudformation__cfn-lint-907
|
[
"901"
] |
63a4d08c9d04f7157dbb3c082eba6a81e5e5759e
|
diff --git a/src/cfnlint/rules/mappings/Configuration.py b/src/cfnlint/rules/mappings/Configuration.py
--- a/src/cfnlint/rules/mappings/Configuration.py
+++ b/src/cfnlint/rules/mappings/Configuration.py
@@ -32,6 +32,8 @@ def match(self, cfn):
matches = []
+ valid_map_types = (six.string_types, list, six.integer_types, float)
+
mappings = cfn.template.get('Mappings', {})
if mappings:
for mapname, mapobj in mappings.items():
@@ -53,8 +55,7 @@ def match(self, cfn):
else:
for secondkey in firstkeyobj:
if not isinstance(
- firstkeyobj[secondkey],
- (six.string_types, list, six.integer_types)):
+ firstkeyobj[secondkey], valid_map_types):
message = 'Mapping {0} has invalid property at {1}'
matches.append(RuleMatch(
['Mappings', mapname, firstkey, secondkey],
|
diff --git a/test/fixtures/templates/good/mappings/configuration.yaml b/test/fixtures/templates/good/mappings/configuration.yaml
--- a/test/fixtures/templates/good/mappings/configuration.yaml
+++ b/test/fixtures/templates/good/mappings/configuration.yaml
@@ -13,4 +13,9 @@ Mappings:
- ap-northeast-1a
- ap-northeast-1b
- ap-northeast-1c
+ DoubleMap:
+ us-east-1:
+ MinCapacity: 1
+ MaxCapacity: 2
+ TargetValue: 15.0
Resources: {}
|
Double in mapping thrown E7001 error
*cfn-lint version: cfn-lint 0.20.1*
*Description of issue.*
When a mapping value is a double (ex. 1.1) it returns the error `E7001:Mapping [map] has invalid property at [property]`
Examples:
With double value:

Changed to Int:

Example CFT: [environment.yaml.txt](https://github.com/aws-cloudformation/cfn-python-lint/files/3179852/environment.yaml.txt)
|
Thanks. I’ll take a look
|
2019-05-16T01:26:55Z
|
[] |
[] |
aws-cloudformation/cfn-lint
| 908 |
aws-cloudformation__cfn-lint-908
|
[
"897"
] |
cc8a52cf1e2d64e86c608b9536b6f259aa08d020
|
diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -75,7 +75,7 @@ def get_version(filename):
install_requires=[
'pyyaml',
'six~=1.11',
- 'requests>=2.15.0',
+ 'requests>=2.15.0,<=2.21.0',
'aws-sam-translator>=1.10.0',
'jsonpatch',
'jsonschema~=2.6',
diff --git a/src/cfnlint/rules/functions/SubUnneeded.py b/src/cfnlint/rules/functions/SubUnneeded.py
--- a/src/cfnlint/rules/functions/SubUnneeded.py
+++ b/src/cfnlint/rules/functions/SubUnneeded.py
@@ -45,7 +45,7 @@ def match(self, cfn):
matches = []
- sub_objs = cfn.search_deep_keys('Fn::Sub')
+ sub_objs = cfn.transform_pre.get('Fn::Sub')
for sub_obj in sub_objs:
sub_value_obj = sub_obj[-1]
|
diff --git a/test/fixtures/templates/good/functions/sub_needed_transform.yaml b/test/fixtures/templates/good/functions/sub_needed_transform.yaml
new file mode 100644
--- /dev/null
+++ b/test/fixtures/templates/good/functions/sub_needed_transform.yaml
@@ -0,0 +1,26 @@
+AWSTemplateFormatVersion: '2010-09-09'
+Transform: 'AWS::Serverless-2016-10-31'
+Description: SampleTemplate
+Parameters:
+ Environment:
+ Type: String
+ AllowedValues:
+ - Dev
+ - Qa
+ - Staging
+ - Mirror
+ - Prod
+ ConstraintDescription: You must specify a valid EnvironmentValue
+ Default: Dev
+ Description: Environment for to Deploy to
+Resources:
+ APICommonCodeLayer:
+ Type: 'AWS::Serverless::LayerVersion'
+ Properties:
+ Description: API common libraries
+ LayerName:
+ Fn::Sub: 'api-common-code-layer-${Environment}'
+ ContentUri: api/common
+ CompatibleRuntimes:
+ - nodejs8.10
+ RetentionPolicy: Retain
diff --git a/test/rules/functions/test_sub_needed.py b/test/rules/functions/test_sub_needed.py
--- a/test/rules/functions/test_sub_needed.py
+++ b/test/rules/functions/test_sub_needed.py
@@ -27,6 +27,7 @@ def setUp(self):
self.success_templates = [
'test/fixtures/templates/good/functions/sub.yaml',
'test/fixtures/templates/good/functions/sub_needed.yaml',
+ 'test/fixtures/templates/good/functions/sub_needed_transform.yaml',
]
def test_file_positive(self):
|
cfn-lint shows `W1020 Fn::Sub isn't needed` on Serverless LayerVersion property LayerName when a Variable is actually present
*cfn-lint version: 0.20.1*
cfn-lint shows `W1020 Fn::Sub isn't needed` on Serverless LayerVersion property LayerName when a Variable is actually present in the layerName String of the intrinsic function Sub
Please provide as much information as possible:
sample resource:
```yaml
APICommonCodeLayer:
Type: 'AWS::Serverless::LayerVersion'
Properties:
Description: API common libraries
LayerName:
Fn::Sub: 'api-common-code-layer-${Environment}'
ContentUri: api/common
CompatibleRuntimes:
- nodejs8.10
RetentionPolicy: Retain
```
Where Environment is a Paramater with the following definition:
```yaml
Environment:
AllowedValues:
- Dev
- Qa
- Staging
- Mirror
- Prod
ConstraintDescription: You must specify a valid EnvironmentValue
Default: Dev
Description: Environment for to Deploy to
Type: String
```
This only seems to affect LayerVersions as other resources proceed to not return the warning when using Fn::Sub in their names, even other AWS::Serverless resources.
Sample Template:
```yaml
AWSTemplateFormatVersion: '2010-09-09'
Transform: 'AWS::Serverless-2016-10-31'
Description: SampleTemplate
Parameters:
Environment:
Type: String
AllowedValues:
- Dev
- Qa
- Staging
- Mirror
- Prod
ConstraintDescription: You must specify a valid EnvironmentValue
Default: Dev
Description: Environment for to Deploy to
Resources:
APICommonCodeLayer:
Type: 'AWS::Serverless::LayerVersion'
Properties:
Description: API common libraries
LayerName:
Fn::Sub: 'api-common-code-layer-${Environment}'
ContentUri: api/common
CompatibleRuntimes:
- nodejs8.10
RetentionPolicy: Retain
```
|
2019-05-16T09:57:15Z
|
[] |
[] |
|
aws-cloudformation/cfn-lint
| 920 |
aws-cloudformation__cfn-lint-920
|
[
"919"
] |
343d2b1cdabfaf0e0d732dd9c668c6b3d59ddcb7
|
diff --git a/src/cfnlint/rules/functions/Sub.py b/src/cfnlint/rules/functions/Sub.py
--- a/src/cfnlint/rules/functions/Sub.py
+++ b/src/cfnlint/rules/functions/Sub.py
@@ -188,6 +188,17 @@ def match(self, cfn):
message = 'Sub should be an array of 2 for {0}'
matches.append(RuleMatch(
tree, message.format('/'.join(map(str, tree)))))
+ elif isinstance(sub_value_obj, dict):
+ if len(sub_value_obj) == 1:
+ for key, _ in sub_value_obj.items():
+ if not key == 'Fn::Transform':
+ message = 'Sub should be a string or array of 2 items for {0}'
+ matches.append(RuleMatch(
+ tree, message.format('/'.join(map(str, tree)))))
+ else:
+ message = 'Sub should be a string or array of 2 items for {0}'
+ matches.append(RuleMatch(
+ tree, message.format('/'.join(map(str, tree)))))
else:
message = 'Sub should be a string or array of 2 items for {0}'
matches.append(RuleMatch(
diff --git a/src/cfnlint/rules/parameters/Used.py b/src/cfnlint/rules/parameters/Used.py
--- a/src/cfnlint/rules/parameters/Used.py
+++ b/src/cfnlint/rules/parameters/Used.py
@@ -57,7 +57,7 @@ def match(self, cfn):
for subtree in subtrees:
if isinstance(subtree[-1], list):
subs.extend(cfn.get_sub_parameters(subtree[-1][0]))
- else:
+ elif isinstance(subtree[-1], six.string_types):
subs.extend(cfn.get_sub_parameters(subtree[-1]))
for paramname, _ in cfn.get_parameters().items():
|
diff --git a/test/fixtures/templates/bad/functions/sub.yaml b/test/fixtures/templates/bad/functions/sub.yaml
--- a/test/fixtures/templates/bad/functions/sub.yaml
+++ b/test/fixtures/templates/bad/functions/sub.yaml
@@ -56,6 +56,26 @@ Resources:
Fn::Sub:
- "${myCidr}"
- myCidr: !Ref CidrBlock
+ LaunchConfiguration:
+ Type: AWS::AutoScaling::LaunchConfiguration
+ Properties:
+ ImageId: ami-123456
+ InstanceType: t2.micro
+ UserData:
+ 'Fn::Base64':
+ 'Fn::Sub':
+ 'Fn::Transform': # Doesn't support an object of two items
+ Name: DynamicUserData
+ 'Fn::GetAtt': myVPc2.CidrBlock
+ LaunchConfiguration2:
+ Type: AWS::AutoScaling::LaunchConfiguration
+ Properties:
+ ImageId: ami-123456
+ InstanceType: t2.micro
+ UserData:
+ 'Fn::Base64':
+ 'Fn::Sub':
+ 'Fn::GetAtt': myVPc.CidrBlock
Outputs:
myOutput:
Value: !Sub "${myInstance3.PrivateDnsName1}"
diff --git a/test/fixtures/templates/good/functions/sub.yaml b/test/fixtures/templates/good/functions/sub.yaml
--- a/test/fixtures/templates/good/functions/sub.yaml
+++ b/test/fixtures/templates/good/functions/sub.yaml
@@ -44,9 +44,18 @@ Resources:
Type: Custom::Test
Properties:
ServiceToken: Arn
-
myAlb:
Type: "AWS::ElasticLoadBalancingV2::LoadBalancer"
Properties:
Name: !Sub ${AWS::StackName}-lb
Subnets: !Ref mySubnets
+ LaunchConfiguration:
+ Type: AWS::AutoScaling::LaunchConfiguration
+ Properties:
+ ImageId: ami-123456
+ InstanceType: t2.micro
+ UserData:
+ 'Fn::Base64':
+ 'Fn::Sub':
+ 'Fn::Transform': # Doesn't fail on Transform
+ Name: DynamicUserData
diff --git a/test/fixtures/templates/good/parameters/used_transforms.yaml b/test/fixtures/templates/good/parameters/used_transforms.yaml
--- a/test/fixtures/templates/good/parameters/used_transforms.yaml
+++ b/test/fixtures/templates/good/parameters/used_transforms.yaml
@@ -17,3 +17,13 @@ Resources:
Handler: com.SomeLambda::handleRequest
Runtime: java8
MemorySize: 256
+ LaunchConfiguration:
+ Type: AWS::AutoScaling::LaunchConfiguration
+ Properties:
+ ImageId: ami-123456
+ InstanceType: t2.micro
+ UserData:
+ 'Fn::Base64':
+ 'Fn::Sub':
+ 'Fn::Transform': # Doesn't fail on Transform
+ Name: DynamicUserData
diff --git a/test/rules/functions/test_sub.py b/test/rules/functions/test_sub.py
--- a/test/rules/functions/test_sub.py
+++ b/test/rules/functions/test_sub.py
@@ -34,4 +34,4 @@ def test_file_positive(self):
def test_file_negative(self):
"""Test failure"""
- self.helper_file_negative('test/fixtures/templates/bad/functions/sub.yaml', 13)
+ self.helper_file_negative('test/fixtures/templates/bad/functions/sub.yaml', 15)
|
Errors when using Fn::Transform
*cfn-lint version: (`0.20.2`)*
Given the following valid template, I see 2 errors:
```yaml
Parameters:
ImageId:
Type: AWS::EC2::Image::Id
InstanceType:
Type: String
Resources:
LaunchConfiguration:
Type: AWS::AutoScaling::LaunchConfiguration
Properties:
ImageId: !Ref ImageId
InstanceType: !Ref InstanceType
UserData:
'Fn::Base64':
'Fn::Sub':
'Fn::Transform': # Returns a string that contains Fn::Sub tokens like ${AWS::Region}
Name: DynamicUserData
```
* `E1019 Sub should be a string or array of 2 items for Resources/LaunchConfiguration/Properties/UserData/Fn::Base64/Fn::Sub` - `Fn::Transform` can return a string or a template, so `Fn::Sub` should be forgiving of it.
* `E0002 Unknown exception while processing rule W2001: expected string or bytes-like object` Same root cause, but fails in a different way due to assumption that it complies with E1019 in a specific way.
|
We will probably fail on higher level Transforms for a while as we need to be able to lint the transformed template. However, in this case we shouldn't fail at all as this Transform is way down in the values of a properties section.
|
2019-05-21T12:34:52Z
|
[] |
[] |
aws-cloudformation/cfn-lint
| 924 |
aws-cloudformation__cfn-lint-924
|
[
"922"
] |
38597aefb68ca665a114a889ce2d6cd247391ab6
|
diff --git a/src/cfnlint/rules/resources/elb/Elb.py b/src/cfnlint/rules/resources/elb/Elb.py
--- a/src/cfnlint/rules/resources/elb/Elb.py
+++ b/src/cfnlint/rules/resources/elb/Elb.py
@@ -28,6 +28,11 @@ class Elb(CloudFormationLintRule):
source_url = 'https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-listener.html'
tags = ['properties', 'elb']
+ def __init__(self):
+ """ Init """
+ super(Elb, self).__init__()
+ self.resource_property_types = ['AWS::ElasticLoadBalancingV2::LoadBalancer']
+
def check_protocol_value(self, value, path, **kwargs):
"""
Check Protocol Value
@@ -44,31 +49,41 @@ def check_protocol_value(self, value, path, **kwargs):
return matches
- def is_application_loadbalancer(self, properties):
+ def get_loadbalancer_type(self, properties):
""" Check if type is application """
- elb_type = properties.get('Type')
- if not elb_type or elb_type == 'application':
- return True
- return False
-
- def check_alb_subnets(self, properties, path):
+ elb_type = properties.get('Type', 'application')
+ if isinstance(elb_type, six.string_types):
+ if elb_type == 'application':
+ return 'application'
+ return 'network'
+ return None
+
+ def check_alb_subnets(self, properties, path, scenario):
""" Validate at least two subnets with ALBs"""
matches = []
- if self.is_application_loadbalancer(properties):
+ if self.get_loadbalancer_type(properties) == 'application':
subnets = properties.get('Subnets')
if isinstance(subnets, list):
if len(subnets) < 2:
- path = path + ['Subnets']
- matches.append(RuleMatch(path, 'You must specify at least two Subnets for load balancers with type "application"'))
+ if scenario:
+ message = 'You must specify at least two Subnets for load balancers with type "application" {0}'
+ scenario_text = ' and '.join(['when condition "%s" is %s' % (k, v) for (k, v) in scenario.items()])
+ matches.append(RuleMatch(path, message.format(scenario_text)))
+ else:
+ matches.append(RuleMatch(path[:] + ['Subnets'], 'You must specify at least two Subnets for load balancers with type "application"'))
subnet_mappings = properties.get('SubnetMappings')
if isinstance(subnet_mappings, list):
if len(subnet_mappings) < 2:
- path = path + ['SubnetMappings']
- matches.append(RuleMatch(path, 'You must specify at least two SubnetMappings for load balancers with type "application"'))
+ if scenario:
+ message = 'You must specify at least two SubnetMappings for load balancers with type "application" {0}'
+ scenario_text = ' and '.join(['when condition "%s" is %s' % (k, v) for (k, v) in scenario.items()])
+ matches.append(RuleMatch(path, message.format(scenario_text)))
+ else:
+ matches.append(RuleMatch(path[:] + ['SubnetMappings'], 'You must specify at least two SubnetMappings for load balancers with type "application"'))
return matches
- def check_loadbalancer_allowed_attributes(self, properties, path):
+ def check_loadbalancer_allowed_attributes(self, properties, path, scenario):
""" Validate loadbalancer attributes per loadbalancer type"""
matches = []
@@ -93,13 +108,17 @@ def check_loadbalancer_allowed_attributes(self, properties, path):
for item in loadbalancer_attributes:
key = item.get('Key')
value = item.get('Value')
- if isinstance(key, six.string_types) and isinstance(value, (six.string_types, bool, int)):
- loadbalancer = 'network'
- if self.is_application_loadbalancer(properties):
- loadbalancer = 'application'
- if key not in allowed_attributes['all'] and key not in allowed_attributes[loadbalancer]:
- message = 'Attribute "{0}" not allowed for load balancers with type "{1}"'
- matches.append(RuleMatch(path, message.format(key, loadbalancer)))
+ if isinstance(key, six.string_types) and isinstance(value, (six.string_types, bool, six.integer_types)):
+ loadbalancer = self.get_loadbalancer_type(properties)
+ if loadbalancer:
+ if key not in allowed_attributes['all'] and key not in allowed_attributes[loadbalancer]:
+ if scenario:
+ scenario_text = ' and '.join(['when condition "%s" is %s' % (k, v) for (k, v) in scenario.items()])
+ message = 'Attribute "{0}" not allowed for load balancers with type "{1}" {2}'
+ matches.append(RuleMatch(path, message.format(key, loadbalancer, scenario_text)))
+ else:
+ message = 'Attribute "{0}" not allowed for load balancers with type "{1}"'
+ matches.append(RuleMatch(path, message.format(key, loadbalancer)))
return matches
@@ -130,15 +149,27 @@ def match(self, cfn):
certificate_protocols=['HTTPS', 'SSL'],
certificates=listener.get('SSLCertificateId')))
- results = cfn.get_resource_properties(['AWS::ElasticLoadBalancingV2::LoadBalancer'])
- for result in results:
- properties = result['Value']
- if not self.is_application_loadbalancer(properties):
- if 'SecurityGroups' in properties:
- path = result['Path'] + ['SecurityGroups']
- matches.append(RuleMatch(path, 'Security groups are not supported for load balancers with type "network"'))
-
- matches.extend(self.check_alb_subnets(properties, result['Path']))
- matches.extend(self.check_loadbalancer_allowed_attributes(properties, result['Path']))
+ return matches
+
+ def match_resource_properties(self, resource_properties, _, path, cfn):
+ """ Check Load Balancers """
+ matches = []
+
+ # Play out conditions to determine the relationship between property values
+ scenarios = cfn.get_object_without_nested_conditions(resource_properties, path)
+ for scenario in scenarios:
+ properties = scenario.get('Object')
+ if self.get_loadbalancer_type(properties) == 'network':
+ if properties.get('SecurityGroups'):
+ if scenario.get('Scenario'):
+ scenario_text = ' and '.join(['when condition "%s" is %s' % (k, v) for (k, v) in scenario.get('Scenario').items()])
+ message = 'Security groups are not supported for load balancers with type "network" {0}'
+ matches.append(RuleMatch(path, message.format(scenario_text)))
+ else:
+ path = path + ['SecurityGroups']
+ matches.append(RuleMatch(path, 'Security groups are not supported for load balancers with type "network"'))
+
+ matches.extend(self.check_alb_subnets(properties, path, scenario.get('Scenario')))
+ matches.extend(self.check_loadbalancer_allowed_attributes(properties, path, scenario.get('Scenario')))
return matches
|
diff --git a/test/fixtures/templates/bad/properties_elb.yaml b/test/fixtures/templates/bad/resources/elb/properties.yaml
similarity index 90%
rename from test/fixtures/templates/bad/properties_elb.yaml
rename to test/fixtures/templates/bad/resources/elb/properties.yaml
--- a/test/fixtures/templates/bad/properties_elb.yaml
+++ b/test/fixtures/templates/bad/resources/elb/properties.yaml
@@ -20,8 +20,18 @@ Parameters:
TestParam:
Type: String
Default: TCP
+ Type:
+ Type: String
+ AllowedValues: ['application', 'network']
+ Default: application
+ Description: ALB type
+ SecurityGroups:
+ Type: CommaDelimitedList
+ Description: Security group(s) for ALB
+ Default: ''
Conditions:
TestCond: !Equals ['a', 'a']
+ IsTypeNetwork: !Equals [!Ref Type, 'network']
Resources:
LoadBalancer:
Type: "AWS::ElasticLoadBalancingV2::LoadBalancer"
@@ -192,6 +202,23 @@ Resources:
Value: 'true'
InstancePorts:
- '80'
+ ElasticLoadBalancerConditions:
+ Type: AWS::ElasticLoadBalancingV2::LoadBalancer
+ Properties:
+ Scheme: internet-facing
+ SecurityGroups: !If
+ - IsTypeNetwork
+ - !Ref SecurityGroups
+ - !Ref 'AWS::NoValue'
+ Subnets:
+ - subnet-123456
+ Type: !If
+ - IsTypeNetwork
+ - network
+ - application
+ LoadBalancerAttributes:
+ - Key: load_balancing.cross_zone.enabled
+ Value: 'true'
Outputs:
Arn:
Value: !Ref LoadBalancer
diff --git a/test/fixtures/templates/good/properties_elb.yaml b/test/fixtures/templates/good/resources/elb/properties.yaml
similarity index 100%
rename from test/fixtures/templates/good/properties_elb.yaml
rename to test/fixtures/templates/good/resources/elb/properties.yaml
diff --git a/test/rules/resources/elb/test_elb.py b/test/rules/resources/elb/test_elb.py
--- a/test/rules/resources/elb/test_elb.py
+++ b/test/rules/resources/elb/test_elb.py
@@ -25,7 +25,7 @@ def setUp(self):
super(TestPropertyElb, self).setUp()
self.collection.register(Elb())
self.success_templates = [
- 'test/fixtures/templates/good/properties_elb.yaml'
+ 'test/fixtures/templates/good/resources/elb/properties.yaml'
]
def test_file_positive(self):
@@ -34,7 +34,7 @@ def test_file_positive(self):
def test_file_negative(self):
"""Test failure"""
- self.helper_file_negative('test/fixtures/templates/bad/properties_elb.yaml', 7)
+ self.helper_file_negative('test/fixtures/templates/bad/resources/elb/properties.yaml', 10)
def test_alb_subnets(self):
""" Test ALB Subnet Logic"""
@@ -47,7 +47,7 @@ def test_alb_subnets(self):
]
}
- matches = rule.check_alb_subnets(props, ['Resources', 'ALB', 'Properties'])
+ matches = rule.check_alb_subnets(props, ['Resources', 'ALB', 'Properties'], {})
self.assertEqual(len(matches), 1)
# No Failure when 2 subnets defined
@@ -59,7 +59,7 @@ def test_alb_subnets(self):
]
}
- matches = rule.check_alb_subnets(props, ['Resources', 'ALB', 'Properties'])
+ matches = rule.check_alb_subnets(props, ['Resources', 'ALB', 'Properties'], {})
self.assertEqual(len(matches), 0)
# Failure when 1 SubnetMapping defined
@@ -72,7 +72,7 @@ def test_alb_subnets(self):
]
}
- matches = rule.check_alb_subnets(props, ['Resources', 'ALB', 'Properties'])
+ matches = rule.check_alb_subnets(props, ['Resources', 'ALB', 'Properties'], {})
self.assertEqual(len(matches), 1)
# No Failure when 2 SubnetMapping defined
@@ -84,7 +84,7 @@ def test_alb_subnets(self):
]
}
- matches = rule.check_alb_subnets(props, ['Resources', 'ALB', 'Properties'])
+ matches = rule.check_alb_subnets(props, ['Resources', 'ALB', 'Properties'], {})
self.assertEqual(len(matches), 0)
# No Failure when 1 Subnet and NLB
@@ -95,7 +95,7 @@ def test_alb_subnets(self):
]
}
- matches = rule.check_alb_subnets(props, ['Resources', 'NLB', 'Properties'])
+ matches = rule.check_alb_subnets(props, ['Resources', 'NLB', 'Properties'], {})
self.assertEqual(len(matches), 0)
def test_loadbalancer_attributes(self):
@@ -112,7 +112,7 @@ def test_loadbalancer_attributes(self):
]
}
- matches = rule.check_loadbalancer_allowed_attributes(props, ['Resources', 'NLB', 'Properties'])
+ matches = rule.check_loadbalancer_allowed_attributes(props, ['Resources', 'NLB', 'Properties'], {})
self.assertEqual(len(matches), 0)
props = {
@@ -128,7 +128,7 @@ def test_loadbalancer_attributes(self):
]
}
- matches = rule.check_loadbalancer_allowed_attributes(props, ['Resources', 'ALB', 'Properties'])
+ matches = rule.check_loadbalancer_allowed_attributes(props, ['Resources', 'ALB', 'Properties'], {})
self.assertEqual(len(matches), 0)
props = {
@@ -145,8 +145,36 @@ def test_loadbalancer_attributes(self):
]
}
- matches = rule.check_loadbalancer_allowed_attributes(props, ['Resources', 'NLB', 'Properties'])
+ matches = rule.check_loadbalancer_allowed_attributes(props, ['Resources', 'LB', 'Properties'], {})
self.assertEqual(len(matches), 2)
+ props = {
+ "Type": "network"
+ }
+
+ elb_type = rule.get_loadbalancer_type(props)
+ self.assertEqual(elb_type, 'network')
+
+ props = {
+ "Type": "application"
+ }
+
+ elb_type = rule.get_loadbalancer_type(props)
+ self.assertEqual(elb_type, 'application')
+
+ props = {}
+
+ elb_type = rule.get_loadbalancer_type(props)
+ self.assertEqual(elb_type, 'application')
+
+ props = {
+ "Type": {
+ "Ref": "LoadBalancerType"
+ }
+ }
+
+ elb_type = rule.get_loadbalancer_type(props)
+ self.assertEqual(elb_type, None)
+
|
E2503 Security groups are not supported for load balancers with type "network"
*cfn-lint version: (`cfn-lint --version`)*
cfn-lint 0.21.0
*Description of issue.*
Here's a simplified version of our ALB template which reproduces the failure:
```
---
AWSTemplateFormatVersion: '2010-09-09'
Description: Application Load Balancer
Metadata:
cfn-lint:
config:
ignore_checks:
- W2507 # AWS-Specific parameter types do not allow empty defaults
Parameters:
Type:
Type: String
AllowedValues: ['application', 'network']
Default: application
Description: ALB type
SecurityGroup:
Type: CommaDelimitedList
Description: Security group(s) for ALB
Default: ''
Subnets:
Type: List<AWS::EC2::Subnet::Id>
Description: List of subnets to use for ALB
Conditions:
IsTypeNetwork: !Equals [!Ref Type, 'network']
Resources:
ALB:
Type: AWS::ElasticLoadBalancingV2::LoadBalancer
Properties:
IpAddressType: 1.2.3.4
Name: MyName
Scheme: internet-facing
SecurityGroups: !If
- IsTypeNetwork
- !Ref 'AWS::NoValue'
- !Ref SecurityGroup
Subnets: !Ref Subnets
Type: !Ref Type
```
Here's the failure:
```
$ cfn-lint stacks/test-alb.template
E2503 Security groups are not supported for load balancers with type "network"
stacks/test-alb.template:36:7
```
This had been linting fine up until today (no recent changes to the template), so I think it may been introduced in the latest release: https://github.com/aws-cloudformation/cfn-python-lint/blob/master/CHANGELOG.md#0210
|
Hi,
This is introduced on [0.17.1](https://github.com/aws-cloudformation/cfn-python-lint/blob/master/CHANGELOG.md#0171)
Aparantly conditionals are not extracted correctly?
We did touch this rule with the attribute checks. While the changes were unrelated to this specific part of the check something else must have changed that caused us to start having this issue.
The real fix here is to get things working with conditions. I'm going to rework a few things to get that done.
|
2019-05-21T20:48:32Z
|
[] |
[] |
aws-cloudformation/cfn-lint
| 929 |
aws-cloudformation__cfn-lint-929
|
[
"928"
] |
84db5a6c7c604ceef0aa0721e7c9178a994f1128
|
diff --git a/src/cfnlint/helpers.py b/src/cfnlint/helpers.py
--- a/src/cfnlint/helpers.py
+++ b/src/cfnlint/helpers.py
@@ -19,6 +19,7 @@
import json
import os
import imp
+import datetime
import logging
import re
import inspect
@@ -227,7 +228,11 @@ def initialize_specs():
def format_json_string(json_string):
""" Format the given JSON string"""
- return json.dumps(json_string, indent=2, sort_keys=True, separators=(',', ': '))
+ def converter(o): # pylint: disable=R1710
+ """ Help convert date/time into strings """
+ if isinstance(o, datetime.datetime):
+ return o.__str__()
+ return json.dumps(json_string, indent=2, sort_keys=True, separators=(',', ': '), default=converter)
def load_plugins(directory):
"""Load plugins"""
|
diff --git a/test/module/helpers/test_format_json.py b/test/module/helpers/test_format_json.py
new file mode 100644
--- /dev/null
+++ b/test/module/helpers/test_format_json.py
@@ -0,0 +1,49 @@
+"""
+ Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ software and associated documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to use, copy, modify,
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
+import json
+import datetime
+from cfnlint.helpers import format_json_string
+from testlib.testcase import BaseTestCase
+
+
+class TestFormatJson(BaseTestCase):
+ """Test Dumping JSON objects """
+
+ def test_success_run(self):
+ """Test success run"""
+ obj = {
+ 'Key': {
+ 'SubKey': 'Value',
+ 'Date': datetime.datetime(2010, 9, 9)
+ },
+ 'List': [
+ {'SubKey': 'AnotherValue'}
+ ]
+ }
+ success = """{
+ "Key": {
+ "Date": "2010-09-09 00:00:00",
+ "SubKey": "Value"
+ },
+ "List": [
+ {
+ "SubKey": "AnotherValue"
+ }
+ ]
+}"""
+ results = format_json_string(obj)
+ self.assertEqual(success, results)
|
E0001 for a validate template in latest version but not 0.21.0
*cfn-lint version: (0.21.1)*
*Description of issue.*
With this cfn template:
```
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Resources:
ServerLamdaRole:
Properties:
AssumeRolePolicyDocument:
Statement:
- Action:
- sts:AssumeRole
Effect: Allow
Principal:
Service:
- lambda.amazonaws.com
Version: 2012-10-17
Path: /
Type: AWS::IAM::Role
```
We got the following error using latest version(`0.21.1`):
```
E0001 Error transforming template: datetime.date(2012, 10, 17) is not JSON serializable
cfn.yml:1:1
```
However, when using cfn-lint(`0.21.0`), this template is correctly validated:
```
{𝞿/RO-1092⁁ncy? ~/.xia/sha/sta/sam}cfn-lint --version && cfn-lint cfn.yml && echo "here"
cfn-lint 0.21.0
here
```
|
Tested the above with `0.21.2` as well, same `E0001` error:
```
∇{𝞿/RO-1092⁁ncy? ~/.xia/sha/sta/sam}cfn-lint --version && cfn-lint cfn.yml && echo "here"
cfn-lint 0.21.2
E0001 Error transforming template: datetime.date(2012, 10, 17) is not JSON serializable
cfn.yml:1:1
```
Was not expecting another version after this mornings release so the original title is not totally up to date, sorry about that.
|
2019-05-24T12:19:45Z
|
[] |
[] |
aws-cloudformation/cfn-lint
| 931 |
aws-cloudformation__cfn-lint-931
|
[
"557"
] |
9f302edca79a40e0201d7484f28a4310341afb54
|
diff --git a/src/cfnlint/rules/functions/Join.py b/src/cfnlint/rules/functions/Join.py
--- a/src/cfnlint/rules/functions/Join.py
+++ b/src/cfnlint/rules/functions/Join.py
@@ -17,6 +17,7 @@
import six
from cfnlint import CloudFormationLintRule
from cfnlint import RuleMatch
+from cfnlint.helpers import RESOURCE_SPECS
class Join(CloudFormationLintRule):
@@ -27,6 +28,132 @@ class Join(CloudFormationLintRule):
source_url = 'https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-join.html'
tags = ['functions', 'join']
+ def __init__(self):
+ """Initialize the rule"""
+ super(Join, self).__init__()
+ self.list_supported_functions = []
+ self.singular_supported_functions = []
+ for intrinsic_type, intrinsic_value in RESOURCE_SPECS.get('us-east-1').get('IntrinsicTypes').items():
+ if 'List' in intrinsic_value.get('ReturnTypes', []):
+ self.list_supported_functions.append(intrinsic_type)
+ if 'Singular' in intrinsic_value.get('ReturnTypes', []):
+ self.singular_supported_functions.append(intrinsic_type)
+
+ def _get_parameters(self, cfn):
+ """Get all Parameter Names"""
+ results = {}
+ parameters = cfn.template.get('Parameters', {})
+ if isinstance(parameters, dict):
+ for param_name, param_values in parameters.items():
+ # This rule isn't here to check the Types but we need
+ # something valid if it doesn't exist
+ results[param_name] = param_values.get('Type', 'String')
+
+ return results
+
+ def _normalize_getatt(self, getatt):
+ """ Normalize getatt into an array"""
+ if isinstance(getatt, six.string_types):
+ return getatt.split('.', 1)
+ return getatt
+
+ def _is_ref_a_list(self, parameter, template_parameters):
+ """ Is a Ref a list """
+ list_params = [
+ 'AWS::NotificationARNs',
+ ]
+
+ odd_list_params = [
+ 'CommaDelimitedList',
+ 'AWS::SSM::Parameter::Value<CommaDelimitedList>',
+ ]
+
+ if parameter in template_parameters:
+ if (
+ template_parameters.get(parameter) in odd_list_params or
+ template_parameters.get(parameter).startswith('AWS::SSM::Parameter::Value<List') or
+ template_parameters.get(parameter).startswith('List')):
+ return True
+ if parameter in list_params:
+ return True
+ return False
+
+
+ def _is_getatt_a_list(self, parameter, get_atts):
+ """ Is a GetAtt a List """
+
+ for resource, attributes in get_atts.items():
+ for attribute_name, attribute_values in attributes.items():
+ if resource == parameter[0] and attribute_name in ['*', parameter[1]]:
+ if attribute_values.get('Type') == 'List':
+ return True
+
+ return False
+
+
+ def _match_string_objs(self, join_string_objs, cfn, path):
+ """ Check join list """
+
+ matches = []
+
+ template_parameters = self._get_parameters(cfn)
+ get_atts = cfn.get_valid_getatts()
+
+ if isinstance(join_string_objs, dict):
+ if len(join_string_objs) == 1:
+ for key, value in join_string_objs.items():
+ if key not in self.list_supported_functions:
+ message = 'Fn::Join unsupported function for {0}'
+ matches.append(RuleMatch(
+ path, message.format('/'.join(map(str, path)))))
+ elif key in ['Ref']:
+ if not self._is_ref_a_list(value, template_parameters):
+ message = 'Fn::Join must use a list at {0}'
+ matches.append(RuleMatch(
+ path, message.format('/'.join(map(str, path)))))
+ elif key in ['Fn::GetAtt']:
+ if not self._is_getatt_a_list(self._normalize_getatt(value), get_atts):
+ message = 'Fn::Join must use a list at {0}'
+ matches.append(RuleMatch(
+ path, message.format('/'.join(map(str, path)))))
+ else:
+ message = 'Join list of values should be singular for {0}'
+ matches.append(RuleMatch(
+ path, message.format('/'.join(map(str, path)))))
+ elif not isinstance(join_string_objs, list):
+ message = 'Join list of values for {0}'
+ matches.append(RuleMatch(
+ path, message.format('/'.join(map(str, path)))))
+ else:
+ for string_obj in join_string_objs:
+ if isinstance(string_obj, dict):
+ if len(string_obj) == 1:
+ for key, value in string_obj.items():
+ if key not in self.singular_supported_functions:
+ message = 'Join unsupported function for {0}'
+ matches.append(RuleMatch(
+ path, message.format('/'.join(map(str, path)))))
+ elif key in ['Ref']:
+ if self._is_ref_a_list(value, template_parameters):
+ message = 'Fn::Join must not be a list at {0}'
+ matches.append(RuleMatch(
+ path, message.format('/'.join(map(str, path)))))
+ elif key in ['Fn::GetAtt']:
+ if self._is_getatt_a_list(self._normalize_getatt(value), get_atts):
+ message = 'Fn::Join must not be a list at {0}'
+ matches.append(RuleMatch(
+ path, message.format('/'.join(map(str, path)))))
+ else:
+ message = 'Join list of values should be singular for {0}'
+ matches.append(RuleMatch(
+ path, message.format('/'.join(map(str, path)))))
+ elif not isinstance(string_obj, six.string_types):
+ message = 'Join list of singular function or string for {0}'
+ matches.append(RuleMatch(
+ path, message.format('/'.join(map(str, path)))))
+
+ return matches
+
def match(self, cfn):
"""Check CloudFormation Join"""
@@ -34,23 +161,9 @@ def match(self, cfn):
join_objs = cfn.search_deep_keys('Fn::Join')
- supported_functions = [
- 'Fn::Base64',
- 'Fn::FindInMap',
- 'Fn::GetAtt',
- 'Fn::GetAZs',
- 'Fn::ImportValue',
- 'Fn::If',
- 'Fn::Join',
- 'Fn::Select',
- 'Fn::Split',
- 'Fn::Sub',
- 'Ref'
- ]
-
for join_obj in join_objs:
join_value_obj = join_obj[-1]
- tree = join_obj[:-1]
+ path = join_obj[:-1]
if isinstance(join_value_obj, list):
if len(join_value_obj) == 2:
join_string = join_value_obj[0]
@@ -58,50 +171,15 @@ def match(self, cfn):
if not isinstance(join_string, six.string_types):
message = 'Join string has to be of type string for {0}'
matches.append(RuleMatch(
- tree, message.format('/'.join(map(str, tree)))))
- if isinstance(join_string_objs, dict):
- if isinstance(join_string_objs, dict):
- if len(join_string_objs) == 1:
- for key, _ in join_string_objs.items():
- if key not in supported_functions:
- message = 'Join unsupported function for {0}'
- matches.append(RuleMatch(
- tree, message.format('/'.join(map(str, tree)))))
- else:
- message = 'Join list of values should be singular for {0}'
- matches.append(RuleMatch(
- tree, message.format('/'.join(map(str, tree)))))
- elif not isinstance(join_string_objs, six.string_types):
- message = 'Join list of singular function or string for {0}'
- matches.append(RuleMatch(
- tree, message.format('/'.join(map(str, tree)))))
- elif not isinstance(join_string_objs, list):
- message = 'Join list of values for {0}'
- matches.append(RuleMatch(
- tree, message.format('/'.join(map(str, tree)))))
- else:
- for string_obj in join_string_objs:
- if isinstance(string_obj, dict):
- if len(string_obj) == 1:
- for key, _ in string_obj.items():
- if key not in supported_functions:
- message = 'Join unsupported function for {0}'
- matches.append(RuleMatch(
- tree, message.format('/'.join(map(str, tree)))))
- else:
- message = 'Join list of values should be singular for {0}'
- matches.append(RuleMatch(
- tree, message.format('/'.join(map(str, tree)))))
- elif not isinstance(string_obj, six.string_types):
- message = 'Join list of singular function or string for {0}'
- matches.append(RuleMatch(
- tree, message.format('/'.join(map(str, tree)))))
+ path, message.format('/'.join(map(str, path)))))
+ matches.extend(self._match_string_objs(join_string_objs, cfn, path))
else:
message = 'Join should be an array of 2 for {0}'
matches.append(RuleMatch(
- tree, message.format('/'.join(map(str, tree)))))
+ path, message.format('/'.join(map(str, path)))))
else:
message = 'Join should be an array of 2 for {0}'
matches.append(RuleMatch(
- tree, message.format('/'.join(map(str, tree)))))
+ path, message.format('/'.join(map(str, path)))))
+
return matches
|
diff --git a/test/fixtures/templates/bad/functions/join.yaml b/test/fixtures/templates/bad/functions/join.yaml
new file mode 100644
--- /dev/null
+++ b/test/fixtures/templates/bad/functions/join.yaml
@@ -0,0 +1,76 @@
+---
+AWSTemplateFormatVersion: "2010-09-09"
+Description: >
+ Test Join Functions
+Parameters:
+ Partition:
+ Type: String
+ Partitions:
+ Type: List<String>
+Resources:
+ myInstance:
+ Type: AWS::EC2::Instance
+ Properties:
+ ImageId: ami-1234
+ UserData:
+ Fn::Base64:
+ Fn::Join:
+ - ''
+ - 'Test function'
+ - 'another item'
+ myInstance2:
+ Type: AWS::EC2::Instance
+ Properties:
+ ImageId: ami-1234
+ UserData:
+ Fn::Base64:
+ Fn::Join: !Ref myInstance
+ myVPC:
+ Type: AWS::EC2::VPC
+ Properties:
+ CidrBlock: 10.0.0.0/16
+ InstanceTenancy: dedicated
+ RolePolicies:
+ Type: "AWS::IAM::ManagedPolicy"
+ Properties:
+ ManagedPolicyName: "root"
+ PolicyDocument:
+ Version: "2012-10-17"
+ Statement:
+ -
+ Effect: "Allow"
+ Action: "*"
+ Resource:
+ - Fn::Join:
+ - ''
+ - !Sub "${AWS::AccountId}-test" # Sub is singular and should be a list
+ - Fn::Join:
+ - ''
+ - - !GetAZs 'us-east-1' # Get AZs returns a list and this should be singular
+ - Fn::Join:
+ - ''
+ - - !GetAtt myVPC.CidrBlockAssociations # Is a list and should be singular
+ - Fn::Join:
+ - ''
+ - !GetAtt myVPC.CidrBlock # Singular value and should be a list
+ - Fn::Join:
+ - ''
+ - - 'arn:'
+ - !Ref Partitions # Can't use a list here
+ - ':s3:::elasticbeanstalk-*-'
+ - !Ref 'AWS::AccountId'
+ - Fn::Join:
+ - ''
+ - Ref: Partition # has to be a list here
+ - Fn::Join:
+ - ''
+ - Ref: Partition # More than one item in the object
+ Fn::GetAtt: myVPC.CidrBlockAssociations
+ - Fn::Join:
+ - ''
+ - - Ref: Partition # More than one item in the object
+ Fn::GetAtt: myVPC.CidrBlockAssociations
+ - Fn::Join:
+ - ''
+ - String # Can't be a string
+
\ No newline at end of file
diff --git a/test/fixtures/templates/good/functions/join.yaml b/test/fixtures/templates/good/functions/join.yaml
new file mode 100644
--- /dev/null
+++ b/test/fixtures/templates/good/functions/join.yaml
@@ -0,0 +1,48 @@
+AWSTemplateFormatVersion: "2010-09-09"
+Parameters:
+ Partition:
+ Type: String
+ Partitions:
+ Type: List<String>
+Resources:
+ myVPC:
+ Type: AWS::EC2::VPC
+ Properties:
+ CidrBlock: 10.0.0.0/16
+ InstanceTenancy: dedicated
+ RolePolicies:
+ Type: "AWS::IAM::ManagedPolicy"
+ Properties:
+ ManagedPolicyName: "root"
+ PolicyDocument:
+ Version: "2012-10-17"
+ Statement:
+ -
+ Effect: "Allow"
+ Action: "*"
+ Resource:
+ - Fn::Join:
+ - ''
+ - - !Sub "${AWS::AccountId}-test" # Sub returns a string and shoule work here
+ - Fn::Join:
+ - ''
+ - !GetAZs 'us-east-1' # a GetAZs returns a list which should work here
+ - Fn::Join:
+ - ''
+ - !GetAtt myVPC.CidrBlockAssociations # a GetAtt to a list should work here
+ - Fn::Join:
+ - ''
+ - - !GetAtt myVPC.CidrBlock # a GetAtt to a string should work here
+ - Fn::Join:
+ - ''
+ - - 'arn:'
+ - !Ref Partition
+ - ':s3:::elasticbeanstalk-*-'
+ - !Ref 'AWS::AccountId'
+ - Fn::Join:
+ - ''
+ - Ref: Partitions
+ - Fn::Join:
+ - ''
+ - !Ref AWS::NotificationARNs
+
diff --git a/test/integration/test_patched_specs.py b/test/integration/test_patched_specs.py
--- a/test/integration/test_patched_specs.py
+++ b/test/integration/test_patched_specs.py
@@ -109,6 +109,15 @@ def test_sub_properties(self):
for p_name, p_values in v_value_properties.items():
self._test_sub_properties(resource_name, p_name, p_values)
+ def test_intrinsic_value_types(self):
+ """ Test Intrinsic Types """
+
+ for _, i_value in self.spec.get('IntrinsicTypes').items():
+ self.assertIn('Documentation', i_value)
+ self.assertIn('ReturnTypes', i_value)
+ for return_type in i_value.get('ReturnTypes'):
+ self.assertIn(return_type, ['Singular', 'List'])
+
def test_property_value_types(self):
"""Test Property Value Types"""
for v_name, v_values in self.spec.get('ValueTypes').items():
diff --git a/test/rules/functions/test_join.py b/test/rules/functions/test_join.py
--- a/test/rules/functions/test_join.py
+++ b/test/rules/functions/test_join.py
@@ -24,6 +24,25 @@ def setUp(self):
"""Setup"""
super(TestRulesJoin, self).setUp()
self.collection.register(Join())
+ self.success_templates = [
+ 'test/fixtures/templates/good/functions/join.yaml',
+ ]
+
+ def test_functions(self):
+ """ Test some of the base functions """
+ rule = Join()
+
+ output = rule._normalize_getatt('Resource.Output')
+ self.assertEqual(output[0], 'Resource')
+ self.assertEqual(output[1], 'Output')
+
+ output = rule._normalize_getatt('Resource.Outputs.Output')
+ self.assertEqual(output[0], 'Resource')
+ self.assertEqual(output[1], 'Outputs.Output')
+
+ output = rule._normalize_getatt(['Resource', 'Output'])
+ self.assertEqual(output[0], 'Resource')
+ self.assertEqual(output[1], 'Output')
def test_file_positive(self):
"""Test Positive"""
@@ -31,4 +50,4 @@ def test_file_positive(self):
def test_file_negative(self):
"""Test failure"""
- self.helper_file_negative('test/fixtures/templates/bad/functions_join.yaml', 2)
+ self.helper_file_negative('test/fixtures/templates/bad/functions/join.yaml', 11)
|
[Feature Request] Proper Linting of List-to-String Fn::Join Actions When Concat-Elements Include List-objects
**cfn-lint version: (`cfn-lint --version`)**
cfn-lint 0.10.2
**Description of issue:**
I make frequent use of nested-templates. Typically, a parent template will contain a call to a child-stack that creates one or more `SecurityGroup` objects and then passes those `SecurityGroup` objects to an EC2 or `AutoScalingGroup`/`LaunchConfiguration` child template as a comma-delimited string using a method similar to the following:
~~~json
"SecurityGroupIds": {
"Fn::Join": [
",",
[
{ "Fn::GetAtt": [ "SgRes", "Outputs.AppSg" ] },
{ "Fn::GetAtt": [ "SgRes", "Outputs.NasSg" ] },
{ "Fn::GetAtt": [ "SgRes", "Outputs.RdsSg" ] }
]
]
},
~~~
Recently, I received a request to add the ability to ensure a user-specifiable "management" `SecurityGroup` is applied to the resultant EC2s. So, I added a `Parameter` to my parent template similar to:
~~~json
"MgtSgs": {
"AllowedPattern": "^$|^sg-[0-9a-z]{8}$|^sg-[0-9a-z]{17}$",
"Default": "",
"Description": "Security group(s) that need management access to the Gluster nodes' CLIs",
"Type": "List<AWS::EC2::SecurityGroup::Id>"
},
~~~
I use the `List<AWS::EC2::SecurityGroup::Id>` type because my template users prefer to be able to select from a pull-down when using the template from the CFn web-console. Otherwise, I'd consider using a basic `String` type. When I first updated my `"SecurityGroupIds"` join-block, I'd tried:
~~~json
"SecurityGroupIds": {
"Fn::Join": [
",",
[
{ "Ref": "MgtSgs" }
{ "Fn::GetAtt": [ "SgRes", "Outputs.AppSg" ] },
{ "Fn::GetAtt": [ "SgRes", "Outputs.NasSg" ] },
{ "Fn::GetAtt": [ "SgRes", "Outputs.RdsSg" ] }
]
]
},
~~~
and
~~~json
"SecurityGroupIds": {
"Fn::Join": [
",",
[
{
"Fn::Join": [
",",
[
{ "Ref": "MgtSgs" }
]
]
},
{ "Fn::GetAtt": [ "SgRes", "Outputs.AppSg" ] },
{ "Fn::GetAtt": [ "SgRes", "Outputs.NasSg" ] },
{ "Fn::GetAtt": [ "SgRes", "Outputs.RdsSg" ] }
]
]
},
~~~
Both of which `cfn-lint` said were valid. However, when attempting to use either of the above to deploy a stack, the launches failed with:
~~~
An error occurred (ValidationError) when calling the CreateStack operation: Template error:
every Fn::Join object requires two parameters, (1) a string delimiter and (2) a list of
strings to be joined or a function that returns a list of strings (such as Fn::GetAZs) to be
joined.
~~~
This error is obviously the correct result, and the fix (after much hair-pulling and knob-twizzling) was to change to doing:
~~~json
"SecurityGroupIds": {
"Fn::Join": [
",",
[
{
"Fn::Join": [
",",
{ "Ref": "MgtSgs" }
]
},
{ "Fn::GetAtt": [ "SgRes", "Outputs.AppSg" ] },
{ "Fn::GetAtt": [ "SgRes", "Outputs.NasSg" ] },
{ "Fn::GetAtt": [ "SgRes", "Outputs.RdsSg" ] }
]
]
},
~~~
It would be great if `cfn-lint` could have flagged the faulty methods I'd tried. I'd likely still have experienced errors, but would have had them at the edit-stage rather than the attempt-to-deploy stage (though a meaningful error at the edit-stage would have saved that).
|
Good find, and complete information. We should be able to get this fixed!
Might worth tackling this one with #390 . Similar issues when using a List Parameter inside a Sub.
|
2019-05-24T13:57:11Z
|
[] |
[] |
aws-cloudformation/cfn-lint
| 933 |
aws-cloudformation__cfn-lint-933
|
[
"582"
] |
2089187e10aa3ca98c179e86ff37a23b9092cbb4
|
diff --git a/src/cfnlint/transform.py b/src/cfnlint/transform.py
--- a/src/cfnlint/transform.py
+++ b/src/cfnlint/transform.py
@@ -38,6 +38,7 @@ def __init__(self, filename, template, region):
self._filename = filename
self._template = template
self._region = region
+ self._parameters = {}
self._managed_policy_map = self.load_managed_policies()
self._sam_parser = parser.Parser()
@@ -70,6 +71,13 @@ def _replace_local_codeuri(self):
if resource_type == 'AWS::Serverless::Function':
Transform._update_to_s3_uri('CodeUri', resource_dict)
+ auto_publish_alias = resource_dict.get('AutoPublishAlias')
+ if isinstance(auto_publish_alias, dict):
+ if len(auto_publish_alias) == 1:
+ for k, v in auto_publish_alias.items():
+ if k == 'Ref':
+ if v in self._template.get('Parameters'):
+ self._parameters[v] = 'Alias'
if resource_type in ['AWS::Serverless::LayerVersion']:
if resource_dict.get('ContentUri'):
Transform._update_to_s3_uri('ContentUri', resource_dict)
@@ -104,7 +112,10 @@ def transform_template(self):
os.environ['AWS_DEFAULT_REGION'] = self._region
self._template = cfnlint.helpers.convert_dict(
- sam_translator.translate(sam_template=self._template, parameter_values={}))
+ sam_translator.translate(sam_template=self._template, parameter_values=self._parameters))
+
+ for p_name in self._parameters:
+ del self._template['Parameters'][p_name]
LOGGER.info('Transformed template: \n%s', cfnlint.helpers.format_json_string(self._template))
except InvalidDocumentException as e:
|
diff --git a/test/fixtures/templates/bad/transform/auto_publish_alias.yaml b/test/fixtures/templates/bad/transform/auto_publish_alias.yaml
new file mode 100644
--- /dev/null
+++ b/test/fixtures/templates/bad/transform/auto_publish_alias.yaml
@@ -0,0 +1,33 @@
+---
+AWSTemplateFormatVersion: '2010-09-09'
+Transform: AWS::Serverless-2016-10-31
+
+Parameters:
+ Stage:
+ Description: Environment stage (deployment phase)
+ Type: String
+ AllowedValues:
+ - beta
+ - prod
+
+Resources:
+ SkillFunctionExtraItems:
+ Type: AWS::Serverless::Function
+ Properties:
+ CodeUri: '.'
+ Handler: main.handler
+ Runtime: python3.7
+ Timeout: 30
+ MemorySize: 128
+ AutoPublishAlias:
+ Ref: Stage
+ Extra: Bad
+ SkillFunctionNotRef:
+ Type: AWS::Serverless::Function
+ Properties:
+ CodeUri: '.'
+ Handler: main.handler
+ Runtime: python3.7
+ Timeout: 30
+ MemorySize: 128
+ AutoPublishAlias: !GetAtt SkillFunctionExtraItems.Arn
\ No newline at end of file
diff --git a/test/fixtures/templates/good/transform/auto_publish_alias.yaml b/test/fixtures/templates/good/transform/auto_publish_alias.yaml
new file mode 100644
--- /dev/null
+++ b/test/fixtures/templates/good/transform/auto_publish_alias.yaml
@@ -0,0 +1,22 @@
+---
+ AWSTemplateFormatVersion: '2010-09-09'
+ Transform: AWS::Serverless-2016-10-31
+
+ Parameters:
+ Stage:
+ Description: Environment stage (deployment phase)
+ Type: String
+ AllowedValues:
+ - beta
+ - prod
+
+ Resources:
+ SkillFunction:
+ Type: AWS::Serverless::Function
+ Properties:
+ CodeUri: '.'
+ Handler: main.handler
+ Runtime: python3.7
+ Timeout: 30
+ MemorySize: 128
+ AutoPublishAlias: !Ref Stage
\ No newline at end of file
diff --git a/test/module/transform/__init__.py b/test/module/transform/__init__.py
new file mode 100644
--- /dev/null
+++ b/test/module/transform/__init__.py
@@ -0,0 +1,16 @@
+"""
+ Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ software and associated documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to use, copy, modify,
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
diff --git a/test/module/transform/test_transform.py b/test/module/transform/test_transform.py
new file mode 100644
--- /dev/null
+++ b/test/module/transform/test_transform.py
@@ -0,0 +1,48 @@
+"""
+ Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ software and associated documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to use, copy, modify,
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
+import json
+from cfnlint import Transform
+from cfnlint.decode import cfn_yaml
+from testlib.testcase import BaseTestCase
+
+class TestTransform(BaseTestCase):
+ """Test Transform Parsing """
+
+ def test_parameter_for_autopublish_version(self):
+ """Test Parameter is created for autopublish version run"""
+ filename = 'test/fixtures/templates/good/transform/auto_publish_alias.yaml'
+ region = 'us-east-1'
+ template = cfn_yaml.load(filename)
+ transformed_template = Transform(filename, template, region)
+ transformed_template.transform_template()
+ self.assertDictEqual(transformed_template._parameters, {'Stage': 'Alias'})
+ self.assertDictEqual(
+ transformed_template._template.get('Resources').get('SkillFunctionAliasAlias').get('Properties'),
+ {
+ 'Name': 'Alias',
+ 'FunctionName': {'Ref': 'SkillFunction'},
+ 'FunctionVersion': {'Fn::GetAtt': ['SkillFunctionVersionb3d38083f6', 'Version']}
+ })
+
+ def test_parameter_for_autopublish_version_bad(self):
+ """Test Parameter is created for autopublish version run"""
+ filename = 'test/fixtures/templates/bad/transform/auto_publish_alias.yaml'
+ region = 'us-east-1'
+ template = cfn_yaml.load(filename)
+ transformed_template = Transform(filename, template, region)
+ transformed_template.transform_template()
+ self.assertDictEqual(transformed_template._parameters, {})
|
AutoPublishAlias with a !Ref value marked as false positive
*cfn-lint version: 0.11.1*
I'm running into an issue with `AutoPublishAlias`. When using a `!Ref` as its value, I get the following error message:
```
E0001 Resource with id [SkillFunction] is invalid. 'AutoPublishAlias' must be a string or a Ref to a template parameter
foo.yml:1:1
```
Here's the minimal template to reproduce the issue:
```yaml
---
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Parameters:
Stage:
Description: Environment stage (deployment phase)
Type: String
AllowedValues:
- beta
- prod
Resources:
SkillFunction:
Type: AWS::Serverless::Function
Properties:
CodeUri: '.'
Handler: main.handler
Runtime: python3.7
Timeout: 30
MemorySize: 128
AutoPublishAlias: !Ref Stage
```
The error message is actually very helpful (👏 for that), but as you can see, I am using a `!Ref` to a template parameter, so this should not cause a linting error.
|
Taking a look at it. Looks like we may be getting this error back from SAM when trying to transform the template. So need to dig a little deeper.
https://github.com/awslabs/serverless-application-model/blob/0425efc396b659c8d0dea5b63c3287cb915d6b34/samtranslator/model/sam_resources.py#L144
This looks like an issue specifically with AutoPublishAlias and how SAM is designed. https://github.com/awslabs/serverless-application-model/issues/220
First of, thank you for jumping on the issue so promptly.
Should I open a new issue in the SAM repo then? Not sure how you folks are organized.
Sorry for the delay I think I may be out of my element on this one. I get the same error from the CLI. From what I can tell this shouldn't be happening but I'm a little bit lost on why. I think we should create an incident in https://github.com/awslabs/serverless-application-model and see if they can help
```
2019-01-16 20:37:27 Found credentials in shared credentials file: ~/.aws/credentials
Template provided at 'test.yaml' was invalid SAM Template.
Error: [InvalidResourceException('SkillFunction', "'AutoPublishAlias' must be a string or a Ref to a template parameter")] ('SkillFunction', "'AutoPublishAlias' must be a string or a Ref to a template parameter")
```
Thanks for you help @kddejong. I've opened an issue ☝️ in the SAM repo, hopefully they will be able to fix it.
So if I understand it correctly, once it's 👌 in SAM, it will be 👌 in cfn-lint as well?
Yea sorry I didn't explain that well. We can't lint a pre-transformed template because there isn't a CloudFormation spec for it. We pass it to the sam translator and then lint the results. In this case since they give us back an error we spit it back to you and don't lint the file.
Alright, got it. Closing the issue then as it's not a cfn-lint error really.
Hey, James from the SAM repo here. We were reviewing https://github.com/awslabs/serverless-application-model/issues/778 and we think this issue should be reopened (I don't seem to have permissions to do it). From the other issue:
> The issue here is that SAM actually needs to resolve the value of certain parameters in order to generate the logical ids of other CloudFormation resources during the transform. AutoPublishAlias is one example where this is true, which is why SAM is failing here. Since these parameters are required when actually deploying the template, it works fine when deploying direct to CloudFormation. However, it fails on validate, because CFN lint (and SAM CLI) are manually calling the SAM transform function without any parameter values in order to do validation.
>
> The fix for this is either for the SAM translator library to offer a validate() function that accounts for issues like this under the covers, or for CFN lint to call transform with dummy parameter values.
Since SAM doesn't currently offer a `validate()` library function, the alternative fix is for CFN lint to generate dummy parameters when calling `translate()`.
https://github.com/awslabs/cfn-python-lint/blob/f5c3504f593d4311388a047fa4b6f18f792c919a/src/cfnlint/transform.py#L114
@kddejong Can we get this reopened per my comment above?
Trying to figure out what to change here. https://github.com/aws-cloudformation/cfn-python-lint/blob/master/src/cfnlint/transform.py#L70-L84. The trick here being I should also Remove the Stage Parameter.
```
if isinstance(resource_dict.get('AutoPublishAlias'), dict):
resource_dict['AutoPublishAlias'] = 'Alias'
```
results in
```
W2001 Parameter Stage not used.
test.yaml:7:3
```
Even if I provide Parameter values the results are the same. I have a few options here. I can validate that the parameter isn't being used any where else and then remove it. It will take me a little longer to get that written.
@jlhood I wonder if translate should remove the parameter if I provide the value for it... maybe you keep it that way for visibility?
|
2019-05-25T12:46:18Z
|
[] |
[] |
aws-cloudformation/cfn-lint
| 939 |
aws-cloudformation__cfn-lint-939
|
[
"935"
] |
f764c2448982d3d60b2636ae70d2673319f69ef5
|
diff --git a/src/cfnlint/rules/resources/iam/Permissions.py b/src/cfnlint/rules/resources/iam/Permissions.py
--- a/src/cfnlint/rules/resources/iam/Permissions.py
+++ b/src/cfnlint/rules/resources/iam/Permissions.py
@@ -14,8 +14,9 @@
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
"""
+import json
import six
-
+from cfnlint.helpers import convert_dict
from cfnlint import CloudFormationLintRule
from cfnlint import RuleMatch
@@ -31,12 +32,25 @@ class Permissions(CloudFormationLintRule):
tags = ['properties', 'iam', 'permissions']
experimental = True
- IAM_PERMISSION_RESOURCE_TYPES = [
- 'AWS::IAM::ManagedPolicy',
- 'AWS::IAM::Policy',
- 'AWS::SNS::TopicPolicy',
- 'AWS::SQS::QueuePolicy'
- ]
+ IAM_PERMISSION_RESOURCE_TYPES = {
+ 'AWS::SNS::TopicPolicy': 'PolicyDocument',
+ 'AWS::S3::BucketPolicy': 'PolicyDocument',
+ 'AWS::KMS::Key': 'KeyPolicy',
+ 'AWS::SQS::QueuePolicy': 'PolicyDocument',
+ 'AWS::Elasticsearch::Domain': 'AccessPolicies',
+ 'AWS::IAM::Group': 'Policies',
+ 'AWS::IAM::ManagedPolicy': 'PolicyDocument',
+ 'AWS::IAM::Policy': 'PolicyDocument',
+ 'AWS::IAM::Role': 'Policies',
+ 'AWS::IAM::User': 'Policies',
+ }
+
+ def __init__(self):
+ """Init"""
+ super(Permissions, self).__init__()
+ self.service_map = self.load_service_map()
+ for resource_type in self.IAM_PERMISSION_RESOURCE_TYPES:
+ self.resource_property_types.append(resource_type)
def load_service_map(self):
"""
@@ -59,50 +73,87 @@ def load_service_map(self):
return policy_service_map
- def check_permissions(self, action, path, service_map):
+ def check_policy_document(self, value, path, start_mark, end_mark):
+ """Check policy document"""
+ matches = []
+
+ if isinstance(value, six.string_types):
+ try:
+ value = convert_dict(json.loads(value), start_mark, end_mark)
+ except Exception as ex: # pylint: disable=W0703,W0612
+ message = 'IAM Policy Documents need to be JSON'
+ matches.append(RuleMatch(path[:], message))
+ return matches
+
+ if not isinstance(value, dict):
+ return matches
+
+ for p_vs, p_p in value.items_safe(path[:], (dict)):
+ statements = p_vs.get('Statement')
+ if statements:
+ if isinstance(statements, dict):
+ statements = [statements]
+ if isinstance(statements, list):
+ for index, statement in enumerate(statements):
+ actions = []
+
+ if isinstance(statement, dict):
+ actions.extend(self.get_actions(statement))
+
+ elif isinstance(statement, list):
+ for effective_permission in statement:
+ actions.extend(self.get_actions(effective_permission))
+
+ for action in actions:
+ matches.extend(self.check_permissions(action, p_p + ['Statement', index]))
+
+ return matches
+
+ def check_permissions(self, action, path):
"""
Check if permission is valid
"""
matches = []
-
if action == '*':
return matches
- service, permission = action.split(':')
+ service, permission = action.split(':', 1)
# Get lowercase so we can check case insenstive. Keep the original values for the message
service_value = service.lower()
permission_value = permission.lower()
- if service_value in service_map:
- if permission_value.endswith('*'):
+ if service_value in self.service_map:
+ if permission_value == '*':
+ pass
+ elif permission_value.endswith('*'):
wilcarded_permission = permission_value.split('*')[0]
- if not any(wilcarded_permission in action for action in service_map[service_value]):
+ if not any(wilcarded_permission in action for action in self.service_map[service_value]):
message = 'Invalid permission "{}" for "{}" found in permissions'
matches.append(
RuleMatch(
path,
- message.format(permission, service, '/'.join(path))))
+ message.format(permission, service)))
elif permission_value.startswith('*'):
wilcarded_permission = permission_value.split('*')[1]
- if not any(wilcarded_permission in action for action in service_map[service_value]):
+ if not any(wilcarded_permission in action for action in self.service_map[service_value]):
message = 'Invalid permission "{}" for "{}" found in permissions'
matches.append(
RuleMatch(
path,
- message.format(permission, service, '/'.join(path))))
- elif permission_value not in service_map[service_value]:
+ message.format(permission, service)))
+ elif permission_value not in self.service_map[service_value]:
message = 'Invalid permission "{}" for "{}" found in permissions'
matches.append(
RuleMatch(
path,
- message.format(permission, service, '/'.join(path))))
+ message.format(permission, service)))
else:
message = 'Invalid service "{}" found in permissions'
matches.append(
RuleMatch(
path,
- message.format(service, '/'.join(path))))
+ message.format(service)))
return matches
@@ -125,29 +176,28 @@ def get_actions(self, effective_permissions):
return actions
- def match(self, cfn):
- """Check IAM Permissions"""
+ def match_resource_properties(self, properties, resourcetype, path, cfn):
+ """Check CloudFormation Properties"""
matches = []
- statements = []
- service_map = self.load_service_map()
- for resource_type in self.IAM_PERMISSION_RESOURCE_TYPES:
- statements.extend(cfn.get_resource_properties([resource_type, 'PolicyDocument', 'Statement']))
-
- for statement in statements:
- path = statement['Path']
- effective_permissions = statement['Value']
-
- actions = []
-
- if isinstance(effective_permissions, dict):
- actions.extend(self.get_actions(effective_permissions))
-
- elif isinstance(effective_permissions, list):
- for effective_permission in effective_permissions:
- actions.extend(self.get_actions(effective_permission))
-
- for action in actions:
- matches.extend(self.check_permissions(action, path, service_map))
+ key = self.IAM_PERMISSION_RESOURCE_TYPES.get(resourcetype)
+ for key, value in properties.items():
+ if key == 'Policies' and isinstance(value, list):
+ for index, policy in enumerate(properties.get(key, [])):
+ matches.extend(
+ cfn.check_value(
+ obj=policy, key='PolicyDocument',
+ path=path[:] + ['Policies', index],
+ check_value=self.check_policy_document,
+ start_mark=key.start_mark, end_mark=key.end_mark,
+ ))
+ elif key in ['KeyPolicy', 'PolicyDocument', 'RepositoryPolicyText', 'AccessPolicies']:
+ matches.extend(
+ cfn.check_value(
+ obj=properties, key=key,
+ path=path[:],
+ check_value=self.check_policy_document,
+ start_mark=key.start_mark, end_mark=key.end_mark,
+ ))
return matches
|
diff --git a/test/fixtures/results/quickstart/nist_iam.json b/test/fixtures/results/quickstart/nist_iam.json
--- a/test/fixtures/results/quickstart/nist_iam.json
+++ b/test/fixtures/results/quickstart/nist_iam.json
@@ -1,15 +1,8 @@
[
{
- "Rule": {
- "Id": "W3005",
- "Description": "Check if DependsOn is specified if not needed. A Ref and GetAtt implicitly results in DependsOn behaviour.",
- "ShortDescription": "Check obsolete DependsOn configuration for Resources"
- },
+ "Filename": "test/fixtures/templates/quickstart/nist_iam.yaml",
+ "Level": "Warning",
"Location": {
- "Start": {
- "ColumnNumber": 5,
- "LineNumber": 56
- },
"End": {
"ColumnNumber": 14,
"LineNumber": 56
@@ -18,23 +11,24 @@
"Resources",
"rIAMAdminProfile",
"DependsOn"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 5,
+ "LineNumber": 56
+ }
},
- "Level": "Warning",
- "Message": "Obsolete DependsOn on resource (rIAMAdminRole), dependency already enforced by \"!Ref\" at Resources/rIAMAdminProfile/Properties/Roles/0/Ref/rIAMAdminRole",
- "Filename": "test/templates/quickstart/nist_iam.yaml"
- },
- {
+ "Message": "Obsolete DependsOn on resource (rIAMAdminRole), dependency already enforced by a \"Ref\" at Resources/rIAMAdminProfile/Properties/Roles/0/Ref/rIAMAdminRole",
"Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
"Id": "W3005",
- "Description": "Check if DependsOn is specified if not needed. A Ref and GetAtt implicitly results in DependsOn behaviour.",
- "ShortDescription": "Check obsolete DependsOn configuration for Resources"
- },
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_iam.yaml",
+ "Level": "Warning",
"Location": {
- "Start": {
- "ColumnNumber": 5,
- "LineNumber": 136
- },
"End": {
"ColumnNumber": 14,
"LineNumber": 136
@@ -43,87 +37,99 @@
"Resources",
"rInstanceOpsProfile",
"DependsOn"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 5,
+ "LineNumber": 136
+ }
},
- "Level": "Warning",
- "Message": "Obsolete DependsOn on resource (rInstanceOpsRole), dependency already enforced by \"!Ref\" at Resources/rInstanceOpsProfile/Properties/Roles/0/Ref/rInstanceOpsRole",
- "Filename": "test/templates/quickstart/nist_iam.yaml"
- },
- {
+ "Message": "Obsolete DependsOn on resource (rInstanceOpsRole), dependency already enforced by a \"Ref\" at Resources/rInstanceOpsProfile/Properties/Roles/0/Ref/rInstanceOpsRole",
"Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
"Id": "W3005",
- "Description": "Check if DependsOn is specified if not needed. A Ref and GetAtt implicitly results in DependsOn behaviour.",
- "ShortDescription": "Check obsolete DependsOn configuration for Resources"
- },
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_iam.yaml",
+ "Level": "Warning",
"Location": {
- "Start": {
- "ColumnNumber": 5,
- "LineNumber": 235
- },
"End": {
- "ColumnNumber": 14,
- "LineNumber": 235
+ "ColumnNumber": 9,
+ "LineNumber": 227
},
"Path": [
"Resources",
- "rReadOnlyAdminProfile",
- "DependsOn"
- ]
+ "rReadOnlyAdminPolicy",
+ "Properties",
+ "PolicyDocument",
+ "Statement",
+ 0
+ ],
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 164
+ }
},
- "Level": "Warning",
- "Message": "Obsolete DependsOn on resource (rReadOnlyAdminRole), dependency already enforced by \"!Ref\" at Resources/rReadOnlyAdminProfile/Properties/Roles/0/Ref/rReadOnlyAdminRole",
- "Filename": "test/templates/quickstart/nist_iam.yaml"
+ "Message": "Invalid permission \"Get*\" for \"appstream\" found in permissions",
+ "Rule": {
+ "Description": "Check for valid IAM Permissions",
+ "Id": "W3037",
+ "ShortDescription": "Check IAM Permission configuration",
+ "Source": "https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_action.html"
+ }
},
{
- "Rule": {
- "Id": "W3005",
- "Description": "Check if DependsOn is specified if not needed. A Ref and GetAtt implicitly results in DependsOn behaviour.",
- "ShortDescription": "Check obsolete DependsOn configuration for Resources"
- },
+ "Filename": "test/fixtures/templates/quickstart/nist_iam.yaml",
+ "Level": "Warning",
"Location": {
- "Start": {
- "ColumnNumber": 5,
- "LineNumber": 311
- },
"End": {
"ColumnNumber": 14,
- "LineNumber": 311
+ "LineNumber": 235
},
"Path": [
"Resources",
- "rSysAdminProfile",
+ "rReadOnlyAdminProfile",
"DependsOn"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 5,
+ "LineNumber": 235
+ }
},
- "Level": "Warning",
- "Message": "Obsolete DependsOn on resource (rSysAdminRole), dependency already enforced by \"!Ref\" at Resources/rSysAdminProfile/Properties/Roles/0/Ref/rSysAdminRole",
- "Filename": "test/templates/quickstart/nist_iam.yaml"
+ "Message": "Obsolete DependsOn on resource (rReadOnlyAdminRole), dependency already enforced by a \"Ref\" at Resources/rReadOnlyAdminProfile/Properties/Roles/0/Ref/rReadOnlyAdminRole",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
},
{
- "Rule": {
- "Id": "W3037",
- "Description": "Check for valid IAM Permissions",
- "ShortDescription": "Check IAM Permission configuration"
- },
+ "Filename": "test/fixtures/templates/quickstart/nist_iam.yaml",
+ "Level": "Warning",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 163
- },
"End": {
- "ColumnNumber": 9,
- "LineNumber": 163
+ "ColumnNumber": 14,
+ "LineNumber": 311
},
"Path": [
"Resources",
- "rReadOnlyAdminPolicy",
- "Properties",
- "PolicyDocument",
- "Statement"
- ]
+ "rSysAdminProfile",
+ "DependsOn"
+ ],
+ "Start": {
+ "ColumnNumber": 5,
+ "LineNumber": 311
+ }
},
- "Level": "Warning",
- "Message": "Invalid permission \"Get*\" for \"appstream\" found in permissions",
- "Filename": "test/templates/quickstart/nist_iam.yaml"
+ "Message": "Obsolete DependsOn on resource (rSysAdminRole), dependency already enforced by a \"Ref\" at Resources/rSysAdminProfile/Properties/Roles/0/Ref/rSysAdminRole",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
}
]
|
iam policy statement can only contain one colon
*cfn-lint version: (`cfn-lint --version`)*
*Description of issue.*
```
IamRole:
Type: AWS::IAM::Role
Properties:
RoleName: "iamrole"
AssumeRolePolicyDocument:
Version: "2012-10-17"
Statement:
- Effect: Allow
Principal:
Service: lambda.amazonaws.com
Action: "sts:AssumeRole"
Policies:
-
PolicyName: "iampolicy"
PolicyDocument:
Version: "2012-10-17"
Statement:
- Effect: "Allow"
Action:
- "cloudwatch:*"
- "ec2:ec2:CreateNetworkInterface"←wrong
- "ec2:DescribeNetworkInterfaces"
- "ec2:DeleteNetworkInterface"
Resource: "*"
```
The following error occurs when deploying using this template.
```
Actions/Condition can contain only one colon. (Service: AmazonIdentityManagement; Status Code: 400; Error Code: MalformedPolicyDocument; Request ID: 751c17bd-199d-453a-a08f-40f8c5b251a9)
```
It may be difficult to check all of iam's policies, but it may be possible to detect grammatical errors, such as the absence of multiple colons.
|
2019-05-30T22:33:59Z
|
[] |
[] |
|
aws-cloudformation/cfn-lint
| 947 |
aws-cloudformation__cfn-lint-947
|
[
"944"
] |
741be2e23617182bb3af867444c5e2397ae84c24
|
diff --git a/src/cfnlint/__init__.py b/src/cfnlint/__init__.py
--- a/src/cfnlint/__init__.py
+++ b/src/cfnlint/__init__.py
@@ -451,8 +451,8 @@ def __init__(self, filename, template, regions=['us-east-1']):
'Outputs',
'Rules'
]
- self.transform_globals = {}
self.transform_pre = {}
+ self.transform_pre['Globals'] = {}
self.transform_pre['Ref'] = self.search_deep_keys('Ref')
self.transform_pre['Fn::Sub'] = self.search_deep_keys('Fn::Sub')
self.conditions = cfnlint.conditions.Conditions(self)
@@ -703,7 +703,7 @@ def search_deep_keys(self, searchText):
results = []
results.extend(self._search_deep_keys(searchText, self.template, []))
# Globals are removed during a transform. They need to be checked manually
- results.extend(self._search_deep_keys(searchText, self.transform_globals, []))
+ results.extend(self._search_deep_keys(searchText, self.transform_pre.get('Globals'), []))
return results
def get_condition_values(self, template, path=[]):
@@ -1336,7 +1336,7 @@ def transform(self):
# Currently locked in to SAM specific
if transform_type == 'AWS::Serverless-2016-10-31':
# Save the Globals section so its available for rule processing
- self.cfn.transform_globals = self.cfn.template.get('Globals', {})
+ self.cfn.transform_pre['Globals'] = self.cfn.template.get('Globals', {})
transform = Transform(self.filename, self.cfn.template, self.cfn.regions[0])
matches = transform.transform_template()
self.cfn.template = transform.template()
diff --git a/src/cfnlint/transform.py b/src/cfnlint/transform.py
--- a/src/cfnlint/transform.py
+++ b/src/cfnlint/transform.py
@@ -114,9 +114,6 @@ def transform_template(self):
self._template = cfnlint.helpers.convert_dict(
sam_translator.translate(sam_template=self._template, parameter_values=self._parameters))
- for p_name in self._parameters:
- del self._template['Parameters'][p_name]
-
LOGGER.info('Transformed template: \n%s', cfnlint.helpers.format_json_string(self._template))
except InvalidDocumentException as e:
message = 'Error transforming template: {0}'
|
diff --git a/test/fixtures/templates/good/transform/auto_publish_alias.yaml b/test/fixtures/templates/good/transform/auto_publish_alias.yaml
--- a/test/fixtures/templates/good/transform/auto_publish_alias.yaml
+++ b/test/fixtures/templates/good/transform/auto_publish_alias.yaml
@@ -1,22 +1,38 @@
---
- AWSTemplateFormatVersion: '2010-09-09'
- Transform: AWS::Serverless-2016-10-31
-
- Parameters:
- Stage:
- Description: Environment stage (deployment phase)
- Type: String
- AllowedValues:
- - beta
- - prod
-
- Resources:
- SkillFunction:
- Type: AWS::Serverless::Function
- Properties:
- CodeUri: '.'
- Handler: main.handler
- Runtime: python3.7
- Timeout: 30
- MemorySize: 128
- AutoPublishAlias: !Ref Stage
\ No newline at end of file
+AWSTemplateFormatVersion: '2010-09-09'
+Transform: AWS::Serverless-2016-10-31
+
+Parameters:
+ Stage1:
+ Description: Environment stage (deployment phase)
+ Type: String
+ AllowedValues:
+ - beta
+ - prod
+ Stage2:
+ Description: Environment stage (deployment phase)
+ Type: String
+ AllowedValues:
+ - beta
+ - prod
+
+Resources:
+ SkillFunction:
+ Type: AWS::Serverless::Function
+ Properties:
+ CodeUri: '.'
+ Handler: main.handler
+ Runtime: python3.7
+ Timeout: 30
+ MemorySize: 128
+ AutoPublishAlias: !Ref Stage1
+ SkillFunction2:
+ Type: AWS::Serverless::Function
+ Properties:
+ CodeUri: '.'
+ Handler: main.handler
+ Runtime: python3.7
+ Timeout: 30
+ MemorySize: 128
+ FunctionName: !Sub "Stage-${Stage2}-${AWS::Region}"
+ AutoPublishAlias: !Ref Stage2
diff --git a/test/module/transform/test_transform.py b/test/module/transform/test_transform.py
--- a/test/module/transform/test_transform.py
+++ b/test/module/transform/test_transform.py
@@ -29,7 +29,7 @@ def test_parameter_for_autopublish_version(self):
template = cfn_yaml.load(filename)
transformed_template = Transform(filename, template, region)
transformed_template.transform_template()
- self.assertDictEqual(transformed_template._parameters, {'Stage': 'Alias'})
+ self.assertDictEqual(transformed_template._parameters, {'Stage1': 'Alias', 'Stage2': 'Alias'})
self.assertDictEqual(
transformed_template._template.get('Resources').get('SkillFunctionAliasAlias').get('Properties'),
{
|
Setting `AutoPublishAlias` value to a Ref reports E1019 violation on a different Property
*cfn-lint version: `0.21.4`
Setting `AutoPublishAlias` value to a Ref, causes `E1019` to be reported on a
different property that also uses that Ref as a part of Sub. This appears to be new to `0.21.4`
as it is not present on `0.21.3`; perhaps related to #582 and result of
d57c041181f761f98fe2e86fff4f709dd037db15 ?
Failing Example on `0.21.4` (note that `FunctionName` property is reported):
```sh
$ cat template.yaml
AWSTemplateFormatVersion: 2010-09-09
Transform: AWS::Serverless-2016-10-31
Parameters:
EnvironmentName:
Description: Environment where the function resides.
Type: String
Default: dev
Resources:
Function:
Type: AWS::Serverless::Function
Properties:
FunctionName: !Sub func-${EnvironmentName}-${AWS::Region}
AutoPublishAlias: !Ref EnvironmentName
Handler: lambda_function.handler
Runtime: python3.6
CodeUri:
Bucket: foo
Key: func.zip
$ docker run -it \
-v $(pwd):/var/tmp/ \
python:3.7.1-alpine3.8 \
/bin/sh \
-c "pip install -q 'cfn-lint==0.21.4' && cfn-lint -v && cfn-lint -t /var/tmp/template.yaml"
You are using pip version 18.1, however version 19.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
cfn-lint 0.21.4
E1019 Parameter EnvironmentName for Fn::Sub not found at Resources/Function/Properties/FunctionName/Fn::Sub
/var/tmp/template.yaml:11:3
$
```
No issue if a string value for `AutoPublishAlias` is used instead of a Ref:
```sh
$ cat template-string-alias.yaml
AWSTemplateFormatVersion: 2010-09-09
Transform: AWS::Serverless-2016-10-31
Parameters:
EnvironmentName:
Description: Environment where the function resides.
Type: String
Default: dev
Resources:
Function:
Type: AWS::Serverless::Function
Properties:
FunctionName: !Sub func-${EnvironmentName}-${AWS::Region}
AutoPublishAlias: myalias
Handler: lambda_function.handler
Runtime: python3.6
CodeUri:
Bucket: foo
Key: func.zip
$ docker run -it \
-v $(pwd):/var/tmp/ \
python:3.7.1-alpine3.8 \
/bin/sh \
-c "pip install -q 'cfn-lint==0.21.4' && cfn-lint -v && cfn-lint -t /var/tmp/template-string-alias.yaml"
You are using pip version 18.1, however version 19.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
cfn-lint 0.21.4
$
```
Using a Ref for `AutoPublishAlias` does not report the error on `0.21.3`. Our
use does include a default value for the Parameter which may be relevant to not
seeing the issue described in #582.
```sh
$ cat template.yaml
AWSTemplateFormatVersion: 2010-09-09
Transform: AWS::Serverless-2016-10-31
Parameters:
EnvironmentName:
Description: Environment where the function resides.
Type: String
Default: dev
Resources:
Function:
Type: AWS::Serverless::Function
Properties:
FunctionName: !Sub func-${EnvironmentName}-${AWS::Region}
AutoPublishAlias: !Ref EnvironmentName
Handler: lambda_function.handler
Runtime: python3.6
CodeUri:
Bucket: foo
Key: func.zip
$ docker run -it \
-v $(pwd):/var/tmp/ \
python:3.7.1-alpine3.8 \
/bin/sh \
-c "pip install -q 'cfn-lint==0.21.3' && cfn-lint -v && cfn-lint -t /var/tmp/template.yaml"
You are using pip version 18.1, however version 19.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
cfn-lint 0.21.3
$
```
|
I'm seeing the same issue. Setting the `AutoPublishAlias` with a `!Ref` throws an `E1019` for every usage of `!Sub` that uses the referenced parameter.
An `E1012` is also being thrown on the serverless function itself.
Seems to happen regardless of whether or not the referenced parameter has a default value set.
Yea, sorry about that. I should have a fix in early next week with a release to get this fixed for you.
|
2019-06-08T02:23:25Z
|
[] |
[] |
aws-cloudformation/cfn-lint
| 949 |
aws-cloudformation__cfn-lint-949
|
[
"948"
] |
9669bd6d0b66547d2a625a626aea9c33bd36ec2a
|
diff --git a/src/cfnlint/rules/resources/iam/Policy.py b/src/cfnlint/rules/resources/iam/Policy.py
--- a/src/cfnlint/rules/resources/iam/Policy.py
+++ b/src/cfnlint/rules/resources/iam/Policy.py
@@ -140,11 +140,12 @@ def _check_policy_statement(self, branch, statement, is_identity_policy, resourc
matches.append(
RuleMatch(branch[:], message))
else:
- effect = statement.get('Effect')
- if effect not in ['Allow', 'Deny']:
- message = 'IAM Policy Effect should be Allow or Deny'
- matches.append(
- RuleMatch(branch[:] + ['Effect'], message))
+ for effect, effect_path in statement.get_safe('Effect'):
+ if isinstance(effect, six.string_types):
+ if effect not in ['Allow', 'Deny']:
+ message = 'IAM Policy Effect should be Allow or Deny'
+ matches.append(
+ RuleMatch(branch[:] + effect_path, message))
if 'Action' not in statement and 'NotAction' not in statement:
message = 'IAM Policy statement missing Action or NotAction'
matches.append(
|
diff --git a/test/fixtures/templates/good/resources/iam/resource_policy.yaml b/test/fixtures/templates/good/resources/iam/resource_policy.yaml
--- a/test/fixtures/templates/good/resources/iam/resource_policy.yaml
+++ b/test/fixtures/templates/good/resources/iam/resource_policy.yaml
@@ -3,6 +3,10 @@ AWSTemplateFormatVersion: "2010-09-09"
Parameters:
myExampleBucket:
Type: String
+ BucketEffect:
+ Type: String
+Conditions:
+ IsUsEast1: !Equals ['us-east-1', !Ref 'AWS::Region']
Resources:
WebsiteBucketPolicy:
Type: AWS::S3::BucketPolicy
@@ -46,15 +50,26 @@ Resources:
-
Action:
- "s3:GetObject"
- Effect: "Allow"
- Resource:
- Fn::Join:
- - ""
- -
- - "arn:aws:s3:::"
- -
- Ref: "myExampleBucket"
- - "/*"
+ Effect: !If [ IsUsEast1, 'Allow', 'Deny' ]
+ Resource: !Sub "arn:aws:s3:::${myExampleBucket}/*"
+ Principal: "*"
+ Condition:
+ StringLike:
+ aws:Referer:
+ - "http://www.example.com/*"
+ - "http://example.com/*"
+ SampleBucketPolicy2:
+ Type: AWS::S3::BucketPolicy
+ Properties:
+ Bucket:
+ Ref: "myExampleBucket"
+ PolicyDocument:
+ Statement:
+ -
+ Action:
+ - "s3:GetObject"
+ Effect: !Ref BucketEffect
+ Resource: !Sub "arn:aws:s3:::${myExampleBucket}/*"
Principal: "*"
Condition:
StringLike:
|
E2057 False positive for IAM policy Effect conditionals
*cfn-lint version: (`cfn-lint --version`)*
cfn-lint 0.21.4
*Description of issue.*
cfn-lint reports "E2507 IAM Policy Effect should be Allow or Deny" when an IAM policy statement contains an intrinsic statement, even if that intrinsic returns Allow or Deny eg:
`Effect: !If [ IsUsEast1, 'Allow', 'Deny' ]`
I would guess this probably affects all IAM policy statements and intrinsics, I have observed it for the following policy types:
- AWS::S3::BucketPolicy
- AWS::IAM::ManagedPolicy
- AWS::IAM::User policies
And the following intrinsics
- !If
- !Sub
- !Ref
A simple reproduce example termplate is attached: [E2507-false-positive.yml.txt](https://github.com/aws-cloudformation/cfn-python-lint/files/3269255/E2507-false-positive.yml.txt)
|
2019-06-09T13:57:50Z
|
[] |
[] |
|
aws-cloudformation/cfn-lint
| 954 |
aws-cloudformation__cfn-lint-954
|
[
"952"
] |
83d137d688616c5a729b4cfbce3cc7b3442fdda3
|
diff --git a/src/cfnlint/rules/conditions/Exists.py b/src/cfnlint/rules/conditions/Exists.py
--- a/src/cfnlint/rules/conditions/Exists.py
+++ b/src/cfnlint/rules/conditions/Exists.py
@@ -46,9 +46,10 @@ def match(self, cfn):
# Get resource's Conditions
for resource_name, resource_values in cfn.get_resources().items():
- if 'Condition' in resource_values:
+ condition = resource_values.get('Condition')
+ if isinstance(condition, six.string_types): # make sure its a string
path = ['Resources', resource_name, 'Condition']
- ref_conditions[resource_values['Condition']] = path
+ ref_conditions[condition] = path
# Get conditions used by another condition
condtrees = cfn.search_deep_keys('Condition')
diff --git a/src/cfnlint/rules/resources/Configuration.py b/src/cfnlint/rules/resources/Configuration.py
--- a/src/cfnlint/rules/resources/Configuration.py
+++ b/src/cfnlint/rules/resources/Configuration.py
@@ -14,6 +14,7 @@
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
"""
+import six
from cfnlint import CloudFormationLintRule
from cfnlint import RuleMatch
import cfnlint.helpers
@@ -82,6 +83,15 @@ def match(self, cfn):
['Resources', resource_name, property_key],
message.format(property_key, resource_name)))
+ # validate condition is a string
+ condition = resource_values.get('Condition', '')
+ if not isinstance(condition, six.string_types):
+ message = 'Condition for resource {0} should be a string'
+ matches.append(RuleMatch(
+ ['Resources', resource_name, 'Condition'],
+ message.format(resource_name)
+ ))
+
resource_type = resource_values.get('Type', '')
if not resource_type:
message = 'Type not defined for resource {0}'
|
diff --git a/test/fixtures/templates/bad/resources/configuration.yaml b/test/fixtures/templates/bad/resources/configuration.yaml
new file mode 100644
--- /dev/null
+++ b/test/fixtures/templates/bad/resources/configuration.yaml
@@ -0,0 +1,16 @@
+---
+AWSTemplateFormatVersion: "2010-09-09"
+Conditions:
+ isUsEast1: !Equals [!Ref 'AWS::Region', 'us-east-1']
+Resources:
+ AWSIAMRole1:
+ Type: AWS::IAM::Role
+ Condition:
+ - isUsEast1
+ Properties:
+ AssumeRolePolicyDocument: {}
+ AWSIAMRole2:
+ Type: AWS::IAM::Role
+ Condition: False
+ Properties:
+ AssumeRolePolicyDocument: {}
diff --git a/test/rules/conditions/test_exists.py b/test/rules/conditions/test_exists.py
--- a/test/rules/conditions/test_exists.py
+++ b/test/rules/conditions/test_exists.py
@@ -35,4 +35,4 @@ def test_file_positive(self):
def test_file_negative(self):
"""Test failure"""
- self.helper_file_negative('test/fixtures/templates/bad/conditions.yaml', 3)
+ self.helper_file_negative('test/fixtures/templates/bad/conditions.yaml', 2)
diff --git a/test/rules/resources/test_configurations.py b/test/rules/resources/test_configurations.py
--- a/test/rules/resources/test_configurations.py
+++ b/test/rules/resources/test_configurations.py
@@ -32,3 +32,4 @@ def test_file_positive(self):
def test_file_negative(self):
"""Test failure"""
self.helper_file_negative('test/fixtures/templates/bad/generic.yaml', 2)
+ self.helper_file_negative('test/fixtures/templates/bad/resources/configuration.yaml', 2)
|
Condition: <list> on Resource triggers "Unknown exception while processing rule"
*cfn-lint version: (`cfn-lint --version`)*
cfn-lint 0.21.4
*Description of issue.*
A resource with a Condition property defined as a list triggers:
```
E0002 Unknown exception while processing rule E8002: unhashable type: 'list_node'
/tmp/cfn-lint-condition-list-error.yaml:1:1
```
I believe that the use of lists / multiple values for a Condition property of a Resource is probably not legal (although I was unable to find clear confirmation of that in the documentation during a quick scan), but it should probably trigger a lint error rather than an exception.
It would also be helpful, if possible, to include the template line-number where the exception was triggered, rather than line:char 1:1 to make tracking the cause of such problems easier.
I have also seen the same exception, but for rule W1001, I though it was the same cause, but my reproduce test didn't re-trigger the W1001 case.
*Reproduce example*
```
AWSTemplateFormatVersion: 2010-09-09
Description: "cfn-lint condition list error"
Conditions:
Cond1: !Equals [ !Ref 'AWS::Region', 'us-east-1' ]
Cond2: !Equals [ !Ref 'AWS::Region', 'eu-west-1' ]
Resources:
EIP1:
Type: AWS::EC2::EIP
Condition:
- Cond1
- Cond2
Properties:
Domain: 'vpc'
EIP2:
Type: AWS::EC2::EIP
Condition: Cond1
Properties:
Domain: 'vpc'
EIP3:
Type: AWS::EC2::EIP
Condition: Cond2
Properties:
Domain: 'vpc'
```
|
2019-06-11T14:44:54Z
|
[] |
[] |
|
aws-cloudformation/cfn-lint
| 962 |
aws-cloudformation__cfn-lint-962
|
[
"960"
] |
dda8215545ef536c6df48db8c6e01d2aa3feb5e0
|
diff --git a/src/cfnlint/rules/parameters/SecurityGroup.py b/src/cfnlint/rules/parameters/SecurityGroup.py
deleted file mode 100644
--- a/src/cfnlint/rules/parameters/SecurityGroup.py
+++ /dev/null
@@ -1,136 +0,0 @@
-"""
- Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
-
- Permission is hereby granted, free of charge, to any person obtaining a copy of this
- software and associated documentation files (the "Software"), to deal in the Software
- without restriction, including without limitation the rights to use, copy, modify,
- merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
- permit persons to whom the Software is furnished to do so.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
- INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
- PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
- HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-"""
-from cfnlint import CloudFormationLintRule
-from cfnlint import RuleMatch
-
-
-class SecurityGroup(CloudFormationLintRule):
-
- """Check if EC2 Security Group Ingress Properties"""
- id = 'W2507'
- shortdesc = 'Security Group Parameters are of correct type AWS::EC2::SecurityGroup::Id'
- description = 'Check if a parameter is being used in a resource for Security ' \
- 'Group. If it is make sure it is of type AWS::EC2::SecurityGroup::Id'
- source_url = 'https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/best-practices.html#parmtypes'
- tags = ['parameters', 'securitygroup']
-
- def __init__(self):
- """Init"""
- super(SecurityGroup, self).__init__()
- resource_type_specs = [
- 'AWS::ElasticLoadBalancingV2::LoadBalancer',
- 'AWS::AutoScaling::LaunchConfiguration',
- 'AWS::ElasticLoadBalancingV2::LoadBalancer',
- 'AWS::EC2::Instance',
- 'AWS::ElastiCache::ReplicationGroup',
- 'AWS::DAX::Cluster',
- 'AWS::ElastiCache::ReplicationGroup',
- 'AWS::Glue::DevEndpoint',
- 'AWS::EC2::SecurityGroupIngress',
- ]
- property_type_specs = [
- 'AWS::EC2::LaunchTemplate.LaunchTemplateData',
- 'AWS::Elasticsearch::Domain.VPCOptions',
- 'AWS::Lambda::Function.VpcConfig',
- 'AWS::Batch::ComputeEnvironment.ComputeResources',
- 'AWS::CodeBuild::Project.VpcConfig',
- 'AWS::EC2::SecurityGroup.Ingress',
- ]
-
- for resource_type_spec in resource_type_specs:
- self.resource_property_types.append(resource_type_spec)
- for property_type_spec in property_type_specs:
- self.resource_sub_property_types.append(property_type_spec)
-
- # pylint: disable=W0613
- def check_sgid_ref(self, value, path, parameters, resources):
- """Check ref for VPC"""
- matches = []
- if 'SourceSecurityGroupId' in path:
- allowed_types = [
- 'AWS::SSM::Parameter::Value<AWS::EC2::SecurityGroup::Id>',
- 'AWS::EC2::SecurityGroup::Id'
- ]
- elif isinstance(path[-2], int):
- allowed_types = [
- 'AWS::SSM::Parameter::Value<AWS::EC2::SecurityGroup::Id>',
- 'AWS::EC2::SecurityGroup::Id'
- ]
- else:
- allowed_types = [
- 'AWS::SSM::Parameter::Value<List<AWS::EC2::SecurityGroup::Id>>',
- 'List<AWS::EC2::SecurityGroup::Id>'
- ]
-
- if value in parameters:
- parameter_properties = parameters.get(value)
- parameter_type = parameter_properties.get('Type')
- if parameter_type not in allowed_types:
- path_error = ['Parameters', value, 'Type']
- message = 'Security Group Id Parameter should be of type [{0}] for {1}'
- matches.append(
- RuleMatch(
- path_error,
- message.format(
- ', '.join(map(str, allowed_types)),
- '/'.join(map(str, path_error)))))
-
- return matches
-
- def check(self, properties, resource_type, path, cfn):
- """Check itself"""
- matches = []
-
- matches.extend(
- cfn.check_value(
- properties, 'SecurityGroupIds', path,
- check_value=None, check_ref=self.check_sgid_ref,
- check_find_in_map=None, check_split=None, check_join=None
- )
- )
- matches.extend(
- cfn.check_value(
- properties, 'SecurityGroups', path,
- check_value=None, check_ref=self.check_sgid_ref,
- check_find_in_map=None, check_split=None, check_join=None
- )
- )
- matches.extend(
- cfn.check_value(
- properties, 'SourceSecurityGroupId', path,
- check_value=None, check_ref=self.check_sgid_ref,
- check_find_in_map=None, check_split=None, check_join=None
- )
- )
-
- return matches
-
- def match_resource_sub_properties(self, properties, property_type, path, cfn):
- """Match for sub properties"""
- matches = []
-
- matches.extend(self.check(properties, property_type, path, cfn))
-
- return matches
-
- def match_resource_properties(self, properties, resource_type, path, cfn):
- """Check CloudFormation Properties"""
- matches = []
-
- matches.extend(self.check(properties, resource_type, path, cfn))
-
- return matches
diff --git a/src/cfnlint/rules/resources/ectwo/SecurityGroupIngress.py b/src/cfnlint/rules/resources/ectwo/SecurityGroupIngress.py
--- a/src/cfnlint/rules/resources/ectwo/SecurityGroupIngress.py
+++ b/src/cfnlint/rules/resources/ectwo/SecurityGroupIngress.py
@@ -28,64 +28,7 @@ class SecurityGroupIngress(CloudFormationLintRule):
source_url = 'https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-ingress.html'
tags = ['resources', 'securitygroup']
- def check_sgid_value(self, value, path):
- """Check VPC Values"""
- matches = []
- if not value.startswith('sg-'):
- message = 'Security Group Id must have a valid Identifier {0}'
- matches.append(
- RuleMatch(path, message.format('/'.join(map(str, path)))))
- return matches
-
- def check_sgid_ref(self, value, path, parameters, resources):
- """Check ref for VPC"""
- matches = []
-
- allowed_types = [
- 'AWS::SSM::Parameter::Value<AWS::EC2::SecurityGroup::Id>',
- 'AWS::EC2::SecurityGroup::Id',
- 'String'
- ]
- if value in parameters:
- parameter_properties = parameters.get(value)
- parameter_type = parameter_properties.get('Type')
- if parameter_type not in allowed_types:
- path_error = ['Parameters', value, 'Type']
- message = 'Security Group Id Parameter should be of type [{0}] for {1}'
- matches.append(
- RuleMatch(
- path_error,
- message.format(
- ', '.join(map(str, allowed_types)),
- '/'.join(map(str, path_error)))))
- if value in resources:
- resource = resources.get(value, {})
- resource_type = resource.get('Type', '')
- if resource_type != 'AWS::EC2::SecurityGroup':
- message = 'Security Group Id resources should be of type AWS::EC2::SecurityGroup for {0}'
- matches.append(
- RuleMatch(path, message.format('/'.join(map(str, path)))))
- else:
- resource_properties = resource.get('Properties', {})
- vpc_property = resource_properties.get('VpcId', None)
- if not vpc_property:
- message = 'Security Group Id should reference a VPC based AWS::EC2::SecurityGroup for {0}'
- matches.append(
- RuleMatch(path, message.format('/'.join(map(str, path)))))
-
- return matches
-
- # pylint: disable=W0613
- def check_sgid_fail(self, value, path, **kwargs):
- """Automatic failure for certain functions"""
-
- matches = []
- message = 'Use Ref, FindInMap, or string values for {0}'
- matches.append(
- RuleMatch(path, message.format('/'.join(map(str, path)))))
- return matches
-
- def check_ingress_rule(self, vpc_id, properties, path, cfn):
+ def check_ingress_rule(self, vpc_id, properties, path):
"""Check ingress rule"""
matches = []
@@ -99,16 +42,6 @@ def check_ingress_rule(self, vpc_id, properties, path, cfn):
matches.append(
RuleMatch(path_error, message.format('/'.join(map(str, path_error)))))
- matches.extend(
- cfn.check_value(
- obj=properties, key='SourceSecurityGroupId',
- path=path[:],
- check_value=self.check_sgid_value, check_ref=self.check_sgid_ref,
- check_find_in_map=None, check_split=self.check_sgid_fail,
- check_join=self.check_sgid_fail
- )
- )
-
else:
if properties.get('SourceSecurityGroupId', None):
@@ -141,8 +74,7 @@ def match(self, cfn):
self.check_ingress_rule(
vpc_id=vpc_id,
properties=ingress_rule,
- path=path,
- cfn=cfn
+ path=path
)
)
@@ -163,8 +95,7 @@ def match(self, cfn):
self.check_ingress_rule(
vpc_id=vpc_id,
properties=properties,
- path=path,
- cfn=cfn
+ path=path
)
)
return matches
|
diff --git a/test/rules/parameters/test_security_group.py b/test/rules/parameters/test_security_group.py
deleted file mode 100644
--- a/test/rules/parameters/test_security_group.py
+++ /dev/null
@@ -1,34 +0,0 @@
-"""
- Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
-
- Permission is hereby granted, free of charge, to any person obtaining a copy of this
- software and associated documentation files (the "Software"), to deal in the Software
- without restriction, including without limitation the rights to use, copy, modify,
- merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
- permit persons to whom the Software is furnished to do so.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
- INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
- PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
- HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-"""
-from cfnlint.rules.parameters.SecurityGroup import SecurityGroup # pylint: disable=E0401
-from .. import BaseRuleTestCase
-
-
-class TestParameterSecurityGroup(BaseRuleTestCase):
- """Test template parameter configurations"""
- def setUp(self):
- """Setup"""
- super(TestParameterSecurityGroup, self).setUp()
- self.collection.register(SecurityGroup())
-
- def atest_file_positive(self):
- """Test Positive"""
- self.helper_file_positive()
-
- def test_file_negative(self):
- """Test failure"""
- self.helper_file_negative('test/fixtures/templates/bad/properties_sg_ingress.yaml', 4)
diff --git a/test/rules/resources/ec2/test_sg_ingress.py b/test/rules/resources/ec2/test_sg_ingress.py
--- a/test/rules/resources/ec2/test_sg_ingress.py
+++ b/test/rules/resources/ec2/test_sg_ingress.py
@@ -34,4 +34,4 @@ def test_file_positive(self):
def test_file_negative(self):
"""Test failure"""
- self.helper_file_negative('test/fixtures/templates/bad/properties_sg_ingress.yaml', 5)
+ self.helper_file_negative('test/fixtures/templates/bad/properties_sg_ingress.yaml', 2)
|
W2507 "Security Group Id Parameter should of type" invalid for cross-account references
*cfn-lint version: (`cfn-lint --version`)*
cfn-lint 0.21.4
*Description of issue.*
The warning W2507 "Security Group Id Parameter should be of type [AWS::SSM::Parameter::Value<AWS::EC2::SecurityGroup::Id>, AWS::EC2::SecurityGroup::Id]" is appearing against my template, where I use parameters to take the IDs of Security Groups in other accounts.
These cross-account SG ID references work perfectly well in the SourceSecurityGroupId property of SecurityGroupIngress, when paired with a SourceSecurityGroupOwnerId.
The suggestion from the cfn-lint warning is to use the special parameter type for SG IDs, but this won't work as it will validate the input against the list of security groups in the *same* account. Cross-account references will be rejected as invalid, even though they are completely valid when used in the actual resource properties.
I'm not sure what the proper solution is here, but in the worst case maybe we just have to concede the reality that "String" is a possible valid data type for security group IDs.
|
So this was an early rule. I'm proposing we remove this rule, make it more lenient (accepting strings) with the spec patching definitions we have.
The other part of this rule is it was written before we had `Info` level errors and I don't think we would have written this as a `Warning`. Giving more credibility to just removing it.
|
2019-06-13T19:13:22Z
|
[] |
[] |
aws-cloudformation/cfn-lint
| 963 |
aws-cloudformation__cfn-lint-963
|
[
"955"
] |
4c8a9c7a849833bd52a32006aa0adb5acc62c9d6
|
diff --git a/src/cfnlint/rules/parameters/AllowedValue.py b/src/cfnlint/rules/parameters/AllowedValue.py
--- a/src/cfnlint/rules/parameters/AllowedValue.py
+++ b/src/cfnlint/rules/parameters/AllowedValue.py
@@ -36,10 +36,14 @@ def initialize(self, cfn):
for property_type_spec in RESOURCE_SPECS.get(cfn.regions[0]).get('PropertyTypes'):
self.resource_sub_property_types.append(property_type_spec)
- def check_value_ref(self, value, **kwargs):
+ def check_value_ref(self, value, path, **kwargs):
"""Check Ref"""
matches = []
+ if 'Fn::If' in path:
+ self.logger.debug('Not able to guarentee that the default value hasn\'t been conditioned out')
+ return matches
+
allowed_value_specs = kwargs.get('value_specs', {}).get('AllowedValues', {})
cfn = kwargs.get('cfn')
|
diff --git a/test/fixtures/templates/good/resources/properties/allowed_values.yaml b/test/fixtures/templates/good/resources/properties/allowed_values.yaml
--- a/test/fixtures/templates/good/resources/properties/allowed_values.yaml
+++ b/test/fixtures/templates/good/resources/properties/allowed_values.yaml
@@ -31,12 +31,25 @@ Parameters:
Default: 1
Description: The retention length of the logs.
Type: Number
+ Retention:
+ Type: Number
+ Description: Retention in days for the log group (-1 for no retention)
+ Default: -1
+Conditions:
+ IsRetention:
+ !Not [!Equals [!Ref 'Retention', '-1']]
Resources:
LogGroup:
Type: "AWS::Logs::LogGroup"
Properties:
RetentionInDays: !Ref LogsRetentionLength
LogGroupName: '/name'
+ LogGroupWithCondition:
+ Type: AWS::Logs::LogGroup
+ Properties:
+ LogGroupName: 'some-log-group'
+ # Don't error when Retention is used inside a condition
+ RetentionInDays: !If [IsRetention, !Ref Retention, !Ref 'AWS::NoValue']
AmazonMQBroker:
Type: "AWS::AmazonMQ::Broker"
Properties:
|
W2030 Default value required on conditionally included property
*cfn-lint version: 0.21.3*
CloudFormation provides the AWS::NoValue pseudo-parameter, which allows for a property to be included based on a given Condition. However, cfn-lint will still validate the potential value provided for the property, even if it will not actually be used in the deployment.
Example template:
```yaml
Parameters:
Retention:
Type: Number
Description: Retention in days for the log group (-1 for no retention)
Default: -1
Conditions:
IsRetention:
!Not [!Equals [!Ref 'Retention', '-1']]
Resources:
LogGroup:
Type: AWS::Logs::LogGroup
Properties:
LogGroupName: 'some-log-group'
RetentionInDays: !If [IsRetention, !Ref Retention, !Ref 'AWS::NoValue']
```
This template allows the user to specify the retention on a log group, or use the number -1 if they wish to have unlimited retention. This is achieved via a Condition as well as an If block that conditionally includes the property.
This leads to the following linter output:
```
cfn-lint --template template.yaml
W2030 You must specify a valid Default value for Retention (-1).
Valid values are ['1', '3', '5', '7', '14', '30', '60', '90', '120', '150', '180', '365', '400', '545', '731', '1827', '3653']
cloudformation/template.yaml:5:5
```
This can of course be avoided by disabling this specific check in the template Metadata block. Unfortunately it cannot be disabled in the resource Metadata, as the validation error happens on the Parameter:
```yaml
Metadata:
cfn-lint:
config:
ignore_checks:
- W2030
```
This might be a difficult situation to account for, since it would require the Condition to be evaluated to determine whether the property itself should even be checked.
|
2019-06-14T02:04:51Z
|
[] |
[] |
|
aws-cloudformation/cfn-lint
| 976 |
aws-cloudformation__cfn-lint-976
|
[
"906"
] |
f32929e7bd43aad7c36f62e7abf2f984a72fe450
|
diff --git a/src/cfnlint/rules/resources/route53/RecordSet.py b/src/cfnlint/rules/resources/route53/RecordSet.py
--- a/src/cfnlint/rules/resources/route53/RecordSet.py
+++ b/src/cfnlint/rules/resources/route53/RecordSet.py
@@ -28,7 +28,8 @@ class RecordSet(CloudFormationLintRule):
source_url = 'https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/ResourceRecordTypes.html'
tags = ['resources', 'route53', 'record_set']
- REGEX_DOMAINNAME = re.compile(r'^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9])(.)$')
+ # Regex generated from https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DomainNameFormat.html
+ REGEX_DOMAINNAME = re.compile(r'^[a-zA-Z0-9\!\"\#\$\%\&\'\(\)\*\+\,-\/\:\;\<\=\>\?\@\[\\\]\^\_\`\{\|\}\~\.]+$')
REGEX_TXT = re.compile(r'^("[^"]{1,255}" *)*"[^"]{1,255}"$')
REGEX_CNAME_VALIDATIONS = re.compile(r'^.*\.acm-validations\.aws\.?$')
|
diff --git a/test/fixtures/templates/bad/route53.yaml b/test/fixtures/templates/bad/route53.yaml
--- a/test/fixtures/templates/bad/route53.yaml
+++ b/test/fixtures/templates/bad/route53.yaml
@@ -97,26 +97,6 @@ Resources:
ResourceRecords:
- "127.0.0.1"
- "10 my domain"
- MyNSRecordSet:
- Type: "AWS::Route53::RecordSet"
- Properties:
- Comment: "A valid NS Record"
- HostedZoneId: !Ref "MyHostedZone"
- Name: "www.example.com"
- Type: "NS"
- TTL: "300"
- ResourceRecords:
- - "127.0.0.1"
- MyPTRRecordSet:
- Type: "AWS::Route53::RecordSet"
- Properties:
- Comment: "A valid NS Record"
- HostedZoneId: !Ref "MyHostedZone"
- Name: "www.example.com"
- Type: "PTR"
- TTL: "300"
- ResourceRecords:
- - "127.0.0.1"
MyRecordSetGroup:
Type: "AWS::Route53::RecordSetGroup"
Properties:
@@ -170,16 +150,6 @@ Resources:
ResourceRecords:
- "mx1.example.com"
- "65536 mx2.example.com"
- MySecondRecordSetGroup:
- Type: "AWS::Route53::RecordSetGroup"
- Properties:
- HostedZoneId: !Ref "MyHostedZone"
- RecordSets:
- - Name: "z.example.com"
- Type: "TXT"
- TTL: "300"
- ResourceRecords:
- - "\"henk\""
PoorlyConfiguredRoute53:
Type: "AWS::Route53::RecordSetGroup"
Properties:
diff --git a/test/fixtures/templates/good/route53.yaml b/test/fixtures/templates/good/route53.yaml
--- a/test/fixtures/templates/good/route53.yaml
+++ b/test/fixtures/templates/good/route53.yaml
@@ -81,6 +81,16 @@ Resources:
TTL: "300"
ResourceRecords:
- "hostname.example.com"
+ MyCNAMERecordSpecialCharactersSet:
+ Type: "AWS::Route53::RecordSet"
+ Properties:
+ Comment: "A valid CNAME Record"
+ HostedZoneId: !Ref "MyHostedZone"
+ Name: "*test.&.example.com-"
+ Type: "CNAME"
+ TTL: "300"
+ ResourceRecords:
+ - "hostname.example.com"
MyCNAME2RecordSet:
Type: "AWS::Route53::RecordSet"
Properties:
diff --git a/test/rules/resources/route53/test_recordsets.py b/test/rules/resources/route53/test_recordsets.py
--- a/test/rules/resources/route53/test_recordsets.py
+++ b/test/rules/resources/route53/test_recordsets.py
@@ -34,4 +34,4 @@ def test_file_positive(self):
def test_file_negative(self):
"""Test failure"""
- self.helper_file_negative('test/fixtures/templates/bad/route53.yaml', 32)
+ self.helper_file_negative('test/fixtures/templates/bad/route53.yaml', 30)
|
Not recognizing '*' in a domain name in Route53 record set.
cfn-lint version: 0.20.2 (latest version at time of writing)
Description of issue:
Is not recognizing valid Route53 use of * in a recordset. The record set deploys and works correctly. Sample code seen below.
```
Resources:
startest30prdnuskinioRoute53pubRecordSet:
Type: AWS::Route53::RecordSetGroup
Properties:
Comment: '*.test30 prod'
HostedZoneId: !Ref PrdNuskinIoPublicZone
RecordSets:
- Name: '*.test30.prd.nuskin.io.'
SetIdentifier: 'usw2'
ResourceRecords:
- '*.test30.prd.usw2.nuskin.io.' <------ gives "does not contain a valid domain name" error
TTL: '300'
Type: CNAME
Weight: 100
```
|
I'll take a look. The check in cname (regex) is pretty basic already, but I will check. Maybe a stupid question, but that is a valid cname? ;)
Just tried to (manually) add a recordset with that value, but even the Console says it is incorrect:

Can you check if the example you've given is valid?
@nsecws I’m going to close this for now. We can reopen it if needed.
Sorry for the long response time. It seems to have removed the '*' when I pasted the script. The record should read *.30.isi.usw2.nuskin.io. which is a valid record. I've fixed the formatting in the original post.

|
2019-06-24T13:26:12Z
|
[] |
[] |
aws-cloudformation/cfn-lint
| 1,038 |
aws-cloudformation__cfn-lint-1038
|
[
"1031"
] |
c8cffebcd9ec6e13da0e48baed697e4de16f7721
|
diff --git a/src/cfnlint/rules/resources/properties/Properties.py b/src/cfnlint/rules/resources/properties/Properties.py
--- a/src/cfnlint/rules/resources/properties/Properties.py
+++ b/src/cfnlint/rules/resources/properties/Properties.py
@@ -239,6 +239,8 @@ def propertycheck(self, text, proptype, parenttype, resourcename, path, root):
proppath + cond_value['Path'], root))
elif text.is_function_returning_object():
self.logger.debug('Ran into function "%s". Skipping remaining checks', prop)
+ elif len(text) == 1 and prop in 'Ref' and text.get(prop) == 'AWS::NoValue':
+ pass
elif not supports_additional_properties:
message = 'Invalid Property %s' % ('/'.join(map(str, proppath)))
matches.append(RuleMatch(proppath, message))
|
diff --git a/test/fixtures/templates/bad/generic.yaml b/test/fixtures/templates/bad/generic.yaml
--- a/test/fixtures/templates/bad/generic.yaml
+++ b/test/fixtures/templates/bad/generic.yaml
@@ -200,6 +200,15 @@ Resources:
GroupDescription: test
SecurityGroupIngress:
- Fn::FindInMap: [ runtime, !Ref 'AWS::Region', production ]
+ PermitAllInbound:
+ Type: AWS::EC2::NetworkAclEntry
+ Properties:
+ CidrBlock: 10.0.0.0/16
+ Icmp: !Ref AWS::NoValue
+ NetworkAclId: '1'
+ RuleNumber: 1
+ Protocol: 1
+ RuleAction: allow
Outputs:
myOutput:
Value: !GetAtt ElasticLoadBalancer.CanonicalHostedZoneName
|
NoValue support in NaclEntry/icmp
*cfn-lint version: 0.22.3*
*Description of issue.*
Similar to https://github.com/aws-cloudformation/cfn-python-lint/issues/1019
In case of:
```
"PermitAllInbound": {
"Type": "AWS::EC2::NetworkAclEntry",
"Properties": {
...
"Icmp": {
"Ref": "AWS::NoValue"
},
```
I get result:
```
E3002 Invalid Property Resources/PermitAllInbound/Properties/Icmp/Ref
```
Icmp property is not required, so this should be accepted.
|
2019-07-18T23:58:47Z
|
[] |
[] |
|
aws-cloudformation/cfn-lint
| 1,039 |
aws-cloudformation__cfn-lint-1039
|
[
"1019"
] |
15ae25cf763561323bc3ff432e75cf6f0854fc10
|
diff --git a/src/cfnlint/rules/resources/ectwo/Ebs.py b/src/cfnlint/rules/resources/ectwo/Ebs.py
--- a/src/cfnlint/rules/resources/ectwo/Ebs.py
+++ b/src/cfnlint/rules/resources/ectwo/Ebs.py
@@ -64,16 +64,17 @@ def match(self, cfn):
results.extend(cfn.get_resource_properties(['AWS::AutoScaling::LaunchConfiguration', 'BlockDeviceMappings']))
for result in results:
path = result['Path']
- for index, properties in enumerate(result['Value']):
- virtual_name = properties.get('VirtualName')
- ebs = properties.get('Ebs')
- if virtual_name:
- # switch to regex
- if not re.match(r'^ephemeral[0-9]$', virtual_name):
- pathmessage = path[:] + [index, 'VirtualName']
- message = 'Property VirtualName should be of type ephemeral(n) for {0}'
- matches.append(
- RuleMatch(pathmessage, message.format('/'.join(map(str, pathmessage)))))
- elif ebs:
- matches.extend(self._checkEbs(cfn, ebs, path[:] + [index, 'Ebs']))
+ if isinstance(result['Value'], list):
+ for index, properties in enumerate(result['Value']):
+ virtual_name = properties.get('VirtualName')
+ ebs = properties.get('Ebs')
+ if virtual_name:
+ # switch to regex
+ if not re.match(r'^ephemeral[0-9]$', virtual_name):
+ pathmessage = path[:] + [index, 'VirtualName']
+ message = 'Property VirtualName should be of type ephemeral(n) for {0}'
+ matches.append(
+ RuleMatch(pathmessage, message.format('/'.join(map(str, pathmessage)))))
+ elif ebs:
+ matches.extend(self._checkEbs(cfn, ebs, path[:] + [index, 'Ebs']))
return matches
diff --git a/src/cfnlint/rules/resources/properties/Properties.py b/src/cfnlint/rules/resources/properties/Properties.py
--- a/src/cfnlint/rules/resources/properties/Properties.py
+++ b/src/cfnlint/rules/resources/properties/Properties.py
@@ -150,7 +150,7 @@ def check_list_for_condition(self, text, prop, parenttype, resourcename, propspe
if not (resource_type == 'AWS::CloudFormation::CustomResource' or resource_type.startswith('Custom::')):
message = 'Property is an object instead of List at %s' % ('/'.join(map(str, path)))
matches.append(RuleMatch(path, message))
- else:
+ elif not (sub_key == 'Ref' and sub_value == 'AWS::NoValue'):
message = 'Property is an object instead of List at %s' % ('/'.join(map(str, path)))
matches.append(RuleMatch(path, message))
else:
|
diff --git a/test/fixtures/templates/bad/generic.yaml b/test/fixtures/templates/bad/generic.yaml
--- a/test/fixtures/templates/bad/generic.yaml
+++ b/test/fixtures/templates/bad/generic.yaml
@@ -209,6 +209,15 @@ Resources:
RuleNumber: 1
Protocol: 1
RuleAction: allow
+ MyEc2BlockDevice:
+ Type: "AWS::EC2::Instance"
+ Properties:
+ ImageId: "ami-2f726546"
+ InstanceType: t1.micro
+ KeyName: testkey
+ BlockDeviceMappings: !Ref 'AWS::NoValue'
+ NetworkInterfaces:
+ - DeviceIndex: "1"
Outputs:
myOutput:
Value: !GetAtt ElasticLoadBalancer.CanonicalHostedZoneName
|
NoValue support missing for BlockDeviceMappings
*cfn-lint version: *`0.22.1`
*Description of issue.*
```
"BlockDeviceMappings": {
"Ref": "AWS::NoValue"
}
```
results in:
```
E3002 Property is an object instead of List at Resources/EcsInstanceLaunchConfig/Properties/BlockDeviceMappings
```
Since it's not a required property, `NoValue` should be supported.
|
Yea agreed with that. Let me look into this one.
|
2019-07-19T00:19:34Z
|
[] |
[] |
aws-cloudformation/cfn-lint
| 1,042 |
aws-cloudformation__cfn-lint-1042
|
[
"1033"
] |
00cb4eb70f196623a01744312c469e09f354a754
|
diff --git a/src/cfnlint/__init__.py b/src/cfnlint/__init__.py
--- a/src/cfnlint/__init__.py
+++ b/src/cfnlint/__init__.py
@@ -1334,7 +1334,15 @@ def transform(self):
# Don't call transformation if Transform is not specified to prevent
# useless execution of the transformation.
# Currently locked in to SAM specific
- if transform_type == 'AWS::Serverless-2016-10-31':
+ if transform_type:
+ if isinstance(transform_type, list):
+ if len(transform_type) != 1:
+ return matches
+ if transform_type[0] != 'AWS::Serverless-2016-10-31':
+ return matches
+ if transform_type != 'AWS::Serverless-2016-10-31':
+ return matches
+
# Save the Globals section so its available for rule processing
self.cfn.transform_pre['Globals'] = self.cfn.template.get('Globals', {})
transform = Transform(self.filename, self.cfn.template, self.cfn.regions[0])
|
diff --git a/test/fixtures/templates/good/transform/list_transform.yaml b/test/fixtures/templates/good/transform/list_transform.yaml
new file mode 100644
--- /dev/null
+++ b/test/fixtures/templates/good/transform/list_transform.yaml
@@ -0,0 +1,23 @@
+---
+AWSTemplateFormatVersion: '2010-09-09'
+Transform:
+ - AWS::Serverless-2016-10-31
+
+Parameters:
+ Stage1:
+ Description: Environment stage (deployment phase)
+ Type: String
+ AllowedValues:
+ - beta
+ - prod
+
+Resources:
+ SkillFunction:
+ Type: AWS::Serverless::Function
+ Properties:
+ CodeUri: '.'
+ Handler: main.handler
+ Runtime: python3.7
+ Timeout: 30
+ MemorySize: 128
+ AutoPublishAlias: !Ref Stage1
diff --git a/test/fixtures/templates/good/transform/list_transform_many.yaml b/test/fixtures/templates/good/transform/list_transform_many.yaml
new file mode 100644
--- /dev/null
+++ b/test/fixtures/templates/good/transform/list_transform_many.yaml
@@ -0,0 +1,24 @@
+---
+AWSTemplateFormatVersion: '2010-09-09'
+Transform:
+ - AWS::Serverless-2016-10-31
+ - TestTransform
+
+Parameters:
+ Stage1:
+ Description: Environment stage (deployment phase)
+ Type: String
+ AllowedValues:
+ - beta
+ - prod
+
+Resources:
+ SkillFunction:
+ Type: AWS::Serverless::Function
+ Properties:
+ CodeUri: '.'
+ Handler: main.handler
+ Runtime: python3.7
+ Timeout: 30
+ MemorySize: 128
+ AutoPublishAlias: !Ref Stage1
diff --git a/test/fixtures/templates/good/transform/list_transform_not_sam.yaml b/test/fixtures/templates/good/transform/list_transform_not_sam.yaml
new file mode 100644
--- /dev/null
+++ b/test/fixtures/templates/good/transform/list_transform_not_sam.yaml
@@ -0,0 +1,16 @@
+---
+AWSTemplateFormatVersion: '2010-09-09'
+Transform:
+ - TestTransform
+
+Resources:
+ SkillFunction:
+ Type: AWS::Lambda::Function
+ Properties:
+ Code:
+ ZipFile: '.'
+ Handler: main.handler
+ Runtime: python3.7
+ Timeout: 30
+ MemorySize: 128
+ Role: arn:aws:iam::123456789012:role/role-name
diff --git a/test/integration/test_good_templates.py b/test/integration/test_good_templates.py
--- a/test/integration/test_good_templates.py
+++ b/test/integration/test_good_templates.py
@@ -65,6 +65,18 @@ def setUp(self):
'transform_serverless_globals': {
'filename': 'test/fixtures/templates/good/transform_serverless_globals.yaml',
'failures': 1
+ },
+ 'transform_list': {
+ 'filename': 'test/fixtures/templates/good/transform/list_transform.yaml',
+ 'failures': 0
+ },
+ 'transform_list_many': {
+ 'filename': 'test/fixtures/templates/good/transform/list_transform_many.yaml',
+ 'failures': 0
+ },
+ 'transform_list_not_sam': {
+ 'filename': 'test/fixtures/templates/good/transform/list_transform_not_sam.yaml',
+ 'failures': 0
}
}
|
SAM transform is only applied by cfn-lint if not declared as a list
*cfn-lint version: (`cfn-lint --version`)*
0.22.0
*Description of issue.*
cfn-lint works as expected if the SAM transform is specified like this:
```
Transform: AWS::Serverless-2016-10-31
```
but if multiple transforms are needed (or just declared as a list) like:
```
Transform:
- AWS::Serverless-2016-10-31
```
the template is not transformed before the validation occurs and that causes an assortment of false positives.
Please provide as much information as possible:
Working Example:
```
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Globals:
Function:
Timeout: 3
Runtime: nodejs8.10
Environment:
Variables:
VARIABLE: VALUE
Resources:
Function:
Type: AWS::Serverless::Function
Properties:
CodeUri: src/
Handler: index.handler
Events:
API:
Type: Api
Properties:
Path: /
Method: GET
```
Example that yells about `E1001 Top level item Globals isn't valid`:
```
AWSTemplateFormatVersion: '2010-09-09'
Transform:
- AWS::Serverless-2016-10-31
Globals:
Function:
Timeout: 3
Runtime: nodejs8.10
Environment:
Variables:
VARIABLE: VALUE
Resources:
Function:
Type: AWS::Serverless::Function
Properties:
CodeUri: src/
Handler: index.handler
Events:
API:
Type: Api
Properties:
Path: /
Method: GET
```
Cfn-lint uses the [CloudFormation Resource Specifications](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-resource-specification.html) as the base to do validation. These files are included as part of the application version. Please update to the latest version of `cfn-lint` or update the spec files manually (`cfn-lint -u`)
|
Thanks for submitting this. Working on it.
|
2019-07-19T02:04:49Z
|
[] |
[] |
aws-cloudformation/cfn-lint
| 1,060 |
aws-cloudformation__cfn-lint-1060
|
[
"1061"
] |
d4ebb45ef106d7b438a669b56194a30d37f40a61
|
diff --git a/src/cfnlint/core.py b/src/cfnlint/core.py
--- a/src/cfnlint/core.py
+++ b/src/cfnlint/core.py
@@ -16,6 +16,7 @@
"""
import logging
import os
+import sys
from jsonschema.exceptions import ValidationError
from cfnlint import RulesCollection
import cfnlint.config
@@ -139,6 +140,9 @@ def get_args_filenames(cli_args):
print(rules)
exit(0)
+ if not sys.stdin.isatty():
+ return(config, [None], formatter)
+
if not config.templates:
# Not specified, print the help
config.parser.print_help()
diff --git a/src/cfnlint/rules/templates/LimitSize.py b/src/cfnlint/rules/templates/LimitSize.py
--- a/src/cfnlint/rules/templates/LimitSize.py
+++ b/src/cfnlint/rules/templates/LimitSize.py
@@ -41,10 +41,11 @@ def match(self, cfn):
filename = cfn.filename
# Only check if the file exists. The template could be passed in using stdIn
- if Path(filename).is_file():
- statinfo = os.stat(filename)
- if statinfo.st_size > LIMITS['template']['body']:
- message = 'The template file size ({0} bytes) exceeds the limit ({1} bytes)'
- matches.append(RuleMatch(['Template'], message.format(statinfo.st_size, LIMITS['template']['body'])))
+ if filename:
+ if Path(filename).is_file():
+ statinfo = os.stat(filename)
+ if statinfo.st_size > LIMITS['template']['body']:
+ message = 'The template file size ({0} bytes) exceeds the limit ({1} bytes)'
+ matches.append(RuleMatch(['Template'], message.format(statinfo.st_size, LIMITS['template']['body'])))
return matches
|
diff --git a/test/module/core/test_run_cli.py b/test/module/core/test_run_cli.py
--- a/test/module/core/test_run_cli.py
+++ b/test/module/core/test_run_cli.py
@@ -15,6 +15,7 @@
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
"""
import logging
+from six import StringIO
import cfnlint.core # pylint: disable=E0401
from testlib.testcase import BaseTestCase
from mock import patch, mock_open
@@ -81,6 +82,16 @@ def test_template_invalid_json_ignore(self):
self.assertEqual(len(matches), 1)
+ def test_template_via_stdin(self):
+ """Test getting the template from stdin doesn't crash"""
+ filename = 'test/fixtures/templates/good/generic.yaml'
+ with open(filename, 'r') as fp:
+ file_content = fp.read()
+
+ with patch('sys.stdin', StringIO(file_content)):
+ (_, filenames, _) = cfnlint.core.get_args_filenames([])
+ assert filenames == [None]
+
@patch('cfnlint.config.ConfigFileArgs._read_config', create=True)
def test_template_config(self, yaml_mock):
"""Test template config"""
|
Stdin for templates is broken
As reported here https://github.com/awslabs/aws-cfn-lint-visual-studio-code/issues/47 cfn-lint has broken the ability to use stdin to provide templates.
The result is the help documentation is provided
|
2019-07-29T18:24:18Z
|
[] |
[] |
|
aws-cloudformation/cfn-lint
| 1,063 |
aws-cloudformation__cfn-lint-1063
|
[
"1062"
] |
b5e01ae86a4a40d3d96c797dba0feca08c0c20ca
|
diff --git a/src/cfnlint/rules/parameters/Default.py b/src/cfnlint/rules/parameters/Default.py
--- a/src/cfnlint/rules/parameters/Default.py
+++ b/src/cfnlint/rules/parameters/Default.py
@@ -82,8 +82,9 @@ def check_min_length(self, allowed_value, min_length, path):
"""
message = 'Default should have a length above or equal to MinLength'
+ value = allowed_value if isinstance(allowed_value, six.string_types) else str(allowed_value)
if isinstance(min_length, six.integer_types):
- if len(allowed_value) < min_length:
+ if len(value) < min_length:
return([RuleMatch(path, message)])
return []
@@ -94,8 +95,9 @@ def check_max_length(self, allowed_value, max_length, path):
"""
message = 'Default should have a length below or equal to MaxLength'
+ value = allowed_value if isinstance(allowed_value, six.string_types) else str(allowed_value)
if isinstance(max_length, six.integer_types):
- if len(allowed_value) > max_length:
+ if len(value) > max_length:
return([RuleMatch(path, message)])
return []
|
diff --git a/test/fixtures/templates/good/parameters/default.yaml b/test/fixtures/templates/good/parameters/default.yaml
--- a/test/fixtures/templates/good/parameters/default.yaml
+++ b/test/fixtures/templates/good/parameters/default.yaml
@@ -34,4 +34,9 @@ Parameters:
Description: Remote PostGreSQL database's master user account.
Type: String
Default: abcdef
+ CentralAccountId:
+ Default: 112233445566
+ MaxLength: 12
+ MinLength: 12
+ Type: String
Resources: {}
|
String misinterpreted as an int results in error on E2015
```
cfn-lint --version
cfn-lint 0.19.1
```
*Description of issue.*
The following template
```
Parameters:
CentralAccountId:
Default: 112233445566
MaxLength: 12
MinLength: 12
Type: String
```
result in the error:
```
E0002 Unknown exception while processing rule E2015: object of type 'int' has no len()
application-account-initial-setup.yaml:1:1
```
It is solved by putting quotes on the default value. However it is valid to not putting the quotes.
|
2019-07-29T19:42:52Z
|
[] |
[] |
|
aws-cloudformation/cfn-lint
| 1,067 |
aws-cloudformation__cfn-lint-1067
|
[
"917"
] |
2e0585a6b0b6f05fb9409e8d0b1dbf2e403b9f0f
|
diff --git a/src/cfnlint/rules/functions/SubNotJoin.py b/src/cfnlint/rules/functions/SubNotJoin.py
new file mode 100644
--- /dev/null
+++ b/src/cfnlint/rules/functions/SubNotJoin.py
@@ -0,0 +1,44 @@
+"""
+ Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ software and associated documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to use, copy, modify,
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
+import six
+from cfnlint import CloudFormationLintRule
+from cfnlint import RuleMatch
+
+
+class SubNotJoin(CloudFormationLintRule):
+ """Check if Join is being used with no join characters"""
+ id = 'I1022'
+ shortdesc = 'Use Sub instead of Join'
+ description = 'Prefer a sub instead of Join when using a join delimiter that is empty'
+ source_url = 'https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html'
+ tags = ['functions', 'sub', 'join']
+
+ def match(self, cfn):
+ """Check CloudFormation """
+
+ matches = []
+
+ join_objs = cfn.search_deep_keys('Fn::Join')
+
+ for join_obj in join_objs:
+ if isinstance(join_obj[-1], list):
+ join_operator = join_obj[-1][0]
+ if isinstance(join_operator, six.string_types):
+ if join_operator == '':
+ matches.append(RuleMatch(
+ join_obj[0:-1], 'Prefer using Fn::Sub over Fn::Join with an empty delimiter'))
+ return matches
|
diff --git a/test/fixtures/results/public/watchmaker.json b/test/fixtures/results/public/watchmaker.json
new file mode 100644
--- /dev/null
+++ b/test/fixtures/results/public/watchmaker.json
@@ -0,0 +1,1339 @@
+[
+ {
+ "Filename": "test/fixtures/templates/public/watchmaker.json",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 47,
+ "LineNumber": 647
+ },
+ "Path": [
+ "Resources",
+ "WatchmakerInstance",
+ "Metadata",
+ "AWS::CloudFormation::Init",
+ "cw-agent-install",
+ "commands",
+ "01-get-cloudwatch-agent",
+ "command",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 37,
+ "LineNumber": 647
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/public/watchmaker.json",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 47,
+ "LineNumber": 662
+ },
+ "Path": [
+ "Resources",
+ "WatchmakerInstance",
+ "Metadata",
+ "AWS::CloudFormation::Init",
+ "cw-agent-install",
+ "commands",
+ "02-extract-cloudwatch-agent",
+ "command",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 37,
+ "LineNumber": 662
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/public/watchmaker.json",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 47,
+ "LineNumber": 673
+ },
+ "Path": [
+ "Resources",
+ "WatchmakerInstance",
+ "Metadata",
+ "AWS::CloudFormation::Init",
+ "cw-agent-install",
+ "commands",
+ "10-install-cloudwatch-agent",
+ "command",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 37,
+ "LineNumber": 673
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/public/watchmaker.json",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 47,
+ "LineNumber": 689
+ },
+ "Path": [
+ "Resources",
+ "WatchmakerInstance",
+ "Metadata",
+ "AWS::CloudFormation::Init",
+ "cw-agent-install",
+ "files",
+ "/opt/aws/amazon-cloudwatch-agent/etc/amazon-cloudwatch-agent.json",
+ "content",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 37,
+ "LineNumber": 689
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/public/watchmaker.json",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 47,
+ "LineNumber": 803
+ },
+ "Path": [
+ "Resources",
+ "WatchmakerInstance",
+ "Metadata",
+ "AWS::CloudFormation::Init",
+ "finalize",
+ "commands",
+ "10-signal-success",
+ "command",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 37,
+ "LineNumber": 803
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/public/watchmaker.json",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 67,
+ "LineNumber": 816
+ },
+ "Path": [
+ "Resources",
+ "WatchmakerInstance",
+ "Metadata",
+ "AWS::CloudFormation::Init",
+ "finalize",
+ "commands",
+ "10-signal-success",
+ "command",
+ "Fn::Join",
+ 1,
+ 4,
+ "Fn::If",
+ 1,
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 57,
+ "LineNumber": 816
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/public/watchmaker.json",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 67,
+ "LineNumber": 833
+ },
+ "Path": [
+ "Resources",
+ "WatchmakerInstance",
+ "Metadata",
+ "AWS::CloudFormation::Init",
+ "finalize",
+ "commands",
+ "10-signal-success",
+ "command",
+ "Fn::Join",
+ 1,
+ 5,
+ "Fn::If",
+ 1,
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 57,
+ "LineNumber": 833
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/public/watchmaker.json",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 47,
+ "LineNumber": 869
+ },
+ "Path": [
+ "Resources",
+ "WatchmakerInstance",
+ "Metadata",
+ "AWS::CloudFormation::Init",
+ "make-app",
+ "commands",
+ "05-get-appscript",
+ "command",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 37,
+ "LineNumber": 869
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/public/watchmaker.json",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 47,
+ "LineNumber": 887
+ },
+ "Path": [
+ "Resources",
+ "WatchmakerInstance",
+ "Metadata",
+ "AWS::CloudFormation::Init",
+ "make-app",
+ "commands",
+ "10-make-app",
+ "command",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 37,
+ "LineNumber": 887
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/public/watchmaker.json",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 47,
+ "LineNumber": 914
+ },
+ "Path": [
+ "Resources",
+ "WatchmakerInstance",
+ "Metadata",
+ "AWS::CloudFormation::Init",
+ "setup",
+ "files",
+ "/etc/cfn/cfn-hup.conf",
+ "content",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 37,
+ "LineNumber": 914
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/public/watchmaker.json",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 67,
+ "LineNumber": 932
+ },
+ "Path": [
+ "Resources",
+ "WatchmakerInstance",
+ "Metadata",
+ "AWS::CloudFormation::Init",
+ "setup",
+ "files",
+ "/etc/cfn/cfn-hup.conf",
+ "content",
+ "Fn::Join",
+ 1,
+ 7,
+ "Fn::If",
+ 1,
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 57,
+ "LineNumber": 932
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/public/watchmaker.json",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 67,
+ "LineNumber": 950
+ },
+ "Path": [
+ "Resources",
+ "WatchmakerInstance",
+ "Metadata",
+ "AWS::CloudFormation::Init",
+ "setup",
+ "files",
+ "/etc/cfn/cfn-hup.conf",
+ "content",
+ "Fn::Join",
+ 1,
+ 8,
+ "Fn::If",
+ 1,
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 57,
+ "LineNumber": 950
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/public/watchmaker.json",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 47,
+ "LineNumber": 977
+ },
+ "Path": [
+ "Resources",
+ "WatchmakerInstance",
+ "Metadata",
+ "AWS::CloudFormation::Init",
+ "setup",
+ "files",
+ "/etc/cfn/hooks.d/cfn-auto-reloader.conf",
+ "content",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 37,
+ "LineNumber": 977
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/public/watchmaker.json",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 67,
+ "LineNumber": 993
+ },
+ "Path": [
+ "Resources",
+ "WatchmakerInstance",
+ "Metadata",
+ "AWS::CloudFormation::Init",
+ "setup",
+ "files",
+ "/etc/cfn/hooks.d/cfn-auto-reloader.conf",
+ "content",
+ "Fn::Join",
+ 1,
+ 7,
+ "Fn::If",
+ 1,
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 57,
+ "LineNumber": 993
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/public/watchmaker.json",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 67,
+ "LineNumber": 1010
+ },
+ "Path": [
+ "Resources",
+ "WatchmakerInstance",
+ "Metadata",
+ "AWS::CloudFormation::Init",
+ "setup",
+ "files",
+ "/etc/cfn/hooks.d/cfn-auto-reloader.conf",
+ "content",
+ "Fn::Join",
+ 1,
+ 8,
+ "Fn::If",
+ 1,
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 57,
+ "LineNumber": 1010
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/public/watchmaker.json",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 47,
+ "LineNumber": 1038
+ },
+ "Path": [
+ "Resources",
+ "WatchmakerInstance",
+ "Metadata",
+ "AWS::CloudFormation::Init",
+ "setup",
+ "files",
+ "/etc/cfn/scripts/watchmaker-install.sh",
+ "content",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 37,
+ "LineNumber": 1038
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/public/watchmaker.json",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 47,
+ "LineNumber": 1091
+ },
+ "Path": [
+ "Resources",
+ "WatchmakerInstance",
+ "Metadata",
+ "AWS::CloudFormation::Init",
+ "watchmaker-launch",
+ "commands",
+ "10-watchmaker-launch",
+ "command",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 37,
+ "LineNumber": 1091
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/public/watchmaker.json",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 67,
+ "LineNumber": 1101
+ },
+ "Path": [
+ "Resources",
+ "WatchmakerInstance",
+ "Metadata",
+ "AWS::CloudFormation::Init",
+ "watchmaker-launch",
+ "commands",
+ "10-watchmaker-launch",
+ "command",
+ "Fn::Join",
+ 1,
+ 3,
+ "Fn::If",
+ 1,
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 57,
+ "LineNumber": 1101
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/public/watchmaker.json",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 67,
+ "LineNumber": 1119
+ },
+ "Path": [
+ "Resources",
+ "WatchmakerInstance",
+ "Metadata",
+ "AWS::CloudFormation::Init",
+ "watchmaker-launch",
+ "commands",
+ "10-watchmaker-launch",
+ "command",
+ "Fn::Join",
+ 1,
+ 4,
+ "Fn::If",
+ 1,
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 57,
+ "LineNumber": 1119
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/public/watchmaker.json",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 67,
+ "LineNumber": 1137
+ },
+ "Path": [
+ "Resources",
+ "WatchmakerInstance",
+ "Metadata",
+ "AWS::CloudFormation::Init",
+ "watchmaker-launch",
+ "commands",
+ "10-watchmaker-launch",
+ "command",
+ "Fn::Join",
+ 1,
+ 5,
+ "Fn::If",
+ 1,
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 57,
+ "LineNumber": 1137
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/public/watchmaker.json",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 67,
+ "LineNumber": 1155
+ },
+ "Path": [
+ "Resources",
+ "WatchmakerInstance",
+ "Metadata",
+ "AWS::CloudFormation::Init",
+ "watchmaker-launch",
+ "commands",
+ "10-watchmaker-launch",
+ "command",
+ "Fn::Join",
+ 1,
+ 6,
+ "Fn::If",
+ 1,
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 57,
+ "LineNumber": 1155
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/public/watchmaker.json",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 67,
+ "LineNumber": 1173
+ },
+ "Path": [
+ "Resources",
+ "WatchmakerInstance",
+ "Metadata",
+ "AWS::CloudFormation::Init",
+ "watchmaker-launch",
+ "commands",
+ "10-watchmaker-launch",
+ "command",
+ "Fn::Join",
+ 1,
+ 7,
+ "Fn::If",
+ 1,
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 57,
+ "LineNumber": 1173
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/public/watchmaker.json",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 67,
+ "LineNumber": 1191
+ },
+ "Path": [
+ "Resources",
+ "WatchmakerInstance",
+ "Metadata",
+ "AWS::CloudFormation::Init",
+ "watchmaker-launch",
+ "commands",
+ "10-watchmaker-launch",
+ "command",
+ "Fn::Join",
+ 1,
+ 8,
+ "Fn::If",
+ 1,
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 57,
+ "LineNumber": 1191
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/public/watchmaker.json",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 47,
+ "LineNumber": 1215
+ },
+ "Path": [
+ "Resources",
+ "WatchmakerInstance",
+ "Metadata",
+ "AWS::CloudFormation::Init",
+ "watchmaker-update",
+ "commands",
+ "10-watchmaker-update",
+ "command",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 37,
+ "LineNumber": 1215
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/public/watchmaker.json",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 67,
+ "LineNumber": 1226
+ },
+ "Path": [
+ "Resources",
+ "WatchmakerInstance",
+ "Metadata",
+ "AWS::CloudFormation::Init",
+ "watchmaker-update",
+ "commands",
+ "10-watchmaker-update",
+ "command",
+ "Fn::Join",
+ 1,
+ 4,
+ "Fn::If",
+ 1,
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 57,
+ "LineNumber": 1226
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/public/watchmaker.json",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 67,
+ "LineNumber": 1244
+ },
+ "Path": [
+ "Resources",
+ "WatchmakerInstance",
+ "Metadata",
+ "AWS::CloudFormation::Init",
+ "watchmaker-update",
+ "commands",
+ "10-watchmaker-update",
+ "command",
+ "Fn::Join",
+ 1,
+ 5,
+ "Fn::If",
+ 1,
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 57,
+ "LineNumber": 1244
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/public/watchmaker.json",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 67,
+ "LineNumber": 1262
+ },
+ "Path": [
+ "Resources",
+ "WatchmakerInstance",
+ "Metadata",
+ "AWS::CloudFormation::Init",
+ "watchmaker-update",
+ "commands",
+ "10-watchmaker-update",
+ "command",
+ "Fn::Join",
+ 1,
+ 6,
+ "Fn::If",
+ 1,
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 57,
+ "LineNumber": 1262
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/public/watchmaker.json",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 67,
+ "LineNumber": 1280
+ },
+ "Path": [
+ "Resources",
+ "WatchmakerInstance",
+ "Metadata",
+ "AWS::CloudFormation::Init",
+ "watchmaker-update",
+ "commands",
+ "10-watchmaker-update",
+ "command",
+ "Fn::Join",
+ 1,
+ 7,
+ "Fn::If",
+ 1,
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 57,
+ "LineNumber": 1280
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/public/watchmaker.json",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 67,
+ "LineNumber": 1298
+ },
+ "Path": [
+ "Resources",
+ "WatchmakerInstance",
+ "Metadata",
+ "AWS::CloudFormation::Init",
+ "watchmaker-update",
+ "commands",
+ "10-watchmaker-update",
+ "command",
+ "Fn::Join",
+ 1,
+ 8,
+ "Fn::If",
+ 1,
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 57,
+ "LineNumber": 1298
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/public/watchmaker.json",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 67,
+ "LineNumber": 1316
+ },
+ "Path": [
+ "Resources",
+ "WatchmakerInstance",
+ "Metadata",
+ "AWS::CloudFormation::Init",
+ "watchmaker-update",
+ "commands",
+ "10-watchmaker-update",
+ "command",
+ "Fn::Join",
+ 1,
+ 9,
+ "Fn::If",
+ 1,
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 57,
+ "LineNumber": 1316
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/public/watchmaker.json",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 39,
+ "LineNumber": 1345
+ },
+ "Path": [
+ "Resources",
+ "WatchmakerInstance",
+ "Properties",
+ "BlockDeviceMappings",
+ 0,
+ "DeviceName",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 29,
+ "LineNumber": 1345
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/public/watchmaker.json",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 39,
+ "LineNumber": 1440
+ },
+ "Path": [
+ "Resources",
+ "WatchmakerInstance",
+ "Properties",
+ "Tags",
+ 0,
+ "Value",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 29,
+ "LineNumber": 1440
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/public/watchmaker.json",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 35,
+ "LineNumber": 1453
+ },
+ "Path": [
+ "Resources",
+ "WatchmakerInstance",
+ "Properties",
+ "UserData",
+ "Fn::Base64",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 25,
+ "LineNumber": 1453
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/public/watchmaker.json",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 55,
+ "LineNumber": 1470
+ },
+ "Path": [
+ "Resources",
+ "WatchmakerInstance",
+ "Properties",
+ "UserData",
+ "Fn::Base64",
+ "Fn::Join",
+ 1,
+ 10,
+ "Fn::If",
+ 1,
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 45,
+ "LineNumber": 1470
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/public/watchmaker.json",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 55,
+ "LineNumber": 1596
+ },
+ "Path": [
+ "Resources",
+ "WatchmakerInstance",
+ "Properties",
+ "UserData",
+ "Fn::Base64",
+ "Fn::Join",
+ 1,
+ 88,
+ "Fn::If",
+ 1,
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 45,
+ "LineNumber": 1596
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/public/watchmaker.json",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 55,
+ "LineNumber": 1613
+ },
+ "Path": [
+ "Resources",
+ "WatchmakerInstance",
+ "Properties",
+ "UserData",
+ "Fn::Base64",
+ "Fn::Join",
+ 1,
+ 89,
+ "Fn::If",
+ 1,
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 45,
+ "LineNumber": 1613
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/public/watchmaker.json",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 55,
+ "LineNumber": 1642
+ },
+ "Path": [
+ "Resources",
+ "WatchmakerInstance",
+ "Properties",
+ "UserData",
+ "Fn::Base64",
+ "Fn::Join",
+ 1,
+ 98,
+ "Fn::If",
+ 1,
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 45,
+ "LineNumber": 1642
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/public/watchmaker.json",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 55,
+ "LineNumber": 1659
+ },
+ "Path": [
+ "Resources",
+ "WatchmakerInstance",
+ "Properties",
+ "UserData",
+ "Fn::Base64",
+ "Fn::Join",
+ 1,
+ 99,
+ "Fn::If",
+ 1,
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 45,
+ "LineNumber": 1659
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/public/watchmaker.json",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 31,
+ "LineNumber": 1691
+ },
+ "Path": [
+ "Resources",
+ "WatchmakerInstanceLogGroup",
+ "Properties",
+ "LogGroupName",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 21,
+ "LineNumber": 1691
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ }
+]
diff --git a/test/fixtures/results/quickstart/nist_application.json b/test/fixtures/results/quickstart/nist_application.json
--- a/test/fixtures/results/quickstart/nist_application.json
+++ b/test/fixtures/results/quickstart/nist_application.json
@@ -1,16 +1,62 @@
[
{
- "Rule": {
- "Id": "W2506",
- "Description": "See if there are any refs for ImageId to a parameter of inappropriate type. Appropriate Types are [AWS::EC2::Image::Id, AWS::SSM::Parameter::Value<AWS::EC2::Image::Id>]",
- "ShortDescription": "Check if ImageId Parameters have the correct type",
- "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/best-practices.html#parmtypes"
- },
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Informational",
"Location": {
+ "End": {
+ "ColumnNumber": 15,
+ "LineNumber": 95
+ },
+ "Path": [
+ "Outputs",
+ "LandingPageURL",
+ "Value",
+ "Fn::Join"
+ ],
"Start": {
- "ColumnNumber": 3,
- "LineNumber": 125
+ "ColumnNumber": 7,
+ "LineNumber": 95
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 15,
+ "LineNumber": 108
},
+ "Path": [
+ "Outputs",
+ "WebsiteURL",
+ "Value",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 108
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Warning",
+ "Location": {
"End": {
"ColumnNumber": 10,
"LineNumber": 125
@@ -18,24 +64,24 @@
"Path": [
"Parameters",
"pAppAmi"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 3,
+ "LineNumber": 125
+ }
},
- "Level": "Warning",
"Message": "Parameter pAppAmi should be of type [AWS::EC2::Image::Id, AWS::SSM::Parameter::Value<AWS::EC2::Image::Id>]",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
+ "Rule": {
+ "Description": "See if there are any refs for ImageId to a parameter of inappropriate type. Appropriate Types are [AWS::EC2::Image::Id, AWS::SSM::Parameter::Value<AWS::EC2::Image::Id>]",
+ "Id": "W2506",
+ "ShortDescription": "Check if ImageId Parameters have the correct type",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/best-practices.html#parmtypes"
+ }
},
{
- "Rule": {
- "Id": "W2509",
- "Description": "Check if a parameter is being used as a CIDR. If it is make sure it has allowed values regex comparisons",
- "ShortDescription": "CIDR Parameters have allowed values",
- "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/parameters-section-structure.html"
- },
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Warning",
"Location": {
- "Start": {
- "ColumnNumber": 3,
- "LineNumber": 182
- },
"End": {
"ColumnNumber": 18,
"LineNumber": 182
@@ -43,24 +89,24 @@
"Path": [
"Parameters",
"pManagementCIDR"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 3,
+ "LineNumber": 182
+ }
},
- "Level": "Warning",
- "Message": "AllowedPattern and/or AllowedValues for Parameter should be specified at Parameters/pManagementCIDR. Example for AllowedPattern: \"^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/([0-9]|[1-2][0-9]|3[0-2]))$\"",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
- },
- {
+ "Message": "AllowedPattern and/or AllowedValues for Parameter should be specified at Parameters/pManagementCIDR. Example for AllowedPattern: '^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/([0-9]|[1-2][0-9]|3[0-2]))$'",
"Rule": {
- "Id": "W2509",
"Description": "Check if a parameter is being used as a CIDR. If it is make sure it has allowed values regex comparisons",
+ "Id": "W2509",
"ShortDescription": "CIDR Parameters have allowed values",
"Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/parameters-section-structure.html"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Warning",
"Location": {
- "Start": {
- "ColumnNumber": 3,
- "LineNumber": 185
- },
"End": {
"ColumnNumber": 18,
"LineNumber": 185
@@ -68,24 +114,24 @@
"Path": [
"Parameters",
"pProductionCIDR"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 3,
+ "LineNumber": 185
+ }
},
- "Level": "Warning",
- "Message": "AllowedPattern and/or AllowedValues for Parameter should be specified at Parameters/pProductionCIDR. Example for AllowedPattern: \"^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/([0-9]|[1-2][0-9]|3[0-2]))$\"",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
+ "Message": "AllowedPattern and/or AllowedValues for Parameter should be specified at Parameters/pProductionCIDR. Example for AllowedPattern: '^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/([0-9]|[1-2][0-9]|3[0-2]))$'",
+ "Rule": {
+ "Description": "Check if a parameter is being used as a CIDR. If it is make sure it has allowed values regex comparisons",
+ "Id": "W2509",
+ "ShortDescription": "CIDR Parameters have allowed values",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/parameters-section-structure.html"
+ }
},
{
- "Rule": {
- "Id": "W2506",
- "Description": "See if there are any refs for ImageId to a parameter of inappropriate type. Appropriate Types are [AWS::EC2::Image::Id, AWS::SSM::Parameter::Value<AWS::EC2::Image::Id>]",
- "ShortDescription": "Check if ImageId Parameters have the correct type",
- "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/best-practices.html#parmtypes"
- },
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Warning",
"Location": {
- "Start": {
- "ColumnNumber": 3,
- "LineNumber": 213
- },
"End": {
"ColumnNumber": 16,
"LineNumber": 213
@@ -93,50 +139,270 @@
"Path": [
"Parameters",
"pWebServerAMI"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 3,
+ "LineNumber": 213
+ }
},
- "Level": "Warning",
"Message": "Parameter pWebServerAMI should be of type [AWS::EC2::Image::Id, AWS::SSM::Parameter::Value<AWS::EC2::Image::Id>]",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
+ "Rule": {
+ "Description": "See if there are any refs for ImageId to a parameter of inappropriate type. Appropriate Types are [AWS::EC2::Image::Id, AWS::SSM::Parameter::Value<AWS::EC2::Image::Id>]",
+ "Id": "W2506",
+ "ShortDescription": "Check if ImageId Parameters have the correct type",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/best-practices.html#parmtypes"
+ }
},
{
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 14,
+ "LineNumber": 219
+ },
+ "Path": [
+ "Resources",
+ "rAutoScalingConfigApp",
+ "DependsOn"
+ ],
+ "Start": {
+ "ColumnNumber": 5,
+ "LineNumber": 219
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (rRDSInstanceMySQL), dependency already enforced by a \"Fn:GetAtt\" at Resources/rAutoScalingConfigApp/Metadata/AWS::CloudFormation::Init/install_wordpress/files//tmp/create-wp-config/content/Fn::Join/1/12/Fn::GetAtt/['rRDSInstanceMySQL', 'Endpoint.Address']",
"Rule": {
- "Id": "W3005",
"Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
"ShortDescription": "Check obsolete DependsOn configuration for Resources",
"Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Informational",
"Location": {
+ "End": {
+ "ColumnNumber": 23,
+ "LineNumber": 236
+ },
+ "Path": [
+ "Resources",
+ "rAutoScalingConfigApp",
+ "Metadata",
+ "AWS::CloudFormation::Init",
+ "copy_landing_content",
+ "sources",
+ "/var/www/html",
+ "Fn::Join"
+ ],
"Start": {
- "ColumnNumber": 5,
- "LineNumber": 219
+ "ColumnNumber": 15,
+ "LineNumber": 236
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 25,
+ "LineNumber": 244
},
+ "Path": [
+ "Resources",
+ "rAutoScalingConfigApp",
+ "Metadata",
+ "AWS::CloudFormation::Init",
+ "installDeepSecurityAgent",
+ "commands",
+ "0-download-DSA",
+ "command",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 17,
+ "LineNumber": 244
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Informational",
+ "Location": {
"End": {
- "ColumnNumber": 14,
- "LineNumber": 219
+ "ColumnNumber": 25,
+ "LineNumber": 255
},
"Path": [
"Resources",
"rAutoScalingConfigApp",
- "DependsOn"
- ]
+ "Metadata",
+ "AWS::CloudFormation::Init",
+ "installDeepSecurityAgent",
+ "commands",
+ "3-activate-DSA",
+ "command",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 17,
+ "LineNumber": 255
+ }
},
- "Level": "Warning",
- "Message": "Obsolete DependsOn on resource (rRDSInstanceMySQL), dependency already enforced by a \"Fn:GetAtt\" at Resources/rAutoScalingConfigApp/Metadata/AWS::CloudFormation::Init/install_wordpress/files//tmp/create-wp-config/content/Fn::Join/1/12/Fn::GetAtt/['rRDSInstanceMySQL', 'Endpoint.Address']",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
},
{
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 25,
+ "LineNumber": 264
+ },
+ "Path": [
+ "Resources",
+ "rAutoScalingConfigApp",
+ "Metadata",
+ "AWS::CloudFormation::Init",
+ "install_cfn",
+ "files",
+ "/etc/cfn/cfn-hup.conf",
+ "content",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 17,
+ "LineNumber": 264
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
"Rule": {
- "Id": "W3005",
- "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
- "ShortDescription": "Check obsolete DependsOn configuration for Resources",
- "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 25,
+ "LineNumber": 284
+ },
+ "Path": [
+ "Resources",
+ "rAutoScalingConfigApp",
+ "Metadata",
+ "AWS::CloudFormation::Init",
+ "install_cfn",
+ "files",
+ "/etc/cfn/hooks.d/cfn-auto-reloader.conf",
+ "content",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 17,
+ "LineNumber": 284
+ }
},
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Informational",
"Location": {
+ "End": {
+ "ColumnNumber": 25,
+ "LineNumber": 324
+ },
+ "Path": [
+ "Resources",
+ "rAutoScalingConfigApp",
+ "Metadata",
+ "AWS::CloudFormation::Init",
+ "install_wordpress",
+ "files",
+ "/tmp/create-wp-config",
+ "content",
+ "Fn::Join"
+ ],
"Start": {
- "ColumnNumber": 7,
- "LineNumber": 418
+ "ColumnNumber": 17,
+ "LineNumber": 324
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 19,
+ "LineNumber": 388
},
+ "Path": [
+ "Resources",
+ "rAutoScalingConfigApp",
+ "Properties",
+ "UserData",
+ "Fn::Base64",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 388
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Warning",
+ "Location": {
"End": {
"ColumnNumber": 14,
"LineNumber": 418
@@ -146,24 +412,120 @@
"rAutoScalingConfigWeb",
"DependsOn",
0
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 418
+ }
},
- "Level": "Warning",
"Message": "Obsolete DependsOn on resource (rELBApp), dependency already enforced by a \"Fn:GetAtt\" at Resources/rAutoScalingConfigWeb/Metadata/AWS::CloudFormation::Init/nginx/files//tmp/nginx/default.conf/content/Fn::Join/1/9/Fn::GetAtt/['rELBApp', 'DNSName']",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
},
{
- "Rule": {
- "Id": "E3012",
- "Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values",
- "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 25,
+ "LineNumber": 430
+ },
+ "Path": [
+ "Resources",
+ "rAutoScalingConfigWeb",
+ "Metadata",
+ "AWS::CloudFormation::Init",
+ "installDeepSecurityAgent",
+ "commands",
+ "0-download-DSA",
+ "command",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 17,
+ "LineNumber": 430
+ }
},
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Informational",
"Location": {
+ "End": {
+ "ColumnNumber": 25,
+ "LineNumber": 441
+ },
+ "Path": [
+ "Resources",
+ "rAutoScalingConfigWeb",
+ "Metadata",
+ "AWS::CloudFormation::Init",
+ "installDeepSecurityAgent",
+ "commands",
+ "3-activate-DSA",
+ "command",
+ "Fn::Join"
+ ],
"Start": {
- "ColumnNumber": 7,
- "LineNumber": 509
+ "ColumnNumber": 17,
+ "LineNumber": 441
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 25,
+ "LineNumber": 450
},
+ "Path": [
+ "Resources",
+ "rAutoScalingConfigWeb",
+ "Metadata",
+ "AWS::CloudFormation::Init",
+ "nginx",
+ "files",
+ "/tmp/nginx/default.conf",
+ "content",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 17,
+ "LineNumber": 450
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Error",
+ "Location": {
"End": {
"ColumnNumber": 31,
"LineNumber": 509
@@ -173,24 +535,53 @@
"rAutoScalingConfigWeb",
"Properties",
"AssociatePublicIpAddress"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 509
+ }
},
- "Level": "Error",
"Message": "Property Resources/rAutoScalingConfigWeb/Properties/AssociatePublicIpAddress should be of type Boolean",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
"ShortDescription": "Check resource properties values",
"Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Informational",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 566
+ "End": {
+ "ColumnNumber": 19,
+ "LineNumber": 520
},
+ "Path": [
+ "Resources",
+ "rAutoScalingConfigWeb",
+ "Properties",
+ "UserData",
+ "Fn::Base64",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 520
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Error",
+ "Location": {
"End": {
"ColumnNumber": 24,
"LineNumber": 566
@@ -200,24 +591,24 @@
"rAutoScalingDownApp",
"Properties",
"ScalingAdjustment"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 566
+ }
},
- "Level": "Error",
"Message": "Property Resources/rAutoScalingDownApp/Properties/ScalingAdjustment should be of type Integer",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
"ShortDescription": "Check resource properties values",
"Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 574
- },
"End": {
"ColumnNumber": 24,
"LineNumber": 574
@@ -227,24 +618,24 @@
"rAutoScalingDownWeb",
"Properties",
"ScalingAdjustment"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 574
+ }
},
- "Level": "Error",
"Message": "Property Resources/rAutoScalingDownWeb/Properties/ScalingAdjustment should be of type Integer",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
+ "Rule": {
+ "Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
},
{
- "Rule": {
- "Id": "W3005",
- "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
- "ShortDescription": "Check obsolete DependsOn configuration for Resources",
- "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
- },
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Warning",
"Location": {
- "Start": {
- "ColumnNumber": 5,
- "LineNumber": 577
- },
"End": {
"ColumnNumber": 14,
"LineNumber": 577
@@ -253,24 +644,24 @@
"Resources",
"rAutoScalingGroupApp",
"DependsOn"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 5,
+ "LineNumber": 577
+ }
},
- "Level": "Warning",
"Message": "Obsolete DependsOn on resource (rAutoScalingConfigApp), dependency already enforced by a \"Ref\" at Resources/rAutoScalingGroupApp/Properties/LaunchConfigurationName/Ref/rAutoScalingConfigApp",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
},
{
- "Rule": {
- "Id": "E3012",
- "Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values",
- "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 582
- },
"End": {
"ColumnNumber": 29,
"LineNumber": 582
@@ -280,24 +671,24 @@
"rAutoScalingGroupApp",
"Properties",
"HealthCheckGracePeriod"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 582
+ }
},
- "Level": "Error",
"Message": "Property Resources/rAutoScalingGroupApp/Properties/HealthCheckGracePeriod should be of type Integer",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
"ShortDescription": "Check resource properties values",
"Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 592
- },
"End": {
"ColumnNumber": 26,
"LineNumber": 592
@@ -309,24 +700,24 @@
"Tags",
0,
"PropagateAtLaunch"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 592
+ }
},
- "Level": "Error",
"Message": "Property Resources/rAutoScalingGroupApp/Properties/Tags/0/PropagateAtLaunch should be of type Boolean",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
"ShortDescription": "Check resource properties values",
"Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 595
- },
"End": {
"ColumnNumber": 26,
"LineNumber": 595
@@ -338,24 +729,24 @@
"Tags",
1,
"PropagateAtLaunch"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 595
+ }
},
- "Level": "Error",
"Message": "Property Resources/rAutoScalingGroupApp/Properties/Tags/1/PropagateAtLaunch should be of type Boolean",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
+ "Rule": {
+ "Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
},
{
- "Rule": {
- "Id": "W3005",
- "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
- "ShortDescription": "Check obsolete DependsOn configuration for Resources",
- "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
- },
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Warning",
"Location": {
- "Start": {
- "ColumnNumber": 5,
- "LineNumber": 603
- },
"End": {
"ColumnNumber": 14,
"LineNumber": 603
@@ -364,24 +755,24 @@
"Resources",
"rAutoScalingGroupWeb",
"DependsOn"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 5,
+ "LineNumber": 603
+ }
},
- "Level": "Warning",
"Message": "Obsolete DependsOn on resource (rAutoScalingConfigWeb), dependency already enforced by a \"Ref\" at Resources/rAutoScalingGroupWeb/Properties/LaunchConfigurationName/Ref/rAutoScalingConfigWeb",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
},
{
- "Rule": {
- "Id": "E3012",
- "Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values",
- "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 608
- },
"End": {
"ColumnNumber": 29,
"LineNumber": 608
@@ -391,24 +782,24 @@
"rAutoScalingGroupWeb",
"Properties",
"HealthCheckGracePeriod"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 608
+ }
},
- "Level": "Error",
"Message": "Property Resources/rAutoScalingGroupWeb/Properties/HealthCheckGracePeriod should be of type Integer",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
"ShortDescription": "Check resource properties values",
"Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 618
- },
"End": {
"ColumnNumber": 26,
"LineNumber": 618
@@ -420,24 +811,24 @@
"Tags",
0,
"PropagateAtLaunch"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 618
+ }
},
- "Level": "Error",
"Message": "Property Resources/rAutoScalingGroupWeb/Properties/Tags/0/PropagateAtLaunch should be of type Boolean",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
"ShortDescription": "Check resource properties values",
"Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 621
- },
"End": {
"ColumnNumber": 26,
"LineNumber": 621
@@ -449,24 +840,24 @@
"Tags",
1,
"PropagateAtLaunch"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 621
+ }
},
- "Level": "Error",
"Message": "Property Resources/rAutoScalingGroupWeb/Properties/Tags/1/PropagateAtLaunch should be of type Boolean",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
"ShortDescription": "Check resource properties values",
"Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 634
- },
"End": {
"ColumnNumber": 24,
"LineNumber": 634
@@ -476,24 +867,24 @@
"rAutoScalingUpApp",
"Properties",
"ScalingAdjustment"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 634
+ }
},
- "Level": "Error",
"Message": "Property Resources/rAutoScalingUpApp/Properties/ScalingAdjustment should be of type Integer",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
"ShortDescription": "Check resource properties values",
"Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 642
- },
"End": {
"ColumnNumber": 24,
"LineNumber": 642
@@ -503,24 +894,24 @@
"rAutoScalingUpWeb",
"Properties",
"ScalingAdjustment"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 642
+ }
},
- "Level": "Error",
"Message": "Property Resources/rAutoScalingUpWeb/Properties/ScalingAdjustment should be of type Integer",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
"ShortDescription": "Check resource properties values",
"Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 655
- },
"End": {
"ColumnNumber": 24,
"LineNumber": 655
@@ -530,24 +921,24 @@
"rCWAlarmHighCPUApp",
"Properties",
"EvaluationPeriods"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 655
+ }
},
- "Level": "Error",
"Message": "Property Resources/rCWAlarmHighCPUApp/Properties/EvaluationPeriods should be of type Integer",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
"ShortDescription": "Check resource properties values",
"Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 658
- },
"End": {
"ColumnNumber": 13,
"LineNumber": 658
@@ -557,24 +948,24 @@
"rCWAlarmHighCPUApp",
"Properties",
"Period"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 658
+ }
},
- "Level": "Error",
"Message": "Property Resources/rCWAlarmHighCPUApp/Properties/Period should be of type Integer",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
"ShortDescription": "Check resource properties values",
"Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 660
- },
"End": {
"ColumnNumber": 16,
"LineNumber": 660
@@ -584,24 +975,24 @@
"rCWAlarmHighCPUApp",
"Properties",
"Threshold"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 660
+ }
},
- "Level": "Error",
"Message": "Property Resources/rCWAlarmHighCPUApp/Properties/Threshold should be of type Double",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
"ShortDescription": "Check resource properties values",
"Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 673
- },
"End": {
"ColumnNumber": 24,
"LineNumber": 673
@@ -611,24 +1002,24 @@
"rCWAlarmHighCPUWeb",
"Properties",
"EvaluationPeriods"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 673
+ }
},
- "Level": "Error",
"Message": "Property Resources/rCWAlarmHighCPUWeb/Properties/EvaluationPeriods should be of type Integer",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
"ShortDescription": "Check resource properties values",
"Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 676
- },
"End": {
"ColumnNumber": 13,
"LineNumber": 676
@@ -638,24 +1029,24 @@
"rCWAlarmHighCPUWeb",
"Properties",
"Period"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 676
+ }
},
- "Level": "Error",
"Message": "Property Resources/rCWAlarmHighCPUWeb/Properties/Period should be of type Integer",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
"ShortDescription": "Check resource properties values",
"Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 678
- },
"End": {
"ColumnNumber": 16,
"LineNumber": 678
@@ -665,24 +1056,24 @@
"rCWAlarmHighCPUWeb",
"Properties",
"Threshold"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 678
+ }
},
- "Level": "Error",
"Message": "Property Resources/rCWAlarmHighCPUWeb/Properties/Threshold should be of type Double",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
"ShortDescription": "Check resource properties values",
"Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 690
- },
"End": {
"ColumnNumber": 24,
"LineNumber": 690
@@ -692,24 +1083,24 @@
"rCWAlarmLowCPUApp",
"Properties",
"EvaluationPeriods"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 690
+ }
},
- "Level": "Error",
"Message": "Property Resources/rCWAlarmLowCPUApp/Properties/EvaluationPeriods should be of type Integer",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
"ShortDescription": "Check resource properties values",
"Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 693
- },
"End": {
"ColumnNumber": 13,
"LineNumber": 693
@@ -719,24 +1110,24 @@
"rCWAlarmLowCPUApp",
"Properties",
"Period"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 693
+ }
},
- "Level": "Error",
"Message": "Property Resources/rCWAlarmLowCPUApp/Properties/Period should be of type Integer",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
"ShortDescription": "Check resource properties values",
"Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 695
- },
"End": {
"ColumnNumber": 16,
"LineNumber": 695
@@ -746,24 +1137,24 @@
"rCWAlarmLowCPUApp",
"Properties",
"Threshold"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 695
+ }
},
- "Level": "Error",
"Message": "Property Resources/rCWAlarmLowCPUApp/Properties/Threshold should be of type Double",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
+ "Rule": {
+ "Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
},
{
- "Rule": {
- "Id": "W3005",
- "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
- "ShortDescription": "Check obsolete DependsOn configuration for Resources",
- "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
- },
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Warning",
"Location": {
- "Start": {
- "ColumnNumber": 5,
- "LineNumber": 698
- },
"End": {
"ColumnNumber": 14,
"LineNumber": 698
@@ -772,24 +1163,24 @@
"Resources",
"rCWAlarmLowCPUWeb",
"DependsOn"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 5,
+ "LineNumber": 698
+ }
},
- "Level": "Warning",
"Message": "Obsolete DependsOn on resource (rAutoScalingGroupWeb), dependency already enforced by a \"Ref\" at Resources/rCWAlarmLowCPUWeb/Properties/Dimensions/0/Value/Ref/rAutoScalingGroupWeb",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
},
{
- "Rule": {
- "Id": "E3012",
- "Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values",
- "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 708
- },
"End": {
"ColumnNumber": 24,
"LineNumber": 708
@@ -799,24 +1190,24 @@
"rCWAlarmLowCPUWeb",
"Properties",
"EvaluationPeriods"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 708
+ }
},
- "Level": "Error",
"Message": "Property Resources/rCWAlarmLowCPUWeb/Properties/EvaluationPeriods should be of type Integer",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
"ShortDescription": "Check resource properties values",
"Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 711
- },
"End": {
"ColumnNumber": 13,
"LineNumber": 711
@@ -826,24 +1217,24 @@
"rCWAlarmLowCPUWeb",
"Properties",
"Period"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 711
+ }
},
- "Level": "Error",
"Message": "Property Resources/rCWAlarmLowCPUWeb/Properties/Period should be of type Integer",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
"ShortDescription": "Check resource properties values",
"Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 713
- },
"End": {
"ColumnNumber": 16,
"LineNumber": 713
@@ -853,24 +1244,24 @@
"rCWAlarmLowCPUWeb",
"Properties",
"Threshold"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 713
+ }
},
- "Level": "Error",
"Message": "Property Resources/rCWAlarmLowCPUWeb/Properties/Threshold should be of type Double",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
+ "Rule": {
+ "Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
},
{
- "Rule": {
- "Id": "W3005",
- "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
- "ShortDescription": "Check obsolete DependsOn configuration for Resources",
- "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
- },
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Warning",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 724
- },
"End": {
"ColumnNumber": 23,
"LineNumber": 724
@@ -880,24 +1271,24 @@
"rELBApp",
"DependsOn",
0
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 724
+ }
},
- "Level": "Warning",
"Message": "Obsolete DependsOn on resource (rS3ELBAccessLogs), dependency already enforced by a \"Ref\" at Resources/rELBApp/Properties/AccessLoggingPolicy/S3BucketName/Ref/rS3ELBAccessLogs",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
- },
- {
"Rule": {
- "Id": "W3005",
"Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
"ShortDescription": "Check obsolete DependsOn configuration for Resources",
"Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Warning",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 725
- },
"End": {
"ColumnNumber": 24,
"LineNumber": 725
@@ -907,24 +1298,24 @@
"rELBApp",
"DependsOn",
1
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 725
+ }
},
- "Level": "Warning",
"Message": "Obsolete DependsOn on resource (rSecurityGroupApp), dependency already enforced by a \"Ref\" at Resources/rELBApp/Properties/SecurityGroups/0/Ref/rSecurityGroupApp",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
},
{
- "Rule": {
- "Id": "E3012",
- "Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values",
- "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 729
- },
"End": {
"ColumnNumber": 21,
"LineNumber": 729
@@ -935,24 +1326,24 @@
"Properties",
"AccessLoggingPolicy",
"EmitInterval"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 729
+ }
},
- "Level": "Error",
"Message": "Property Resources/rELBApp/Properties/AccessLoggingPolicy/EmitInterval should be of type Integer",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
"ShortDescription": "Check resource properties values",
"Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 730
- },
"End": {
"ColumnNumber": 16,
"LineNumber": 730
@@ -963,24 +1354,24 @@
"Properties",
"AccessLoggingPolicy",
"Enabled"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 730
+ }
},
- "Level": "Error",
"Message": "Property Resources/rELBApp/Properties/AccessLoggingPolicy/Enabled should be of type Boolean",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
+ "Rule": {
+ "Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
},
{
- "Rule": {
- "Id": "W3005",
- "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
- "ShortDescription": "Check obsolete DependsOn configuration for Resources",
- "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
- },
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Warning",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 760
- },
"End": {
"ColumnNumber": 23,
"LineNumber": 760
@@ -990,24 +1381,24 @@
"rELBWeb",
"DependsOn",
0
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 760
+ }
},
- "Level": "Warning",
"Message": "Obsolete DependsOn on resource (rS3ELBAccessLogs), dependency already enforced by a \"Ref\" at Resources/rELBWeb/Properties/AccessLoggingPolicy/S3BucketName/Ref/rS3ELBAccessLogs",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
- },
- {
"Rule": {
- "Id": "W3005",
"Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
"ShortDescription": "Check obsolete DependsOn configuration for Resources",
"Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Warning",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 761
- },
"End": {
"ColumnNumber": 24,
"LineNumber": 761
@@ -1017,24 +1408,24 @@
"rELBWeb",
"DependsOn",
1
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 761
+ }
},
- "Level": "Warning",
"Message": "Obsolete DependsOn on resource (rSecurityGroupWeb), dependency already enforced by a \"Ref\" at Resources/rELBWeb/Properties/SecurityGroups/0/Ref/rSecurityGroupWeb",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
},
{
- "Rule": {
- "Id": "E3012",
- "Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values",
- "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 765
- },
"End": {
"ColumnNumber": 21,
"LineNumber": 765
@@ -1045,24 +1436,24 @@
"Properties",
"AccessLoggingPolicy",
"EmitInterval"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 765
+ }
},
- "Level": "Error",
"Message": "Property Resources/rELBWeb/Properties/AccessLoggingPolicy/EmitInterval should be of type Integer",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
"ShortDescription": "Check resource properties values",
"Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 766
- },
"End": {
"ColumnNumber": 16,
"LineNumber": 766
@@ -1073,24 +1464,85 @@
"Properties",
"AccessLoggingPolicy",
"Enabled"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 766
+ }
},
- "Level": "Error",
"Message": "Property Resources/rELBWeb/Properties/AccessLoggingPolicy/Enabled should be of type Boolean",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
+ "Rule": {
+ "Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
},
{
- "Rule": {
- "Id": "W3005",
- "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
- "ShortDescription": "Check obsolete DependsOn configuration for Resources",
- "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
- },
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Informational",
"Location": {
+ "End": {
+ "ColumnNumber": 19,
+ "LineNumber": 813
+ },
+ "Path": [
+ "Resources",
+ "rPostProcInstance",
+ "Properties",
+ "UserData",
+ "Fn::Base64",
+ "Fn::Join"
+ ],
"Start": {
- "ColumnNumber": 7,
- "LineNumber": 1004
+ "ColumnNumber": 11,
+ "LineNumber": 813
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 23,
+ "LineNumber": 923
},
+ "Path": [
+ "Resources",
+ "rPostProcInstance",
+ "Properties",
+ "UserData",
+ "Fn::Base64",
+ "Fn::Join",
+ 1,
+ 44,
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 15,
+ "LineNumber": 923
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Warning",
+ "Location": {
"End": {
"ColumnNumber": 21,
"LineNumber": 1004
@@ -1100,24 +1552,24 @@
"rRDSInstanceMySQL",
"DependsOn",
0
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 1004
+ }
},
- "Level": "Warning",
"Message": "Obsolete DependsOn on resource (rDBSubnetGroup), dependency already enforced by a \"Ref\" at Resources/rRDSInstanceMySQL/Properties/DBSubnetGroupName/Ref/rDBSubnetGroup",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
- },
- {
"Rule": {
- "Id": "W3005",
"Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
"ShortDescription": "Check obsolete DependsOn configuration for Resources",
"Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Warning",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 1005
- },
"End": {
"ColumnNumber": 24,
"LineNumber": 1005
@@ -1127,24 +1579,24 @@
"rRDSInstanceMySQL",
"DependsOn",
1
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 1005
+ }
},
- "Level": "Warning",
"Message": "Obsolete DependsOn on resource (rSecurityGroupRDS), dependency already enforced by a \"Ref\" at Resources/rRDSInstanceMySQL/Properties/VPCSecurityGroups/0/Ref/rSecurityGroupRDS",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
},
{
- "Rule": {
- "Id": "E3012",
- "Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values",
- "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 1020
- },
"End": {
"ColumnNumber": 14,
"LineNumber": 1020
@@ -1154,51 +1606,82 @@
"rRDSInstanceMySQL",
"Properties",
"MultiAZ"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 1020
+ }
},
- "Level": "Error",
"Message": "Property Resources/rRDSInstanceMySQL/Properties/MultiAZ should be of type Boolean",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
+ "Rule": {
+ "Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
},
{
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Error",
+ "Location": {
+ "End": {
+ "ColumnNumber": 23,
+ "LineNumber": 1021
+ },
+ "Path": [
+ "Resources",
+ "rRDSInstanceMySQL",
+ "Properties",
+ "StorageEncrypted"
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 1021
+ }
+ },
+ "Message": "Property Resources/rRDSInstanceMySQL/Properties/StorageEncrypted should be of type Boolean",
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
"ShortDescription": "Check resource properties values",
"Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Informational",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 1021
- },
"End": {
- "ColumnNumber": 23,
- "LineNumber": 1021
+ "ColumnNumber": 21,
+ "LineNumber": 1042
},
"Path": [
"Resources",
- "rRDSInstanceMySQL",
+ "rS3AccessLogsPolicy",
"Properties",
- "StorageEncrypted"
- ]
+ "PolicyDocument",
+ "Statement",
+ 0,
+ "Resource",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 13,
+ "LineNumber": 1042
+ }
},
- "Level": "Error",
- "Message": "Property Resources/rRDSInstanceMySQL/Properties/StorageEncrypted should be of type Boolean",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
},
{
- "Rule": {
- "Id": "W2511",
- "Description": "See if the elements inside an IAM Resource policy are configured correctly.",
- "ShortDescription": "Check IAM Resource Policies syntax",
- "Source": "https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements.html"
- },
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Warning",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 1057
- },
"End": {
"ColumnNumber": 16,
"LineNumber": 1057
@@ -1209,24 +1692,24 @@
"Properties",
"PolicyDocument",
"Version"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 1057
+ }
},
- "Level": "Warning",
"Message": "IAM Policy Version should be updated to '2012-10-17'.",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
+ "Rule": {
+ "Description": "See if the elements inside an IAM Resource policy are configured correctly.",
+ "Id": "W2511",
+ "ShortDescription": "Check IAM Resource Policies syntax",
+ "Source": "https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements.html"
+ }
},
{
- "Rule": {
- "Id": "E3012",
- "Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values",
- "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 1069
- },
"End": {
"ColumnNumber": 17,
"LineNumber": 1069
@@ -1238,24 +1721,24 @@
"SecurityGroupEgress",
0,
"FromPort"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 1069
+ }
},
- "Level": "Error",
"Message": "Property Resources/rSecurityGroupApp/Properties/SecurityGroupEgress/0/FromPort should be of type Integer",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
"ShortDescription": "Check resource properties values",
"Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 1071
- },
"End": {
"ColumnNumber": 15,
"LineNumber": 1071
@@ -1267,24 +1750,24 @@
"SecurityGroupEgress",
0,
"ToPort"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 1071
+ }
},
- "Level": "Error",
"Message": "Property Resources/rSecurityGroupApp/Properties/SecurityGroupEgress/0/ToPort should be of type Integer",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
"ShortDescription": "Check resource properties values",
"Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 1073
- },
"End": {
"ColumnNumber": 17,
"LineNumber": 1073
@@ -1296,24 +1779,24 @@
"SecurityGroupEgress",
1,
"FromPort"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 1073
+ }
},
- "Level": "Error",
"Message": "Property Resources/rSecurityGroupApp/Properties/SecurityGroupEgress/1/FromPort should be of type Integer",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
"ShortDescription": "Check resource properties values",
"Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 1075
- },
"End": {
"ColumnNumber": 15,
"LineNumber": 1075
@@ -1325,24 +1808,24 @@
"SecurityGroupEgress",
1,
"ToPort"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 1075
+ }
},
- "Level": "Error",
"Message": "Property Resources/rSecurityGroupApp/Properties/SecurityGroupEgress/1/ToPort should be of type Integer",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
"ShortDescription": "Check resource properties values",
"Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 1079
- },
"End": {
"ColumnNumber": 17,
"LineNumber": 1079
@@ -1354,24 +1837,24 @@
"SecurityGroupIngress",
0,
"FromPort"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 1079
+ }
},
- "Level": "Error",
"Message": "Property Resources/rSecurityGroupApp/Properties/SecurityGroupIngress/0/FromPort should be of type Integer",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
"ShortDescription": "Check resource properties values",
"Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 1081
- },
"End": {
"ColumnNumber": 15,
"LineNumber": 1081
@@ -1383,24 +1866,24 @@
"SecurityGroupIngress",
0,
"ToPort"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 1081
+ }
},
- "Level": "Error",
"Message": "Property Resources/rSecurityGroupApp/Properties/SecurityGroupIngress/0/ToPort should be of type Integer",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
"ShortDescription": "Check resource properties values",
"Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 1097
- },
"End": {
"ColumnNumber": 17,
"LineNumber": 1097
@@ -1412,24 +1895,24 @@
"SecurityGroupIngress",
0,
"FromPort"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 1097
+ }
},
- "Level": "Error",
"Message": "Property Resources/rSecurityGroupAppInstance/Properties/SecurityGroupIngress/0/FromPort should be of type Integer",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
"ShortDescription": "Check resource properties values",
"Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 1099
- },
"End": {
"ColumnNumber": 15,
"LineNumber": 1099
@@ -1441,24 +1924,24 @@
"SecurityGroupIngress",
0,
"ToPort"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 1099
+ }
},
- "Level": "Error",
"Message": "Property Resources/rSecurityGroupAppInstance/Properties/SecurityGroupIngress/0/ToPort should be of type Integer",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
"ShortDescription": "Check resource properties values",
"Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 1102
- },
"End": {
"ColumnNumber": 17,
"LineNumber": 1102
@@ -1470,24 +1953,24 @@
"SecurityGroupIngress",
1,
"FromPort"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 1102
+ }
},
- "Level": "Error",
"Message": "Property Resources/rSecurityGroupAppInstance/Properties/SecurityGroupIngress/1/FromPort should be of type Integer",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
"ShortDescription": "Check resource properties values",
"Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 1104
- },
"End": {
"ColumnNumber": 15,
"LineNumber": 1104
@@ -1499,24 +1982,24 @@
"SecurityGroupIngress",
1,
"ToPort"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 1104
+ }
},
- "Level": "Error",
"Message": "Property Resources/rSecurityGroupAppInstance/Properties/SecurityGroupIngress/1/ToPort should be of type Integer",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
"ShortDescription": "Check resource properties values",
"Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 1107
- },
"End": {
"ColumnNumber": 17,
"LineNumber": 1107
@@ -1528,24 +2011,24 @@
"SecurityGroupIngress",
2,
"FromPort"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 1107
+ }
},
- "Level": "Error",
"Message": "Property Resources/rSecurityGroupAppInstance/Properties/SecurityGroupIngress/2/FromPort should be of type Integer",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
"ShortDescription": "Check resource properties values",
"Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 1109
- },
"End": {
"ColumnNumber": 15,
"LineNumber": 1109
@@ -1557,24 +2040,24 @@
"SecurityGroupIngress",
2,
"ToPort"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 1109
+ }
},
- "Level": "Error",
"Message": "Property Resources/rSecurityGroupAppInstance/Properties/SecurityGroupIngress/2/ToPort should be of type Integer",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
"ShortDescription": "Check resource properties values",
"Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 1123
- },
"End": {
"ColumnNumber": 17,
"LineNumber": 1123
@@ -1586,24 +2069,24 @@
"SecurityGroupIngress",
0,
"FromPort"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 1123
+ }
},
- "Level": "Error",
"Message": "Property Resources/rSecurityGroupRDS/Properties/SecurityGroupIngress/0/FromPort should be of type Integer",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
"ShortDescription": "Check resource properties values",
"Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
- "Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 1127
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Error",
+ "Location": {
"End": {
"ColumnNumber": 15,
"LineNumber": 1127
@@ -1615,24 +2098,24 @@
"SecurityGroupIngress",
0,
"ToPort"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 1127
+ }
},
- "Level": "Error",
"Message": "Property Resources/rSecurityGroupRDS/Properties/SecurityGroupIngress/0/ToPort should be of type Integer",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
"ShortDescription": "Check resource properties values",
"Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 1142
- },
"End": {
"ColumnNumber": 17,
"LineNumber": 1142
@@ -1644,24 +2127,24 @@
"SecurityGroupIngress",
0,
"FromPort"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 1142
+ }
},
- "Level": "Error",
"Message": "Property Resources/rSecurityGroupWeb/Properties/SecurityGroupIngress/0/FromPort should be of type Integer",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
"ShortDescription": "Check resource properties values",
"Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 1144
- },
"End": {
"ColumnNumber": 15,
"LineNumber": 1144
@@ -1673,24 +2156,24 @@
"SecurityGroupIngress",
0,
"ToPort"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 1144
+ }
},
- "Level": "Error",
"Message": "Property Resources/rSecurityGroupWeb/Properties/SecurityGroupIngress/0/ToPort should be of type Integer",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
"ShortDescription": "Check resource properties values",
"Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 1154
- },
"End": {
"ColumnNumber": 17,
"LineNumber": 1154
@@ -1702,24 +2185,24 @@
"SecurityGroupIngress",
0,
"FromPort"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 1154
+ }
},
- "Level": "Error",
"Message": "Property Resources/rSecurityGroupWebInstance/Properties/SecurityGroupIngress/0/FromPort should be of type Integer",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
"ShortDescription": "Check resource properties values",
"Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 1156
- },
"End": {
"ColumnNumber": 15,
"LineNumber": 1156
@@ -1731,24 +2214,24 @@
"SecurityGroupIngress",
0,
"ToPort"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 1156
+ }
},
- "Level": "Error",
"Message": "Property Resources/rSecurityGroupWebInstance/Properties/SecurityGroupIngress/0/ToPort should be of type Integer",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
"ShortDescription": "Check resource properties values",
"Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 1159
- },
"End": {
"ColumnNumber": 17,
"LineNumber": 1159
@@ -1760,24 +2243,24 @@
"SecurityGroupIngress",
1,
"FromPort"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 1159
+ }
},
- "Level": "Error",
"Message": "Property Resources/rSecurityGroupWebInstance/Properties/SecurityGroupIngress/1/FromPort should be of type Integer",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
"ShortDescription": "Check resource properties values",
"Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 1161
- },
"End": {
"ColumnNumber": 15,
"LineNumber": 1161
@@ -1789,24 +2272,24 @@
"SecurityGroupIngress",
1,
"ToPort"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 1161
+ }
},
- "Level": "Error",
"Message": "Property Resources/rSecurityGroupWebInstance/Properties/SecurityGroupIngress/1/ToPort should be of type Integer",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
"ShortDescription": "Check resource properties values",
"Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 1164
- },
"End": {
"ColumnNumber": 17,
"LineNumber": 1164
@@ -1818,24 +2301,24 @@
"SecurityGroupIngress",
2,
"FromPort"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 1164
+ }
},
- "Level": "Error",
"Message": "Property Resources/rSecurityGroupWebInstance/Properties/SecurityGroupIngress/2/FromPort should be of type Integer",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
"ShortDescription": "Check resource properties values",
"Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 1166
- },
"End": {
"ColumnNumber": 15,
"LineNumber": 1166
@@ -1847,24 +2330,24 @@
"SecurityGroupIngress",
2,
"ToPort"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 1166
+ }
},
- "Level": "Error",
"Message": "Property Resources/rSecurityGroupWebInstance/Properties/SecurityGroupIngress/2/ToPort should be of type Integer",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
"ShortDescription": "Check resource properties values",
"Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 11,
- "LineNumber": 1182
- },
"End": {
"ColumnNumber": 27,
"LineNumber": 1182
@@ -1877,24 +2360,24 @@
"Rules",
0,
"ExpirationInDays"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 1182
+ }
},
- "Level": "Error",
"Message": "Property Resources/rWebContentBucket/Properties/LifecycleConfiguration/Rules/0/ExpirationInDays should be of type Integer",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
"ShortDescription": "Check resource properties values",
"Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 13,
- "LineNumber": 1191
- },
"End": {
"ColumnNumber": 29,
"LineNumber": 1191
@@ -1908,24 +2391,24 @@
0,
"Transition",
"TransitionInDays"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 13,
+ "LineNumber": 1191
+ }
},
- "Level": "Error",
"Message": "Property Resources/rWebContentBucket/Properties/LifecycleConfiguration/Rules/0/Transition/TransitionInDays should be of type Integer",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
+ "Rule": {
+ "Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
},
{
- "Rule": {
- "Id": "W3005",
- "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
- "ShortDescription": "Check obsolete DependsOn configuration for Resources",
- "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
- },
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Warning",
"Location": {
- "Start": {
- "ColumnNumber": 5,
- "LineNumber": 1197
- },
"End": {
"ColumnNumber": 14,
"LineNumber": 1197
@@ -1934,24 +2417,24 @@
"Resources",
"rWebContentS3Policy",
"DependsOn"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 5,
+ "LineNumber": 1197
+ }
},
- "Level": "Warning",
"Message": "Obsolete DependsOn on resource (rWebContentBucket), dependency already enforced by a \"Ref\" at Resources/rWebContentS3Policy/Properties/Bucket/Ref/rWebContentBucket",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
- },
- {
"Rule": {
- "Id": "W3005",
"Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
"ShortDescription": "Check obsolete DependsOn configuration for Resources",
"Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Warning",
"Location": {
- "Start": {
- "ColumnNumber": 5,
- "LineNumber": 1197
- },
"End": {
"ColumnNumber": 14,
"LineNumber": 1197
@@ -1960,24 +2443,24 @@
"Resources",
"rWebContentS3Policy",
"DependsOn"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 5,
+ "LineNumber": 1197
+ }
},
- "Level": "Warning",
"Message": "Obsolete DependsOn on resource (rWebContentBucket), dependency already enforced by a \"Ref\" at Resources/rWebContentS3Policy/Properties/PolicyDocument/Statement/0/Resource/Fn::Join/1/3/Ref/rWebContentBucket",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
- },
- {
"Rule": {
- "Id": "W3005",
"Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
"ShortDescription": "Check obsolete DependsOn configuration for Resources",
"Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Warning",
"Location": {
- "Start": {
- "ColumnNumber": 5,
- "LineNumber": 1197
- },
"End": {
"ColumnNumber": 14,
"LineNumber": 1197
@@ -1986,10 +2469,80 @@
"Resources",
"rWebContentS3Policy",
"DependsOn"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 5,
+ "LineNumber": 1197
+ }
},
- "Level": "Warning",
"Message": "Obsolete DependsOn on resource (rWebContentBucket), dependency already enforced by a \"Ref\" at Resources/rWebContentS3Policy/Properties/PolicyDocument/Statement/1/Resource/Fn::Join/1/3/Ref/rWebContentBucket",
- "Filename": "test/fixtures/templates/quickstart/nist_application.yaml"
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 21,
+ "LineNumber": 1210
+ },
+ "Path": [
+ "Resources",
+ "rWebContentS3Policy",
+ "Properties",
+ "PolicyDocument",
+ "Statement",
+ 0,
+ "Resource",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 13,
+ "LineNumber": 1210
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 21,
+ "LineNumber": 1227
+ },
+ "Path": [
+ "Resources",
+ "rWebContentS3Policy",
+ "Properties",
+ "PolicyDocument",
+ "Statement",
+ 1,
+ "Resource",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 13,
+ "LineNumber": 1227
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
}
-]
\ No newline at end of file
+]
diff --git a/test/fixtures/results/quickstart/nist_high_master.json b/test/fixtures/results/quickstart/nist_high_master.json
--- a/test/fixtures/results/quickstart/nist_high_master.json
+++ b/test/fixtures/results/quickstart/nist_high_master.json
@@ -7,14 +7,14 @@
"ColumnNumber": 30,
"LineNumber": 11
},
- "Start": {
- "ColumnNumber": 3,
- "LineNumber": 11
- },
"Path": [
"Conditions",
"LoadConfigRulesTemplateAuto"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 3,
+ "LineNumber": 11
+ }
},
"Message": "Condition LoadConfigRulesTemplateAuto not used",
"Rule": {
@@ -32,18 +32,18 @@
"ColumnNumber": 28,
"LineNumber": 278
},
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 278
- },
"Path": [
"Resources",
"ApplicationTemplate",
"DependsOn",
0
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 278
+ }
},
- "Message": "Obsolete DependsOn on resource (ProductionVpcTemplate), dependency already enforced by a \"Fn:GetAtt\" at Resources/ApplicationTemplate/Properties/Parameters/pAppPrivateSubnetB/Fn::GetAtt/['ProductionVpcTemplate', 'Outputs.rAppPrivateSubnetB']",
+ "Message": "Obsolete DependsOn on resource (ProductionVpcTemplate), dependency already enforced by a \"Fn:GetAtt\" at Resources/ApplicationTemplate/Properties/Parameters/pAppPrivateSubnetA/Fn::GetAtt/['ProductionVpcTemplate', 'Outputs.rAppPrivateSubnetA']",
"Rule": {
"Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
"Id": "W3005",
@@ -59,18 +59,18 @@
"ColumnNumber": 28,
"LineNumber": 278
},
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 278
- },
"Path": [
"Resources",
"ApplicationTemplate",
"DependsOn",
0
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 278
+ }
},
- "Message": "Obsolete DependsOn on resource (ProductionVpcTemplate), dependency already enforced by a \"Fn:GetAtt\" at Resources/ApplicationTemplate/Properties/Parameters/pDBPrivateSubnetA/Fn::GetAtt/['ProductionVpcTemplate', 'Outputs.rDBPrivateSubnetA']",
+ "Message": "Obsolete DependsOn on resource (ProductionVpcTemplate), dependency already enforced by a \"Fn:GetAtt\" at Resources/ApplicationTemplate/Properties/Parameters/pAppPrivateSubnetB/Fn::GetAtt/['ProductionVpcTemplate', 'Outputs.rAppPrivateSubnetB']",
"Rule": {
"Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
"Id": "W3005",
@@ -86,18 +86,18 @@
"ColumnNumber": 28,
"LineNumber": 278
},
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 278
- },
"Path": [
"Resources",
"ApplicationTemplate",
"DependsOn",
0
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 278
+ }
},
- "Message": "Obsolete DependsOn on resource (ProductionVpcTemplate), dependency already enforced by a \"Fn:GetAtt\" at Resources/ApplicationTemplate/Properties/Parameters/pDBPrivateSubnetB/Fn::GetAtt/['ProductionVpcTemplate', 'Outputs.rDBPrivateSubnetB']",
+ "Message": "Obsolete DependsOn on resource (ProductionVpcTemplate), dependency already enforced by a \"Fn:GetAtt\" at Resources/ApplicationTemplate/Properties/Parameters/pDBPrivateSubnetA/Fn::GetAtt/['ProductionVpcTemplate', 'Outputs.rDBPrivateSubnetA']",
"Rule": {
"Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
"Id": "W3005",
@@ -113,18 +113,18 @@
"ColumnNumber": 28,
"LineNumber": 278
},
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 278
- },
"Path": [
"Resources",
"ApplicationTemplate",
"DependsOn",
0
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 278
+ }
},
- "Message": "Obsolete DependsOn on resource (ProductionVpcTemplate), dependency already enforced by a \"Fn:GetAtt\" at Resources/ApplicationTemplate/Properties/Parameters/pDMZSubnetA/Fn::GetAtt/['ProductionVpcTemplate', 'Outputs.rDMZSubnetA']",
+ "Message": "Obsolete DependsOn on resource (ProductionVpcTemplate), dependency already enforced by a \"Fn:GetAtt\" at Resources/ApplicationTemplate/Properties/Parameters/pDBPrivateSubnetB/Fn::GetAtt/['ProductionVpcTemplate', 'Outputs.rDBPrivateSubnetB']",
"Rule": {
"Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
"Id": "W3005",
@@ -140,18 +140,18 @@
"ColumnNumber": 28,
"LineNumber": 278
},
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 278
- },
"Path": [
"Resources",
"ApplicationTemplate",
"DependsOn",
0
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 278
+ }
},
- "Message": "Obsolete DependsOn on resource (ProductionVpcTemplate), dependency already enforced by a \"Fn:GetAtt\" at Resources/ApplicationTemplate/Properties/Parameters/pDMZSubnetB/Fn::GetAtt/['ProductionVpcTemplate', 'Outputs.rDMZSubnetB']",
+ "Message": "Obsolete DependsOn on resource (ProductionVpcTemplate), dependency already enforced by a \"Fn:GetAtt\" at Resources/ApplicationTemplate/Properties/Parameters/pDMZSubnetA/Fn::GetAtt/['ProductionVpcTemplate', 'Outputs.rDMZSubnetA']",
"Rule": {
"Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
"Id": "W3005",
@@ -167,18 +167,18 @@
"ColumnNumber": 28,
"LineNumber": 278
},
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 278
- },
"Path": [
"Resources",
"ApplicationTemplate",
"DependsOn",
0
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 278
+ }
},
- "Message": "Obsolete DependsOn on resource (ProductionVpcTemplate), dependency already enforced by a \"Fn:GetAtt\" at Resources/ApplicationTemplate/Properties/Parameters/pAppPrivateSubnetA/Fn::GetAtt/['ProductionVpcTemplate', 'Outputs.rAppPrivateSubnetA']",
+ "Message": "Obsolete DependsOn on resource (ProductionVpcTemplate), dependency already enforced by a \"Fn:GetAtt\" at Resources/ApplicationTemplate/Properties/Parameters/pDMZSubnetB/Fn::GetAtt/['ProductionVpcTemplate', 'Outputs.rDMZSubnetB']",
"Rule": {
"Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
"Id": "W3005",
@@ -194,16 +194,16 @@
"ColumnNumber": 28,
"LineNumber": 278
},
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 278
- },
"Path": [
"Resources",
"ApplicationTemplate",
"DependsOn",
0
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 278
+ }
},
"Message": "Obsolete DependsOn on resource (ProductionVpcTemplate), dependency already enforced by a \"Fn:GetAtt\" at Resources/ApplicationTemplate/Properties/Parameters/pProductionVPC/Fn::GetAtt/['ProductionVpcTemplate', 'Outputs.rVPCProduction']",
"Rule": {
@@ -221,16 +221,16 @@
"ColumnNumber": 28,
"LineNumber": 279
},
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 279
- },
"Path": [
"Resources",
"ApplicationTemplate",
"DependsOn",
1
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 279
+ }
},
"Message": "Obsolete DependsOn on resource (ManagementVpcTemplate), dependency already enforced by a \"Fn:GetAtt\" at Resources/ApplicationTemplate/Properties/Parameters/pDeepSecurityAgentDownload/Fn::GetAtt/['ManagementVpcTemplate', 'Outputs.rDeepSecurityAgentDownload']",
"Rule": {
@@ -248,16 +248,16 @@
"ColumnNumber": 28,
"LineNumber": 279
},
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 279
- },
"Path": [
"Resources",
"ApplicationTemplate",
"DependsOn",
1
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 279
+ }
},
"Message": "Obsolete DependsOn on resource (ManagementVpcTemplate), dependency already enforced by a \"Fn:GetAtt\" at Resources/ApplicationTemplate/Properties/Parameters/pDeepSecurityHeartbeat/Fn::GetAtt/['ManagementVpcTemplate', 'Outputs.rDeepSecurityHeartbeat']",
"Rule": {
@@ -275,10 +275,6 @@
"ColumnNumber": 21,
"LineNumber": 293
},
- "Start": {
- "ColumnNumber": 11,
- "LineNumber": 293
- },
"Path": [
"Resources",
"ApplicationTemplate",
@@ -286,7 +282,11 @@
"Parameters",
"pAppPrivateSubnetA",
"Fn::GetAtt"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 293
+ }
},
"Message": "GetAtt to resource \"ProductionVpcTemplate\" that may not be available when condition \"EulaAccepted\" is False at Resources/ApplicationTemplate/Properties/Parameters/pAppPrivateSubnetA/Fn::GetAtt",
"Rule": {
@@ -304,10 +304,6 @@
"ColumnNumber": 21,
"LineNumber": 297
},
- "Start": {
- "ColumnNumber": 11,
- "LineNumber": 297
- },
"Path": [
"Resources",
"ApplicationTemplate",
@@ -315,7 +311,11 @@
"Parameters",
"pAppPrivateSubnetB",
"Fn::GetAtt"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 297
+ }
},
"Message": "GetAtt to resource \"ProductionVpcTemplate\" that may not be available when condition \"EulaAccepted\" is False at Resources/ApplicationTemplate/Properties/Parameters/pAppPrivateSubnetB/Fn::GetAtt",
"Rule": {
@@ -333,10 +333,6 @@
"ColumnNumber": 21,
"LineNumber": 311
},
- "Start": {
- "ColumnNumber": 11,
- "LineNumber": 311
- },
"Path": [
"Resources",
"ApplicationTemplate",
@@ -344,7 +340,11 @@
"Parameters",
"pDBPrivateSubnetA",
"Fn::GetAtt"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 311
+ }
},
"Message": "GetAtt to resource \"ProductionVpcTemplate\" that may not be available when condition \"EulaAccepted\" is False at Resources/ApplicationTemplate/Properties/Parameters/pDBPrivateSubnetA/Fn::GetAtt",
"Rule": {
@@ -362,10 +362,6 @@
"ColumnNumber": 21,
"LineNumber": 315
},
- "Start": {
- "ColumnNumber": 11,
- "LineNumber": 315
- },
"Path": [
"Resources",
"ApplicationTemplate",
@@ -373,7 +369,11 @@
"Parameters",
"pDBPrivateSubnetB",
"Fn::GetAtt"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 315
+ }
},
"Message": "GetAtt to resource \"ProductionVpcTemplate\" that may not be available when condition \"EulaAccepted\" is False at Resources/ApplicationTemplate/Properties/Parameters/pDBPrivateSubnetB/Fn::GetAtt",
"Rule": {
@@ -391,10 +391,6 @@
"ColumnNumber": 21,
"LineNumber": 320
},
- "Start": {
- "ColumnNumber": 11,
- "LineNumber": 320
- },
"Path": [
"Resources",
"ApplicationTemplate",
@@ -402,7 +398,11 @@
"Parameters",
"pDMZSubnetA",
"Fn::GetAtt"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 320
+ }
},
"Message": "GetAtt to resource \"ProductionVpcTemplate\" that may not be available when condition \"EulaAccepted\" is False at Resources/ApplicationTemplate/Properties/Parameters/pDMZSubnetA/Fn::GetAtt",
"Rule": {
@@ -420,10 +420,6 @@
"ColumnNumber": 21,
"LineNumber": 324
},
- "Start": {
- "ColumnNumber": 11,
- "LineNumber": 324
- },
"Path": [
"Resources",
"ApplicationTemplate",
@@ -431,7 +427,11 @@
"Parameters",
"pDMZSubnetB",
"Fn::GetAtt"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 324
+ }
},
"Message": "GetAtt to resource \"ProductionVpcTemplate\" that may not be available when condition \"EulaAccepted\" is False at Resources/ApplicationTemplate/Properties/Parameters/pDMZSubnetB/Fn::GetAtt",
"Rule": {
@@ -449,10 +449,6 @@
"ColumnNumber": 21,
"LineNumber": 345
},
- "Start": {
- "ColumnNumber": 11,
- "LineNumber": 345
- },
"Path": [
"Resources",
"ApplicationTemplate",
@@ -460,7 +456,11 @@
"Parameters",
"pProductionVPC",
"Fn::GetAtt"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 345
+ }
},
"Message": "GetAtt to resource \"ProductionVpcTemplate\" that may not be available when condition \"EulaAccepted\" is False at Resources/ApplicationTemplate/Properties/Parameters/pProductionVPC/Fn::GetAtt",
"Rule": {
@@ -478,10 +478,6 @@
"ColumnNumber": 21,
"LineNumber": 353
},
- "Start": {
- "ColumnNumber": 11,
- "LineNumber": 353
- },
"Path": [
"Resources",
"ApplicationTemplate",
@@ -489,7 +485,11 @@
"Parameters",
"pSecurityAlarmTopic",
"Fn::GetAtt"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 353
+ }
},
"Message": "GetAtt to resource \"LoggingTemplate\" that may not be available when condition \"EulaAccepted\" is False at Resources/ApplicationTemplate/Properties/Parameters/pSecurityAlarmTopic/Fn::GetAtt",
"Rule": {
@@ -501,14 +501,38 @@
},
{
"Filename": "test/fixtures/templates/quickstart/nist_high_master.yaml",
- "Level": "Error",
+ "Level": "Informational",
"Location": {
"End": {
- "ColumnNumber": 23,
- "LineNumber": 384
+ "ColumnNumber": 17,
+ "LineNumber": 377
},
+ "Path": [
+ "Resources",
+ "ApplicationTemplate",
+ "Properties",
+ "TemplateURL",
+ "Fn::Join"
+ ],
"Start": {
- "ColumnNumber": 7,
+ "ColumnNumber": 9,
+ "LineNumber": 377
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_high_master.yaml",
+ "Level": "Error",
+ "Location": {
+ "End": {
+ "ColumnNumber": 23,
"LineNumber": 384
},
"Path": [
@@ -516,7 +540,11 @@
"ApplicationTemplate",
"Properties",
"TimeoutInMinutes"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 384
+ }
},
"Message": "Property Resources/ApplicationTemplate/Properties/TimeoutInMinutes should be of type Integer",
"Rule": {
@@ -528,14 +556,38 @@
},
{
"Filename": "test/fixtures/templates/quickstart/nist_high_master.yaml",
- "Level": "Error",
+ "Level": "Informational",
"Location": {
"End": {
- "ColumnNumber": 23,
- "LineNumber": 408
+ "ColumnNumber": 17,
+ "LineNumber": 401
},
+ "Path": [
+ "Resources",
+ "ConfigRulesTemplate",
+ "Properties",
+ "TemplateURL",
+ "Fn::Join"
+ ],
"Start": {
- "ColumnNumber": 7,
+ "ColumnNumber": 9,
+ "LineNumber": 401
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_high_master.yaml",
+ "Level": "Error",
+ "Location": {
+ "End": {
+ "ColumnNumber": 23,
"LineNumber": 408
},
"Path": [
@@ -543,7 +595,11 @@
"ConfigRulesTemplate",
"Properties",
"TimeoutInMinutes"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 408
+ }
},
"Message": "Property Resources/ConfigRulesTemplate/Properties/TimeoutInMinutes should be of type Integer",
"Rule": {
@@ -555,14 +611,38 @@
},
{
"Filename": "test/fixtures/templates/quickstart/nist_high_master.yaml",
- "Level": "Error",
+ "Level": "Informational",
"Location": {
"End": {
- "ColumnNumber": 23,
- "LineNumber": 421
+ "ColumnNumber": 17,
+ "LineNumber": 414
},
+ "Path": [
+ "Resources",
+ "IamTemplate",
+ "Properties",
+ "TemplateURL",
+ "Fn::Join"
+ ],
"Start": {
- "ColumnNumber": 7,
+ "ColumnNumber": 9,
+ "LineNumber": 414
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_high_master.yaml",
+ "Level": "Error",
+ "Location": {
+ "End": {
+ "ColumnNumber": 23,
"LineNumber": 421
},
"Path": [
@@ -570,7 +650,11 @@
"IamTemplate",
"Properties",
"TimeoutInMinutes"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 421
+ }
},
"Message": "Property Resources/IamTemplate/Properties/TimeoutInMinutes should be of type Integer",
"Rule": {
@@ -582,14 +666,38 @@
},
{
"Filename": "test/fixtures/templates/quickstart/nist_high_master.yaml",
- "Level": "Error",
+ "Level": "Informational",
"Location": {
"End": {
- "ColumnNumber": 23,
- "LineNumber": 442
+ "ColumnNumber": 17,
+ "LineNumber": 435
},
+ "Path": [
+ "Resources",
+ "LoggingTemplate",
+ "Properties",
+ "TemplateURL",
+ "Fn::Join"
+ ],
"Start": {
- "ColumnNumber": 7,
+ "ColumnNumber": 9,
+ "LineNumber": 435
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_high_master.yaml",
+ "Level": "Error",
+ "Location": {
+ "End": {
+ "ColumnNumber": 23,
"LineNumber": 442
},
"Path": [
@@ -597,7 +705,11 @@
"LoggingTemplate",
"Properties",
"TimeoutInMinutes"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 442
+ }
},
"Message": "Property Resources/LoggingTemplate/Properties/TimeoutInMinutes should be of type Integer",
"Rule": {
@@ -615,17 +727,17 @@
"ColumnNumber": 14,
"LineNumber": 445
},
- "Start": {
- "ColumnNumber": 5,
- "LineNumber": 445
- },
"Path": [
"Resources",
"ManagementVpcTemplate",
"DependsOn"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 5,
+ "LineNumber": 445
+ }
},
- "Message": "Obsolete DependsOn on resource (ProductionVpcTemplate), dependency already enforced by a \"Fn:GetAtt\" at Resources/ManagementVpcTemplate/Properties/Parameters/pRouteTableProdPublic/Fn::GetAtt/['ProductionVpcTemplate', 'Outputs.rRouteTableProdPublic']",
+ "Message": "Obsolete DependsOn on resource (ProductionVpcTemplate), dependency already enforced by a \"Fn:GetAtt\" at Resources/ManagementVpcTemplate/Properties/Parameters/pProductionVPC/Fn::GetAtt/['ProductionVpcTemplate', 'Outputs.rVPCProduction']",
"Rule": {
"Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
"Id": "W3005",
@@ -641,15 +753,15 @@
"ColumnNumber": 14,
"LineNumber": 445
},
- "Start": {
- "ColumnNumber": 5,
- "LineNumber": 445
- },
"Path": [
"Resources",
"ManagementVpcTemplate",
"DependsOn"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 5,
+ "LineNumber": 445
+ }
},
"Message": "Obsolete DependsOn on resource (ProductionVpcTemplate), dependency already enforced by a \"Fn:GetAtt\" at Resources/ManagementVpcTemplate/Properties/Parameters/pRouteTableProdPrivate/Fn::GetAtt/['ProductionVpcTemplate', 'Outputs.rRouteTableProdPrivate']",
"Rule": {
@@ -667,17 +779,17 @@
"ColumnNumber": 14,
"LineNumber": 445
},
- "Start": {
- "ColumnNumber": 5,
- "LineNumber": 445
- },
"Path": [
"Resources",
"ManagementVpcTemplate",
"DependsOn"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 5,
+ "LineNumber": 445
+ }
},
- "Message": "Obsolete DependsOn on resource (ProductionVpcTemplate), dependency already enforced by a \"Fn:GetAtt\" at Resources/ManagementVpcTemplate/Properties/Parameters/pProductionVPC/Fn::GetAtt/['ProductionVpcTemplate', 'Outputs.rVPCProduction']",
+ "Message": "Obsolete DependsOn on resource (ProductionVpcTemplate), dependency already enforced by a \"Fn:GetAtt\" at Resources/ManagementVpcTemplate/Properties/Parameters/pRouteTableProdPublic/Fn::GetAtt/['ProductionVpcTemplate', 'Outputs.rRouteTableProdPublic']",
"Rule": {
"Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
"Id": "W3005",
@@ -693,10 +805,6 @@
"ColumnNumber": 21,
"LineNumber": 490
},
- "Start": {
- "ColumnNumber": 11,
- "LineNumber": 490
- },
"Path": [
"Resources",
"ManagementVpcTemplate",
@@ -704,7 +812,11 @@
"Parameters",
"pProductionVPC",
"Fn::GetAtt"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 490
+ }
},
"Message": "GetAtt to resource \"ProductionVpcTemplate\" that may not be available when condition \"EulaAccepted\" is False at Resources/ManagementVpcTemplate/Properties/Parameters/pProductionVPC/Fn::GetAtt",
"Rule": {
@@ -722,10 +834,6 @@
"ColumnNumber": 21,
"LineNumber": 498
},
- "Start": {
- "ColumnNumber": 11,
- "LineNumber": 498
- },
"Path": [
"Resources",
"ManagementVpcTemplate",
@@ -733,7 +841,11 @@
"Parameters",
"pRouteTableProdPrivate",
"Fn::GetAtt"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 498
+ }
},
"Message": "GetAtt to resource \"ProductionVpcTemplate\" that may not be available when condition \"EulaAccepted\" is False at Resources/ManagementVpcTemplate/Properties/Parameters/pRouteTableProdPrivate/Fn::GetAtt",
"Rule": {
@@ -751,10 +863,6 @@
"ColumnNumber": 21,
"LineNumber": 502
},
- "Start": {
- "ColumnNumber": 11,
- "LineNumber": 502
- },
"Path": [
"Resources",
"ManagementVpcTemplate",
@@ -762,7 +870,11 @@
"Parameters",
"pRouteTableProdPublic",
"Fn::GetAtt"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 502
+ }
},
"Message": "GetAtt to resource \"ProductionVpcTemplate\" that may not be available when condition \"EulaAccepted\" is False at Resources/ManagementVpcTemplate/Properties/Parameters/pRouteTableProdPublic/Fn::GetAtt",
"Rule": {
@@ -774,14 +886,38 @@
},
{
"Filename": "test/fixtures/templates/quickstart/nist_high_master.yaml",
- "Level": "Error",
+ "Level": "Informational",
"Location": {
"End": {
- "ColumnNumber": 23,
- "LineNumber": 523
+ "ColumnNumber": 17,
+ "LineNumber": 516
},
+ "Path": [
+ "Resources",
+ "ManagementVpcTemplate",
+ "Properties",
+ "TemplateURL",
+ "Fn::Join"
+ ],
"Start": {
- "ColumnNumber": 7,
+ "ColumnNumber": 9,
+ "LineNumber": 516
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_high_master.yaml",
+ "Level": "Error",
+ "Location": {
+ "End": {
+ "ColumnNumber": 23,
"LineNumber": 523
},
"Path": [
@@ -789,7 +925,11 @@
"ManagementVpcTemplate",
"Properties",
"TimeoutInMinutes"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 523
+ }
},
"Message": "Property Resources/ManagementVpcTemplate/Properties/TimeoutInMinutes should be of type Integer",
"Rule": {
@@ -801,14 +941,38 @@
},
{
"Filename": "test/fixtures/templates/quickstart/nist_high_master.yaml",
- "Level": "Error",
+ "Level": "Informational",
"Location": {
"End": {
- "ColumnNumber": 23,
- "LineNumber": 577
+ "ColumnNumber": 17,
+ "LineNumber": 570
},
+ "Path": [
+ "Resources",
+ "ProductionVpcTemplate",
+ "Properties",
+ "TemplateURL",
+ "Fn::Join"
+ ],
"Start": {
- "ColumnNumber": 7,
+ "ColumnNumber": 9,
+ "LineNumber": 570
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_high_master.yaml",
+ "Level": "Error",
+ "Location": {
+ "End": {
+ "ColumnNumber": 23,
"LineNumber": 577
},
"Path": [
@@ -816,7 +980,11 @@
"ProductionVpcTemplate",
"Properties",
"TimeoutInMinutes"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 577
+ }
},
"Message": "Property Resources/ProductionVpcTemplate/Properties/TimeoutInMinutes should be of type Integer",
"Rule": {
@@ -826,4 +994,4 @@
"Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
}
}
-]
\ No newline at end of file
+]
diff --git a/test/fixtures/results/quickstart/nist_logging.json b/test/fixtures/results/quickstart/nist_logging.json
--- a/test/fixtures/results/quickstart/nist_logging.json
+++ b/test/fixtures/results/quickstart/nist_logging.json
@@ -1,15 +1,8 @@
[
{
- "Rule": {
- "Id": "E3012",
- "Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Filename": "test/fixtures/templates/quickstart/nist_logging.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 11,
- "LineNumber": 47
- },
"End": {
"ColumnNumber": 27,
"LineNumber": 47
@@ -22,23 +15,24 @@
"Rules",
0,
"ExpirationInDays"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 47
+ }
},
- "Level": "Error",
"Message": "Property Resources/rArchiveLogsBucket/Properties/LifecycleConfiguration/Rules/0/ExpirationInDays should be of type Integer",
- "Filename": "test/templates/quickstart/nist_logging.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_logging.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 13,
- "LineNumber": 56
- },
"End": {
"ColumnNumber": 29,
"LineNumber": 56
@@ -52,23 +46,24 @@
0,
"Transition",
"TransitionInDays"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 13,
+ "LineNumber": 56
+ }
},
- "Level": "Error",
"Message": "Property Resources/rArchiveLogsBucket/Properties/LifecycleConfiguration/Rules/0/Transition/TransitionInDays should be of type Integer",
- "Filename": "test/templates/quickstart/nist_logging.yaml"
+ "Rule": {
+ "Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
},
{
- "Rule": {
- "Id": "W3005",
- "Description": "Check if DependsOn is specified if not needed. A Ref and GetAtt implicitly results in DependsOn behaviour.",
- "ShortDescription": "Check obsolete DependsOn configuration for Resources"
- },
+ "Filename": "test/fixtures/templates/quickstart/nist_logging.yaml",
+ "Level": "Warning",
"Location": {
- "Start": {
- "ColumnNumber": 5,
- "LineNumber": 61
- },
"End": {
"ColumnNumber": 14,
"LineNumber": 61
@@ -77,23 +72,24 @@
"Resources",
"rArchiveLogsBucketPolicy",
"DependsOn"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 5,
+ "LineNumber": 61
+ }
},
- "Level": "Warning",
- "Message": "Obsolete DependsOn on resource (rArchiveLogsBucket), dependency already enforced by \"!Ref\" at Resources/rArchiveLogsBucketPolicy/Properties/Bucket/Ref/rArchiveLogsBucket",
- "Filename": "test/templates/quickstart/nist_logging.yaml"
- },
- {
+ "Message": "Obsolete DependsOn on resource (rArchiveLogsBucket), dependency already enforced by a \"Ref\" at Resources/rArchiveLogsBucketPolicy/Properties/Bucket/Ref/rArchiveLogsBucket",
"Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
"Id": "W3005",
- "Description": "Check if DependsOn is specified if not needed. A Ref and GetAtt implicitly results in DependsOn behaviour.",
- "ShortDescription": "Check obsolete DependsOn configuration for Resources"
- },
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_logging.yaml",
+ "Level": "Warning",
"Location": {
- "Start": {
- "ColumnNumber": 5,
- "LineNumber": 61
- },
"End": {
"ColumnNumber": 14,
"LineNumber": 61
@@ -102,23 +98,24 @@
"Resources",
"rArchiveLogsBucketPolicy",
"DependsOn"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 5,
+ "LineNumber": 61
+ }
},
- "Level": "Warning",
- "Message": "Obsolete DependsOn on resource (rArchiveLogsBucket), dependency already enforced by \"!Ref\" at Resources/rArchiveLogsBucketPolicy/Properties/PolicyDocument/Statement/0/Resource/0/Fn::Join/1/3/Ref/rArchiveLogsBucket",
- "Filename": "test/templates/quickstart/nist_logging.yaml"
- },
- {
+ "Message": "Obsolete DependsOn on resource (rArchiveLogsBucket), dependency already enforced by a \"Ref\" at Resources/rArchiveLogsBucketPolicy/Properties/PolicyDocument/Statement/0/Resource/0/Fn::Join/1/3/Ref/rArchiveLogsBucket",
"Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
"Id": "W3005",
- "Description": "Check if DependsOn is specified if not needed. A Ref and GetAtt implicitly results in DependsOn behaviour.",
- "ShortDescription": "Check obsolete DependsOn configuration for Resources"
- },
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_logging.yaml",
+ "Level": "Warning",
"Location": {
- "Start": {
- "ColumnNumber": 5,
- "LineNumber": 61
- },
"End": {
"ColumnNumber": 14,
"LineNumber": 61
@@ -127,23 +124,24 @@
"Resources",
"rArchiveLogsBucketPolicy",
"DependsOn"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 5,
+ "LineNumber": 61
+ }
},
- "Level": "Warning",
- "Message": "Obsolete DependsOn on resource (rArchiveLogsBucket), dependency already enforced by \"!Ref\" at Resources/rArchiveLogsBucketPolicy/Properties/PolicyDocument/Statement/1/Resource/0/Fn::Join/1/3/Ref/rArchiveLogsBucket",
- "Filename": "test/templates/quickstart/nist_logging.yaml"
- },
- {
+ "Message": "Obsolete DependsOn on resource (rArchiveLogsBucket), dependency already enforced by a \"Ref\" at Resources/rArchiveLogsBucketPolicy/Properties/PolicyDocument/Statement/1/Resource/0/Fn::Join/1/3/Ref/rArchiveLogsBucket",
"Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
"Id": "W3005",
- "Description": "Check if DependsOn is specified if not needed. A Ref and GetAtt implicitly results in DependsOn behaviour.",
- "ShortDescription": "Check obsolete DependsOn configuration for Resources"
- },
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_logging.yaml",
+ "Level": "Warning",
"Location": {
- "Start": {
- "ColumnNumber": 5,
- "LineNumber": 61
- },
"End": {
"ColumnNumber": 14,
"LineNumber": 61
@@ -152,23 +150,120 @@
"Resources",
"rArchiveLogsBucketPolicy",
"DependsOn"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 5,
+ "LineNumber": 61
+ }
},
- "Level": "Warning",
- "Message": "Obsolete DependsOn on resource (rArchiveLogsBucket), dependency already enforced by \"!Ref\" at Resources/rArchiveLogsBucketPolicy/Properties/PolicyDocument/Statement/2/Resource/0/Fn::Join/1/3/Ref/rArchiveLogsBucket",
- "Filename": "test/templates/quickstart/nist_logging.yaml"
+ "Message": "Obsolete DependsOn on resource (rArchiveLogsBucket), dependency already enforced by a \"Ref\" at Resources/rArchiveLogsBucketPolicy/Properties/PolicyDocument/Statement/2/Resource/0/Fn::Join/1/3/Ref/rArchiveLogsBucket",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
},
{
- "Rule": {
- "Id": "E3012",
- "Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "Filename": "test/fixtures/templates/quickstart/nist_logging.yaml",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 21,
+ "LineNumber": 74
+ },
+ "Path": [
+ "Resources",
+ "rArchiveLogsBucketPolicy",
+ "Properties",
+ "PolicyDocument",
+ "Statement",
+ 0,
+ "Resource",
+ 0,
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 13,
+ "LineNumber": 74
+ }
},
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_logging.yaml",
+ "Level": "Informational",
"Location": {
+ "End": {
+ "ColumnNumber": 21,
+ "LineNumber": 89
+ },
+ "Path": [
+ "Resources",
+ "rArchiveLogsBucketPolicy",
+ "Properties",
+ "PolicyDocument",
+ "Statement",
+ 1,
+ "Resource",
+ 0,
+ "Fn::Join"
+ ],
"Start": {
- "ColumnNumber": 7,
- "LineNumber": 151
+ "ColumnNumber": 13,
+ "LineNumber": 89
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_logging.yaml",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 21,
+ "LineNumber": 107
},
+ "Path": [
+ "Resources",
+ "rArchiveLogsBucketPolicy",
+ "Properties",
+ "PolicyDocument",
+ "Statement",
+ 2,
+ "Resource",
+ 0,
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 13,
+ "LineNumber": 107
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_logging.yaml",
+ "Level": "Error",
+ "Location": {
"End": {
"ColumnNumber": 24,
"LineNumber": 151
@@ -178,23 +273,24 @@
"rCloudTrailChangeAlarm",
"Properties",
"EvaluationPeriods"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 151
+ }
},
- "Level": "Error",
"Message": "Property Resources/rCloudTrailChangeAlarm/Properties/EvaluationPeriods should be of type Integer",
- "Filename": "test/templates/quickstart/nist_logging.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_logging.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 154
- },
"End": {
"ColumnNumber": 13,
"LineNumber": 154
@@ -204,23 +300,24 @@
"rCloudTrailChangeAlarm",
"Properties",
"Period"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 154
+ }
},
- "Level": "Error",
"Message": "Property Resources/rCloudTrailChangeAlarm/Properties/Period should be of type Integer",
- "Filename": "test/templates/quickstart/nist_logging.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_logging.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 156
- },
"End": {
"ColumnNumber": 16,
"LineNumber": 156
@@ -230,23 +327,24 @@
"rCloudTrailChangeAlarm",
"Properties",
"Threshold"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 156
+ }
},
- "Level": "Error",
"Message": "Property Resources/rCloudTrailChangeAlarm/Properties/Threshold should be of type Double",
- "Filename": "test/templates/quickstart/nist_logging.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_logging.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 160
- },
"End": {
"ColumnNumber": 22,
"LineNumber": 160
@@ -256,23 +354,24 @@
"rCloudTrailLogGroup",
"Properties",
"RetentionInDays"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 160
+ }
},
- "Level": "Error",
"Message": "Property Resources/rCloudTrailLogGroup/Properties/RetentionInDays should be of type Integer",
- "Filename": "test/templates/quickstart/nist_logging.yaml"
+ "Rule": {
+ "Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
},
{
- "Rule": {
- "Id": "W3005",
- "Description": "Check if DependsOn is specified if not needed. A Ref and GetAtt implicitly results in DependsOn behaviour.",
- "ShortDescription": "Check obsolete DependsOn configuration for Resources"
- },
+ "Filename": "test/fixtures/templates/quickstart/nist_logging.yaml",
+ "Level": "Warning",
"Location": {
- "Start": {
- "ColumnNumber": 5,
- "LineNumber": 180
- },
"End": {
"ColumnNumber": 14,
"LineNumber": 180
@@ -281,23 +380,92 @@
"Resources",
"rCloudTrailProfile",
"DependsOn"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 5,
+ "LineNumber": 180
+ }
},
- "Level": "Warning",
- "Message": "Obsolete DependsOn on resource (rCloudTrailRole), dependency already enforced by \"!Ref\" at Resources/rCloudTrailProfile/Properties/Roles/0/Ref/rCloudTrailRole",
- "Filename": "test/templates/quickstart/nist_logging.yaml"
- },
- {
+ "Message": "Obsolete DependsOn on resource (rCloudTrailRole), dependency already enforced by a \"Ref\" at Resources/rCloudTrailProfile/Properties/Roles/0/Ref/rCloudTrailRole",
"Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
"Id": "W3005",
- "Description": "Check if DependsOn is specified if not needed. A Ref and GetAtt implicitly results in DependsOn behaviour.",
- "ShortDescription": "Check obsolete DependsOn configuration for Resources"
- },
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_logging.yaml",
+ "Level": "Informational",
"Location": {
+ "End": {
+ "ColumnNumber": 23,
+ "LineNumber": 204
+ },
+ "Path": [
+ "Resources",
+ "rCloudTrailRole",
+ "Properties",
+ "Policies",
+ 0,
+ "PolicyDocument",
+ "Statement",
+ 0,
+ "Resource",
+ 0,
+ "Fn::Join"
+ ],
"Start": {
- "ColumnNumber": 5,
- "LineNumber": 232
+ "ColumnNumber": 15,
+ "LineNumber": 204
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_logging.yaml",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 23,
+ "LineNumber": 218
},
+ "Path": [
+ "Resources",
+ "rCloudTrailRole",
+ "Properties",
+ "Policies",
+ 0,
+ "PolicyDocument",
+ "Statement",
+ 1,
+ "Resource",
+ 0,
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 15,
+ "LineNumber": 218
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_logging.yaml",
+ "Level": "Warning",
+ "Location": {
"End": {
"ColumnNumber": 14,
"LineNumber": 232
@@ -306,23 +474,24 @@
"Resources",
"rCloudTrailS3Policy",
"DependsOn"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 5,
+ "LineNumber": 232
+ }
},
- "Level": "Warning",
- "Message": "Obsolete DependsOn on resource (rCloudTrailBucket), dependency already enforced by \"!Ref\" at Resources/rCloudTrailS3Policy/Properties/Bucket/Ref/rCloudTrailBucket",
- "Filename": "test/templates/quickstart/nist_logging.yaml"
- },
- {
+ "Message": "Obsolete DependsOn on resource (rCloudTrailBucket), dependency already enforced by a \"Ref\" at Resources/rCloudTrailS3Policy/Properties/Bucket/Ref/rCloudTrailBucket",
"Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
"Id": "W3005",
- "Description": "Check if DependsOn is specified if not needed. A Ref and GetAtt implicitly results in DependsOn behaviour.",
- "ShortDescription": "Check obsolete DependsOn configuration for Resources"
- },
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_logging.yaml",
+ "Level": "Warning",
"Location": {
- "Start": {
- "ColumnNumber": 5,
- "LineNumber": 232
- },
"End": {
"ColumnNumber": 14,
"LineNumber": 232
@@ -331,23 +500,24 @@
"Resources",
"rCloudTrailS3Policy",
"DependsOn"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 5,
+ "LineNumber": 232
+ }
},
- "Level": "Warning",
- "Message": "Obsolete DependsOn on resource (rCloudTrailBucket), dependency already enforced by \"!Ref\" at Resources/rCloudTrailS3Policy/Properties/PolicyDocument/Statement/0/Resource/0/Fn::Join/1/3/Ref/rCloudTrailBucket",
- "Filename": "test/templates/quickstart/nist_logging.yaml"
- },
- {
+ "Message": "Obsolete DependsOn on resource (rCloudTrailBucket), dependency already enforced by a \"Ref\" at Resources/rCloudTrailS3Policy/Properties/PolicyDocument/Statement/0/Resource/0/Fn::Join/1/3/Ref/rCloudTrailBucket",
"Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
"Id": "W3005",
- "Description": "Check if DependsOn is specified if not needed. A Ref and GetAtt implicitly results in DependsOn behaviour.",
- "ShortDescription": "Check obsolete DependsOn configuration for Resources"
- },
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_logging.yaml",
+ "Level": "Warning",
"Location": {
- "Start": {
- "ColumnNumber": 5,
- "LineNumber": 232
- },
"End": {
"ColumnNumber": 14,
"LineNumber": 232
@@ -356,23 +526,24 @@
"Resources",
"rCloudTrailS3Policy",
"DependsOn"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 5,
+ "LineNumber": 232
+ }
},
- "Level": "Warning",
- "Message": "Obsolete DependsOn on resource (rCloudTrailBucket), dependency already enforced by \"!Ref\" at Resources/rCloudTrailS3Policy/Properties/PolicyDocument/Statement/1/Resource/0/Fn::Join/1/3/Ref/rCloudTrailBucket",
- "Filename": "test/templates/quickstart/nist_logging.yaml"
- },
- {
+ "Message": "Obsolete DependsOn on resource (rCloudTrailBucket), dependency already enforced by a \"Ref\" at Resources/rCloudTrailS3Policy/Properties/PolicyDocument/Statement/1/Resource/0/Fn::Join/1/3/Ref/rCloudTrailBucket",
"Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
"Id": "W3005",
- "Description": "Check if DependsOn is specified if not needed. A Ref and GetAtt implicitly results in DependsOn behaviour.",
- "ShortDescription": "Check obsolete DependsOn configuration for Resources"
- },
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_logging.yaml",
+ "Level": "Warning",
"Location": {
- "Start": {
- "ColumnNumber": 5,
- "LineNumber": 232
- },
"End": {
"ColumnNumber": 14,
"LineNumber": 232
@@ -381,23 +552,50 @@
"Resources",
"rCloudTrailS3Policy",
"DependsOn"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 5,
+ "LineNumber": 232
+ }
},
- "Level": "Warning",
- "Message": "Obsolete DependsOn on resource (rCloudTrailBucket), dependency already enforced by \"!Ref\" at Resources/rCloudTrailS3Policy/Properties/PolicyDocument/Statement/2/Resource/0/Fn::Join/1/3/Ref/rCloudTrailBucket",
- "Filename": "test/templates/quickstart/nist_logging.yaml"
- },
- {
+ "Message": "Obsolete DependsOn on resource (rCloudTrailBucket), dependency already enforced by a \"Ref\" at Resources/rCloudTrailS3Policy/Properties/PolicyDocument/Statement/2/Resource/0/Fn::Join/1/3/Ref/rCloudTrailBucket",
"Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
"Id": "W3005",
- "Description": "Check if DependsOn is specified if not needed. A Ref and GetAtt implicitly results in DependsOn behaviour.",
- "ShortDescription": "Check obsolete DependsOn configuration for Resources"
- },
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_logging.yaml",
+ "Level": "Warning",
"Location": {
+ "End": {
+ "ColumnNumber": 14,
+ "LineNumber": 232
+ },
+ "Path": [
+ "Resources",
+ "rCloudTrailS3Policy",
+ "DependsOn"
+ ],
"Start": {
"ColumnNumber": 5,
"LineNumber": 232
- },
+ }
+ },
+ "Message": "Obsolete DependsOn on resource (rCloudTrailBucket), dependency already enforced by a \"Ref\" at Resources/rCloudTrailS3Policy/Properties/PolicyDocument/Statement/3/Resource/0/Fn::Join/1/3/Ref/rCloudTrailBucket",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_logging.yaml",
+ "Level": "Warning",
+ "Location": {
"End": {
"ColumnNumber": 14,
"LineNumber": 232
@@ -406,48 +604,252 @@
"Resources",
"rCloudTrailS3Policy",
"DependsOn"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 5,
+ "LineNumber": 232
+ }
},
- "Level": "Warning",
- "Message": "Obsolete DependsOn on resource (rCloudTrailBucket), dependency already enforced by \"!Ref\" at Resources/rCloudTrailS3Policy/Properties/PolicyDocument/Statement/3/Resource/0/Fn::Join/1/3/Ref/rCloudTrailBucket",
- "Filename": "test/templates/quickstart/nist_logging.yaml"
- },
- {
+ "Message": "Obsolete DependsOn on resource (rCloudTrailBucket), dependency already enforced by a \"Ref\" at Resources/rCloudTrailS3Policy/Properties/PolicyDocument/Statement/4/Resource/0/Fn::Join/1/3/Ref/rCloudTrailBucket",
"Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
"Id": "W3005",
- "Description": "Check if DependsOn is specified if not needed. A Ref and GetAtt implicitly results in DependsOn behaviour.",
- "ShortDescription": "Check obsolete DependsOn configuration for Resources"
- },
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_logging.yaml",
+ "Level": "Informational",
"Location": {
+ "End": {
+ "ColumnNumber": 21,
+ "LineNumber": 243
+ },
+ "Path": [
+ "Resources",
+ "rCloudTrailS3Policy",
+ "Properties",
+ "PolicyDocument",
+ "Statement",
+ 0,
+ "Resource",
+ 0,
+ "Fn::Join"
+ ],
"Start": {
- "ColumnNumber": 5,
- "LineNumber": 232
+ "ColumnNumber": 13,
+ "LineNumber": 243
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_logging.yaml",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 21,
+ "LineNumber": 261
},
+ "Path": [
+ "Resources",
+ "rCloudTrailS3Policy",
+ "Properties",
+ "PolicyDocument",
+ "Statement",
+ 1,
+ "Resource",
+ 0,
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 13,
+ "LineNumber": 261
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_logging.yaml",
+ "Level": "Informational",
+ "Location": {
"End": {
- "ColumnNumber": 14,
- "LineNumber": 232
+ "ColumnNumber": 21,
+ "LineNumber": 279
},
"Path": [
"Resources",
"rCloudTrailS3Policy",
- "DependsOn"
- ]
+ "Properties",
+ "PolicyDocument",
+ "Statement",
+ 2,
+ "Resource",
+ 0,
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 13,
+ "LineNumber": 279
+ }
},
- "Level": "Warning",
- "Message": "Obsolete DependsOn on resource (rCloudTrailBucket), dependency already enforced by \"!Ref\" at Resources/rCloudTrailS3Policy/Properties/PolicyDocument/Statement/4/Resource/0/Fn::Join/1/3/Ref/rCloudTrailBucket",
- "Filename": "test/templates/quickstart/nist_logging.yaml"
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
},
{
+ "Filename": "test/fixtures/templates/quickstart/nist_logging.yaml",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 21,
+ "LineNumber": 294
+ },
+ "Path": [
+ "Resources",
+ "rCloudTrailS3Policy",
+ "Properties",
+ "PolicyDocument",
+ "Statement",
+ 3,
+ "Resource",
+ 0,
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 13,
+ "LineNumber": 294
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
"Rule": {
- "Id": "E3012",
- "Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_logging.yaml",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 21,
+ "LineNumber": 312
+ },
+ "Path": [
+ "Resources",
+ "rCloudTrailS3Policy",
+ "Properties",
+ "PolicyDocument",
+ "Statement",
+ 4,
+ "Resource",
+ 0,
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 13,
+ "LineNumber": 312
+ }
},
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_logging.yaml",
+ "Level": "Informational",
"Location": {
+ "End": {
+ "ColumnNumber": 23,
+ "LineNumber": 342
+ },
+ "Path": [
+ "Resources",
+ "rCloudWatchLogsRole",
+ "Properties",
+ "Policies",
+ 0,
+ "PolicyDocument",
+ "Statement",
+ 0,
+ "Resource",
+ 0,
+ "Fn::Join"
+ ],
"Start": {
- "ColumnNumber": 7,
- "LineNumber": 399
+ "ColumnNumber": 15,
+ "LineNumber": 342
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_logging.yaml",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 23,
+ "LineNumber": 361
},
+ "Path": [
+ "Resources",
+ "rCloudWatchLogsRole",
+ "Properties",
+ "Policies",
+ 0,
+ "PolicyDocument",
+ "Statement",
+ 1,
+ "Resource",
+ 0,
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 15,
+ "LineNumber": 361
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_logging.yaml",
+ "Level": "Error",
+ "Location": {
"End": {
"ColumnNumber": 24,
"LineNumber": 399
@@ -457,23 +859,24 @@
"rIAMCreateAccessKeyAlarm",
"Properties",
"EvaluationPeriods"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 399
+ }
},
- "Level": "Error",
"Message": "Property Resources/rIAMCreateAccessKeyAlarm/Properties/EvaluationPeriods should be of type Integer",
- "Filename": "test/templates/quickstart/nist_logging.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_logging.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 402
- },
"End": {
"ColumnNumber": 13,
"LineNumber": 402
@@ -483,23 +886,24 @@
"rIAMCreateAccessKeyAlarm",
"Properties",
"Period"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 402
+ }
},
- "Level": "Error",
"Message": "Property Resources/rIAMCreateAccessKeyAlarm/Properties/Period should be of type Integer",
- "Filename": "test/templates/quickstart/nist_logging.yaml"
+ "Rule": {
+ "Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
},
{
- "Rule": {
- "Id": "E3012",
- "Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Filename": "test/fixtures/templates/quickstart/nist_logging.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 404
- },
"End": {
"ColumnNumber": 16,
"LineNumber": 404
@@ -509,23 +913,24 @@
"rIAMCreateAccessKeyAlarm",
"Properties",
"Threshold"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 404
+ }
},
- "Level": "Error",
"Message": "Property Resources/rIAMCreateAccessKeyAlarm/Properties/Threshold should be of type Double",
- "Filename": "test/templates/quickstart/nist_logging.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_logging.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 414
- },
"End": {
"ColumnNumber": 24,
"LineNumber": 414
@@ -535,23 +940,24 @@
"rIAMPolicyChangesAlarm",
"Properties",
"EvaluationPeriods"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 414
+ }
},
- "Level": "Error",
"Message": "Property Resources/rIAMPolicyChangesAlarm/Properties/EvaluationPeriods should be of type Integer",
- "Filename": "test/templates/quickstart/nist_logging.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_logging.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 417
- },
"End": {
"ColumnNumber": 13,
"LineNumber": 417
@@ -561,23 +967,24 @@
"rIAMPolicyChangesAlarm",
"Properties",
"Period"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 417
+ }
},
- "Level": "Error",
"Message": "Property Resources/rIAMPolicyChangesAlarm/Properties/Period should be of type Integer",
- "Filename": "test/templates/quickstart/nist_logging.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_logging.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 419
- },
"End": {
"ColumnNumber": 16,
"LineNumber": 419
@@ -587,23 +994,24 @@
"rIAMPolicyChangesAlarm",
"Properties",
"Threshold"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 419
+ }
},
- "Level": "Error",
"Message": "Property Resources/rIAMPolicyChangesAlarm/Properties/Threshold should be of type Double",
- "Filename": "test/templates/quickstart/nist_logging.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_logging.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 450
- },
"End": {
"ColumnNumber": 24,
"LineNumber": 450
@@ -613,23 +1021,24 @@
"rNetworkAclChangesAlarm",
"Properties",
"EvaluationPeriods"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 450
+ }
},
- "Level": "Error",
"Message": "Property Resources/rNetworkAclChangesAlarm/Properties/EvaluationPeriods should be of type Integer",
- "Filename": "test/templates/quickstart/nist_logging.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_logging.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 453
- },
"End": {
"ColumnNumber": 13,
"LineNumber": 453
@@ -639,23 +1048,24 @@
"rNetworkAclChangesAlarm",
"Properties",
"Period"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 453
+ }
},
- "Level": "Error",
"Message": "Property Resources/rNetworkAclChangesAlarm/Properties/Period should be of type Integer",
- "Filename": "test/templates/quickstart/nist_logging.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_logging.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 455
- },
"End": {
"ColumnNumber": 16,
"LineNumber": 455
@@ -665,23 +1075,24 @@
"rNetworkAclChangesAlarm",
"Properties",
"Threshold"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 455
+ }
},
- "Level": "Error",
"Message": "Property Resources/rNetworkAclChangesAlarm/Properties/Threshold should be of type Double",
- "Filename": "test/templates/quickstart/nist_logging.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_logging.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 478
- },
"End": {
"ColumnNumber": 24,
"LineNumber": 478
@@ -691,23 +1102,24 @@
"rRootActivityAlarm",
"Properties",
"EvaluationPeriods"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 478
+ }
},
- "Level": "Error",
"Message": "Property Resources/rRootActivityAlarm/Properties/EvaluationPeriods should be of type Integer",
- "Filename": "test/templates/quickstart/nist_logging.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_logging.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 481
- },
"End": {
"ColumnNumber": 13,
"LineNumber": 481
@@ -717,23 +1129,24 @@
"rRootActivityAlarm",
"Properties",
"Period"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 481
+ }
},
- "Level": "Error",
"Message": "Property Resources/rRootActivityAlarm/Properties/Period should be of type Integer",
- "Filename": "test/templates/quickstart/nist_logging.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_logging.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 483
- },
"End": {
"ColumnNumber": 16,
"LineNumber": 483
@@ -743,23 +1156,24 @@
"rRootActivityAlarm",
"Properties",
"Threshold"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 483
+ }
},
- "Level": "Error",
"Message": "Property Resources/rRootActivityAlarm/Properties/Threshold should be of type Double",
- "Filename": "test/templates/quickstart/nist_logging.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_logging.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 501
- },
"End": {
"ColumnNumber": 24,
"LineNumber": 501
@@ -769,23 +1183,24 @@
"rSecurityGroupChangesAlarm",
"Properties",
"EvaluationPeriods"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 501
+ }
},
- "Level": "Error",
"Message": "Property Resources/rSecurityGroupChangesAlarm/Properties/EvaluationPeriods should be of type Integer",
- "Filename": "test/templates/quickstart/nist_logging.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_logging.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 504
- },
"End": {
"ColumnNumber": 13,
"LineNumber": 504
@@ -795,23 +1210,24 @@
"rSecurityGroupChangesAlarm",
"Properties",
"Period"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 504
+ }
},
- "Level": "Error",
"Message": "Property Resources/rSecurityGroupChangesAlarm/Properties/Period should be of type Integer",
- "Filename": "test/templates/quickstart/nist_logging.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_logging.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 506
- },
"End": {
"ColumnNumber": 16,
"LineNumber": 506
@@ -821,23 +1237,24 @@
"rSecurityGroupChangesAlarm",
"Properties",
"Threshold"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 506
+ }
},
- "Level": "Error",
"Message": "Property Resources/rSecurityGroupChangesAlarm/Properties/Threshold should be of type Double",
- "Filename": "test/templates/quickstart/nist_logging.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_logging.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 529
- },
"End": {
"ColumnNumber": 24,
"LineNumber": 529
@@ -847,23 +1264,24 @@
"rUnauthorizedAttemptAlarm",
"Properties",
"EvaluationPeriods"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 529
+ }
},
- "Level": "Error",
"Message": "Property Resources/rUnauthorizedAttemptAlarm/Properties/EvaluationPeriods should be of type Integer",
- "Filename": "test/templates/quickstart/nist_logging.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_logging.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 532
- },
"End": {
"ColumnNumber": 13,
"LineNumber": 532
@@ -873,23 +1291,24 @@
"rUnauthorizedAttemptAlarm",
"Properties",
"Period"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 532
+ }
},
- "Level": "Error",
"Message": "Property Resources/rUnauthorizedAttemptAlarm/Properties/Period should be of type Integer",
- "Filename": "test/templates/quickstart/nist_logging.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_logging.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 534
- },
"End": {
"ColumnNumber": 16,
"LineNumber": 534
@@ -899,10 +1318,18 @@
"rUnauthorizedAttemptAlarm",
"Properties",
"Threshold"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 534
+ }
},
- "Level": "Error",
"Message": "Property Resources/rUnauthorizedAttemptAlarm/Properties/Threshold should be of type Double",
- "Filename": "test/templates/quickstart/nist_logging.yaml"
+ "Rule": {
+ "Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
}
-]
\ No newline at end of file
+]
diff --git a/test/fixtures/results/quickstart/nist_vpc_management.json b/test/fixtures/results/quickstart/nist_vpc_management.json
--- a/test/fixtures/results/quickstart/nist_vpc_management.json
+++ b/test/fixtures/results/quickstart/nist_vpc_management.json
@@ -1,29 +1,4 @@
[
- {
- "Filename": "test/fixtures/templates/quickstart/nist_vpc_management.yaml",
- "Level": "Warning",
- "Location": {
- "End": {
- "ColumnNumber": 18,
- "LineNumber": 267
- },
- "Path": [
- "Parameters",
- "pProductionCIDR"
- ],
- "Start": {
- "ColumnNumber": 3,
- "LineNumber": 267
- }
- },
- "Message": "AllowedPattern and/or AllowedValues for Parameter should be specified at Parameters/pProductionCIDR. Example for AllowedPattern: \"^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/([0-9]|[1-2][0-9]|3[0-2]))$\"",
- "Rule": {
- "Description": "Check if a parameter is being used as a CIDR. If it is make sure it has allowed values regex comparisons",
- "Id": "W2509",
- "ShortDescription": "CIDR Parameters have allowed values",
- "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/parameters-section-structure.html"
- }
- },
{
"Filename": "test/fixtures/templates/quickstart/nist_vpc_management.yaml",
"Level": "Warning",
@@ -116,7 +91,7 @@
"LineNumber": 200
}
},
- "Message": "AllowedPattern and/or AllowedValues for Parameter should be specified at Parameters/pBastionSSHCIDR. Example for AllowedPattern: \"^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/([0-9]|[1-2][0-9]|3[0-2]))$\"",
+ "Message": "AllowedPattern and/or AllowedValues for Parameter should be specified at Parameters/pBastionSSHCIDR. Example for AllowedPattern: '^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/([0-9]|[1-2][0-9]|3[0-2]))$'",
"Rule": {
"Description": "Check if a parameter is being used as a CIDR. If it is make sure it has allowed values regex comparisons",
"Id": "W2509",
@@ -141,7 +116,7 @@
"LineNumber": 232
}
},
- "Message": "AllowedPattern and/or AllowedValues for Parameter should be specified at Parameters/pManagementCIDR. Example for AllowedPattern: \"^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/([0-9]|[1-2][0-9]|3[0-2]))$\"",
+ "Message": "AllowedPattern and/or AllowedValues for Parameter should be specified at Parameters/pManagementCIDR. Example for AllowedPattern: '^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/([0-9]|[1-2][0-9]|3[0-2]))$'",
"Rule": {
"Description": "Check if a parameter is being used as a CIDR. If it is make sure it has allowed values regex comparisons",
"Id": "W2509",
@@ -166,7 +141,7 @@
"LineNumber": 236
}
},
- "Message": "AllowedPattern and/or AllowedValues for Parameter should be specified at Parameters/pManagementDMZSubnetACIDR. Example for AllowedPattern: \"^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/([0-9]|[1-2][0-9]|3[0-2]))$\"",
+ "Message": "AllowedPattern and/or AllowedValues for Parameter should be specified at Parameters/pManagementDMZSubnetACIDR. Example for AllowedPattern: '^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/([0-9]|[1-2][0-9]|3[0-2]))$'",
"Rule": {
"Description": "Check if a parameter is being used as a CIDR. If it is make sure it has allowed values regex comparisons",
"Id": "W2509",
@@ -191,7 +166,7 @@
"LineNumber": 240
}
},
- "Message": "AllowedPattern and/or AllowedValues for Parameter should be specified at Parameters/pManagementDMZSubnetBCIDR. Example for AllowedPattern: \"^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/([0-9]|[1-2][0-9]|3[0-2]))$\"",
+ "Message": "AllowedPattern and/or AllowedValues for Parameter should be specified at Parameters/pManagementDMZSubnetBCIDR. Example for AllowedPattern: '^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/([0-9]|[1-2][0-9]|3[0-2]))$'",
"Rule": {
"Description": "Check if a parameter is being used as a CIDR. If it is make sure it has allowed values regex comparisons",
"Id": "W2509",
@@ -216,7 +191,7 @@
"LineNumber": 244
}
},
- "Message": "AllowedPattern and/or AllowedValues for Parameter should be specified at Parameters/pManagementPrivateSubnetACIDR. Example for AllowedPattern: \"^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/([0-9]|[1-2][0-9]|3[0-2]))$\"",
+ "Message": "AllowedPattern and/or AllowedValues for Parameter should be specified at Parameters/pManagementPrivateSubnetACIDR. Example for AllowedPattern: '^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/([0-9]|[1-2][0-9]|3[0-2]))$'",
"Rule": {
"Description": "Check if a parameter is being used as a CIDR. If it is make sure it has allowed values regex comparisons",
"Id": "W2509",
@@ -241,7 +216,7 @@
"LineNumber": 248
}
},
- "Message": "AllowedPattern and/or AllowedValues for Parameter should be specified at Parameters/pManagementPrivateSubnetBCIDR. Example for AllowedPattern: \"^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/([0-9]|[1-2][0-9]|3[0-2]))$\"",
+ "Message": "AllowedPattern and/or AllowedValues for Parameter should be specified at Parameters/pManagementPrivateSubnetBCIDR. Example for AllowedPattern: '^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/([0-9]|[1-2][0-9]|3[0-2]))$'",
"Rule": {
"Description": "Check if a parameter is being used as a CIDR. If it is make sure it has allowed values regex comparisons",
"Id": "W2509",
@@ -249,6 +224,116 @@
"Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/parameters-section-structure.html"
}
},
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_management.yaml",
+ "Level": "Warning",
+ "Location": {
+ "End": {
+ "ColumnNumber": 18,
+ "LineNumber": 267
+ },
+ "Path": [
+ "Parameters",
+ "pProductionCIDR"
+ ],
+ "Start": {
+ "ColumnNumber": 3,
+ "LineNumber": 267
+ }
+ },
+ "Message": "AllowedPattern and/or AllowedValues for Parameter should be specified at Parameters/pProductionCIDR. Example for AllowedPattern: '^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/([0-9]|[1-2][0-9]|3[0-2]))$'",
+ "Rule": {
+ "Description": "Check if a parameter is being used as a CIDR. If it is make sure it has allowed values regex comparisons",
+ "Id": "W2509",
+ "ShortDescription": "CIDR Parameters have allowed values",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/parameters-section-structure.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_management.yaml",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 17,
+ "LineNumber": 322
+ },
+ "Path": [
+ "Resources",
+ "rDHCPoptions",
+ "Properties",
+ "DomainName",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 322
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_management.yaml",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 19,
+ "LineNumber": 343
+ },
+ "Path": [
+ "Resources",
+ "rDeepSecurityInfrastructureTemplate",
+ "Properties",
+ "Parameters",
+ "CfnUrlPrefix",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 343
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_management.yaml",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 17,
+ "LineNumber": 388
+ },
+ "Path": [
+ "Resources",
+ "rDeepSecurityInfrastructureTemplate",
+ "Properties",
+ "TemplateURL",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 388
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
{
"Filename": "test/fixtures/templates/quickstart/nist_vpc_management.yaml",
"Level": "Warning",
@@ -294,7 +379,7 @@
"LineNumber": 480
}
},
- "Message": "Obsolete DependsOn on resource (rDeepSecurityInfrastructureTemplate), dependency already enforced by a \"Fn:GetAtt\" at Resources/rMgmtBastionInstance/Metadata/AWS::CloudFormation::Init/installDeepSecurityAgent/commands/3-activate-DSA/command/Fn::Join/1/1/Fn::GetAtt/['rDeepSecurityInfrastructureTemplate', 'Outputs.DeepSecurityHeartbeat']",
+ "Message": "Obsolete DependsOn on resource (rDeepSecurityInfrastructureTemplate), dependency already enforced by a \"Fn:GetAtt\" at Resources/rMgmtBastionInstance/Metadata/AWS::CloudFormation::Init/installDeepSecurityAgent/commands/0-download-DSA/command/Fn::Join/1/1/Fn::GetAtt/['rDeepSecurityInfrastructureTemplate', 'Outputs.DeepSecurityAgentDownload']",
"Rule": {
"Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
"Id": "W3005",
@@ -321,7 +406,7 @@
"LineNumber": 480
}
},
- "Message": "Obsolete DependsOn on resource (rDeepSecurityInfrastructureTemplate), dependency already enforced by a \"Fn:GetAtt\" at Resources/rMgmtBastionInstance/Metadata/AWS::CloudFormation::Init/installDeepSecurityAgent/commands/0-download-DSA/command/Fn::Join/1/1/Fn::GetAtt/['rDeepSecurityInfrastructureTemplate', 'Outputs.DeepSecurityAgentDownload']",
+ "Message": "Obsolete DependsOn on resource (rDeepSecurityInfrastructureTemplate), dependency already enforced by a \"Fn:GetAtt\" at Resources/rMgmtBastionInstance/Metadata/AWS::CloudFormation::Init/installDeepSecurityAgent/commands/3-activate-DSA/command/Fn::Join/1/1/Fn::GetAtt/['rDeepSecurityInfrastructureTemplate', 'Outputs.DeepSecurityHeartbeat']",
"Rule": {
"Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
"Id": "W3005",
@@ -329,6 +414,127 @@
"Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
}
},
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_management.yaml",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 25,
+ "LineNumber": 491
+ },
+ "Path": [
+ "Resources",
+ "rMgmtBastionInstance",
+ "Metadata",
+ "AWS::CloudFormation::Init",
+ "installDeepSecurityAgent",
+ "commands",
+ "0-download-DSA",
+ "command",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 17,
+ "LineNumber": 491
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_management.yaml",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 25,
+ "LineNumber": 504
+ },
+ "Path": [
+ "Resources",
+ "rMgmtBastionInstance",
+ "Metadata",
+ "AWS::CloudFormation::Init",
+ "installDeepSecurityAgent",
+ "commands",
+ "3-activate-DSA",
+ "command",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 17,
+ "LineNumber": 504
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_management.yaml",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 19,
+ "LineNumber": 527
+ },
+ "Path": [
+ "Resources",
+ "rMgmtBastionInstance",
+ "Properties",
+ "UserData",
+ "Fn::Base64",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 527
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_management.yaml",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 17,
+ "LineNumber": 579
+ },
+ "Path": [
+ "Resources",
+ "rNatInstanceTemplate",
+ "Properties",
+ "TemplateURL",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 579
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
{
"Filename": "test/fixtures/templates/quickstart/nist_vpc_management.yaml",
"Level": "Error",
diff --git a/test/fixtures/results/quickstart/nist_vpc_production.json b/test/fixtures/results/quickstart/nist_vpc_production.json
--- a/test/fixtures/results/quickstart/nist_vpc_production.json
+++ b/test/fixtures/results/quickstart/nist_vpc_production.json
@@ -1,15 +1,8 @@
[
{
- "Rule": {
- "Id": "W2509",
- "Description": "Check if a parameter is being used as a CIDR. If it is make sure it has allowed values regex comparisons",
- "ShortDescription": "CIDR Parameters have allowed values"
- },
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_production.yaml",
+ "Level": "Warning",
"Location": {
- "Start": {
- "ColumnNumber": 3,
- "LineNumber": 99
- },
"End": {
"ColumnNumber": 25,
"LineNumber": 99
@@ -17,23 +10,24 @@
"Path": [
"Parameters",
"pAppPrivateSubnetACIDR"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 3,
+ "LineNumber": 99
+ }
},
- "Level": "Warning",
- "Message": "AllowedPattern and/or AllowedValues for Parameter should be specified at Parameters/pAppPrivateSubnetACIDR. Example for AllowedPattern: \"^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/([0-9]|[1-2][0-9]|3[0-2]))$\"",
- "Filename": "test/templates/quickstart/nist_vpc_production.yaml"
- },
- {
+ "Message": "AllowedPattern and/or AllowedValues for Parameter should be specified at Parameters/pAppPrivateSubnetACIDR. Example for AllowedPattern: '^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/([0-9]|[1-2][0-9]|3[0-2]))$'",
"Rule": {
- "Id": "W2509",
"Description": "Check if a parameter is being used as a CIDR. If it is make sure it has allowed values regex comparisons",
- "ShortDescription": "CIDR Parameters have allowed values"
- },
+ "Id": "W2509",
+ "ShortDescription": "CIDR Parameters have allowed values",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/parameters-section-structure.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_production.yaml",
+ "Level": "Warning",
"Location": {
- "Start": {
- "ColumnNumber": 3,
- "LineNumber": 103
- },
"End": {
"ColumnNumber": 25,
"LineNumber": 103
@@ -41,23 +35,24 @@
"Path": [
"Parameters",
"pAppPrivateSubnetBCIDR"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 3,
+ "LineNumber": 103
+ }
},
- "Level": "Warning",
- "Message": "AllowedPattern and/or AllowedValues for Parameter should be specified at Parameters/pAppPrivateSubnetBCIDR. Example for AllowedPattern: \"^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/([0-9]|[1-2][0-9]|3[0-2]))$\"",
- "Filename": "test/templates/quickstart/nist_vpc_production.yaml"
- },
- {
+ "Message": "AllowedPattern and/or AllowedValues for Parameter should be specified at Parameters/pAppPrivateSubnetBCIDR. Example for AllowedPattern: '^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/([0-9]|[1-2][0-9]|3[0-2]))$'",
"Rule": {
- "Id": "W2509",
"Description": "Check if a parameter is being used as a CIDR. If it is make sure it has allowed values regex comparisons",
- "ShortDescription": "CIDR Parameters have allowed values"
- },
+ "Id": "W2509",
+ "ShortDescription": "CIDR Parameters have allowed values",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/parameters-section-structure.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_production.yaml",
+ "Level": "Warning",
"Location": {
- "Start": {
- "ColumnNumber": 3,
- "LineNumber": 107
- },
"End": {
"ColumnNumber": 18,
"LineNumber": 107
@@ -65,23 +60,24 @@
"Path": [
"Parameters",
"pBastionSSHCIDR"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 3,
+ "LineNumber": 107
+ }
},
- "Level": "Warning",
- "Message": "AllowedPattern and/or AllowedValues for Parameter should be specified at Parameters/pBastionSSHCIDR. Example for AllowedPattern: \"^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/([0-9]|[1-2][0-9]|3[0-2]))$\"",
- "Filename": "test/templates/quickstart/nist_vpc_production.yaml"
- },
- {
+ "Message": "AllowedPattern and/or AllowedValues for Parameter should be specified at Parameters/pBastionSSHCIDR. Example for AllowedPattern: '^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/([0-9]|[1-2][0-9]|3[0-2]))$'",
"Rule": {
- "Id": "W2509",
"Description": "Check if a parameter is being used as a CIDR. If it is make sure it has allowed values regex comparisons",
- "ShortDescription": "CIDR Parameters have allowed values"
- },
+ "Id": "W2509",
+ "ShortDescription": "CIDR Parameters have allowed values",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/parameters-section-structure.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_production.yaml",
+ "Level": "Warning",
"Location": {
- "Start": {
- "ColumnNumber": 3,
- "LineNumber": 111
- },
"End": {
"ColumnNumber": 24,
"LineNumber": 111
@@ -89,23 +85,24 @@
"Path": [
"Parameters",
"pDBPrivateSubnetACIDR"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 3,
+ "LineNumber": 111
+ }
},
- "Level": "Warning",
- "Message": "AllowedPattern and/or AllowedValues for Parameter should be specified at Parameters/pDBPrivateSubnetACIDR. Example for AllowedPattern: \"^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/([0-9]|[1-2][0-9]|3[0-2]))$\"",
- "Filename": "test/templates/quickstart/nist_vpc_production.yaml"
- },
- {
+ "Message": "AllowedPattern and/or AllowedValues for Parameter should be specified at Parameters/pDBPrivateSubnetACIDR. Example for AllowedPattern: '^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/([0-9]|[1-2][0-9]|3[0-2]))$'",
"Rule": {
- "Id": "W2509",
"Description": "Check if a parameter is being used as a CIDR. If it is make sure it has allowed values regex comparisons",
- "ShortDescription": "CIDR Parameters have allowed values"
- },
+ "Id": "W2509",
+ "ShortDescription": "CIDR Parameters have allowed values",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/parameters-section-structure.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_production.yaml",
+ "Level": "Warning",
"Location": {
- "Start": {
- "ColumnNumber": 3,
- "LineNumber": 115
- },
"End": {
"ColumnNumber": 24,
"LineNumber": 115
@@ -113,23 +110,24 @@
"Path": [
"Parameters",
"pDBPrivateSubnetBCIDR"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 3,
+ "LineNumber": 115
+ }
},
- "Level": "Warning",
- "Message": "AllowedPattern and/or AllowedValues for Parameter should be specified at Parameters/pDBPrivateSubnetBCIDR. Example for AllowedPattern: \"^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/([0-9]|[1-2][0-9]|3[0-2]))$\"",
- "Filename": "test/templates/quickstart/nist_vpc_production.yaml"
- },
- {
+ "Message": "AllowedPattern and/or AllowedValues for Parameter should be specified at Parameters/pDBPrivateSubnetBCIDR. Example for AllowedPattern: '^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/([0-9]|[1-2][0-9]|3[0-2]))$'",
"Rule": {
- "Id": "W2509",
"Description": "Check if a parameter is being used as a CIDR. If it is make sure it has allowed values regex comparisons",
- "ShortDescription": "CIDR Parameters have allowed values"
- },
+ "Id": "W2509",
+ "ShortDescription": "CIDR Parameters have allowed values",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/parameters-section-structure.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_production.yaml",
+ "Level": "Warning",
"Location": {
- "Start": {
- "ColumnNumber": 3,
- "LineNumber": 119
- },
"End": {
"ColumnNumber": 18,
"LineNumber": 119
@@ -137,23 +135,24 @@
"Path": [
"Parameters",
"pDMZSubnetACIDR"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 3,
+ "LineNumber": 119
+ }
},
- "Level": "Warning",
- "Message": "AllowedPattern and/or AllowedValues for Parameter should be specified at Parameters/pDMZSubnetACIDR. Example for AllowedPattern: \"^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/([0-9]|[1-2][0-9]|3[0-2]))$\"",
- "Filename": "test/templates/quickstart/nist_vpc_production.yaml"
- },
- {
+ "Message": "AllowedPattern and/or AllowedValues for Parameter should be specified at Parameters/pDMZSubnetACIDR. Example for AllowedPattern: '^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/([0-9]|[1-2][0-9]|3[0-2]))$'",
"Rule": {
- "Id": "W2509",
"Description": "Check if a parameter is being used as a CIDR. If it is make sure it has allowed values regex comparisons",
- "ShortDescription": "CIDR Parameters have allowed values"
- },
+ "Id": "W2509",
+ "ShortDescription": "CIDR Parameters have allowed values",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/parameters-section-structure.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_production.yaml",
+ "Level": "Warning",
"Location": {
- "Start": {
- "ColumnNumber": 3,
- "LineNumber": 123
- },
"End": {
"ColumnNumber": 18,
"LineNumber": 123
@@ -161,23 +160,24 @@
"Path": [
"Parameters",
"pDMZSubnetBCIDR"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 3,
+ "LineNumber": 123
+ }
},
- "Level": "Warning",
- "Message": "AllowedPattern and/or AllowedValues for Parameter should be specified at Parameters/pDMZSubnetBCIDR. Example for AllowedPattern: \"^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/([0-9]|[1-2][0-9]|3[0-2]))$\"",
- "Filename": "test/templates/quickstart/nist_vpc_production.yaml"
- },
- {
+ "Message": "AllowedPattern and/or AllowedValues for Parameter should be specified at Parameters/pDMZSubnetBCIDR. Example for AllowedPattern: '^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/([0-9]|[1-2][0-9]|3[0-2]))$'",
"Rule": {
- "Id": "W2509",
"Description": "Check if a parameter is being used as a CIDR. If it is make sure it has allowed values regex comparisons",
- "ShortDescription": "CIDR Parameters have allowed values"
- },
+ "Id": "W2509",
+ "ShortDescription": "CIDR Parameters have allowed values",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/parameters-section-structure.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_production.yaml",
+ "Level": "Warning",
"Location": {
- "Start": {
- "ColumnNumber": 3,
- "LineNumber": 135
- },
"End": {
"ColumnNumber": 18,
"LineNumber": 135
@@ -185,23 +185,24 @@
"Path": [
"Parameters",
"pManagementCIDR"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 3,
+ "LineNumber": 135
+ }
},
- "Level": "Warning",
- "Message": "AllowedPattern and/or AllowedValues for Parameter should be specified at Parameters/pManagementCIDR. Example for AllowedPattern: \"^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/([0-9]|[1-2][0-9]|3[0-2]))$\"",
- "Filename": "test/templates/quickstart/nist_vpc_production.yaml"
- },
- {
+ "Message": "AllowedPattern and/or AllowedValues for Parameter should be specified at Parameters/pManagementCIDR. Example for AllowedPattern: '^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/([0-9]|[1-2][0-9]|3[0-2]))$'",
"Rule": {
- "Id": "W2509",
"Description": "Check if a parameter is being used as a CIDR. If it is make sure it has allowed values regex comparisons",
- "ShortDescription": "CIDR Parameters have allowed values"
- },
+ "Id": "W2509",
+ "ShortDescription": "CIDR Parameters have allowed values",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/parameters-section-structure.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_production.yaml",
+ "Level": "Warning",
"Location": {
- "Start": {
- "ColumnNumber": 3,
- "LineNumber": 149
- },
"End": {
"ColumnNumber": 18,
"LineNumber": 149
@@ -209,23 +210,24 @@
"Path": [
"Parameters",
"pProductionCIDR"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 3,
+ "LineNumber": 149
+ }
},
- "Level": "Warning",
- "Message": "AllowedPattern and/or AllowedValues for Parameter should be specified at Parameters/pProductionCIDR. Example for AllowedPattern: \"^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/([0-9]|[1-2][0-9]|3[0-2]))$\"",
- "Filename": "test/templates/quickstart/nist_vpc_production.yaml"
+ "Message": "AllowedPattern and/or AllowedValues for Parameter should be specified at Parameters/pProductionCIDR. Example for AllowedPattern: '^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/([0-9]|[1-2][0-9]|3[0-2]))$'",
+ "Rule": {
+ "Description": "Check if a parameter is being used as a CIDR. If it is make sure it has allowed values regex comparisons",
+ "Id": "W2509",
+ "ShortDescription": "CIDR Parameters have allowed values",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/parameters-section-structure.html"
+ }
},
{
- "Rule": {
- "Id": "W3005",
- "Description": "Check if DependsOn is specified if not needed. A Ref and GetAtt implicitly results in DependsOn behaviour.",
- "ShortDescription": "Check obsolete DependsOn configuration for Resources"
- },
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_production.yaml",
+ "Level": "Warning",
"Location": {
- "Start": {
- "ColumnNumber": 5,
- "LineNumber": 308
- },
"End": {
"ColumnNumber": 14,
"LineNumber": 308
@@ -234,23 +236,24 @@
"Resources",
"rGWAttachmentProdIGW",
"DependsOn"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 5,
+ "LineNumber": 308
+ }
},
- "Level": "Warning",
- "Message": "Obsolete DependsOn on resource (rIGWProd), dependency already enforced by \"!Ref\" at Resources/rGWAttachmentProdIGW/Properties/InternetGatewayId/Ref/rIGWProd",
- "Filename": "test/templates/quickstart/nist_vpc_production.yaml"
+ "Message": "Obsolete DependsOn on resource (rIGWProd), dependency already enforced by a \"Ref\" at Resources/rGWAttachmentProdIGW/Properties/InternetGatewayId/Ref/rIGWProd",
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
},
{
- "Rule": {
- "Id": "E3012",
- "Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_production.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 383
- },
"End": {
"ColumnNumber": 13,
"LineNumber": 383
@@ -261,23 +264,24 @@
"Properties",
"PortRange",
"From"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 383
+ }
},
- "Level": "Error",
"Message": "Property Resources/rNACLRuleAllowALLEgressPublic/Properties/PortRange/From should be of type Integer",
- "Filename": "test/templates/quickstart/nist_vpc_production.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_production.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 384
- },
"End": {
"ColumnNumber": 11,
"LineNumber": 384
@@ -288,23 +292,24 @@
"Properties",
"PortRange",
"To"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 384
+ }
},
- "Level": "Error",
"Message": "Property Resources/rNACLRuleAllowALLEgressPublic/Properties/PortRange/To should be of type Integer",
- "Filename": "test/templates/quickstart/nist_vpc_production.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_production.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 385
- },
"End": {
"ColumnNumber": 15,
"LineNumber": 385
@@ -314,23 +319,24 @@
"rNACLRuleAllowALLEgressPublic",
"Properties",
"Protocol"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 385
+ }
},
- "Level": "Error",
"Message": "Property Resources/rNACLRuleAllowALLEgressPublic/Properties/Protocol should be of type Integer",
- "Filename": "test/templates/quickstart/nist_vpc_production.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_production.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 387
- },
"End": {
"ColumnNumber": 17,
"LineNumber": 387
@@ -340,23 +346,24 @@
"rNACLRuleAllowALLEgressPublic",
"Properties",
"RuleNumber"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 387
+ }
},
- "Level": "Error",
"Message": "Property Resources/rNACLRuleAllowALLEgressPublic/Properties/RuleNumber should be of type Integer",
- "Filename": "test/templates/quickstart/nist_vpc_production.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_production.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 396
- },
"End": {
"ColumnNumber": 13,
"LineNumber": 396
@@ -367,23 +374,24 @@
"Properties",
"PortRange",
"From"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 396
+ }
},
- "Level": "Error",
"Message": "Property Resources/rNACLRuleAllowALLfromPrivEgress/Properties/PortRange/From should be of type Integer",
- "Filename": "test/templates/quickstart/nist_vpc_production.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_production.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 397
- },
"End": {
"ColumnNumber": 11,
"LineNumber": 397
@@ -394,23 +402,24 @@
"Properties",
"PortRange",
"To"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 397
+ }
},
- "Level": "Error",
"Message": "Property Resources/rNACLRuleAllowALLfromPrivEgress/Properties/PortRange/To should be of type Integer",
- "Filename": "test/templates/quickstart/nist_vpc_production.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_production.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 398
- },
"End": {
"ColumnNumber": 15,
"LineNumber": 398
@@ -420,23 +429,24 @@
"rNACLRuleAllowALLfromPrivEgress",
"Properties",
"Protocol"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 398
+ }
},
- "Level": "Error",
"Message": "Property Resources/rNACLRuleAllowALLfromPrivEgress/Properties/Protocol should be of type Integer",
- "Filename": "test/templates/quickstart/nist_vpc_production.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_production.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 400
- },
"End": {
"ColumnNumber": 17,
"LineNumber": 400
@@ -446,23 +456,24 @@
"rNACLRuleAllowALLfromPrivEgress",
"Properties",
"RuleNumber"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 400
+ }
},
- "Level": "Error",
"Message": "Property Resources/rNACLRuleAllowALLfromPrivEgress/Properties/RuleNumber should be of type Integer",
- "Filename": "test/templates/quickstart/nist_vpc_production.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_production.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 408
- },
"End": {
"ColumnNumber": 13,
"LineNumber": 408
@@ -473,23 +484,24 @@
"Properties",
"PortRange",
"From"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 408
+ }
},
- "Level": "Error",
"Message": "Property Resources/rNACLRuleAllowAllReturnTCP/Properties/PortRange/From should be of type Integer",
- "Filename": "test/templates/quickstart/nist_vpc_production.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_production.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 409
- },
"End": {
"ColumnNumber": 11,
"LineNumber": 409
@@ -500,23 +512,24 @@
"Properties",
"PortRange",
"To"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 409
+ }
},
- "Level": "Error",
"Message": "Property Resources/rNACLRuleAllowAllReturnTCP/Properties/PortRange/To should be of type Integer",
- "Filename": "test/templates/quickstart/nist_vpc_production.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_production.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 410
- },
"End": {
"ColumnNumber": 15,
"LineNumber": 410
@@ -526,23 +539,24 @@
"rNACLRuleAllowAllReturnTCP",
"Properties",
"Protocol"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 410
+ }
},
- "Level": "Error",
"Message": "Property Resources/rNACLRuleAllowAllReturnTCP/Properties/Protocol should be of type Integer",
- "Filename": "test/templates/quickstart/nist_vpc_production.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_production.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 412
- },
"End": {
"ColumnNumber": 17,
"LineNumber": 412
@@ -552,23 +566,24 @@
"rNACLRuleAllowAllReturnTCP",
"Properties",
"RuleNumber"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 412
+ }
},
- "Level": "Error",
"Message": "Property Resources/rNACLRuleAllowAllReturnTCP/Properties/RuleNumber should be of type Integer",
- "Filename": "test/templates/quickstart/nist_vpc_production.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_production.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 421
- },
"End": {
"ColumnNumber": 13,
"LineNumber": 421
@@ -579,23 +594,24 @@
"Properties",
"PortRange",
"From"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 421
+ }
},
- "Level": "Error",
"Message": "Property Resources/rNACLRuleAllowAllTCPInternal/Properties/PortRange/From should be of type Integer",
- "Filename": "test/templates/quickstart/nist_vpc_production.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_production.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 422
- },
"End": {
"ColumnNumber": 11,
"LineNumber": 422
@@ -606,23 +622,24 @@
"Properties",
"PortRange",
"To"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 422
+ }
},
- "Level": "Error",
"Message": "Property Resources/rNACLRuleAllowAllTCPInternal/Properties/PortRange/To should be of type Integer",
- "Filename": "test/templates/quickstart/nist_vpc_production.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_production.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 423
- },
"End": {
"ColumnNumber": 15,
"LineNumber": 423
@@ -632,23 +649,24 @@
"rNACLRuleAllowAllTCPInternal",
"Properties",
"Protocol"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 423
+ }
},
- "Level": "Error",
"Message": "Property Resources/rNACLRuleAllowAllTCPInternal/Properties/Protocol should be of type Integer",
- "Filename": "test/templates/quickstart/nist_vpc_production.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_production.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 425
- },
"End": {
"ColumnNumber": 17,
"LineNumber": 425
@@ -658,23 +676,24 @@
"rNACLRuleAllowAllTCPInternal",
"Properties",
"RuleNumber"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 425
+ }
},
- "Level": "Error",
"Message": "Property Resources/rNACLRuleAllowAllTCPInternal/Properties/RuleNumber should be of type Integer",
- "Filename": "test/templates/quickstart/nist_vpc_production.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_production.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 434
- },
"End": {
"ColumnNumber": 13,
"LineNumber": 434
@@ -685,23 +704,24 @@
"Properties",
"PortRange",
"From"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 434
+ }
},
- "Level": "Error",
"Message": "Property Resources/rNACLRuleAllowAllTCPInternalEgress/Properties/PortRange/From should be of type Integer",
- "Filename": "test/templates/quickstart/nist_vpc_production.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_production.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 435
- },
"End": {
"ColumnNumber": 11,
"LineNumber": 435
@@ -712,23 +732,24 @@
"Properties",
"PortRange",
"To"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 435
+ }
},
- "Level": "Error",
"Message": "Property Resources/rNACLRuleAllowAllTCPInternalEgress/Properties/PortRange/To should be of type Integer",
- "Filename": "test/templates/quickstart/nist_vpc_production.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_production.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 436
- },
"End": {
"ColumnNumber": 15,
"LineNumber": 436
@@ -738,23 +759,24 @@
"rNACLRuleAllowAllTCPInternalEgress",
"Properties",
"Protocol"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 436
+ }
},
- "Level": "Error",
"Message": "Property Resources/rNACLRuleAllowAllTCPInternalEgress/Properties/Protocol should be of type Integer",
- "Filename": "test/templates/quickstart/nist_vpc_production.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_production.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 438
- },
"End": {
"ColumnNumber": 17,
"LineNumber": 438
@@ -764,23 +786,24 @@
"rNACLRuleAllowAllTCPInternalEgress",
"Properties",
"RuleNumber"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 438
+ }
},
- "Level": "Error",
"Message": "Property Resources/rNACLRuleAllowAllTCPInternalEgress/Properties/RuleNumber should be of type Integer",
- "Filename": "test/templates/quickstart/nist_vpc_production.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_production.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 446
- },
"End": {
"ColumnNumber": 13,
"LineNumber": 446
@@ -791,23 +814,24 @@
"Properties",
"PortRange",
"From"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 446
+ }
},
- "Level": "Error",
"Message": "Property Resources/rNACLRuleAllowBastionSSHAccess/Properties/PortRange/From should be of type Integer",
- "Filename": "test/templates/quickstart/nist_vpc_production.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_production.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 447
- },
"End": {
"ColumnNumber": 11,
"LineNumber": 447
@@ -818,23 +842,24 @@
"Properties",
"PortRange",
"To"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 447
+ }
},
- "Level": "Error",
"Message": "Property Resources/rNACLRuleAllowBastionSSHAccess/Properties/PortRange/To should be of type Integer",
- "Filename": "test/templates/quickstart/nist_vpc_production.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_production.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 448
- },
"End": {
"ColumnNumber": 15,
"LineNumber": 448
@@ -844,23 +869,24 @@
"rNACLRuleAllowBastionSSHAccess",
"Properties",
"Protocol"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 448
+ }
},
- "Level": "Error",
"Message": "Property Resources/rNACLRuleAllowBastionSSHAccess/Properties/Protocol should be of type Integer",
- "Filename": "test/templates/quickstart/nist_vpc_production.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_production.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 450
- },
"End": {
"ColumnNumber": 17,
"LineNumber": 450
@@ -870,23 +896,24 @@
"rNACLRuleAllowBastionSSHAccess",
"Properties",
"RuleNumber"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 450
+ }
},
- "Level": "Error",
"Message": "Property Resources/rNACLRuleAllowBastionSSHAccess/Properties/RuleNumber should be of type Integer",
- "Filename": "test/templates/quickstart/nist_vpc_production.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_production.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 459
- },
"End": {
"ColumnNumber": 13,
"LineNumber": 459
@@ -897,23 +924,24 @@
"Properties",
"PortRange",
"From"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 459
+ }
},
- "Level": "Error",
"Message": "Property Resources/rNACLRuleAllowEgressReturnTCP/Properties/PortRange/From should be of type Integer",
- "Filename": "test/templates/quickstart/nist_vpc_production.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_production.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 460
- },
"End": {
"ColumnNumber": 11,
"LineNumber": 460
@@ -924,23 +952,24 @@
"Properties",
"PortRange",
"To"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 460
+ }
},
- "Level": "Error",
"Message": "Property Resources/rNACLRuleAllowEgressReturnTCP/Properties/PortRange/To should be of type Integer",
- "Filename": "test/templates/quickstart/nist_vpc_production.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_production.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 461
- },
"End": {
"ColumnNumber": 15,
"LineNumber": 461
@@ -950,23 +979,24 @@
"rNACLRuleAllowEgressReturnTCP",
"Properties",
"Protocol"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 461
+ }
},
- "Level": "Error",
"Message": "Property Resources/rNACLRuleAllowEgressReturnTCP/Properties/Protocol should be of type Integer",
- "Filename": "test/templates/quickstart/nist_vpc_production.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_production.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 463
- },
"End": {
"ColumnNumber": 17,
"LineNumber": 463
@@ -976,23 +1006,24 @@
"rNACLRuleAllowEgressReturnTCP",
"Properties",
"RuleNumber"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 463
+ }
},
- "Level": "Error",
"Message": "Property Resources/rNACLRuleAllowEgressReturnTCP/Properties/RuleNumber should be of type Integer",
- "Filename": "test/templates/quickstart/nist_vpc_production.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_production.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 471
- },
"End": {
"ColumnNumber": 13,
"LineNumber": 471
@@ -1003,23 +1034,24 @@
"Properties",
"PortRange",
"From"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 471
+ }
},
- "Level": "Error",
"Message": "Property Resources/rNACLRuleAllowHTTPSPublic/Properties/PortRange/From should be of type Integer",
- "Filename": "test/templates/quickstart/nist_vpc_production.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_production.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 472
- },
"End": {
"ColumnNumber": 11,
"LineNumber": 472
@@ -1030,23 +1062,24 @@
"Properties",
"PortRange",
"To"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 472
+ }
},
- "Level": "Error",
"Message": "Property Resources/rNACLRuleAllowHTTPSPublic/Properties/PortRange/To should be of type Integer",
- "Filename": "test/templates/quickstart/nist_vpc_production.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_production.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 473
- },
"End": {
"ColumnNumber": 15,
"LineNumber": 473
@@ -1056,23 +1089,24 @@
"rNACLRuleAllowHTTPSPublic",
"Properties",
"Protocol"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 473
+ }
},
- "Level": "Error",
"Message": "Property Resources/rNACLRuleAllowHTTPSPublic/Properties/Protocol should be of type Integer",
- "Filename": "test/templates/quickstart/nist_vpc_production.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_production.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 475
- },
"End": {
"ColumnNumber": 17,
"LineNumber": 475
@@ -1082,23 +1116,24 @@
"rNACLRuleAllowHTTPSPublic",
"Properties",
"RuleNumber"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 475
+ }
},
- "Level": "Error",
"Message": "Property Resources/rNACLRuleAllowHTTPSPublic/Properties/RuleNumber should be of type Integer",
- "Filename": "test/templates/quickstart/nist_vpc_production.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_production.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 484
- },
"End": {
"ColumnNumber": 13,
"LineNumber": 484
@@ -1109,23 +1144,24 @@
"Properties",
"PortRange",
"From"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 484
+ }
},
- "Level": "Error",
"Message": "Property Resources/rNACLRuleAllowHTTPfromProd/Properties/PortRange/From should be of type Integer",
- "Filename": "test/templates/quickstart/nist_vpc_production.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_production.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 485
- },
"End": {
"ColumnNumber": 11,
"LineNumber": 485
@@ -1136,23 +1172,24 @@
"Properties",
"PortRange",
"To"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 485
+ }
},
- "Level": "Error",
"Message": "Property Resources/rNACLRuleAllowHTTPfromProd/Properties/PortRange/To should be of type Integer",
- "Filename": "test/templates/quickstart/nist_vpc_production.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_production.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 486
- },
"End": {
"ColumnNumber": 15,
"LineNumber": 486
@@ -1162,23 +1199,24 @@
"rNACLRuleAllowHTTPfromProd",
"Properties",
"Protocol"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 486
+ }
},
- "Level": "Error",
"Message": "Property Resources/rNACLRuleAllowHTTPfromProd/Properties/Protocol should be of type Integer",
- "Filename": "test/templates/quickstart/nist_vpc_production.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_production.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 488
- },
"End": {
"ColumnNumber": 17,
"LineNumber": 488
@@ -1188,23 +1226,24 @@
"rNACLRuleAllowHTTPfromProd",
"Properties",
"RuleNumber"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 488
+ }
},
- "Level": "Error",
"Message": "Property Resources/rNACLRuleAllowHTTPfromProd/Properties/RuleNumber should be of type Integer",
- "Filename": "test/templates/quickstart/nist_vpc_production.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_production.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 497
- },
"End": {
"ColumnNumber": 13,
"LineNumber": 497
@@ -1215,23 +1254,24 @@
"Properties",
"PortRange",
"From"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 497
+ }
},
- "Level": "Error",
"Message": "Property Resources/rNACLRuleAllowMgmtAccessSSHtoPrivate/Properties/PortRange/From should be of type Integer",
- "Filename": "test/templates/quickstart/nist_vpc_production.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_production.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 498
- },
"End": {
"ColumnNumber": 11,
"LineNumber": 498
@@ -1242,23 +1282,24 @@
"Properties",
"PortRange",
"To"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 498
+ }
},
- "Level": "Error",
"Message": "Property Resources/rNACLRuleAllowMgmtAccessSSHtoPrivate/Properties/PortRange/To should be of type Integer",
- "Filename": "test/templates/quickstart/nist_vpc_production.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_production.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 499
- },
"End": {
"ColumnNumber": 15,
"LineNumber": 499
@@ -1268,23 +1309,24 @@
"rNACLRuleAllowMgmtAccessSSHtoPrivate",
"Properties",
"Protocol"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 499
+ }
},
- "Level": "Error",
"Message": "Property Resources/rNACLRuleAllowMgmtAccessSSHtoPrivate/Properties/Protocol should be of type Integer",
- "Filename": "test/templates/quickstart/nist_vpc_production.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_production.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 501
- },
"End": {
"ColumnNumber": 17,
"LineNumber": 501
@@ -1294,23 +1336,24 @@
"rNACLRuleAllowMgmtAccessSSHtoPrivate",
"Properties",
"RuleNumber"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 501
+ }
},
- "Level": "Error",
"Message": "Property Resources/rNACLRuleAllowMgmtAccessSSHtoPrivate/Properties/RuleNumber should be of type Integer",
- "Filename": "test/templates/quickstart/nist_vpc_production.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_production.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 509
- },
"End": {
"ColumnNumber": 13,
"LineNumber": 509
@@ -1321,23 +1364,24 @@
"Properties",
"PortRange",
"From"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 509
+ }
},
- "Level": "Error",
"Message": "Property Resources/rNACLRuleAllowReturnTCPPriv/Properties/PortRange/From should be of type Integer",
- "Filename": "test/templates/quickstart/nist_vpc_production.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_production.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 510
- },
"End": {
"ColumnNumber": 11,
"LineNumber": 510
@@ -1348,23 +1392,24 @@
"Properties",
"PortRange",
"To"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 510
+ }
},
- "Level": "Error",
"Message": "Property Resources/rNACLRuleAllowReturnTCPPriv/Properties/PortRange/To should be of type Integer",
- "Filename": "test/templates/quickstart/nist_vpc_production.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_production.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 511
- },
"End": {
"ColumnNumber": 15,
"LineNumber": 511
@@ -1374,23 +1419,24 @@
"rNACLRuleAllowReturnTCPPriv",
"Properties",
"Protocol"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 511
+ }
},
- "Level": "Error",
"Message": "Property Resources/rNACLRuleAllowReturnTCPPriv/Properties/Protocol should be of type Integer",
- "Filename": "test/templates/quickstart/nist_vpc_production.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_production.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 513
- },
"End": {
"ColumnNumber": 17,
"LineNumber": 513
@@ -1400,23 +1446,52 @@
"rNACLRuleAllowReturnTCPPriv",
"Properties",
"RuleNumber"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 513
+ }
},
- "Level": "Error",
"Message": "Property Resources/rNACLRuleAllowReturnTCPPriv/Properties/RuleNumber should be of type Integer",
- "Filename": "test/templates/quickstart/nist_vpc_production.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_production.yaml",
+ "Level": "Informational",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 553
+ "End": {
+ "ColumnNumber": 17,
+ "LineNumber": 549
},
+ "Path": [
+ "Resources",
+ "rNatInstanceTemplate",
+ "Properties",
+ "TemplateURL",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 549
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_production.yaml",
+ "Level": "Error",
+ "Location": {
"End": {
"ColumnNumber": 23,
"LineNumber": 553
@@ -1426,23 +1501,24 @@
"rNatInstanceTemplate",
"Properties",
"TimeoutInMinutes"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 553
+ }
},
- "Level": "Error",
"Message": "Property Resources/rNatInstanceTemplate/Properties/TimeoutInMinutes should be of type Integer",
- "Filename": "test/templates/quickstart/nist_vpc_production.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_production.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 623
- },
"End": {
"ColumnNumber": 17,
"LineNumber": 623
@@ -1454,23 +1530,24 @@
"SecurityGroupIngress",
0,
"FromPort"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 623
+ }
},
- "Level": "Error",
"Message": "Property Resources/rSecurityGroupMgmtBastion/Properties/SecurityGroupIngress/0/FromPort should be of type Integer",
- "Filename": "test/templates/quickstart/nist_vpc_production.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_production.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 625
- },
"End": {
"ColumnNumber": 15,
"LineNumber": 625
@@ -1482,23 +1559,24 @@
"SecurityGroupIngress",
0,
"ToPort"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 625
+ }
},
- "Level": "Error",
"Message": "Property Resources/rSecurityGroupMgmtBastion/Properties/SecurityGroupIngress/0/ToPort should be of type Integer",
- "Filename": "test/templates/quickstart/nist_vpc_production.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_production.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 641
- },
"End": {
"ColumnNumber": 17,
"LineNumber": 641
@@ -1510,23 +1588,24 @@
"SecurityGroupIngress",
0,
"FromPort"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 641
+ }
},
- "Level": "Error",
"Message": "Property Resources/rSecurityGroupSSHFromProd/Properties/SecurityGroupIngress/0/FromPort should be of type Integer",
- "Filename": "test/templates/quickstart/nist_vpc_production.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_production.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 643
- },
"End": {
"ColumnNumber": 15,
"LineNumber": 643
@@ -1538,23 +1617,24 @@
"SecurityGroupIngress",
0,
"ToPort"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 643
+ }
},
- "Level": "Error",
"Message": "Property Resources/rSecurityGroupSSHFromProd/Properties/SecurityGroupIngress/0/ToPort should be of type Integer",
- "Filename": "test/templates/quickstart/nist_vpc_production.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_production.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 659
- },
"End": {
"ColumnNumber": 17,
"LineNumber": 659
@@ -1566,23 +1646,24 @@
"SecurityGroupIngress",
0,
"FromPort"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 659
+ }
},
- "Level": "Error",
"Message": "Property Resources/rSecurityGroupVpcNat/Properties/SecurityGroupIngress/0/FromPort should be of type Integer",
- "Filename": "test/templates/quickstart/nist_vpc_production.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_production.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 661
- },
"End": {
"ColumnNumber": 15,
"LineNumber": 661
@@ -1594,23 +1675,24 @@
"SecurityGroupIngress",
0,
"ToPort"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 661
+ }
},
- "Level": "Error",
"Message": "Property Resources/rSecurityGroupVpcNat/Properties/SecurityGroupIngress/0/ToPort should be of type Integer",
- "Filename": "test/templates/quickstart/nist_vpc_production.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_production.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 664
- },
"End": {
"ColumnNumber": 17,
"LineNumber": 664
@@ -1622,23 +1704,24 @@
"SecurityGroupIngress",
1,
"FromPort"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 664
+ }
},
- "Level": "Error",
"Message": "Property Resources/rSecurityGroupVpcNat/Properties/SecurityGroupIngress/1/FromPort should be of type Integer",
- "Filename": "test/templates/quickstart/nist_vpc_production.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_production.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 666
- },
"End": {
"ColumnNumber": 15,
"LineNumber": 666
@@ -1650,23 +1733,24 @@
"SecurityGroupIngress",
1,
"ToPort"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 666
+ }
},
- "Level": "Error",
"Message": "Property Resources/rSecurityGroupVpcNat/Properties/SecurityGroupIngress/1/ToPort should be of type Integer",
- "Filename": "test/templates/quickstart/nist_vpc_production.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_production.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 680
- },
"End": {
"ColumnNumber": 25,
"LineNumber": 680
@@ -1676,23 +1760,24 @@
"rVPCProduction",
"Properties",
"EnableDnsHostnames"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 680
+ }
},
- "Level": "Error",
"Message": "Property Resources/rVPCProduction/Properties/EnableDnsHostnames should be of type Boolean",
- "Filename": "test/templates/quickstart/nist_vpc_production.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values"
- },
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_vpc_production.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 681
- },
"End": {
"ColumnNumber": 23,
"LineNumber": 681
@@ -1702,10 +1787,18 @@
"rVPCProduction",
"Properties",
"EnableDnsSupport"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 681
+ }
},
- "Level": "Error",
"Message": "Property Resources/rVPCProduction/Properties/EnableDnsSupport should be of type Boolean",
- "Filename": "test/templates/quickstart/nist_vpc_production.yaml"
+ "Rule": {
+ "Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
}
-]
\ No newline at end of file
+]
diff --git a/test/fixtures/results/quickstart/non_strict/nist_application.json b/test/fixtures/results/quickstart/non_strict/nist_application.json
--- a/test/fixtures/results/quickstart/non_strict/nist_application.json
+++ b/test/fixtures/results/quickstart/non_strict/nist_application.json
@@ -1,4 +1,58 @@
[
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 15,
+ "LineNumber": 95
+ },
+ "Path": [
+ "Outputs",
+ "LandingPageURL",
+ "Value",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 95
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 15,
+ "LineNumber": 108
+ },
+ "Path": [
+ "Outputs",
+ "WebsiteURL",
+ "Value",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 108
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
{
"Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
"Level": "Warning",
@@ -7,6 +61,10 @@
"ColumnNumber": 10,
"LineNumber": 125
},
+ "Path": [
+ "Parameters",
+ "pAppAmi"
+ ],
"Start": {
"ColumnNumber": 3,
"LineNumber": 125
@@ -28,12 +86,16 @@
"ColumnNumber": 18,
"LineNumber": 182
},
+ "Path": [
+ "Parameters",
+ "pManagementCIDR"
+ ],
"Start": {
"ColumnNumber": 3,
"LineNumber": 182
}
},
- "Message": "AllowedPattern and/or AllowedValues for Parameter should be specified at Parameters/pManagementCIDR. Example for AllowedPattern: \"^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/([0-9]|[1-2][0-9]|3[0-2]))$\"",
+ "Message": "AllowedPattern and/or AllowedValues for Parameter should be specified at Parameters/pManagementCIDR. Example for AllowedPattern: '^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/([0-9]|[1-2][0-9]|3[0-2]))$'",
"Rule": {
"Description": "Check if a parameter is being used as a CIDR. If it is make sure it has allowed values regex comparisons",
"Id": "W2509",
@@ -49,12 +111,16 @@
"ColumnNumber": 18,
"LineNumber": 185
},
+ "Path": [
+ "Parameters",
+ "pProductionCIDR"
+ ],
"Start": {
"ColumnNumber": 3,
"LineNumber": 185
}
},
- "Message": "AllowedPattern and/or AllowedValues for Parameter should be specified at Parameters/pProductionCIDR. Example for AllowedPattern: \"^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/([0-9]|[1-2][0-9]|3[0-2]))$\"",
+ "Message": "AllowedPattern and/or AllowedValues for Parameter should be specified at Parameters/pProductionCIDR. Example for AllowedPattern: '^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/([0-9]|[1-2][0-9]|3[0-2]))$'",
"Rule": {
"Description": "Check if a parameter is being used as a CIDR. If it is make sure it has allowed values regex comparisons",
"Id": "W2509",
@@ -70,6 +136,10 @@
"ColumnNumber": 16,
"LineNumber": 213
},
+ "Path": [
+ "Parameters",
+ "pWebServerAMI"
+ ],
"Start": {
"ColumnNumber": 3,
"LineNumber": 213
@@ -91,6 +161,11 @@
"ColumnNumber": 14,
"LineNumber": 219
},
+ "Path": [
+ "Resources",
+ "rAutoScalingConfigApp",
+ "DependsOn"
+ ],
"Start": {
"ColumnNumber": 5,
"LineNumber": 219
@@ -104,6 +179,226 @@
"Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
}
},
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 23,
+ "LineNumber": 236
+ },
+ "Path": [
+ "Resources",
+ "rAutoScalingConfigApp",
+ "Metadata",
+ "AWS::CloudFormation::Init",
+ "copy_landing_content",
+ "sources",
+ "/var/www/html",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 15,
+ "LineNumber": 236
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 25,
+ "LineNumber": 244
+ },
+ "Path": [
+ "Resources",
+ "rAutoScalingConfigApp",
+ "Metadata",
+ "AWS::CloudFormation::Init",
+ "installDeepSecurityAgent",
+ "commands",
+ "0-download-DSA",
+ "command",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 17,
+ "LineNumber": 244
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 25,
+ "LineNumber": 255
+ },
+ "Path": [
+ "Resources",
+ "rAutoScalingConfigApp",
+ "Metadata",
+ "AWS::CloudFormation::Init",
+ "installDeepSecurityAgent",
+ "commands",
+ "3-activate-DSA",
+ "command",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 17,
+ "LineNumber": 255
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 25,
+ "LineNumber": 264
+ },
+ "Path": [
+ "Resources",
+ "rAutoScalingConfigApp",
+ "Metadata",
+ "AWS::CloudFormation::Init",
+ "install_cfn",
+ "files",
+ "/etc/cfn/cfn-hup.conf",
+ "content",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 17,
+ "LineNumber": 264
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 25,
+ "LineNumber": 284
+ },
+ "Path": [
+ "Resources",
+ "rAutoScalingConfigApp",
+ "Metadata",
+ "AWS::CloudFormation::Init",
+ "install_cfn",
+ "files",
+ "/etc/cfn/hooks.d/cfn-auto-reloader.conf",
+ "content",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 17,
+ "LineNumber": 284
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 25,
+ "LineNumber": 324
+ },
+ "Path": [
+ "Resources",
+ "rAutoScalingConfigApp",
+ "Metadata",
+ "AWS::CloudFormation::Init",
+ "install_wordpress",
+ "files",
+ "/tmp/create-wp-config",
+ "content",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 17,
+ "LineNumber": 324
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 19,
+ "LineNumber": 388
+ },
+ "Path": [
+ "Resources",
+ "rAutoScalingConfigApp",
+ "Properties",
+ "UserData",
+ "Fn::Base64",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 388
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
{
"Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
"Level": "Warning",
@@ -112,6 +407,12 @@
"ColumnNumber": 14,
"LineNumber": 418
},
+ "Path": [
+ "Resources",
+ "rAutoScalingConfigWeb",
+ "DependsOn",
+ 0
+ ],
"Start": {
"ColumnNumber": 7,
"LineNumber": 418
@@ -125,6 +426,131 @@
"Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
}
},
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 25,
+ "LineNumber": 430
+ },
+ "Path": [
+ "Resources",
+ "rAutoScalingConfigWeb",
+ "Metadata",
+ "AWS::CloudFormation::Init",
+ "installDeepSecurityAgent",
+ "commands",
+ "0-download-DSA",
+ "command",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 17,
+ "LineNumber": 430
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 25,
+ "LineNumber": 441
+ },
+ "Path": [
+ "Resources",
+ "rAutoScalingConfigWeb",
+ "Metadata",
+ "AWS::CloudFormation::Init",
+ "installDeepSecurityAgent",
+ "commands",
+ "3-activate-DSA",
+ "command",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 17,
+ "LineNumber": 441
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 25,
+ "LineNumber": 450
+ },
+ "Path": [
+ "Resources",
+ "rAutoScalingConfigWeb",
+ "Metadata",
+ "AWS::CloudFormation::Init",
+ "nginx",
+ "files",
+ "/tmp/nginx/default.conf",
+ "content",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 17,
+ "LineNumber": 450
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 19,
+ "LineNumber": 520
+ },
+ "Path": [
+ "Resources",
+ "rAutoScalingConfigWeb",
+ "Properties",
+ "UserData",
+ "Fn::Base64",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 520
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
{
"Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
"Level": "Warning",
@@ -133,6 +559,11 @@
"ColumnNumber": 14,
"LineNumber": 577
},
+ "Path": [
+ "Resources",
+ "rAutoScalingGroupApp",
+ "DependsOn"
+ ],
"Start": {
"ColumnNumber": 5,
"LineNumber": 577
@@ -154,6 +585,11 @@
"ColumnNumber": 14,
"LineNumber": 603
},
+ "Path": [
+ "Resources",
+ "rAutoScalingGroupWeb",
+ "DependsOn"
+ ],
"Start": {
"ColumnNumber": 5,
"LineNumber": 603
@@ -175,6 +611,11 @@
"ColumnNumber": 14,
"LineNumber": 698
},
+ "Path": [
+ "Resources",
+ "rCWAlarmLowCPUWeb",
+ "DependsOn"
+ ],
"Start": {
"ColumnNumber": 5,
"LineNumber": 698
@@ -196,6 +637,12 @@
"ColumnNumber": 23,
"LineNumber": 724
},
+ "Path": [
+ "Resources",
+ "rELBApp",
+ "DependsOn",
+ 0
+ ],
"Start": {
"ColumnNumber": 7,
"LineNumber": 724
@@ -217,6 +664,12 @@
"ColumnNumber": 24,
"LineNumber": 725
},
+ "Path": [
+ "Resources",
+ "rELBApp",
+ "DependsOn",
+ 1
+ ],
"Start": {
"ColumnNumber": 7,
"LineNumber": 725
@@ -238,6 +691,12 @@
"ColumnNumber": 23,
"LineNumber": 760
},
+ "Path": [
+ "Resources",
+ "rELBWeb",
+ "DependsOn",
+ 0
+ ],
"Start": {
"ColumnNumber": 7,
"LineNumber": 760
@@ -259,6 +718,12 @@
"ColumnNumber": 24,
"LineNumber": 761
},
+ "Path": [
+ "Resources",
+ "rELBWeb",
+ "DependsOn",
+ 1
+ ],
"Start": {
"ColumnNumber": 7,
"LineNumber": 761
@@ -272,6 +737,67 @@
"Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
}
},
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 19,
+ "LineNumber": 813
+ },
+ "Path": [
+ "Resources",
+ "rPostProcInstance",
+ "Properties",
+ "UserData",
+ "Fn::Base64",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 813
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 23,
+ "LineNumber": 923
+ },
+ "Path": [
+ "Resources",
+ "rPostProcInstance",
+ "Properties",
+ "UserData",
+ "Fn::Base64",
+ "Fn::Join",
+ 1,
+ 44,
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 15,
+ "LineNumber": 923
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
{
"Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
"Level": "Warning",
@@ -280,6 +806,12 @@
"ColumnNumber": 21,
"LineNumber": 1004
},
+ "Path": [
+ "Resources",
+ "rRDSInstanceMySQL",
+ "DependsOn",
+ 0
+ ],
"Start": {
"ColumnNumber": 7,
"LineNumber": 1004
@@ -301,6 +833,12 @@
"ColumnNumber": 24,
"LineNumber": 1005
},
+ "Path": [
+ "Resources",
+ "rRDSInstanceMySQL",
+ "DependsOn",
+ 1
+ ],
"Start": {
"ColumnNumber": 7,
"LineNumber": 1005
@@ -314,6 +852,37 @@
"Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
}
},
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 21,
+ "LineNumber": 1042
+ },
+ "Path": [
+ "Resources",
+ "rS3AccessLogsPolicy",
+ "Properties",
+ "PolicyDocument",
+ "Statement",
+ 0,
+ "Resource",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 13,
+ "LineNumber": 1042
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
{
"Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
"Level": "Warning",
@@ -322,6 +891,13 @@
"ColumnNumber": 16,
"LineNumber": 1057
},
+ "Path": [
+ "Resources",
+ "rS3AccessLogsPolicy",
+ "Properties",
+ "PolicyDocument",
+ "Version"
+ ],
"Start": {
"ColumnNumber": 9,
"LineNumber": 1057
@@ -343,12 +919,17 @@
"ColumnNumber": 14,
"LineNumber": 1197
},
+ "Path": [
+ "Resources",
+ "rWebContentS3Policy",
+ "DependsOn"
+ ],
"Start": {
"ColumnNumber": 5,
"LineNumber": 1197
}
},
- "Message": "Obsolete DependsOn on resource (rWebContentBucket), dependency already enforced by a \"Ref\" at Resources/rWebContentS3Policy/Properties/PolicyDocument/Statement/0/Resource/Fn::Join/1/3/Ref/rWebContentBucket",
+ "Message": "Obsolete DependsOn on resource (rWebContentBucket), dependency already enforced by a \"Ref\" at Resources/rWebContentS3Policy/Properties/Bucket/Ref/rWebContentBucket",
"Rule": {
"Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
"Id": "W3005",
@@ -364,12 +945,17 @@
"ColumnNumber": 14,
"LineNumber": 1197
},
+ "Path": [
+ "Resources",
+ "rWebContentS3Policy",
+ "DependsOn"
+ ],
"Start": {
"ColumnNumber": 5,
"LineNumber": 1197
}
},
- "Message": "Obsolete DependsOn on resource (rWebContentBucket), dependency already enforced by a \"Ref\" at Resources/rWebContentS3Policy/Properties/PolicyDocument/Statement/1/Resource/Fn::Join/1/3/Ref/rWebContentBucket",
+ "Message": "Obsolete DependsOn on resource (rWebContentBucket), dependency already enforced by a \"Ref\" at Resources/rWebContentS3Policy/Properties/PolicyDocument/Statement/0/Resource/Fn::Join/1/3/Ref/rWebContentBucket",
"Rule": {
"Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
"Id": "W3005",
@@ -385,17 +971,84 @@
"ColumnNumber": 14,
"LineNumber": 1197
},
+ "Path": [
+ "Resources",
+ "rWebContentS3Policy",
+ "DependsOn"
+ ],
"Start": {
"ColumnNumber": 5,
"LineNumber": 1197
}
},
- "Message": "Obsolete DependsOn on resource (rWebContentBucket), dependency already enforced by a \"Ref\" at Resources/rWebContentS3Policy/Properties/Bucket/Ref/rWebContentBucket",
+ "Message": "Obsolete DependsOn on resource (rWebContentBucket), dependency already enforced by a \"Ref\" at Resources/rWebContentS3Policy/Properties/PolicyDocument/Statement/1/Resource/Fn::Join/1/3/Ref/rWebContentBucket",
"Rule": {
"Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
"Id": "W3005",
"ShortDescription": "Check obsolete DependsOn configuration for Resources",
"Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
}
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 21,
+ "LineNumber": 1210
+ },
+ "Path": [
+ "Resources",
+ "rWebContentS3Policy",
+ "Properties",
+ "PolicyDocument",
+ "Statement",
+ 0,
+ "Resource",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 13,
+ "LineNumber": 1210
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 21,
+ "LineNumber": 1227
+ },
+ "Path": [
+ "Resources",
+ "rWebContentS3Policy",
+ "Properties",
+ "PolicyDocument",
+ "Statement",
+ 1,
+ "Resource",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 13,
+ "LineNumber": 1227
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
}
]
diff --git a/test/fixtures/results/quickstart/non_strict/nist_high_master.json b/test/fixtures/results/quickstart/non_strict/nist_high_master.json
--- a/test/fixtures/results/quickstart/non_strict/nist_high_master.json
+++ b/test/fixtures/results/quickstart/non_strict/nist_high_master.json
@@ -7,6 +7,10 @@
"ColumnNumber": 30,
"LineNumber": 11
},
+ "Path": [
+ "Conditions",
+ "LoadConfigRulesTemplateAuto"
+ ],
"Start": {
"ColumnNumber": 3,
"LineNumber": 11
@@ -28,12 +32,18 @@
"ColumnNumber": 28,
"LineNumber": 278
},
+ "Path": [
+ "Resources",
+ "ApplicationTemplate",
+ "DependsOn",
+ 0
+ ],
"Start": {
"ColumnNumber": 7,
"LineNumber": 278
}
},
- "Message": "Obsolete DependsOn on resource (ProductionVpcTemplate), dependency already enforced by a \"Fn:GetAtt\" at Resources/ApplicationTemplate/Properties/Parameters/pAppPrivateSubnetB/Fn::GetAtt/['ProductionVpcTemplate', 'Outputs.rAppPrivateSubnetB']",
+ "Message": "Obsolete DependsOn on resource (ProductionVpcTemplate), dependency already enforced by a \"Fn:GetAtt\" at Resources/ApplicationTemplate/Properties/Parameters/pAppPrivateSubnetA/Fn::GetAtt/['ProductionVpcTemplate', 'Outputs.rAppPrivateSubnetA']",
"Rule": {
"Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
"Id": "W3005",
@@ -49,12 +59,18 @@
"ColumnNumber": 28,
"LineNumber": 278
},
+ "Path": [
+ "Resources",
+ "ApplicationTemplate",
+ "DependsOn",
+ 0
+ ],
"Start": {
"ColumnNumber": 7,
"LineNumber": 278
}
},
- "Message": "Obsolete DependsOn on resource (ProductionVpcTemplate), dependency already enforced by a \"Fn:GetAtt\" at Resources/ApplicationTemplate/Properties/Parameters/pDBPrivateSubnetA/Fn::GetAtt/['ProductionVpcTemplate', 'Outputs.rDBPrivateSubnetA']",
+ "Message": "Obsolete DependsOn on resource (ProductionVpcTemplate), dependency already enforced by a \"Fn:GetAtt\" at Resources/ApplicationTemplate/Properties/Parameters/pAppPrivateSubnetB/Fn::GetAtt/['ProductionVpcTemplate', 'Outputs.rAppPrivateSubnetB']",
"Rule": {
"Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
"Id": "W3005",
@@ -70,12 +86,18 @@
"ColumnNumber": 28,
"LineNumber": 278
},
+ "Path": [
+ "Resources",
+ "ApplicationTemplate",
+ "DependsOn",
+ 0
+ ],
"Start": {
"ColumnNumber": 7,
"LineNumber": 278
}
},
- "Message": "Obsolete DependsOn on resource (ProductionVpcTemplate), dependency already enforced by a \"Fn:GetAtt\" at Resources/ApplicationTemplate/Properties/Parameters/pDBPrivateSubnetB/Fn::GetAtt/['ProductionVpcTemplate', 'Outputs.rDBPrivateSubnetB']",
+ "Message": "Obsolete DependsOn on resource (ProductionVpcTemplate), dependency already enforced by a \"Fn:GetAtt\" at Resources/ApplicationTemplate/Properties/Parameters/pDBPrivateSubnetA/Fn::GetAtt/['ProductionVpcTemplate', 'Outputs.rDBPrivateSubnetA']",
"Rule": {
"Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
"Id": "W3005",
@@ -91,12 +113,18 @@
"ColumnNumber": 28,
"LineNumber": 278
},
+ "Path": [
+ "Resources",
+ "ApplicationTemplate",
+ "DependsOn",
+ 0
+ ],
"Start": {
"ColumnNumber": 7,
"LineNumber": 278
}
},
- "Message": "Obsolete DependsOn on resource (ProductionVpcTemplate), dependency already enforced by a \"Fn:GetAtt\" at Resources/ApplicationTemplate/Properties/Parameters/pDMZSubnetA/Fn::GetAtt/['ProductionVpcTemplate', 'Outputs.rDMZSubnetA']",
+ "Message": "Obsolete DependsOn on resource (ProductionVpcTemplate), dependency already enforced by a \"Fn:GetAtt\" at Resources/ApplicationTemplate/Properties/Parameters/pDBPrivateSubnetB/Fn::GetAtt/['ProductionVpcTemplate', 'Outputs.rDBPrivateSubnetB']",
"Rule": {
"Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
"Id": "W3005",
@@ -112,12 +140,18 @@
"ColumnNumber": 28,
"LineNumber": 278
},
+ "Path": [
+ "Resources",
+ "ApplicationTemplate",
+ "DependsOn",
+ 0
+ ],
"Start": {
"ColumnNumber": 7,
"LineNumber": 278
}
},
- "Message": "Obsolete DependsOn on resource (ProductionVpcTemplate), dependency already enforced by a \"Fn:GetAtt\" at Resources/ApplicationTemplate/Properties/Parameters/pDMZSubnetB/Fn::GetAtt/['ProductionVpcTemplate', 'Outputs.rDMZSubnetB']",
+ "Message": "Obsolete DependsOn on resource (ProductionVpcTemplate), dependency already enforced by a \"Fn:GetAtt\" at Resources/ApplicationTemplate/Properties/Parameters/pDMZSubnetA/Fn::GetAtt/['ProductionVpcTemplate', 'Outputs.rDMZSubnetA']",
"Rule": {
"Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
"Id": "W3005",
@@ -133,12 +167,18 @@
"ColumnNumber": 28,
"LineNumber": 278
},
+ "Path": [
+ "Resources",
+ "ApplicationTemplate",
+ "DependsOn",
+ 0
+ ],
"Start": {
"ColumnNumber": 7,
"LineNumber": 278
}
},
- "Message": "Obsolete DependsOn on resource (ProductionVpcTemplate), dependency already enforced by a \"Fn:GetAtt\" at Resources/ApplicationTemplate/Properties/Parameters/pAppPrivateSubnetA/Fn::GetAtt/['ProductionVpcTemplate', 'Outputs.rAppPrivateSubnetA']",
+ "Message": "Obsolete DependsOn on resource (ProductionVpcTemplate), dependency already enforced by a \"Fn:GetAtt\" at Resources/ApplicationTemplate/Properties/Parameters/pDMZSubnetB/Fn::GetAtt/['ProductionVpcTemplate', 'Outputs.rDMZSubnetB']",
"Rule": {
"Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
"Id": "W3005",
@@ -154,6 +194,12 @@
"ColumnNumber": 28,
"LineNumber": 278
},
+ "Path": [
+ "Resources",
+ "ApplicationTemplate",
+ "DependsOn",
+ 0
+ ],
"Start": {
"ColumnNumber": 7,
"LineNumber": 278
@@ -175,6 +221,12 @@
"ColumnNumber": 28,
"LineNumber": 279
},
+ "Path": [
+ "Resources",
+ "ApplicationTemplate",
+ "DependsOn",
+ 1
+ ],
"Start": {
"ColumnNumber": 7,
"LineNumber": 279
@@ -196,6 +248,12 @@
"ColumnNumber": 28,
"LineNumber": 279
},
+ "Path": [
+ "Resources",
+ "ApplicationTemplate",
+ "DependsOn",
+ 1
+ ],
"Start": {
"ColumnNumber": 7,
"LineNumber": 279
@@ -217,6 +275,14 @@
"ColumnNumber": 21,
"LineNumber": 293
},
+ "Path": [
+ "Resources",
+ "ApplicationTemplate",
+ "Properties",
+ "Parameters",
+ "pAppPrivateSubnetA",
+ "Fn::GetAtt"
+ ],
"Start": {
"ColumnNumber": 11,
"LineNumber": 293
@@ -238,6 +304,14 @@
"ColumnNumber": 21,
"LineNumber": 297
},
+ "Path": [
+ "Resources",
+ "ApplicationTemplate",
+ "Properties",
+ "Parameters",
+ "pAppPrivateSubnetB",
+ "Fn::GetAtt"
+ ],
"Start": {
"ColumnNumber": 11,
"LineNumber": 297
@@ -259,6 +333,14 @@
"ColumnNumber": 21,
"LineNumber": 311
},
+ "Path": [
+ "Resources",
+ "ApplicationTemplate",
+ "Properties",
+ "Parameters",
+ "pDBPrivateSubnetA",
+ "Fn::GetAtt"
+ ],
"Start": {
"ColumnNumber": 11,
"LineNumber": 311
@@ -280,6 +362,14 @@
"ColumnNumber": 21,
"LineNumber": 315
},
+ "Path": [
+ "Resources",
+ "ApplicationTemplate",
+ "Properties",
+ "Parameters",
+ "pDBPrivateSubnetB",
+ "Fn::GetAtt"
+ ],
"Start": {
"ColumnNumber": 11,
"LineNumber": 315
@@ -301,6 +391,14 @@
"ColumnNumber": 21,
"LineNumber": 320
},
+ "Path": [
+ "Resources",
+ "ApplicationTemplate",
+ "Properties",
+ "Parameters",
+ "pDMZSubnetA",
+ "Fn::GetAtt"
+ ],
"Start": {
"ColumnNumber": 11,
"LineNumber": 320
@@ -322,6 +420,14 @@
"ColumnNumber": 21,
"LineNumber": 324
},
+ "Path": [
+ "Resources",
+ "ApplicationTemplate",
+ "Properties",
+ "Parameters",
+ "pDMZSubnetB",
+ "Fn::GetAtt"
+ ],
"Start": {
"ColumnNumber": 11,
"LineNumber": 324
@@ -343,6 +449,14 @@
"ColumnNumber": 21,
"LineNumber": 345
},
+ "Path": [
+ "Resources",
+ "ApplicationTemplate",
+ "Properties",
+ "Parameters",
+ "pProductionVPC",
+ "Fn::GetAtt"
+ ],
"Start": {
"ColumnNumber": 11,
"LineNumber": 345
@@ -364,6 +478,14 @@
"ColumnNumber": 21,
"LineNumber": 353
},
+ "Path": [
+ "Resources",
+ "ApplicationTemplate",
+ "Properties",
+ "Parameters",
+ "pSecurityAlarmTopic",
+ "Fn::GetAtt"
+ ],
"Start": {
"ColumnNumber": 11,
"LineNumber": 353
@@ -377,6 +499,118 @@
"Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-ref.html"
}
},
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_high_master.yaml",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 17,
+ "LineNumber": 377
+ },
+ "Path": [
+ "Resources",
+ "ApplicationTemplate",
+ "Properties",
+ "TemplateURL",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 377
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_high_master.yaml",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 17,
+ "LineNumber": 401
+ },
+ "Path": [
+ "Resources",
+ "ConfigRulesTemplate",
+ "Properties",
+ "TemplateURL",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 401
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_high_master.yaml",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 17,
+ "LineNumber": 414
+ },
+ "Path": [
+ "Resources",
+ "IamTemplate",
+ "Properties",
+ "TemplateURL",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 414
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_high_master.yaml",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 17,
+ "LineNumber": 435
+ },
+ "Path": [
+ "Resources",
+ "LoggingTemplate",
+ "Properties",
+ "TemplateURL",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 435
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
{
"Filename": "test/fixtures/templates/quickstart/nist_high_master.yaml",
"Level": "Warning",
@@ -385,12 +619,17 @@
"ColumnNumber": 14,
"LineNumber": 445
},
+ "Path": [
+ "Resources",
+ "ManagementVpcTemplate",
+ "DependsOn"
+ ],
"Start": {
"ColumnNumber": 5,
"LineNumber": 445
}
},
- "Message": "Obsolete DependsOn on resource (ProductionVpcTemplate), dependency already enforced by a \"Fn:GetAtt\" at Resources/ManagementVpcTemplate/Properties/Parameters/pRouteTableProdPublic/Fn::GetAtt/['ProductionVpcTemplate', 'Outputs.rRouteTableProdPublic']",
+ "Message": "Obsolete DependsOn on resource (ProductionVpcTemplate), dependency already enforced by a \"Fn:GetAtt\" at Resources/ManagementVpcTemplate/Properties/Parameters/pProductionVPC/Fn::GetAtt/['ProductionVpcTemplate', 'Outputs.rVPCProduction']",
"Rule": {
"Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
"Id": "W3005",
@@ -406,6 +645,11 @@
"ColumnNumber": 14,
"LineNumber": 445
},
+ "Path": [
+ "Resources",
+ "ManagementVpcTemplate",
+ "DependsOn"
+ ],
"Start": {
"ColumnNumber": 5,
"LineNumber": 445
@@ -427,12 +671,17 @@
"ColumnNumber": 14,
"LineNumber": 445
},
+ "Path": [
+ "Resources",
+ "ManagementVpcTemplate",
+ "DependsOn"
+ ],
"Start": {
"ColumnNumber": 5,
"LineNumber": 445
}
},
- "Message": "Obsolete DependsOn on resource (ProductionVpcTemplate), dependency already enforced by a \"Fn:GetAtt\" at Resources/ManagementVpcTemplate/Properties/Parameters/pProductionVPC/Fn::GetAtt/['ProductionVpcTemplate', 'Outputs.rVPCProduction']",
+ "Message": "Obsolete DependsOn on resource (ProductionVpcTemplate), dependency already enforced by a \"Fn:GetAtt\" at Resources/ManagementVpcTemplate/Properties/Parameters/pRouteTableProdPublic/Fn::GetAtt/['ProductionVpcTemplate', 'Outputs.rRouteTableProdPublic']",
"Rule": {
"Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
"Id": "W3005",
@@ -448,6 +697,14 @@
"ColumnNumber": 21,
"LineNumber": 490
},
+ "Path": [
+ "Resources",
+ "ManagementVpcTemplate",
+ "Properties",
+ "Parameters",
+ "pProductionVPC",
+ "Fn::GetAtt"
+ ],
"Start": {
"ColumnNumber": 11,
"LineNumber": 490
@@ -469,6 +726,14 @@
"ColumnNumber": 21,
"LineNumber": 498
},
+ "Path": [
+ "Resources",
+ "ManagementVpcTemplate",
+ "Properties",
+ "Parameters",
+ "pRouteTableProdPrivate",
+ "Fn::GetAtt"
+ ],
"Start": {
"ColumnNumber": 11,
"LineNumber": 498
@@ -490,6 +755,14 @@
"ColumnNumber": 21,
"LineNumber": 502
},
+ "Path": [
+ "Resources",
+ "ManagementVpcTemplate",
+ "Properties",
+ "Parameters",
+ "pRouteTableProdPublic",
+ "Fn::GetAtt"
+ ],
"Start": {
"ColumnNumber": 11,
"LineNumber": 502
@@ -502,5 +775,61 @@
"ShortDescription": "Ref/GetAtt to resource that is available when conditions are applied",
"Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-ref.html"
}
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_high_master.yaml",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 17,
+ "LineNumber": 516
+ },
+ "Path": [
+ "Resources",
+ "ManagementVpcTemplate",
+ "Properties",
+ "TemplateURL",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 516
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/nist_high_master.yaml",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 17,
+ "LineNumber": 570
+ },
+ "Path": [
+ "Resources",
+ "ProductionVpcTemplate",
+ "Properties",
+ "TemplateURL",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 570
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
}
]
diff --git a/test/fixtures/results/quickstart/non_strict/openshift.json b/test/fixtures/results/quickstart/non_strict/openshift.json
--- a/test/fixtures/results/quickstart/non_strict/openshift.json
+++ b/test/fixtures/results/quickstart/non_strict/openshift.json
@@ -7,6 +7,10 @@
"ColumnNumber": 18,
"LineNumber": 25
},
+ "Path": [
+ "Mappings",
+ "LinuxAMINameMap"
+ ],
"Start": {
"ColumnNumber": 3,
"LineNumber": 25
@@ -20,6 +24,60 @@
"Source": "https://github.com/aws-cloudformation/cfn-python-lint"
}
},
+ {
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 15,
+ "LineNumber": 126
+ },
+ "Path": [
+ "Outputs",
+ "ContainerAccessELBName",
+ "Value",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 126
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 15,
+ "LineNumber": 135
+ },
+ "Path": [
+ "Outputs",
+ "OpenShiftUI",
+ "Value",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 135
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
{
"Filename": "test/fixtures/templates/quickstart/openshift.yaml",
"Level": "Warning",
@@ -28,6 +86,11 @@
"ColumnNumber": 14,
"LineNumber": 283
},
+ "Path": [
+ "Resources",
+ "AnsibleConfigServer",
+ "DependsOn"
+ ],
"Start": {
"ColumnNumber": 5,
"LineNumber": 283
@@ -49,6 +112,11 @@
"ColumnNumber": 14,
"LineNumber": 283
},
+ "Path": [
+ "Resources",
+ "AnsibleConfigServer",
+ "DependsOn"
+ ],
"Start": {
"ColumnNumber": 5,
"LineNumber": 283
@@ -62,6 +130,99 @@
"Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
}
},
+ {
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 25,
+ "LineNumber": 304
+ },
+ "Path": [
+ "Resources",
+ "AnsibleConfigServer",
+ "Metadata",
+ "AWS::CloudFormation::Init",
+ "GetPublicKey",
+ "files",
+ "/root/.ssh/public.key",
+ "content",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 17,
+ "LineNumber": 304
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 25,
+ "LineNumber": 327
+ },
+ "Path": [
+ "Resources",
+ "AnsibleConfigServer",
+ "Metadata",
+ "AWS::CloudFormation::Init",
+ "SetPrivateKey",
+ "files",
+ "/root/.ssh/id_rsa",
+ "content",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 17,
+ "LineNumber": 327
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 19,
+ "LineNumber": 377
+ },
+ "Path": [
+ "Resources",
+ "AnsibleConfigServer",
+ "Properties",
+ "UserData",
+ "Fn::Base64",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 377
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
{
"Filename": "test/fixtures/templates/quickstart/openshift.yaml",
"Level": "Warning",
@@ -70,6 +231,12 @@
"ColumnNumber": 13,
"LineNumber": 775
},
+ "Path": [
+ "Resources",
+ "GetRSA",
+ "DependsOn",
+ 0
+ ],
"Start": {
"ColumnNumber": 7,
"LineNumber": 775
@@ -83,6 +250,63 @@
"Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
}
},
+ {
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 19,
+ "LineNumber": 780
+ },
+ "Path": [
+ "Resources",
+ "GetRSA",
+ "Properties",
+ "ResourceProperties",
+ "RequestId",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 780
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 17,
+ "LineNumber": 786
+ },
+ "Path": [
+ "Resources",
+ "GetRSA",
+ "Properties",
+ "ResponseURL",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 786
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
{
"Filename": "test/fixtures/templates/quickstart/openshift.yaml",
"Level": "Warning",
@@ -91,6 +315,14 @@
"ColumnNumber": 18,
"LineNumber": 804
},
+ "Path": [
+ "Resources",
+ "KeyGen",
+ "Properties",
+ "Code",
+ "S3Key",
+ "Fn::Sub"
+ ],
"Start": {
"ColumnNumber": 11,
"LineNumber": 804
@@ -104,6 +336,67 @@
"Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
}
},
+ {
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 25,
+ "LineNumber": 872
+ },
+ "Path": [
+ "Resources",
+ "OpenShiftEtcdLaunchConfig",
+ "Metadata",
+ "AWS::CloudFormation::Init",
+ "GetPublicKey",
+ "files",
+ "/root/.ssh/public.key",
+ "content",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 17,
+ "LineNumber": 872
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 19,
+ "LineNumber": 922
+ },
+ "Path": [
+ "Resources",
+ "OpenShiftEtcdLaunchConfig",
+ "Properties",
+ "UserData",
+ "Fn::Base64",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 922
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
{
"Filename": "test/fixtures/templates/quickstart/openshift.yaml",
"Level": "Warning",
@@ -112,6 +405,11 @@
"ColumnNumber": 14,
"LineNumber": 1085
},
+ "Path": [
+ "Resources",
+ "OpenShiftMasterASLaunchConfig",
+ "DependsOn"
+ ],
"Start": {
"ColumnNumber": 5,
"LineNumber": 1085
@@ -124,5 +422,127 @@
"ShortDescription": "Check obsolete DependsOn configuration for Resources",
"Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
}
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 25,
+ "LineNumber": 1097
+ },
+ "Path": [
+ "Resources",
+ "OpenShiftMasterASLaunchConfig",
+ "Metadata",
+ "AWS::CloudFormation::Init",
+ "GetPublicKey",
+ "files",
+ "/root/.ssh/public.key",
+ "content",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 17,
+ "LineNumber": 1097
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 19,
+ "LineNumber": 1147
+ },
+ "Path": [
+ "Resources",
+ "OpenShiftMasterASLaunchConfig",
+ "Properties",
+ "UserData",
+ "Fn::Base64",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 1147
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 25,
+ "LineNumber": 1426
+ },
+ "Path": [
+ "Resources",
+ "OpenShiftNodesLaunchConfig",
+ "Metadata",
+ "AWS::CloudFormation::Init",
+ "GetPublicKey",
+ "files",
+ "/root/.ssh/public.key",
+ "content",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 17,
+ "LineNumber": 1426
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 19,
+ "LineNumber": 1481
+ },
+ "Path": [
+ "Resources",
+ "OpenShiftNodesLaunchConfig",
+ "Properties",
+ "UserData",
+ "Fn::Base64",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 1481
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
}
]
diff --git a/test/fixtures/results/quickstart/openshift.json b/test/fixtures/results/quickstart/openshift.json
--- a/test/fixtures/results/quickstart/openshift.json
+++ b/test/fixtures/results/quickstart/openshift.json
@@ -1,16 +1,8 @@
[
{
- "Rule": {
- "Id": "W7001",
- "Description": "Making sure the mappings defined are used",
- "ShortDescription": "Check if Mappings are Used",
- "Source": "https://github.com/aws-cloudformation/cfn-python-lint"
- },
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml",
+ "Level": "Warning",
"Location": {
- "Start": {
- "ColumnNumber": 3,
- "LineNumber": 25
- },
"End": {
"ColumnNumber": 18,
"LineNumber": 25
@@ -18,24 +10,78 @@
"Path": [
"Mappings",
"LinuxAMINameMap"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 3,
+ "LineNumber": 25
+ }
},
- "Level": "Warning",
- "Message": "Mapping LinuxAMINameMap not used",
- "Filename": "test/fixtures/templates/quickstart/openshift.yaml"
+ "Message": "Mapping 'LinuxAMINameMap' is defined but not used",
+ "Rule": {
+ "Description": "Making sure the mappings defined are used",
+ "Id": "W7001",
+ "ShortDescription": "Check if Mappings are Used",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint"
+ }
},
{
- "Rule": {
- "Id": "W3005",
- "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
- "ShortDescription": "Check obsolete DependsOn configuration for Resources",
- "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
- },
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml",
+ "Level": "Informational",
"Location": {
+ "End": {
+ "ColumnNumber": 15,
+ "LineNumber": 126
+ },
+ "Path": [
+ "Outputs",
+ "ContainerAccessELBName",
+ "Value",
+ "Fn::Join"
+ ],
"Start": {
- "ColumnNumber": 5,
- "LineNumber": 283
+ "ColumnNumber": 7,
+ "LineNumber": 126
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 15,
+ "LineNumber": 135
},
+ "Path": [
+ "Outputs",
+ "OpenShiftUI",
+ "Value",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 135
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml",
+ "Level": "Warning",
+ "Location": {
"End": {
"ColumnNumber": 14,
"LineNumber": 283
@@ -44,24 +90,24 @@
"Resources",
"AnsibleConfigServer",
"DependsOn"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 5,
+ "LineNumber": 283
+ }
},
- "Level": "Warning",
"Message": "Obsolete DependsOn on resource (OpenShiftNodeASG), dependency already enforced by a \"Ref\" at Resources/AnsibleConfigServer/Properties/UserData/Fn::Base64/Fn::Join/1/43/Ref/OpenShiftNodeASG",
- "Filename": "test/fixtures/templates/quickstart/openshift.yaml"
- },
- {
"Rule": {
- "Id": "W3005",
"Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
"ShortDescription": "Check obsolete DependsOn configuration for Resources",
"Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml",
+ "Level": "Warning",
"Location": {
- "Start": {
- "ColumnNumber": 5,
- "LineNumber": 283
- },
"End": {
"ColumnNumber": 14,
"LineNumber": 283
@@ -70,24 +116,88 @@
"Resources",
"AnsibleConfigServer",
"DependsOn"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 5,
+ "LineNumber": 283
+ }
},
- "Level": "Warning",
"Message": "Obsolete DependsOn on resource (OpenShiftNodeASG), dependency already enforced by a \"Ref\" at Resources/AnsibleConfigServer/Properties/UserData/Fn::Base64/Fn::Join/1/88/Ref/OpenShiftNodeASG",
- "Filename": "test/fixtures/templates/quickstart/openshift.yaml"
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
},
{
- "Rule": {
- "Id": "E3012",
- "Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values",
- "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml",
+ "Level": "Informational",
"Location": {
+ "End": {
+ "ColumnNumber": 25,
+ "LineNumber": 304
+ },
+ "Path": [
+ "Resources",
+ "AnsibleConfigServer",
+ "Metadata",
+ "AWS::CloudFormation::Init",
+ "GetPublicKey",
+ "files",
+ "/root/.ssh/public.key",
+ "content",
+ "Fn::Join"
+ ],
"Start": {
- "ColumnNumber": 9,
- "LineNumber": 365
+ "ColumnNumber": 17,
+ "LineNumber": 304
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 25,
+ "LineNumber": 327
},
+ "Path": [
+ "Resources",
+ "AnsibleConfigServer",
+ "Metadata",
+ "AWS::CloudFormation::Init",
+ "SetPrivateKey",
+ "files",
+ "/root/.ssh/id_rsa",
+ "content",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 17,
+ "LineNumber": 327
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml",
+ "Level": "Error",
+ "Location": {
"End": {
"ColumnNumber": 33,
"LineNumber": 365
@@ -99,24 +209,24 @@
"NetworkInterfaces",
0,
"AssociatePublicIpAddress"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 365
+ }
},
- "Level": "Error",
"Message": "Property Resources/AnsibleConfigServer/Properties/NetworkInterfaces/0/AssociatePublicIpAddress should be of type Boolean",
- "Filename": "test/fixtures/templates/quickstart/openshift.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
"ShortDescription": "Check resource properties values",
"Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 366
- },
"End": {
"ColumnNumber": 28,
"LineNumber": 366
@@ -128,51 +238,137 @@
"NetworkInterfaces",
0,
"DeleteOnTermination"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 366
+ }
},
- "Level": "Error",
"Message": "Property Resources/AnsibleConfigServer/Properties/NetworkInterfaces/0/DeleteOnTermination should be of type Boolean",
- "Filename": "test/fixtures/templates/quickstart/openshift.yaml"
+ "Rule": {
+ "Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
},
{
- "Rule": {
- "Id": "W3005",
- "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
- "ShortDescription": "Check obsolete DependsOn configuration for Resources",
- "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
- },
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml",
+ "Level": "Informational",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 775
+ "End": {
+ "ColumnNumber": 19,
+ "LineNumber": 377
},
+ "Path": [
+ "Resources",
+ "AnsibleConfigServer",
+ "Properties",
+ "UserData",
+ "Fn::Base64",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 377
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml",
+ "Level": "Warning",
+ "Location": {
"End": {
"ColumnNumber": 13,
- "LineNumber": 75
+ "LineNumber": 775
},
"Path": [
"Resources",
"GetRSA",
"DependsOn",
0
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 775
+ }
},
- "Level": "Warning",
"Message": "Obsolete DependsOn on resource (KeyGen), dependency already enforced by a \"Fn:GetAtt\" at Resources/GetRSA/Properties/ServiceToken/Fn::GetAtt/['KeyGen', 'Arn']",
- "Filename": "test/fixtures/templates/quickstart/openshift.yaml"
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
},
{
- "Rule": {
- "Id": "W1020",
- "Description": "Checks sub strings to see if a variable is defined.",
- "ShortDescription": "Sub isn't needed if it doesn't have a variable defined",
- "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
- },
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml",
+ "Level": "Informational",
"Location": {
+ "End": {
+ "ColumnNumber": 19,
+ "LineNumber": 780
+ },
+ "Path": [
+ "Resources",
+ "GetRSA",
+ "Properties",
+ "ResourceProperties",
+ "RequestId",
+ "Fn::Join"
+ ],
"Start": {
"ColumnNumber": 11,
- "LineNumber": 804
+ "LineNumber": 780
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml",
+ "Level": "Informational",
+ "Location": {
+ "End": {
+ "ColumnNumber": 17,
+ "LineNumber": 786
},
+ "Path": [
+ "Resources",
+ "GetRSA",
+ "Properties",
+ "ResponseURL",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 786
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml",
+ "Level": "Warning",
+ "Location": {
"End": {
"ColumnNumber": 18,
"LineNumber": 804
@@ -184,24 +380,24 @@
"Code",
"S3Key",
"Fn::Sub"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 804
+ }
},
- "Level": "Warning",
"Message": "Fn::Sub isn't needed because there are no variables at Resources/KeyGen/Properties/Code/S3Key/Fn::Sub",
- "Filename": "test/fixtures/templates/quickstart/openshift.yaml"
+ "Rule": {
+ "Description": "Checks sub strings to see if a variable is defined.",
+ "Id": "W1020",
+ "ShortDescription": "Sub isn't needed if it doesn't have a variable defined",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
},
{
- "Rule": {
- "Id": "E3012",
- "Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values",
- "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 811
- },
"End": {
"ColumnNumber": 14,
"LineNumber": 811
@@ -211,24 +407,24 @@
"KeyGen",
"Properties",
"Timeout"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 811
+ }
},
- "Level": "Error",
"Message": "Property Resources/KeyGen/Properties/Timeout should be of type Integer",
- "Filename": "test/fixtures/templates/quickstart/openshift.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
"ShortDescription": "Check resource properties values",
"Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 853
- },
"End": {
"ColumnNumber": 26,
"LineNumber": 853
@@ -240,24 +436,56 @@
"Tags",
0,
"PropagateAtLaunch"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 853
+ }
},
- "Level": "Error",
"Message": "Property Resources/OpenShiftEtcdASG/Properties/Tags/0/PropagateAtLaunch should be of type Boolean",
- "Filename": "test/fixtures/templates/quickstart/openshift.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
"ShortDescription": "Check resource properties values",
"Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml",
+ "Level": "Informational",
"Location": {
- "Start": {
- "ColumnNumber": 11,
- "LineNumber": 905
+ "End": {
+ "ColumnNumber": 25,
+ "LineNumber": 872
},
+ "Path": [
+ "Resources",
+ "OpenShiftEtcdLaunchConfig",
+ "Metadata",
+ "AWS::CloudFormation::Init",
+ "GetPublicKey",
+ "files",
+ "/root/.ssh/public.key",
+ "content",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 17,
+ "LineNumber": 872
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml",
+ "Level": "Error",
+ "Location": {
"End": {
"ColumnNumber": 21,
"LineNumber": 905
@@ -270,24 +498,24 @@
0,
"Ebs",
"VolumeSize"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 905
+ }
},
- "Level": "Error",
"Message": "Property Resources/OpenShiftEtcdLaunchConfig/Properties/BlockDeviceMappings/0/Ebs/VolumeSize should be of type Integer",
- "Filename": "test/fixtures/templates/quickstart/openshift.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
"ShortDescription": "Check resource properties values",
"Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 913
- },
"End": {
"ColumnNumber": 25,
"LineNumber": 913
@@ -297,24 +525,53 @@
"OpenShiftEtcdLaunchConfig",
"Properties",
"InstanceMonitoring"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 913
+ }
},
- "Level": "Error",
"Message": "Property Resources/OpenShiftEtcdLaunchConfig/Properties/InstanceMonitoring should be of type Boolean",
- "Filename": "test/fixtures/templates/quickstart/openshift.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
"ShortDescription": "Check resource properties values",
"Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml",
+ "Level": "Informational",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 1077
+ "End": {
+ "ColumnNumber": 19,
+ "LineNumber": 922
},
+ "Path": [
+ "Resources",
+ "OpenShiftEtcdLaunchConfig",
+ "Properties",
+ "UserData",
+ "Fn::Base64",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 922
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml",
+ "Level": "Error",
+ "Location": {
"End": {
"ColumnNumber": 26,
"LineNumber": 1077
@@ -326,24 +583,24 @@
"Tags",
0,
"PropagateAtLaunch"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 1077
+ }
},
- "Level": "Error",
"Message": "Property Resources/OpenShiftMasterASG/Properties/Tags/0/PropagateAtLaunch should be of type Boolean",
- "Filename": "test/fixtures/templates/quickstart/openshift.yaml"
+ "Rule": {
+ "Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
},
{
- "Rule": {
- "Id": "W3005",
- "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
- "ShortDescription": "Check obsolete DependsOn configuration for Resources",
- "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
- },
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml",
+ "Level": "Warning",
"Location": {
- "Start": {
- "ColumnNumber": 5,
- "LineNumber": 1085
- },
"End": {
"ColumnNumber": 14,
"LineNumber": 1085
@@ -352,24 +609,56 @@
"Resources",
"OpenShiftMasterASLaunchConfig",
"DependsOn"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 5,
+ "LineNumber": 1085
+ }
},
- "Level": "Warning",
"Message": "Obsolete DependsOn on resource (GetRSA), dependency already enforced by a \"Fn:GetAtt\" at Resources/OpenShiftMasterASLaunchConfig/Metadata/AWS::CloudFormation::Init/GetPublicKey/files//root/.ssh/public.key/content/Fn::Join/1/1/Fn::GetAtt/['GetRSA', 'PUB']",
- "Filename": "test/fixtures/templates/quickstart/openshift.yaml"
+ "Rule": {
+ "Description": "Check if DependsOn is specified if not needed. A Ref or a Fn::GetAtt already is an implicit dependency.",
+ "Id": "W3005",
+ "ShortDescription": "Check obsolete DependsOn configuration for Resources",
+ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/"
+ }
},
{
- "Rule": {
- "Id": "E3012",
- "Description": "Checks resource property values with Primitive Types for values that match those types.",
- "ShortDescription": "Check resource properties values",
- "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml",
+ "Level": "Informational",
"Location": {
- "Start": {
- "ColumnNumber": 11,
- "LineNumber": 1130
+ "End": {
+ "ColumnNumber": 25,
+ "LineNumber": 1097
},
+ "Path": [
+ "Resources",
+ "OpenShiftMasterASLaunchConfig",
+ "Metadata",
+ "AWS::CloudFormation::Init",
+ "GetPublicKey",
+ "files",
+ "/root/.ssh/public.key",
+ "content",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 17,
+ "LineNumber": 1097
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml",
+ "Level": "Error",
+ "Location": {
"End": {
"ColumnNumber": 21,
"LineNumber": 1130
@@ -382,24 +671,24 @@
0,
"Ebs",
"VolumeSize"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 1130
+ }
},
- "Level": "Error",
"Message": "Property Resources/OpenShiftMasterASLaunchConfig/Properties/BlockDeviceMappings/0/Ebs/VolumeSize should be of type Integer",
- "Filename": "test/fixtures/templates/quickstart/openshift.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
"ShortDescription": "Check resource properties values",
"Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 1138
- },
"End": {
"ColumnNumber": 25,
"LineNumber": 1138
@@ -409,24 +698,53 @@
"OpenShiftMasterASLaunchConfig",
"Properties",
"InstanceMonitoring"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 1138
+ }
},
- "Level": "Error",
"Message": "Property Resources/OpenShiftMasterASLaunchConfig/Properties/InstanceMonitoring should be of type Boolean",
- "Filename": "test/fixtures/templates/quickstart/openshift.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
"ShortDescription": "Check resource properties values",
"Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml",
+ "Level": "Informational",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 1362
+ "End": {
+ "ColumnNumber": 19,
+ "LineNumber": 1147
},
+ "Path": [
+ "Resources",
+ "OpenShiftMasterASLaunchConfig",
+ "Properties",
+ "UserData",
+ "Fn::Base64",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 1147
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml",
+ "Level": "Error",
+ "Location": {
"End": {
"ColumnNumber": 26,
"LineNumber": 1362
@@ -438,24 +756,24 @@
"Tags",
0,
"PropagateAtLaunch"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 1362
+ }
},
- "Level": "Error",
"Message": "Property Resources/OpenShiftNodeASG/Properties/Tags/0/PropagateAtLaunch should be of type Boolean",
- "Filename": "test/fixtures/templates/quickstart/openshift.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
"ShortDescription": "Check resource properties values",
"Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 1403
- },
"End": {
"ColumnNumber": 17,
"LineNumber": 1403
@@ -467,24 +785,24 @@
"SecurityGroupIngress",
1,
"FromPort"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 1403
+ }
},
- "Level": "Error",
"Message": "Property Resources/OpenShiftNodeSecurityGroup/Properties/SecurityGroupIngress/1/FromPort should be of type Integer",
- "Filename": "test/fixtures/templates/quickstart/openshift.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
"ShortDescription": "Check resource properties values",
"Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 1405
- },
"End": {
"ColumnNumber": 15,
"LineNumber": 1405
@@ -496,24 +814,24 @@
"SecurityGroupIngress",
1,
"ToPort"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 1405
+ }
},
- "Level": "Error",
"Message": "Property Resources/OpenShiftNodeSecurityGroup/Properties/SecurityGroupIngress/1/ToPort should be of type Integer",
- "Filename": "test/fixtures/templates/quickstart/openshift.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
"ShortDescription": "Check resource properties values",
"Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 1408
- },
"End": {
"ColumnNumber": 17,
"LineNumber": 1408
@@ -525,24 +843,24 @@
"SecurityGroupIngress",
2,
"FromPort"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 1408
+ }
},
- "Level": "Error",
"Message": "Property Resources/OpenShiftNodeSecurityGroup/Properties/SecurityGroupIngress/2/FromPort should be of type Integer",
- "Filename": "test/fixtures/templates/quickstart/openshift.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
"ShortDescription": "Check resource properties values",
"Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 1410
- },
"End": {
"ColumnNumber": 15,
"LineNumber": 1410
@@ -554,24 +872,56 @@
"SecurityGroupIngress",
2,
"ToPort"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 1410
+ }
},
- "Level": "Error",
"Message": "Property Resources/OpenShiftNodeSecurityGroup/Properties/SecurityGroupIngress/2/ToPort should be of type Integer",
- "Filename": "test/fixtures/templates/quickstart/openshift.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
"ShortDescription": "Check resource properties values",
"Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml",
+ "Level": "Informational",
"Location": {
- "Start": {
- "ColumnNumber": 11,
- "LineNumber": 1459
+ "End": {
+ "ColumnNumber": 25,
+ "LineNumber": 1426
},
+ "Path": [
+ "Resources",
+ "OpenShiftNodesLaunchConfig",
+ "Metadata",
+ "AWS::CloudFormation::Init",
+ "GetPublicKey",
+ "files",
+ "/root/.ssh/public.key",
+ "content",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 17,
+ "LineNumber": 1426
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml",
+ "Level": "Error",
+ "Location": {
"End": {
"ColumnNumber": 21,
"LineNumber": 1459
@@ -584,24 +934,24 @@
0,
"Ebs",
"VolumeSize"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 1459
+ }
},
- "Level": "Error",
"Message": "Property Resources/OpenShiftNodesLaunchConfig/Properties/BlockDeviceMappings/0/Ebs/VolumeSize should be of type Integer",
- "Filename": "test/fixtures/templates/quickstart/openshift.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
"ShortDescription": "Check resource properties values",
"Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 11,
- "LineNumber": 1463
- },
"End": {
"ColumnNumber": 21,
"LineNumber": 1463
@@ -614,24 +964,24 @@
1,
"Ebs",
"VolumeSize"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 1463
+ }
},
- "Level": "Error",
"Message": "Property Resources/OpenShiftNodesLaunchConfig/Properties/BlockDeviceMappings/1/Ebs/VolumeSize should be of type Integer",
- "Filename": "test/fixtures/templates/quickstart/openshift.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
"ShortDescription": "Check resource properties values",
"Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 7,
- "LineNumber": 1472
- },
"End": {
"ColumnNumber": 25,
"LineNumber": 1472
@@ -641,24 +991,53 @@
"OpenShiftNodesLaunchConfig",
"Properties",
"InstanceMonitoring"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 7,
+ "LineNumber": 1472
+ }
},
- "Level": "Error",
"Message": "Property Resources/OpenShiftNodesLaunchConfig/Properties/InstanceMonitoring should be of type Boolean",
- "Filename": "test/fixtures/templates/quickstart/openshift.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
"ShortDescription": "Check resource properties values",
"Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml",
+ "Level": "Informational",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 1645
+ "End": {
+ "ColumnNumber": 19,
+ "LineNumber": 1481
},
+ "Path": [
+ "Resources",
+ "OpenShiftNodesLaunchConfig",
+ "Properties",
+ "UserData",
+ "Fn::Base64",
+ "Fn::Join"
+ ],
+ "Start": {
+ "ColumnNumber": 11,
+ "LineNumber": 1481
+ }
+ },
+ "Message": "Prefer using Fn::Sub over Fn::Join with an empty delimiter",
+ "Rule": {
+ "Description": "Prefer a sub instead of Join when using a join string that is empty",
+ "Id": "I1022",
+ "ShortDescription": "Use Sub instead of Join",
+ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html"
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml",
+ "Level": "Error",
+ "Location": {
"End": {
"ColumnNumber": 17,
"LineNumber": 1645
@@ -670,24 +1049,24 @@
"SecurityGroupIngress",
1,
"FromPort"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 1645
+ }
},
- "Level": "Error",
"Message": "Property Resources/OpenShiftSecurityGroup/Properties/SecurityGroupIngress/1/FromPort should be of type Integer",
- "Filename": "test/fixtures/templates/quickstart/openshift.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
"ShortDescription": "Check resource properties values",
"Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 1647
- },
"End": {
"ColumnNumber": 15,
"LineNumber": 1647
@@ -699,24 +1078,24 @@
"SecurityGroupIngress",
1,
"ToPort"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 1647
+ }
},
- "Level": "Error",
"Message": "Property Resources/OpenShiftSecurityGroup/Properties/SecurityGroupIngress/1/ToPort should be of type Integer",
- "Filename": "test/fixtures/templates/quickstart/openshift.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
"ShortDescription": "Check resource properties values",
"Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 1650
- },
"End": {
"ColumnNumber": 17,
"LineNumber": 1650
@@ -728,24 +1107,24 @@
"SecurityGroupIngress",
2,
"FromPort"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 1650
+ }
},
- "Level": "Error",
"Message": "Property Resources/OpenShiftSecurityGroup/Properties/SecurityGroupIngress/2/FromPort should be of type Integer",
- "Filename": "test/fixtures/templates/quickstart/openshift.yaml"
- },
- {
"Rule": {
- "Id": "E3012",
"Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
"ShortDescription": "Check resource properties values",
"Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
- },
+ }
+ },
+ {
+ "Filename": "test/fixtures/templates/quickstart/openshift.yaml",
+ "Level": "Error",
"Location": {
- "Start": {
- "ColumnNumber": 9,
- "LineNumber": 1652
- },
"End": {
"ColumnNumber": 15,
"LineNumber": 1652
@@ -757,10 +1136,18 @@
"SecurityGroupIngress",
2,
"ToPort"
- ]
+ ],
+ "Start": {
+ "ColumnNumber": 9,
+ "LineNumber": 1652
+ }
},
- "Level": "Error",
"Message": "Property Resources/OpenShiftSecurityGroup/Properties/SecurityGroupIngress/2/ToPort should be of type Integer",
- "Filename": "test/fixtures/templates/quickstart/openshift.yaml"
+ "Rule": {
+ "Description": "Checks resource property values with Primitive Types for values that match those types.",
+ "Id": "E3012",
+ "ShortDescription": "Check resource properties values",
+ "Source": "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/cfn-resource-specification.md#valueprimitivetype"
+ }
}
-]
\ No newline at end of file
+]
diff --git a/test/fixtures/templates/bad/functions/subnotjoin.yaml b/test/fixtures/templates/bad/functions/subnotjoin.yaml
new file mode 100644
--- /dev/null
+++ b/test/fixtures/templates/bad/functions/subnotjoin.yaml
@@ -0,0 +1,24 @@
+---
+AWSTemplateFormatVersion: "2010-09-09"
+Description: >
+ Test Sub Over Join
+Parameters:
+ myPackage:
+ Type: String
+ Default: httpd
+ Description: Web Package
+ myAppPackage:
+ Type: String
+ Default: java
+ Description: App Package
+Resources:
+ myInstance:
+ Type: AWS::EC2::Instance
+ Properties:
+ ImageId: String
+ UserData:
+ Fn::Base64:
+ Fn::Join:
+ - ''
+ - - !Sub 'yum install ${myPackage}'
+ - !Sub 'yum install ${myAppPackage}'
\ No newline at end of file
diff --git a/test/fixtures/templates/good/functions/subnotjoin.yaml b/test/fixtures/templates/good/functions/subnotjoin.yaml
new file mode 100644
--- /dev/null
+++ b/test/fixtures/templates/good/functions/subnotjoin.yaml
@@ -0,0 +1,23 @@
+---
+AWSTemplateFormatVersion: "2010-09-09"
+Description: >
+ Test Sub Over Join
+Parameters:
+ myPackage:
+ Type: String
+ Default: httpd
+ Description: Web Package
+ myAppPackage:
+ Type: String
+ Default: java
+ Description: App Package
+Resources:
+ myInstance:
+ Type: AWS::EC2::Instance
+ Properties:
+ ImageId: String
+ UserData:
+ Fn::Base64:
+ Fn::Sub: |
+ yum install ${myPackage}
+ yum install ${myAppPackage}
\ No newline at end of file
diff --git a/test/fixtures/templates/good/generic.yaml b/test/fixtures/templates/good/generic.yaml
--- a/test/fixtures/templates/good/generic.yaml
+++ b/test/fixtures/templates/good/generic.yaml
@@ -139,11 +139,7 @@ Resources:
Protocol: HTTP
HealthCheck:
Target:
- Fn::Join:
- - ''
- - - 'HTTP:'
- - Ref: WebServerPort
- - "/"
+ Fn::Sub: 'HTTP:${WebServerPort}/'
HealthyThreshold: '3'
UnhealthyThreshold: '5'
Interval: '30'
diff --git a/test/integration/test_quickstart_templates.py b/test/integration/test_quickstart_templates.py
--- a/test/integration/test_quickstart_templates.py
+++ b/test/integration/test_quickstart_templates.py
@@ -39,7 +39,7 @@ def setUp(self):
},
'watchmaker': {
"filename": 'test/fixtures/templates/public/watchmaker.json',
- "failures": 0
+ "results_filename": 'test/fixtures/results/public/watchmaker.json'
},
'nist_high_master': {
'filename': 'test/fixtures/templates/quickstart/nist_high_master.yaml',
diff --git a/test/rules/functions/test_sub_not_join.py b/test/rules/functions/test_sub_not_join.py
new file mode 100644
--- /dev/null
+++ b/test/rules/functions/test_sub_not_join.py
@@ -0,0 +1,37 @@
+"""
+ Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ software and associated documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to use, copy, modify,
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
+from cfnlint.rules.functions.SubNotJoin import SubNotJoin # pylint: disable=E0401
+from .. import BaseRuleTestCase
+
+
+class TestSubNotJoin(BaseRuleTestCase):
+ """Test Rules Get Att """
+ def setUp(self):
+ """Setup"""
+ super(TestSubNotJoin, self).setUp()
+ self.collection.register(SubNotJoin())
+ self.success_templates = [
+ 'test/fixtures/templates/good/functions/subnotjoin.yaml',
+ ]
+
+ def test_file_positive(self):
+ """Test Positive"""
+ self.helper_file_positive()
+
+ def test_file_negative(self):
+ """Test failure"""
+ self.helper_file_negative('test/fixtures/templates/bad/functions/subnotjoin.yaml', 1)
|
Prefer Fn::Sub over Fn::Join for simple substitution
*cfn-lint version: (`cfn-lint --version`)* 0.20.1
*Description of issue.*
`!Sub` is generally more readable than `!Join` for simple substitution. A common design pattern is to use `!Join` with an empty string delimiter `''`. `!Sub` can accomplish this same function but is often easier to read which aids others in interpreting a template. There are other cases but empty string is the most obvious.
|
I totally agree with you about Sub vs Join, but this proposed rule would be quite opinionated. Maybe put it at INFO level, or make it opt-in?
Agreed, this would be info level.
|
2019-07-30T02:25:30Z
|
[] |
[] |
aws-cloudformation/cfn-lint
| 1,081 |
aws-cloudformation__cfn-lint-1081
|
[
"1080"
] |
33cbb9d4921d44e9632249f596eb24c91fe01c64
|
diff --git a/src/cfnlint/core.py b/src/cfnlint/core.py
--- a/src/cfnlint/core.py
+++ b/src/cfnlint/core.py
@@ -140,7 +140,7 @@ def get_args_filenames(cli_args):
print(rules)
exit(0)
- if not sys.stdin.isatty():
+ if not sys.stdin.isatty() and not config.templates:
return(config, [None], formatter)
if not config.templates:
|
diff --git a/test/module/core/test_run_cli.py b/test/module/core/test_run_cli.py
--- a/test/module/core/test_run_cli.py
+++ b/test/module/core/test_run_cli.py
@@ -92,6 +92,10 @@ def test_template_via_stdin(self):
(_, filenames, _) = cfnlint.core.get_args_filenames([])
assert filenames == [None]
+ with patch('sys.stdin', StringIO(file_content)):
+ (_, filenames, _) = cfnlint.core.get_args_filenames(['--template', filename])
+ assert filenames == [filename]
+
@patch('cfnlint.config.ConfigFileArgs._read_config', create=True)
def test_template_config(self, yaml_mock):
"""Test template config"""
|
Error running cfn-lint with pipe (|)
cfn-lint version: *v0.23.0*
Hello we have a problem running cfn-lint with find command. Only this version is affected as far as we know.
We are keeping couple of template is a folder and linting them like that:
```
find ./templates -type f | xargs cfn-lint -f parseable -c I -t
```
It worked flawlessly before but with the new update we are getting this error:
> 2019-08-02 15:37:01,818 - cfnlint.decode - ERROR - Template file not found: None
None:1:1:1:2:E0000:Template file not found: None
Splitting the files in separated lines with `xargs -L 1` doesn't help.
If you run the cfn-lint command on it's own it works as expected.
This example **doesn't** work:
```
find ./templates -type f | xargs -t cfn-lint -f parseable -c I -t
cfn-lint -f parseable -c I -t ./templates/t1.yml ./templates/t2.yml ./templates/t3.yml
2019-08-02 15:50:20,891 - cfnlint.decode - ERROR - Template file not found: None
None:1:1:1:2:E0000:Template file not found: None
```
This example works:
```
cfn-lint -f parseable -c I -t ./templates/t1.yml ./templates/t2.yml ./templates/t3.yml
```
Regards TT
|
Thanks for reporting this. Support for stdin feeding a template was fixed in the latest release. Let me see what our options are to fix when xargs.
Its worth noting that you can send multiple templates to cfn-lint as well. We support wild card searching for templates and it will also look in folders.
I see this issue with v0.23.0, but not with 0.21.6. However, my issue is unrelated to running with pipe or stdin; I see it when I'm running it in a script.
|
2019-08-02T15:15:49Z
|
[] |
[] |
aws-cloudformation/cfn-lint
| 1,099 |
aws-cloudformation__cfn-lint-1099
|
[
"1085"
] |
403ea46ca8e34495aaa952c4273ac1b469cc18d4
|
diff --git a/src/cfnlint/__init__.py b/src/cfnlint/__init__.py
--- a/src/cfnlint/__init__.py
+++ b/src/cfnlint/__init__.py
@@ -595,16 +595,16 @@ def get_directives(self):
""" Get Directives"""
results = {}
for _, resource_values in self.template.get('Resources', {}).items():
- ignore_rule_ids = resource_values.get('Metadata', {}).get('cfn-lint', {}).get('config', {}).get('ignore_checks', [])
- for ignore_rule_id in ignore_rule_ids:
- if ignore_rule_id not in results:
- results[ignore_rule_id] = []
- location = self._loc(resource_values)
- results[ignore_rule_id].append({
- 'start': location[0],
- 'end': location[2]
- })
-
+ if isinstance(resource_values, dict):
+ ignore_rule_ids = resource_values.get('Metadata', {}).get('cfn-lint', {}).get('config', {}).get('ignore_checks', [])
+ for ignore_rule_id in ignore_rule_ids:
+ if ignore_rule_id not in results:
+ results[ignore_rule_id] = []
+ location = self._loc(resource_values)
+ results[ignore_rule_id].append({
+ 'start': location[0],
+ 'end': location[2]
+ })
return results
def _get_sub_resource_properties(self, keys, properties, path):
|
diff --git a/test/module/test_template.py b/test/module/test_template.py
--- a/test/module/test_template.py
+++ b/test/module/test_template.py
@@ -14,6 +14,7 @@
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
"""
+import json
import cfnlint.helpers
from cfnlint import Template # pylint: disable=E0401
from testlib.testcase import BaseTestCase
@@ -21,6 +22,7 @@
class TestTemplate(BaseTestCase):
"""Test Template Class in cfnlint """
+
def setUp(self):
""" SetUp template object"""
filename = 'test/fixtures/templates/good/generic.yaml'
@@ -47,7 +49,8 @@ def test_get_resources_success(self):
"""Test Success on Get Resources"""
valid_resource_count = 11
resources = self.template.get_resources()
- assert len(resources) == valid_resource_count, 'Expected {} resources, got {}'.format(valid_resource_count, len(resources))
+ assert len(resources) == valid_resource_count, 'Expected {} resources, got {}'.format(
+ valid_resource_count, len(resources))
def test_get_resources_bad(self):
"""Don't get resources that aren't properly configured"""
@@ -72,7 +75,8 @@ def test_get_parameters(self):
""" Test Get Parameters"""
valid_parameter_count = 7
parameters = self.template.get_parameters()
- assert len(parameters) == valid_parameter_count, 'Expected {} parameters, got {}'.format(valid_parameter_count, len(parameters))
+ assert len(parameters) == valid_parameter_count, 'Expected {} parameters, got {}'.format(
+ valid_parameter_count, len(parameters))
def test_get_parameter_names(self):
"""Test Get Parameter Names"""
@@ -83,7 +87,8 @@ def test_get_valid_refs(self):
""" Get Valid REFs"""
valid_ref_count = 26
refs = self.template.get_valid_refs()
- assert len(refs) == valid_ref_count, 'Expected {} refs, got {}'.format(valid_ref_count, len(refs))
+ assert len(refs) == valid_ref_count, 'Expected {} refs, got {}'.format(
+ valid_ref_count, len(refs))
def test_conditions_return_object_success(self):
"""Test condition object response and nested IFs"""
@@ -181,7 +186,8 @@ def test_is_resource_available(self):
# Doesn't fail with a Fn::If based condition
self.assertEqual(
template.is_resource_available(
- ['Resources', 'AMIIDLookup', 'Properties', 'Role', 'Fn::If', 1, 'Fn::GetAtt', ['LambdaExecutionRole', 'Arn']],
+ ['Resources', 'AMIIDLookup', 'Properties', 'Role', 'Fn::If',
+ 1, 'Fn::GetAtt', ['LambdaExecutionRole', 'Arn']],
'LambdaExecutionRole'
),
[]
@@ -233,7 +239,8 @@ def test_is_resource_not_available(self):
template = Template('test.yaml', temp_obj)
self.assertEqual(
template.is_resource_available(
- ['Resources', 'AMIIDLookup', 'Properties', 'Role', 'Fn::If', 1, 'Fn::GetAtt', ['LambdaExecutionRole', 'Arn']],
+ ['Resources', 'AMIIDLookup', 'Properties', 'Role', 'Fn::If',
+ 1, 'Fn::GetAtt', ['LambdaExecutionRole', 'Arn']],
'LambdaExecutionRole'
),
[{'isPrimary': False}]
@@ -249,7 +256,8 @@ def test_is_resource_not_available(self):
# are no conditions in the path that is workable
self.assertEqual(
template.is_resource_available(
- ['Resources', 'AMIIDLookup', 'Properties', 'BadProperty', 'Fn::If', 1, 'Fn::GetAtt', ['LambdaExecutionRole', 'Arn']],
+ ['Resources', 'AMIIDLookup', 'Properties', 'BadProperty',
+ 'Fn::If', 1, 'Fn::GetAtt', ['LambdaExecutionRole', 'Arn']],
'LambdaExecutionRole'
),
[{'isPrimary': False}]
@@ -296,7 +304,8 @@ def test_get_conditions_from_path(self):
self.assertEqual(
template.get_conditions_from_path(
template.template,
- ['Resources', 'AMIIDLookup', 'Properties', 'Role', 'Fn::If', 1, 'Fn::GetAtt', ['LambdaExecutionRole', 'Arn']]
+ ['Resources', 'AMIIDLookup', 'Properties', 'Role', 'Fn::If',
+ 1, 'Fn::GetAtt', ['LambdaExecutionRole', 'Arn']]
),
{'isPrimary': {True}}
)
@@ -358,7 +367,8 @@ def test_failure_get_conditions_from_path(self):
self.assertEqual(
template.get_conditions_from_path(
template.template,
- ['Resources', 'AMIIDLookup', 'Properties', 'Role', 'Fn::If', 1, 'Fn::GetAtt', ['LambdaExecutionRole', 'Arn']]
+ ['Resources', 'AMIIDLookup', 'Properties', 'Role', 'Fn::If',
+ 1, 'Fn::GetAtt', ['LambdaExecutionRole', 'Arn']]
),
{}
)
@@ -529,13 +539,15 @@ def test_get_object_without_conditions_no_value(self):
template = Template('test.yaml', template)
results = template.get_object_without_conditions(
- template.template.get('Resources').get('myInstance').get('Properties').get('BlockDeviceMappings')[1].get('Fn::If')[2]
+ template.template.get('Resources').get('myInstance').get(
+ 'Properties').get('BlockDeviceMappings')[1].get('Fn::If')[2]
)
self.assertEqual(results, [])
results = template.get_object_without_conditions(
- template.template.get('Resources').get('myInstance').get('Properties').get('BlockDeviceMappings')
+ template.template.get('Resources').get('myInstance').get(
+ 'Properties').get('BlockDeviceMappings')
)
# when item is a list return empty list
self.assertEqual(results, [])
@@ -586,7 +598,8 @@ def test_get_object_without_conditions_for_list(self):
template = Template('test.yaml', template)
results = template.get_object_without_conditions(
- template.template.get('Resources').get('myInstance').get('Properties').get('BlockDeviceMappings')
+ template.template.get('Resources').get('myInstance').get(
+ 'Properties').get('BlockDeviceMappings')
)
# handles IFs for a list
self.assertEqual(
@@ -640,7 +653,8 @@ def test_get_object_without_conditions_for_bad_formats(self):
template = Template('test.yaml', template)
results = template.get_object_without_conditions(
- template.template.get('Resources').get('myInstance').get('Properties').get('BlockDeviceMappings')
+ template.template.get('Resources').get('myInstance').get(
+ 'Properties').get('BlockDeviceMappings')
)
# There is no False here but it still passes the 1st item back
self.assertEqual(
@@ -654,7 +668,8 @@ def test_get_object_without_conditions_for_bad_formats(self):
)
results = template.get_object_without_conditions(
- template.template.get('Resources').get('myInstance1').get('Properties').get('BlockDeviceMappings')
+ template.template.get('Resources').get('myInstance1').get(
+ 'Properties').get('BlockDeviceMappings')
)
# There is no False here but it still passes the 1st item back
self.assertEqual(
@@ -765,7 +780,8 @@ def test_get_object_without_nested_conditions_iam(self):
template = Template('test.yaml', template)
results = template.get_object_without_nested_conditions(
- template.template.get('Resources', {}).get('Role', {}).get('Properties', {}).get('AssumeRolePolicyDocument', {}),
+ template.template.get('Resources', {}).get('Role', {}).get(
+ 'Properties', {}).get('AssumeRolePolicyDocument', {}),
['Resources', 'Role', 'Properties', 'AssumeRolePolicyDocument']
)
@@ -922,3 +938,70 @@ def test_get_condition_scenarios_below_path(self):
{'isPrimaryRegion': True, 'isProduction': True},
]
)
+
+ def test_get_directives(self):
+ """ Test getting directives from a template """
+ template_yaml = {
+ 'Resources': {
+ 'Type': 'AWS::S3::Bucket',
+ 'myBucket': {
+ 'Properties': {
+ 'BucketName': "bucket_test"
+ },
+ 'Type': 'AWS::S3::Bucket'
+ },
+ 'myBucket1': {
+ 'Metadata': {
+ 'cfn-lint': {
+ 'config': {
+ 'ignore_checks': [
+ 'E3012',
+ 'I1001'
+ ]
+ }
+ }
+ },
+ 'Properties': {},
+ 'Type': 'AWS::S3::Bucket'
+ },
+ 'myBucket2': {
+ 'Metadata': {
+ 'cfn-lint': {
+ 'config': {
+ 'ignore_checks': [
+ 'E3012',
+ ]
+ }
+ }
+ },
+ 'Properties': {},
+ 'Type': 'AWS::S3::Bucket'
+ }
+ }
+ }
+
+ template = Template(
+ 'test.yaml',
+ cfnlint.decode.cfn_yaml.loads(
+ json.dumps(
+ template_yaml,
+ sort_keys=True,
+ indent=4, separators=(',', ': ')
+ )
+ )
+ )
+ directives = template.get_directives()
+ expected_result = {
+ 'E3012': [
+ {'end': 22, 'start': 9},
+ {'end': 35, 'start': 23}
+ ],
+ 'I1001': [
+ {'end': 22, 'start': 9}
+ ]
+ }
+ self.assertEqual(len(expected_result), len(directives))
+ for key, items in directives.items():
+ self.assertIn(key, expected_result)
+ if key in expected_result:
+ self.assertEqualListOfDicts(items, expected_result.get(key))
|
aws cloudformation validate-template parity
Minimal template example that passes `cfn-lint` but fails `aws cloudformation validate-template`
```yaml
Resources:
Type: AWS::S3::Bucket
```
`Template format error: [/Resources/Type] resource definition is malformed`
|
2019-08-13T22:26:55Z
|
[] |
[] |
|
aws-cloudformation/cfn-lint
| 1,140 |
aws-cloudformation__cfn-lint-1140
|
[
"955"
] |
90309501dae29c3291eebb2775100a1f334445ab
|
diff --git a/src/cfnlint/rules/parameters/AllowedValue.py b/src/cfnlint/rules/parameters/AllowedValue.py
--- a/src/cfnlint/rules/parameters/AllowedValue.py
+++ b/src/cfnlint/rules/parameters/AllowedValue.py
@@ -40,12 +40,19 @@ def check_value_ref(self, value, path, **kwargs):
"""Check Ref"""
matches = []
+ cfn = kwargs.get('cfn')
if 'Fn::If' in path:
- self.logger.debug('Not able to guarentee that the default value hasn\'t been conditioned out')
+ self.logger.debug(
+ 'Not able to guarentee that the default value hasn\'t been conditioned out')
+ return matches
+ if path[0] == 'Resources' and 'Condition' in cfn.template.get(
+ path[0], {}).get(path[1]):
+ self.logger.debug(
+ 'Not able to guarentee that the default value '
+ 'hasn\'t been conditioned out')
return matches
allowed_value_specs = kwargs.get('value_specs', {}).get('AllowedValues', {})
- cfn = kwargs.get('cfn')
if allowed_value_specs:
if value in cfn.template.get('Parameters', {}):
@@ -63,13 +70,15 @@ def check_value_ref(self, value, path, **kwargs):
if str(allowed_value) not in allowed_value_specs:
param_path = ['Parameters', value, 'AllowedValues', index]
message = 'You must specify a valid allowed value for {0} ({1}).\nValid values are {2}'
- matches.append(RuleMatch(param_path, message.format(value, allowed_value, allowed_value_specs)))
+ matches.append(RuleMatch(param_path, message.format(
+ value, allowed_value, allowed_value_specs)))
if default_value:
# Check Default, only if no allowed Values are specified in the parameter (that's covered by E2015)
if str(default_value) not in allowed_value_specs:
param_path = ['Parameters', value, 'Default']
message = 'You must specify a valid Default value for {0} ({1}).\nValid values are {2}'
- matches.append(RuleMatch(param_path, message.format(value, default_value, allowed_value_specs)))
+ matches.append(RuleMatch(param_path, message.format(
+ value, default_value, allowed_value_specs)))
return matches
@@ -87,7 +96,8 @@ def check(self, cfn, properties, value_specs, property_specs, path):
cfn.check_value(
p_value, prop, p_path,
check_ref=self.check_value_ref,
- value_specs=RESOURCE_SPECS.get(cfn.regions[0]).get('ValueTypes').get(value_type, {}),
+ value_specs=RESOURCE_SPECS.get(cfn.regions[0]).get(
+ 'ValueTypes').get(value_type, {}),
cfn=cfn, property_type=property_type, property_name=prop
)
)
@@ -98,7 +108,8 @@ def match_resource_sub_properties(self, properties, property_type, path, cfn):
"""Match for sub properties"""
matches = list()
- specs = RESOURCE_SPECS.get(cfn.regions[0]).get('PropertyTypes').get(property_type, {}).get('Properties', {})
+ specs = RESOURCE_SPECS.get(cfn.regions[0]).get(
+ 'PropertyTypes').get(property_type, {}).get('Properties', {})
property_specs = RESOURCE_SPECS.get(cfn.regions[0]).get('PropertyTypes').get(property_type)
matches.extend(self.check(cfn, properties, specs, property_specs, path))
@@ -108,7 +119,8 @@ def match_resource_properties(self, properties, resource_type, path, cfn):
"""Check CloudFormation Properties"""
matches = list()
- specs = RESOURCE_SPECS.get(cfn.regions[0]).get('ResourceTypes').get(resource_type, {}).get('Properties', {})
+ specs = RESOURCE_SPECS.get(cfn.regions[0]).get(
+ 'ResourceTypes').get(resource_type, {}).get('Properties', {})
resource_specs = RESOURCE_SPECS.get(cfn.regions[0]).get('ResourceTypes').get(resource_type)
matches.extend(self.check(cfn, properties, specs, resource_specs, path))
|
diff --git a/test/fixtures/templates/good/resources/properties/allowed_values.yaml b/test/fixtures/templates/good/resources/properties/allowed_values.yaml
--- a/test/fixtures/templates/good/resources/properties/allowed_values.yaml
+++ b/test/fixtures/templates/good/resources/properties/allowed_values.yaml
@@ -50,6 +50,11 @@ Resources:
LogGroupName: 'some-log-group'
# Don't error when Retention is used inside a condition
RetentionInDays: !If [IsRetention, !Ref Retention, !Ref 'AWS::NoValue']
+ LogGroupWithResourceCondition:
+ Type: AWS::Logs::LogGroup
+ Condition: IsRetention
+ Properties:
+ RetentionInDays: !Ref Retention
AccessKey:
Type: "AWS::IAM::AccessKey"
Properties:
|
W2030 Default value required on conditionally included property
*cfn-lint version: 0.21.3*
CloudFormation provides the AWS::NoValue pseudo-parameter, which allows for a property to be included based on a given Condition. However, cfn-lint will still validate the potential value provided for the property, even if it will not actually be used in the deployment.
Example template:
```yaml
Parameters:
Retention:
Type: Number
Description: Retention in days for the log group (-1 for no retention)
Default: -1
Conditions:
IsRetention:
!Not [!Equals [!Ref 'Retention', '-1']]
Resources:
LogGroup:
Type: AWS::Logs::LogGroup
Properties:
LogGroupName: 'some-log-group'
RetentionInDays: !If [IsRetention, !Ref Retention, !Ref 'AWS::NoValue']
```
This template allows the user to specify the retention on a log group, or use the number -1 if they wish to have unlimited retention. This is achieved via a Condition as well as an If block that conditionally includes the property.
This leads to the following linter output:
```
cfn-lint --template template.yaml
W2030 You must specify a valid Default value for Retention (-1).
Valid values are ['1', '3', '5', '7', '14', '30', '60', '90', '120', '150', '180', '365', '400', '545', '731', '1827', '3653']
cloudformation/template.yaml:5:5
```
This can of course be avoided by disabling this specific check in the template Metadata block. Unfortunately it cannot be disabled in the resource Metadata, as the validation error happens on the Parameter:
```yaml
Metadata:
cfn-lint:
config:
ignore_checks:
- W2030
```
This might be a difficult situation to account for, since it would require the Condition to be evaluated to determine whether the property itself should even be checked.
|
You have the same problem if the Condition is set on the Resource instead of the property:
```
LogGroup:
Type: AWS::Logs::LogGroup
Properties:
RetentionInDays: !Ref Retention
Condition: IsRetention
```
|
2019-09-26T12:54:40Z
|
[] |
[] |
aws-cloudformation/cfn-lint
| 1,143 |
aws-cloudformation__cfn-lint-1143
|
[
"1137"
] |
9a5f39213071dc90049d374d790b9b3f51d1c8da
|
diff --git a/src/cfnlint/rules/resources/stepfunctions/StateMachine.py b/src/cfnlint/rules/resources/stepfunctions/StateMachine.py
--- a/src/cfnlint/rules/resources/stepfunctions/StateMachine.py
+++ b/src/cfnlint/rules/resources/stepfunctions/StateMachine.py
@@ -52,7 +52,10 @@ def _check_state_json(self, def_json, state_name, path):
]
state_key_types = {
'Pass': ['Result', 'ResultPath', 'Parameters'],
- 'Task': ['Resource', 'ResultPath', 'Retry', 'Catch', 'TimeoutSeconds', 'Parameters', 'HeartbeatSeconds'],
+ 'Task': ['Resource', 'ResultPath', 'Retry', 'Catch',
+ 'TimeoutSeconds', 'Parameters', 'HeartbeatSeconds'],
+ 'Map': ['MaxConcurrency', 'Iterator', 'ItemsPath', 'ResultPath',
+ 'Retry', 'Catch'],
'Choice': ['Choices', 'Default'],
'Wait': ['Seconds', 'Timestamp', 'SecondsPath', 'TimestampPath'],
'Succeed': [],
@@ -71,7 +74,8 @@ def _check_state_json(self, def_json, state_name, path):
for req_key in common_state_required_keys:
if req_key not in def_json:
- message = 'State Machine Definition required key (%s) for State (%s) is missing' % (req_key, state_name)
+ message = 'State Machine Definition required key (%s) for State (%s) is missing' % (
+ req_key, state_name)
matches.append(RuleMatch(path, message))
return matches
@@ -80,11 +84,13 @@ def _check_state_json(self, def_json, state_name, path):
if state_type in state_key_types:
for state_key, _ in def_json.items():
if state_key not in common_state_keys + state_key_types.get(state_type, []):
- message = 'State Machine Definition key (%s) for State (%s) of Type (%s) is not valid' % (state_key, state_name, state_type)
+ message = 'State Machine Definition key (%s) for State (%s) of Type (%s) is not valid' % (
+ state_key, state_name, state_type)
matches.append(RuleMatch(path, message))
for req_key in common_state_required_keys + state_required_types.get(state_type, []):
if req_key not in def_json:
- message = 'State Machine Definition required key (%s) for State (%s) of Type (%s) is missing' % (req_key, state_name, state_type)
+ message = 'State Machine Definition required key (%s) for State (%s) of Type (%s) is missing' % (
+ req_key, state_name, state_type)
matches.append(RuleMatch(path, message))
return matches
else:
|
diff --git a/test/fixtures/templates/good/resources/stepfunctions/state_machine.yaml b/test/fixtures/templates/good/resources/stepfunctions/state_machine.yaml
--- a/test/fixtures/templates/good/resources/stepfunctions/state_machine.yaml
+++ b/test/fixtures/templates/good/resources/stepfunctions/state_machine.yaml
@@ -83,3 +83,83 @@ Resources:
}
- TestParam: !Ref timeout
RoleArn: arn:aws:iam::111122223333:role/service-role/StatesExecutionRole-us-east-1
+ MyStateMachineNewTypes:
+ Type: AWS::StepFunctions::StateMachine
+ Properties:
+ StateMachineName: HelloWorld-StateMachine
+ DefinitionString: |-
+ {
+ "StartAt": "ValidatePayment",
+ "States": {
+ "ValidatePayment": {
+ "Type": "Task",
+ "Resource": "arn:aws:lambda:us-west-2:123456789012:function:validatePayment",
+ "Next": "CheckPayment"
+ },
+ "CheckPayment": {
+ "Type": "Choice",
+ "Choices": [
+ {
+ "Not": {
+ "Variable": "$.payment",
+ "StringEquals": "Ok"
+ },
+ "Next": "PaymentFailed"
+ }
+ ],
+ "Default": "ProcessAllItems"
+ },
+ "PaymentFailed": {
+ "Type": "Task",
+ "Resource": "arn:aws:lambda:us-west-2:123456789012:function:paymentFailed",
+ "End": true
+ },
+ "ProcessAllItems": {
+ "Type": "Map",
+ "InputPath": "$.detail",
+ "ItemsPath": "$.items",
+ "MaxConcurrency": 3,
+ "Iterator": {
+ "StartAt": "CheckAvailability",
+ "States": {
+ "CheckAvailability": {
+ "Type": "Task",
+ "Resource": "arn:aws:lambda:us-west-2:123456789012:function:checkAvailability",
+ "Retry": [
+ {
+ "ErrorEquals": [
+ "TimeOut"
+ ],
+ "IntervalSeconds": 1,
+ "BackoffRate": 2,
+ "MaxAttempts": 3
+ }
+ ],
+ "Next": "PrepareForDelivery"
+ },
+ "PrepareForDelivery": {
+ "Type": "Task",
+ "Resource": "arn:aws:lambda:us-west-2:123456789012:function:prepareForDelivery",
+ "Next": "StartDelivery"
+ },
+ "StartDelivery": {
+ "Type": "Task",
+ "Resource": "arn:aws:lambda:us-west-2:123456789012:function:startDelivery",
+ "End": true
+ }
+ }
+ },
+ "ResultPath": "$.detail.processedItems",
+ "Next": "SendOrderSummary"
+ },
+ "SendOrderSummary": {
+ "Type": "Task",
+ "InputPath": "$.detail.processedItems",
+ "Resource": "arn:aws:lambda:us-west-2:123456789012:function:sendOrderSummary",
+ "ResultPath": "$.detail.summary",
+ "End": true
+ }
+ }
+ }
+ RoleArn: arn:aws:iam::111122223333:role/service-role/StatesExecutionRole-us-east-1
+
|
State Machine types missing Map type
The [current list](https://github.com/aws-cloudformation/cfn-python-lint/blob/master/src/cfnlint/rules/resources/stepfunctions/StateMachine.py#L53) of valid types for state machine tasks is missing the recently-announced [`Map`](https://aws.amazon.com/blogs/aws/new-step-functions-support-for-dynamic-parallelism/) type
|
2019-09-28T12:01:44Z
|
[] |
[] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.