Skip to content

Commit

Permalink
Updates from spec version 160.0.0 (#2226)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Feb 18, 2024
1 parent 0fc0f78 commit 0312122
Show file tree
Hide file tree
Showing 6 changed files with 90 additions and 0 deletions.
16 changes: 16 additions & 0 deletions troposphere/appsync.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class ApiCache(AWSObject):
"ApiCachingBehavior": (str, True),
"ApiId": (str, True),
"AtRestEncryptionEnabled": (boolean, False),
"HealthMetricsConfig": (str, False),
"TransitEncryptionEnabled": (boolean, False),
"Ttl": (double, True),
"Type": (str, True),
Expand Down Expand Up @@ -184,6 +185,7 @@ class DataSource(AWSObject):
"EventBridgeConfig": (EventBridgeConfig, False),
"HttpConfig": (HttpConfig, False),
"LambdaConfig": (LambdaConfig, False),
"MetricsConfig": (str, False),
"Name": (str, True),
"OpenSearchServiceConfig": (OpenSearchServiceConfig, False),
"RelationalDatabaseConfig": (RelationalDatabaseConfig, False),
Expand Down Expand Up @@ -327,6 +329,18 @@ class AdditionalAuthenticationProvider(AWSProperty):
}


class EnhancedMetricsConfig(AWSProperty):
"""
`EnhancedMetricsConfig <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-graphqlapi-enhancedmetricsconfig.html>`__
"""

props: PropsDictType = {
"DataSourceLevelMetricsBehavior": (str, True),
"OperationLevelMetricsConfig": (str, True),
"ResolverLevelMetricsBehavior": (str, True),
}


class LogConfig(AWSProperty):
"""
`LogConfig <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-graphqlapi-logconfig.html>`__
Expand Down Expand Up @@ -366,6 +380,7 @@ class GraphQLApi(AWSObject):
),
"ApiType": (str, False),
"AuthenticationType": (str, True),
"EnhancedMetricsConfig": (EnhancedMetricsConfig, False),
"EnvironmentVariables": (dict, False),
"IntrospectionConfig": (str, False),
"LambdaAuthorizerConfig": (LambdaAuthorizerConfig, False),
Expand Down Expand Up @@ -434,6 +449,7 @@ class Resolver(AWSObject):
"FieldName": (str, True),
"Kind": (resolver_kind_validator, False),
"MaxBatchSize": (integer, False),
"MetricsConfig": (str, False),
"PipelineConfig": (PipelineConfig, False),
"RequestMappingTemplate": (str, False),
"RequestMappingTemplateS3Location": (str, False),
Expand Down
11 changes: 11 additions & 0 deletions troposphere/batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,16 @@ class NetworkConfiguration(AWSProperty):
}


class RepositoryCredentials(AWSProperty):
"""
`RepositoryCredentials <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-containerproperties-repositorycredentials.html>`__
"""

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


class ResourceRequirement(AWSProperty):
"""
`ResourceRequirement <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-resourcerequirement.html>`__
Expand Down Expand Up @@ -330,6 +340,7 @@ class ContainerProperties(AWSProperty):
"NetworkConfiguration": (NetworkConfiguration, False),
"Privileged": (boolean, False),
"ReadonlyRootFilesystem": (boolean, False),
"RepositoryCredentials": (RepositoryCredentials, False),
"ResourceRequirements": ([ResourceRequirement], False),
"RuntimePlatform": (RuntimePlatform, False),
"Secrets": ([Secret], False),
Expand Down
27 changes: 27 additions & 0 deletions troposphere/controltower.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,33 @@
from . import AWSObject, AWSProperty, PropsDictType, Tags


class Parameter(AWSProperty):
"""
`Parameter <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-controltower-enabledbaseline-parameter.html>`__
"""

props: PropsDictType = {
"Key": (str, False),
"Value": (dict, False),
}


class EnabledBaseline(AWSObject):
"""
`EnabledBaseline <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-controltower-enabledbaseline.html>`__
"""

resource_type = "AWS::ControlTower::EnabledBaseline"

props: PropsDictType = {
"BaselineIdentifier": (str, True),
"BaselineVersion": (str, True),
"Parameters": ([Parameter], False),
"Tags": (Tags, False),
"TargetIdentifier": (str, True),
}


class EnabledControlParameter(AWSProperty):
"""
`EnabledControlParameter <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-controltower-enabledcontrol-enabledcontrolparameter.html>`__
Expand Down
12 changes: 12 additions & 0 deletions troposphere/dynamodb.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,12 +212,23 @@ class ReplicaSpecification(AWSProperty):
}


class ResourcePolicy(AWSProperty):
"""
`ResourcePolicy <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-resourcepolicy.html>`__
"""

props: PropsDictType = {
"PolicyDocument": (dict, True),
}


class StreamSpecification(AWSProperty):
"""
`StreamSpecification <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-streamspecification.html>`__
"""

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

Expand Down Expand Up @@ -360,6 +371,7 @@ class Table(AWSObject):
"LocalSecondaryIndexes": ([LocalSecondaryIndex], False),
"PointInTimeRecoverySpecification": (PointInTimeRecoverySpecification, False),
"ProvisionedThroughput": (ProvisionedThroughput, False),
"ResourcePolicy": (ResourcePolicy, False),
"SSESpecification": (SSESpecification, False),
"StreamSpecification": (StreamSpecification, False),
"TableClass": (table_class_validator, False),
Expand Down
1 change: 1 addition & 0 deletions troposphere/emr.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,7 @@ class JobFlowInstancesConfig(AWSProperty):
"TaskInstanceGroup": ([InstanceGroupConfigProperty], False),
"TaskInstanceGroups": ([InstanceGroupConfigProperty], False),
"TerminationProtected": (boolean, False),
"UnhealthyNodeReplacement": (boolean, False),
}


Expand Down
23 changes: 23 additions & 0 deletions troposphere/iotwireless.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,28 @@ class AbpV11(AWSProperty):
}


class Application(AWSProperty):
"""
`Application <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotwireless-wirelessdevice-application.html>`__
"""

props: PropsDictType = {
"DestinationName": (str, False),
"FPort": (integer, False),
"Type": (str, False),
}


class FPorts(AWSProperty):
"""
`FPorts <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotwireless-wirelessdevice-fports.html>`__
"""

props: PropsDictType = {
"Applications": ([Application], False),
}


class OtaaV10x(AWSProperty):
"""
`OtaaV10x <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotwireless-wirelessdevice-otaav10x.html>`__
Expand Down Expand Up @@ -395,6 +417,7 @@ class LoRaWANDevice(AWSProperty):
"AbpV11": (AbpV11, False),
"DevEui": (str, False),
"DeviceProfileId": (str, False),
"FPorts": (FPorts, False),
"OtaaV10x": (OtaaV10x, False),
"OtaaV11": (OtaaV11, False),
"ServiceProfileId": (str, False),
Expand Down

0 comments on commit 0312122

Please sign in to comment.