The best way to control Claude Code, Codex and more from any computer or phone

main
ts 36 lines 1.08 KB
Raw
1 import type * as ag from "@distilled.cloud/aws/api-gateway";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 export interface DeleteApiKeyRequest extends ag.DeleteApiKeyRequest {}
6
7 /**
8 * Runtime binding for deleting an API Gateway API key
9 * (`apigateway:DELETE` on `/apikeys/{id}`). Account-scoped — takes no
10 * resource.
11 *
12 * Provide `ApiGateway.DeleteApiKeyHttp` on the Function effect to
13 * implement the binding.
14 *
15 * ### Managing API keys
16 * **Example:** Delete a key on account closure
17 * ```typescript
18 * // init
19 * const deleteApiKey = yield* ApiGateway.DeleteApiKey();
20 *
21 * // runtime
22 * yield* deleteApiKey({ apiKey: keyId }).pipe(
23 * Effect.catchTag("NotFoundException", () => Effect.void),
24 * );
25 * ```
26 *
27 * @binding
28 */
29 export interface DeleteApiKey extends Binding.Service<
30 DeleteApiKey,
31 "AWS.ApiGateway.DeleteApiKey",
32 () => Effect.Effect<
33 (request: DeleteApiKeyRequest) => Effect.Effect<ag.DeleteApiKeyResponse, ag.DeleteApiKeyError>
34 >
35 > {}
36 export const DeleteApiKey = Binding.Service<DeleteApiKey>("AWS.ApiGateway.DeleteApiKey");