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

main
ts 44 lines 1.58 KB
Raw
1 import type * as cloudformation from "@distilled.cloud/aws/cloudformation";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { Stack } from "./Stack.ts";
5
6 /**
7 * Runtime binding for the `DescribeStackResourceDrifts` operation (IAM action
8 * `cloudformation:DescribeStackResourceDrifts`).
9 *
10 * Bind this operation to a {@link Stack} to read per-resource drift results
11 * after a {@link DetectStackDrift} run — which resources were `MODIFIED` or
12 * `DELETED` out-of-band and the actual-vs-expected property differences.
13 * Provide the implementation with
14 * `Effect.provide(AWS.CloudFormation.DescribeStackResourceDriftsHttp)`.
15 * ### Drift Detection
16 * **Example:** Read Drifted Resources
17 * ```typescript
18 * const describeStackResourceDrifts =
19 * yield* AWS.CloudFormation.DescribeStackResourceDrifts(stack);
20 *
21 * const { StackResourceDrifts } = yield* describeStackResourceDrifts({
22 * StackResourceDriftStatusFilters: ["MODIFIED", "DELETED"],
23 * });
24 * ```
25 *
26 * @binding
27 */
28 export interface DescribeStackResourceDrifts extends Binding.Service<
29 DescribeStackResourceDrifts,
30 "AWS.CloudFormation.DescribeStackResourceDrifts",
31 (
32 stack: Stack,
33 ) => Effect.Effect<
34 (
35 request?: Omit<cloudformation.DescribeStackResourceDriftsInput, "StackName">,
36 ) => Effect.Effect<
37 cloudformation.DescribeStackResourceDriftsOutput,
38 cloudformation.DescribeStackResourceDriftsError
39 >
40 >
41 > {}
42 export const DescribeStackResourceDrifts = Binding.Service<DescribeStackResourceDrifts>(
43 "AWS.CloudFormation.DescribeStackResourceDrifts",
44 );