Skip to content

DescribeKeyValueStore

Source: src/AWS/CloudFront/DescribeKeyValueStore.ts

Runtime binding for cloudfront-keyvaluestore:DescribeKeyValueStore.

Reads the bound KeyValueStore’s data-plane metadata — item count, total size, and the current ETag that write operations (PutKey, DeleteKey, UpdateKeys) require as IfMatch. Provide the implementation with Effect.provide(AWS.CloudFront.DescribeKeyValueStoreHttp).

// init — bind the operation to the store
const describeStore = yield* CloudFront.DescribeKeyValueStore(store);
// runtime
const meta = yield* describeStore({});
console.log(meta.ETag, meta.ItemCount);