sailfork / t3code-github / .repos/ alchemy-effect/ packages/ aws/ src/ GuardDuty/ ListMalwareScans.ts

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

/**
 * Runtime binding for `guardduty:ListMalwareScans`.
 *
 * Lists the account's on-demand malware scans with optional filter and sort criteria.
 * Account-level operation — invoked with the caller's request as-is.
 * Provide the implementation with
 * `Effect.provide(AWS.GuardDuty.ListMalwareScansHttp)`.
 * ### Malware Protection
 * **Example:** List On-Demand Scans
 * ```typescript
 * // init
 * // init — account-level binding, no resource argument
 * const listMalwareScans = yield* AWS.GuardDuty.ListMalwareScans();
 *
 * // runtime
 * const { Scans } = yield* listMalwareScans();
 * ```
 *
 * @binding
 */
export interface ListMalwareScans extends Binding.Service<
  ListMalwareScans,
  "AWS.GuardDuty.ListMalwareScans",
  () => Effect.Effect<
    (
      request?: guardduty.ListMalwareScansRequest,
    ) => Effect.Effect<guardduty.ListMalwareScansResponse, guardduty.ListMalwareScansError>
  >
> {}
export const ListMalwareScans = Binding.Service<ListMalwareScans>("AWS.GuardDuty.ListMalwareScans");