Class: AWSCDK::S3::StorageClass
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::S3::StorageClass
- Defined in:
- s3/storage_class.rb
Overview
Storage class to move an object to.
Class Method Summary collapse
-
.DEEP_ARCHIVE ⇒ AWSCDK::S3::StorageClass
Use for archiving data that rarely needs to be accessed.
-
.GLACIER ⇒ AWSCDK::S3::StorageClass
Storage class for long-term archival that can take between minutes and hours to access.
-
.GLACIER_INSTANT_RETRIEVAL ⇒ AWSCDK::S3::StorageClass
Storage class for long-term archival that can be accessed in a few milliseconds.
-
.INFREQUENT_ACCESS ⇒ AWSCDK::S3::StorageClass
Storage class for data that is accessed less frequently, but requires rapid access when needed.
-
.INTELLIGENT_TIERING ⇒ AWSCDK::S3::StorageClass
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.
- .jsii_overridable_methods ⇒ Object
-
.ONE_ZONE_INFREQUENT_ACCESS ⇒ AWSCDK::S3::StorageClass
Infrequent Access that's only stored in one availability zone.
Instance Method Summary collapse
-
#initialize(value) ⇒ StorageClass
constructor
A new instance of StorageClass.
- #to_string ⇒ String
- #value ⇒ String
Constructor Details
#initialize(value) ⇒ StorageClass
Returns a new instance of StorageClass.
9 10 11 12 |
# File 's3/storage_class.rb', line 9 def initialize(value) Jsii::Type.check_type(value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value") Jsii::Object.instance_method(:initialize).bind(self).call(value) end |
Class Method Details
.DEEP_ARCHIVE ⇒ AWSCDK::S3::StorageClass
Use for archiving data that rarely needs to be accessed.
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.
30 31 32 |
# File 's3/storage_class.rb', line 30 def self.DEEP_ARCHIVE() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_s3.StorageClass", "DEEP_ARCHIVE") end |
.GLACIER ⇒ AWSCDK::S3::StorageClass
Storage class for long-term archival that can take between minutes and hours to access.
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.
43 44 45 |
# File 's3/storage_class.rb', line 43 def self.GLACIER() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_s3.StorageClass", "GLACIER") end |
.GLACIER_INSTANT_RETRIEVAL ⇒ AWSCDK::S3::StorageClass
Storage class for long-term archival that can be accessed in a few milliseconds.
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.
56 57 58 |
# File 's3/storage_class.rb', line 56 def self.GLACIER_INSTANT_RETRIEVAL() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_s3.StorageClass", "GLACIER_INSTANT_RETRIEVAL") end |
.INFREQUENT_ACCESS ⇒ AWSCDK::S3::StorageClass
Storage class for data that is accessed less frequently, but requires rapid access when needed.
Has lower availability than Standard storage.
65 66 67 |
# File 's3/storage_class.rb', line 65 def self.INFREQUENT_ACCESS() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_s3.StorageClass", "INFREQUENT_ACCESS") end |
.INTELLIGENT_TIERING ⇒ AWSCDK::S3::StorageClass
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.
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.
79 80 81 |
# File 's3/storage_class.rb', line 79 def self.INTELLIGENT_TIERING() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_s3.StorageClass", "INTELLIGENT_TIERING") end |
.jsii_overridable_methods ⇒ Object
14 15 16 17 18 19 |
# File 's3/storage_class.rb', line 14 def self.jsii_overridable_methods { :value => { kind: :property, name: "value", is_optional: false }, :to_string => { kind: :method, name: "toString", is_optional: false }, } end |
.ONE_ZONE_INFREQUENT_ACCESS ⇒ AWSCDK::S3::StorageClass
Infrequent Access that's only stored in one availability zone.
Has lower availability than standard InfrequentAccess.
88 89 90 |
# File 's3/storage_class.rb', line 88 def self.ONE_ZONE_INFREQUENT_ACCESS() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_s3.StorageClass", "ONE_ZONE_INFREQUENT_ACCESS") end |
Instance Method Details
#to_string ⇒ String
98 99 100 |
# File 's3/storage_class.rb', line 98 def to_string() jsii_call_method("toString", []) end |
#value ⇒ String
93 94 95 |
# File 's3/storage_class.rb', line 93 def value() jsii_get_property("value") end |