sailfork / t3code-github / .repos/ alchemy-effect/ packages/ aws/ src/ Inspector2/ GetSbomExport.ts

import type * as inspector2 from "@distilled.cloud/aws/inspector2";
import * as Binding from "alchemy/Binding";
import type * as Effect from "effect/Effect";

/**
 * Runtime binding for `inspector2:GetSbomExport`.
 *
 * Gets details of a software bill of materials (SBOM) report.
 *
 * Provide the implementation with
 * `Effect.provide(AWS.Inspector2.GetSbomExportHttp)`.
 * ### Findings Reports & SBOM Exports
 * **Example:** Poll an SBOM Export
 * ```typescript
 * // init
 * const getSbomExport = yield* AWS.Inspector2.GetSbomExport();
 *
 * // runtime
 * const { status } = yield* getSbomExport({ reportId });
 * ```
 *
 * @binding
 */
export interface GetSbomExport extends Binding.Service<
  GetSbomExport,
  "AWS.Inspector2.GetSbomExport",
  () => Effect.Effect<
    (
      request: inspector2.GetSbomExportRequest,
    ) => Effect.Effect<inspector2.GetSbomExportResponse, inspector2.GetSbomExportError>
  >
> {}
export const GetSbomExport = Binding.Service<GetSbomExport>("AWS.Inspector2.GetSbomExport");