- 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.
DescribeDatasetCommand
Describes an Amazon Forecast dataset created using the CreateDataset operation.
In addition to listing the parameters specified in the CreateDataset
request, this operation includes the following dataset properties:
-
CreationTime
-
LastModificationTime
-
Status
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { ForecastClient, DescribeDatasetCommand } from "@aws-sdk/client-forecast"; // ES Modules import
// const { ForecastClient, DescribeDatasetCommand } = require("@aws-sdk/client-forecast"); // CommonJS import
const client = new ForecastClient(config);
const input = { // DescribeDatasetRequest
DatasetArn: "STRING_VALUE", // required
};
const command = new DescribeDatasetCommand(input);
const response = await client.send(command);
// { // DescribeDatasetResponse
// DatasetArn: "STRING_VALUE",
// DatasetName: "STRING_VALUE",
// Domain: "RETAIL" || "CUSTOM" || "INVENTORY_PLANNING" || "EC2_CAPACITY" || "WORK_FORCE" || "WEB_TRAFFIC" || "METRICS",
// DatasetType: "TARGET_TIME_SERIES" || "RELATED_TIME_SERIES" || "ITEM_METADATA",
// DataFrequency: "STRING_VALUE",
// Schema: { // Schema
// Attributes: [ // SchemaAttributes
// { // SchemaAttribute
// AttributeName: "STRING_VALUE",
// AttributeType: "string" || "integer" || "float" || "timestamp" || "geolocation",
// },
// ],
// },
// EncryptionConfig: { // EncryptionConfig
// RoleArn: "STRING_VALUE", // required
// KMSKeyArn: "STRING_VALUE", // required
// },
// Status: "STRING_VALUE",
// CreationTime: new Date("TIMESTAMP"),
// LastModificationTime: new Date("TIMESTAMP"),
// };
DescribeDatasetCommand Input
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
DatasetArn Required | string | undefined | The Amazon Resource Name (ARN) of the dataset. |
DescribeDatasetCommand Output
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
CreationTime | Date | undefined | When the dataset was created. |
DataFrequency | string | undefined | The frequency of data collection. Valid intervals are Y (Year), M (Month), W (Week), D (Day), H (Hour), 30min (30 minutes), 15min (15 minutes), 10min (10 minutes), 5min (5 minutes), and 1min (1 minute). For example, "M" indicates every month and "30min" indicates every 30 minutes. |
DatasetArn | string | undefined | The Amazon Resource Name (ARN) of the dataset. |
DatasetName | string | undefined | The name of the dataset. |
DatasetType | DatasetType | undefined | The dataset type. |
Domain | Domain | undefined | The domain associated with the dataset. |
EncryptionConfig | EncryptionConfig | undefined | The Key Management Service (KMS) key and the Identity and Access Management (IAM) role that Amazon Forecast can assume to access the key. |
LastModificationTime | Date | undefined | When you create a dataset, |
Schema | Schema | undefined | An array of |
Status | string | undefined | The status of the dataset. States include:
The The |
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. |