Class: AWSCDK::Backup::CfnRestoreTestingSelection::ProtectedResourceConditionsProperty

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

Overview

The conditions that you define for resources in your restore testing plan using tags.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(string_equals: nil, string_not_equals: nil) ⇒ ProtectedResourceConditionsProperty

Returns a new instance of ProtectedResourceConditionsProperty.

Parameters:



643
644
645
646
647
648
# File 'backup/cfn_restore_testing_selection.rb', line 643

def initialize(string_equals: nil, string_not_equals: nil)
  @string_equals = string_equals
  Jsii::Type.check_type(@string_equals, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmFja3VwLkNmblJlc3RvcmVUZXN0aW5nU2VsZWN0aW9uLktleVZhbHVlUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "stringEquals") unless @string_equals.nil?
  @string_not_equals = string_not_equals
  Jsii::Type.check_type(@string_not_equals, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmFja3VwLkNmblJlc3RvcmVUZXN0aW5nU2VsZWN0aW9uLktleVZhbHVlUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "stringNotEquals") unless @string_not_equals.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."



656
657
658
# File 'backup/cfn_restore_testing_selection.rb', line 656

def string_equals
  @string_equals
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."



663
664
665
# File 'backup/cfn_restore_testing_selection.rb', line 663

def string_not_equals
  @string_not_equals
end

Class Method Details

.jsii_propertiesObject



665
666
667
668
669
670
# File 'backup/cfn_restore_testing_selection.rb', line 665

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

Instance Method Details

#to_jsiiObject



672
673
674
675
676
677
678
679
# File 'backup/cfn_restore_testing_selection.rb', line 672

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