@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 36 lines 1.17 KB
Raw
1 import type * as aa from "@distilled.cloud/aws/accessanalyzer";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 /**
6 * Runtime binding for `access-analyzer:CheckNoPublicAccess`.
7 *
8 * Custom policy check: verifies a resource policy cannot grant public access
9 * for the given resource type. Provide the implementation with
10 * `Effect.provide(AWS.AccessAnalyzer.CheckNoPublicAccessHttp)`.
11 * ### Custom Policy Checks
12 * **Example:** Assert a Bucket Policy Is Not Public
13 * ```typescript
14 * const checkNoPublicAccess =
15 * yield* AWS.AccessAnalyzer.CheckNoPublicAccess();
16 * const result = yield* checkNoPublicAccess({
17 * policyDocument: JSON.stringify(bucketPolicy),
18 * resourceType: "AWS::S3::Bucket",
19 * });
20 * ```
21 *
22 * @binding
23 */
24 export interface CheckNoPublicAccess extends Binding.Service<
25 CheckNoPublicAccess,
26 "AWS.AccessAnalyzer.CheckNoPublicAccess",
27 () => Effect.Effect<
28 (
29 request: aa.CheckNoPublicAccessRequest,
30 ) => Effect.Effect<aa.CheckNoPublicAccessResponse, aa.CheckNoPublicAccessError>
31 >
32 > {}
33
34 export const CheckNoPublicAccess = Binding.Service<CheckNoPublicAccess>(
35 "AWS.AccessAnalyzer.CheckNoPublicAccess",
36 );