Class: AWSCDK::Backup::CfnBackupPlan::AdvancedBackupSettingResourceTypeProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Backup::CfnBackupPlan::AdvancedBackupSettingResourceTypeProperty
- Defined in:
- backup/cfn_backup_plan.rb
Overview
Specifies an object containing resource type and backup options.
This is only supported for Windows VSS backups.
Instance Attribute Summary collapse
-
#backup_options ⇒ Object
readonly
The backup option for the resource.
-
#resource_type ⇒ String
readonly
The name of a resource type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(backup_options:, resource_type:) ⇒ AdvancedBackupSettingResourceTypeProperty
constructor
A new instance of AdvancedBackupSettingResourceTypeProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(backup_options:, resource_type:) ⇒ AdvancedBackupSettingResourceTypeProperty
Returns a new instance of AdvancedBackupSettingResourceTypeProperty.
583 584 585 586 587 588 |
# File 'backup/cfn_backup_plan.rb', line 583 def initialize(backup_options:, resource_type:) @backup_options = Jsii::Type.check_type(@backup_options, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "backupOptions") @resource_type = resource_type Jsii::Type.check_type(@resource_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "resourceType") end |
Instance Attribute Details
#backup_options ⇒ Object (readonly)
The backup option for the resource.
Each option is a key-value pair. This option is only available for Windows VSS backup jobs.
Valid values:
Set to "WindowsVSS":"enabled" to enable the WindowsVSS backup option and create a Windows VSS backup.
Set to "WindowsVSS":"disabled" to create a regular backup. The WindowsVSS option is not enabled by default.
If you specify an invalid option, you get an InvalidParameterValueException exception.
For more information about Windows VSS backups, see Creating a VSS-Enabled Windows Backup .
606 607 608 |
# File 'backup/cfn_backup_plan.rb', line 606 def @backup_options end |
#resource_type ⇒ String (readonly)
The name of a resource type.
The only supported resource type is EC2.
613 614 615 |
# File 'backup/cfn_backup_plan.rb', line 613 def resource_type @resource_type end |
Class Method Details
.jsii_properties ⇒ Object
615 616 617 618 619 620 |
# File 'backup/cfn_backup_plan.rb', line 615 def self.jsii_properties { :backup_options => "backupOptions", :resource_type => "resourceType", } end |
Instance Method Details
#to_jsii ⇒ Object
622 623 624 625 626 627 628 629 |
# File 'backup/cfn_backup_plan.rb', line 622 def to_jsii result = {} result.merge!({ "backupOptions" => @backup_options, "resourceType" => @resource_type, }) result.compact end |