Skip to content

Commit

Permalink
Updates from spec version 185.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
markpeek authored and github-actions[bot] committed Oct 3, 2024
1 parent ca9d47e commit f0088cb
Show file tree
Hide file tree
Showing 4 changed files with 117 additions and 0 deletions.
1 change: 1 addition & 0 deletions troposphere/cloudformation.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class CustomResource(AWSObject):
resource_type = "AWS::CloudFormation::CustomResource"

props: PropsDictType = {
"ServiceTimeout": (integer, False),
"ServiceToken": (str, True),
}

Expand Down
50 changes: 50 additions & 0 deletions troposphere/emr.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,26 @@ class Configuration(AWSProperty):
}


class OnDemandCapacityReservationOptions(AWSProperty):
"""
`OnDemandCapacityReservationOptions <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancefleetconfig-ondemandcapacityreservationoptions.html>`__
"""

props: PropsDictType = {
"CapacityReservationPreference": (str, False),
"CapacityReservationResourceGroupArn": (str, False),
"UsageStrategy": (str, False),
}


class OnDemandProvisioningSpecification(AWSProperty):
"""
`OnDemandProvisioningSpecification <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancefleetconfig-ondemandprovisioningspecification.html>`__
"""

props: PropsDictType = {
"AllocationStrategy": (str, True),
"CapacityReservationOptions": (OnDemandCapacityReservationOptions, False),
}

def validate(self):
Expand Down Expand Up @@ -124,6 +137,40 @@ class InstanceFleetProvisioningSpecifications(AWSProperty):
}


class OnDemandResizingSpecification(AWSProperty):
"""
`OnDemandResizingSpecification <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancefleetconfig-ondemandresizingspecification.html>`__
"""

props: PropsDictType = {
"AllocationStrategy": (str, False),
"CapacityReservationOptions": (OnDemandCapacityReservationOptions, False),
"TimeoutDurationMinutes": (integer, False),
}


class SpotResizingSpecification(AWSProperty):
"""
`SpotResizingSpecification <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancefleetconfig-spotresizingspecification.html>`__
"""

props: PropsDictType = {
"AllocationStrategy": (str, False),
"TimeoutDurationMinutes": (integer, False),
}


class InstanceFleetResizingSpecifications(AWSProperty):
"""
`InstanceFleetResizingSpecifications <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancefleetconfig-instancefleetresizingspecifications.html>`__
"""

props: PropsDictType = {
"OnDemandResizeSpecification": (OnDemandResizingSpecification, False),
"SpotResizeSpecification": (SpotResizingSpecification, False),
}


class VolumeSpecification(AWSProperty):
"""
`VolumeSpecification <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-ebsconfiguration-ebsblockdeviceconfig-volumespecification.html>`__
Expand Down Expand Up @@ -171,6 +218,7 @@ class InstanceTypeConfig(AWSProperty):
"CustomAmiId": (str, False),
"EbsConfiguration": (EbsConfiguration, False),
"InstanceType": (str, True),
"Priority": (double, False),
"WeightedCapacity": (integer, False),
}

Expand All @@ -184,6 +232,7 @@ class InstanceFleetConfigProperty(AWSProperty):
"InstanceTypeConfigs": ([InstanceTypeConfig], False),
"LaunchSpecifications": (InstanceFleetProvisioningSpecifications, False),
"Name": (str, False),
"ResizeSpecifications": (InstanceFleetResizingSpecifications, False),
"TargetOnDemandCapacity": (integer, False),
"TargetSpotCapacity": (integer, False),
}
Expand Down Expand Up @@ -460,6 +509,7 @@ class InstanceFleetConfig(AWSObject):
"InstanceTypeConfigs": ([InstanceTypeConfig], False),
"LaunchSpecifications": (InstanceFleetProvisioningSpecifications, False),
"Name": (str, False),
"ResizeSpecifications": (InstanceFleetResizingSpecifications, False),
"TargetOnDemandCapacity": (integer, False),
"TargetSpotCapacity": (integer, False),
}
Expand Down
40 changes: 40 additions & 0 deletions troposphere/glue.py
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,7 @@ class Job(AWSObject):
"ExecutionProperty": (ExecutionProperty, False),
"GlueVersion": (str, False),
"JobMode": (str, False),
"JobRunQueuingEnabled": (boolean, False),
"LogUri": (str, False),
"MaintenanceWindow": (str, False),
"MaxCapacity": (double, False),
Expand Down Expand Up @@ -1098,6 +1099,45 @@ class Trigger(AWSObject):
}


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

props: PropsDictType = {
"AllowedValues": ([str], False),
"DefaultValue": (str, False),
"MaxValue": (str, False),
"MinValue": (str, False),
}


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

props: PropsDictType = {
"JobConfiguration": (dict, False),
"SessionConfiguration": (dict, False),
}


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

resource_type = "AWS::Glue::UsageProfile"

props: PropsDictType = {
"Configuration": (ProfileConfiguration, False),
"Description": (str, False),
"Name": (str, True),
"Tags": (Tags, False),
}


class Workflow(AWSObject):
"""
`Workflow <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-workflow.html>`__
Expand Down
26 changes: 26 additions & 0 deletions troposphere/quicksight.py
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,7 @@ class DefaultDateTimePickerControlOptions(AWSProperty):
"""

props: PropsDictType = {
"CommitMode": (str, False),
"DisplayOptions": (DateTimePickerControlDisplayOptions, False),
"Type": (str, False),
}
Expand Down Expand Up @@ -575,6 +576,7 @@ class DefaultFilterDropDownControlOptions(AWSProperty):
"""

props: PropsDictType = {
"CommitMode": (str, False),
"DisplayOptions": (DropDownControlDisplayOptions, False),
"SelectableValues": (FilterSelectableValues, False),
"Type": (str, False),
Expand Down Expand Up @@ -634,6 +636,7 @@ class DefaultRelativeDateTimeControlOptions(AWSProperty):
"""

props: PropsDictType = {
"CommitMode": (str, False),
"DisplayOptions": (RelativeDateTimeControlDisplayOptions, False),
}

Expand Down Expand Up @@ -1312,6 +1315,7 @@ class FilterDateTimePickerControl(AWSProperty):
"""

props: PropsDictType = {
"CommitMode": (str, False),
"DisplayOptions": (DateTimePickerControlDisplayOptions, False),
"FilterControlId": (str, True),
"SourceFilterId": (str, True),
Expand All @@ -1327,6 +1331,7 @@ class FilterDropDownControl(AWSProperty):

props: PropsDictType = {
"CascadingControlConfiguration": (CascadingControlConfiguration, False),
"CommitMode": (str, False),
"DisplayOptions": (DropDownControlDisplayOptions, False),
"FilterControlId": (str, True),
"SelectableValues": (FilterSelectableValues, False),
Expand Down Expand Up @@ -1358,6 +1363,7 @@ class FilterRelativeDateTimeControl(AWSProperty):
"""

props: PropsDictType = {
"CommitMode": (str, False),
"DisplayOptions": (RelativeDateTimeControlDisplayOptions, False),
"FilterControlId": (str, True),
"SourceFilterId": (str, True),
Expand Down Expand Up @@ -1689,6 +1695,7 @@ class ParameterDropDownControl(AWSProperty):

props: PropsDictType = {
"CascadingControlConfiguration": (CascadingControlConfiguration, False),
"CommitMode": (str, False),
"DisplayOptions": (DropDownControlDisplayOptions, False),
"ParameterControlId": (str, True),
"SelectableValues": (ParameterSelectableValues, False),
Expand Down Expand Up @@ -7233,6 +7240,25 @@ class DataSource(AWSObject):
}


class Folder(AWSObject):
"""
`Folder <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-quicksight-folder.html>`__
"""

resource_type = "AWS::QuickSight::Folder"

props: PropsDictType = {
"AwsAccountId": (str, False),
"FolderId": (str, False),
"FolderType": (str, False),
"Name": (str, False),
"ParentFolderArn": (str, False),
"Permissions": ([ResourcePermission], False),
"SharingModel": (str, False),
"Tags": (Tags, False),
}


class RefreshOnDay(AWSProperty):
"""
`RefreshOnDay <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-refreshschedule-refreshonday.html>`__
Expand Down

0 comments on commit f0088cb

Please sign in to comment.