@Stability(value=Stable) public static final class CfnBucket.ServerSideEncryptionByDefaultProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnBucket.ServerSideEncryptionByDefaultProperty>
CfnBucket.ServerSideEncryptionByDefaultProperty| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnBucket.ServerSideEncryptionByDefaultProperty |
build()
Builds the configured instance.
|
CfnBucket.ServerSideEncryptionByDefaultProperty.Builder |
kmsMasterKeyId(String kmsMasterKeyId)
Sets the value of
CfnBucket.ServerSideEncryptionByDefaultProperty.getKmsMasterKeyId() |
CfnBucket.ServerSideEncryptionByDefaultProperty.Builder |
sseAlgorithm(String sseAlgorithm)
Sets the value of
CfnBucket.ServerSideEncryptionByDefaultProperty.getSseAlgorithm() |
@Stability(value=Stable) public CfnBucket.ServerSideEncryptionByDefaultProperty.Builder sseAlgorithm(String sseAlgorithm)
CfnBucket.ServerSideEncryptionByDefaultProperty.getSseAlgorithm()sseAlgorithm - Server-side encryption algorithm to use for the default encryption. This parameter is required.this@Stability(value=Stable) public CfnBucket.ServerSideEncryptionByDefaultProperty.Builder kmsMasterKeyId(String kmsMasterKeyId)
CfnBucket.ServerSideEncryptionByDefaultProperty.getKmsMasterKeyId()kmsMasterKeyId - KMS key ID to use for the default encryption. This parameter is allowed if SSEAlgorithm is aws:kms.
You can specify the key ID or the Amazon Resource Name (ARN) of the CMK. However, if you are using encryption with cross-account operations, you must use a fully qualified CMK ARN. For more information, see Using encryption for cross-account operations .
For example:
1234abcd-12ab-34cd-56ef-1234567890abarn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
Amazon S3 only supports symmetric KMS keys and not asymmetric KMS keys. For more information, see Using Symmetric and Asymmetric Keys in the AWS Key Management Service Developer Guide .
this@Stability(value=Stable) public CfnBucket.ServerSideEncryptionByDefaultProperty build()
build in interface software.amazon.jsii.Builder<CfnBucket.ServerSideEncryptionByDefaultProperty>CfnBucket.ServerSideEncryptionByDefaultPropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.