Skip to content

DescribeServerlessCacheSnapshots

Source: src/AWS/ElastiCache/DescribeServerlessCacheSnapshots.ts

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

Lists serverless cache snapshots — all of them, one by name, or those of a particular cache. Available for valkey, redis, and serverless memcached. Provide the implementation with Effect.provide(AWS.ElastiCache.DescribeServerlessCacheSnapshotsHttp).

const describeSnapshots = yield* ElastiCache.DescribeServerlessCacheSnapshots();
const result = yield* describeSnapshots({ ServerlessCacheName: name });
for (const snapshot of result.ServerlessCacheSnapshots ?? []) {
yield* Effect.logInfo(`${snapshot.ServerlessCacheSnapshotName}: ${snapshot.Status}`);
}