Enum ServerSideEncryption
java.lang.Object
java.lang.Enum<ServerSideEncryption>
software.amazon.awscdk.services.s3.deployment.ServerSideEncryption
- All Implemented Interfaces:
Serializable
,Comparable<ServerSideEncryption>
,java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-22T02:24:08.956Z")
@Stability(Stable)
public enum ServerSideEncryption
extends Enum<ServerSideEncryption>
Indicates whether server-side encryption is enabled for the object, and whether that encryption is from the AWS Key Management Service (AWS KMS) or from Amazon S3 managed encryption (SSE-S3).
Example:
Bucket websiteBucket = Bucket.Builder.create(this, "WebsiteBucket") .websiteIndexDocument("index.html") .publicReadAccess(true) .build(); BucketDeployment.Builder.create(this, "DeployWebsite") .sources(List.of(Source.asset("./website-dist"))) .destinationBucket(websiteBucket) .destinationKeyPrefix("web/static") // optional prefix in destination bucket .metadata(Map.of("A", "1", "b", "2")) // user-defined metadata // system-defined metadata .contentType("text/html") .contentLanguage("en") .storageClass(StorageClass.INTELLIGENT_TIERING) .serverSideEncryption(ServerSideEncryption.AES_256) .cacheControl(List.of(CacheControl.setPublic(), CacheControl.maxAge(Duration.hours(1)))) .accessControl(BucketAccessControl.BUCKET_OWNER_FULL_CONTROL) .build();
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ServerSideEncryption
Returns the enum constant of this type with the specified name.static ServerSideEncryption[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
AES_256
'AES256'. -
AWS_KMS
'aws:kms'.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-