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

main
ts 37 lines 1.07 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 UpdateApiKeyRequest extends ag.UpdateApiKeyRequest {}
6
7 /**
8 * Runtime binding for patching an API Gateway API key
9 * (`apigateway:PATCH` on `/apikeys/{id}`). Account-scoped — takes no
10 * resource.
11 *
12 * Provide `ApiGateway.UpdateApiKeyHttp` on the Function effect to
13 * implement the binding.
14 *
15 * ### Managing API keys
16 * **Example:** Disable a key
17 * ```typescript
18 * // init
19 * const updateApiKey = yield* ApiGateway.UpdateApiKey();
20 *
21 * // runtime
22 * yield* updateApiKey({
23 * apiKey: keyId,
24 * patchOperations: [{ op: "replace", path: "/enabled", value: "false" }],
25 * });
26 * ```
27 *
28 * @binding
29 */
30 export interface UpdateApiKey extends Binding.Service<
31 UpdateApiKey,
32 "AWS.ApiGateway.UpdateApiKey",
33 () => Effect.Effect<
34 (request: UpdateApiKeyRequest) => Effect.Effect<ag.ApiKey, ag.UpdateApiKeyError>
35 >
36 > {}
37 export const UpdateApiKey = Binding.Service<UpdateApiKey>("AWS.ApiGateway.UpdateApiKey");