Class: AWSCDK::Backup::CfnBackupSelection::ConditionsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
backup/cfn_backup_selection.rb

Overview

Contains information about which resources to include or exclude from a backup plan using their tags.

Conditions are case sensitive.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(string_equals: nil, string_like: nil, string_not_equals: nil, string_not_like: nil) ⇒ ConditionsProperty

Returns a new instance of ConditionsProperty.

Parameters:



748
749
750
751
752
753
754
755
756
757
# File 'backup/cfn_backup_selection.rb', line 748

def initialize(string_equals: nil, string_like: nil, string_not_equals: nil, string_not_like: nil)
  @string_equals = string_equals
  Jsii::Type.check_type(@string_equals, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmFja3VwLkNmbkJhY2t1cFNlbGVjdGlvbi5Db25kaXRpb25QYXJhbWV0ZXJQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "stringEquals") unless @string_equals.nil?
  @string_like = string_like
  Jsii::Type.check_type(@string_like, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmFja3VwLkNmbkJhY2t1cFNlbGVjdGlvbi5Db25kaXRpb25QYXJhbWV0ZXJQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "stringLike") unless @string_like.nil?
  @string_not_equals = string_not_equals
  Jsii::Type.check_type(@string_not_equals, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmFja3VwLkNmbkJhY2t1cFNlbGVjdGlvbi5Db25kaXRpb25QYXJhbWV0ZXJQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "stringNotEquals") unless @string_not_equals.nil?
  @string_not_like = string_not_like
  Jsii::Type.check_type(@string_not_like, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmFja3VwLkNmbkJhY2t1cFNlbGVjdGlvbi5Db25kaXRpb25QYXJhbWV0ZXJQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "stringNotLike") unless @string_not_like.nil?
end

Instance Attribute Details

#string_equalsAWSCDK::IResolvable, ... (readonly)

Filters the values of your tagged resources for only those resources that you tagged with the same value.

Also called "exact matching."



765
766
767
# File 'backup/cfn_backup_selection.rb', line 765

def string_equals
  @string_equals
end

#string_likeAWSCDK::IResolvable, ... (readonly)

Filters the values of your tagged resources for matching tag values with the use of a wildcard character (*) anywhere in the string.

For example, "prod*" or "rod" matches the tag value "production".



772
773
774
# File 'backup/cfn_backup_selection.rb', line 772

def string_like
  @string_like
end

#string_not_equalsAWSCDK::IResolvable, ... (readonly)

Filters the values of your tagged resources for only those resources that you tagged that do not have the same value.

Also called "negated matching."



779
780
781
# File 'backup/cfn_backup_selection.rb', line 779

def string_not_equals
  @string_not_equals
end

#string_not_likeAWSCDK::IResolvable, ... (readonly)

Filters the values of your tagged resources for non-matching tag values with the use of a wildcard character (*) anywhere in the string.



784
785
786
# File 'backup/cfn_backup_selection.rb', line 784

def string_not_like
  @string_not_like
end

Class Method Details

.jsii_propertiesObject



786
787
788
789
790
791
792
793
# File 'backup/cfn_backup_selection.rb', line 786

def self.jsii_properties
  {
    :string_equals => "stringEquals",
    :string_like => "stringLike",
    :string_not_equals => "stringNotEquals",
    :string_not_like => "stringNotLike",
  }
end

Instance Method Details

#to_jsiiObject



795
796
797
798
799
800
801
802
803
804
# File 'backup/cfn_backup_selection.rb', line 795

def to_jsii
  result = {}
  result.merge!({
    "stringEquals" => @string_equals,
    "stringLike" => @string_like,
    "stringNotEquals" => @string_not_equals,
    "stringNotLike" => @string_not_like,
  })
  result.compact
end