Class: AWSCDK::Backup::CfnBackupPlanProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Backup::CfnBackupPlanProps
- Defined in:
- backup/cfn_backup_plan_props.rb
Overview
Properties for defining a CfnBackupPlan.
Instance Attribute Summary collapse
-
#backup_plan ⇒ AWSCDK::IResolvable, AWSCDK::Backup::CfnBackupPlan::BackupPlanResourceTypeProperty
readonly
Uniquely identifies the backup plan to be associated with the selection of resources.
-
#backup_plan_tags ⇒ Hash{String => String}?
readonly
The tags to assign to the backup plan.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(backup_plan:, backup_plan_tags: nil) ⇒ CfnBackupPlanProps
constructor
A new instance of CfnBackupPlanProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(backup_plan:, backup_plan_tags: nil) ⇒ CfnBackupPlanProps
Returns a new instance of CfnBackupPlanProps.
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 = Jsii::Type.check_type(@backup_plan_tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoibWFwIn19")), "backupPlanTags") unless @backup_plan_tags.nil? end |
Instance Attribute Details
#backup_plan ⇒ AWSCDK::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_tags ⇒ Hash{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 end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |