@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:41.829Z") @Stability(value=Stable) public enum StorageClass extends 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(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.
|
@Stability(value=Stable) public static final StorageClass STANDARD
@Stability(value=Stable) public static final StorageClass REDUCED_REDUNDANCY
@Stability(value=Stable) public static final StorageClass STANDARD_IA
@Stability(value=Stable) public static final StorageClass ONEZONE_IA
@Stability(value=Stable) public static final StorageClass INTELLIGENT_TIERING
@Stability(value=Stable) public static final StorageClass GLACIER
@Stability(value=Stable) public static final StorageClass DEEP_ARCHIVE
public static StorageClass[] values()
for (StorageClass c : StorageClass.values()) System.out.println(c);
public static StorageClass valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2022. All rights reserved.