Skip to content

CreateServerlessCacheSnapshot

Source: src/AWS/ElastiCache/CreateServerlessCacheSnapshot.ts

Runtime binding for the CreateServerlessCacheSnapshot operation (IAM actions elasticache:CreateServerlessCacheSnapshot + elasticache:AddTagsToResource), scoped to one ServerlessCache.

Takes an on-demand snapshot of the bound serverless cache — e.g. a pre-migration backup from an operational Lambda. Available for valkey, redis, and serverless memcached. Provide the implementation with Effect.provide(AWS.ElastiCache.CreateServerlessCacheSnapshotHttp).

const createSnapshot = yield* ElastiCache.CreateServerlessCacheSnapshot(cache);
const result = yield* createSnapshot({
ServerlessCacheSnapshotName: "pre-migration",
});
// result.ServerlessCacheSnapshot.Status → "creating"