Class: AWSCDK::Backup::CfnBackupSelectionProps

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

Overview

Properties for defining a CfnBackupSelection.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(backup_plan_id:, backup_selection:) ⇒ CfnBackupSelectionProps

Returns a new instance of CfnBackupSelectionProps.

Parameters:



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_idString, 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_selectionAWSCDK::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_propertiesObject



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_jsiiObject



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