Skip to content

Commit

Permalink
Updates from spec version 138.0.0 (#2178)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Sep 7, 2023
1 parent abdc481 commit 873f43c
Show file tree
Hide file tree
Showing 9 changed files with 247 additions and 16 deletions.
4 changes: 3 additions & 1 deletion troposphere/appstream.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,8 @@ class ComputeCapacity(AWSProperty):
"""

props: PropsDictType = {
"DesiredInstances": (integer, True),
"DesiredInstances": (integer, False),
"DesiredSessions": (integer, False),
}


Expand Down Expand Up @@ -254,6 +255,7 @@ class Fleet(AWSObject):
"ImageName": (str, False),
"InstanceType": (str, True),
"MaxConcurrentSessions": (integer, False),
"MaxSessionsPerInstance": (integer, False),
"MaxUserDurationInSeconds": (integer, False),
"Name": (str, True),
"Platform": (str, False),
Expand Down
50 changes: 50 additions & 0 deletions troposphere/cleanrooms.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,46 @@
from .validators import boolean, double


class AnalysisParameter(AWSProperty):
"""
`AnalysisParameter <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-analysistemplate-analysisparameter.html>`__
"""

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


class AnalysisSource(AWSProperty):
"""
`AnalysisSource <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-analysistemplate-analysissource.html>`__
"""

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


class AnalysisTemplate(AWSObject):
"""
`AnalysisTemplate <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-analysistemplate.html>`__
"""

resource_type = "AWS::CleanRooms::AnalysisTemplate"

props: PropsDictType = {
"AnalysisParameters": ([AnalysisParameter], False),
"Description": (str, False),
"Format": (str, True),
"MembershipIdentifier": (str, True),
"Name": (str, True),
"Source": (AnalysisSource, True),
"Tags": (Tags, False),
}


class DataEncryptionMetadata(AWSProperty):
"""
`DataEncryptionMetadata <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-collaboration-dataencryptionmetadata.html>`__
Expand Down Expand Up @@ -217,3 +257,13 @@ class Membership(AWSObject):
"QueryLogStatus": (str, True),
"Tags": (Tags, False),
}


class AnalysisSchema(AWSProperty):
"""
`AnalysisSchema <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-analysistemplate-analysisschema.html>`__
"""

props: PropsDictType = {
"ReferencedTables": ([str], True),
}
90 changes: 90 additions & 0 deletions troposphere/datasync.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,95 @@ class Options(AWSProperty):
}


class S3(AWSProperty):
"""
`S3 <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datasync-task-s3.html>`__
"""

props: PropsDictType = {
"BucketAccessRoleArn": (str, False),
"S3BucketArn": (str, False),
"Subdirectory": (str, False),
}


class Destination(AWSProperty):
"""
`Destination <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datasync-task-destination.html>`__
"""

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


class Deleted(AWSProperty):
"""
`Deleted <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datasync-task-deleted.html>`__
"""

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


class Skipped(AWSProperty):
"""
`Skipped <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datasync-task-skipped.html>`__
"""

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


class Transferred(AWSProperty):
"""
`Transferred <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datasync-task-transferred.html>`__
"""

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


class Verified(AWSProperty):
"""
`Verified <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datasync-task-verified.html>`__
"""

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


class Overrides(AWSProperty):
"""
`Overrides <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datasync-task-overrides.html>`__
"""

props: PropsDictType = {
"Deleted": (Deleted, False),
"Skipped": (Skipped, False),
"Transferred": (Transferred, False),
"Verified": (Verified, False),
}


class TaskReportConfig(AWSProperty):
"""
`TaskReportConfig <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datasync-task-taskreportconfig.html>`__
"""

props: PropsDictType = {
"Destination": (Destination, True),
"ObjectVersionIds": (str, False),
"OutputType": (str, True),
"Overrides": (Overrides, False),
"ReportLevel": (str, False),
}


class TaskSchedule(AWSProperty):
"""
`TaskSchedule <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datasync-task-taskschedule.html>`__
Expand Down Expand Up @@ -454,6 +543,7 @@ class Task(AWSObject):
"Schedule": (TaskSchedule, False),
"SourceLocationArn": (str, True),
"Tags": (Tags, False),
"TaskReportConfig": (TaskReportConfig, False),
}


Expand Down
3 changes: 1 addition & 2 deletions troposphere/ec2.py
Original file line number Diff line number Diff line change
Expand Up @@ -612,14 +612,13 @@ class EIP(AWSObject):

class EIPAssociation(AWSObject):
"""
`EIPAssociation <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-eip-association.html>`__
`EIPAssociation <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-eipassociation.html>`__
"""

resource_type = "AWS::EC2::EIPAssociation"

props: PropsDictType = {
"AllocationId": (str, False),
"EIP": (str, False),
"InstanceId": (str, False),
"NetworkInterfaceId": (str, False),
"PrivateIpAddress": (str, False),
Expand Down
2 changes: 2 additions & 0 deletions troposphere/lakeformation.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,12 @@ class DataLakeSettings(AWSObject):
props: PropsDictType = {
"Admins": ([DataLakePrincipal], False),
"AllowExternalDataFiltering": (boolean, False),
"AllowFullTableExternalDataAccess": (boolean, False),
"AuthorizedSessionTagValueList": ([str], False),
"CreateDatabaseDefaultPermissions": ([], False),
"CreateTableDefaultPermissions": ([], False),
"ExternalDataFilteringAllowList": ([], False),
"MutationType": (str, False),
"Parameters": (dict, False),
"TrustedResourceOwners": ([str], False),
}
Expand Down
15 changes: 15 additions & 0 deletions troposphere/medialive.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ class Ac3Settings(AWSProperty):
"""

props: PropsDictType = {
"AttenuationControl": (str, False),
"Bitrate": (double, False),
"BitstreamMode": (str, False),
"CodingMode": (str, False),
Expand Down Expand Up @@ -806,6 +807,8 @@ class M3u8Settings(AWSProperty):
"AudioFramesPerPes": (integer, False),
"AudioPids": (str, False),
"EcmPid": (str, False),
"KlvBehavior": (str, False),
"KlvDataPids": (str, False),
"NielsenId3Behavior": (str, False),
"PatInterval": (integer, False),
"PcrControl": (str, False),
Expand Down Expand Up @@ -1264,6 +1267,7 @@ class RtmpGroupSettings(AWSProperty):
"CacheFullBehavior": (str, False),
"CacheLength": (integer, False),
"CaptionData": (str, False),
"IncludeFillerNalUnits": (str, False),
"InputLossAction": (str, False),
"RestartDelay": (integer, False),
}
Expand Down Expand Up @@ -1310,6 +1314,16 @@ class OutputGroup(AWSProperty):
}


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

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


class TimecodeConfig(AWSProperty):
"""
`TimecodeConfig <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-timecodeconfig.html>`__
Expand Down Expand Up @@ -1616,6 +1630,7 @@ class EncoderSettings(AWSProperty):
"MotionGraphicsConfiguration": (MotionGraphicsConfiguration, False),
"NielsenConfiguration": (NielsenConfiguration, False),
"OutputGroups": ([OutputGroup], False),
"ThumbnailConfiguration": (ThumbnailConfiguration, False),
"TimecodeConfig": (TimecodeConfig, False),
"VideoDescriptions": ([VideoDescription], False),
}
Expand Down
Loading

0 comments on commit 873f43c

Please sign in to comment.