Class: AWSCDK::S3::CfnBucket::TieringProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::S3::CfnBucket::TieringProperty
- Defined in:
- s3/cfn_bucket.rb
Overview
The S3 Intelligent-Tiering storage class is designed to optimize storage costs by automatically moving data to the most cost-effective storage access tier, without additional operational overhead.
Instance Attribute Summary collapse
-
#access_tier ⇒ String
readonly
S3 Intelligent-Tiering access tier.
-
#days ⇒ Numeric
readonly
The number of consecutive days of no access after which an object will be eligible to be transitioned to the corresponding tier.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(access_tier:, days:) ⇒ TieringProperty
constructor
A new instance of TieringProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(access_tier:, days:) ⇒ TieringProperty
Returns a new instance of TieringProperty.
4567 4568 4569 4570 4571 4572 |
# File 's3/cfn_bucket.rb', line 4567 def initialize(access_tier:, days:) @access_tier = access_tier Jsii::Type.check_type(@access_tier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "accessTier") @days = days Jsii::Type.check_type(@days, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "days") end |
Instance Attribute Details
#access_tier ⇒ String (readonly)
S3 Intelligent-Tiering access tier.
See Storage class for automatically optimizing frequently and infrequently accessed objects for a list of access tiers in the S3 Intelligent-Tiering storage class.
4580 4581 4582 |
# File 's3/cfn_bucket.rb', line 4580 def access_tier @access_tier end |
#days ⇒ Numeric (readonly)
The number of consecutive days of no access after which an object will be eligible to be transitioned to the corresponding tier.
The minimum number of days specified for Archive Access tier must be at least 90 days and Deep Archive Access tier must be at least 180 days. The maximum can be up to 2 years (730 days).
4587 4588 4589 |
# File 's3/cfn_bucket.rb', line 4587 def days @days end |
Class Method Details
.jsii_properties ⇒ Object
4589 4590 4591 4592 4593 4594 |
# File 's3/cfn_bucket.rb', line 4589 def self.jsii_properties { :access_tier => "accessTier", :days => "days", } end |
Instance Method Details
#to_jsii ⇒ Object
4596 4597 4598 4599 4600 4601 4602 4603 |
# File 's3/cfn_bucket.rb', line 4596 def to_jsii result = {} result.merge!({ "accessTier" => @access_tier, "days" => @days, }) result.compact end |