Skip to content

Commit f33ae20

Browse files
Merge branch 'master' into log-retention-rate-exceeded-error
2 parents 7ca18c7 + d1403cc commit f33ae20

File tree

140 files changed

+4495
-895
lines changed

Some content is hidden

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

140 files changed

+4495
-895
lines changed

.mergify.yml

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ pull_request_rules:
66
label:
77
add: [ contribution/core ]
88
conditions:
9-
- author~=^(eladb|RomainMuller|garnaat|nija-at|shivlaks|skinny85|rix0rrr|NGL321|Jerry-AWS|SomayaB|MrArnoldPalmer|NetaNir|iliapolo)$
9+
- author~=^(eladb|RomainMuller|garnaat|nija-at|shivlaks|skinny85|rix0rrr|NGL321|Jerry-AWS|SomayaB|MrArnoldPalmer|NetaNir|iliapolo|njlynch)$
1010
- -label~="contribution/core"
1111
- name: automatic merge
1212
actions:
@@ -66,20 +66,7 @@ pull_request_rules:
6666
conditions:
6767
- author!=dependabot[bot]
6868
- author!=dependabot-preview[bot]
69-
# List out all the people whose work is okay to provisionally approve
70-
- author!=eladb
71-
- author!=RomainMuller
72-
- author!=garnaat
73-
- author!=nija-at
74-
- author!=shivlaks
75-
- author!=skinny85
76-
- author!=rix0rrr
77-
- author!=NGL321
78-
- author!=Jerry-AWS
79-
- author!=SomayaB
80-
- author!=MrArnoldPalmer
81-
- author!=NetaNir
82-
- author!=iliapolo
69+
- label!=contribution/core
8370
- base=master
8471
- -merged
8572
- -closed

CHANGELOG.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,50 @@
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.45.0](https://github.com/aws/aws-cdk/compare/v1.44.0...v1.45.0) (2020-06-09)
6+
7+
8+
### ⚠ BREAKING CHANGES
9+
10+
* **stepfunctions-tasks:** constructs for `SageMakerCreateTrainingJob` and
11+
`SageMakerCreateTransformJob` replace previous implementation that
12+
implemented `IStepFunctionsTask`.
13+
* **stepfunctions-tasks:** `volumeSizeInGB` property in `ResourceConfig` for
14+
SageMaker tasks are now type `core.Size`
15+
* **stepfunctions-tasks:** `maxPayload` property in `SagemakerTransformProps`
16+
is now type `core.Size`
17+
* **stepfunctions-tasks:** `volumeKmsKeyId` property in `SageMakerCreateTrainingJob` is now `volumeEncryptionKey`
18+
* **cognito:** `requiredAttributes` on `UserPool` construct is now replaced with `standardAttributes` with a slightly modified signature.
19+
* **rds:** DatabaseClusterProps.kmsKey has been renamed to storageEncryptionKey
20+
* **rds**: DatabaseInstanceNewProps.performanceInsightKmsKey has been renamed to performanceInsightEncryptionKey
21+
* **rds**: DatabaseInstanceSourceProps.secretKmsKey has been renamed to masterUserPasswordEncryptionKey
22+
* **rds**: DatabaseInstanceProps.kmsKey has been renamed to storageEncryptionKey
23+
* **rds**: DatabaseInstanceReadReplicaProps.kmsKey has been renamed to storageEncryptionKey
24+
* **rds**: Login.kmsKey has been renamed to encryptionKey
25+
26+
### Features
27+
28+
* **assert:** more powerful matchers ([#8444](https://github.com/aws/aws-cdk/issues/8444)) ([ed6f763](https://github.com/aws/aws-cdk/commit/ed6f763bddbb2090bbf07e5bbd6c7710a54dd33d))
29+
* **cloud9:** support AWS CodeCommit repository clone on launch ([#8205](https://github.com/aws/aws-cdk/issues/8205)) ([4781f94](https://github.com/aws/aws-cdk/commit/4781f94ee530ef66488fbf7b3728a753fa5718cd)), closes [#8204](https://github.com/aws/aws-cdk/issues/8204)
30+
* **codestar:** support the GitHubRepository resource ([#8209](https://github.com/aws/aws-cdk/issues/8209)) ([02ddab8](https://github.com/aws/aws-cdk/commit/02ddab8c1e76c59ccaff4f45986de68d538d54eb)), closes [#8210](https://github.com/aws/aws-cdk/issues/8210)
31+
* **cognito:** allow mutable attributes for requiredAttributes ([#7754](https://github.com/aws/aws-cdk/issues/7754)) ([1fabd98](https://github.com/aws/aws-cdk/commit/1fabd9819d4dbe64d175e73400078e435235d1d2))
32+
* **core,s3-assets,lambda:** custom asset bundling ([#7898](https://github.com/aws/aws-cdk/issues/7898)) ([888b412](https://github.com/aws/aws-cdk/commit/888b412797b2bcd7b8f1b8c5cbc0c25d94f91a5f))
33+
* **rds:** rename 'kmsKey' properties to 'encryptionKey' ([#8324](https://github.com/aws/aws-cdk/issues/8324)) ([4eefbbe](https://github.com/aws/aws-cdk/commit/4eefbbe612d4bd643bffd4dee525d88a921439cb))
34+
* **secretsmanager:** deletionPolicy for secretsmanager ([#8188](https://github.com/aws/aws-cdk/issues/8188)) ([f6fe36a](https://github.com/aws/aws-cdk/commit/f6fe36a0281a60ad65474b6ce0e22d0182ed2bea)), closes [#6527](https://github.com/aws/aws-cdk/issues/6527)
35+
* **secretsmanager:** Secret.grantRead() also gives DescribeSecret permissions ([#8409](https://github.com/aws/aws-cdk/issues/8409)) ([f44ae60](https://github.com/aws/aws-cdk/commit/f44ae607670bccee21dfd390effa7d0e8701efd4)), closes [#6444](https://github.com/aws/aws-cdk/issues/6444) [#7953](https://github.com/aws/aws-cdk/issues/7953)
36+
* **stepfunctions-tasks:** task constructs for creating and transforming SageMaker jobs ([#8391](https://github.com/aws/aws-cdk/issues/8391)) ([480d4c0](https://github.com/aws/aws-cdk/commit/480d4c004122f37533c22a14c6ecb89b5da07011))
37+
38+
39+
### Bug Fixes
40+
41+
* **apigateway:** authorizerUri does not resolve to the correct partition ([#8152](https://github.com/aws/aws-cdk/issues/8152)) ([f455273](https://github.com/aws/aws-cdk/commit/f4552733909cd0734a7d829a35d0c1277b2ca4fc)), closes [#8098](https://github.com/aws/aws-cdk/issues/8098)
42+
* **apigateway:** methodArn not replacing path parameters with asterisks ([#8206](https://github.com/aws/aws-cdk/issues/8206)) ([8fc3751](https://github.com/aws/aws-cdk/commit/8fc37513477f4d9a8a37e4b6979a79e8ba6a1efd)), closes [#8036](https://github.com/aws/aws-cdk/issues/8036)
43+
* **aws-s3-deployment:** Set proper s-maxage Cache Control header ([#8434](https://github.com/aws/aws-cdk/issues/8434)) ([8d5b801](https://github.com/aws/aws-cdk/commit/8d5b801971ddaba82e0767c74fe7640d3e802c2f)), closes [#6292](https://github.com/aws/aws-cdk/issues/6292)
44+
* **cognito:** error when using parameter for `domainPrefix` ([#8399](https://github.com/aws/aws-cdk/issues/8399)) ([681b3bb](https://github.com/aws/aws-cdk/commit/681b3bbc7de517c06ac0bd848b73cc6d7267dfa1)), closes [#8314](https://github.com/aws/aws-cdk/issues/8314)
45+
* **dynamodb:** old global table replicas cannot be deleted ([#8224](https://github.com/aws/aws-cdk/issues/8224)) ([00884c7](https://github.com/aws/aws-cdk/commit/00884c752d6746864f2a71d093502d4fb2422037)), closes [#7189](https://github.com/aws/aws-cdk/issues/7189)
46+
* **elbv2:** addAction ignores conditions ([#8385](https://github.com/aws/aws-cdk/issues/8385)) ([729cc0b](https://github.com/aws/aws-cdk/commit/729cc0b1705cab64696682f21985d97ce6c41607)), closes [#8328](https://github.com/aws/aws-cdk/issues/8328)
47+
* **elbv2:** missing permission to write NLB access logs to S3 bucket ([#8114](https://github.com/aws/aws-cdk/issues/8114)) ([d6a1265](https://github.com/aws/aws-cdk/commit/d6a126508e4bb03f6f9d874c2c6648c3e3661a41)), closes [#8113](https://github.com/aws/aws-cdk/issues/8113)
48+
549
## [1.44.0](https://github.com/aws/aws-cdk/compare/v1.43.0...v1.44.0) (2020-06-04)
650

751

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,6 @@ echo "==========================================================================
6060
echo "building..."
6161
time lerna run $bail --stream $runtarget || fail
6262

63-
DOWNLOAD_LATEST=true /bin/bash scripts/check-api-compatibility.sh
63+
/bin/bash scripts/check-api-compatibility.sh
6464

6565
touch $BUILD_INDICATOR

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@
1010
"tools/*"
1111
],
1212
"rejectCycles": "true",
13-
"version": "1.44.0"
13+
"version": "1.45.0"
1414
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"jsii-diff": "^1.6.0",
2020
"jsii-pacmak": "^1.6.0",
2121
"jsii-rosetta": "^1.6.0",
22-
"lerna": "^3.22.0",
22+
"lerna": "^3.22.1",
2323
"standard-version": "^8.0.0",
2424
"graceful-fs": "^4.2.4",
2525
"typescript": "~3.8.3"

packages/@aws-cdk/assert/README.md

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ If you only care that a resource of a particular type exists (regardless of its
6363

6464
```ts
6565
haveResource(type, subsetOfProperties)
66+
haveResourceLike(type, subsetOfProperties)
6667
```
6768

6869
Example:
@@ -76,7 +77,35 @@ expect(stack).to(haveResource('AWS::CertificateManager::Certificate', {
7677
}));
7778
```
7879

79-
`ABSENT` is a magic value to assert that a particular key in an object is *not* set (or set to `undefined`).
80+
The object you give to `haveResource`/`haveResourceLike` like can contain the
81+
following values:
82+
83+
- **Literal values**: the given property in the resource must match the given value *exactly*.
84+
- `ABSENT`: a magic value to assert that a particular key in an object is *not* set (or set to `undefined`).
85+
- `arrayWith(...)`/`objectLike(...)`/`deepObjectLike(...)`/`exactValue()`: special matchers
86+
for inexact matching. You can use these to match arrays where not all elements have to match,
87+
just a single one, or objects where not all keys have to match.
88+
89+
The difference between `haveResource` and `haveResourceLike` is the same as
90+
between `objectLike` and `deepObjectLike`: the first allows
91+
additional (unspecified) object keys only at the *first* level, while the
92+
second one allows them in nested objects as well.
93+
94+
If you want to escape from the "deep lenient matching" behavior, you can use
95+
`exactValue()`.
96+
97+
Slightly more complex example with array matchers:
98+
99+
```ts
100+
expect(stack).to(haveResourceLike('AWS::IAM::Policy', {
101+
PolicyDocument: {
102+
Statement: arrayWith(objectLike({
103+
Action: ['s3:GetObject'],
104+
Resource: ['arn:my:arn'],
105+
}})
106+
}
107+
}));
108+
```
80109
81110
### Check number of resources
82111

0 commit comments

Comments
 (0)