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

main
ts 38 lines 1.12 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 GetResourceSet}.
7 */
8 export interface GetResourceSetRequest extends fms.GetResourceSetRequest {}
9
10 /**
11 * Runtime binding for `fms:GetResourceSet`.
12 *
13 * Returns the specified Firewall Manager resource set. Provide the
14 * implementation with `Effect.provide(AWS.FMS.GetResourceSetHttp)`.
15 * ### Resource Sets
16 * **Example:** Read a Resource Set
17 * ```typescript
18 * // init — account-level binding takes no resource
19 * const getResourceSet = yield* AWS.FMS.GetResourceSet();
20 *
21 * // runtime
22 * const result = yield* getResourceSet({ Identifier: resourceSetId });
23 * console.log(result.ResourceSet.Name);
24 * ```
25 *
26 * @binding
27 */
28 export interface GetResourceSet extends Binding.Service<
29 GetResourceSet,
30 "AWS.FMS.GetResourceSet",
31 () => Effect.Effect<
32 (
33 request: GetResourceSetRequest,
34 ) => Effect.Effect<fms.GetResourceSetResponse, fms.GetResourceSetError>
35 >
36 > {}
37
38 export const GetResourceSet = Binding.Service<GetResourceSet>("AWS.FMS.GetResourceSet");