import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreateDatasetExportJobRequest, CreateDatasetExportJobResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link CreateDatasetExportJobCommand}. */ export interface CreateDatasetExportJobCommandInput extends CreateDatasetExportJobRequest { } /** * @public * * The output of {@link CreateDatasetExportJobCommand}. */ export interface CreateDatasetExportJobCommandOutput extends CreateDatasetExportJobResponse, __MetadataBearer { } declare const CreateDatasetExportJobCommand_base: { new (input: CreateDatasetExportJobCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateDatasetExportJobCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Creates a job that exports data from your dataset to an Amazon S3 bucket. * To allow Amazon Personalize to export the training data, you must specify an * service-linked IAM role that gives Amazon Personalize PutObject * permissions for your Amazon S3 bucket. For information, see Exporting a dataset in the Amazon Personalize developer guide.

*

* Status *

*

A dataset export job can be in one of the following states:

* *

To get the status of the export job, call DescribeDatasetExportJob, and specify the Amazon Resource Name * (ARN) of the dataset export job. The dataset export is complete when the * status shows as ACTIVE. If the status shows as CREATE FAILED, the response * includes a failureReason key, which describes why the job * failed.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { PersonalizeClient, CreateDatasetExportJobCommand } from "@aws-sdk/client-personalize"; // ES Modules import * // const { PersonalizeClient, CreateDatasetExportJobCommand } = 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 = { // CreateDatasetExportJobRequest * jobName: "STRING_VALUE", // required * datasetArn: "STRING_VALUE", // required * ingestionMode: "BULK" || "PUT" || "ALL", * roleArn: "STRING_VALUE", // required * jobOutput: { // DatasetExportJobOutput * s3DataDestination: { // S3DataConfig * path: "STRING_VALUE", // required * kmsKeyArn: "STRING_VALUE", * }, * }, * tags: [ // Tags * { // Tag * tagKey: "STRING_VALUE", // required * tagValue: "STRING_VALUE", // required * }, * ], * }; * const command = new CreateDatasetExportJobCommand(input); * const response = await client.send(command); * // { // CreateDatasetExportJobResponse * // datasetExportJobArn: "STRING_VALUE", * // }; * * ``` * * @param CreateDatasetExportJobCommandInput - {@link CreateDatasetExportJobCommandInput} * @returns {@link CreateDatasetExportJobCommandOutput} * @see {@link CreateDatasetExportJobCommandInput} for command's `input` shape. * @see {@link CreateDatasetExportJobCommandOutput} 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 CreateDatasetExportJobCommand extends CreateDatasetExportJobCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateDatasetExportJobRequest; output: CreateDatasetExportJobResponse; }; sdk: { input: CreateDatasetExportJobCommandInput; output: CreateDatasetExportJobCommandOutput; }; }; }