DeleteKey
Source:
src/AWS/CloudFront/DeleteKey.ts
Runtime binding for cloudfront-keyvaluestore:DeleteKey.
Deletes a single key from the bound KeyValueStore’s data plane. Writes use
optimistic concurrency: pass the store’s current ETag as IfMatch (from
DescribeKeyValueStore or a previous write’s response). Provide the
implementation with Effect.provide(AWS.CloudFront.DeleteKeyHttp).
Writing KeyValueStore Data
Section titled “Writing KeyValueStore Data”// init — bind the operations to the storeconst describeStore = yield* CloudFront.DescribeKeyValueStore(store);const deleteKey = yield* CloudFront.DeleteKey(store);
// runtimeconst meta = yield* describeStore({});yield* deleteKey({ Key: "routes:/about", IfMatch: meta.ETag });