@devries-cameron20 / t3code Mirror · read-only
Fork 0

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

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

main
ts 43 lines 1.43 KB
Raw
1 import type * as fms from "@distilled.cloud/aws/fms";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 /**
6 * Request for {@link BatchDisassociateResource}.
7 */
8 export interface BatchDisassociateResourceRequest extends fms.BatchDisassociateResourceRequest {}
9
10 /**
11 * Runtime binding for `fms:BatchDisassociateResource`.
12 *
13 * Disassociates resources from the specified Firewall Manager resource set, reporting per-item failures. Provide the
14 * implementation with `Effect.provide(AWS.FMS.BatchDisassociateResourceHttp)`.
15 * ### Resource Sets
16 * **Example:** Disassociate Resources from a Resource Set
17 * ```typescript
18 * // init — account-level binding takes no resource
19 * const batchDisassociateResource = yield* AWS.FMS.BatchDisassociateResource();
20 *
21 * // runtime
22 * const result = yield* batchDisassociateResource({
23 * ResourceSetIdentifier: resourceSetId,
24 * Items: [firewallArn],
25 * });
26 * console.log(result.FailedItems.length);
27 * ```
28 *
29 * @binding
30 */
31 export interface BatchDisassociateResource extends Binding.Service<
32 BatchDisassociateResource,
33 "AWS.FMS.BatchDisassociateResource",
34 () => Effect.Effect<
35 (
36 request: BatchDisassociateResourceRequest,
37 ) => Effect.Effect<fms.BatchDisassociateResourceResponse, fms.BatchDisassociateResourceError>
38 >
39 > {}
40
41 export const BatchDisassociateResource = Binding.Service<BatchDisassociateResource>(
42 "AWS.FMS.BatchDisassociateResource",
43 );