@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:41.818Z") @Stability(value=Stable) public class StorageClass extends software.amazon.jsii.JsiiObject
Example:
// Example automatically generated from non-compiling source. May contain errors.
Bucket bucket = Bucket.Builder.create(this, "MyBucket")
.lifecycleRules(List.of(LifecycleRule.builder()
.abortIncompleteMultipartUploadAfter(Duration.minutes(30))
.enabled(false)
.expiration(Duration.days(30))
.expirationDate(new Date())
.expiredObjectDeleteMarker(false)
.id("id")
.noncurrentVersionExpiration(Duration.days(30))
// the properties below are optional
.noncurrentVersionsToRetain(123)
.noncurrentVersionTransitions(List.of(NoncurrentVersionTransition.builder()
.storageClass(StorageClass.GLACIER)
.transitionAfter(Duration.days(30))
// the properties below are optional
.noncurrentVersionsToRetain(123)
.build()))
.objectSizeGreaterThan(500)
.prefix("prefix")
.objectSizeLessThan(10000)
.transitions(List.of(Transition.builder()
.storageClass(StorageClass.GLACIER)
// the properties below are optional
.transitionAfter(Duration.days(30))
.transitionDate(new Date())
.build()))
.build()))
.build();
| Modifier and Type | Field and Description |
|---|---|
static StorageClass |
DEEP_ARCHIVE
Use for archiving data that rarely needs to be accessed.
|
static StorageClass |
GLACIER
Storage class for long-term archival that can take between minutes and hours to access.
|
static StorageClass |
GLACIER_INSTANT_RETRIEVAL
Storage class for long-term archival that can be accessed in a few milliseconds.
|
static StorageClass |
INFREQUENT_ACCESS
Storage class for data that is accessed less frequently, but requires rapid access when needed.
|
static StorageClass |
INTELLIGENT_TIERING
The INTELLIGENT_TIERING storage class is designed to optimize storage costs by automatically moving data to the most cost-effective storage access tier, without performance impact or operational overhead.
|
static StorageClass |
ONE_ZONE_INFREQUENT_ACCESS
Infrequent Access that's only stored in one availability zone.
|
| Modifier | Constructor and Description |
|---|---|
protected |
StorageClass(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
StorageClass(software.amazon.jsii.JsiiObjectRef objRef) |
|
StorageClass(String value) |
| Modifier and Type | Method and Description |
|---|---|
String |
getValue() |
String |
toString() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final StorageClass DEEP_ARCHIVE
Data stored in the DEEP_ARCHIVE storage class has a minimum storage duration period of 180 days and a default retrieval time of 12 hours. If you delete an object before the 180-day minimum, you are charged for 180 days. For pricing information, see Amazon S3 Pricing.
@Stability(value=Stable) public static final StorageClass GLACIER
Use for archives where portions of the data might need to be retrieved in minutes. Data stored in the GLACIER storage class has a minimum storage duration period of 90 days and can be accessed in as little as 1-5 minutes using expedited retrieval. If you delete an object before the 90-day minimum, you are charged for 90 days.
@Stability(value=Stable) public static final StorageClass GLACIER_INSTANT_RETRIEVAL
It is ideal for data that is accessed once or twice per quarter, and that requires immediate access. Data stored in the GLACIER_IR storage class has a minimum storage duration period of 90 days and can be accessed in as milliseconds. If you delete an object before the 90-day minimum, you are charged for 90 days.
@Stability(value=Stable) public static final StorageClass INFREQUENT_ACCESS
Has lower availability than Standard storage.
@Stability(value=Stable) public static final StorageClass INTELLIGENT_TIERING
INTELLIGENT_TIERING delivers automatic cost savings by moving data on a granular object level between two access tiers, a frequent access tier and a lower-cost infrequent access tier, when access patterns change. The INTELLIGENT_TIERING storage class is ideal if you want to optimize storage costs automatically for long-lived data when access patterns are unknown or unpredictable.
@Stability(value=Stable) public static final StorageClass ONE_ZONE_INFREQUENT_ACCESS
Has lower availability than standard InfrequentAccess.
protected StorageClass(software.amazon.jsii.JsiiObjectRef objRef)
protected StorageClass(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public StorageClass(@NotNull
String value)
value - This parameter is required.Copyright © 2022. All rights reserved.