import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreateDatasetImportJobRequest, CreateDatasetImportJobResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link CreateDatasetImportJobCommand}. */ export interface CreateDatasetImportJobCommandInput extends CreateDatasetImportJobRequest { } /** * @public * * The output of {@link CreateDatasetImportJobCommand}. */ export interface CreateDatasetImportJobCommandOutput extends CreateDatasetImportJobResponse, __MetadataBearer { } declare const CreateDatasetImportJobCommand_base: { new (input: CreateDatasetImportJobCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateDatasetImportJobCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Imports your training data to an Amazon Forecast dataset. You provide the location of your * training data in an Amazon Simple Storage Service (Amazon S3) bucket and the Amazon Resource Name (ARN) of the dataset * that you want to import the data to.

*

You must specify a DataSource object that includes an * Identity and Access Management (IAM) role that Amazon Forecast can assume to access the data, as Amazon Forecast makes a copy * of your data and processes it in an internal Amazon Web Services system. For more information, see Set up * permissions.

*

The training data must be in CSV or Parquet format. The delimiter must be a comma (,).

*

You can specify the path to a specific file, the S3 bucket, or to a folder in the S3 * bucket. For the latter two cases, Amazon Forecast imports all files up to the limit of 10,000 * files.

*

Because dataset imports are not aggregated, your most recent dataset import is the one * that is used when training a predictor or generating a forecast. Make sure that your most * recent dataset import contains all of the data you want to model off of, and not just the new * data collected since the previous import.

*

To get a list of all your dataset import jobs, filtered by specified criteria, use the * ListDatasetImportJobs operation.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ForecastClient, CreateDatasetImportJobCommand } from "@aws-sdk/client-forecast"; // ES Modules import * // const { ForecastClient, CreateDatasetImportJobCommand } = require("@aws-sdk/client-forecast"); // CommonJS import * // import type { ForecastClientConfig } from "@aws-sdk/client-forecast"; * const config = {}; // type is ForecastClientConfig * const client = new ForecastClient(config); * const input = { // CreateDatasetImportJobRequest * DatasetImportJobName: "STRING_VALUE", // required * DatasetArn: "STRING_VALUE", // required * DataSource: { // DataSource * S3Config: { // S3Config * Path: "STRING_VALUE", // required * RoleArn: "STRING_VALUE", // required * KMSKeyArn: "STRING_VALUE", * }, * }, * TimestampFormat: "STRING_VALUE", * TimeZone: "STRING_VALUE", * UseGeolocationForTimeZone: true || false, * GeolocationFormat: "STRING_VALUE", * Tags: [ // Tags * { // Tag * Key: "STRING_VALUE", // required * Value: "STRING_VALUE", // required * }, * ], * Format: "STRING_VALUE", * ImportMode: "FULL" || "INCREMENTAL", * }; * const command = new CreateDatasetImportJobCommand(input); * const response = await client.send(command); * // { // CreateDatasetImportJobResponse * // DatasetImportJobArn: "STRING_VALUE", * // }; * * ``` * * @param CreateDatasetImportJobCommandInput - {@link CreateDatasetImportJobCommandInput} * @returns {@link CreateDatasetImportJobCommandOutput} * @see {@link CreateDatasetImportJobCommandInput} for command's `input` shape. * @see {@link CreateDatasetImportJobCommandOutput} for command's `response` shape. * @see {@link ForecastClientResolvedConfig | config} for ForecastClient's `config` shape. * * @throws {@link InvalidInputException} (client fault) *

We can't process the request because it includes an invalid value or a value that exceeds * the valid range.

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

The limit on the number of resources per account has been exceeded.

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

There is already a resource with this name. Try again with a different name.

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

The specified resource is in use.

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

We can't find a resource with that Amazon Resource Name (ARN). Check the ARN and try * again.

* * @throws {@link ForecastServiceException} *

Base exception class for all service exceptions from Forecast service.

* * * @public */ export declare class CreateDatasetImportJobCommand extends CreateDatasetImportJobCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateDatasetImportJobRequest; output: CreateDatasetImportJobResponse; }; sdk: { input: CreateDatasetImportJobCommandInput; output: CreateDatasetImportJobCommandOutput; }; }; }