ForecastService / Client / list_predictors
list_predictors#
- ForecastService.Client.list_predictors(**kwargs)#
Returns a list of predictors created using the CreateAutoPredictor or CreatePredictor operations. For each predictor, this operation returns a summary of its properties, including its Amazon Resource Name (ARN).
You can retrieve the complete set of properties by using the ARN with the DescribeAutoPredictor and DescribePredictor operations. You can filter the list using an array of Filter objects.
See also: AWS API Documentation
Request Syntax
response = client.list_predictors( NextToken='string', MaxResults=123, Filters=[ { 'Key': 'string', 'Value': 'string', 'Condition': 'IS'|'IS_NOT' }, ] )
- Parameters:
NextToken (string) – If the result of the previous request was truncated, the response includes a
NextToken
. To retrieve the next set of results, use the token in the next request. Tokens expire after 24 hours.MaxResults (integer) – The number of items to return in the response.
Filters (list) –
An array of filters. For each filter, you provide a condition and a match statement. The condition is either
IS
orIS_NOT
, which specifies whether to include or exclude the predictors that match the statement from the list, respectively. The match statement consists of a key and a value.Filter properties
Condition
- The condition to apply. Valid values areIS
andIS_NOT
. To include the predictors that match the statement, specifyIS
. To exclude matching predictors, specifyIS_NOT
.Key
- The name of the parameter to filter on. Valid values areDatasetGroupArn
andStatus
.Value
- The value to match.
For example, to list all predictors whose status is ACTIVE, you would specify:
"Filters": [ { "Condition": "IS", "Key": "Status", "Value": "ACTIVE" } ]
(dict) –
Describes a filter for choosing a subset of objects. Each filter consists of a condition and a match statement. The condition is either
IS
orIS_NOT
, which specifies whether to include or exclude the objects that match the statement, respectively. The match statement consists of a key and a value.Key (string) – [REQUIRED]
The name of the parameter to filter on.
Value (string) – [REQUIRED]
The value to match.
Condition (string) – [REQUIRED]
The condition to apply. To include the objects that match the statement, specify
IS
. To exclude matching objects, specifyIS_NOT
.
- Return type:
dict
- Returns:
Response Syntax
{ 'Predictors': [ { 'PredictorArn': 'string', 'PredictorName': 'string', 'DatasetGroupArn': 'string', 'IsAutoPredictor': True|False, 'ReferencePredictorSummary': { 'Arn': 'string', 'State': 'Active'|'Deleted' }, 'Status': 'string', 'Message': 'string', 'CreationTime': datetime(2015, 1, 1), 'LastModificationTime': datetime(2015, 1, 1) }, ], 'NextToken': 'string' }
Response Structure
(dict) –
Predictors (list) –
An array of objects that summarize each predictor’s properties.
(dict) –
Provides a summary of the predictor properties that are used in the ListPredictors operation. To get the complete set of properties, call the DescribePredictor operation, and provide the listed
PredictorArn
.PredictorArn (string) –
The ARN of the predictor.
PredictorName (string) –
The name of the predictor.
DatasetGroupArn (string) –
The Amazon Resource Name (ARN) of the dataset group that contains the data used to train the predictor.
IsAutoPredictor (boolean) –
Whether AutoPredictor was used to create the predictor.
ReferencePredictorSummary (dict) –
A summary of the reference predictor used if the predictor was retrained or upgraded.
Arn (string) –
The ARN of the reference predictor.
State (string) –
Whether the reference predictor is
Active
orDeleted
.
Status (string) –
The status of the predictor. States include:
ACTIVE
CREATE_PENDING
,CREATE_IN_PROGRESS
,CREATE_FAILED
DELETE_PENDING
,DELETE_IN_PROGRESS
,DELETE_FAILED
CREATE_STOPPING
,CREATE_STOPPED
Note
The
Status
of the predictor must beACTIVE
before you can use the predictor to create a forecast.Message (string) –
If an error occurred, an informational message about the error.
CreationTime (datetime) –
When the model training task was created.
LastModificationTime (datetime) –
The last time the resource was modified. The timestamp depends on the status of the job:
CREATE_PENDING
- TheCreationTime
.CREATE_IN_PROGRESS
- The current timestamp.CREATE_STOPPING
- The current timestamp.CREATE_STOPPED
- When the job stopped.ACTIVE
orCREATE_FAILED
- When the job finished or failed.
NextToken (string) –
If the response is truncated, Amazon Forecast returns this token. To retrieve the next set of results, use the token in the next request.
Exceptions