Skip to content

DeleteUsagePlanKey

Source: src/AWS/ApiGateway/DeleteUsagePlanKey.ts

Runtime binding for removing an API key from a UsagePlan (apigateway:DELETE on /usageplans/{id}/keys/{keyId}).

Provide ApiGateway.DeleteUsagePlanKeyHttp on the Function effect to implement the binding.

// init
const deleteUsagePlanKey = yield* ApiGateway.DeleteUsagePlanKey(plan);
// runtime
yield* deleteUsagePlanKey({ keyId }).pipe(
Effect.catchTag("NotFoundException", () => Effect.void),
);