Class: AWSCDK::S3::IntelligentTieringConfiguration
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::S3::IntelligentTieringConfiguration
- Defined in:
- s3/intelligent_tiering_configuration.rb
Overview
The intelligent tiering configuration.
Instance Attribute Summary collapse
-
#archive_access_tier_time ⇒ AWSCDK::Duration?
readonly
When enabled, Intelligent-Tiering will automatically move objects that haven’t been accessed for a minimum of 90 days to the Archive Access tier.
-
#deep_archive_access_tier_time ⇒ AWSCDK::Duration?
readonly
When enabled, Intelligent-Tiering will automatically move objects that haven’t been accessed for a minimum of 180 days to the Deep Archive Access tier.
-
#name ⇒ String
readonly
Configuration name.
-
#prefix ⇒ String?
readonly
Add a filter to limit the scope of this configuration to a single prefix.
-
#tags ⇒ Array<AWSCDK::S3::Tag>?
readonly
You can limit the scope of this rule to the key value pairs added below.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, archive_access_tier_time: nil, deep_archive_access_tier_time: nil, prefix: nil, tags: nil) ⇒ IntelligentTieringConfiguration
constructor
A new instance of IntelligentTieringConfiguration.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, archive_access_tier_time: nil, deep_archive_access_tier_time: nil, prefix: nil, tags: nil) ⇒ IntelligentTieringConfiguration
Returns a new instance of IntelligentTieringConfiguration.
12 13 14 15 16 17 18 19 20 21 22 23 |
# File 's3/intelligent_tiering_configuration.rb', line 12 def initialize(name:, archive_access_tier_time: nil, deep_archive_access_tier_time: nil, prefix: nil, tags: nil) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @archive_access_tier_time = archive_access_tier_time Jsii::Type.check_type(@archive_access_tier_time, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5EdXJhdGlvbiJ9")), "archiveAccessTierTime") unless @archive_access_tier_time.nil? @deep_archive_access_tier_time = deep_archive_access_tier_time Jsii::Type.check_type(@deep_archive_access_tier_time, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5EdXJhdGlvbiJ9")), "deepArchiveAccessTierTime") unless @deep_archive_access_tier_time.nil? @prefix = prefix Jsii::Type.check_type(@prefix, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "prefix") unless @prefix.nil? @tags = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::S3::Tag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zMy5UYWcifSwia2luZCI6ImFycmF5In19")), "tags") unless @tags.nil? end |
Instance Attribute Details
#archive_access_tier_time ⇒ AWSCDK::Duration? (readonly)
Default: Objects will not move to Glacier
When enabled, Intelligent-Tiering will automatically move objects that haven’t been accessed for a minimum of 90 days to the Archive Access tier.
33 34 35 |
# File 's3/intelligent_tiering_configuration.rb', line 33 def archive_access_tier_time @archive_access_tier_time end |
#deep_archive_access_tier_time ⇒ AWSCDK::Duration? (readonly)
Default: Objects will not move to Glacier Deep Access
When enabled, Intelligent-Tiering will automatically move objects that haven’t been accessed for a minimum of 180 days to the Deep Archive Access tier.
38 39 40 |
# File 's3/intelligent_tiering_configuration.rb', line 38 def deep_archive_access_tier_time @deep_archive_access_tier_time end |
#name ⇒ String (readonly)
Configuration name.
28 29 30 |
# File 's3/intelligent_tiering_configuration.rb', line 28 def name @name end |
#prefix ⇒ String? (readonly)
Default: this configuration will apply to all objects in the bucket.
Add a filter to limit the scope of this configuration to a single prefix.
43 44 45 |
# File 's3/intelligent_tiering_configuration.rb', line 43 def prefix @prefix end |
#tags ⇒ Array<AWSCDK::S3::Tag>? (readonly)
Default: No filtering will be performed on tags
You can limit the scope of this rule to the key value pairs added below.
48 49 50 |
# File 's3/intelligent_tiering_configuration.rb', line 48 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
50 51 52 53 54 55 56 57 58 |
# File 's3/intelligent_tiering_configuration.rb', line 50 def self.jsii_properties { :name => "name", :archive_access_tier_time => "archiveAccessTierTime", :deep_archive_access_tier_time => "deepArchiveAccessTierTime", :prefix => "prefix", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
60 61 62 63 64 65 66 67 68 69 70 |
# File 's3/intelligent_tiering_configuration.rb', line 60 def to_jsii result = {} result.merge!({ "name" => @name, "archiveAccessTierTime" => @archive_access_tier_time, "deepArchiveAccessTierTime" => @deep_archive_access_tier_time, "prefix" => @prefix, "tags" => @tags, }) result.compact end |