Skip to content

Commit fdc9d09

Browse files
committed
Auto-generate CertificateManager
1 parent 4355652 commit fdc9d09

File tree

2 files changed

+39
-10
lines changed

2 files changed

+39
-10
lines changed

troposphere/certificatemanager.py

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,64 @@
1-
# Copyright (c) 2012-2021, Mark Peek <mark@peek.org>
1+
# Copyright (c) 2012-2022, Mark Peek <mark@peek.org>
22
# All rights reserved.
33
#
44
# See LICENSE file for full license.
55
#
66
# *** Do not modify - this file is autogenerated ***
7-
# Resource specification version: 31.1.0
7+
# Resource specification version: 51.0.0
88

99

10-
from troposphere import Tags
11-
12-
from . import AWSObject, AWSProperty
10+
from . import AWSObject, AWSProperty, PropsDictType
1311
from .validators import integer
12+
from .validators.certificatemanager import validate_tags_or_list
1413

1514

1615
class ExpiryEventsConfiguration(AWSProperty):
17-
props = {
16+
"""
17+
`ExpiryEventsConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-certificatemanager-account-expiryeventsconfiguration.html>`__
18+
"""
19+
20+
props: PropsDictType = {
1821
"DaysBeforeExpiry": (integer, False),
1922
}
2023

2124

2225
class Account(AWSObject):
26+
"""
27+
`Account <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-certificatemanager-account.html>`__
28+
"""
29+
2330
resource_type = "AWS::CertificateManager::Account"
2431

25-
props = {
32+
props: PropsDictType = {
2633
"ExpiryEventsConfiguration": (ExpiryEventsConfiguration, True),
2734
}
2835

2936

3037
class DomainValidationOption(AWSProperty):
31-
props = {
38+
"""
39+
`DomainValidationOption <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-certificatemanager-certificate-domainvalidationoption.html>`__
40+
"""
41+
42+
props: PropsDictType = {
3243
"DomainName": (str, True),
3344
"HostedZoneId": (str, False),
3445
"ValidationDomain": (str, False),
3546
}
3647

3748

3849
class Certificate(AWSObject):
50+
"""
51+
`Certificate <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-certificatemanager-certificate.html>`__
52+
"""
53+
3954
resource_type = "AWS::CertificateManager::Certificate"
4055

41-
props = {
56+
props: PropsDictType = {
4257
"CertificateAuthorityArn": (str, False),
4358
"CertificateTransparencyLoggingPreference": (str, False),
4459
"DomainName": (str, True),
4560
"DomainValidationOptions": ([DomainValidationOption], False),
4661
"SubjectAlternativeNames": ([str], False),
47-
"Tags": ((Tags, list), False),
62+
"Tags": (validate_tags_or_list, False),
4863
"ValidationMethod": (str, False),
4964
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Copyright (c) 2012-2022, Mark Peek <mark@peek.org>
2+
# All rights reserved.
3+
#
4+
# See LICENSE file for full license.
5+
6+
7+
from . import tags_or_list
8+
9+
10+
def validate_tags_or_list(x):
11+
"""
12+
Property: Certificate.Tags
13+
"""
14+
return tags_or_list(x)

0 commit comments

Comments
 (0)