Class: AWSCDK::S3Outposts::CfnBucket::FilterAndOperatorProperty

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

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tags:, prefix: nil) ⇒ FilterAndOperatorProperty

Returns a new instance of FilterAndOperatorProperty.

Parameters:

  • tags (Array<AWSCDK::S3Outposts::CfnBucket::FilterTagProperty>)

    All of these tags must exist in the object's tag set in order for the rule to apply.

  • prefix (String, nil) (defaults to: nil)

    Prefix identifies one or more objects to which the rule applies.



604
605
606
607
608
609
# File 's3_outposts/cfn_bucket.rb', line 604

def initialize(tags:, prefix: nil)
  @tags = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::S3Outposts::CfnBucket::FilterTagProperty.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  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

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

#tagsArray<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
  @tags
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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