import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreateLanguageModelRequest, CreateLanguageModelResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link CreateLanguageModelCommand}. */ export interface CreateLanguageModelCommandInput extends CreateLanguageModelRequest { } /** * @public * * The output of {@link CreateLanguageModelCommand}. */ export interface CreateLanguageModelCommandOutput extends CreateLanguageModelResponse, __MetadataBearer { } declare const CreateLanguageModelCommand_base: { new (input: CreateLanguageModelCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateLanguageModelCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Creates a new custom language model.

*

When creating a new custom language model, you must specify:

* * @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { TranscribeClient, CreateLanguageModelCommand } from "@aws-sdk/client-transcribe"; // ES Modules import * // const { TranscribeClient, CreateLanguageModelCommand } = require("@aws-sdk/client-transcribe"); // CommonJS import * // import type { TranscribeClientConfig } from "@aws-sdk/client-transcribe"; * const config = {}; // type is TranscribeClientConfig * const client = new TranscribeClient(config); * const input = { // CreateLanguageModelRequest * LanguageCode: "en-US" || "hi-IN" || "es-US" || "en-GB" || "en-AU" || "de-DE" || "ja-JP", // required * BaseModelName: "NarrowBand" || "WideBand", // required * ModelName: "STRING_VALUE", // required * InputDataConfig: { // InputDataConfig * S3Uri: "STRING_VALUE", // required * TuningDataS3Uri: "STRING_VALUE", * DataAccessRoleArn: "STRING_VALUE", // required * }, * EncryptionConfiguration: { // EncryptionConfiguration * KMSEncryptionContext: { // KMSEncryptionContextMap * "": "STRING_VALUE", * }, * KMSKey: "STRING_VALUE", // required * }, * Tags: [ // TagList * { // Tag * Key: "STRING_VALUE", // required * Value: "STRING_VALUE", // required * }, * ], * }; * const command = new CreateLanguageModelCommand(input); * const response = await client.send(command); * // { // CreateLanguageModelResponse * // LanguageCode: "en-US" || "hi-IN" || "es-US" || "en-GB" || "en-AU" || "de-DE" || "ja-JP", * // BaseModelName: "NarrowBand" || "WideBand", * // ModelName: "STRING_VALUE", * // InputDataConfig: { // InputDataConfig * // S3Uri: "STRING_VALUE", // required * // TuningDataS3Uri: "STRING_VALUE", * // DataAccessRoleArn: "STRING_VALUE", // required * // }, * // ModelStatus: "IN_PROGRESS" || "FAILED" || "COMPLETED", * // }; * * ``` * * @param CreateLanguageModelCommandInput - {@link CreateLanguageModelCommandInput} * @returns {@link CreateLanguageModelCommandOutput} * @see {@link CreateLanguageModelCommandInput} for command's `input` shape. * @see {@link CreateLanguageModelCommandOutput} for command's `response` shape. * @see {@link TranscribeClientResolvedConfig | config} for TranscribeClient's `config` shape. * * @throws {@link BadRequestException} (client fault) *

Your request didn't pass one or more validation tests. This can occur when a * parameter has an invalid value, when you combine parameters in a way that isn't * supported, when the entity you're trying to delete doesn't exist, or if it's in a * non-terminal state (such as IN PROGRESS). See the exception message field * for more information.

* * @throws {@link ConflictException} (client fault) *

A resource already exists with this name. Resource names must be unique within an * Amazon Web Services account.

* * @throws {@link InternalFailureException} (server fault) *

There was an internal error. Check the error message, correct the issue, and try your * request again.

* * @throws {@link LimitExceededException} (client fault) *

You've either sent too many requests or your input file is too long. Wait before * retrying your request, or use a smaller file and try your request again.

* * @throws {@link TranscribeServiceException} *

Base exception class for all service exceptions from Transcribe service.

* * * @public */ export declare class CreateLanguageModelCommand extends CreateLanguageModelCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateLanguageModelRequest; output: CreateLanguageModelResponse; }; sdk: { input: CreateLanguageModelCommandInput; output: CreateLanguageModelCommandOutput; }; }; }