Class: AWSCDK::Backup::CfnBackupSelection::ConditionResourceTypeProperty

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

Overview

Specifies an object that contains an array of triplets made up of a condition type (such as STRINGEQUALS ), a key, and a value.

Conditions are used to filter resources in a selection that is assigned to a backup plan.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(condition_key:, condition_type:, condition_value:) ⇒ ConditionResourceTypeProperty

Returns a new instance of ConditionResourceTypeProperty.

Parameters:

  • condition_key (String)

    The key in a key-value pair.

  • condition_type (String)

    An operation, such as STRINGEQUALS , that is applied to a key-value pair used to filter resources in a selection.

  • condition_value (String)

    The value in a key-value pair.



688
689
690
691
692
693
694
695
# File 'backup/cfn_backup_selection.rb', line 688

def initialize(condition_key:, condition_type:, condition_value:)
  @condition_key = condition_key
  Jsii::Type.check_type(@condition_key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "conditionKey")
  @condition_type = condition_type
  Jsii::Type.check_type(@condition_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "conditionType")
  @condition_value = condition_value
  Jsii::Type.check_type(@condition_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "conditionValue")
end

Instance Attribute Details

#condition_keyString (readonly)

The key in a key-value pair.

For example, in "Department": "accounting" , "Department" is the key.



703
704
705
# File 'backup/cfn_backup_selection.rb', line 703

def condition_key
  @condition_key
end

#condition_typeString (readonly)

An operation, such as STRINGEQUALS , that is applied to a key-value pair used to filter resources in a selection.



708
709
710
# File 'backup/cfn_backup_selection.rb', line 708

def condition_type
  @condition_type
end

#condition_valueString (readonly)

The value in a key-value pair.

For example, in "Department": "accounting" , "accounting" is the value.



715
716
717
# File 'backup/cfn_backup_selection.rb', line 715

def condition_value
  @condition_value
end

Class Method Details

.jsii_propertiesObject



717
718
719
720
721
722
723
# File 'backup/cfn_backup_selection.rb', line 717

def self.jsii_properties
  {
    :condition_key => "conditionKey",
    :condition_type => "conditionType",
    :condition_value => "conditionValue",
  }
end

Instance Method Details

#to_jsiiObject



725
726
727
728
729
730
731
732
733
# File 'backup/cfn_backup_selection.rb', line 725

def to_jsii
  result = {}
  result.merge!({
    "conditionKey" => @condition_key,
    "conditionType" => @condition_type,
    "conditionValue" => @condition_value,
  })
  result.compact
end