sailfork / t3code-github / .repos/ alchemy-effect/ packages/ aws/ src/ Transcribe/ ListLanguageModels.ts

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

/**
 * Runtime binding for `transcribe:ListLanguageModels` — list the custom language models in the account.
 *
 * Amazon Transcribe batch actions have no resource-level IAM; the host is
 * granted `transcribe:ListLanguageModels` on `*`.
 *
 * ### Custom Language Models
 * **Example:** List Custom Language Models
 * ```typescript
 * // init
 * const listLanguageModels = yield* AWS.Transcribe.ListLanguageModels();
 *
 * // runtime
 * const { Models } = yield* listLanguageModels({ MaxResults: 10 });
 * ```
 *
 * @binding
 */
export interface ListLanguageModels extends Binding.Service<
  ListLanguageModels,
  "AWS.Transcribe.ListLanguageModels",
  () => Effect.Effect<
    (
      request?: transcribe.ListLanguageModelsRequest,
    ) => Effect.Effect<transcribe.ListLanguageModelsResponse, transcribe.ListLanguageModelsError>
  >
> {}
export const ListLanguageModels = Binding.Service<ListLanguageModels>(
  "AWS.Transcribe.ListLanguageModels",
);