GetUsagePlanKey
Source:
src/AWS/ApiGateway/GetUsagePlanKey.ts
Runtime binding for reading a single API key enrolled in a
UsagePlan (apigateway:GET on /usageplans/{id}/keys/{keyId}).
Provide ApiGateway.GetUsagePlanKeyHttp on the Function effect to
implement the binding.
Managing plan keys
Section titled “Managing plan keys”// initconst getUsagePlanKey = yield* ApiGateway.GetUsagePlanKey(plan);
// runtimeconst enrolled = yield* getUsagePlanKey({ keyId }).pipe( Effect.map(() => true), Effect.catchTag("NotFoundException", () => Effect.succeed(false)),);