Skip to content

Commit

Permalink
Updates from spec version 171.0.0 (#2240)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Apr 29, 2024
1 parent 6ea2be2 commit 3b785a7
Show file tree
Hide file tree
Showing 9 changed files with 499 additions and 184 deletions.
2 changes: 1 addition & 1 deletion troposphere/arczonalshift.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ class ZonalAutoshiftConfiguration(AWSObject):

props: PropsDictType = {
"PracticeRunConfiguration": (PracticeRunConfiguration, False),
"ResourceIdentifier": (str, False),
"ResourceIdentifier": (str, True),
"ZonalAutoshiftStatus": (str, False),
}
1 change: 1 addition & 0 deletions troposphere/connectcampaigns.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ class AnswerMachineDetectionConfig(AWSProperty):
"""

props: PropsDictType = {
"AwaitAnswerMachinePrompt": (boolean, False),
"EnableAnswerMachineDetection": (boolean, True),
}

Expand Down
3 changes: 2 additions & 1 deletion troposphere/datasync.py
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,8 @@ class TaskSchedule(AWSProperty):
"""

props: PropsDictType = {
"ScheduleExpression": (str, True),
"ScheduleExpression": (str, False),
"Status": (str, False),
}


Expand Down
1 change: 0 additions & 1 deletion troposphere/ec2.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,6 @@ class CustomerGateway(AWSObject):

props: PropsDictType = {
"BgpAsn": (integer, False),
"BgpAsnExtended": (double, False),
"CertificateArn": (str, False),
"DeviceName": (str, False),
"IpAddress": (str, True),
Expand Down
144 changes: 144 additions & 0 deletions troposphere/gamelift.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,115 @@ class Build(AWSObject):
}


class ContainerDependency(AWSProperty):
"""
`ContainerDependency <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-containergroupdefinition-containerdependency.html>`__
"""

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


class ContainerEnvironment(AWSProperty):
"""
`ContainerEnvironment <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-containergroupdefinition-containerenvironment.html>`__
"""

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


class ContainerHealthCheck(AWSProperty):
"""
`ContainerHealthCheck <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-containergroupdefinition-containerhealthcheck.html>`__
"""

props: PropsDictType = {
"Command": ([str], True),
"Interval": (integer, False),
"Retries": (integer, False),
"StartPeriod": (integer, False),
"Timeout": (integer, False),
}


class MemoryLimits(AWSProperty):
"""
`MemoryLimits <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-containergroupdefinition-memorylimits.html>`__
"""

props: PropsDictType = {
"HardLimit": (integer, False),
"SoftLimit": (integer, False),
}


class ContainerPortRange(AWSProperty):
"""
`ContainerPortRange <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-containergroupdefinition-containerportrange.html>`__
"""

props: PropsDictType = {
"FromPort": (integer, True),
"Protocol": (str, True),
"ToPort": (integer, True),
}


class PortConfiguration(AWSProperty):
"""
`PortConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-containergroupdefinition-portconfiguration.html>`__
"""

props: PropsDictType = {
"ContainerPortRanges": ([ContainerPortRange], True),
}


class ContainerDefinition(AWSProperty):
"""
`ContainerDefinition <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-containergroupdefinition-containerdefinition.html>`__
"""

props: PropsDictType = {
"Command": ([str], False),
"ContainerName": (str, True),
"Cpu": (integer, False),
"DependsOn": ([ContainerDependency], False),
"EntryPoint": ([str], False),
"Environment": ([ContainerEnvironment], False),
"Essential": (boolean, False),
"HealthCheck": (ContainerHealthCheck, False),
"ImageUri": (str, True),
"MemoryLimits": (MemoryLimits, False),
"PortConfiguration": (PortConfiguration, False),
"ResolvedImageDigest": (str, False),
"WorkingDirectory": (str, False),
}


class ContainerGroupDefinition(AWSObject):
"""
`ContainerGroupDefinition <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-containergroupdefinition.html>`__
"""

resource_type = "AWS::GameLift::ContainerGroupDefinition"

props: PropsDictType = {
"ContainerDefinitions": ([ContainerDefinition], True),
"Name": (str, True),
"OperatingSystem": (str, True),
"SchedulingStrategy": (str, False),
"Tags": (Tags, False),
"TotalCpuLimit": (integer, True),
"TotalMemoryLimit": (integer, True),
}


class AnywhereConfiguration(AWSProperty):
"""
`AnywhereConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-fleet-anywhereconfiguration.html>`__
Expand All @@ -85,6 +194,40 @@ class CertificateConfiguration(AWSProperty):
}


class ConnectionPortRange(AWSProperty):
"""
`ConnectionPortRange <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-fleet-connectionportrange.html>`__
"""

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


class ContainerGroupsPerInstance(AWSProperty):
"""
`ContainerGroupsPerInstance <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-fleet-containergroupsperinstance.html>`__
"""

props: PropsDictType = {
"DesiredReplicaContainerGroupsPerInstance": (integer, False),
"MaxReplicaContainerGroupsPerInstance": (integer, False),
}


class ContainerGroupsConfiguration(AWSProperty):
"""
`ContainerGroupsConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-fleet-containergroupsconfiguration.html>`__
"""

props: PropsDictType = {
"ConnectionPortRange": (ConnectionPortRange, True),
"ContainerGroupDefinitionNames": ([str], True),
"ContainerGroupsPerInstance": (ContainerGroupsPerInstance, False),
}


class IpPermission(AWSProperty):
"""
`IpPermission <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-fleet-ippermission.html>`__
Expand Down Expand Up @@ -200,6 +343,7 @@ class Fleet(AWSObject):
"BuildId": (str, False),
"CertificateConfiguration": (CertificateConfiguration, False),
"ComputeType": (str, False),
"ContainerGroupsConfiguration": (ContainerGroupsConfiguration, False),
"Description": (str, False),
"DesiredEC2Instances": (integer, False),
"EC2InboundPermissions": ([IpPermission], False),
Expand Down
37 changes: 37 additions & 0 deletions troposphere/medialive.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,12 +246,14 @@ class AudioDescription(AWSProperty):
"""

props: PropsDictType = {
"AudioDashRoles": ([str], False),
"AudioNormalizationSettings": (AudioNormalizationSettings, False),
"AudioSelectorName": (str, False),
"AudioType": (str, False),
"AudioTypeControl": (str, False),
"AudioWatermarkingSettings": (AudioWatermarkSettings, False),
"CodecSettings": (AudioCodecSettings, False),
"DvbDashAccessibility": (str, False),
"LanguageCode": (str, False),
"LanguageCodeControl": (str, False),
"Name": (str, False),
Expand Down Expand Up @@ -545,8 +547,10 @@ class CaptionDescription(AWSProperty):

props: PropsDictType = {
"Accessibility": (str, False),
"CaptionDashRoles": ([str], False),
"CaptionSelectorName": (str, False),
"DestinationSettings": (CaptionDestinationSettings, False),
"DvbDashAccessibility": (str, False),
"LanguageCode": (str, False),
"LanguageDescription": (str, False),
"Name": (str, False),
Expand Down Expand Up @@ -809,6 +813,16 @@ class ArchiveOutputSettings(AWSProperty):
}


class CmafIngestOutputSettings(AWSProperty):
"""
`CmafIngestOutputSettings <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-cmafingestoutputsettings.html>`__
"""

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


class FrameCaptureOutputSettings(AWSProperty):
"""
`FrameCaptureOutputSettings <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-framecaptureoutputsettings.html>`__
Expand Down Expand Up @@ -1011,6 +1025,7 @@ class OutputSettings(AWSProperty):

props: PropsDictType = {
"ArchiveOutputSettings": (ArchiveOutputSettings, False),
"CmafIngestOutputSettings": (CmafIngestOutputSettings, False),
"FrameCaptureOutputSettings": (FrameCaptureOutputSettings, False),
"HlsOutputSettings": (HlsOutputSettings, False),
"MediaPackageOutputSettings": (MediaPackageOutputSettings, False),
Expand Down Expand Up @@ -1067,6 +1082,21 @@ class ArchiveGroupSettings(AWSProperty):
}


class CmafIngestGroupSettings(AWSProperty):
"""
`CmafIngestGroupSettings <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-cmafingestgroupsettings.html>`__
"""

props: PropsDictType = {
"Destination": (OutputLocationRef, False),
"NielsenId3Behavior": (str, False),
"Scte35Type": (str, False),
"SegmentLength": (integer, False),
"SegmentLengthUnits": (str, False),
"SendDelayMs": (integer, False),
}


class FrameCaptureS3Settings(AWSProperty):
"""
`FrameCaptureS3Settings <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-framecaptures3settings.html>`__
Expand Down Expand Up @@ -1346,6 +1376,7 @@ class OutputGroupSettings(AWSProperty):

props: PropsDictType = {
"ArchiveGroupSettings": (ArchiveGroupSettings, False),
"CmafIngestGroupSettings": (CmafIngestGroupSettings, False),
"FrameCaptureGroupSettings": (FrameCaptureGroupSettings, False),
"HlsGroupSettings": (HlsGroupSettings, False),
"MediaPackageGroupSettings": (MediaPackageGroupSettings, False),
Expand Down Expand Up @@ -1589,6 +1620,8 @@ class H265Settings(AWSProperty):
"LookAheadRateControl": (str, False),
"MaxBitrate": (integer, False),
"MinIInterval": (integer, False),
"MvOverPictureBoundaries": (str, False),
"MvTemporalPredictor": (str, False),
"ParDenominator": (integer, False),
"ParNumerator": (integer, False),
"Profile": (str, False),
Expand All @@ -1598,8 +1631,12 @@ class H265Settings(AWSProperty):
"SceneChangeDetect": (str, False),
"Slices": (integer, False),
"Tier": (str, False),
"TileHeight": (integer, False),
"TilePadding": (str, False),
"TileWidth": (integer, False),
"TimecodeBurninSettings": (TimecodeBurninSettings, False),
"TimecodeInsertion": (str, False),
"TreeblockSize": (str, False),
}


Expand Down
Loading

0 comments on commit 3b785a7

Please sign in to comment.