Class: AWSCDK::S3::CfnBucket::TieringProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(access_tier:, days:) ⇒ TieringProperty

Returns a new instance of TieringProperty.

Parameters:

  • access_tier (String)

    S3 Intelligent-Tiering access tier.

  • days (Numeric)

    The number of consecutive days of no access after which an object will be eligible to be transitioned to the corresponding tier.



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_tierString (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

#daysNumeric (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_propertiesObject



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_jsiiObject



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