Class: AWSCDK::S3::CfnBucket::IntelligentTieringConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
s3/cfn_bucket.rb

Overview

Specifies the S3 Intelligent-Tiering configuration for an Amazon S3 bucket.

For information about the S3 Intelligent-Tiering storage class, see Storage class for automatically optimizing frequently and infrequently accessed objects .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id:, status:, tierings:, prefix: nil, tag_filters: nil) ⇒ IntelligentTieringConfigurationProperty

Returns a new instance of IntelligentTieringConfigurationProperty.

Parameters:



1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
# File 's3/cfn_bucket.rb', line 1783

def initialize(id:, status:, tierings:, prefix: nil, tag_filters: nil)
  @id = id
  Jsii::Type.check_type(@id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id")
  @status = status
  Jsii::Type.check_type(@status, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "status")
  @tierings = tierings
  Jsii::Type.check_type(@tierings, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfczMuQ2ZuQnVja2V0LlRpZXJpbmdQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "tierings")
  @prefix = prefix
  Jsii::Type.check_type(@prefix, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "prefix") unless @prefix.nil?
  @tag_filters = tag_filters
  Jsii::Type.check_type(@tag_filters, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfczMuQ2ZuQnVja2V0LlRhZ0ZpbHRlclByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "tagFilters") unless @tag_filters.nil?
end

Instance Attribute Details

#idString (readonly)

The ID used to identify the S3 Intelligent-Tiering configuration.



1800
1801
1802
# File 's3/cfn_bucket.rb', line 1800

def id
  @id
end

#prefixString? (readonly)

An object key name prefix that identifies the subset of objects to which the rule applies.



1819
1820
1821
# File 's3/cfn_bucket.rb', line 1819

def prefix
  @prefix
end

#statusString (readonly)

Specifies the status of the configuration.



1805
1806
1807
# File 's3/cfn_bucket.rb', line 1805

def status
  @status
end

#tag_filtersAWSCDK::IResolvable, ... (readonly)

A container for a key-value pair.



1824
1825
1826
# File 's3/cfn_bucket.rb', line 1824

def tag_filters
  @tag_filters
end

#tieringsAWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::S3::CfnBucket::TieringProperty> (readonly)

Specifies a list of S3 Intelligent-Tiering storage class tiers in the configuration.

At least one tier must be defined in the list. At most, you can specify two tiers in the list, one for each available AccessTier: ARCHIVE_ACCESS and DEEP_ARCHIVE_ACCESS .

You only need Intelligent Tiering Configuration enabled on a bucket if you want to automatically move objects stored in the Intelligent-Tiering storage class to Archive Access or Deep Archive Access tiers.



1814
1815
1816
# File 's3/cfn_bucket.rb', line 1814

def tierings
  @tierings
end

Class Method Details

.jsii_propertiesObject



1826
1827
1828
1829
1830
1831
1832
1833
1834
# File 's3/cfn_bucket.rb', line 1826

def self.jsii_properties
  {
    :id => "id",
    :status => "status",
    :tierings => "tierings",
    :prefix => "prefix",
    :tag_filters => "tagFilters",
  }
end

Instance Method Details

#to_jsiiObject



1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
# File 's3/cfn_bucket.rb', line 1836

def to_jsii
  result = {}
  result.merge!({
    "id" => @id,
    "status" => @status,
    "tierings" => @tierings,
    "prefix" => @prefix,
    "tagFilters" => @tag_filters,
  })
  result.compact
end