Class: AWSCDK::S3::CfnBucket::NotificationFilterProperty

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

Overview

Specifies object key name filtering rules.

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(s3_key:) ⇒ NotificationFilterProperty

Returns a new instance of NotificationFilterProperty.

Parameters:



2750
2751
2752
2753
# File 's3/cfn_bucket.rb', line 2750

def initialize(s3_key:)
  @s3_key = s3_key.is_a?(Hash) ? ::AWSCDK::S3::CfnBucket::S3KeyFilterProperty.new(**s3_key.transform_keys(&:to_sym)) : s3_key
  Jsii::Type.check_type(@s3_key, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zMy5DZm5CdWNrZXQuUzNLZXlGaWx0ZXJQcm9wZXJ0eSJ9XX19")), "s3Key")
end

Instance Attribute Details

#s3_keyAWSCDK::IResolvable, AWSCDK::S3::CfnBucket::S3KeyFilterProperty (readonly)

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



2759
2760
2761
# File 's3/cfn_bucket.rb', line 2759

def s3_key
  @s3_key
end

Class Method Details

.jsii_propertiesObject



2761
2762
2763
2764
2765
# File 's3/cfn_bucket.rb', line 2761

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

Instance Method Details

#to_jsiiObject



2767
2768
2769
2770
2771
2772
2773
# File 's3/cfn_bucket.rb', line 2767

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