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

main
ts 39 lines 1.36 KB
Raw
1 import type * as iam from "@distilled.cloud/aws/iam";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 /**
6 * Runtime binding for `iam:GenerateCredentialReport` — kick off generation of
7 * the account-wide credential report (per-user password/key/MFA hygiene as
8 * CSV). Pair with {@link GetCredentialReport} to retrieve the report once the
9 * returned `State` is `COMPLETE`.
10 *
11 * Account-singleton operation: the binding takes no arguments and grants
12 * `iam:GenerateCredentialReport` on `*`. Provide the implementation with
13 * `Effect.provide(AWS.IAM.GenerateCredentialReportHttp)`.
14 *
15 * ### Credential Reports
16 * **Example:** Start a Credential Report
17 * ```typescript
18 * // init
19 * const generateCredentialReport = yield* IAM.GenerateCredentialReport();
20 *
21 * // runtime
22 * const { State } = yield* generateCredentialReport();
23 * // "STARTED" | "INPROGRESS" | "COMPLETE"
24 * ```
25 *
26 * @binding
27 */
28 export interface GenerateCredentialReport extends Binding.Service<
29 GenerateCredentialReport,
30 "AWS.IAM.GenerateCredentialReport",
31 () => Effect.Effect<
32 (
33 request?: iam.GenerateCredentialReportRequest,
34 ) => Effect.Effect<iam.GenerateCredentialReportResponse, iam.GenerateCredentialReportError>
35 >
36 > {}
37 export const GenerateCredentialReport = Binding.Service<GenerateCredentialReport>(
38 "AWS.IAM.GenerateCredentialReport",
39 );