Skip to content

Commit

Permalink
Updates from spec version 94.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
markpeek authored Oct 26, 2022
1 parent d4b5410 commit c9f5af8
Show file tree
Hide file tree
Showing 6 changed files with 81 additions and 4 deletions.
1 change: 1 addition & 0 deletions troposphere/acmpca.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ class CertificateAuthority(AWSObject):
"Subject": (Subject, True),
"Tags": (Tags, False),
"Type": (validate_certificateauthority_type, True),
"UsageMode": (str, False),
}


Expand Down
1 change: 1 addition & 0 deletions troposphere/cognito.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@ class UserPool(AWSObject):
"AdminCreateUserConfig": (AdminCreateUserConfig, False),
"AliasAttributes": ([str], False),
"AutoVerifiedAttributes": ([str], False),
"DeletionProtection": (str, False),
"DeviceConfiguration": (DeviceConfiguration, False),
"EmailConfiguration": (EmailConfiguration, False),
"EmailVerificationMessage": (str, False),
Expand Down
2 changes: 1 addition & 1 deletion troposphere/ec2.py
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ class FlowLog(AWSObject):
"ResourceId": (str, True),
"ResourceType": (str, True),
"Tags": (Tags, False),
"TrafficType": (str, True),
"TrafficType": (str, False),
}


Expand Down
4 changes: 2 additions & 2 deletions troposphere/ecs.py
Original file line number Diff line number Diff line change
Expand Up @@ -565,15 +565,15 @@ class ContainerDefinition(AWSProperty):
"FirelensConfiguration": (FirelensConfiguration, False),
"HealthCheck": (HealthCheck, False),
"Hostname": (str, False),
"Image": (str, False),
"Image": (str, True),
"Interactive": (boolean, False),
"Links": ([str], False),
"LinuxParameters": (LinuxParameters, False),
"LogConfiguration": (LogConfiguration, False),
"Memory": (integer, False),
"MemoryReservation": (integer, False),
"MountPoints": ([MountPoint], False),
"Name": (str, False),
"Name": (str, True),
"PortMappings": ([PortMapping], False),
"Privileged": (boolean, False),
"PseudoTerminal": (boolean, False),
Expand Down
49 changes: 49 additions & 0 deletions troposphere/fsx.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,55 @@
)


class AutoExportPolicy(AWSProperty):
"""
`AutoExportPolicy <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fsx-datarepositoryassociation-autoexportpolicy.html>`__
"""

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


class AutoImportPolicy(AWSProperty):
"""
`AutoImportPolicy <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fsx-datarepositoryassociation-autoimportpolicy.html>`__
"""

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


class S3(AWSProperty):
"""
`S3 <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fsx-datarepositoryassociation-s3.html>`__
"""

props: PropsDictType = {
"AutoExportPolicy": (AutoExportPolicy, False),
"AutoImportPolicy": (AutoImportPolicy, False),
}


class DataRepositoryAssociation(AWSObject):
"""
`DataRepositoryAssociation <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-fsx-datarepositoryassociation.html>`__
"""

resource_type = "AWS::FSx::DataRepositoryAssociation"

props: PropsDictType = {
"BatchImportMetaDataOnCreate": (boolean, False),
"DataRepositoryPath": (str, True),
"FileSystemId": (str, True),
"FileSystemPath": (str, True),
"ImportedFileChunkSize": (integer, False),
"S3": (S3, False),
"Tags": (Tags, False),
}


class LustreConfiguration(AWSProperty):
"""
`LustreConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fsx-filesystem-lustreconfiguration.html>`__
Expand Down
28 changes: 27 additions & 1 deletion troposphere/iot.py
Original file line number Diff line number Diff line change
Expand Up @@ -906,6 +906,32 @@ class LambdaAction(AWSProperty):
}


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

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


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

props: PropsDictType = {
"DeviceId": (str, True),
"Latitude": (str, True),
"Longitude": (str, True),
"RoleArn": (str, True),
"Timestamp": (Timestamp, False),
"TrackerName": (str, True),
}


class OpenSearchAction(AWSProperty):
"""
`OpenSearchAction <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-opensearchaction.html>`__
Expand Down Expand Up @@ -1009,7 +1035,6 @@ class TimestreamAction(AWSProperty):
"""

props: PropsDictType = {
"BatchMode": (boolean, False),
"DatabaseName": (str, True),
"Dimensions": ([TimestreamDimension], True),
"RoleArn": (str, True),
Expand Down Expand Up @@ -1038,6 +1063,7 @@ class Action(AWSProperty):
"Kafka": (KafkaAction, False),
"Kinesis": (KinesisAction, False),
"Lambda": (LambdaAction, False),
"Location": (LocationAction, False),
"OpenSearch": (OpenSearchAction, False),
"Republish": (RepublishAction, False),
"S3": (S3Action, False),
Expand Down

0 comments on commit c9f5af8

Please sign in to comment.