Skip to content

Commit e0810c8

Browse files
committed
Merge pull request #7560 from aws/bump/1.35.0
chore(release): 1.35.0
2 parents 7b21aa0 + a604909 commit e0810c8

File tree

152 files changed

+4942
-1135
lines changed

Some content is hidden

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

152 files changed

+4942
-1135
lines changed

CHANGELOG.md

+27
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,33 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
## [1.35.0](https://github.com/aws/aws-cdk/compare/v1.34.1...v1.35.0) (2020-04-23)
6+
7+
8+
### ⚠ BREAKING CHANGES
9+
10+
* **assets:** `cdk deploy` now needs `s3:ListBucket` instead of `s3:HeadObject`.
11+
* **efs:** Exported types no longer have the `Efs` prefix.
12+
* **efs:** `provisionedThroughputInMibps` property is renamed to `provisionedThroughputPerSecond` and has the type `Size`.
13+
* **efs:** The property `fileSystemID` is now renamed to `fileSystemId` in the now named `FileSystemAttributes` (previously, `EfsFileSystemAttributes`).
14+
* **efs:** `LifecyclePolicyProperty` is now renamed to `LifecyclePolicy`.
15+
16+
### Features
17+
18+
* **cfnspec:** cloudformation spec v13.0.0 ([#7504](https://github.com/aws/aws-cdk/issues/7504)) ([6903869](https://github.com/aws/aws-cdk/commit/6903869def944f8100c8eef51dd7145c181984e2))
19+
* **cloudtrail:** Lambda Function data events ([4a70138](https://github.com/aws/aws-cdk/commit/4a70138faf2e863be37a66bec23ed29a784b486a))
20+
* **cognito:** user pool domain ([#7224](https://github.com/aws/aws-cdk/issues/7224)) ([feadd6c](https://github.com/aws/aws-cdk/commit/feadd6cb643b415ae002191ba2cb4622221a5af6)), closes [#6787](https://github.com/aws/aws-cdk/issues/6787)
21+
* **stepfunctions:** retrieve all reachable states from a given state in a state machine definition ([#7324](https://github.com/aws/aws-cdk/issues/7324)) ([ac3b330](https://github.com/aws/aws-cdk/commit/ac3b330c71ef258afd145b86fd90a06db5d1c990)), closes [#7256](https://github.com/aws/aws-cdk/issues/7256)
22+
23+
24+
### Bug Fixes
25+
26+
* **assets:** infrequent "ValidationError: S3 error: Access Denied" ([#7556](https://github.com/aws/aws-cdk/issues/7556)) ([00c9deb](https://github.com/aws/aws-cdk/commit/00c9deb975fe794eef9003cd26a6453abc514928)), closes [#6430](https://github.com/aws/aws-cdk/issues/6430) [#7553](https://github.com/aws/aws-cdk/issues/7553)
27+
* **route53:** cannot add tags to `HostedZone` ([#7531](https://github.com/aws/aws-cdk/issues/7531)) ([2729804](https://github.com/aws/aws-cdk/commit/272980492dc6b98d71ce9c3b23cab38f656dc632)), closes [#7445](https://github.com/aws/aws-cdk/issues/7445)
28+
29+
30+
* **efs:** drop Efs prefix from all exported types ([#7481](https://github.com/aws/aws-cdk/issues/7481)) ([ddd47cd](https://github.com/aws/aws-cdk/commit/ddd47cd7e0735424d2e47891c32e4b7813035067))
31+
532
## [1.34.1](https://github.com/aws/aws-cdk/compare/v1.34.0...v1.34.1) (2020-04-22)
633

734

lerna.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@
1010
"tools/*"
1111
],
1212
"rejectCycles": "true",
13-
"version": "1.34.1"
13+
"version": "1.35.0"
1414
}

pack.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ rm -fr ${distdir}
1515
mkdir -p ${distdir}
1616

1717
# Split out jsii and non-jsii packages. Jsii packages will be built all at once.
18-
# Non-jsii packages will be run individually.
18+
# Non-jsii packages will be run individually. Note that currently the monoCDK
19+
# package is handled as non-jsii because of the way it is packaged.
1920
echo "Collecting package list..." >&2
2021
scripts/list-packages $TMPDIR/jsii.txt $TMPDIR/nonjsii.txt
2122

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
"devDependencies": {
1717
"conventional-changelog-cli": "^2.0.31",
1818
"fs-extra": "^8.1.0",
19-
"jsii-diff": "^1.3.2",
20-
"jsii-pacmak": "^1.3.2",
21-
"jsii-rosetta": "^1.3.2",
19+
"jsii-diff": "^1.4.1",
20+
"jsii-pacmak": "^1.4.1",
21+
"jsii-rosetta": "^1.4.1",
2222
"lerna": "^3.20.2",
2323
"standard-version": "^7.1.0",
2424
"typescript": "~3.8.3"

packages/@aws-cdk/aws-apigateway/lib/deployment.ts

+21-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { CfnResource, Construct, Lazy, RemovalPolicy, Resource, Stack } from '@aws-cdk/core';
22
import * as crypto from 'crypto';
3-
import { CfnDeployment, CfnDeploymentProps } from './apigateway.generated';
3+
import { CfnDeployment } from './apigateway.generated';
44
import { IRestApi, RestApi } from './restapi';
55

66
export interface DeploymentProps {
@@ -68,7 +68,7 @@ export class Deployment extends Resource {
6868

6969
this.resource = new LatestDeploymentResource(this, 'Resource', {
7070
description: props.description,
71-
restApiId: props.api.restApiId,
71+
restApi: props.api,
7272
});
7373

7474
if (props.retainDeployments) {
@@ -116,13 +116,23 @@ export class Deployment extends Resource {
116116
}
117117
}
118118

119+
interface LatestDeploymentResourceProps {
120+
readonly description?: string;
121+
readonly restApi: IRestApi;
122+
}
123+
119124
class LatestDeploymentResource extends CfnDeployment {
120125
private hashComponents = new Array<any>();
121126
private originalLogicalId: string;
127+
private api: IRestApi;
122128

123-
constructor(scope: Construct, id: string, props: CfnDeploymentProps) {
124-
super(scope, id, props);
129+
constructor(scope: Construct, id: string, props: LatestDeploymentResourceProps) {
130+
super(scope, id, {
131+
description: props.description,
132+
restApiId: props.restApi.restApiId,
133+
});
125134

135+
this.api = props.restApi;
126136
this.originalLogicalId = Stack.of(this).getLogicalId(this);
127137
}
128138

@@ -145,6 +155,13 @@ class LatestDeploymentResource extends CfnDeployment {
145155
* add via `addToLogicalId`.
146156
*/
147157
protected prepare() {
158+
if (this.api instanceof RestApi) { // Ignore IRestApi that are imported
159+
160+
// Add CfnRestApi to the logical id so a new deployment is triggered when any of its properties change.
161+
const cfnRestApiCF = (this.api.node.defaultChild as any)._toCloudFormation();
162+
this.addToLogicalId(Stack.of(this).resolve(cfnRestApiCF));
163+
}
164+
148165
const stack = Stack.of(this);
149166

150167
// if hash components were added to the deployment, we use them to calculate

packages/@aws-cdk/aws-apigateway/test/authorizers/integ.request-authorizer.expected.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@
131131
"Name": "MyRestApi"
132132
}
133133
},
134-
"MyRestApiDeploymentB555B5828fad37a0e56bbac79ae37ae990881dca": {
134+
"MyRestApiDeploymentB555B582dcff966d69deeda8d47e3bf409ce29cb": {
135135
"Type": "AWS::ApiGateway::Deployment",
136136
"Properties": {
137137
"RestApiId": {
@@ -150,7 +150,7 @@
150150
"Ref": "MyRestApi2D1F47A9"
151151
},
152152
"DeploymentId": {
153-
"Ref": "MyRestApiDeploymentB555B5828fad37a0e56bbac79ae37ae990881dca"
153+
"Ref": "MyRestApiDeploymentB555B582dcff966d69deeda8d47e3bf409ce29cb"
154154
},
155155
"StageName": "prod"
156156
}

packages/@aws-cdk/aws-apigateway/test/authorizers/integ.token-authorizer-iam-role.expected.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@
170170
"Name": "MyRestApi"
171171
}
172172
},
173-
"MyRestApiDeploymentB555B5828fad37a0e56bbac79ae37ae990881dca": {
173+
"MyRestApiDeploymentB555B582dcff966d69deeda8d47e3bf409ce29cb": {
174174
"Type": "AWS::ApiGateway::Deployment",
175175
"Properties": {
176176
"RestApiId": {
@@ -189,7 +189,7 @@
189189
"Ref": "MyRestApi2D1F47A9"
190190
},
191191
"DeploymentId": {
192-
"Ref": "MyRestApiDeploymentB555B5828fad37a0e56bbac79ae37ae990881dca"
192+
"Ref": "MyRestApiDeploymentB555B582dcff966d69deeda8d47e3bf409ce29cb"
193193
},
194194
"StageName": "prod"
195195
}

packages/@aws-cdk/aws-apigateway/test/authorizers/integ.token-authorizer.expected.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@
131131
"Name": "MyRestApi"
132132
}
133133
},
134-
"MyRestApiDeploymentB555B5828fad37a0e56bbac79ae37ae990881dca": {
134+
"MyRestApiDeploymentB555B582dcff966d69deeda8d47e3bf409ce29cb": {
135135
"Type": "AWS::ApiGateway::Deployment",
136136
"Properties": {
137137
"RestApiId": {
@@ -150,7 +150,7 @@
150150
"Ref": "MyRestApi2D1F47A9"
151151
},
152152
"DeploymentId": {
153-
"Ref": "MyRestApiDeploymentB555B5828fad37a0e56bbac79ae37ae990881dca"
153+
"Ref": "MyRestApiDeploymentB555B582dcff966d69deeda8d47e3bf409ce29cb"
154154
},
155155
"StageName": "prod"
156156
}

packages/@aws-cdk/aws-apigateway/test/integ.cors.expected.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"Name": "cors-api-test"
77
}
88
},
9-
"corsapitestDeployment2BF1633A197b7a426736ab40a59d8a41c2d3d50d": {
9+
"corsapitestDeployment2BF1633A228079ea05e5799220dd4ca13512b92d": {
1010
"Type": "AWS::ApiGateway::Deployment",
1111
"Properties": {
1212
"RestApiId": {
@@ -29,7 +29,7 @@
2929
"Ref": "corsapitest8682546E"
3030
},
3131
"DeploymentId": {
32-
"Ref": "corsapitestDeployment2BF1633A197b7a426736ab40a59d8a41c2d3d50d"
32+
"Ref": "corsapitestDeployment2BF1633A228079ea05e5799220dd4ca13512b92d"
3333
},
3434
"StageName": "prod"
3535
}

packages/@aws-cdk/aws-apigateway/test/integ.lambda-api.latebound-deploymentstage.expected.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@
355355
}
356356
}
357357
},
358-
"deployment33381975": {
358+
"deployment3338197541aef5f15bf9a60b10e06fdbe72854f4": {
359359
"Type": "AWS::ApiGateway::Deployment",
360360
"Properties": {
361361
"RestApiId": {
@@ -374,7 +374,7 @@
374374
"Ref": "lambdarestapiF559E4F2"
375375
},
376376
"DeploymentId": {
377-
"Ref": "deployment33381975"
377+
"Ref": "deployment3338197541aef5f15bf9a60b10e06fdbe72854f4"
378378
},
379379
"StageName": "prod"
380380
}

packages/@aws-cdk/aws-apigateway/test/integ.restapi.books.expected.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@
156156
"Name": "books-api"
157157
}
158158
},
159-
"booksapiDeployment308B08F1c828b08824c062376eba921738884f85": {
159+
"booksapiDeployment308B08F132cc25cf8168bd5e99b9e6d4915866b5": {
160160
"Type": "AWS::ApiGateway::Deployment",
161161
"Properties": {
162162
"RestApiId": {
@@ -181,7 +181,7 @@
181181
"Ref": "booksapiE1885304"
182182
},
183183
"DeploymentId": {
184-
"Ref": "booksapiDeployment308B08F1c828b08824c062376eba921738884f85"
184+
"Ref": "booksapiDeployment308B08F132cc25cf8168bd5e99b9e6d4915866b5"
185185
},
186186
"StageName": "prod"
187187
}

packages/@aws-cdk/aws-apigateway/test/integ.restapi.defaults.expected.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"Name": "my-api"
77
}
88
},
9-
"myapiDeployment92F2CB49916eaecf87f818f1e175215b8d086029": {
9+
"myapiDeployment92F2CB4972a890db5063ec679071ba7eefc76f2a": {
1010
"Type": "AWS::ApiGateway::Deployment",
1111
"Properties": {
1212
"RestApiId": {
@@ -25,7 +25,7 @@
2525
"Ref": "myapi4C7BF186"
2626
},
2727
"DeploymentId": {
28-
"Ref": "myapiDeployment92F2CB49916eaecf87f818f1e175215b8d086029"
28+
"Ref": "myapiDeployment92F2CB4972a890db5063ec679071ba7eefc76f2a"
2929
},
3030
"StageName": "prod"
3131
}

packages/@aws-cdk/aws-apigateway/test/integ.restapi.expected.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"Name": "my-api"
77
}
88
},
9-
"myapiDeployment92F2CB4919460d935da8177bcfbc418506e514ff": {
9+
"myapiDeployment92F2CB4963d40685c54c6f8da21d80a83f16d3d5": {
1010
"Type": "AWS::ApiGateway::Deployment",
1111
"Properties": {
1212
"RestApiId": {
@@ -38,7 +38,7 @@
3838
"CacheClusterEnabled": true,
3939
"CacheClusterSize": "0.5",
4040
"DeploymentId": {
41-
"Ref": "myapiDeployment92F2CB4919460d935da8177bcfbc418506e514ff"
41+
"Ref": "myapiDeployment92F2CB4963d40685c54c6f8da21d80a83f16d3d5"
4242
},
4343
"Description": "beta stage",
4444
"MethodSettings": [

packages/@aws-cdk/aws-apigateway/test/integ.restapi.multistack.expected.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
"Name": "SecondRestAPI"
7676
}
7777
},
78-
"BooksApiDeployment86CA39AFc929a0f95f673e230c62e2c9754726f6": {
78+
"BooksApiDeployment86CA39AF7e6c771d47a1a3777eba99bffc037822": {
7979
"Type": "AWS::ApiGateway::Deployment",
8080
"Properties": {
8181
"RestApiId": {
@@ -96,7 +96,7 @@
9696
"Ref": "BooksApi60AC975F"
9797
},
9898
"DeploymentId": {
99-
"Ref": "BooksApiDeployment86CA39AFc929a0f95f673e230c62e2c9754726f6"
99+
"Ref": "BooksApiDeployment86CA39AF7e6c771d47a1a3777eba99bffc037822"
100100
},
101101
"StageName": "prod"
102102
}

packages/@aws-cdk/aws-apigateway/test/integ.restapi.multiuse.expected.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"Name": "hello-api"
5757
}
5858
},
59-
"helloapiDeploymentFA89AEEC086c88c5044fbc117bd88fffcee53ab2": {
59+
"helloapiDeploymentFA89AEEC3622d8c965f356a33fd95586d24bf138": {
6060
"Type": "AWS::ApiGateway::Deployment",
6161
"Properties": {
6262
"RestApiId": {
@@ -76,7 +76,7 @@
7676
"Ref": "helloapi4446A35B"
7777
},
7878
"DeploymentId": {
79-
"Ref": "helloapiDeploymentFA89AEEC086c88c5044fbc117bd88fffcee53ab2"
79+
"Ref": "helloapiDeploymentFA89AEEC3622d8c965f356a33fd95586d24bf138"
8080
},
8181
"StageName": "prod"
8282
}
@@ -265,7 +265,7 @@
265265
"Name": "second-api"
266266
}
267267
},
268-
"secondapiDeployment20F2C7001932445454ace403a6bfe89c1430ff70": {
268+
"secondapiDeployment20F2C70088fa5a027620045bea3e5043c6d31f5a": {
269269
"Type": "AWS::ApiGateway::Deployment",
270270
"Properties": {
271271
"RestApiId": {
@@ -285,7 +285,7 @@
285285
"Ref": "secondapi730EF3C7"
286286
},
287287
"DeploymentId": {
288-
"Ref": "secondapiDeployment20F2C7001932445454ace403a6bfe89c1430ff70"
288+
"Ref": "secondapiDeployment20F2C70088fa5a027620045bea3e5043c6d31f5a"
289289
},
290290
"StageName": "prod"
291291
}

packages/@aws-cdk/aws-apigateway/test/integ.restapi.vpc-endpoint.expected.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@
631631
}
632632
}
633633
},
634-
"MyApiDeploymentECB0D05E4316cb89aa1d468052daa78055609f5a": {
634+
"MyApiDeploymentECB0D05E7a475a505b0c925e193030293593b6dc": {
635635
"Type": "AWS::ApiGateway::Deployment",
636636
"Properties": {
637637
"RestApiId": {
@@ -650,7 +650,7 @@
650650
"Ref": "MyApi49610EDF"
651651
},
652652
"DeploymentId": {
653-
"Ref": "MyApiDeploymentECB0D05E4316cb89aa1d468052daa78055609f5a"
653+
"Ref": "MyApiDeploymentECB0D05E7a475a505b0c925e193030293593b6dc"
654654
},
655655
"StageName": "prod"
656656
}

0 commit comments

Comments
 (0)