1import type * as inspector2 from "@distilled.cloud/aws/inspector2";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
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 */
27export interface CreateSbomExport extends Binding.Service<
28 CreateSbomExport,
29 "AWS.Inspector2.CreateSbomExport",
30 () => Effect.Effect<
31 (
32 request: inspector2.CreateSbomExportRequest,
33 ) => Effect.Effect<
34 inspector2.CreateSbomExportResponse,
35 inspector2.CreateSbomExportError
36 >
37 >
38> {}
39export const CreateSbomExport = Binding.Service<CreateSbomExport>(
40 "AWS.Inspector2.CreateSbomExport",
41);