Skip to content

Commit

Permalink
Updates from spec version 172.0.0 (#2241)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored May 8, 2024
1 parent bee4c08 commit d8a7b95
Show file tree
Hide file tree
Showing 6 changed files with 131 additions and 6 deletions.
6 changes: 3 additions & 3 deletions troposphere/acmpca.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class EdiPartyName(AWSProperty):
"""

props: PropsDictType = {
"NameAssigner": (str, True),
"NameAssigner": (str, False),
"PartyName": (str, True),
}

Expand Down Expand Up @@ -271,7 +271,7 @@ class CrlConfiguration(AWSProperty):
False,
),
"CustomCname": (str, False),
"Enabled": (boolean, False),
"Enabled": (boolean, True),
"ExpirationInDays": (integer, False),
"S3BucketName": (str, False),
"S3ObjectAcl": (str, False),
Expand All @@ -284,7 +284,7 @@ class OcspConfiguration(AWSProperty):
"""

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

Expand Down
2 changes: 2 additions & 0 deletions troposphere/bedrock.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ class S3DataSourceConfiguration(AWSProperty):

props: PropsDictType = {
"BucketArn": (str, True),
"BucketOwnerAccountId": (str, False),
"InclusionPrefixes": ([str], False),
}

Expand Down Expand Up @@ -233,6 +234,7 @@ class DataSource(AWSObject):
resource_type = "AWS::Bedrock::DataSource"

props: PropsDictType = {
"DataDeletionPolicy": (str, False),
"DataSourceConfiguration": (DataSourceConfiguration, True),
"Description": (str, False),
"KnowledgeBaseId": (str, True),
Expand Down
37 changes: 37 additions & 0 deletions troposphere/dynamodb.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,16 @@ class Projection(AWSProperty):
}


class WriteOnDemandThroughputSettings(AWSProperty):
"""
`WriteOnDemandThroughputSettings <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-writeondemandthroughputsettings.html>`__
"""

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


class TargetTrackingScalingPolicyConfiguration(AWSProperty):
"""
`TargetTrackingScalingPolicyConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-targettrackingscalingpolicyconfiguration.html>`__
Expand Down Expand Up @@ -99,6 +109,7 @@ class GlobalTableGlobalSecondaryIndex(AWSProperty):
"IndexName": (str, True),
"KeySchema": ([KeySchema], True),
"Projection": (Projection, True),
"WriteOnDemandThroughputSettings": (WriteOnDemandThroughputSettings, False),
"WriteProvisionedThroughputSettings": (
WriteProvisionedThroughputSettings,
False,
Expand Down Expand Up @@ -160,6 +171,16 @@ class PointInTimeRecoverySpecification(AWSProperty):
}


class ReadOnDemandThroughputSettings(AWSProperty):
"""
`ReadOnDemandThroughputSettings <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-readondemandthroughputsettings.html>`__
"""

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


class ReadProvisionedThroughputSettings(AWSProperty):
"""
`ReadProvisionedThroughputSettings <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-readprovisionedthroughputsettings.html>`__
Expand All @@ -179,6 +200,7 @@ class ReplicaGlobalSecondaryIndexSpecification(AWSProperty):
props: PropsDictType = {
"ContributorInsightsSpecification": (ContributorInsightsSpecification, False),
"IndexName": (str, True),
"ReadOnDemandThroughputSettings": (ReadOnDemandThroughputSettings, False),
"ReadProvisionedThroughputSettings": (ReadProvisionedThroughputSettings, False),
}

Expand Down Expand Up @@ -224,6 +246,7 @@ class ReplicaSpecification(AWSProperty):
"GlobalSecondaryIndexes": ([ReplicaGlobalSecondaryIndexSpecification], False),
"KinesisStreamSpecification": (KinesisStreamSpecification, False),
"PointInTimeRecoverySpecification": (PointInTimeRecoverySpecification, False),
"ReadOnDemandThroughputSettings": (ReadOnDemandThroughputSettings, False),
"ReadProvisionedThroughputSettings": (ReadProvisionedThroughputSettings, False),
"Region": (str, True),
"ReplicaStreamSpecification": (ReplicaStreamSpecification, False),
Expand Down Expand Up @@ -274,13 +297,25 @@ class GlobalTable(AWSObject):
"StreamSpecification": (StreamSpecification, False),
"TableName": (str, False),
"TimeToLiveSpecification": (TimeToLiveSpecification, False),
"WriteOnDemandThroughputSettings": (WriteOnDemandThroughputSettings, False),
"WriteProvisionedThroughputSettings": (
WriteProvisionedThroughputSettings,
False,
),
}


class OnDemandThroughput(AWSProperty):
"""
`OnDemandThroughput <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-ondemandthroughput.html>`__
"""

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


class ProvisionedThroughput(AWSProperty):
"""
`ProvisionedThroughput <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-provisionedthroughput.html>`__
Expand All @@ -301,6 +336,7 @@ class GlobalSecondaryIndex(AWSProperty):
"ContributorInsightsSpecification": (ContributorInsightsSpecification, False),
"IndexName": (str, True),
"KeySchema": ([KeySchema], True),
"OnDemandThroughput": (OnDemandThroughput, False),
"Projection": (Projection, True),
"ProvisionedThroughput": (ProvisionedThroughput, False),
}
Expand Down Expand Up @@ -381,6 +417,7 @@ class Table(AWSObject):
"KeySchema": ([KeySchema], True),
"KinesisStreamSpecification": (KinesisStreamSpecification, False),
"LocalSecondaryIndexes": ([LocalSecondaryIndex], False),
"OnDemandThroughput": (OnDemandThroughput, False),
"PointInTimeRecoverySpecification": (PointInTimeRecoverySpecification, False),
"ProvisionedThroughput": (ProvisionedThroughput, False),
"ResourcePolicy": (ResourcePolicy, False),
Expand Down
64 changes: 63 additions & 1 deletion troposphere/fms.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


from . import AWSObject, AWSProperty, PropsDictType, Tags
from .validators import boolean
from .validators import boolean, integer
from .validators.fms import validate_json_checker


Expand Down Expand Up @@ -35,6 +35,67 @@ class IEMap(AWSProperty):
}


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

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


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

props: PropsDictType = {
"From": (integer, True),
"To": (integer, True),
}


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

props: PropsDictType = {
"CidrBlock": (str, False),
"Egress": (boolean, True),
"IcmpTypeCode": (IcmpTypeCode, False),
"Ipv6CidrBlock": (str, False),
"PortRange": (PortRange, False),
"Protocol": (str, True),
"RuleAction": (str, True),
}


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

props: PropsDictType = {
"FirstEntries": ([NetworkAclEntry], False),
"ForceRemediateForFirstEntries": (boolean, True),
"ForceRemediateForLastEntries": (boolean, True),
"LastEntries": ([NetworkAclEntry], False),
}


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

props: PropsDictType = {
"NetworkAclEntrySet": (NetworkAclEntrySet, True),
}


class NetworkFirewallPolicy(AWSProperty):
"""
`NetworkFirewallPolicy <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fms-policy-networkfirewallpolicy.html>`__
Expand All @@ -61,6 +122,7 @@ class PolicyOption(AWSProperty):
"""

props: PropsDictType = {
"NetworkAclCommonPolicy": (NetworkAclCommonPolicy, False),
"NetworkFirewallPolicy": (NetworkFirewallPolicy, False),
"ThirdPartyFirewallPolicy": (ThirdPartyFirewallPolicy, False),
}
Expand Down
23 changes: 23 additions & 0 deletions troposphere/quicksight.py
Original file line number Diff line number Diff line change
Expand Up @@ -5593,6 +5593,28 @@ class TreeMapVisual(AWSProperty):
}


class WaterfallChartGroupColorConfiguration(AWSProperty):
"""
`WaterfallChartGroupColorConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-waterfallchartgroupcolorconfiguration.html>`__
"""

props: PropsDictType = {
"NegativeBarColor": (str, False),
"PositiveBarColor": (str, False),
"TotalBarColor": (str, False),
}


class WaterfallChartColorConfiguration(AWSProperty):
"""
`WaterfallChartColorConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-waterfallchartcolorconfiguration.html>`__
"""

props: PropsDictType = {
"GroupColorConfiguration": (WaterfallChartGroupColorConfiguration, False),
}


class WaterfallChartAggregatedFieldWells(AWSProperty):
"""
`WaterfallChartAggregatedFieldWells <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-waterfallchartaggregatedfieldwells.html>`__
Expand Down Expand Up @@ -5647,6 +5669,7 @@ class WaterfallChartConfiguration(AWSProperty):
props: PropsDictType = {
"CategoryAxisDisplayOptions": (AxisDisplayOptions, False),
"CategoryAxisLabelOptions": (ChartAxisLabelOptions, False),
"ColorConfiguration": (WaterfallChartColorConfiguration, False),
"DataLabels": (DataLabelOptions, False),
"FieldWells": (WaterfallChartFieldWells, False),
"Legend": (LegendOptions, False),
Expand Down
5 changes: 3 additions & 2 deletions troposphere/transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ class Connector(AWSObject):
"AccessRole": (str, True),
"As2Config": (As2Config, False),
"LoggingRole": (str, False),
"SecurityPolicyName": (str, False),
"SftpConfig": (SftpConfig, False),
"Tags": (Tags, False),
"Url": (str, True),
Expand Down Expand Up @@ -330,11 +331,11 @@ class DecryptStepDetails(AWSProperty):
"""

props: PropsDictType = {
"DestinationFileLocation": (InputFileLocation, False),
"DestinationFileLocation": (InputFileLocation, True),
"Name": (str, False),
"OverwriteExisting": (str, False),
"SourceFileLocation": (str, False),
"Type": (str, False),
"Type": (str, True),
}


Expand Down

0 comments on commit d8a7b95

Please sign in to comment.