Skip to content

ExportServerlessCacheSnapshot

Source: src/AWS/ElastiCache/ExportServerlessCacheSnapshot.ts

Runtime binding for the ExportServerlessCacheSnapshot operation (IAM action elasticache:ExportServerlessCacheSnapshot).

Exports a serverless cache snapshot’s data to an S3 bucket — e.g. shipping a backup out of ElastiCache for offline analysis or cross-account restore. Available for valkey and redis only. The target bucket must grant the ElastiCache service access via its bucket policy. Provide the implementation with Effect.provide(AWS.ElastiCache.ExportServerlessCacheSnapshotHttp).

const exportSnapshot = yield* ElastiCache.ExportServerlessCacheSnapshot();
yield* exportSnapshot({
ServerlessCacheSnapshotName: "nightly",
S3BucketName: "my-backup-bucket",
});