Class: AWSCDK::S3::CfnBucket::NotificationFilterProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::S3::CfnBucket::NotificationFilterProperty
- 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
-
#s3_key ⇒ AWSCDK::IResolvable, AWSCDK::S3::CfnBucket::S3KeyFilterProperty
readonly
A container for object key name prefix and suffix filtering rules.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(s3_key:) ⇒ NotificationFilterProperty
constructor
A new instance of NotificationFilterProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(s3_key:) ⇒ NotificationFilterProperty
Returns a new instance of NotificationFilterProperty.
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_key ⇒ AWSCDK::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_properties ⇒ Object
2761 2762 2763 2764 2765 |
# File 's3/cfn_bucket.rb', line 2761 def self.jsii_properties { :s3_key => "s3Key", } end |
Instance Method Details
#to_jsii ⇒ Object
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 |