- Navigation GuideYou are on a Command (operation) page with structural examples. Use the navigation breadcrumb if you would like to return to the Client landing page.
DescribeDatasetImportJobCommand
Describes a dataset import job created using the CreateDatasetImportJob operation.
In addition to listing the parameters provided in the CreateDatasetImportJob
request, this operation includes the following properties:
-
CreationTime
-
LastModificationTime
-
DataSize
-
FieldStatistics
-
Status
-
Message
- If an error occurred, information about the error.
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { ForecastClient, DescribeDatasetImportJobCommand } from "@aws-sdk/client-forecast"; // ES Modules import
// const { ForecastClient, DescribeDatasetImportJobCommand } = require("@aws-sdk/client-forecast"); // CommonJS import
const client = new ForecastClient(config);
const input = { // DescribeDatasetImportJobRequest
DatasetImportJobArn: "STRING_VALUE", // required
};
const command = new DescribeDatasetImportJobCommand(input);
const response = await client.send(command);
// { // DescribeDatasetImportJobResponse
// DatasetImportJobName: "STRING_VALUE",
// DatasetImportJobArn: "STRING_VALUE",
// DatasetArn: "STRING_VALUE",
// TimestampFormat: "STRING_VALUE",
// TimeZone: "STRING_VALUE",
// UseGeolocationForTimeZone: true || false,
// GeolocationFormat: "STRING_VALUE",
// DataSource: { // DataSource
// S3Config: { // S3Config
// Path: "STRING_VALUE", // required
// RoleArn: "STRING_VALUE", // required
// KMSKeyArn: "STRING_VALUE",
// },
// },
// EstimatedTimeRemainingInMinutes: Number("long"),
// FieldStatistics: { // FieldStatistics
// "<keys>": { // Statistics
// Count: Number("int"),
// CountDistinct: Number("int"),
// CountNull: Number("int"),
// CountNan: Number("int"),
// Min: "STRING_VALUE",
// Max: "STRING_VALUE",
// Avg: Number("double"),
// Stddev: Number("double"),
// CountLong: Number("long"),
// CountDistinctLong: Number("long"),
// CountNullLong: Number("long"),
// CountNanLong: Number("long"),
// },
// },
// DataSize: Number("double"),
// Status: "STRING_VALUE",
// Message: "STRING_VALUE",
// CreationTime: new Date("TIMESTAMP"),
// LastModificationTime: new Date("TIMESTAMP"),
// Format: "STRING_VALUE",
// ImportMode: "FULL" || "INCREMENTAL",
// };
DescribeDatasetImportJobCommand Input
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
DatasetImportJobArn Required | string | undefined | The Amazon Resource Name (ARN) of the dataset import job. |
DescribeDatasetImportJobCommand Output
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
CreationTime | Date | undefined | When the dataset import job was created. |
DataSize | number | undefined | The size of the dataset in gigabytes (GB) after the import job has finished. |
DataSource | DataSource | undefined | The location of the training data to import and an Identity and Access Management (IAM) role that Amazon Forecast can assume to access the data. If encryption is used, |
DatasetArn | string | undefined | The Amazon Resource Name (ARN) of the dataset that the training data was imported to. |
DatasetImportJobArn | string | undefined | The ARN of the dataset import job. |
DatasetImportJobName | string | undefined | The name of the dataset import job. |
EstimatedTimeRemainingInMinutes | number | undefined | The estimated time remaining in minutes for the dataset import job to complete. |
FieldStatistics | Record<string, Statistics> | undefined | Statistical information about each field in the input data. |
Format | string | undefined | The format of the imported data, CSV or PARQUET. |
GeolocationFormat | string | undefined | The format of the geolocation attribute. Valid Values: |
ImportMode | ImportMode | undefined | The import mode of the dataset import job, FULL or INCREMENTAL. |
LastModificationTime | Date | undefined | The last time the resource was modified. The timestamp depends on the status of the job:
|
Message | string | undefined | If an error occurred, an informational message about the error. |
Status | string | undefined | The status of the dataset import job. States include:
|
TimeZone | string | undefined | The single time zone applied to every item in the dataset |
TimestampFormat | string | undefined | The format of timestamps in the dataset. The format that you specify depends on the
|
UseGeolocationForTimeZone | boolean | undefined | Whether |
Throws
Name | Fault | Details |
---|
Name | Fault | Details |
---|---|---|
InvalidInputException | client | We can't process the request because it includes an invalid value or a value that exceeds the valid range. |
ResourceNotFoundException | client | We can't find a resource with that Amazon Resource Name (ARN). Check the ARN and try again. |
ForecastServiceException | Base exception class for all service exceptions from Forecast service. |