Class: AWSCDK::S3Outposts::CfnBucket::FilterAndOperatorProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::S3Outposts::CfnBucket::FilterAndOperatorProperty
- Defined in:
- s3_outposts/cfn_bucket.rb
Overview
Instance Attribute Summary collapse
-
#prefix ⇒ String?
readonly
Prefix identifies one or more objects to which the rule applies.
-
#tags ⇒ Array<AWSCDK::S3Outposts::CfnBucket::FilterTagProperty>
readonly
All of these tags must exist in the object's tag set in order for the rule to apply.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(tags:, prefix: nil) ⇒ FilterAndOperatorProperty
constructor
A new instance of FilterAndOperatorProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(tags:, prefix: nil) ⇒ FilterAndOperatorProperty
Returns a new instance of FilterAndOperatorProperty.
604 605 606 607 608 609 |
# File 's3_outposts/cfn_bucket.rb', line 604 def initialize(tags:, prefix: nil) @tags = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::S3Outposts::CfnBucket::FilterTagProperty.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zM291dHBvc3RzLkNmbkJ1Y2tldC5GaWx0ZXJUYWdQcm9wZXJ0eSJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") @prefix = prefix Jsii::Type.check_type(@prefix, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "prefix") unless @prefix.nil? end |
Instance Attribute Details
#prefix ⇒ String? (readonly)
Prefix identifies one or more objects to which the rule applies.
620 621 622 |
# File 's3_outposts/cfn_bucket.rb', line 620 def prefix @prefix end |
#tags ⇒ Array<AWSCDK::S3Outposts::CfnBucket::FilterTagProperty> (readonly)
All of these tags must exist in the object's tag set in order for the rule to apply.
615 616 617 |
# File 's3_outposts/cfn_bucket.rb', line 615 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
622 623 624 625 626 627 |
# File 's3_outposts/cfn_bucket.rb', line 622 def self.jsii_properties { :tags => "tags", :prefix => "prefix", } end |
Instance Method Details
#to_jsii ⇒ Object
629 630 631 632 633 634 635 636 |
# File 's3_outposts/cfn_bucket.rb', line 629 def to_jsii result = {} result.merge!({ "tags" => @tags, "prefix" => @prefix, }) result.compact end |