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

main
ts 41 lines 1.34 KB
Raw
1 import type * as lf from "@distilled.cloud/aws/lakeformation";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 /**
6 * Request for {@link GetDataLakePrincipal}.
7 */
8 export interface GetDataLakePrincipalRequest extends lf.GetDataLakePrincipalRequest {}
9
10 /**
11 * Runtime binding for `lakeformation:GetDataLakePrincipal`.
12 *
13 * Returns the identity of the calling principal as Lake Formation sees it —
14 * useful for logging/auditing which data-lake principal a function acts as.
15 * Provide the implementation with
16 * `Effect.provide(AWS.LakeFormation.GetDataLakePrincipalHttp)`.
17 * ### Identifying the Caller
18 * **Example:** Read the Calling Data Lake Principal
19 * ```typescript
20 * // init — account-level binding takes no resource
21 * const getDataLakePrincipal = yield* AWS.LakeFormation.GetDataLakePrincipal();
22 *
23 * // runtime
24 * const { Identity } = yield* getDataLakePrincipal();
25 * ```
26 *
27 * @binding
28 */
29 export interface GetDataLakePrincipal extends Binding.Service<
30 GetDataLakePrincipal,
31 "AWS.LakeFormation.GetDataLakePrincipal",
32 () => Effect.Effect<
33 (
34 request?: GetDataLakePrincipalRequest,
35 ) => Effect.Effect<lf.GetDataLakePrincipalResponse, lf.GetDataLakePrincipalError>
36 >
37 > {}
38
39 export const GetDataLakePrincipal = Binding.Service<GetDataLakePrincipal>(
40 "AWS.LakeFormation.GetDataLakePrincipal",
41 );