interface BackupSettings
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.ElastiCache.Alpha.BackupSettings |
Go | github.com/aws/aws-cdk-go/awscdkelasticachealpha/v2#BackupSettings |
Java | software.amazon.awscdk.services.elasticache.alpha.BackupSettings |
Python | aws_cdk.aws_elasticache_alpha.BackupSettings |
TypeScript (source) | @aws-cdk/aws-elasticache-alpha ยป BackupSettings |
Backup configuration for ServerlessCache.
Example
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
| Name | Type | Description |
|---|---|---|
| backup | string[] | ARNs of backups from which to restore data into the new cache. |
| backup | string | Name for the final backup taken before deletion. |
| backup | number | Number of days to retain backups (1-35). |
| backup | Schedule | Automated daily backup UTC time. |
backupArnsToRestore?
Type:
string[]
(optional, default: Create a new cache with no existing data)
ARNs of backups from which to restore data into the new cache.
backupNameBeforeDeletion?
Type:
string
(optional, default: No final backup)
Name for the final backup taken before deletion.
backupRetentionLimit?
Type:
number
(optional, default: Backups are not retained)
Number of days to retain backups (1-35).
backupTime?
Type:
Schedule
(optional, default: No automated backups)
Automated daily backup UTC time.

.NET
Go
Java
Python
TypeScript (