Class: AWSCDK::Backup::CfnBackupPlanProps

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

Overview

Properties for defining a CfnBackupPlan.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(backup_plan:, backup_plan_tags: nil) ⇒ CfnBackupPlanProps

Returns a new instance of CfnBackupPlanProps.

Parameters:



11
12
13
14
15
16
# File 'backup/cfn_backup_plan_props.rb', line 11

def initialize(backup_plan:, backup_plan_tags: nil)
  @backup_plan = backup_plan.is_a?(Hash) ? ::AWSCDK::Backup::CfnBackupPlan::BackupPlanResourceTypeProperty.new(**backup_plan.transform_keys(&:to_sym)) : backup_plan
  Jsii::Type.check_type(@backup_plan, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iYWNrdXAuQ2ZuQmFja3VwUGxhbi5CYWNrdXBQbGFuUmVzb3VyY2VUeXBlUHJvcGVydHkifV19fQ==")), "backupPlan")
  @backup_plan_tags = backup_plan_tags
  Jsii::Type.check_type(@backup_plan_tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoibWFwIn19")), "backupPlanTags") unless @backup_plan_tags.nil?
end

Instance Attribute Details

#backup_planAWSCDK::IResolvable, AWSCDK::Backup::CfnBackupPlan::BackupPlanResourceTypeProperty (readonly)

Uniquely identifies the backup plan to be associated with the selection of resources.



22
23
24
# File 'backup/cfn_backup_plan_props.rb', line 22

def backup_plan
  @backup_plan
end

#backup_plan_tagsHash{String => String}? (readonly)

The tags to assign to the backup plan.



27
28
29
# File 'backup/cfn_backup_plan_props.rb', line 27

def backup_plan_tags
  @backup_plan_tags
end

Class Method Details

.jsii_propertiesObject



29
30
31
32
33
34
# File 'backup/cfn_backup_plan_props.rb', line 29

def self.jsii_properties
  {
    :backup_plan => "backupPlan",
    :backup_plan_tags => "backupPlanTags",
  }
end

Instance Method Details

#to_jsiiObject



36
37
38
39
40
41
42
43
# File 'backup/cfn_backup_plan_props.rb', line 36

def to_jsii
  result = {}
  result.merge!({
    "backupPlan" => @backup_plan,
    "backupPlanTags" => @backup_plan_tags,
  })
  result.compact
end