Skip to content

Commit

Permalink
Updates from spec version 159.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
markpeek committed Feb 14, 2024
1 parent c65e5e0 commit 0fc0f78
Show file tree
Hide file tree
Showing 5 changed files with 83 additions and 2 deletions.
38 changes: 38 additions & 0 deletions troposphere/codepipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,40 @@ 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>`__
"""

props: PropsDictType = {
"Excludes": ([str], False),
"Includes": ([str], False),
}


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

props: PropsDictType = {
"Excludes": ([str], False),
"Includes": ([str], False),
}


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

props: PropsDictType = {
"Branches": (GitBranchFilterCriteria, False),
"Events": ([str], False),
"FilePaths": (GitFilePathFilterCriteria, False),
}


class GitTagFilterCriteria(AWSProperty):
"""
`GitTagFilterCriteria <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-triggers-git-tag-filter-criteria.html>`__
Expand All @@ -131,6 +165,8 @@ class GitPushFilter(AWSProperty):
"""

props: PropsDictType = {
"Branches": (GitBranchFilterCriteria, False),
"FilePaths": (GitFilePathFilterCriteria, False),
"Tags": (GitTagFilterCriteria, False),
}

Expand All @@ -141,6 +177,7 @@ class GitConfiguration(AWSProperty):
"""

props: PropsDictType = {
"PullRequest": ([GitPullRequestFilter], False),
"Push": ([GitPushFilter], False),
"SourceActionName": (str, True),
}
Expand Down Expand Up @@ -254,6 +291,7 @@ class Pipeline(AWSObject):
"ArtifactStore": (ArtifactStore, False),
"ArtifactStores": ([ArtifactStoreMap], False),
"DisableInboundStageTransitions": ([DisableInboundStageTransitions], False),
"ExecutionMode": (str, False),
"Name": (str, False),
"PipelineType": (str, False),
"RestartExecutionOnUpdate": (boolean, False),
Expand Down
4 changes: 2 additions & 2 deletions troposphere/ec2.py
Original file line number Diff line number Diff line change
Expand Up @@ -1960,7 +1960,7 @@ class PrefixList(AWSObject):
props: PropsDictType = {
"AddressFamily": (str, True),
"Entries": ([Entry], False),
"MaxEntries": (integer, True),
"MaxEntries": (integer, False),
"PrefixListName": (str, True),
"Tags": (Tags, False),
}
Expand Down Expand Up @@ -2050,7 +2050,7 @@ def validate(self):

class SecurityGroupIngress(AWSObject):
"""
`SecurityGroupIngress <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-ingress.html>`__
`SecurityGroupIngress <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-securitygroupingress.html>`__
"""

resource_type = "AWS::EC2::SecurityGroupIngress"
Expand Down
11 changes: 11 additions & 0 deletions troposphere/iot.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,16 @@ class AuthorizerConfig(AWSProperty):
}


class ServerCertificateConfig(AWSProperty):
"""
`ServerCertificateConfig <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-domainconfiguration-servercertificateconfig.html>`__
"""

props: PropsDictType = {
"EnableOCSPCheck": (boolean, False),
}


class TlsConfig(AWSProperty):
"""
`TlsConfig <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-domainconfiguration-tlsconfig.html>`__
Expand All @@ -267,6 +277,7 @@ class DomainConfiguration(AWSObject):
"DomainConfigurationStatus": (str, False),
"DomainName": (str, False),
"ServerCertificateArns": ([str], False),
"ServerCertificateConfig": (ServerCertificateConfig, False),
"ServiceType": (str, False),
"Tags": (Tags, False),
"TlsConfig": (TlsConfig, False),
Expand Down
6 changes: 6 additions & 0 deletions troposphere/redshiftserverless.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class Namespace(AWSObject):
resource_type = "AWS::RedshiftServerless::Namespace"

props: PropsDictType = {
"AdminPasswordSecretKmsKeyId": (str, False),
"AdminUserPassword": (str, False),
"AdminUsername": (str, False),
"DbName": (str, False),
Expand All @@ -27,7 +28,10 @@ class Namespace(AWSObject):
"IamRoles": ([str], False),
"KmsKeyId": (str, False),
"LogExports": ([str], False),
"ManageAdminPassword": (boolean, False),
"NamespaceName": (str, True),
"NamespaceResourcePolicy": (dict, False),
"RedshiftIdcApplicationArn": (str, False),
"Tags": (Tags, False),
}

Expand Down Expand Up @@ -130,6 +134,8 @@ class NamespaceProperty(AWSProperty):
"""

props: PropsDictType = {
"AdminPasswordSecretArn": (str, False),
"AdminPasswordSecretKmsKeyId": (str, False),
"AdminUsername": (str, False),
"CreationDate": (str, False),
"DbName": (str, False),
Expand Down
26 changes: 26 additions & 0 deletions troposphere/route53.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,30 @@ class GeoLocation(AWSProperty):
}


class Coordinates(AWSProperty):
"""
`Coordinates <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-recordsetgroup-coordinates.html>`__
"""

props: PropsDictType = {
"Latitude": (str, True),
"Longitude": (str, True),
}


class GeoProximityLocation(AWSProperty):
"""
`GeoProximityLocation <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-geoproximitylocation.html>`__
"""

props: PropsDictType = {
"AWSRegion": (str, False),
"Bias": (integer, False),
"Coordinates": (Coordinates, False),
"LocalZoneGroup": (str, False),
}


class RecordSet(AWSProperty):
"""
`RecordSet <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-recordset.html>`__
Expand All @@ -192,6 +216,7 @@ class RecordSet(AWSProperty):
"CidrRoutingConfig": (CidrRoutingConfig, False),
"Failover": (str, False),
"GeoLocation": (GeoLocation, False),
"GeoProximityLocation": (GeoProximityLocation, False),
"HealthCheckId": (str, False),
"HostedZoneId": (str, False),
"HostedZoneName": (str, False),
Expand Down Expand Up @@ -234,6 +259,7 @@ class RecordSetType(AWSObject):
"Comment": (str, False),
"Failover": (str, False),
"GeoLocation": (GeoLocation, False),
"GeoProximityLocation": (GeoProximityLocation, False),
"HealthCheckId": (str, False),
"HostedZoneId": (str, False),
"HostedZoneName": (str, False),
Expand Down

0 comments on commit 0fc0f78

Please sign in to comment.