Skip to content

Commit

Permalink
Updates from spec version 180.0.0 (updated)
Browse files Browse the repository at this point in the history
Spec version 180.0.0 was updated around 2024-07-12. This change
also resolves some conflicts in AWS::SES that came in this update.
  • Loading branch information
markpeek committed Jul 14, 2024
1 parent 93f7667 commit b947a39
Show file tree
Hide file tree
Showing 8 changed files with 603 additions and 44 deletions.
22 changes: 22 additions & 0 deletions scripts/patches/ses.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,26 @@
"path": "/ResourceTypes/AWS::SES::Template/Properties/Template/Type",
"value": "EmailTemplate",
},
# Resolve conflict between AWS::SES::ReceiptRule.Rule and AWS::SES::MailManagerRuleSet.Rule
{
"op": "move",
"from": "/PropertyTypes/AWS::SES::MailManagerRuleSet.Rule",
"path": "/PropertyTypes/AWS::SES::MailManagerRuleSet.MailManagerRule",
},
{
"op": "replace",
"path": "/ResourceTypes/AWS::SES::MailManagerRuleSet/Properties/Rules/ItemType",
"value": "MailManagerRule",
},
# Resolve conflict between AWS::SES::ReceiptRule.S3Actio and AWS::SES::MailManagerRuleSet.S3Action
{
"op": "move",
"from": "/PropertyTypes/AWS::SES::MailManagerRuleSet.S3Action",
"path": "/PropertyTypes/AWS::SES::MailManagerRuleSet.MailManagerS3Action",
},
{
"op": "replace",
"path": "/PropertyTypes/AWS::SES::MailManagerRuleSet.RuleAction/Properties/WriteToS3/Type",
"value": "MailManagerS3Action",
},
]
1 change: 1 addition & 0 deletions troposphere/cloudformation.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ class OperationPreferences(AWSProperty):
"""

props: PropsDictType = {
"ConcurrencyMode": (str, False),
"FailureToleranceCount": (integer, False),
"FailureTolerancePercentage": (integer, False),
"MaxConcurrentCount": (integer, False),
Expand Down
36 changes: 18 additions & 18 deletions troposphere/codepipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class CustomActionType(AWSObject):

class EncryptionKey(AWSProperty):
"""
`EncryptionKey <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-artifactstore-encryptionkey.html>`__
`EncryptionKey <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-encryptionkey.html>`__
"""

props: PropsDictType = {
Expand Down Expand Up @@ -105,7 +105,7 @@ class ArtifactStoreMap(AWSProperty):

class DisableInboundStageTransitions(AWSProperty):
"""
`DisableInboundStageTransitions <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-disableinboundstagetransitions.html>`__
`DisableInboundStageTransitions <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stagetransition.html>`__
"""

props: PropsDictType = {
Expand All @@ -116,7 +116,7 @@ class DisableInboundStageTransitions(AWSProperty):

class GitBranchFilterCriteria(AWSProperty):
"""
`GitBranchFilterCriteria <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-triggers-git-branch-filter-criteria.html>`__
`GitBranchFilterCriteria <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-gitbranchfiltercriteria.html>`__
"""

props: PropsDictType = {
Expand All @@ -127,7 +127,7 @@ class GitBranchFilterCriteria(AWSProperty):

class GitFilePathFilterCriteria(AWSProperty):
"""
`GitFilePathFilterCriteria <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-triggers-git-file-path-filter-criteria.html>`__
`GitFilePathFilterCriteria <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-gitfilepathfiltercriteria.html>`__
"""

props: PropsDictType = {
Expand All @@ -138,7 +138,7 @@ class GitFilePathFilterCriteria(AWSProperty):

class GitPullRequestFilter(AWSProperty):
"""
`GitPullRequestFilter <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-triggers-git-pull-request-filter.html>`__
`GitPullRequestFilter <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-gitpullrequestfilter.html>`__
"""

props: PropsDictType = {
Expand All @@ -150,7 +150,7 @@ class GitPullRequestFilter(AWSProperty):

class GitTagFilterCriteria(AWSProperty):
"""
`GitTagFilterCriteria <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-triggers-git-tag-filter-criteria.html>`__
`GitTagFilterCriteria <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-gittagfiltercriteria.html>`__
"""

props: PropsDictType = {
Expand All @@ -161,7 +161,7 @@ class GitTagFilterCriteria(AWSProperty):

class GitPushFilter(AWSProperty):
"""
`GitPushFilter <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-triggers-git-push-filter.html>`__
`GitPushFilter <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-gitpushfilter.html>`__
"""

props: PropsDictType = {
Expand All @@ -173,7 +173,7 @@ class GitPushFilter(AWSProperty):

class GitConfiguration(AWSProperty):
"""
`GitConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-triggers-git-configuration.html>`__
`GitConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-gitconfiguration.html>`__
"""

props: PropsDictType = {
Expand All @@ -185,7 +185,7 @@ class GitConfiguration(AWSProperty):

class PipelineTriggerDeclaration(AWSProperty):
"""
`PipelineTriggerDeclaration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-triggers.html>`__
`PipelineTriggerDeclaration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-pipelinetriggerdeclaration.html>`__
"""

props: PropsDictType = {
Expand All @@ -196,7 +196,7 @@ class PipelineTriggerDeclaration(AWSProperty):

class ActionTypeId(AWSProperty):
"""
`ActionTypeId <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stages-actions-actiontypeid.html>`__
`ActionTypeId <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-actiontypeid.html>`__
"""

props: PropsDictType = {
Expand All @@ -209,7 +209,7 @@ class ActionTypeId(AWSProperty):

class InputArtifacts(AWSProperty):
"""
`InputArtifacts <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stages-actions-inputartifacts.html>`__
`InputArtifacts <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-inputartifact.html>`__
"""

props: PropsDictType = {
Expand All @@ -219,7 +219,7 @@ class InputArtifacts(AWSProperty):

class OutputArtifacts(AWSProperty):
"""
`OutputArtifacts <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stages-actions-outputartifacts.html>`__
`OutputArtifacts <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-outputartifact.html>`__
"""

props: PropsDictType = {
Expand All @@ -229,7 +229,7 @@ class OutputArtifacts(AWSProperty):

class Actions(AWSProperty):
"""
`Actions <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stages-actions.html>`__
`Actions <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-actiondeclaration.html>`__
"""

props: PropsDictType = {
Expand All @@ -248,7 +248,7 @@ class Actions(AWSProperty):

class Blockers(AWSProperty):
"""
`Blockers <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stages-blockers.html>`__
`Blockers <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-blockerdeclaration.html>`__
"""

props: PropsDictType = {
Expand All @@ -259,17 +259,17 @@ class Blockers(AWSProperty):

class FailureConditions(AWSProperty):
"""
`FailureConditions <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stages-failure-conditions.html>`__
`FailureConditions <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-failureconditions.html>`__
"""

props: PropsDictType = {
"Result": (str, True),
"Result": (str, False),
}


class Stages(AWSProperty):
"""
`Stages <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stages.html>`__
`Stages <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stagedeclaration.html>`__
"""

props: PropsDictType = {
Expand All @@ -282,7 +282,7 @@ class Stages(AWSProperty):

class VariableDeclaration(AWSProperty):
"""
`VariableDeclaration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-variables.html>`__
`VariableDeclaration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-variabledeclaration.html>`__
"""

props: PropsDictType = {
Expand Down
3 changes: 0 additions & 3 deletions troposphere/deadline.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,11 +226,8 @@ class MeteredProduct(AWSObject):
resource_type = "AWS::Deadline::MeteredProduct"

props: PropsDictType = {
"Family": (str, False),
"LicenseEndpointId": (str, False),
"Port": (integer, False),
"ProductId": (str, False),
"Vendor": (str, False),
}


Expand Down
1 change: 1 addition & 0 deletions troposphere/ec2.py
Original file line number Diff line number Diff line change
Expand Up @@ -2453,6 +2453,7 @@ class TrafficMirrorFilterRule(AWSObject):
"RuleNumber": (integer, True),
"SourceCidrBlock": (str, True),
"SourcePortRange": (TrafficMirrorPortRange, False),
"Tags": (Tags, False),
"TrafficDirection": (str, True),
"TrafficMirrorFilterId": (str, True),
}
Expand Down
53 changes: 42 additions & 11 deletions troposphere/entityresolution.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,30 @@
from .validators import boolean


class Rule(AWSProperty):
"""
`Rule <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-matchingworkflow-rule.html>`__
"""

props: PropsDictType = {
"MatchingKeys": ([str], True),
"RuleName": (str, True),
}


class IdMappingRuleBasedProperties(AWSProperty):
"""
`IdMappingRuleBasedProperties <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-idmappingworkflow-idmappingrulebasedproperties.html>`__
"""

props: PropsDictType = {
"AttributeMatchingModel": (str, True),
"RecordMatchingModel": (str, True),
"RuleDefinitionType": (str, False),
"Rules": ([Rule], False),
}


class IntermediateSourceConfiguration(AWSProperty):
"""
`IntermediateSourceConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-matchingworkflow-intermediatesourceconfiguration.html>`__
Expand Down Expand Up @@ -39,7 +63,9 @@ class IdMappingTechniques(AWSProperty):

props: PropsDictType = {
"IdMappingType": (str, False),
"NormalizationVersion": (str, False),
"ProviderProperties": (ProviderProperties, False),
"RuleBasedProperties": (IdMappingRuleBasedProperties, False),
}


Expand Down Expand Up @@ -95,6 +121,19 @@ class NamespaceProviderProperties(AWSProperty):
}


class NamespaceRuleBasedProperties(AWSProperty):
"""
`NamespaceRuleBasedProperties <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-idnamespace-namespacerulebasedproperties.html>`__
"""

props: PropsDictType = {
"AttributeMatchingModel": (str, False),
"RecordMatchingModels": ([str], False),
"RuleDefinitionTypes": ([str], False),
"Rules": ([Rule], False),
}


class IdNamespaceIdMappingWorkflowProperties(AWSProperty):
"""
`IdNamespaceIdMappingWorkflowProperties <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-idnamespace-idnamespaceidmappingworkflowproperties.html>`__
Expand All @@ -103,6 +142,7 @@ class IdNamespaceIdMappingWorkflowProperties(AWSProperty):
props: PropsDictType = {
"IdMappingType": (str, True),
"ProviderProperties": (NamespaceProviderProperties, False),
"RuleBasedProperties": (NamespaceRuleBasedProperties, False),
}


Expand Down Expand Up @@ -174,24 +214,14 @@ class OutputSource(AWSProperty):
}


class Rule(AWSProperty):
"""
`Rule <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-matchingworkflow-rule.html>`__
"""

props: PropsDictType = {
"MatchingKeys": ([str], True),
"RuleName": (str, True),
}


class RuleBasedProperties(AWSProperty):
"""
`RuleBasedProperties <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-matchingworkflow-rulebasedproperties.html>`__
"""

props: PropsDictType = {
"AttributeMatchingModel": (str, True),
"MatchPurpose": (str, False),
"Rules": ([Rule], True),
}

Expand Down Expand Up @@ -251,6 +281,7 @@ class SchemaInputAttribute(AWSProperty):
props: PropsDictType = {
"FieldName": (str, True),
"GroupName": (str, False),
"Hashed": (boolean, False),
"MatchKey": (str, False),
"SubType": (str, False),
"Type": (str, True),
Expand Down
Loading

0 comments on commit b947a39

Please sign in to comment.