|
1 | | -# Copyright (c) 2012-2021, Mark Peek <mark@peek.org> |
| 1 | +# Copyright (c) 2012-2022, Mark Peek <mark@peek.org> |
2 | 2 | # All rights reserved. |
3 | 3 | # |
4 | 4 | # See LICENSE file for full license. |
5 | 5 | # |
6 | 6 | # *** Do not modify - this file is autogenerated *** |
7 | | -# Resource specification version: 31.1.0 |
| 7 | +# Resource specification version: 51.0.0 |
8 | 8 |
|
9 | 9 |
|
10 | | -from troposphere import Tags |
11 | | - |
12 | | -from . import AWSObject, AWSProperty |
| 10 | +from . import AWSObject, AWSProperty, PropsDictType |
13 | 11 | from .validators import integer |
| 12 | +from .validators.certificatemanager import validate_tags_or_list |
14 | 13 |
|
15 | 14 |
|
16 | 15 | 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 = { |
18 | 21 | "DaysBeforeExpiry": (integer, False), |
19 | 22 | } |
20 | 23 |
|
21 | 24 |
|
22 | 25 | class Account(AWSObject): |
| 26 | + """ |
| 27 | + `Account <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-certificatemanager-account.html>`__ |
| 28 | + """ |
| 29 | + |
23 | 30 | resource_type = "AWS::CertificateManager::Account" |
24 | 31 |
|
25 | | - props = { |
| 32 | + props: PropsDictType = { |
26 | 33 | "ExpiryEventsConfiguration": (ExpiryEventsConfiguration, True), |
27 | 34 | } |
28 | 35 |
|
29 | 36 |
|
30 | 37 | 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 = { |
32 | 43 | "DomainName": (str, True), |
33 | 44 | "HostedZoneId": (str, False), |
34 | 45 | "ValidationDomain": (str, False), |
35 | 46 | } |
36 | 47 |
|
37 | 48 |
|
38 | 49 | class Certificate(AWSObject): |
| 50 | + """ |
| 51 | + `Certificate <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-certificatemanager-certificate.html>`__ |
| 52 | + """ |
| 53 | + |
39 | 54 | resource_type = "AWS::CertificateManager::Certificate" |
40 | 55 |
|
41 | | - props = { |
| 56 | + props: PropsDictType = { |
42 | 57 | "CertificateAuthorityArn": (str, False), |
43 | 58 | "CertificateTransparencyLoggingPreference": (str, False), |
44 | 59 | "DomainName": (str, True), |
45 | 60 | "DomainValidationOptions": ([DomainValidationOption], False), |
46 | 61 | "SubjectAlternativeNames": ([str], False), |
47 | | - "Tags": ((Tags, list), False), |
| 62 | + "Tags": (validate_tags_or_list, False), |
48 | 63 | "ValidationMethod": (str, False), |
49 | 64 | } |
0 commit comments