GetKey
Source:
src/AWS/CloudFront/GetKey.ts
Runtime binding for cloudfront-keyvaluestore:GetKey.
Reads a single key’s value from the bound KeyValueStore’s data plane.
Values are sensitive — distilled decodes them as Redacted<string>;
unwrap with Redacted.value. Provide the implementation with
Effect.provide(AWS.CloudFront.GetKeyHttp).
Reading KeyValueStore Data
Section titled “Reading KeyValueStore Data”// init — bind the operation to the storeconst getKey = yield* CloudFront.GetKey(store);
// runtimeconst res = yield* getKey({ Key: "routes:/about" });const value = typeof res.Value === "string" ? res.Value : Redacted.value(res.Value);