import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreateDatasetRequest, CreateDatasetResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link CreateDatasetCommand}. */ export interface CreateDatasetCommandInput extends CreateDatasetRequest { } /** * @public * * The output of {@link CreateDatasetCommand}. */ export interface CreateDatasetCommandOutput extends CreateDatasetResponse, __MetadataBearer { } declare const CreateDatasetCommand_base: { new (input: CreateDatasetCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateDatasetCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Creates an empty dataset and adds it to the specified dataset group. * Use CreateDatasetImportJob to import your training data to a * dataset.

*

There are 5 types of datasets:

* *

Each dataset type has an associated schema with required field types. * Only the Item interactions dataset is required in order to train a * model (also referred to as creating a solution).

*

A dataset can be in one of the following states:

* *

To get the status of the dataset, call DescribeDataset.

*

* Related APIs *

* * @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { PersonalizeClient, CreateDatasetCommand } from "@aws-sdk/client-personalize"; // ES Modules import * // const { PersonalizeClient, CreateDatasetCommand } = 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 = { // CreateDatasetRequest * name: "STRING_VALUE", // required * schemaArn: "STRING_VALUE", // required * datasetGroupArn: "STRING_VALUE", // required * datasetType: "STRING_VALUE", // required * tags: [ // Tags * { // Tag * tagKey: "STRING_VALUE", // required * tagValue: "STRING_VALUE", // required * }, * ], * }; * const command = new CreateDatasetCommand(input); * const response = await client.send(command); * // { // CreateDatasetResponse * // datasetArn: "STRING_VALUE", * // }; * * ``` * * @param CreateDatasetCommandInput - {@link CreateDatasetCommandInput} * @returns {@link CreateDatasetCommandOutput} * @see {@link CreateDatasetCommandInput} for command's `input` shape. * @see {@link CreateDatasetCommandOutput} 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 ResourceInUseException} (client fault) *

The specified resource is in use.

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

Could not find the specified resource.

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

You have exceeded the maximum number of tags you can apply to this resource.

* * @throws {@link PersonalizeServiceException} *

Base exception class for all service exceptions from Personalize service.

* * * @public */ export declare class CreateDatasetCommand extends CreateDatasetCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateDatasetRequest; output: CreateDatasetResponse; }; sdk: { input: CreateDatasetCommandInput; output: CreateDatasetCommandOutput; }; }; }