Skip to content

Commit bc75922

Browse files
authored
feat(schema): CloudFormation Updates (2020-02-13) (awslabs#266)
Updated the following AWS CloudFormation resources: - AWS::WAFv2::WebACLAssociation - AWS::EC2::ClientVpnEndpoint - AWS::AppConfig::ConfigurationProfile - AWS::AppSync::GraphQLApi - AWS::AppConfig::Deployment - AWS::AppConfig::Environment - AWS::ACMPCA::Certificate - AWS::ACMPCA::CertificateAuthority - AWS::AppConfig::DeploymentStrategy - AWS::AppConfig::Application - AWS::OpsWorksCM::Server - AWS::ACMPCA::CertificateAuthority.RevocationConfiguration - AWS::AppConfig::ConfigurationProfile.Validators - AWS::EC2::LaunchTemplate.MetadataOptions - AWS::Backup::BackupPlan.BackupRuleResourceType - AWS::MediaLive::Channel.OutputDestination - AWS::Backup::BackupPlan.CopyActionResourceType - AWS::ACMPCA::Certificate.Validity - AWS::AppConfig::Environment.Monitors - AWS::AppConfig::Environment.Tags - AWS::EC2::LaunchTemplate.Placement - AWS::ACMPCA::CertificateAuthority.Subject - AWS::AppConfig::Application.Tags - AWS::AppConfig::Deployment.Tags - AWS::EC2::LaunchTemplate.LaunchTemplateElasticInferenceAccelerator - AWS::EC2::LaunchTemplate.LaunchTemplateData - AWS::MediaLive::Channel.MultiplexProgramChannelDestinationSettings - AWS::ACMPCA::CertificateAuthority.CrlConfiguration - AWS::AppConfig::ConfigurationProfile.Tags - AWS::AppConfig::DeploymentStrategy.Tags
1 parent dc7a1e8 commit bc75922

35 files changed

Lines changed: 4829 additions & 507 deletions

cloudformation/acmpca/aws-acmpca-certificate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ type Certificate struct {
3535
// Validity AWS CloudFormation Property
3636
// Required: true
3737
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-acmpca-certificate.html#cfn-acmpca-certificate-validity
38-
Validity interface{} `json:"Validity,omitempty"`
38+
Validity *Certificate_Validity `json:"Validity,omitempty"`
3939

4040
// AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy
4141
AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"`
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
package acmpca
2+
3+
import (
4+
"github.com/awslabs/goformation/v4/cloudformation/policies"
5+
)
6+
7+
// Certificate_Validity AWS CloudFormation Resource (AWS::ACMPCA::Certificate.Validity)
8+
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-acmpca-certificate-validity.html
9+
type Certificate_Validity struct {
10+
11+
// Type AWS CloudFormation Property
12+
// Required: true
13+
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-acmpca-certificate-validity.html#cfn-acmpca-certificate-validity-type
14+
Type string `json:"Type,omitempty"`
15+
16+
// Value AWS CloudFormation Property
17+
// Required: true
18+
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-acmpca-certificate-validity.html#cfn-acmpca-certificate-validity-value
19+
Value int `json:"Value"`
20+
21+
// AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy
22+
AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"`
23+
24+
// AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource
25+
AWSCloudFormationDependsOn []string `json:"-"`
26+
27+
// AWSCloudFormationMetadata stores structured data associated with this resource
28+
AWSCloudFormationMetadata map[string]interface{} `json:"-"`
29+
30+
// AWSCloudFormationCondition stores the logical ID of the condition that must be satisfied for this resource to be created
31+
AWSCloudFormationCondition string `json:"-"`
32+
}
33+
34+
// AWSCloudFormationType returns the AWS CloudFormation resource type
35+
func (r *Certificate_Validity) AWSCloudFormationType() string {
36+
return "AWS::ACMPCA::Certificate.Validity"
37+
}

cloudformation/acmpca/aws-acmpca-certificateauthority.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ type CertificateAuthority struct {
2121
// RevocationConfiguration AWS CloudFormation Property
2222
// Required: false
2323
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-acmpca-certificateauthority.html#cfn-acmpca-certificateauthority-revocationconfiguration
24-
RevocationConfiguration interface{} `json:"RevocationConfiguration,omitempty"`
24+
RevocationConfiguration *CertificateAuthority_RevocationConfiguration `json:"RevocationConfiguration,omitempty"`
2525

2626
// SigningAlgorithm AWS CloudFormation Property
2727
// Required: true
@@ -31,7 +31,7 @@ type CertificateAuthority struct {
3131
// Subject AWS CloudFormation Property
3232
// Required: true
3333
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-acmpca-certificateauthority.html#cfn-acmpca-certificateauthority-subject
34-
Subject interface{} `json:"Subject,omitempty"`
34+
Subject *CertificateAuthority_Subject `json:"Subject,omitempty"`
3535

3636
// Tags AWS CloudFormation Property
3737
// Required: false
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
package acmpca
2+
3+
import (
4+
"github.com/awslabs/goformation/v4/cloudformation/policies"
5+
)
6+
7+
// CertificateAuthority_CrlConfiguration AWS CloudFormation Resource (AWS::ACMPCA::CertificateAuthority.CrlConfiguration)
8+
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-acmpca-certificateauthority-crlconfiguration.html
9+
type CertificateAuthority_CrlConfiguration struct {
10+
11+
// CustomCname AWS CloudFormation Property
12+
// Required: false
13+
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-acmpca-certificateauthority-crlconfiguration.html#cfn-acmpca-certificateauthority-crlconfiguration-customcname
14+
CustomCname string `json:"CustomCname,omitempty"`
15+
16+
// Enabled AWS CloudFormation Property
17+
// Required: false
18+
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-acmpca-certificateauthority-crlconfiguration.html#cfn-acmpca-certificateauthority-crlconfiguration-enabled
19+
Enabled bool `json:"Enabled,omitempty"`
20+
21+
// ExpirationInDays AWS CloudFormation Property
22+
// Required: false
23+
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-acmpca-certificateauthority-crlconfiguration.html#cfn-acmpca-certificateauthority-crlconfiguration-expirationindays
24+
ExpirationInDays int `json:"ExpirationInDays,omitempty"`
25+
26+
// S3BucketName AWS CloudFormation Property
27+
// Required: false
28+
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-acmpca-certificateauthority-crlconfiguration.html#cfn-acmpca-certificateauthority-crlconfiguration-s3bucketname
29+
S3BucketName string `json:"S3BucketName,omitempty"`
30+
31+
// AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy
32+
AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"`
33+
34+
// AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource
35+
AWSCloudFormationDependsOn []string `json:"-"`
36+
37+
// AWSCloudFormationMetadata stores structured data associated with this resource
38+
AWSCloudFormationMetadata map[string]interface{} `json:"-"`
39+
40+
// AWSCloudFormationCondition stores the logical ID of the condition that must be satisfied for this resource to be created
41+
AWSCloudFormationCondition string `json:"-"`
42+
}
43+
44+
// AWSCloudFormationType returns the AWS CloudFormation resource type
45+
func (r *CertificateAuthority_CrlConfiguration) AWSCloudFormationType() string {
46+
return "AWS::ACMPCA::CertificateAuthority.CrlConfiguration"
47+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
package acmpca
2+
3+
import (
4+
"github.com/awslabs/goformation/v4/cloudformation/policies"
5+
)
6+
7+
// CertificateAuthority_RevocationConfiguration AWS CloudFormation Resource (AWS::ACMPCA::CertificateAuthority.RevocationConfiguration)
8+
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-acmpca-certificateauthority-revocationconfiguration.html
9+
type CertificateAuthority_RevocationConfiguration struct {
10+
11+
// CrlConfiguration AWS CloudFormation Property
12+
// Required: false
13+
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-acmpca-certificateauthority-revocationconfiguration.html#cfn-acmpca-certificateauthority-revocationconfiguration-crlconfiguration
14+
CrlConfiguration *CertificateAuthority_CrlConfiguration `json:"CrlConfiguration,omitempty"`
15+
16+
// AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy
17+
AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"`
18+
19+
// AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource
20+
AWSCloudFormationDependsOn []string `json:"-"`
21+
22+
// AWSCloudFormationMetadata stores structured data associated with this resource
23+
AWSCloudFormationMetadata map[string]interface{} `json:"-"`
24+
25+
// AWSCloudFormationCondition stores the logical ID of the condition that must be satisfied for this resource to be created
26+
AWSCloudFormationCondition string `json:"-"`
27+
}
28+
29+
// AWSCloudFormationType returns the AWS CloudFormation resource type
30+
func (r *CertificateAuthority_RevocationConfiguration) AWSCloudFormationType() string {
31+
return "AWS::ACMPCA::CertificateAuthority.RevocationConfiguration"
32+
}
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
package acmpca
2+
3+
import (
4+
"github.com/awslabs/goformation/v4/cloudformation/policies"
5+
)
6+
7+
// CertificateAuthority_Subject AWS CloudFormation Resource (AWS::ACMPCA::CertificateAuthority.Subject)
8+
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-acmpca-certificateauthority-subject.html
9+
type CertificateAuthority_Subject struct {
10+
11+
// CommonName AWS CloudFormation Property
12+
// Required: false
13+
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-acmpca-certificateauthority-subject.html#cfn-acmpca-certificateauthority-subject-commonname
14+
CommonName string `json:"CommonName,omitempty"`
15+
16+
// Country AWS CloudFormation Property
17+
// Required: false
18+
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-acmpca-certificateauthority-subject.html#cfn-acmpca-certificateauthority-subject-country
19+
Country string `json:"Country,omitempty"`
20+
21+
// DistinguishedNameQualifier AWS CloudFormation Property
22+
// Required: false
23+
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-acmpca-certificateauthority-subject.html#cfn-acmpca-certificateauthority-subject-distinguishednamequalifier
24+
DistinguishedNameQualifier string `json:"DistinguishedNameQualifier,omitempty"`
25+
26+
// GenerationQualifier AWS CloudFormation Property
27+
// Required: false
28+
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-acmpca-certificateauthority-subject.html#cfn-acmpca-certificateauthority-subject-generationqualifier
29+
GenerationQualifier string `json:"GenerationQualifier,omitempty"`
30+
31+
// GivenName AWS CloudFormation Property
32+
// Required: false
33+
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-acmpca-certificateauthority-subject.html#cfn-acmpca-certificateauthority-subject-givenname
34+
GivenName string `json:"GivenName,omitempty"`
35+
36+
// Initials AWS CloudFormation Property
37+
// Required: false
38+
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-acmpca-certificateauthority-subject.html#cfn-acmpca-certificateauthority-subject-initials
39+
Initials string `json:"Initials,omitempty"`
40+
41+
// Locality AWS CloudFormation Property
42+
// Required: false
43+
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-acmpca-certificateauthority-subject.html#cfn-acmpca-certificateauthority-subject-locality
44+
Locality string `json:"Locality,omitempty"`
45+
46+
// Organization AWS CloudFormation Property
47+
// Required: false
48+
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-acmpca-certificateauthority-subject.html#cfn-acmpca-certificateauthority-subject-organization
49+
Organization string `json:"Organization,omitempty"`
50+
51+
// OrganizationalUnit AWS CloudFormation Property
52+
// Required: false
53+
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-acmpca-certificateauthority-subject.html#cfn-acmpca-certificateauthority-subject-organizationalunit
54+
OrganizationalUnit string `json:"OrganizationalUnit,omitempty"`
55+
56+
// Pseudonym AWS CloudFormation Property
57+
// Required: false
58+
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-acmpca-certificateauthority-subject.html#cfn-acmpca-certificateauthority-subject-pseudonym
59+
Pseudonym string `json:"Pseudonym,omitempty"`
60+
61+
// SerialNumber AWS CloudFormation Property
62+
// Required: false
63+
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-acmpca-certificateauthority-subject.html#cfn-acmpca-certificateauthority-subject-serialnumber
64+
SerialNumber string `json:"SerialNumber,omitempty"`
65+
66+
// State AWS CloudFormation Property
67+
// Required: false
68+
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-acmpca-certificateauthority-subject.html#cfn-acmpca-certificateauthority-subject-state
69+
State string `json:"State,omitempty"`
70+
71+
// Surname AWS CloudFormation Property
72+
// Required: false
73+
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-acmpca-certificateauthority-subject.html#cfn-acmpca-certificateauthority-subject-surname
74+
Surname string `json:"Surname,omitempty"`
75+
76+
// Title AWS CloudFormation Property
77+
// Required: false
78+
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-acmpca-certificateauthority-subject.html#cfn-acmpca-certificateauthority-subject-title
79+
Title string `json:"Title,omitempty"`
80+
81+
// AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy
82+
AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"`
83+
84+
// AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource
85+
AWSCloudFormationDependsOn []string `json:"-"`
86+
87+
// AWSCloudFormationMetadata stores structured data associated with this resource
88+
AWSCloudFormationMetadata map[string]interface{} `json:"-"`
89+
90+
// AWSCloudFormationCondition stores the logical ID of the condition that must be satisfied for this resource to be created
91+
AWSCloudFormationCondition string `json:"-"`
92+
}
93+
94+
// AWSCloudFormationType returns the AWS CloudFormation resource type
95+
func (r *CertificateAuthority_Subject) AWSCloudFormationType() string {
96+
return "AWS::ACMPCA::CertificateAuthority.Subject"
97+
}

0 commit comments

Comments
 (0)