BackupSettings
- class aws_cdk.aws_elasticache_alpha.BackupSettings(*, backup_arns_to_restore=None, backup_name_before_deletion=None, backup_retention_limit=None, backup_time=None)
Bases:
object
(experimental) Backup configuration for ServerlessCache.
- Parameters:
backup_arns_to_restore (
Optional
[Sequence
[str
]]) – (experimental) ARNs of backups from which to restore data into the new cache. Default: - Create a new cache with no existing databackup_name_before_deletion (
Optional
[str
]) – (experimental) Name for the final backup taken before deletion. Default: - No final backupbackup_retention_limit (
Union
[int
,float
,None
]) – (experimental) Number of days to retain backups (1-35). Default: - Backups are not retainedbackup_time (
Optional
[Schedule
]) – (experimental) Automated daily backup UTC time. Default: - No automated backups
- Stability:
experimental
- ExampleMetadata:
infused
Example:
# vpc: ec2.Vpc serverless_cache = elasticache.ServerlessCache(self, "ServerlessCache", engine=elasticache.CacheEngine.VALKEY_LATEST, backup=elasticache.BackupSettings( # set a backup name before deleting a cache backup_name_before_deletion="my-final-backup-name" ), vpc=vpc )
Attributes
- backup_arns_to_restore
(experimental) ARNs of backups from which to restore data into the new cache.
- Default:
Create a new cache with no existing data
- Stability:
experimental
- backup_name_before_deletion
(experimental) Name for the final backup taken before deletion.
- Default:
No final backup
- Stability:
experimental
- backup_retention_limit
(experimental) Number of days to retain backups (1-35).
- Default:
Backups are not retained
- Stability:
experimental
- backup_time
(experimental) Automated daily backup UTC time.
- Default:
No automated backups
- Stability:
experimental