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

main
ts 38 lines 1.27 KB
Raw
1 import * as cloudwatch from "@distilled.cloud/aws/cloudwatch";
2 import * as Binding from "alchemy/Binding";
3 import * as Effect from "effect/Effect";
4
5 export interface DescribeInsightRulesRequest extends cloudwatch.DescribeInsightRulesInput {}
6
7 /**
8 * Runtime binding for `cloudwatch:DescribeInsightRules` — list the
9 * Contributor Insights rules in the account/region.
10 *
11 * Provide `CloudWatch.DescribeInsightRulesHttp` on the hosting Lambda
12 * Function to satisfy the requirement.
13 * ### Reading Insight Rules
14 * **Example:** List Contributor Insights Rules
15 * ```typescript
16 * // init — grants cloudwatch:DescribeInsightRules
17 * const describeInsightRules = yield* AWS.CloudWatch.DescribeInsightRules();
18 *
19 * // runtime
20 * const result = yield* describeInsightRules();
21 * const names = (result.InsightRules ?? []).map((rule) => rule.Name);
22 * ```
23 *
24 * @binding
25 */
26 export interface DescribeInsightRules extends Binding.Service<
27 DescribeInsightRules,
28 "AWS.CloudWatch.DescribeInsightRules",
29 () => Effect.Effect<
30 (
31 request?: DescribeInsightRulesRequest,
32 ) => Effect.Effect<cloudwatch.DescribeInsightRulesOutput, cloudwatch.DescribeInsightRulesError>
33 >
34 > {}
35
36 export const DescribeInsightRules = Binding.Service<DescribeInsightRules>(
37 "AWS.CloudWatch.DescribeInsightRules",
38 );