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

main
ts 38 lines 1.12 KB
Raw
1 import type * as inspector2 from "@distilled.cloud/aws/inspector2";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 /**
6 * Runtime binding for `inspector2:CreateSbomExport`.
7 *
8 * Creates a software bill of materials (SBOM) report.
9 *
10 * Provide the implementation with
11 * `Effect.provide(AWS.Inspector2.CreateSbomExportHttp)`.
12 * ### Findings Reports & SBOM Exports
13 * **Example:** Export an SBOM
14 * ```typescript
15 * // init
16 * const createSbomExport = yield* AWS.Inspector2.CreateSbomExport();
17 *
18 * // runtime
19 * const { reportId } = yield* createSbomExport({
20 * reportFormat: "SPDX_2_3",
21 * s3Destination: { bucketName, keyPrefix: "sbom/", kmsKeyArn },
22 * });
23 * ```
24 *
25 * @binding
26 */
27 export interface CreateSbomExport extends Binding.Service<
28 CreateSbomExport,
29 "AWS.Inspector2.CreateSbomExport",
30 () => Effect.Effect<
31 (
32 request: inspector2.CreateSbomExportRequest,
33 ) => Effect.Effect<inspector2.CreateSbomExportResponse, inspector2.CreateSbomExportError>
34 >
35 > {}
36 export const CreateSbomExport = Binding.Service<CreateSbomExport>(
37 "AWS.Inspector2.CreateSbomExport",
38 );