Skip to content

Commit 2443310

Browse files
feat(cfnspec): cloudformation spec v81.1.0 (#21308)
1 parent 6512f84 commit 2443310

File tree

194 files changed

+447
-218
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

194 files changed

+447
-218
lines changed

packages/@aws-cdk/aws-cloudfront/lib/web-distribution.ts

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -818,18 +818,6 @@ export class CloudFrontWebDistribution extends cdk.Resource implements IDistribu
818818
? `${props.comment.slice(0, 128 - 3)}...`
819819
: props.comment;
820820

821-
let distributionConfig: CfnDistribution.DistributionConfigProperty = {
822-
comment: trimmedComment,
823-
enabled: props.enabled ?? true,
824-
defaultRootObject: props.defaultRootObject ?? 'index.html',
825-
httpVersion: props.httpVersion || HttpVersion.HTTP2,
826-
priceClass: props.priceClass || PriceClass.PRICE_CLASS_100,
827-
ipv6Enabled: props.enableIpV6 ?? true,
828-
// eslint-disable-next-line max-len
829-
customErrorResponses: props.errorConfigurations, // TODO: validation : https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-customerrorresponse.html#cfn-cloudfront-distribution-customerrorresponse-errorcachingminttl
830-
webAclId: props.webACLId,
831-
};
832-
833821
const behaviors: BehaviorWithOrigin[] = [];
834822

835823
const origins: CfnDistribution.OriginProperty[] = [];
@@ -885,26 +873,20 @@ export class CloudFrontWebDistribution extends cdk.Resource implements IDistribu
885873
throw new Error(`Origin ${origin.domainName} is missing either S3OriginConfig or CustomOriginConfig. At least 1 must be specified.`);
886874
}
887875
});
876+
888877
const originGroupsDistConfig =
889878
originGroups.length > 0
890879
? {
891880
items: originGroups,
892881
quantity: originGroups.length,
893882
}
894883
: undefined;
895-
distributionConfig = {
896-
...distributionConfig,
897-
origins,
898-
originGroups: originGroupsDistConfig,
899-
};
900884

901885
const defaultBehaviors = behaviors.filter(behavior => behavior.isDefaultBehavior);
902886
if (defaultBehaviors.length !== 1) {
903887
throw new Error('There can only be one default behavior across all sources. [ One default behavior per distribution ].');
904888
}
905889

906-
distributionConfig = { ...distributionConfig, defaultCacheBehavior: this.toBehavior(defaultBehaviors[0], props.viewerProtocolPolicy) };
907-
908890
const otherBehaviors: CfnDistribution.CacheBehaviorProperty[] = [];
909891
for (const behavior of behaviors.filter(b => !b.isDefaultBehavior)) {
910892
if (!behavior.pathPattern) {
@@ -913,7 +895,23 @@ export class CloudFrontWebDistribution extends cdk.Resource implements IDistribu
913895
otherBehaviors.push(this.toBehavior(behavior, props.viewerProtocolPolicy) as CfnDistribution.CacheBehaviorProperty);
914896
}
915897

916-
distributionConfig = { ...distributionConfig, cacheBehaviors: otherBehaviors.length > 0 ? otherBehaviors : undefined };
898+
let distributionConfig: CfnDistribution.DistributionConfigProperty = {
899+
comment: trimmedComment,
900+
enabled: props.enabled ?? true,
901+
defaultRootObject: props.defaultRootObject ?? 'index.html',
902+
httpVersion: props.httpVersion || HttpVersion.HTTP2,
903+
priceClass: props.priceClass || PriceClass.PRICE_CLASS_100,
904+
ipv6Enabled: props.enableIpV6 ?? true,
905+
// eslint-disable-next-line max-len
906+
customErrorResponses: props.errorConfigurations, // TODO: validation : https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-customerrorresponse.html#cfn-cloudfront-distribution-customerrorresponse-errorcachingminttl
907+
webAclId: props.webACLId,
908+
909+
origins,
910+
originGroups: originGroupsDistConfig,
911+
912+
defaultCacheBehavior: this.toBehavior(defaultBehaviors[0], props.viewerProtocolPolicy),
913+
cacheBehaviors: otherBehaviors.length > 0 ? otherBehaviors : undefined,
914+
};
917915

918916
if (props.aliasConfiguration && props.viewerCertificate) {
919917
throw new Error([

packages/@aws-cdk/cfnspec/CHANGELOG.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,60 @@
1+
# CloudFormation Resource Specification v81.1.0
2+
3+
## New Resource Types
4+
5+
* AWS::Evidently::Segment
6+
7+
## Attribute Changes
8+
9+
* AWS::ApiGateway::DocumentationPart DocumentationPartId (__added__)
10+
* AWS::IoT::Policy Id (__added__)
11+
12+
## Property Changes
13+
14+
* AWS::CloudWatch::CompositeAlarm ActionsSuppressor (__added__)
15+
* AWS::CloudWatch::CompositeAlarm ActionsSuppressorExtensionPeriod (__added__)
16+
* AWS::CloudWatch::CompositeAlarm ActionsSuppressorWaitPeriod (__added__)
17+
* AWS::EC2::Host InstanceFamily (__added__)
18+
* AWS::EC2::Host OutpostArn (__added__)
19+
* AWS::EC2::Host InstanceType.Required (__changed__)
20+
* Old: true
21+
* New: false
22+
* AWS::EC2::VPCEndpointService ContributorInsightsEnabled (__added__)
23+
* AWS::GuardDuty::Detector Tags (__added__)
24+
* AWS::GuardDuty::Filter Tags (__added__)
25+
* AWS::GuardDuty::IPSet Tags (__added__)
26+
* AWS::GuardDuty::ThreatIntelSet Tags (__added__)
27+
* AWS::IoT::Policy PolicyDocument.UpdateType (__changed__)
28+
* Old: Immutable
29+
* New: Mutable
30+
* AWS::Location::GeofenceCollection KmsKeyId.UpdateType (__changed__)
31+
* Old: Mutable
32+
* New: Immutable
33+
* AWS::Location::GeofenceCollection PricingPlanDataSource.UpdateType (__changed__)
34+
* Old: Immutable
35+
* New: Mutable
36+
* AWS::Location::Tracker PricingPlanDataSource.UpdateType (__changed__)
37+
* Old: Immutable
38+
* New: Mutable
39+
* AWS::SSO::PermissionSet CustomerManagedPolicyReferences (__added__)
40+
* AWS::SSO::PermissionSet PermissionsBoundary (__added__)
41+
42+
## Property Type Changes
43+
44+
* AWS::SSO::PermissionSet.CustomerManagedPolicyReference (__added__)
45+
* AWS::SSO::PermissionSet.PermissionsBoundary (__added__)
46+
* AWS::Transfer::Server.As2Transport (__added__)
47+
* AWS::AppFlow::Flow.ScheduledTriggerProperties FirstExecutionFrom (__added__)
48+
* AWS::CloudFront::Distribution.DistributionConfig DefaultCacheBehavior.Required (__changed__)
49+
* Old: false
50+
* New: true
51+
* AWS::Transfer::Server.ProtocolDetails As2Transports (__added__)
52+
53+
## Unapplied changes
54+
55+
* AWS::Rekognition is at 68.0.0
56+
* AWS::SageMaker is at 72.0.0
57+
158
# CloudFormation Resource Specification v81.0.0
259

360
## New Resource Types
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
81.0.0
1+
81.1.0

packages/@aws-cdk/cfnspec/spec-source/specification/000_cfn/000_official/000_AWS_ACMPCA.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$version": "81.0.0",
2+
"$version": "81.1.0",
33
"PropertyTypes": {
44
"AWS::ACMPCA::Certificate.ApiPassthrough": {
55
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-acmpca-certificate-apipassthrough.html",

packages/@aws-cdk/cfnspec/spec-source/specification/000_cfn/000_official/000_AWS_APS.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$version": "81.0.0",
2+
"$version": "81.1.0",
33
"PropertyTypes": {},
44
"ResourceTypes": {
55
"AWS::APS::RuleGroupsNamespace": {

packages/@aws-cdk/cfnspec/spec-source/specification/000_cfn/000_official/000_AWS_AccessAnalyzer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$version": "81.0.0",
2+
"$version": "81.1.0",
33
"PropertyTypes": {
44
"AWS::AccessAnalyzer::Analyzer.ArchiveRule": {
55
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-accessanalyzer-analyzer-archiverule.html",

packages/@aws-cdk/cfnspec/spec-source/specification/000_cfn/000_official/000_AWS_AmazonMQ.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$version": "81.0.0",
2+
"$version": "81.1.0",
33
"PropertyTypes": {
44
"AWS::AmazonMQ::Broker.ConfigurationId": {
55
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amazonmq-broker-configurationid.html",

packages/@aws-cdk/cfnspec/spec-source/specification/000_cfn/000_official/000_AWS_Amplify.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$version": "81.0.0",
2+
"$version": "81.1.0",
33
"PropertyTypes": {
44
"AWS::Amplify::App.AutoBranchCreationConfig": {
55
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplify-app-autobranchcreationconfig.html",

packages/@aws-cdk/cfnspec/spec-source/specification/000_cfn/000_official/000_AWS_AmplifyUIBuilder.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$version": "81.0.0",
2+
"$version": "81.1.0",
33
"PropertyTypes": {
44
"AWS::AmplifyUIBuilder::Component.ActionParameters": {
55
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplifyuibuilder-component-actionparameters.html",

packages/@aws-cdk/cfnspec/spec-source/specification/000_cfn/000_official/000_AWS_ApiGateway.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$version": "81.0.0",
2+
"$version": "81.1.0",
33
"PropertyTypes": {
44
"AWS::ApiGateway::ApiKey.StageKey": {
55
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-apikey-stagekey.html",
@@ -977,6 +977,11 @@
977977
}
978978
},
979979
"AWS::ApiGateway::DocumentationPart": {
980+
"Attributes": {
981+
"DocumentationPartId": {
982+
"PrimitiveType": "String"
983+
}
984+
},
980985
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-documentationpart.html",
981986
"Properties": {
982987
"Location": {

0 commit comments

Comments
 (0)