@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-14T16:25:33.904Z") public enum ServerSideEncryption extends java.lang.Enum<ServerSideEncryption>
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(UserDefinedObjectMetadata.builder().A("1").b("2").build()) // 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();
Enum Constant and Description |
---|
AES_256
'AES256'.
|
AWS_KMS
'aws:kms'.
|
Modifier and Type | Method and Description |
---|---|
static ServerSideEncryption |
valueOf(java.lang.String name)
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.
|
public static final ServerSideEncryption AES_256
public static final ServerSideEncryption AWS_KMS
public static ServerSideEncryption[] values()
for (ServerSideEncryption c : ServerSideEncryption.values()) System.out.println(c);
public static ServerSideEncryption valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null