Class: AWSCDK::S3::CfnBucket::ReplicationRuleAndOperatorProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::S3::CfnBucket::ReplicationRuleAndOperatorProperty
- Defined in:
- s3/cfn_bucket.rb
Overview
A container for specifying rule filters.
The filters determine the subset of objects to which the rule applies. This element is required only if you specify more than one filter.
For example:
- If you specify both a
Prefixand aTagFilter, wrap these filters in anAndtag. - If you specify a filter based on multiple tags, wrap the
TagFilterelements in anAndtag
Instance Attribute Summary collapse
-
#prefix ⇒ String?
readonly
An object key name prefix that identifies the subset of objects to which the rule applies.
-
#tag_filters ⇒ AWSCDK::IResolvable, ...
readonly
An array of tags containing key and value pairs.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(prefix: nil, tag_filters: nil) ⇒ ReplicationRuleAndOperatorProperty
constructor
A new instance of ReplicationRuleAndOperatorProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(prefix: nil, tag_filters: nil) ⇒ ReplicationRuleAndOperatorProperty
Returns a new instance of ReplicationRuleAndOperatorProperty.
3500 3501 3502 3503 3504 3505 |
# File 's3/cfn_bucket.rb', line 3500 def initialize(prefix: nil, tag_filters: nil) @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
#prefix ⇒ String? (readonly)
An object key name prefix that identifies the subset of objects to which the rule applies.
3511 3512 3513 |
# File 's3/cfn_bucket.rb', line 3511 def prefix @prefix end |
#tag_filters ⇒ AWSCDK::IResolvable, ... (readonly)
An array of tags containing key and value pairs.
3516 3517 3518 |
# File 's3/cfn_bucket.rb', line 3516 def tag_filters @tag_filters end |
Class Method Details
.jsii_properties ⇒ Object
3518 3519 3520 3521 3522 3523 |
# File 's3/cfn_bucket.rb', line 3518 def self.jsii_properties { :prefix => "prefix", :tag_filters => "tagFilters", } end |
Instance Method Details
#to_jsii ⇒ Object
3525 3526 3527 3528 3529 3530 3531 3532 |
# File 's3/cfn_bucket.rb', line 3525 def to_jsii result = {} result.merge!({ "prefix" => @prefix, "tagFilters" => @tag_filters, }) result.compact end |