Skip to content

Commit

Permalink
Updates from spec version 177.0.0 (#2250)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Jun 11, 2024
1 parent 91f8487 commit 19e77b6
Show file tree
Hide file tree
Showing 9 changed files with 155 additions and 4 deletions.
33 changes: 30 additions & 3 deletions troposphere/autoscaling.py
Original file line number Diff line number Diff line change
Expand Up @@ -582,16 +582,43 @@ class StepAdjustments(AWSProperty):
}


class TargetTrackingMetricStat(AWSProperty):
"""
`TargetTrackingMetricStat <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-targettrackingmetricstat.html>`__
"""

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


class TargetTrackingMetricDataQuery(AWSProperty):
"""
`TargetTrackingMetricDataQuery <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-targettrackingmetricdataquery.html>`__
"""

props: PropsDictType = {
"Expression": (str, False),
"Id": (str, True),
"Label": (str, False),
"MetricStat": (TargetTrackingMetricStat, False),
"ReturnData": (boolean, False),
}


class CustomizedMetricSpecification(AWSProperty):
"""
`CustomizedMetricSpecification <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-customizedmetricspecification.html>`__
"""

props: PropsDictType = {
"Dimensions": ([MetricDimension], False),
"MetricName": (str, True),
"Namespace": (str, True),
"Statistic": (str, True),
"MetricName": (str, False),
"Metrics": ([TargetTrackingMetricDataQuery], False),
"Namespace": (str, False),
"Statistic": (str, False),
"Unit": (str, False),
}

Expand Down
1 change: 1 addition & 0 deletions troposphere/batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,7 @@ class NodeRangeProperty(AWSProperty):
props: PropsDictType = {
"Container": (ContainerProperties, False),
"EcsProperties": (EcsProperties, False),
"EksProperties": (EksProperties, False),
"InstanceTypes": ([str], False),
"TargetNodes": (str, True),
}
Expand Down
11 changes: 11 additions & 0 deletions troposphere/connect.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,16 @@ class SendNotificationAction(AWSProperty):
}


class SubmitAutoEvaluationAction(AWSProperty):
"""
`SubmitAutoEvaluationAction <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-rule-submitautoevaluationaction.html>`__
"""

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


class Reference(AWSProperty):
"""
`Reference <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-rule-reference.html>`__
Expand Down Expand Up @@ -546,6 +556,7 @@ class Actions(AWSProperty):
"EndAssociatedTasksActions": (Tags, False),
"EventBridgeActions": ([EventBridgeAction], False),
"SendNotificationActions": ([SendNotificationAction], False),
"SubmitAutoEvaluationActions": ([SubmitAutoEvaluationAction], False),
"TaskActions": ([TaskAction], False),
"UpdateCaseActions": ([UpdateCaseAction], False),
}
Expand Down
2 changes: 1 addition & 1 deletion troposphere/ec2.py
Original file line number Diff line number Diff line change
Expand Up @@ -2661,7 +2661,7 @@ class TransitGatewayRoute(AWSObject):

props: PropsDictType = {
"Blackhole": (boolean, False),
"DestinationCidrBlock": (str, False),
"DestinationCidrBlock": (str, True),
"TransitGatewayAttachmentId": (str, False),
"TransitGatewayRouteTableId": (str, True),
}
Expand Down
12 changes: 12 additions & 0 deletions troposphere/ecs.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,25 @@ class ExecuteCommandConfiguration(AWSProperty):
}


class ManagedStorageConfiguration(AWSProperty):
"""
`ManagedStorageConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-cluster-managedstorageconfiguration.html>`__
"""

props: PropsDictType = {
"FargateEphemeralStorageKmsKeyId": (str, False),
"KmsKeyId": (str, False),
}


class ClusterConfiguration(AWSProperty):
"""
`ClusterConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-cluster-clusterconfiguration.html>`__
"""

props: PropsDictType = {
"ExecuteCommandConfiguration": (ExecuteCommandConfiguration, False),
"ManagedStorageConfiguration": (ManagedStorageConfiguration, False),
}


Expand Down
12 changes: 12 additions & 0 deletions troposphere/fsx.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,17 @@ class DataRepositoryAssociation(AWSObject):
}


class MetadataConfiguration(AWSProperty):
"""
`MetadataConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fsx-filesystem-lustreconfiguration-metadataconfiguration.html>`__
"""

props: PropsDictType = {
"Iops": (integer, False),
"Mode": (str, False),
}


class LustreConfiguration(AWSProperty):
"""
`LustreConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fsx-filesystem-lustreconfiguration.html>`__
Expand All @@ -81,6 +92,7 @@ class LustreConfiguration(AWSProperty):
"ExportPath": (str, False),
"ImportPath": (str, False),
"ImportedFileChunkSize": (integer, False),
"MetadataConfiguration": (MetadataConfiguration, False),
"PerUnitStorageThroughput": (
validate_lustreconfiguration_perunitstoragethroughput,
False,
Expand Down
1 change: 1 addition & 0 deletions troposphere/glue.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ class JdbcTarget(AWSProperty):

props: PropsDictType = {
"ConnectionName": (str, False),
"EnableAdditionalMetadata": ([str], False),
"Exclusions": ([str], False),
"Path": (str, False),
}
Expand Down
65 changes: 65 additions & 0 deletions troposphere/pipes.py
Original file line number Diff line number Diff line change
Expand Up @@ -644,6 +644,70 @@ class PipeTargetStateMachineParameters(AWSProperty):
}


class DimensionMapping(AWSProperty):
"""
`DimensionMapping <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-dimensionmapping.html>`__
"""

props: PropsDictType = {
"DimensionName": (str, True),
"DimensionValue": (str, True),
"DimensionValueType": (str, True),
}


class MultiMeasureAttributeMapping(AWSProperty):
"""
`MultiMeasureAttributeMapping <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-multimeasureattributemapping.html>`__
"""

props: PropsDictType = {
"MeasureValue": (str, True),
"MeasureValueType": (str, True),
"MultiMeasureAttributeName": (str, True),
}


class MultiMeasureMapping(AWSProperty):
"""
`MultiMeasureMapping <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-multimeasuremapping.html>`__
"""

props: PropsDictType = {
"MultiMeasureAttributeMappings": ([MultiMeasureAttributeMapping], True),
"MultiMeasureName": (str, True),
}


class SingleMeasureMapping(AWSProperty):
"""
`SingleMeasureMapping <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-singlemeasuremapping.html>`__
"""

props: PropsDictType = {
"MeasureName": (str, True),
"MeasureValue": (str, True),
"MeasureValueType": (str, True),
}


class PipeTargetTimestreamParameters(AWSProperty):
"""
`PipeTargetTimestreamParameters <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-pipetargettimestreamparameters.html>`__
"""

props: PropsDictType = {
"DimensionMappings": ([DimensionMapping], True),
"EpochTimeUnit": (str, False),
"MultiMeasureMappings": ([MultiMeasureMapping], False),
"SingleMeasureMappings": ([SingleMeasureMapping], False),
"TimeFieldType": (str, False),
"TimeValue": (str, True),
"TimestampFormat": (str, False),
"VersionValue": (str, True),
}


class PipeTargetParameters(AWSProperty):
"""
`PipeTargetParameters <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-pipetargetparameters.html>`__
Expand All @@ -665,6 +729,7 @@ class PipeTargetParameters(AWSProperty):
"SageMakerPipelineParameters": (PipeTargetSageMakerPipelineParameters, False),
"SqsQueueParameters": (PipeTargetSqsQueueParameters, False),
"StepFunctionStateMachineParameters": (PipeTargetStateMachineParameters, False),
"TimestreamParameters": (PipeTargetTimestreamParameters, False),
}


Expand Down
22 changes: 22 additions & 0 deletions troposphere/rolesanywhere.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,27 @@ class CRL(AWSObject):
}


class MappingRule(AWSProperty):
"""
`MappingRule <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rolesanywhere-profile-mappingrule.html>`__
"""

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


class AttributeMapping(AWSProperty):
"""
`AttributeMapping <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rolesanywhere-profile-attributemapping.html>`__
"""

props: PropsDictType = {
"CertificateField": (str, True),
"MappingRules": ([MappingRule], True),
}


class Profile(AWSObject):
"""
`Profile <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rolesanywhere-profile.html>`__
Expand All @@ -34,6 +55,7 @@ class Profile(AWSObject):
resource_type = "AWS::RolesAnywhere::Profile"

props: PropsDictType = {
"AttributeMappings": ([AttributeMapping], False),
"DurationSeconds": (double, False),
"Enabled": (boolean, False),
"ManagedPolicyArns": ([str], False),
Expand Down

0 comments on commit 19e77b6

Please sign in to comment.