Experimental
@aws-cdk/aws-elasticache-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
BackupSettings Struct
Backup configuration for ServerlessCache.
Example
ts
declare const vpc: ec2.Vpc;
const serverlessCache = new elasticache.ServerlessCache(this, 'ServerlessCache', {
engine: elasticache.CacheEngine.VALKEY_LATEST,
backup: {
// set a backup name before deleting a cache
backupNameBeforeDeletion: "my-final-backup-name",
},
vpc,
});
Properties
backupArnsToRestoreoptionalstring[]backup_arns_to_restoreoptionaltyping.List[str]backupArnsToRestoreoptionalList<String>BackupArnsToRestoreoptionalstring[]BackupArnsToRestoreoptional*[]*string#ARNs of backups from which to restore data into the new cache.
Default: Create a new cache with no existing data
backupNameBeforeDeletionoptionalstringbackup_name_before_deletionoptionalstrbackupNameBeforeDeletionoptionalStringBackupNameBeforeDeletionoptionalstringBackupNameBeforeDeletionoptional*string#Name for the final backup taken before deletion.
Default: No final backup
backupRetentionLimitoptionalnumberbackup_retention_limitoptionalint | floatbackupRetentionLimitoptionalNumberBackupRetentionLimitoptionaldoubleBackupRetentionLimitoptional*float64#Number of days to retain backups (1-35).
Default: Backups are not retained