import type * as kvs from "@distilled.cloud/aws/cloudfront-keyvaluestore"; import type * as Effect from "effect/Effect"; import * as Binding from "../../Binding.ts"; import type { KeyValueStore } from "./KeyValueStore.ts"; export interface ListKeysRequest extends Omit {} /** * 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)`. * ### Reading KeyValueStore Data * **Example:** List Keys * ```typescript * // 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)); * ``` * * @binding */ export interface ListKeys extends Binding.Service< ListKeys, "AWS.CloudFront.ListKeys", ( store: KeyValueStore, ) => Effect.Effect< ( request: ListKeysRequest, ) => Effect.Effect > > {} export const ListKeys = Binding.Service("AWS.CloudFront.ListKeys");