Class: Aws::Backup::Types::Lifecycle
- Inherits:
-
Struct
- Object
- Struct
- Aws::Backup::Types::Lifecycle
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-backup/types.rb
Overview
Specifies the time period, in days, before a recovery point transitions to cold storage or is deleted.
Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, on the console, the retention setting must be 90 days greater than the transition to cold after days setting. The transition to cold after days setting can’t be changed after a backup has been transitioned to cold.
Resource types that can transition to cold storage are listed in the
- Feature availability by resource][1
-
table. Backup ignores this
expression for other resource types.
To remove the existing lifecycle and retention periods and keep your recovery points indefinitely, specify -1 for ‘MoveToColdStorageAfterDays` and `DeleteAfterDays`.
[1]: docs.aws.amazon.com/aws-backup/latest/devguide/backup-feature-availability.html#features-by-resource
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#delete_after_days ⇒ Integer
The number of days after creation that a recovery point is deleted.
-
#delete_after_event ⇒ String
The event after which a recovery point is deleted.
-
#move_to_cold_storage_after_days ⇒ Integer
The number of days after creation that a recovery point is moved to cold storage.
-
#opt_in_to_archive_for_supported_resources ⇒ Boolean
If the value is true, your backup plan transitions supported resources to archive (cold) storage tier in accordance with your lifecycle settings.
Instance Attribute Details
#delete_after_days ⇒ Integer
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`.
5511 5512 5513 5514 5515 5516 5517 5518 |
# File 'lib/aws-sdk-backup/types.rb', line 5511 class Lifecycle < Struct.new( :move_to_cold_storage_after_days, :delete_after_days, :opt_in_to_archive_for_supported_resources, :delete_after_event) SENSITIVE = [] include Aws::Structure end |
#delete_after_event ⇒ String
The event after which a recovery point is deleted. A recovery point with both ‘DeleteAfterDays` and `DeleteAfterEvent` will delete after whichever condition is satisfied first. Not valid as an input.
5511 5512 5513 5514 5515 5516 5517 5518 |
# File 'lib/aws-sdk-backup/types.rb', line 5511 class Lifecycle < Struct.new( :move_to_cold_storage_after_days, :delete_after_days, :opt_in_to_archive_for_supported_resources, :delete_after_event) SENSITIVE = [] include Aws::Structure end |
#move_to_cold_storage_after_days ⇒ Integer
The number of days after creation that a recovery point is moved to cold storage.
5511 5512 5513 5514 5515 5516 5517 5518 |
# File 'lib/aws-sdk-backup/types.rb', line 5511 class Lifecycle < Struct.new( :move_to_cold_storage_after_days, :delete_after_days, :opt_in_to_archive_for_supported_resources, :delete_after_event) SENSITIVE = [] include Aws::Structure end |
#opt_in_to_archive_for_supported_resources ⇒ Boolean
If the value is true, your backup plan transitions supported resources to archive (cold) storage tier in accordance with your lifecycle settings.
5511 5512 5513 5514 5515 5516 5517 5518 |
# File 'lib/aws-sdk-backup/types.rb', line 5511 class Lifecycle < Struct.new( :move_to_cold_storage_after_days, :delete_after_days, :opt_in_to_archive_for_supported_resources, :delete_after_event) SENSITIVE = [] include Aws::Structure end |