sailfork / t3code-github / .repos/ alchemy-effect/ packages/ aws/ src/ GuardDuty/ SendObjectMalwareScan.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:SendObjectMalwareScan`.
 *
 * Submits an S3 object for malware scanning under a Malware Protection plan covering its bucket.
 * Account-level operation — invoked with the caller's request as-is.
 * Provide the implementation with
 * `Effect.provide(AWS.GuardDuty.SendObjectMalwareScanHttp)`.
 * ### Malware Protection
 * **Example:** Scan an S3 Object
 * ```typescript
 * // init
 * // init — account-level binding, no resource argument
 * const sendObjectMalwareScan = yield* AWS.GuardDuty.SendObjectMalwareScan();
 *
 * // runtime
 * yield* sendObjectMalwareScan({
 *   S3Object: { Bucket: "my-bucket", Key: "upload.bin" },
 * });
 * ```
 *
 * @binding
 */
export interface SendObjectMalwareScan extends Binding.Service<
  SendObjectMalwareScan,
  "AWS.GuardDuty.SendObjectMalwareScan",
  () => Effect.Effect<
    (
      request?: guardduty.SendObjectMalwareScanRequest,
    ) => Effect.Effect<
      guardduty.SendObjectMalwareScanResponse,
      guardduty.SendObjectMalwareScanError
    >
  >
> {}
export const SendObjectMalwareScan = Binding.Service<SendObjectMalwareScan>(
  "AWS.GuardDuty.SendObjectMalwareScan",
);