Skip to content

Commit

Permalink
Updates from spec version 150.0.0 (#2210)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Dec 8, 2023
1 parent ab7536d commit ba5b495
Show file tree
Hide file tree
Showing 17 changed files with 492 additions and 119 deletions.
8 changes: 4 additions & 4 deletions troposphere/apigateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ class GatewayResponse(AWSObject):

class IntegrationResponse(AWSProperty):
"""
`IntegrationResponse <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-method-integration-integrationresponse.html>`__
`IntegrationResponse <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-method-integrationresponse.html>`__
"""

props: PropsDictType = {
Expand All @@ -311,7 +311,7 @@ class IntegrationResponse(AWSProperty):

class Integration(AWSProperty):
"""
`Integration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-method-integration.html>`__
`Integration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-method-integration.html>`__
"""

props: PropsDictType = {
Expand All @@ -327,14 +327,14 @@ class Integration(AWSProperty):
"RequestParameters": (dict, False),
"RequestTemplates": (dict, False),
"TimeoutInMillis": (validate_timeout_in_millis, False),
"Type": (str, False),
"Type": (str, True),
"Uri": (str, False),
}


class MethodResponse(AWSProperty):
"""
`MethodResponse <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-method-methodresponse.html>`__
`MethodResponse <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-method-methodresponse.html>`__
"""

props: PropsDictType = {
Expand Down
1 change: 0 additions & 1 deletion troposphere/awslambda.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,6 @@ class Function(AWSObject):
"LoggingConfig": (LoggingConfig, False),
"MemorySize": (validate_memory_size, False),
"PackageType": (validate_package_type, False),
"Policy": (dict, False),
"ReservedConcurrentExecutions": (integer, False),
"Role": (str, True),
"Runtime": (str, False),
Expand Down
1 change: 1 addition & 0 deletions troposphere/billingconductor.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ class CustomLineItem(AWSObject):
resource_type = "AWS::BillingConductor::CustomLineItem"

props: PropsDictType = {
"AccountId": (str, False),
"BillingGroupArn": (str, True),
"BillingPeriodRange": (BillingPeriodRange, False),
"CustomLineItemChargeDetails": (CustomLineItemChargeDetails, False),
Expand Down
43 changes: 43 additions & 0 deletions troposphere/cleanrooms.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,26 @@ class DataEncryptionMetadata(AWSProperty):
}


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

props: PropsDictType = {
"IsResponsible": (boolean, True),
}


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

props: PropsDictType = {
"QueryCompute": (QueryComputePaymentConfig, True),
}


class MemberSpecification(AWSProperty):
"""
`MemberSpecification <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-collaboration-memberspecification.html>`__
Expand All @@ -72,6 +92,7 @@ class MemberSpecification(AWSProperty):
"AccountId": (str, True),
"DisplayName": (str, True),
"MemberAbilities": ([str], True),
"PaymentConfiguration": (PaymentConfiguration, False),
}


Expand All @@ -85,6 +106,7 @@ class Collaboration(AWSObject):
props: PropsDictType = {
"CreatorDisplayName": (str, True),
"CreatorMemberAbilities": ([str], True),
"CreatorPaymentConfiguration": (PaymentConfiguration, False),
"DataEncryptionMetadata": (DataEncryptionMetadata, False),
"Description": (str, True),
"Members": ([MemberSpecification], True),
Expand Down Expand Up @@ -245,6 +267,26 @@ class ConfiguredTableAssociation(AWSObject):
}


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

props: PropsDictType = {
"IsResponsible": (boolean, True),
}


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

props: PropsDictType = {
"QueryCompute": (MembershipQueryComputePaymentConfig, True),
}


class ProtectedQueryS3OutputConfiguration(AWSProperty):
"""
`ProtectedQueryS3OutputConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-membership-protectedquerys3outputconfiguration.html>`__
Expand Down Expand Up @@ -291,6 +333,7 @@ class Membership(AWSObject):
MembershipProtectedQueryResultConfiguration,
False,
),
"PaymentConfiguration": (MembershipPaymentConfiguration, False),
"QueryLogStatus": (str, True),
"Tags": (Tags, False),
}
Expand Down
2 changes: 1 addition & 1 deletion troposphere/cloud9.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class EnvironmentEC2(AWSObject):
"AutomaticStopTimeMinutes": (integer, False),
"ConnectionType": (str, False),
"Description": (str, False),
"ImageId": (str, False),
"ImageId": (str, True),
"InstanceType": (str, True),
"Name": (str, False),
"OwnerArn": (str, False),
Expand Down
2 changes: 2 additions & 0 deletions troposphere/cloudtrail.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ class EventDataStore(AWSObject):
props: PropsDictType = {
"AdvancedEventSelectors": ([AdvancedEventSelector], False),
"BillingMode": (str, False),
"FederationEnabled": (boolean, False),
"FederationRoleArn": (str, False),
"IngestionEnabled": (boolean, False),
"InsightSelectors": ([InsightSelector], False),
"InsightsDestination": (str, False),
Expand Down
25 changes: 25 additions & 0 deletions troposphere/codedeploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,29 @@ class TrafficRoutingConfig(AWSProperty):
}


class MinimumHealthyHostsPerZone(AWSProperty):
"""
`MinimumHealthyHostsPerZone <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentconfig-minimumhealthyhostsperzone.html>`__
"""

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


class ZonalConfig(AWSProperty):
"""
`ZonalConfig <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentconfig-zonalconfig.html>`__
"""

props: PropsDictType = {
"FirstZoneMonitorDurationInSeconds": (integer, False),
"MinimumHealthyHostsPerZone": (MinimumHealthyHostsPerZone, False),
"MonitorDurationInSeconds": (integer, False),
}


class DeploymentConfig(AWSObject):
"""
`DeploymentConfig <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codedeploy-deploymentconfig.html>`__
Expand All @@ -90,6 +113,7 @@ class DeploymentConfig(AWSObject):
"DeploymentConfigName": (str, False),
"MinimumHealthyHosts": (MinimumHealthyHosts, False),
"TrafficRoutingConfig": (TrafficRoutingConfig, False),
"ZonalConfig": (ZonalConfig, False),
}


Expand Down Expand Up @@ -415,6 +439,7 @@ class DeploymentGroup(AWSObject):
"OutdatedInstancesStrategy": (str, False),
"ServiceRoleArn": (str, True),
"Tags": (Tags, False),
"TerminationHookEnabled": (boolean, False),
"TriggerConfigurations": ([TriggerConfig], False),
}

Expand Down
58 changes: 58 additions & 0 deletions troposphere/codepipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,49 @@ class DisableInboundStageTransitions(AWSProperty):
}


class GitTagFilterCriteria(AWSProperty):
"""
`GitTagFilterCriteria <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-triggers-git-tag-filter-criteria.html>`__
"""

props: PropsDictType = {
"Excludes": ([str], False),
"Includes": ([str], False),
}


class GitPushFilter(AWSProperty):
"""
`GitPushFilter <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-triggers-git-push-filter.html>`__
"""

props: PropsDictType = {
"Tags": (GitTagFilterCriteria, False),
}


class GitConfiguration(AWSProperty):
"""
`GitConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-triggers-git-configuration.html>`__
"""

props: PropsDictType = {
"Push": ([GitPushFilter], False),
"SourceActionName": (str, True),
}


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

props: PropsDictType = {
"GitConfiguration": (GitConfiguration, False),
"ProviderType": (str, True),
}


class ActionTypeId(AWSProperty):
"""
`ActionTypeId <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stages-actions-actiontypeid.html>`__
Expand Down Expand Up @@ -188,6 +231,18 @@ class Stages(AWSProperty):
}


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

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


class Pipeline(AWSObject):
"""
`Pipeline <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codepipeline-pipeline.html>`__
Expand All @@ -200,10 +255,13 @@ class Pipeline(AWSObject):
"ArtifactStores": ([ArtifactStoreMap], False),
"DisableInboundStageTransitions": ([DisableInboundStageTransitions], False),
"Name": (str, False),
"PipelineType": (str, False),
"RestartExecutionOnUpdate": (boolean, False),
"RoleArn": (str, True),
"Stages": ([Stages], True),
"Tags": (Tags, False),
"Triggers": ([PipelineTriggerDeclaration], False),
"Variables": ([VariableDeclaration], False),
}


Expand Down
24 changes: 24 additions & 0 deletions troposphere/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,29 @@ class RecordingGroup(AWSProperty):
}


class RecordingModeOverride(AWSProperty):
"""
`RecordingModeOverride <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-configurationrecorder-recordingmodeoverride.html>`__
"""

props: PropsDictType = {
"Description": (str, False),
"RecordingFrequency": (str, True),
"ResourceTypes": ([str], True),
}


class RecordingMode(AWSProperty):
"""
`RecordingMode <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-configurationrecorder-recordingmode.html>`__
"""

props: PropsDictType = {
"RecordingFrequency": (str, True),
"RecordingModeOverrides": ([RecordingModeOverride], False),
}


class ConfigurationRecorder(AWSObject):
"""
`ConfigurationRecorder <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-configurationrecorder.html>`__
Expand All @@ -205,6 +228,7 @@ class ConfigurationRecorder(AWSObject):
props: PropsDictType = {
"Name": (str, False),
"RecordingGroup": (RecordingGroup, False),
"RecordingMode": (RecordingMode, False),
"RoleARN": (str, True),
}

Expand Down
Loading

0 comments on commit ba5b495

Please sign in to comment.