UpdateKeys
Source:
src/AWS/CloudFront/UpdateKeys.ts
Runtime binding for cloudfront-keyvaluestore:UpdateKeys.
Puts and/or deletes multiple keys in the bound KeyValueStore’s data plane
as a single all-or-nothing batch. 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.UpdateKeysHttp).
Writing KeyValueStore Data
Section titled “Writing KeyValueStore Data”// init — bind the operations to the storeconst describeStore = yield* CloudFront.DescribeKeyValueStore(store);const updateKeys = yield* CloudFront.UpdateKeys(store);
// runtimeconst meta = yield* describeStore({});yield* updateKeys({ IfMatch: meta.ETag, Puts: [{ Key: "routes:/", Value: "/index.html" }], Deletes: [{ Key: "routes:/legacy" }],});