Class: AWSCDK::S3::CfnBucket::ReplicationRuleAndOperatorProperty

Inherits:
Jsii::Struct
  • Object
show all
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 Prefix and a TagFilter , wrap these filters in an And tag.
  • If you specify a filter based on multiple tags, wrap the TagFilter elements in an And tag

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(prefix: nil, tag_filters: nil) ⇒ ReplicationRuleAndOperatorProperty

Returns a new instance of ReplicationRuleAndOperatorProperty.

Parameters:



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

#prefixString? (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_filtersAWSCDK::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_propertiesObject



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_jsiiObject



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