Class: AWSCDK::Backup::CfnBackupSelection::ConditionParameterProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Backup::CfnBackupSelection::ConditionParameterProperty
- Defined in:
- backup/cfn_backup_selection.rb
Overview
Includes information about tags you define to assign tagged resources to a backup plan.
Include the prefix aws:ResourceTag in your tags. For example, "aws:ResourceTag/TagKey1": "Value1" .
Instance Attribute Summary collapse
-
#condition_key ⇒ String?
readonly
The key in a key-value pair.
-
#condition_value ⇒ String?
readonly
The value in a key-value pair.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(condition_key: nil, condition_value: nil) ⇒ ConditionParameterProperty
constructor
A new instance of ConditionParameterProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(condition_key: nil, condition_value: nil) ⇒ ConditionParameterProperty
Returns a new instance of ConditionParameterProperty.
638 639 640 641 642 643 |
# File 'backup/cfn_backup_selection.rb', line 638 def initialize(condition_key: nil, condition_value: nil) @condition_key = condition_key Jsii::Type.check_type(@condition_key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "conditionKey") unless @condition_key.nil? @condition_value = condition_value Jsii::Type.check_type(@condition_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "conditionValue") unless @condition_value.nil? end |
Instance Attribute Details
#condition_key ⇒ String? (readonly)
The key in a key-value pair.
For example, in the tag Department: Accounting , Department is the key.
651 652 653 |
# File 'backup/cfn_backup_selection.rb', line 651 def condition_key @condition_key end |
#condition_value ⇒ String? (readonly)
The value in a key-value pair.
For example, in the tag Department: Accounting , Accounting is the value.
658 659 660 |
# File 'backup/cfn_backup_selection.rb', line 658 def condition_value @condition_value end |
Class Method Details
.jsii_properties ⇒ Object
660 661 662 663 664 665 |
# File 'backup/cfn_backup_selection.rb', line 660 def self.jsii_properties { :condition_key => "conditionKey", :condition_value => "conditionValue", } end |
Instance Method Details
#to_jsii ⇒ Object
667 668 669 670 671 672 673 674 |
# File 'backup/cfn_backup_selection.rb', line 667 def to_jsii result = {} result.merge!({ "conditionKey" => @condition_key, "conditionValue" => @condition_value, }) result.compact end |