File tree 1 file changed +16
-1
lines changed
packages/aws-cdk-lib/aws-s3/lib
1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -1983,7 +1983,22 @@ export class Bucket extends BucketBase {
1983
1983
1984
1984
/**
1985
1985
* Set up key properties and return the Bucket encryption property from the
1986
- * user's configuration.
1986
+ * user's configuration, according to the following table:
1987
+ *
1988
+ * | props.encryption | props.encryptionKey | props.bucketKeyEnabled | bucketEncryption (return value) | encryptionKey (return value) |
1989
+ * |------------------|---------------------|------------------------|---------------------------------|------------------------------|
1990
+ * | undefined | undefined | e | undefined | undefined |
1991
+ * | UNENCRYPTED | undefined | false | undefined | undefined |
1992
+ * | undefined | k | e | SSE-KMS, bucketKeyEnabled = e | k |
1993
+ * | KMS | k | e | SSE-KMS, bucketKeyEnabled = e | k |
1994
+ * | KMS | undefined | e | SSE-KMS, bucketKeyEnabled = e | new key |
1995
+ * | KMS_MANAGED | undefined | e | SSE-KMS, bucketKeyEnabled = e | undefined |
1996
+ * | S3_MANAGED | undefined | false | SSE-S3 | undefined |
1997
+ * | UNENCRYPTED | undefined | true | ERROR! | ERROR! |
1998
+ * | UNENCRYPTED | k | e | ERROR! | ERROR! |
1999
+ * | KMS_MANAGED | k | e | ERROR! | ERROR! |
2000
+ * | S3_MANAGED | undefined | true | ERROR! | ERROR! |
2001
+ * | S3_MANAGED | k | e | ERROR! | ERROR! |
1987
2002
*/
1988
2003
private parseEncryption ( props : BucketProps ) : {
1989
2004
bucketEncryption ?: CfnBucket . BucketEncryptionProperty ,
You can’t perform that action at this time.
0 commit comments