Skip to content

Commit

Permalink
Updates from spec version 150.0.0 (#2211)
Browse files Browse the repository at this point in the history
A previous update for spec version 150.0.0 was committed via #2210.
Looks like AWS put more changes in without bumping the version.
  • Loading branch information
github-actions[bot] authored Dec 12, 2023
1 parent c22d1df commit 235e253
Show file tree
Hide file tree
Showing 10 changed files with 100 additions and 49 deletions.
4 changes: 2 additions & 2 deletions troposphere/awslambda.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class CodeSigningConfig(AWSObject):

class OnFailure(AWSProperty):
"""
`OnFailure <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventinvokeconfig-destinationconfig-onfailure.html>`__
`OnFailure <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventinvokeconfig-onfailure.html>`__
"""

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

class OnSuccess(AWSProperty):
"""
`OnSuccess <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventinvokeconfig-destinationconfig-onsuccess.html>`__
`OnSuccess <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventinvokeconfig-onsuccess.html>`__
"""

props: PropsDictType = {
Expand Down
25 changes: 25 additions & 0 deletions troposphere/cloudfront.py
Original file line number Diff line number Diff line change
Expand Up @@ -648,6 +648,31 @@ class KeyGroup(AWSObject):
}


class ImportSource(AWSProperty):
"""
`ImportSource <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-keyvaluestore-importsource.html>`__
"""

props: PropsDictType = {
"SourceArn": (str, True),
"SourceType": (str, True),
}


class KeyValueStore(AWSObject):
"""
`KeyValueStore <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-keyvaluestore.html>`__
"""

resource_type = "AWS::CloudFront::KeyValueStore"

props: PropsDictType = {
"Comment": (str, False),
"ImportSource": (ImportSource, False),
"Name": (str, True),
}


class RealtimeMetricsSubscriptionConfig(AWSProperty):
"""
`RealtimeMetricsSubscriptionConfig <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-monitoringsubscription-realtimemetricssubscriptionconfig.html>`__
Expand Down
1 change: 0 additions & 1 deletion troposphere/codedeploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,6 @@ class DeploymentGroup(AWSObject):
"OutdatedInstancesStrategy": (str, False),
"ServiceRoleArn": (str, True),
"Tags": (Tags, False),
"TerminationHookEnabled": (boolean, False),
"TriggerConfigurations": ([TriggerConfig], False),
}

Expand Down
3 changes: 2 additions & 1 deletion troposphere/connect.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ class Instance(AWSObject):
"DirectoryId": (str, False),
"IdentityManagementType": (str, True),
"InstanceAlias": (str, False),
"Tags": (Tags, False),
}


Expand Down Expand Up @@ -166,7 +167,7 @@ class KinesisVideoStreamConfig(AWSProperty):
"""

props: PropsDictType = {
"EncryptionConfig": (EncryptionConfig, False),
"EncryptionConfig": (EncryptionConfig, True),
"Prefix": (str, True),
"RetentionPeriodHours": (double, True),
}
Expand Down
4 changes: 2 additions & 2 deletions troposphere/ec2.py
Original file line number Diff line number Diff line change
Expand Up @@ -1998,7 +1998,7 @@ class SecurityGroup(AWSObject):

class SecurityGroupEgress(AWSObject):
"""
`SecurityGroupEgress <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-security-group-egress.html>`__
`SecurityGroupEgress <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-securitygroupegress.html>`__
"""

resource_type = "AWS::EC2::SecurityGroupEgress"
Expand Down Expand Up @@ -2348,7 +2348,7 @@ class SubnetCidrBlock(AWSObject):

class SubnetNetworkAclAssociation(AWSObject):
"""
`SubnetNetworkAclAssociation <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnet-network-acl-assoc.html>`__
`SubnetNetworkAclAssociation <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnetnetworkaclassociation.html>`__
"""

resource_type = "AWS::EC2::SubnetNetworkAclAssociation"
Expand Down
24 changes: 13 additions & 11 deletions troposphere/elasticache.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,17 @@ class CacheUsageLimits(AWSProperty):
}


class Endpoint(AWSProperty):
"""
`Endpoint <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-serverlesscache-endpoint.html>`__
"""

props: PropsDictType = {
"Address": (str, False),
"Port": (integer, False),
}


class ServerlessCache(AWSObject):
"""
`ServerlessCache <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-serverlesscache.html>`__
Expand All @@ -306,10 +317,12 @@ class ServerlessCache(AWSObject):
"CacheUsageLimits": (CacheUsageLimits, False),
"DailySnapshotTime": (str, False),
"Description": (str, False),
"Endpoint": (Endpoint, False),
"Engine": (str, True),
"FinalSnapshotName": (str, False),
"KmsKeyId": (str, False),
"MajorEngineVersion": (str, False),
"ReaderEndpoint": (Endpoint, False),
"SecurityGroupIds": ([str], False),
"ServerlessCacheName": (str, True),
"SnapshotArnsToRestore": ([str], False),
Expand Down Expand Up @@ -378,14 +391,3 @@ class UserGroup(AWSObject):
"UserGroupId": (str, True),
"UserIds": ([str], True),
}


class Endpoint(AWSProperty):
"""
`Endpoint <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-serverlesscache-endpoint.html>`__
"""

props: PropsDictType = {
"Address": (str, False),
"Port": (integer, False),
}
1 change: 1 addition & 0 deletions troposphere/opensearchservice.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ class Domain(AWSObject):
"EBSOptions": (EBSOptions, False),
"EncryptionAtRestOptions": (EncryptionAtRestOptions, False),
"EngineVersion": (validate_search_service_engine_version, False),
"IPAddressType": (str, False),
"LogPublishingOptions": (dict, False),
"NodeToNodeEncryptionOptions": (NodeToNodeEncryptionOptions, False),
"OffPeakWindowOptions": (OffPeakWindowOptions, False),
Expand Down
26 changes: 24 additions & 2 deletions troposphere/osis.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,33 @@
from .validators import boolean, integer


class BufferOptions(AWSProperty):
"""
`BufferOptions <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-osis-pipeline-bufferoptions.html>`__
"""

props: PropsDictType = {
"PersistentBufferEnabled": (boolean, True),
}


class EncryptionAtRestOptions(AWSProperty):
"""
`EncryptionAtRestOptions <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-osis-pipeline-encryptionatrestoptions.html>`__
"""

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


class CloudWatchLogDestination(AWSProperty):
"""
`CloudWatchLogDestination <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-osis-pipeline-cloudwatchlogdestination.html>`__
"""

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


Expand All @@ -38,7 +58,7 @@ class VpcOptions(AWSProperty):

props: PropsDictType = {
"SecurityGroupIds": ([str], False),
"SubnetIds": ([str], False),
"SubnetIds": ([str], True),
}


Expand All @@ -50,6 +70,8 @@ class Pipeline(AWSObject):
resource_type = "AWS::OSIS::Pipeline"

props: PropsDictType = {
"BufferOptions": (BufferOptions, False),
"EncryptionAtRestOptions": (EncryptionAtRestOptions, False),
"LogPublishingOptions": (LogPublishingOptions, False),
"MaxUnits": (integer, True),
"MinUnits": (integer, True),
Expand Down
Loading

0 comments on commit 235e253

Please sign in to comment.