Class: AWSCDK::S3Outposts::CfnBucket::FilterProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::S3Outposts::CfnBucket::FilterProperty
- Defined in:
- s3_outposts/cfn_bucket.rb
Overview
The container for the filter of the lifecycle rule.
Instance Attribute Summary collapse
- #and_operator ⇒ AWSCDK::IResolvable, ... readonly
-
#prefix ⇒ String?
readonly
Prefix identifies one or more objects to which the rule applies.
-
#tag ⇒ AWSCDK::IResolvable, ...
readonly
Tag used to identify a subset of objects for an Amazon S3Outposts bucket.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(and_operator: nil, prefix: nil, tag: nil) ⇒ FilterProperty
constructor
A new instance of FilterProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(and_operator: nil, prefix: nil, tag: nil) ⇒ FilterProperty
Returns a new instance of FilterProperty.
648 649 650 651 652 653 654 655 |
# File 's3_outposts/cfn_bucket.rb', line 648 def initialize(and_operator: nil, prefix: nil, tag: nil) @and_operator = and_operator.is_a?(Hash) ? ::AWSCDK::S3Outposts::CfnBucket::FilterAndOperatorProperty.new(**and_operator.transform_keys(&:to_sym)) : and_operator Jsii::Type.check_type(@and_operator, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zM291dHBvc3RzLkNmbkJ1Y2tldC5GaWx0ZXJBbmRPcGVyYXRvclByb3BlcnR5In1dfX0=")), "andOperator") unless @and_operator.nil? @prefix = prefix Jsii::Type.check_type(@prefix, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "prefix") unless @prefix.nil? @tag = tag.is_a?(Hash) ? ::AWSCDK::S3Outposts::CfnBucket::FilterTagProperty.new(**tag.transform_keys(&:to_sym)) : tag Jsii::Type.check_type(@tag, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zM291dHBvc3RzLkNmbkJ1Y2tldC5GaWx0ZXJUYWdQcm9wZXJ0eSJ9XX19")), "tag") unless @tag.nil? end |
Instance Attribute Details
#and_operator ⇒ AWSCDK::IResolvable, ... (readonly)
659 660 661 |
# File 's3_outposts/cfn_bucket.rb', line 659 def and_operator @and_operator end |
#prefix ⇒ String? (readonly)
Prefix identifies one or more objects to which the rule applies.
664 665 666 |
# File 's3_outposts/cfn_bucket.rb', line 664 def prefix @prefix end |
#tag ⇒ AWSCDK::IResolvable, ... (readonly)
Tag used to identify a subset of objects for an Amazon S3Outposts bucket.
669 670 671 |
# File 's3_outposts/cfn_bucket.rb', line 669 def tag @tag end |
Class Method Details
.jsii_properties ⇒ Object
671 672 673 674 675 676 677 |
# File 's3_outposts/cfn_bucket.rb', line 671 def self.jsii_properties { :and_operator => "andOperator", :prefix => "prefix", :tag => "tag", } end |
Instance Method Details
#to_jsii ⇒ Object
679 680 681 682 683 684 685 686 687 |
# File 's3_outposts/cfn_bucket.rb', line 679 def to_jsii result = {} result.merge!({ "andOperator" => @and_operator, "prefix" => @prefix, "tag" => @tag, }) result.compact end |