Class: AWSCDK::S3Outposts::CfnBucket::FilterProperty

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

Overview

The container for the filter of the lifecycle rule.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(and_operator: nil, prefix: nil, tag: nil) ⇒ FilterProperty

Returns a new instance of FilterProperty.

Parameters:



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

#prefixString? (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

#tagAWSCDK::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_propertiesObject



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_jsiiObject



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