Skip to content

Commit

Permalink
Merge branch 'main' into bugfix/no-default-id
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] authored Apr 12, 2023
2 parents 09c40ea + 0480e47 commit c8115af
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/aws-cdk-lib/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
!*.d.ts
!*.js
test/
**/test/**

# Coverage
coverage
Expand Down
17 changes: 16 additions & 1 deletion packages/aws-cdk-lib/aws-s3/lib/bucket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1983,7 +1983,22 @@ export class Bucket extends BucketBase {

/**
* Set up key properties and return the Bucket encryption property from the
* user's configuration.
* user's configuration, according to the following table:
*
* | props.encryption | props.encryptionKey | props.bucketKeyEnabled | bucketEncryption (return value) | encryptionKey (return value) |
* |------------------|---------------------|------------------------|---------------------------------|------------------------------|
* | undefined | undefined | e | undefined | undefined |
* | UNENCRYPTED | undefined | false | undefined | undefined |
* | undefined | k | e | SSE-KMS, bucketKeyEnabled = e | k |
* | KMS | k | e | SSE-KMS, bucketKeyEnabled = e | k |
* | KMS | undefined | e | SSE-KMS, bucketKeyEnabled = e | new key |
* | KMS_MANAGED | undefined | e | SSE-KMS, bucketKeyEnabled = e | undefined |
* | S3_MANAGED | undefined | false | SSE-S3 | undefined |
* | UNENCRYPTED | undefined | true | ERROR! | ERROR! |
* | UNENCRYPTED | k | e | ERROR! | ERROR! |
* | KMS_MANAGED | k | e | ERROR! | ERROR! |
* | S3_MANAGED | undefined | true | ERROR! | ERROR! |
* | S3_MANAGED | k | e | ERROR! | ERROR! |
*/
private parseEncryption(props: BucketProps): {
bucketEncryption?: CfnBucket.BucketEncryptionProperty,
Expand Down

0 comments on commit c8115af

Please sign in to comment.