Skip to content
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

Updates from spec version 162.0.0 #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
23 changes: 22 additions & 1 deletion troposphere/accessanalyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,27 @@


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


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

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


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

props: PropsDictType = {
"UnusedAccessConfiguration": (UnusedAccessConfiguration, False),
}


class Filter(AWSProperty):
Expand Down Expand Up @@ -43,6 +63,7 @@ class Analyzer(AWSObject):
resource_type = "AWS::AccessAnalyzer::Analyzer"

props: PropsDictType = {
"AnalyzerConfiguration": (AnalyzerConfiguration, False),
"AnalyzerName": (str, False),
"ArchiveRules": ([ArchiveRule], False),
"Tags": (Tags, False),
Expand Down
20 changes: 17 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 @@ -250,14 +250,28 @@ class CsrExtensions(AWSProperty):
}


class CrlDistributionPointExtensionConfiguration(AWSProperty):
"""
`CrlDistributionPointExtensionConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-acmpca-certificateauthority-crldistributionpointextensionconfiguration.html>`__
"""

props: PropsDictType = {
"OmitExtension": (boolean, True),
}


class CrlConfiguration(AWSProperty):
"""
`CrlConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-acmpca-certificateauthority-crlconfiguration.html>`__
"""

props: PropsDictType = {
"CrlDistributionPointExtensionConfiguration": (
CrlDistributionPointExtensionConfiguration,
False,
),
"CustomCname": (str, False),
"Enabled": (boolean, False),
"Enabled": (boolean, True),
"ExpirationInDays": (integer, False),
"S3BucketName": (str, False),
"S3ObjectAcl": (str, False),
Expand All @@ -270,7 +284,7 @@ class OcspConfiguration(AWSProperty):
"""

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

Expand Down
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
24 changes: 24 additions & 0 deletions troposphere/amplify.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,17 @@ class Branch(AWSObject):
}


class CertificateSettings(AWSProperty):
"""
`CertificateSettings <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplify-domain-certificatesettings.html>`__
"""

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


class SubDomainSetting(AWSProperty):
"""
`SubDomainSetting <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplify-domain-subdomainsetting.html>`__
Expand All @@ -149,7 +160,20 @@ class Domain(AWSObject):
"AppId": (str, True),
"AutoSubDomainCreationPatterns": ([str], False),
"AutoSubDomainIAMRole": (str, False),
"CertificateSettings": (CertificateSettings, False),
"DomainName": (str, True),
"EnableAutoSubDomain": (boolean, False),
"SubDomainSettings": ([SubDomainSetting], True),
}


class Certificate(AWSProperty):
"""
`Certificate <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplify-domain-certificate.html>`__
"""

props: PropsDictType = {
"CertificateArn": (str, False),
"CertificateType": (str, False),
"CertificateVerificationDNSRecord": (str, False),
}
8 changes: 4 additions & 4 deletions troposphere/apigateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ class GatewayResponse(AWSObject):

class IntegrationResponse(AWSProperty):
"""
`IntegrationResponse <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-method-integration-integrationresponse.html>`__
`IntegrationResponse <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-method-integrationresponse.html>`__
"""

props: PropsDictType = {
Expand All @@ -311,7 +311,7 @@ class IntegrationResponse(AWSProperty):

class Integration(AWSProperty):
"""
`Integration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-method-integration.html>`__
`Integration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-method-integration.html>`__
"""

props: PropsDictType = {
Expand All @@ -327,14 +327,14 @@ class Integration(AWSProperty):
"RequestParameters": (dict, False),
"RequestTemplates": (dict, False),
"TimeoutInMillis": (validate_timeout_in_millis, False),
"Type": (str, False),
"Type": (str, True),
"Uri": (str, False),
}


class MethodResponse(AWSProperty):
"""
`MethodResponse <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-method-methodresponse.html>`__
`MethodResponse <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-method-methodresponse.html>`__
"""

props: PropsDictType = {
Expand Down
24 changes: 19 additions & 5 deletions troposphere/appconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,18 @@ class ConfigurationProfile(AWSObject):
}


class DynamicExtensionParameters(AWSProperty):
"""
`DynamicExtensionParameters <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appconfig-deployment-dynamicextensionparameters.html>`__
"""

props: PropsDictType = {
"ExtensionReference": (str, False),
"ParameterName": (str, False),
"ParameterValue": (str, False),
}


class Deployment(AWSObject):
"""
`Deployment <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appconfig-deployment.html>`__
Expand All @@ -73,6 +85,7 @@ class Deployment(AWSObject):
"ConfigurationVersion": (str, True),
"DeploymentStrategyId": (str, True),
"Description": (str, False),
"DynamicExtensionParameters": ([DynamicExtensionParameters], False),
"EnvironmentId": (str, True),
"KmsKeyIdentifier": (str, False),
"Tags": (Tags, False),
Expand All @@ -98,13 +111,13 @@ class DeploymentStrategy(AWSObject):
}


class Monitors(AWSProperty):
class Monitor(AWSProperty):
"""
`Monitors <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appconfig-environment-monitors.html>`__
`Monitor <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appconfig-environment-monitor.html>`__
"""

props: PropsDictType = {
"AlarmArn": (str, False),
"AlarmArn": (str, True),
"AlarmRoleArn": (str, False),
}

Expand All @@ -119,7 +132,7 @@ class Environment(AWSObject):
props: PropsDictType = {
"ApplicationId": (str, True),
"Description": (str, False),
"Monitors": ([Monitors], False),
"Monitors": ([Monitor], False),
"Name": (str, True),
"Tags": (Tags, False),
}
Expand All @@ -132,6 +145,7 @@ class Parameter(AWSProperty):

props: PropsDictType = {
"Description": (str, False),
"Dynamic": (boolean, False),
"Required": (boolean, True),
}

Expand Down Expand Up @@ -182,6 +196,6 @@ class HostedConfigurationVersion(AWSObject):
"Content": (str, True),
"ContentType": (str, True),
"Description": (str, False),
"LatestVersionNumber": (double, False),
"LatestVersionNumber": (integer, False),
"VersionLabel": (str, False),
}
38 changes: 38 additions & 0 deletions troposphere/appintegrations.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,44 @@
from . import AWSObject, AWSProperty, PropsDictType, Tags


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

props: PropsDictType = {
"AccessUrl": (str, True),
"ApprovedOrigins": ([str], False),
}


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

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


class Application(AWSObject):
"""
`Application <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appintegrations-application.html>`__
"""

resource_type = "AWS::AppIntegrations::Application"

props: PropsDictType = {
"ApplicationSourceConfig": (ApplicationSourceConfig, True),
"Description": (str, True),
"Name": (str, True),
"Namespace": (str, False),
"Permissions": ([str], False),
"Tags": (Tags, False),
}


class FileConfiguration(AWSProperty):
"""
`FileConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appintegrations-dataintegration-fileconfiguration.html>`__
Expand Down
58 changes: 54 additions & 4 deletions troposphere/applicationautoscaling.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class ScalableTarget(AWSObject):

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

props: PropsDictType = {
Expand Down Expand Up @@ -104,16 +104,66 @@ class MetricDimension(AWSProperty):
}


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

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


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

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


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

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


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

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


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

props: PropsDictType = {
"Dimensions": ([MetricDimension], False),
"MetricName": (str, True),
"Namespace": (str, True),
"Statistic": (str, True),
"MetricName": (str, False),
"Metrics": ([TargetTrackingMetricDataQuery], False),
"Namespace": (str, False),
"Statistic": (str, False),
"Unit": (str, False),
}

Expand Down
Loading