@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:48.160Z") public enum StorageClass extends java.lang.Enum<StorageClass>
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 |
---|
DEEP_ARCHIVE
'DEEP_ARCHIVE'.
|
GLACIER
'GLACIER'.
|
INTELLIGENT_TIERING
'INTELLIGENT_TIERING'.
|
ONEZONE_IA
'ONEZONE_IA'.
|
REDUCED_REDUNDANCY
'REDUCED_REDUNDANCY'.
|
STANDARD
'STANDARD'.
|
STANDARD_IA
'STANDARD_IA'.
|
Modifier and Type | Method and Description |
---|---|
static StorageClass |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static StorageClass[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StorageClass STANDARD
public static final StorageClass REDUCED_REDUNDANCY
public static final StorageClass STANDARD_IA
public static final StorageClass ONEZONE_IA
public static final StorageClass INTELLIGENT_TIERING
public static final StorageClass GLACIER
public static final StorageClass DEEP_ARCHIVE
public static StorageClass[] values()
for (StorageClass c : StorageClass.values()) System.out.println(c);
public static StorageClass 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