Skip to content

Commit

Permalink
Updates from spec version 156.0.0 (#2219)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Jan 29, 2024
1 parent 2401493 commit 6a2ab81
Show file tree
Hide file tree
Showing 8 changed files with 157 additions and 42 deletions.
1 change: 1 addition & 0 deletions troposphere/amazonmq.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ class User(AWSProperty):
"ConsoleAccess": (boolean, False),
"Groups": ([str], False),
"Password": (str, True),
"ReplicationUser": (boolean, False),
"Username": (str, True),
}

Expand Down
1 change: 1 addition & 0 deletions troposphere/backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class LifecycleResourceType(AWSProperty):
props: PropsDictType = {
"DeleteAfterDays": (double, False),
"MoveToColdStorageAfterDays": (double, False),
"OptInToArchiveForSupportedResources": (boolean, False),
}


Expand Down
41 changes: 29 additions & 12 deletions troposphere/codebuild.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,22 @@
)


class Fleet(AWSObject):
"""
`Fleet <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-fleet.html>`__
"""

resource_type = "AWS::CodeBuild::Fleet"

props: PropsDictType = {
"BaseCapacity": (integer, False),
"ComputeType": (str, False),
"EnvironmentType": (str, False),
"Name": (str, False),
"Tags": (Tags, False),
}


class Artifacts(AWSProperty):
"""
`Artifacts <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-artifacts.html>`__
Expand Down Expand Up @@ -61,6 +77,16 @@ def validate(self):
validate_environment_variable(self)


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

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


class RegistryCredential(AWSProperty):
"""
`RegistryCredential <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-registrycredential.html>`__
Expand All @@ -79,13 +105,14 @@ class Environment(AWSProperty):

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

def validate(self):
Expand Down Expand Up @@ -368,16 +395,6 @@ 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
83 changes: 60 additions & 23 deletions troposphere/connect.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,40 @@ class RoutingProfile(AWSObject):
}


class FieldIdentifier(AWSProperty):
"""
`FieldIdentifier <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-tasktemplate-fieldidentifier.html>`__
"""

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


class Field(AWSProperty):
"""
`Field <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-tasktemplate-field.html>`__
"""

props: PropsDictType = {
"Description": (str, False),
"Id": (FieldIdentifier, True),
"SingleSelectOptions": ([str], False),
"Type": (str, True),
}


class CreateCaseAction(AWSProperty):
"""
`CreateCaseAction <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-rule-createcaseaction.html>`__
"""

props: PropsDictType = {
"Fields": ([Field], True),
"TemplateId": (str, True),
}


class EventBridgeAction(AWSProperty):
"""
`EventBridgeAction <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-rule-eventbridgeaction.html>`__
Expand Down Expand Up @@ -491,16 +525,29 @@ class TaskAction(AWSProperty):
}


class UpdateCaseAction(AWSProperty):
"""
`UpdateCaseAction <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-rule-updatecaseaction.html>`__
"""

props: PropsDictType = {
"Fields": ([Field], True),
}


class Actions(AWSProperty):
"""
`Actions <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-rule-actions.html>`__
"""

props: PropsDictType = {
"AssignContactCategoryActions": (Tags, False),
"CreateCaseActions": ([CreateCaseAction], False),
"EndAssociatedTasksActions": (Tags, False),
"EventBridgeActions": ([EventBridgeAction], False),
"SendNotificationActions": ([SendNotificationAction], False),
"TaskActions": ([TaskAction], False),
"UpdateCaseActions": ([UpdateCaseAction], False),
}


Expand Down Expand Up @@ -564,16 +611,6 @@ class SecurityProfile(AWSObject):
}


class FieldIdentifier(AWSProperty):
"""
`FieldIdentifier <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-tasktemplate-fieldidentifier.html>`__
"""

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


class InvisibleFieldInfo(AWSProperty):
"""
`InvisibleFieldInfo <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-tasktemplate-invisiblefieldinfo.html>`__
Expand Down Expand Up @@ -627,19 +664,6 @@ class DefaultFieldValue(AWSProperty):
}


class Field(AWSProperty):
"""
`Field <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-tasktemplate-field.html>`__
"""

props: PropsDictType = {
"Description": (str, False),
"Id": (FieldIdentifier, True),
"SingleSelectOptions": ([str], False),
"Type": (str, True),
}


class TaskTemplate(AWSObject):
"""
`TaskTemplate <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-tasktemplate.html>`__
Expand Down Expand Up @@ -781,3 +805,16 @@ class ViewVersion(AWSObject):
"ViewArn": (str, True),
"ViewContentSha256": (str, False),
}


class FieldValue(AWSProperty):
"""
`FieldValue <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-rule-fieldvalue.html>`__
"""

props: PropsDictType = {
"BooleanValue": (boolean, False),
"DoubleValue": (double, False),
"EmptyValue": (dict, False),
"StringValue": (str, False),
}
2 changes: 1 addition & 1 deletion troposphere/elasticache.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ class Endpoint(AWSProperty):

props: PropsDictType = {
"Address": (str, False),
"Port": (integer, False),
"Port": (validate_network_port, False),
}


Expand Down
59 changes: 59 additions & 0 deletions troposphere/firehose.py
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,64 @@ class RedshiftDestinationConfiguration(AWSProperty):
}


class SnowflakeRetryOptions(AWSProperty):
"""
`SnowflakeRetryOptions <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-snowflakeretryoptions.html>`__
"""

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


class SnowflakeRoleConfiguration(AWSProperty):
"""
`SnowflakeRoleConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-snowflakeroleconfiguration.html>`__
"""

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


class SnowflakeVpcConfiguration(AWSProperty):
"""
`SnowflakeVpcConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-snowflakevpcconfiguration.html>`__
"""

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


class SnowflakeDestinationConfiguration(AWSProperty):
"""
`SnowflakeDestinationConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-snowflakedestinationconfiguration.html>`__
"""

props: PropsDictType = {
"AccountUrl": (str, True),
"CloudWatchLoggingOptions": (CloudWatchLoggingOptions, False),
"ContentColumnName": (str, False),
"DataLoadingOption": (str, False),
"Database": (str, True),
"KeyPassphrase": (str, False),
"MetaDataColumnName": (str, False),
"PrivateKey": (str, True),
"ProcessingConfiguration": (ProcessingConfiguration, False),
"RetryOptions": (SnowflakeRetryOptions, False),
"RoleARN": (str, True),
"S3BackupMode": (str, False),
"S3Configuration": (S3DestinationConfiguration, True),
"Schema": (str, True),
"SnowflakeRoleConfiguration": (SnowflakeRoleConfiguration, False),
"SnowflakeVpcConfiguration": (SnowflakeVpcConfiguration, False),
"Table": (str, True),
"User": (str, True),
}


class SplunkBufferingHints(AWSProperty):
"""
`SplunkBufferingHints <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-splunkbufferinghints.html>`__
Expand Down Expand Up @@ -643,6 +701,7 @@ class DeliveryStream(AWSObject):
"MSKSourceConfiguration": (MSKSourceConfiguration, False),
"RedshiftDestinationConfiguration": (RedshiftDestinationConfiguration, False),
"S3DestinationConfiguration": (S3DestinationConfiguration, False),
"SnowflakeDestinationConfiguration": (SnowflakeDestinationConfiguration, False),
"SplunkDestinationConfiguration": (SplunkDestinationConfiguration, False),
"Tags": (Tags, False),
}
11 changes: 5 additions & 6 deletions troposphere/guardduty.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ class FindingCriteria(AWSProperty):

props: PropsDictType = {
"Criterion": (dict, False),
"ItemType": (Condition, False),
}


Expand All @@ -165,12 +164,12 @@ class Filter(AWSObject):
resource_type = "AWS::GuardDuty::Filter"

props: PropsDictType = {
"Action": (str, True),
"Description": (str, True),
"DetectorId": (str, True),
"Action": (str, False),
"Description": (str, False),
"DetectorId": (str, False),
"FindingCriteria": (FindingCriteria, True),
"Name": (str, True),
"Rank": (integer, True),
"Name": (str, False),
"Rank": (integer, False),
"Tags": (Tags, False),
}

Expand Down
1 change: 1 addition & 0 deletions troposphere/route53resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class FirewallRule(AWSProperty):
"BlockResponse": (str, False),
"FirewallDomainListId": (str, True),
"Priority": (integer, True),
"Qtype": (str, False),
}


Expand Down

0 comments on commit 6a2ab81

Please sign in to comment.