Class: AWSCDK::Backup::CfnBackupSelection::ConditionResourceTypeProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Backup::CfnBackupSelection::ConditionResourceTypeProperty
- 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
-
#condition_key ⇒ String
readonly
The key in a key-value pair.
-
#condition_type ⇒ String
readonly
An operation, such as
STRINGEQUALS, that is applied to a key-value pair used to filter resources in a selection. -
#condition_value ⇒ String
readonly
The value in a key-value pair.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(condition_key:, condition_type:, condition_value:) ⇒ ConditionResourceTypeProperty
constructor
A new instance of ConditionResourceTypeProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(condition_key:, condition_type:, condition_value:) ⇒ ConditionResourceTypeProperty
Returns a new instance of ConditionResourceTypeProperty.
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_key ⇒ String (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_type ⇒ String (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_value ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |