Skip to content

Commit

Permalink
Updates from spec version 148.0.0 (#2202)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Nov 10, 2023
1 parent c57400a commit 6a6e26e
Show file tree
Hide file tree
Showing 15 changed files with 370 additions and 13 deletions.
1 change: 1 addition & 0 deletions troposphere/apprunner.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ class NetworkConfiguration(AWSProperty):
props: PropsDictType = {
"EgressConfiguration": (EgressConfiguration, False),
"IngressConfiguration": (IngressConfiguration, False),
"IpAddressType": (str, False),
}


Expand Down
1 change: 1 addition & 0 deletions troposphere/appstream.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,7 @@ class UserSetting(AWSProperty):

props: PropsDictType = {
"Action": (str, True),
"MaximumLength": (integer, False),
"Permission": (str, True),
}

Expand Down
14 changes: 12 additions & 2 deletions troposphere/codebuild.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,13 @@ class Environment(AWSProperty):

props: PropsDictType = {
"Certificate": (str, False),
"ComputeType": (str, True),
"ComputeType": (str, False),
"EnvironmentVariables": (validate_environmentvariable_or_list, False),
"Image": (str, True),
"ImagePullCredentialsType": (validate_image_pull_credentials, False),
"PrivilegedMode": (boolean, False),
"RegistryCredential": (RegistryCredential, False),
"Type": (str, True),
"Type": (str, False),
}

def validate(self):
Expand Down Expand Up @@ -368,6 +368,16 @@ class SourceCredential(AWSObject):
}


class ProjectFleet(AWSProperty):
"""
`ProjectFleet <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projectfleet.html>`__
"""

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


class WebhookFilter(AWSProperty):
"""
`WebhookFilter <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-webhookfilter.html>`__
Expand Down
16 changes: 16 additions & 0 deletions troposphere/dlm.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,21 @@ class ArchiveRule(AWSProperty):
}


class Script(AWSProperty):
"""
`Script <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-script.html>`__
"""

props: PropsDictType = {
"ExecuteOperationOnScriptFailure": (boolean, False),
"ExecutionHandler": (str, False),
"ExecutionHandlerService": (str, False),
"ExecutionTimeout": (integer, False),
"MaximumRetryCount": (integer, False),
"Stages": ([str], False),
}


class CreateRule(AWSProperty):
"""
`CreateRule <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-createrule.html>`__
Expand All @@ -138,6 +153,7 @@ class CreateRule(AWSProperty):
"Interval": (validate_interval, False),
"IntervalUnit": (validate_interval_unit, False),
"Location": (str, False),
"Scripts": ([Script], False),
"Times": ([str], False),
}

Expand Down
5 changes: 4 additions & 1 deletion troposphere/ec2.py
Original file line number Diff line number Diff line change
Expand Up @@ -738,6 +738,7 @@ class IPAM(AWSObject):
"Description": (str, False),
"OperatingRegions": ([IpamOperatingRegion], False),
"Tags": (Tags, False),
"Tier": (str, False),
}


Expand Down Expand Up @@ -2282,8 +2283,10 @@ class Subnet(AWSObject):
"AvailabilityZoneId": (str, False),
"CidrBlock": (str, False),
"EnableDns64": (boolean, False),
"Ipv4NetmaskLength": (integer, False),
"Ipv6CidrBlock": (str, False),
"Ipv6Native": (boolean, False),
"Ipv6NetmaskLength": (integer, False),
"MapPublicIpOnLaunch": (boolean, False),
"OutpostArn": (str, False),
"PrivateDnsNameOptionsOnLaunch": (PrivateDnsNameOptionsOnLaunch, False),
Expand Down Expand Up @@ -2762,7 +2765,7 @@ class VPCEndpointServicePermissions(AWSObject):

class VPCGatewayAttachment(AWSObject):
"""
`VPCGatewayAttachment <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpc-gateway-attachment.html>`__
`VPCGatewayAttachment <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcgatewayattachment.html>`__
"""

resource_type = "AWS::EC2::VPCGatewayAttachment"
Expand Down
50 changes: 50 additions & 0 deletions troposphere/emrserverless.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,18 @@ class AutoStopConfiguration(AWSProperty):
}


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

props: PropsDictType = {
"Classification": (str, True),
"Configurations": ([ConfigurationObject], False),
"Properties": (dict, False),
}


class ImageConfigurationInput(AWSProperty):
"""
`ImageConfigurationInput <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-imageconfigurationinput.html>`__
Expand Down Expand Up @@ -87,6 +99,42 @@ class MaximumAllowedResources(AWSProperty):
}


class ManagedPersistenceMonitoringConfiguration(AWSProperty):
"""
`ManagedPersistenceMonitoringConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-managedpersistencemonitoringconfiguration.html>`__
"""

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


class S3MonitoringConfiguration(AWSProperty):
"""
`S3MonitoringConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-s3monitoringconfiguration.html>`__
"""

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


class MonitoringConfiguration(AWSProperty):
"""
`MonitoringConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-monitoringconfiguration.html>`__
"""

props: PropsDictType = {
"ManagedPersistenceMonitoringConfiguration": (
ManagedPersistenceMonitoringConfiguration,
False,
),
"S3MonitoringConfiguration": (S3MonitoringConfiguration, False),
}


class NetworkConfiguration(AWSProperty):
"""
`NetworkConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-networkconfiguration.html>`__
Expand Down Expand Up @@ -122,9 +170,11 @@ class Application(AWSObject):
"ImageConfiguration": (ImageConfigurationInput, False),
"InitialCapacity": ([InitialCapacityConfigKeyValuePair], False),
"MaximumCapacity": (MaximumAllowedResources, False),
"MonitoringConfiguration": (MonitoringConfiguration, False),
"Name": (str, False),
"NetworkConfiguration": (NetworkConfiguration, False),
"ReleaseLabel": (str, True),
"RuntimeConfiguration": ([ConfigurationObject], False),
"Tags": (Tags, False),
"Type": (str, True),
"WorkerTypeSpecifications": (dict, False),
Expand Down
33 changes: 33 additions & 0 deletions troposphere/gamelift.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,37 @@ class RuntimeConfiguration(AWSProperty):
}


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

props: PropsDictType = {
"TargetValue": (double, True),
}


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

props: PropsDictType = {
"ComparisonOperator": (str, False),
"EvaluationPeriods": (integer, False),
"Location": (str, False),
"MetricName": (str, True),
"Name": (str, True),
"PolicyType": (str, False),
"ScalingAdjustment": (integer, False),
"ScalingAdjustmentType": (str, False),
"Status": (str, False),
"TargetConfiguration": (TargetConfiguration, False),
"Threshold": (double, False),
"UpdateStatus": (str, False),
}


class Fleet(AWSObject):
"""
`Fleet <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-fleet.html>`__
Expand All @@ -165,6 +196,7 @@ class Fleet(AWSObject):

props: PropsDictType = {
"AnywhereConfiguration": (AnywhereConfiguration, False),
"ApplyCapacity": (str, False),
"BuildId": (str, False),
"CertificateConfiguration": (CertificateConfiguration, False),
"ComputeType": (str, False),
Expand All @@ -185,6 +217,7 @@ class Fleet(AWSObject):
"PeerVpcId": (str, False),
"ResourceCreationLimitPolicy": (ResourceCreationLimitPolicy, False),
"RuntimeConfiguration": (RuntimeConfiguration, False),
"ScalingPolicies": ([ScalingPolicy], False),
"ScriptId": (str, False),
}

Expand Down
4 changes: 2 additions & 2 deletions troposphere/iam.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class AccessKey(AWSObject):

class Policy(AWSProperty):
"""
`Policy <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-policy.html>`__
`Policy <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-user-policy.html>`__
"""

props: PropsDictType = {
Expand Down Expand Up @@ -230,7 +230,7 @@ class LoginProfile(AWSProperty):

class User(AWSObject):
"""
`User <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-user.html>`__
`User <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-user.html>`__
"""

resource_type = "AWS::IAM::User"
Expand Down
Loading

0 comments on commit 6a6e26e

Please sign in to comment.