Skip to content

Commit

Permalink
Updates from spec version 144.0.0 (#2193)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Oct 14, 2023
1 parent e85da69 commit f46a796
Show file tree
Hide file tree
Showing 8 changed files with 130 additions and 14 deletions.
1 change: 1 addition & 0 deletions troposphere/awslambda.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,7 @@ class VPCConfig(AWSProperty):
"""

props: PropsDictType = {
"Ipv6AllowedForDualStack": (boolean, False),
"SecurityGroupIds": ([str], False),
"SubnetIds": ([str], False),
}
Expand Down
15 changes: 14 additions & 1 deletion troposphere/connectcampaigns.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,24 @@
from .validators import boolean, double


class AgentlessDialerConfig(AWSProperty):
"""
`AgentlessDialerConfig <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connectcampaigns-campaign-agentlessdialerconfig.html>`__
"""

props: PropsDictType = {
"DialingCapacity": (double, False),
}


class PredictiveDialerConfig(AWSProperty):
"""
`PredictiveDialerConfig <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connectcampaigns-campaign-predictivedialerconfig.html>`__
"""

props: PropsDictType = {
"BandwidthAllocation": (double, True),
"DialingCapacity": (double, False),
}


Expand All @@ -27,6 +38,7 @@ class ProgressiveDialerConfig(AWSProperty):

props: PropsDictType = {
"BandwidthAllocation": (double, True),
"DialingCapacity": (double, False),
}


Expand All @@ -36,6 +48,7 @@ class DialerConfig(AWSProperty):
"""

props: PropsDictType = {
"AgentlessDialerConfig": (AgentlessDialerConfig, False),
"PredictiveDialerConfig": (PredictiveDialerConfig, False),
"ProgressiveDialerConfig": (ProgressiveDialerConfig, False),
}
Expand All @@ -59,7 +72,7 @@ class OutboundCallConfig(AWSProperty):
props: PropsDictType = {
"AnswerMachineDetectionConfig": (AnswerMachineDetectionConfig, False),
"ConnectContactFlowArn": (str, True),
"ConnectQueueArn": (str, True),
"ConnectQueueArn": (str, False),
"ConnectSourcePhoneNumber": (str, False),
}

Expand Down
2 changes: 1 addition & 1 deletion troposphere/elasticloadbalancingv2.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ class ListenerRule(AWSObject):

class LoadBalancerAttributes(AWSProperty):
"""
`LoadBalancerAttributes <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-loadbalancer-loadbalancerattributes.html>`__
`LoadBalancerAttributes <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-loadbalancer-loadbalancerattribute.html>`__
"""

props: PropsDictType = {
Expand Down
12 changes: 11 additions & 1 deletion troposphere/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,6 @@ class EventBus(AWSObject):
props: PropsDictType = {
"EventSourceName": (str, False),
"Name": (str, True),
"Policy": (dict, False),
"Tags": (Tags, False),
}

Expand Down Expand Up @@ -539,3 +538,14 @@ class Rule(AWSObject):
"Tags": (Tags, False),
"Targets": ([Target], False),
}


class TagEntry(AWSProperty):
"""
`TagEntry <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-eventbus-tagentry.html>`__
"""

props: PropsDictType = {
"Key": (str, True),
"Value": (str, True),
}
30 changes: 30 additions & 0 deletions troposphere/iot.py
Original file line number Diff line number Diff line change
Expand Up @@ -749,6 +749,36 @@ class SecurityProfile(AWSObject):
}


class SoftwarePackage(AWSObject):
"""
`SoftwarePackage <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-softwarepackage.html>`__
"""

resource_type = "AWS::IoT::SoftwarePackage"

props: PropsDictType = {
"Description": (str, False),
"PackageName": (str, False),
"Tags": (Tags, False),
}


class SoftwarePackageVersion(AWSObject):
"""
`SoftwarePackageVersion <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-softwarepackageversion.html>`__
"""

resource_type = "AWS::IoT::SoftwarePackageVersion"

props: PropsDictType = {
"Attributes": (dict, False),
"Description": (str, False),
"PackageName": (str, True),
"Tags": (Tags, False),
"VersionName": (str, False),
}


class AttributePayload(AWSProperty):
"""
`AttributePayload <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-thinggroup-attributepayload.html>`__
Expand Down
2 changes: 2 additions & 0 deletions troposphere/networkmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,9 @@ class GlobalNetwork(AWSObject):
resource_type = "AWS::NetworkManager::GlobalNetwork"

props: PropsDictType = {
"CreatedAt": (str, False),
"Description": (str, False),
"State": (str, False),
"Tags": (Tags, False),
}

Expand Down
70 changes: 70 additions & 0 deletions troposphere/quicksight.py
Original file line number Diff line number Diff line change
Expand Up @@ -3889,6 +3889,28 @@ class InsightVisual(AWSProperty):
}


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

props: PropsDictType = {
"Icon": (ConditionalFormattingIcon, False),
"TextColor": (ConditionalFormattingColor, False),
}


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

props: PropsDictType = {
"Icon": (ConditionalFormattingIcon, False),
"TextColor": (ConditionalFormattingColor, False),
}


class KPIPrimaryValueConditionalFormatting(AWSProperty):
"""
`KPIPrimaryValueConditionalFormatting <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-kpiprimaryvalueconditionalformatting.html>`__
Expand Down Expand Up @@ -3916,6 +3938,8 @@ class KPIConditionalFormattingOption(AWSProperty):
"""

props: PropsDictType = {
"ActualValue": (KPIActualValueConditionalFormatting, False),
"ComparisonValue": (KPIComparisonValueConditionalFormatting, False),
"PrimaryValue": (KPIPrimaryValueConditionalFormatting, False),
"ProgressBar": (KPIProgressBarConditionalFormatting, False),
}
Expand Down Expand Up @@ -3943,6 +3967,39 @@ class KPIFieldWells(AWSProperty):
}


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

props: PropsDictType = {
"Color": (str, False),
"TooltipVisibility": (str, False),
"Type": (str, True),
"Visibility": (str, False),
}


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

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


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

props: PropsDictType = {
"StandardLayout": (KPIVisualStandardLayout, False),
}


class ProgressBarOptions(AWSProperty):
"""
`ProgressBarOptions <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-progressbaroptions.html>`__
Expand Down Expand Up @@ -3985,7 +4042,9 @@ class KPIOptions(AWSProperty):
"ProgressBar": (ProgressBarOptions, False),
"SecondaryValue": (SecondaryValueOptions, False),
"SecondaryValueFontConfiguration": (FontConfiguration, False),
"Sparkline": (KPISparklineOptions, False),
"TrendArrows": (TrendArrowOptions, False),
"VisualLayoutOptions": (KPIVisualLayoutOptions, False),
}


Expand Down Expand Up @@ -5122,13 +5181,24 @@ class TableFieldOption(AWSProperty):
}


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

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


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

props: PropsDictType = {
"Order": ([str], False),
"PinnedFieldOptions": (TablePinnedFieldOptions, False),
"SelectedFieldOptions": ([TableFieldOption], False),
}

Expand Down
12 changes: 1 addition & 11 deletions troposphere/s3objectlambda.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,21 +87,11 @@ class Alias(AWSProperty):
"""

props: PropsDictType = {
"Status": (str, True),
"Status": (str, False),
"Value": (str, True),
}


class PolicyStatus(AWSProperty):
"""
`PolicyStatus <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3objectlambda-accesspoint-policystatus.html>`__
"""

props: PropsDictType = {
"IsPublic": (boolean, False),
}


class PublicAccessBlockConfiguration(AWSProperty):
"""
`PublicAccessBlockConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3objectlambda-accesspoint-publicaccessblockconfiguration.html>`__
Expand Down

0 comments on commit f46a796

Please sign in to comment.