sailfork / t3code-github / .repos/ alchemy-effect/ packages/ aws/ src/ Personalize/ CreateSolutionVersion.ts

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

/**
 * Runtime binding for `personalize:CreateSolutionVersion` — Trains a new model (solution version) for an existing solution — the
 * retraining step of the MLOps loop, typically run on a schedule after
 * fresh data is imported.
 * Provide the implementation with
 * `Effect.provide(AWS.Personalize.CreateSolutionVersionHttp)`.
 *
 * ### Retraining Loop
 * **Example:** Retrain a Solution
 * ```typescript
 * // init
 * const createSolutionVersion = yield* Personalize.CreateSolutionVersion();
 *
 * const { solutionVersionArn } = yield* createSolutionVersion({
 *   solutionArn,
 *   trainingMode: "UPDATE",
 * });
 * ```
 *
 * @binding
 */
export interface CreateSolutionVersion extends Binding.Service<
  CreateSolutionVersion,
  "AWS.Personalize.CreateSolutionVersion",
  () => Effect.Effect<
    (
      request: personalize.CreateSolutionVersionRequest,
    ) => Effect.Effect<
      personalize.CreateSolutionVersionResponse,
      personalize.CreateSolutionVersionError
    >
  >
> {}
export const CreateSolutionVersion = Binding.Service<CreateSolutionVersion>(
  "AWS.Personalize.CreateSolutionVersion",
);