10000 Updates from spec version 188.0.0 by github-actions[bot] · Pull Request #2278 · cloudtools/troposphere · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000

Updates from spec version 188.0.0 #2278

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions troposphere/accessanalyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,34 @@
from .validators import boolean, integer


class AnalysisRuleCriteria(AWSProperty):
"""
`AnalysisRuleCriteria <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-accessanalyzer-analyzer-analysisrulecriteria.html>`__
"""

props: PropsDictType = {
"AccountIds": ([str], False),
"ResourceTags": (dict, False),
}


class AnalysisRule(AWSProperty):
"""
`AnalysisRule <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-accessanalyzer-analyzer-analysisrule.html>`__
"""

props: PropsDictType = {
"Exclusions": ([AnalysisRuleCriteria], False),
}


class UnusedAccessConfiguration(AWSProperty):
"""
`UnusedAccessConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-accessanalyzer-analyzer-unusedaccessconfiguration.html>`__
"""

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

Expand Down
3 changes: 2 additions & 1 deletion troposphere/amazonmq.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ class User(AWSProperty):
props: PropsDictType = {
"ConsoleAccess": (boolean, False),
"Groups": ([str], False),
"JolokiaApiAccess": (str, False),
"Password": (str, True),
"ReplicationUser": (boolean, False),
"Username": (str, True),
Expand Down Expand Up @@ -130,7 +131,7 @@ class Configuration(AWSObject):

props: PropsDictType = {
"AuthenticationStrategy": (str, False),
"Data": (str, True),
"Data": (str, False),
"Description": (str, False),
"EngineType": (str, True),
"EngineVersion": (str, False),
Expand Down
47 changes: 47 additions & 0 deletions troposphere/apigateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,21 @@ class BasePathMapping(AWSObject):
}


class BasePathMappingV2(AWSObject):
"""
`BasePathMappingV2 <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-basepathmappingv2.html>`__
"""

resource_type = "AWS::ApiGateway::BasePathMappingV2"

props: PropsDictType = {
"BasePath": (str, False),
"DomainNameArn": (str, True),
"RestApiId": (str, True),
"Stage": (str, False),
}


class ClientCertificate(AWSObject):
"""
`ClientCertificate <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-clientcertificate.html>`__
Expand Down Expand Up @@ -279,6 +294,38 @@ class DomainName(AWSObject):
}


class DomainNameAccessAssociation(AWSObject):
"""
`DomainNameAccessAssociation <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-domainnameaccessassociation.html>`__
"""

resource_type = "AWS::ApiGateway::DomainNameAccessAssociation"

props: PropsDictType = {
"AccessAssociationSource": (str, True),
"AccessAssociationSourceType": (str, True),
"DomainNameArn": (str, True),
"Tags": (Tags, False),
}


class DomainNameV2(AWSObject):
"""
`DomainNameV2 <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-domainnamev2.html>`__
"""

resource_type = "AWS::ApiGateway::DomainNameV2"

props: PropsDictType = {
"CertificateArn": (str, False),
"DomainName": (str, False),
"EndpointConfiguration": (EndpointConfiguration, False),
"Policy": (dict, False),
"SecurityPolicy": (str, False),
"Tags": (Tags, False),
}


class GatewayResponse(AWSObject):
"""
`GatewayResponse <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-gatewayresponse.html>`__
Expand Down
2 changes: 2 additions & 0 deletions troposphere/appconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class ConfigurationProfile(AWSObject):

props: PropsDictType = {
"ApplicationId": (str, True),
"DeletionProtectionCheck": (str, False),
"Description": (str, False),
"KmsKeyIdentifier": (str, False),
"LocationUri": (str, True),
Expand Down Expand Up @@ -131,6 +132,7 @@ class Environment(AWSObject):

props: PropsDictType = {
"ApplicationId": (str, True),
"DeletionProtectionCheck": (str, False),
"Description": (str, False),
"Monitors": ([Monitor], False),
"Name": (str, True),
Expand Down
164 changes: 164 additions & 0 deletions troposphere/applicationautoscaling.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,166 @@ class ScalableTarget(AWSObject):
}


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

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


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

props: PropsDictType = {
"Dimensions": ([PredictiveScalingMetricDimension], False),
"MetricName": (str, False),
"Namespace": (str, False),
}


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

props: PropsDictType = {
"Metric": (PredictiveScalingMetric, False),
"Stat": (str, False),
"Unit": (str, False),
}


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

props: PropsDictType = {
"Expression": (str, False),
"Id": (str, False),
"Label": (str, False),
"MetricStat": (PredictiveScalingMetricStat, False),
"ReturnData": (boolean, False),
}


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

props: PropsDictType = {
"MetricDataQueries": ([PredictiveScalingMetricDataQuery], True),
}


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

props: PropsDictType = {
"MetricDataQueries": ([PredictiveScalingMetricDataQuery], True),
}


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

props: PropsDictType = {
"MetricDataQueries": ([PredictiveScalingMetricDataQuery], True),
}


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

props: PropsDictType = {
"PredefinedMetricType": (str, True),
"ResourceLabel": (str, False),
}


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

props: PropsDictType = {
"PredefinedMetricType": (str, True),
"ResourceLabel": (str, False),
}


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

props: PropsDictType = {
"PredefinedMetricType": (str, True),
"ResourceLabel": (str, False),
}


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

props: PropsDictType = {
"CustomizedCapacityMetricSpecification": (
PredictiveScalingCustomizedCapacityMetric,
False,
),
"CustomizedLoadMetricSpecification": (
PredictiveScalingCustomizedLoadMetric,
False,
),
"CustomizedScalingMetricSpecification": (
PredictiveScalingCustomizedScalingMetric,
False,
),
"PredefinedLoadMetricSpecification": (
PredictiveScalingPredefinedLoadMetric,
False,
),
"PredefinedMetricPairSpecification": (
PredictiveScalingPredefinedMetricPair,
False,
),
"PredefinedScalingMetricSpecification": (
PredictiveScalingPredefinedScalingMetric,
False,
),
"TargetValue": (double, True),
}


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

props: PropsDictType = {
"MaxCapacityBreachBehavior": (str, False),
"MaxCapacityBuffer": (integer, False),
"MetricSpecifications": ([PredictiveScalingMetricSpecification], True),
"Mode": (str, False),
"SchedulingBufferTime": (integer, False),
}


class StepAdjustment(AWSProperty):
"""
`StepAdjustment <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalingpolicy-stepadjustment.html>`__
Expand Down Expand Up @@ -204,6 +364,10 @@ class ScalingPolicy(AWSObject):
props: PropsDictType = {
"PolicyName": (str, True),
"PolicyType": (str, True),
"PredictiveScalingPolicyConfiguration": (
PredictiveScalingPolicyConfiguration,
False,
),
"ResourceId": (str, False),
"ScalableDimension": (str, False),
"ScalingTargetId": (str, False),
Expand Down
1 change: 1 addition & 0 deletions troposphere/applicationinsights.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,5 +249,6 @@ class Application(AWSObject):
"OpsCenterEnabled": (boolean, False),
"OpsItemSNSTopicArn": (str, False),
"ResourceGroupName": (str, True),
"SNSNotificationArn": (str, False),
"Tags": (Tags, False),
}
11 changes: 11 additions & 0 deletions troposphere/applicationsignals.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@
from .validators import boolean, double, integer


class BurnRateConfiguration(AWSProperty):
"""
`BurnRateConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-burnrateconfiguration.html>`__
"""

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


class CalendarInterval(AWSProperty):
"""
`CalendarInterval <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-calendarinterval.html>`__
Expand Down Expand Up @@ -178,6 +188,7 @@ class ServiceLevelObjective(AWSObject):
resource_type = "AWS::ApplicationSignals::ServiceLevelObjective"

props: PropsDictType = {
"BurnRateConfigurations": ([BurnRateConfiguration], False),
"Description": (str, False),
"Goal": (Goal, False),
"Name": (str, True),
Expand Down
Loading
0