Class: AWSCDK::Backup::CfnBackupPlan::LifecycleResourceTypeProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Backup::CfnBackupPlan::LifecycleResourceTypeProperty
- Defined in:
- backup/cfn_backup_plan.rb
Overview
Specifies an object containing an array of Transition objects that determine how long in days before a recovery point transitions to cold storage or is deleted.
Instance Attribute Summary collapse
-
#delete_after_days ⇒ Numeric?
readonly
The number of days after creation that a recovery point is deleted.
-
#move_to_cold_storage_after_days ⇒ Numeric?
readonly
The number of days after creation that a recovery point is moved to cold storage.
-
#opt_in_to_archive_for_supported_resources ⇒ Boolean, ...
readonly
If the value is true, your backup plan transitions supported resources to archive (cold) storage tier in accordance with your lifecycle settings.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(delete_after_days: nil, move_to_cold_storage_after_days: nil, opt_in_to_archive_for_supported_resources: nil) ⇒ LifecycleResourceTypeProperty
constructor
A new instance of LifecycleResourceTypeProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(delete_after_days: nil, move_to_cold_storage_after_days: nil, opt_in_to_archive_for_supported_resources: nil) ⇒ LifecycleResourceTypeProperty
Returns a new instance of LifecycleResourceTypeProperty.
955 956 957 958 959 960 961 962 |
# File 'backup/cfn_backup_plan.rb', line 955 def initialize(delete_after_days: nil, move_to_cold_storage_after_days: nil, opt_in_to_archive_for_supported_resources: nil) @delete_after_days = delete_after_days Jsii::Type.check_type(@delete_after_days, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "deleteAfterDays") unless @delete_after_days.nil? @move_to_cold_storage_after_days = move_to_cold_storage_after_days Jsii::Type.check_type(@move_to_cold_storage_after_days, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "moveToColdStorageAfterDays") unless @move_to_cold_storage_after_days.nil? @opt_in_to_archive_for_supported_resources = opt_in_to_archive_for_supported_resources Jsii::Type.check_type(@opt_in_to_archive_for_supported_resources, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "optInToArchiveForSupportedResources") unless @opt_in_to_archive_for_supported_resources.nil? end |
Instance Attribute Details
#delete_after_days ⇒ Numeric? (readonly)
The number of days after creation that a recovery point is deleted.
This value must be at least 90 days after the number of days specified in MoveToColdStorageAfterDays .
970 971 972 |
# File 'backup/cfn_backup_plan.rb', line 970 def delete_after_days @delete_after_days end |
#move_to_cold_storage_after_days ⇒ Numeric? (readonly)
The number of days after creation that a recovery point is moved to cold storage.
975 976 977 |
# File 'backup/cfn_backup_plan.rb', line 975 def move_to_cold_storage_after_days @move_to_cold_storage_after_days end |
#opt_in_to_archive_for_supported_resources ⇒ Boolean, ... (readonly)
If the value is true, your backup plan transitions supported resources to archive (cold) storage tier in accordance with your lifecycle settings.
980 981 982 |
# File 'backup/cfn_backup_plan.rb', line 980 def opt_in_to_archive_for_supported_resources @opt_in_to_archive_for_supported_resources end |
Class Method Details
.jsii_properties ⇒ Object
982 983 984 985 986 987 988 |
# File 'backup/cfn_backup_plan.rb', line 982 def self.jsii_properties { :delete_after_days => "deleteAfterDays", :move_to_cold_storage_after_days => "moveToColdStorageAfterDays", :opt_in_to_archive_for_supported_resources => "optInToArchiveForSupportedResources", } end |
Instance Method Details
#to_jsii ⇒ Object
990 991 992 993 994 995 996 997 998 |
# File 'backup/cfn_backup_plan.rb', line 990 def to_jsii result = {} result.merge!({ "deleteAfterDays" => @delete_after_days, "moveToColdStorageAfterDays" => @move_to_cold_storage_after_days, "optInToArchiveForSupportedResources" => @opt_in_to_archive_for_supported_resources, }) result.compact end |