Class: AWSCDK::Backup::CfnBackupSelectionProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Backup::CfnBackupSelectionProps
- Defined in:
- backup/cfn_backup_selection_props.rb
Overview
Properties for defining a CfnBackupSelection.
Instance Attribute Summary collapse
-
#backup_plan_id ⇒ String, AWSCDK::Interfaces::AWSBackup::IBackupPlanRef
readonly
Uniquely identifies a backup plan.
-
#backup_selection ⇒ AWSCDK::IResolvable, AWSCDK::Backup::CfnBackupSelection::BackupSelectionResourceTypeProperty
readonly
Specifies the body of a request to assign a set of resources to a backup plan.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(backup_plan_id:, backup_selection:) ⇒ CfnBackupSelectionProps
constructor
A new instance of CfnBackupSelectionProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(backup_plan_id:, backup_selection:) ⇒ CfnBackupSelectionProps
Returns a new instance of CfnBackupSelectionProps.
11 12 13 14 15 16 |
# File 'backup/cfn_backup_selection_props.rb', line 11 def initialize(backup_plan_id:, backup_selection:) @backup_plan_id = backup_plan_id Jsii::Type.check_type(@backup_plan_id, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19iYWNrdXAuSUJhY2t1cFBsYW5SZWYifV19fQ==")), "backupPlanId") @backup_selection = backup_selection.is_a?(Hash) ? ::AWSCDK::Backup::CfnBackupSelection::BackupSelectionResourceTypeProperty.new(**backup_selection.transform_keys(&:to_sym)) : backup_selection Jsii::Type.check_type(@backup_selection, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iYWNrdXAuQ2ZuQmFja3VwU2VsZWN0aW9uLkJhY2t1cFNlbGVjdGlvblJlc291cmNlVHlwZVByb3BlcnR5In1dfX0=")), "backupSelection") end |
Instance Attribute Details
#backup_plan_id ⇒ String, AWSCDK::Interfaces::AWSBackup::IBackupPlanRef (readonly)
Uniquely identifies a backup plan.
22 23 24 |
# File 'backup/cfn_backup_selection_props.rb', line 22 def backup_plan_id @backup_plan_id end |
#backup_selection ⇒ AWSCDK::IResolvable, AWSCDK::Backup::CfnBackupSelection::BackupSelectionResourceTypeProperty (readonly)
Specifies the body of a request to assign a set of resources to a backup plan.
It includes an array of resources, an optional array of patterns to exclude resources, an optional role to provide access to the AWS service the resource belongs to, and an optional array of tags used to identify a set of resources.
29 30 31 |
# File 'backup/cfn_backup_selection_props.rb', line 29 def backup_selection @backup_selection end |
Class Method Details
.jsii_properties ⇒ Object
31 32 33 34 35 36 |
# File 'backup/cfn_backup_selection_props.rb', line 31 def self.jsii_properties { :backup_plan_id => "backupPlanId", :backup_selection => "backupSelection", } end |
Instance Method Details
#to_jsii ⇒ Object
38 39 40 41 42 43 44 45 |
# File 'backup/cfn_backup_selection_props.rb', line 38 def to_jsii result = {} result.merge!({ "backupPlanId" => @backup_plan_id, "backupSelection" => @backup_selection, }) result.compact end |