From c9f5af8d81c51e2081484393cf13bc7af5db06a2 Mon Sep 17 00:00:00 2001 From: markpeek Date: Wed, 26 Oct 2022 13:17:50 +0000 Subject: [PATCH] Updates from spec version 94.0.0 --- troposphere/acmpca.py | 1 + troposphere/cognito.py | 1 + troposphere/ec2.py | 2 +- troposphere/ecs.py | 4 ++-- troposphere/fsx.py | 49 ++++++++++++++++++++++++++++++++++++++++++ troposphere/iot.py | 28 +++++++++++++++++++++++- 6 files changed, 81 insertions(+), 4 deletions(-) diff --git a/troposphere/acmpca.py b/troposphere/acmpca.py index b27e41791..ce1b96dc3 100644 --- a/troposphere/acmpca.py +++ b/troposphere/acmpca.py @@ -302,6 +302,7 @@ class CertificateAuthority(AWSObject): "Subject": (Subject, True), "Tags": (Tags, False), "Type": (validate_certificateauthority_type, True), + "UsageMode": (str, False), } diff --git a/troposphere/cognito.py b/troposphere/cognito.py index 2d7dea664..8be95ba33 100644 --- a/troposphere/cognito.py +++ b/troposphere/cognito.py @@ -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), diff --git a/troposphere/ec2.py b/troposphere/ec2.py index e80e7ff35..622b26a64 100644 --- a/troposphere/ec2.py +++ b/troposphere/ec2.py @@ -651,7 +651,7 @@ class FlowLog(AWSObject): "ResourceId": (str, True), "ResourceType": (str, True), "Tags": (Tags, False), - "TrafficType": (str, True), + "TrafficType": (str, False), } diff --git a/troposphere/ecs.py b/troposphere/ecs.py index 6759f51e2..b5dca3cf7 100644 --- a/troposphere/ecs.py +++ b/troposphere/ecs.py @@ -565,7 +565,7 @@ 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), @@ -573,7 +573,7 @@ class ContainerDefinition(AWSProperty): "Memory": (integer, False), "MemoryReservation": (integer, False), "MountPoints": ([MountPoint], False), - "Name": (str, False), + "Name": (str, True), "PortMappings": ([PortMapping], False), "Privileged": (boolean, False), "PseudoTerminal": (boolean, False), diff --git a/troposphere/fsx.py b/troposphere/fsx.py index f88bf74d9..cf05387fd 100644 --- a/troposphere/fsx.py +++ b/troposphere/fsx.py @@ -15,6 +15,55 @@ ) +class AutoExportPolicy(AWSProperty): + """ + `AutoExportPolicy `__ + """ + + props: PropsDictType = { + "Events": ([str], True), + } + + +class AutoImportPolicy(AWSProperty): + """ + `AutoImportPolicy `__ + """ + + props: PropsDictType = { + "Events": ([str], True), + } + + +class S3(AWSProperty): + """ + `S3 `__ + """ + + props: PropsDictType = { + "AutoExportPolicy": (AutoExportPolicy, False), + "AutoImportPolicy": (AutoImportPolicy, False), + } + + +class DataRepositoryAssociation(AWSObject): + """ + `DataRepositoryAssociation `__ + """ + + 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 `__ diff --git a/troposphere/iot.py b/troposphere/iot.py index 8aec5fad1..9a30da8a2 100644 --- a/troposphere/iot.py +++ b/troposphere/iot.py @@ -906,6 +906,32 @@ class LambdaAction(AWSProperty): } +class Timestamp(AWSProperty): + """ + `Timestamp `__ + """ + + props: PropsDictType = { + "Unit": (str, False), + "Value": (str, True), + } + + +class LocationAction(AWSProperty): + """ + `LocationAction `__ + """ + + props: PropsDictType = { + "DeviceId": (str, True), + "Latitude": (str, True), + "Longitude": (str, True), + "RoleArn": (str, True), + "Timestamp": (Timestamp, False), + "TrackerName": (str, True), + } + + class OpenSearchAction(AWSProperty): """ `OpenSearchAction `__ @@ -1009,7 +1035,6 @@ class TimestreamAction(AWSProperty): """ props: PropsDictType = { - "BatchMode": (boolean, False), "DatabaseName": (str, True), "Dimensions": ([TimestreamDimension], True), "RoleArn": (str, True), @@ -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),