Skip to content

Commit

Permalink
Updates from spec version 164.0.0 (#2229)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Mar 8, 2024
1 parent e70a6de commit b445b98
Show file tree
Hide file tree
Showing 3 changed files with 124 additions and 11 deletions.
82 changes: 76 additions & 6 deletions troposphere/batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class Environment(AWSProperty):

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

props: PropsDictType = {
Expand Down Expand Up @@ -170,7 +170,7 @@ class Tmpfs(AWSProperty):

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

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

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

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

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

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

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

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

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

props: PropsDictType = {
Expand Down Expand Up @@ -351,6 +351,71 @@ class ContainerProperties(AWSProperty):
}


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

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


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

props: PropsDictType = {
"Command": ([str], False),
"DependsOn": ([TaskContainerDependency], False),
"Environment": ([Environment], False),
"Essential": (boolean, False),
"Image": (str, True),
"LinuxParameters": (LinuxParameters, False),
"LogConfiguration": (LogConfiguration, False),
"MountPoints": ([MountPoints], False),
"Name": (str, False),
"Privileged": (boolean, False),
"ReadonlyRootFilesystem": (boolean, False),
"RepositoryCredentials": (RepositoryCredentials, False),
"ResourceRequirements": ([ResourceRequirement], False),
"Secrets": ([Secret], False),
"Ulimits": ([Ulimit], False),
"User": (str, False),
}


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

props: PropsDictType = {
"Containers": ([TaskContainerProperties], False),
"EphemeralStorage": (EphemeralStorage, False),
"ExecutionRoleArn": (str, False),
"IpcMode": (str, False),
"NetworkConfiguration": (NetworkConfiguration, False),
"PidMode": (str, False),
"PlatformVersion": (str, False),
"RuntimePlatform": (RuntimePlatform, False),
"TaskRoleArn": (str, False),
"Volumes": ([Volumes], False),
}


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

props: PropsDictType = {
"TaskProperties": ([EcsTaskProperties], True),
}


class EksContainerEnvironmentVariable(AWSProperty):
"""
`EksContainerEnvironmentVariable <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-ekscontainerenvironmentvariable.html>`__
Expand Down Expand Up @@ -481,8 +546,10 @@ class PodProperties(AWSProperty):
"Containers": ([EksContainer], False),
"DnsPolicy": (str, False),
"HostNetwork": (boolean, False),
"InitContainers": ([EksContainer], False),
"Metadata": (Metadata, False),
"ServiceAccountName": (str, False),
"ShareProcessNamespace": (boolean, False),
"Volumes": ([EksVolume], False),
}

Expand All @@ -504,6 +571,8 @@ class NodeRangeProperty(AWSProperty):

props: PropsDictType = {
"Container": (ContainerProperties, False),
"EcsProperties": (EcsProperties, False),
"InstanceTypes": ([str], False),
"TargetNodes": (str, True),
}

Expand Down Expand Up @@ -563,6 +632,7 @@ class JobDefinition(AWSObject):

props: PropsDictType = {
"ContainerProperties": (ContainerProperties, False),
"EcsProperties": (EcsProperties, False),
"EksProperties": (EksProperties, False),
"JobDefinitionName": (str, False),
"NodeProperties": (NodeProperties, False),
Expand Down
41 changes: 36 additions & 5 deletions troposphere/iotsitewise.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ class AssetHierarchy(AWSProperty):

props: PropsDictType = {
"ChildAssetId": (str, True),
"LogicalId": (str, True),
"ExternalId": (str, False),
"Id": (str, False),
"LogicalId": (str, False),
}


Expand All @@ -114,7 +116,9 @@ class AssetProperty(AWSProperty):

props: PropsDictType = {
"Alias": (str, False),
"LogicalId": (str, True),
"ExternalId": (str, False),
"Id": (str, False),
"LogicalId": (str, False),
"NotificationState": (str, False),
"Unit": (str, False),
}
Expand All @@ -129,6 +133,7 @@ class Asset(AWSObject):

props: PropsDictType = {
"AssetDescription": (str, False),
"AssetExternalId": (str, False),
"AssetHierarchies": ([AssetHierarchy], False),
"AssetModelId": (str, True),
"AssetName": (str, True),
Expand All @@ -147,14 +152,29 @@ class Attribute(AWSProperty):
}


class PropertyPathDefinition(AWSProperty):
"""
`PropertyPathDefinition <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotsitewise-assetmodel-propertypathdefinition.html>`__
"""

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


class VariableValue(AWSProperty):
"""
`VariableValue <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotsitewise-assetmodel-variablevalue.html>`__
"""

props: PropsDictType = {
"HierarchyExternalId": (str, False),
"HierarchyId": (str, False),
"HierarchyLogicalId": (str, False),
"PropertyLogicalId": (str, True),
"PropertyExternalId": (str, False),
"PropertyId": (str, False),
"PropertyLogicalId": (str, False),
"PropertyPath": ([PropertyPathDefinition], False),
}


Expand Down Expand Up @@ -234,7 +254,9 @@ class AssetModelProperty(AWSProperty):
props: PropsDictType = {
"DataType": (str, True),
"DataTypeSpec": (str, False),
"LogicalId": (str, True),
"ExternalId": (str, False),
"Id": (str, False),
"LogicalId": (str, False),
"Name": (str, True),
"Type": (PropertyType, True),
"Unit": (str, False),
Expand All @@ -247,9 +269,14 @@ class AssetModelCompositeModel(AWSProperty):
"""

props: PropsDictType = {
"ComposedAssetModelId": (str, False),
"CompositeModelProperties": ([AssetModelProperty], False),
"Description": (str, False),
"ExternalId": (str, False),
"Id": (str, False),
"Name": (str, True),
"ParentAssetModelCompositeModelExternalId": (str, False),
"Path": ([str], False),
"Type": (str, True),
}

Expand All @@ -261,7 +288,9 @@ class AssetModelHierarchy(AWSProperty):

props: PropsDictType = {
"ChildAssetModelId": (str, True),
"LogicalId": (str, True),
"ExternalId": (str, False),
"Id": (str, False),
"LogicalId": (str, False),
"Name": (str, True),
}

Expand All @@ -276,9 +305,11 @@ class AssetModel(AWSObject):
props: PropsDictType = {
"AssetModelCompositeModels": ([AssetModelCompositeModel], False),
"AssetModelDescription": (str, False),
"AssetModelExternalId": (str, False),
"AssetModelHierarchies": ([AssetModelHierarchy], False),
"AssetModelName": (str, True),
"AssetModelProperties": ([AssetModelProperty], False),
"AssetModelType": (str, False),
"Tags": (Tags, False),
}

Expand Down
12 changes: 12 additions & 0 deletions troposphere/wafv2.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,16 @@ class Headers(AWSProperty):
}


class JA3Fingerprint(AWSProperty):
"""
`JA3Fingerprint <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ja3fingerprint.html>`__
"""

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


class JsonMatchPattern(AWSProperty):
"""
`JsonMatchPattern <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-jsonmatchpattern.html>`__
Expand Down Expand Up @@ -416,6 +426,7 @@ class FieldToMatch(AWSProperty):
"Body": (Body, False),
"Cookies": (Cookies, False),
"Headers": (Headers, False),
"JA3Fingerprint": (JA3Fingerprint, False),
"JsonBody": (JsonBody, False),
"Method": (dict, False),
"QueryString": (dict, False),
Expand Down Expand Up @@ -802,6 +813,7 @@ class RateBasedStatement(AWSProperty):
props: PropsDictType = {
"AggregateKeyType": (str, True),
"CustomKeys": ([RateBasedStatementCustomKey], False),
"EvaluationWindowSec": (integer, False),
"ForwardedIPConfig": (ForwardedIPConfiguration, False),
"Limit": (integer, True),
"ScopeDownStatement": (validate_statement, False),
Expand Down

0 comments on commit b445b98

Please sign in to comment.