Skip to content

Commit

Permalink
Updates from spec version 157.0.0 (#2222)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Feb 4, 2024
1 parent 6952959 commit cffd79a
Show file tree
Hide file tree
Showing 7 changed files with 268 additions and 0 deletions.
1 change: 1 addition & 0 deletions troposphere/autoscaling.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ class InstanceRequirements(AWSProperty):
"InstanceGenerations": ([str], False),
"LocalStorage": (str, False),
"LocalStorageTypes": ([str], False),
"MaxSpotPriceAsPercentageOfOptimalOnDemandPrice": (integer, False),
"MemoryGiBPerVCpu": (MemoryGiBPerVCpuRequest, False),
"MemoryMiB": (MemoryMiBRequest, True),
"NetworkBandwidthGbps": (NetworkBandwidthGbpsRequest, False),
Expand Down
1 change: 1 addition & 0 deletions troposphere/ec2.py
Original file line number Diff line number Diff line change
Expand Up @@ -1327,6 +1327,7 @@ class InstanceRequirements(AWSProperty):
"InstanceGenerations": ([str], False),
"LocalStorage": (str, False),
"LocalStorageTypes": ([str], False),
"MaxSpotPriceAsPercentageOfOptimalOnDemandPrice": (integer, False),
"MemoryGiBPerVCpu": (MemoryGiBPerVCpu, False),
"MemoryMiB": (MemoryMiB, False),
"NetworkBandwidthGbps": (NetworkBandwidthGbps, False),
Expand Down
27 changes: 27 additions & 0 deletions troposphere/glue.py
Original file line number Diff line number Diff line change
Expand Up @@ -982,6 +982,33 @@ class Table(AWSObject):
}


class TableOptimizerConfiguration(AWSProperty):
"""
`TableOptimizerConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-tableoptimizer-tableoptimizerconfiguration.html>`__
"""

props: PropsDictType = {
"Enabled": (boolean, False),
"RoleArn": (str, False),
}


class TableOptimizer(AWSObject):
"""
`TableOptimizer <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-tableoptimizer.html>`__
"""

resource_type = "AWS::Glue::TableOptimizer"

props: PropsDictType = {
"CatalogId": (str, True),
"DatabaseName": (str, True),
"TableName": (str, True),
"TableOptimizerConfiguration": (TableOptimizerConfiguration, True),
"Type": (str, True),
}


class Action(AWSProperty):
"""
`Action <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-trigger-action.html>`__
Expand Down
83 changes: 83 additions & 0 deletions troposphere/inspectorv2.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,89 @@
from .validators import double, integer


class CisTargets(AWSProperty):
"""
`CisTargets <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-cisscanconfiguration-cistargets.html>`__
"""

props: PropsDictType = {
"AccountIds": ([str], True),
"TargetResourceTags": (dict, False),
}


class Time(AWSProperty):
"""
`Time <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-cisscanconfiguration-time.html>`__
"""

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


class DailySchedule(AWSProperty):
"""
`DailySchedule <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-cisscanconfiguration-dailyschedule.html>`__
"""

props: PropsDictType = {
"StartTime": (Time, True),
}


class MonthlySchedule(AWSProperty):
"""
`MonthlySchedule <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-cisscanconfiguration-monthlyschedule.html>`__
"""

props: PropsDictType = {
"Day": (str, True),
"StartTime": (Time, True),
}


class WeeklySchedule(AWSProperty):
"""
`WeeklySchedule <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-cisscanconfiguration-weeklyschedule.html>`__
"""

props: PropsDictType = {
"Days": ([str], True),
"StartTime": (Time, True),
}


class Schedule(AWSProperty):
"""
`Schedule <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-cisscanconfiguration-schedule.html>`__
"""

props: PropsDictType = {
"Daily": (DailySchedule, False),
"Monthly": (MonthlySchedule, False),
"OneTime": (dict, False),
"Weekly": (WeeklySchedule, False),
}


class CisScanConfiguration(AWSObject):
"""
`CisScanConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspectorv2-cisscanconfiguration.html>`__
"""

resource_type = "AWS::InspectorV2::CisScanConfiguration"

props: PropsDictType = {
"ScanName": (str, False),
"Schedule": (Schedule, False),
"SecurityLevel": (str, False),
"Tags": (dict, False),
"Targets": (CisTargets, False),
}


class DateFilter(AWSProperty):
"""
`DateFilter <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-filter-datefilter.html>`__
Expand Down
1 change: 1 addition & 0 deletions troposphere/location.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ class MapConfiguration(AWSProperty):
"""

props: PropsDictType = {
"CustomLayers": ([str], False),
"PoliticalView": (str, False),
"Style": (str, True),
}
Expand Down
17 changes: 17 additions & 0 deletions troposphere/rds.py
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,23 @@ class GlobalCluster(AWSObject):
}


class Integration(AWSObject):
"""
`Integration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-integration.html>`__
"""

resource_type = "AWS::RDS::Integration"

props: PropsDictType = {
"AdditionalEncryptionContext": (dict, False),
"IntegrationName": (str, False),
"KMSKeyId": (str, False),
"SourceArn": (str, True),
"Tags": (Tags, False),
"TargetArn": (str, True),
}


class OptionSetting(AWSProperty):
"""
`OptionSetting <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-optiongroup-optionsetting.html>`__
Expand Down
138 changes: 138 additions & 0 deletions troposphere/sagemaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,42 @@ class App(AWSObject):
}


class CustomImageContainerEnvironmentVariable(AWSProperty):
"""
`CustomImageContainerEnvironmentVariable <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-appimageconfig-customimagecontainerenvironmentvariable.html>`__
"""

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


class ContainerConfig(AWSProperty):
"""
`ContainerConfig <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-appimageconfig-containerconfig.html>`__
"""

props: PropsDictType = {
"ContainerArguments": ([str], False),
"ContainerEntrypoint": ([str], False),
"ContainerEnvironmentVariables": (
[CustomImageContainerEnvironmentVariable],
False,
),
}


class JupyterLabAppImageConfig(AWSProperty):
"""
`JupyterLabAppImageConfig <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-appimageconfig-jupyterlabappimageconfig.html>`__
"""

props: PropsDictType = {
"ContainerConfig": (ContainerConfig, False),
}


class FileSystemConfig(AWSProperty):
"""
`FileSystemConfig <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-appimageconfig-filesystemconfig.html>`__
Expand Down Expand Up @@ -82,6 +118,7 @@ class AppImageConfig(AWSObject):

props: PropsDictType = {
"AppImageConfigName": (str, True),
"JupyterLabAppImageConfig": (JupyterLabAppImageConfig, False),
"KernelGatewayImageConfig": (KernelGatewayImageConfig, False),
"Tags": (Tags, False),
}
Expand Down Expand Up @@ -442,6 +479,17 @@ class DefaultSpaceSettings(AWSProperty):
}


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

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


class RStudioServerProDomainSettings(AWSProperty):
"""
`RStudioServerProDomainSettings <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-domain-rstudioserverprodomainsettings.html>`__
Expand All @@ -461,6 +509,7 @@ class DomainSettings(AWSProperty):
"""

props: PropsDictType = {
"DockerSettings": (DockerSettings, False),
"RStudioServerProDomainSettings": (RStudioServerProDomainSettings, False),
"SecurityGroupIds": ([str], False),
}
Expand Down Expand Up @@ -2605,14 +2654,100 @@ class Project(AWSObject):
}


class OwnershipSettings(AWSProperty):
"""
`OwnershipSettings <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-space-ownershipsettings.html>`__
"""

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


class EFSFileSystem(AWSProperty):
"""
`EFSFileSystem <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-space-efsfilesystem.html>`__
"""

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


class CustomFileSystem(AWSProperty):
"""
`CustomFileSystem <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-space-customfilesystem.html>`__
"""

props: PropsDictType = {
"EFSFileSystem": (EFSFileSystem, False),
}


class SpaceCodeEditorAppSettings(AWSProperty):
"""
`SpaceCodeEditorAppSettings <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-space-spacecodeeditorappsettings.html>`__
"""

props: PropsDictType = {
"DefaultResourceSpec": (ResourceSpec, False),
}


class SpaceJupyterLabAppSettings(AWSProperty):
"""
`SpaceJupyterLabAppSettings <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-space-spacejupyterlabappsettings.html>`__
"""

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


class EbsStorageSettings(AWSProperty):
"""
`EbsStorageSettings <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-space-ebsstoragesettings.html>`__
"""

props: PropsDictType = {
"EbsVolumeSizeInGb": (integer, True),
}


class SpaceStorageSettings(AWSProperty):
"""
`SpaceStorageSettings <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-space-spacestoragesettings.html>`__
"""

props: PropsDictType = {
"EbsStorageSettings": (EbsStorageSettings, False),
}


class SpaceSettings(AWSProperty):
"""
`SpaceSettings <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-space-spacesettings.html>`__
"""

props: PropsDictType = {
"AppType": (str, False),
"CodeEditorAppSettings": (SpaceCodeEditorAppSettings, False),
"CustomFileSystems": ([CustomFileSystem], False),
"JupyterLabAppSettings": (SpaceJupyterLabAppSettings, False),
"JupyterServerAppSettings": (JupyterServerAppSettings, False),
"KernelGatewayAppSettings": (KernelGatewayAppSettings, False),
"SpaceStorageSettings": (SpaceStorageSettings, False),
}


class SpaceSharingSettings(AWSProperty):
"""
`SpaceSharingSettings <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-space-spacesharingsettings.html>`__
"""

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


Expand All @@ -2625,8 +2760,11 @@ class Space(AWSObject):

props: PropsDictType = {
"DomainId": (str, True),
"OwnershipSettings": (OwnershipSettings, False),
"SpaceDisplayName": (str, False),
"SpaceName": (str, True),
"SpaceSettings": (SpaceSettings, False),
"SpaceSharingSettings": (SpaceSharingSettings, False),
"Tags": (Tags, False),
}

Expand Down

0 comments on commit cffd79a

Please sign in to comment.