Class: AWSCDK::S3::CfnBucket::S3KeyFilterProperty

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

Overview

A container for object key name prefix and suffix filtering rules.

For more information about object key name filtering, see Configuring event notifications using object key name filtering in the Amazon S3 User Guide .

The same type of filter rule cannot be used more than once. For example, you cannot specify two prefix rules.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rules:) ⇒ S3KeyFilterProperty

Returns a new instance of S3KeyFilterProperty.

Parameters:



4126
4127
4128
4129
# File 's3/cfn_bucket.rb', line 4126

def initialize(rules:)
  @rules = rules
  Jsii::Type.check_type(@rules, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfczMuQ2ZuQnVja2V0LkZpbHRlclJ1bGVQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "rules")
end

Instance Attribute Details

#rulesAWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::S3::CfnBucket::FilterRuleProperty> (readonly)

A list of containers for the key-value pair that defines the criteria for the filter rule.



4135
4136
4137
# File 's3/cfn_bucket.rb', line 4135

def rules
  @rules
end

Class Method Details

.jsii_propertiesObject



4137
4138
4139
4140
4141
# File 's3/cfn_bucket.rb', line 4137

def self.jsii_properties
  {
    :rules => "rules",
  }
end

Instance Method Details

#to_jsiiObject



4143
4144
4145
4146
4147
4148
4149
# File 's3/cfn_bucket.rb', line 4143

def to_jsii
  result = {}
  result.merge!({
    "rules" => @rules,
  })
  result.compact
end