Skip to content

Commit

Permalink
Updates from spec version 174.0.0 (#2243)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed May 17, 2024
1 parent b42c9d5 commit 98118ec
Show file tree
Hide file tree
Showing 6 changed files with 132 additions and 70 deletions.
1 change: 1 addition & 0 deletions troposphere/awslambda.py
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,7 @@ class Version(AWSObject):
"CodeSha256": (str, False),
"Description": (str, False),
"FunctionName": (str, True),
"Policy": (dict, False),
"ProvisionedConcurrencyConfig": (ProvisionedConcurrencyConfiguration, False),
"RuntimePolicy": (RuntimePolicy, False),
}
Expand Down
11 changes: 11 additions & 0 deletions troposphere/codepipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,16 @@ class Blockers(AWSProperty):
}


class FailureConditions(AWSProperty):
"""
`FailureConditions <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stages-failure-conditions.html>`__
"""

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


class Stages(AWSProperty):
"""
`Stages <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stages.html>`__
Expand All @@ -266,6 +276,7 @@ class Stages(AWSProperty):
"Actions": ([Actions], True),
"Blockers": ([Blockers], False),
"Name": (str, True),
"OnFailure": (FailureConditions, False),
}


Expand Down
2 changes: 1 addition & 1 deletion troposphere/elasticache.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ class GlobalReplicationGroup(AWSObject):

class ParameterGroup(AWSObject):
"""
`ParameterGroup <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-parameter-group.html>`__
`ParameterGroup <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-parametergroup.html>`__
"""

resource_type = "AWS::ElastiCache::ParameterGroup"
Expand Down
23 changes: 13 additions & 10 deletions troposphere/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,16 @@ class Endpoint(AWSObject):
}


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

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


class EventBus(AWSObject):
"""
`EventBus <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-eventbus.html>`__
Expand All @@ -227,7 +237,10 @@ class EventBus(AWSObject):
resource_type = "AWS::Events::EventBus"

props: PropsDictType = {
"DeadLetterConfig": (DeadLetterConfig, False),
"Description": (str, False),
"EventSourceName": (str, False),
"KmsKeyIdentifier": (str, False),
"Name": (str, True),
"Policy": (dict, False),
"Tags": (Tags, False),
Expand Down Expand Up @@ -306,16 +319,6 @@ class BatchParameters(AWSProperty):
}


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

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


class CapacityProviderStrategyItem(AWSProperty):
"""
`CapacityProviderStrategyItem <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-rule-capacityproviderstrategyitem.html>`__
Expand Down
122 changes: 63 additions & 59 deletions troposphere/sagemaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,170 +444,174 @@ class DeviceFleet(AWSObject):
}


class JupyterServerAppSettings(AWSProperty):
class EFSFileSystemConfig(AWSProperty):
"""
`JupyterServerAppSettings <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-userprofile-jupyterserverappsettings.html>`__
`EFSFileSystemConfig <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-userprofile-efsfilesystemconfig.html>`__
"""

props: PropsDictType = {
"DefaultResourceSpec": (ResourceSpec, False),
"FileSystemId": (str, True),
"FileSystemPath": (str, False),
}


class CustomImage(AWSProperty):
class CustomFileSystemConfig(AWSProperty):
"""
`CustomImage <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-userprofile-customimage.html>`__
`CustomFileSystemConfig <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-userprofile-customfilesystemconfig.html>`__
"""

props: PropsDictType = {
"AppImageConfigName": (str, True),
"ImageName": (str, True),
"ImageVersionNumber": (integer, False),
"EFSFileSystemConfig": (EFSFileSystemConfig, False),
}


class KernelGatewayAppSettings(AWSProperty):
class CustomPosixUserConfig(AWSProperty):
"""
`KernelGatewayAppSettings <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-userprofile-kernelgatewayappsettings.html>`__
`CustomPosixUserConfig <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-userprofile-customposixuserconfig.html>`__
"""

props: PropsDictType = {
"CustomImages": ([CustomImage], False),
"DefaultResourceSpec": (ResourceSpec, False),
"Gid": (integer, True),
"Uid": (integer, True),
}


class DefaultSpaceSettings(AWSProperty):
class DefaultEbsStorageSettings(AWSProperty):
"""
`DefaultSpaceSettings <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-domain-defaultspacesettings.html>`__
`DefaultEbsStorageSettings <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-userprofile-defaultebsstoragesettings.html>`__
"""

props: PropsDictType = {
"ExecutionRole": (str, True),
"JupyterServerAppSettings": (JupyterServerAppSettings, False),
"KernelGatewayAppSettings": (KernelGatewayAppSettings, False),
"SecurityGroups": ([str], False),
"DefaultEbsVolumeSizeInGb": (integer, True),
"MaximumEbsVolumeSizeInGb": (integer, True),
}


class DockerSettings(AWSProperty):
class DefaultSpaceStorageSettings(AWSProperty):
"""
`DockerSettings <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-domain-dockersettings.html>`__
`DefaultSpaceStorageSettings <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-userprofile-defaultspacestoragesettings.html>`__
"""

props: PropsDictType = {
"EnableDockerAccess": (str, False),
"VpcOnlyTrustedAccounts": ([str], False),
"DefaultEbsStorageSettings": (DefaultEbsStorageSettings, False),
}


class RStudioServerProDomainSettings(AWSProperty):
class CodeRepositoryProperty(AWSProperty):
"""
`RStudioServerProDomainSettings <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-domain-rstudioserverprodomainsettings.html>`__
`CodeRepositoryProperty <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-userprofile-coderepository.html>`__
"""

props: PropsDictType = {
"DefaultResourceSpec": (ResourceSpec, False),
"DomainExecutionRoleArn": (str, True),
"RStudioConnectUrl": (str, False),
"RStudioPackageManagerUrl": (str, False),
"RepositoryUrl": (str, True),
}


class DomainSettings(AWSProperty):
class CustomImage(AWSProperty):
"""
`DomainSettings <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-domain-domainsettings.html>`__
`CustomImage <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-userprofile-customimage.html>`__
"""

props: PropsDictType = {
"DockerSettings": (DockerSettings, False),
"RStudioServerProDomainSettings": (RStudioServerProDomainSettings, False),
"SecurityGroupIds": ([str], False),
"AppImageConfigName": (str, True),
"ImageName": (str, True),
"ImageVersionNumber": (integer, False),
}


class CodeEditorAppSettings(AWSProperty):
class JupyterLabAppSettings(AWSProperty):
"""
`CodeEditorAppSettings <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-userprofile-codeeditorappsettings.html>`__
`JupyterLabAppSettings <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-userprofile-jupyterlabappsettings.html>`__
"""

props: PropsDictType = {
"CodeRepositories": ([CodeRepositoryProperty], False),
"CustomImages": ([CustomImage], False),
"DefaultResourceSpec": (ResourceSpec, False),
"LifecycleConfigArns": ([str], False),
}


class EFSFileSystemConfig(AWSProperty):
class JupyterServerAppSettings(AWSProperty):
"""
`EFSFileSystemConfig <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-userprofile-efsfilesystemconfig.html>`__
`JupyterServerAppSettings <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-userprofile-jupyterserverappsettings.html>`__
"""

props: PropsDictType = {
"FileSystemId": (str, True),
"FileSystemPath": (str, False),
"DefaultResourceSpec": (ResourceSpec, False),
}


class CustomFileSystemConfig(AWSProperty):
class KernelGatewayAppSettings(AWSProperty):
"""
`CustomFileSystemConfig <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-userprofile-customfilesystemconfig.html>`__
`KernelGatewayAppSettings <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-userprofile-kernelgatewayappsettings.html>`__
"""

props: PropsDictType = {
"EFSFileSystemConfig": (EFSFileSystemConfig, False),
"CustomImages": ([CustomImage], False),
"DefaultResourceSpec": (ResourceSpec, False),
}


class CustomPosixUserConfig(AWSProperty):
class DefaultSpaceSettings(AWSProperty):
"""
`CustomPosixUserConfig <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-userprofile-customposixuserconfig.html>`__
`DefaultSpaceSettings <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-domain-defaultspacesettings.html>`__
"""

props: PropsDictType = {
"Gid": (integer, True),
"Uid": (integer, True),
"CustomFileSystemConfigs": ([CustomFileSystemConfig], False),
"CustomPosixUserConfig": (CustomPosixUserConfig, False),
"ExecutionRole": (str, True),
"JupyterLabAppSettings": (JupyterLabAppSettings, False),
"JupyterServerAppSettings": (JupyterServerAppSettings, False),
"KernelGatewayAppSettings": (KernelGatewayAppSettings, False),
"SecurityGroups": ([str], False),
"SpaceStorageSettings": (DefaultSpaceStorageSettings, False),
}


class DefaultEbsStorageSettings(AWSProperty):
class DockerSettings(AWSProperty):
"""
`DefaultEbsStorageSettings <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-userprofile-defaultebsstoragesettings.html>`__
`DockerSettings <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-domain-dockersettings.html>`__
"""

props: PropsDictType = {
"DefaultEbsVolumeSizeInGb": (integer, True),
"MaximumEbsVolumeSizeInGb": (integer, True),
"EnableDockerAccess": (str, False),
"VpcOnlyTrustedAccounts": ([str], False),
}


class DefaultSpaceStorageSettings(AWSProperty):
class RStudioServerProDomainSettings(AWSProperty):
"""
`DefaultSpaceStorageSettings <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-userprofile-defaultspacestoragesettings.html>`__
`RStudioServerProDomainSettings <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-domain-rstudioserverprodomainsettings.html>`__
"""

props: PropsDictType = {
"DefaultEbsStorageSettings": (DefaultEbsStorageSettings, False),
"DefaultResourceSpec": (ResourceSpec, False),
"DomainExecutionRoleArn": (str, True),
"RStudioConnectUrl": (str, False),
"RStudioPackageManagerUrl": (str, False),
}


class CodeRepositoryProperty(AWSProperty):
class DomainSettings(AWSProperty):
"""
`CodeRepositoryProperty <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-userprofile-coderepository.html>`__
`DomainSettings <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-domain-domainsettings.html>`__
"""

props: PropsDictType = {
"RepositoryUrl": (str, True),
"DockerSettings": (DockerSettings, False),
"RStudioServerProDomainSettings": (RStudioServerProDomainSettings, False),
"SecurityGroupIds": ([str], False),
}


class JupyterLabAppSettings(AWSProperty):
class CodeEditorAppSettings(AWSProperty):
"""
`JupyterLabAppSettings <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-userprofile-jupyterlabappsettings.html>`__
`CodeEditorAppSettings <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-userprofile-codeeditorappsettings.html>`__
"""

props: PropsDictType = {
"CodeRepositories": ([CodeRepositoryProperty], False),
"CustomImages": ([CustomImage], False),
"DefaultResourceSpec": (ResourceSpec, False),
"LifecycleConfigArns": ([str], False),
Expand Down
43 changes: 43 additions & 0 deletions troposphere/securityhub.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,49 @@ class ProductSubscription(AWSObject):
}


class ParameterValue(AWSProperty):
"""
`ParameterValue <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-securitycontrol-parametervalue.html>`__
"""

props: PropsDictType = {
"Boolean": (boolean, False),
"Double": (double, False),
"Enum": (str, False),
"EnumList": ([str], False),
"Integer": (integer, False),
"IntegerList": ([integer], False),
"String": (str, False),
"StringList": ([str], False),
}


class ParameterConfiguration(AWSProperty):
"""
`ParameterConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-securitycontrol-parameterconfiguration.html>`__
"""

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


class SecurityControl(AWSObject):
"""
`SecurityControl <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-securitycontrol.html>`__
"""

resource_type = "AWS::SecurityHub::SecurityControl"

props: PropsDictType = {
"LastUpdateReason": (str, False),
"Parameters": (dict, True),
"SecurityControlArn": (str, False),
"SecurityControlId": (str, False),
}


class StandardsControl(AWSProperty):
"""
`StandardsControl <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-standard-standardscontrol.html>`__
Expand Down

0 comments on commit 98118ec

Please sign in to comment.