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 a dataset to upload training or test data for a model associated with a flywheel. * For more information about datasets, see * Flywheel overview in the Amazon Comprehend Developer Guide.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ComprehendClient, CreateDatasetCommand } from "@aws-sdk/client-comprehend"; // ES Modules import * // const { ComprehendClient, CreateDatasetCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import * // import type { ComprehendClientConfig } from "@aws-sdk/client-comprehend"; * const config = {}; // type is ComprehendClientConfig * const client = new ComprehendClient(config); * const input = { // CreateDatasetRequest * FlywheelArn: "STRING_VALUE", // required * DatasetName: "STRING_VALUE", // required * DatasetType: "TRAIN" || "TEST", * Description: "STRING_VALUE", * InputDataConfig: { // DatasetInputDataConfig * AugmentedManifests: [ // DatasetAugmentedManifestsList * { // DatasetAugmentedManifestsListItem * AttributeNames: [ // AttributeNamesList // required * "STRING_VALUE", * ], * S3Uri: "STRING_VALUE", // required * AnnotationDataS3Uri: "STRING_VALUE", * SourceDocumentsS3Uri: "STRING_VALUE", * DocumentType: "PLAIN_TEXT_DOCUMENT" || "SEMI_STRUCTURED_DOCUMENT", * }, * ], * DataFormat: "COMPREHEND_CSV" || "AUGMENTED_MANIFEST", * DocumentClassifierInputDataConfig: { // DatasetDocumentClassifierInputDataConfig * S3Uri: "STRING_VALUE", // required * LabelDelimiter: "STRING_VALUE", * }, * EntityRecognizerInputDataConfig: { // DatasetEntityRecognizerInputDataConfig * Annotations: { // DatasetEntityRecognizerAnnotations * S3Uri: "STRING_VALUE", // required * }, * Documents: { // DatasetEntityRecognizerDocuments * S3Uri: "STRING_VALUE", // required * InputFormat: "ONE_DOC_PER_FILE" || "ONE_DOC_PER_LINE", * }, * EntityList: { // DatasetEntityRecognizerEntityList * S3Uri: "STRING_VALUE", // required * }, * }, * }, * ClientRequestToken: "STRING_VALUE", * Tags: [ // TagList * { // Tag * Key: "STRING_VALUE", // required * Value: "STRING_VALUE", * }, * ], * }; * 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 ComprehendClientResolvedConfig | config} for ComprehendClient's `config` shape. * * @throws {@link InternalServerException} (server fault) *

An internal server error occurred. Retry your request.

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

The request is invalid.

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

The specified resource name is already in use. Use a different name and try your request * again.

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

The maximum number of resources per account has been exceeded. Review the resources, and * then try your request again.

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

The specified resource ARN was not found. Check the ARN and try your request again.

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

The number of requests exceeds the limit. Resubmit your request later.

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

The request contains more tags than can be associated with a resource (50 tags per * resource). The maximum number of tags includes both existing tags and those included in your * current request.

* * @throws {@link ComprehendServiceException} *

Base exception class for all service exceptions from Comprehend 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; }; }; }