describe_forecast
(**kwargs)¶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.See also: AWS API Documentation
Request Syntax
response = client.describe_forecast(
ForecastArn='string'
)
[REQUIRED]
The Amazon Resource Name (ARN) of the forecast.
{
'ForecastArn': 'string',
'ForecastName': 'string',
'ForecastTypes': [
'string',
],
'PredictorArn': 'string',
'DatasetGroupArn': 'string',
'EstimatedTimeRemainingInMinutes': 123,
'Status': 'string',
'Message': 'string',
'CreationTime': datetime(2015, 1, 1),
'LastModificationTime': datetime(2015, 1, 1),
'TimeSeriesSelector': {
'TimeSeriesIdentifiers': {
'DataSource': {
'S3Config': {
'Path': 'string',
'RoleArn': 'string',
'KMSKeyArn': 'string'
}
},
'Schema': {
'Attributes': [
{
'AttributeName': 'string',
'AttributeType': 'string'|'integer'|'float'|'timestamp'|'geolocation'
},
]
},
'Format': 'string'
}
}
}
Response Structure
The forecast ARN as specified in the request.
The name of the forecast.
The quantiles at which probabilistic forecasts were generated.
The ARN of the predictor used to generate the forecast.
The ARN of the dataset group that provided the data used to train the predictor.
The estimated time remaining in minutes for the forecast job to complete.
The status of the forecast. States include:
ACTIVE
CREATE_PENDING
, CREATE_IN_PROGRESS
, CREATE_FAILED
CREATE_STOPPING
, CREATE_STOPPED
DELETE_PENDING
, DELETE_IN_PROGRESS
, DELETE_FAILED
Note
The Status
of the forecast must be ACTIVE
before you can query or export the forecast.
If an error occurred, an informational message about the error.
When the forecast creation task was created.
The last time the resource was modified. The timestamp depends on the status of the job:
CREATE_PENDING
- The CreationTime
.CREATE_IN_PROGRESS
- The current timestamp.CREATE_STOPPING
- The current timestamp.CREATE_STOPPED
- When the job stopped.ACTIVE
or CREATE_FAILED
- When the job finished or failed.The time series to include in the forecast.
Details about the import file that contains the time series for which you want to create forecasts.
The source of your data, an Identity and Access Management (IAM) role that allows Amazon Forecast to access the data and, optionally, an Key Management Service (KMS) key.
The path to the data stored in an Amazon Simple Storage Service (Amazon S3) bucket along with the credentials to access the data.
The path to an Amazon Simple Storage Service (Amazon S3) bucket or file(s) in an Amazon S3 bucket.
The ARN of the Identity and Access Management (IAM) role that Amazon Forecast can assume to access the Amazon S3 bucket or files. If you provide a value for the KMSKeyArn
key, the role must allow access to the key.
Passing a role across Amazon Web Services accounts is not allowed. If you pass a role that isn't in your account, you get an InvalidInputException
error.
The Amazon Resource Name (ARN) of an Key Management Service (KMS) key.
Defines the fields of a dataset.
An array of attributes specifying the name and type of each field in a dataset.
An attribute of a schema, which defines a dataset field. A schema attribute is required for every field in a dataset. The Schema object contains an array of SchemaAttribute
objects.
The name of the dataset field.
The data type of the field.
For a related time series dataset, other than date, item_id, and forecast dimensions attributes, all attributes should be of numerical type (integer/float).
The format of the data, either CSV or PARQUET.
Exceptions
ForecastService.Client.exceptions.InvalidInputException
ForecastService.Client.exceptions.ResourceNotFoundException