- 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.
DescribeForecastCommand
Describes a forecast created using the CreateForecast operation.
In addition to listing the properties provided in the CreateForecast
request, this operation lists the following properties:
-
DatasetGroupArn
- The dataset group that provided the training data. -
CreationTime
-
LastModificationTime
-
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, DescribeForecastCommand } from "@aws-sdk/client-forecast"; // ES Modules import
// const { ForecastClient, DescribeForecastCommand } = require("@aws-sdk/client-forecast"); // CommonJS import
const client = new ForecastClient(config);
const input = { // DescribeForecastRequest
ForecastArn: "STRING_VALUE", // required
};
const command = new DescribeForecastCommand(input);
const response = await client.send(command);
// { // DescribeForecastResponse
// ForecastArn: "STRING_VALUE",
// ForecastName: "STRING_VALUE",
// ForecastTypes: [ // ForecastTypes
// "STRING_VALUE",
// ],
// PredictorArn: "STRING_VALUE",
// DatasetGroupArn: "STRING_VALUE",
// EstimatedTimeRemainingInMinutes: Number("long"),
// Status: "STRING_VALUE",
// Message: "STRING_VALUE",
// CreationTime: new Date("TIMESTAMP"),
// LastModificationTime: new Date("TIMESTAMP"),
// TimeSeriesSelector: { // TimeSeriesSelector
// TimeSeriesIdentifiers: { // TimeSeriesIdentifiers
// DataSource: { // DataSource
// S3Config: { // S3Config
// Path: "STRING_VALUE", // required
// RoleArn: "STRING_VALUE", // required
// KMSKeyArn: "STRING_VALUE",
// },
// },
// Schema: { // Schema
// Attributes: [ // SchemaAttributes
// { // SchemaAttribute
// AttributeName: "STRING_VALUE",
// AttributeType: "string" || "integer" || "float" || "timestamp" || "geolocation",
// },
// ],
// },
// Format: "STRING_VALUE",
// },
// },
// };
DescribeForecastCommand Input
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
ForecastArn Required | string | undefined | The Amazon Resource Name (ARN) of the forecast. |
DescribeForecastCommand Output
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
CreationTime | Date | undefined | When the forecast creation task was created. |
DatasetGroupArn | string | undefined | The ARN of the dataset group that provided the data used to train the predictor. |
EstimatedTimeRemainingInMinutes | number | undefined | The estimated time remaining in minutes for the forecast job to complete. |
ForecastArn | string | undefined | The forecast ARN as specified in the request. |
ForecastName | string | undefined | The name of the forecast. |
ForecastTypes | string[] | undefined | The quantiles at which probabilistic forecasts were generated. |
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. |
PredictorArn | string | undefined | The ARN of the predictor used to generate the forecast. |
Status | string | undefined | The status of the forecast. States include:
The |
TimeSeriesSelector | TimeSeriesSelector | undefined | The time series to include in the forecast. |
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. |