Skip to content

Commit

Permalink
Add missing SecretTargetAttachment TargetTypes (#1578)
Browse files Browse the repository at this point in the history
Cloudformation supports more TargetTypes than currently present in the
VALID_TARGET_TYPES. This pull request adds the missing values.
List of valid TargetTypes is found at:
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-secretsmanager-secrettargetattachment.html#cfn-secretsmanager-secrettargetattachment-targettype
  • Loading branch information
codingtim committed Feb 4, 2020
1 parent 0778ec5 commit 2f85f3b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion troposphere/secretsmanager.py
Expand Up @@ -7,7 +7,9 @@
from .compat import policytypes
from .validators import integer, boolean

VALID_TARGET_TYPES = ('AWS::RDS::DBInstance', 'AWS::RDS::DBCluster')
VALID_TARGET_TYPES = ('AWS::RDS::DBInstance', 'AWS::RDS::DBCluster',
'AWS::Redshift::Cluster', 'AWS::DocDB::DBInstance',
'AWS::DocDB::DBCluster')


def validate_target_types(target_type):
Expand Down

0 comments on commit 2f85f3b

Please sign in to comment.