Skip to content

ListKeys

Source: src/AWS/CloudFront/ListKeys.ts

Runtime binding for cloudfront-keyvaluestore:ListKeys.

Lists key/value pairs in the bound KeyValueStore’s data plane (paginated via NextToken/MaxResults). Provide the implementation with Effect.provide(AWS.CloudFront.ListKeysHttp).

// init — bind the operation to the store
const listKeys = yield* CloudFront.ListKeys(store);
// runtime
const res = yield* listKeys({ MaxResults: 50 });
console.log(res.Items?.map((item) => item.Key));