@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, 06:00 UTC

main
ts 41 lines 1.34 KB
Raw
1 import type * as config from "@distilled.cloud/aws/config-service";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 /**
6 * Runtime binding for `config:DescribeComplianceByResource` — read whether
7 * evaluated resources comply with the Config rules that evaluate them.
8 *
9 * Provide `Config.DescribeComplianceByResourceHttp` on the hosting Lambda Function to
10 * satisfy the requirement.
11 * ### Reading Compliance
12 * **Example:** Check Resource Compliance
13 * ```typescript
14 * // init — grants config:DescribeComplianceByResource
15 * const describeComplianceByResource = yield* AWS.Config.DescribeComplianceByResource();
16 *
17 * // runtime
18 * const result = yield* describeComplianceByResource({
19 * ResourceType: "AWS::S3::Bucket",
20 * });
21 * console.log(result.ComplianceByResources);
22 * ```
23 *
24 * @binding
25 */
26 export interface DescribeComplianceByResource extends Binding.Service<
27 DescribeComplianceByResource,
28 "AWS.Config.DescribeComplianceByResource",
29 () => Effect.Effect<
30 (
31 request?: config.DescribeComplianceByResourceRequest,
32 ) => Effect.Effect<
33 config.DescribeComplianceByResourceResponse,
34 config.DescribeComplianceByResourceError
35 >
36 >
37 > {}
38
39 export const DescribeComplianceByResource = Binding.Service<DescribeComplianceByResource>(
40 "AWS.Config.DescribeComplianceByResource",
41 );