@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, 04:45 UTC

main
ts 41 lines 1.29 KB
Raw
1 import type * as macie2 from "@distilled.cloud/aws/macie2";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 /**
6 * Runtime binding for `macie2:TestCustomDataIdentifier`.
7 *
8 * Tests criteria for a custom data identifier.
9 * Account-level operation — invoked with the caller's request as-is.
10 * Provide the implementation with
11 * `Effect.provide(AWS.Macie2.TestCustomDataIdentifierHttp)`.
12 * ### Custom Data Identifiers & Lists
13 * **Example:** Test a Detection Regex
14 * ```typescript
15 * // init — account-level binding, no resource argument
16 * const testCustomDataIdentifier = yield* AWS.Macie2.TestCustomDataIdentifier();
17 *
18 * // runtime
19 * const { matchCount } = yield* testCustomDataIdentifier({
20 * regex: "EMP-[0-9]{8}",
21 * sampleText: "id EMP-12345678",
22 * });
23 * ```
24 *
25 * @binding
26 */
27 export interface TestCustomDataIdentifier extends Binding.Service<
28 TestCustomDataIdentifier,
29 "AWS.Macie2.TestCustomDataIdentifier",
30 () => Effect.Effect<
31 (
32 request?: macie2.TestCustomDataIdentifierRequest,
33 ) => Effect.Effect<
34 macie2.TestCustomDataIdentifierResponse,
35 macie2.TestCustomDataIdentifierError
36 >
37 >
38 > {}
39 export const TestCustomDataIdentifier = Binding.Service<TestCustomDataIdentifier>(
40 "AWS.Macie2.TestCustomDataIdentifier",
41 );