import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreateSchemaRequest, CreateSchemaResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link CreateSchemaCommand}. */ export interface CreateSchemaCommandInput extends CreateSchemaRequest { } /** * @public * * The output of {@link CreateSchemaCommand}. */ export interface CreateSchemaCommandOutput extends CreateSchemaResponse, __MetadataBearer { } declare const CreateSchemaCommand_base: { new (input: CreateSchemaCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateSchemaCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Creates an Amazon Personalize schema from the specified schema string. The schema you create * must be in Avro JSON format.

*

Amazon Personalize recognizes three schema variants. Each schema is associated with a dataset * type and has a set of required field and keywords. If you are creating a schema for a dataset in a Domain dataset group, you * provide the domain of the Domain dataset group. * You specify a schema when you call CreateDataset.

*

* Related APIs *

* * @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { PersonalizeClient, CreateSchemaCommand } from "@aws-sdk/client-personalize"; // ES Modules import * // const { PersonalizeClient, CreateSchemaCommand } = require("@aws-sdk/client-personalize"); // CommonJS import * // import type { PersonalizeClientConfig } from "@aws-sdk/client-personalize"; * const config = {}; // type is PersonalizeClientConfig * const client = new PersonalizeClient(config); * const input = { // CreateSchemaRequest * name: "STRING_VALUE", // required * schema: "STRING_VALUE", // required * domain: "ECOMMERCE" || "VIDEO_ON_DEMAND", * }; * const command = new CreateSchemaCommand(input); * const response = await client.send(command); * // { // CreateSchemaResponse * // schemaArn: "STRING_VALUE", * // }; * * ``` * * @param CreateSchemaCommandInput - {@link CreateSchemaCommandInput} * @returns {@link CreateSchemaCommandOutput} * @see {@link CreateSchemaCommandInput} for command's `input` shape. * @see {@link CreateSchemaCommandOutput} for command's `response` shape. * @see {@link PersonalizeClientResolvedConfig | config} for PersonalizeClient's `config` shape. * * @throws {@link InvalidInputException} (client fault) *

Provide a valid value for the field or parameter.

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

The limit on the number of requests per second has been exceeded.

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

The specified resource already exists.

* * @throws {@link PersonalizeServiceException} *

Base exception class for all service exceptions from Personalize service.

* * * @public */ export declare class CreateSchemaCommand extends CreateSchemaCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateSchemaRequest; output: CreateSchemaResponse; }; sdk: { input: CreateSchemaCommandInput; output: CreateSchemaCommandOutput; }; }; }