import type * as datazone from "@distilled.cloud/aws/datazone";
import * as Binding from "alchemy/Binding";
import type * as Effect from "effect/Effect";
import type { Domain } from "./Domain.ts";
export interface RejectPredictionsRequest extends Omit<
datazone.RejectPredictionsInput,
"domainIdentifier"
> {}
/**
* Runtime binding for `datazone:RejectPredictions`.
*
* Rejects ML-generated metadata predictions on an asset in the bound domain. The domain id is injected from the binding.
* Provide the implementation with
* `Effect.provide(AWS.DataZone.RejectPredictionsHttp)`.
* ### Publishing Assets
* **Example:** Reject All Predictions
* ```typescript
* // init — bind the operation to the domain
* const rejectPredictions = yield* AWS.DataZone.RejectPredictions(domain);
*
* // runtime
* yield* rejectPredictions({ identifier: assetId, rejectRule: { rule: "ALL" } });
* ```
*
* @binding
*/
export interface RejectPredictions extends Binding.Service<
RejectPredictions,
"AWS.DataZone.RejectPredictions",
(
domain: Domain,
) => Effect.Effect<
(
request: RejectPredictionsRequest,
) => Effect.Effect<datazone.RejectPredictionsOutput, datazone.RejectPredictionsError>
>
> {}
export const RejectPredictions = Binding.Service<RejectPredictions>(
"AWS.DataZone.RejectPredictions",
);