ForecastService.Paginator.ListWhatIfForecasts¶paginator = client.get_paginator('list_what_if_forecasts')
paginate(**kwargs)¶Creates an iterator that will paginate through responses from ForecastService.Client.list_what_if_forecasts().
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
Filters=[
{
'Key': 'string',
'Value': 'string',
'Condition': 'IS'|'IS_NOT'
},
],
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
An array of filters. For each filter, you provide a condition and a match statement. The condition is either IS or IS_NOT , which specifies whether to include or exclude the what-if forecast export jobs 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 are IS and IS_NOT . To include the forecast export jobs that match the statement, specify IS . To exclude matching forecast export jobs, specify IS_NOT .Key - The name of the parameter to filter on. Valid values are WhatIfForecastArn and Status .Value - The value to match.For example, to list all jobs that export a forecast named electricityWhatIfForecast , specify the following filter:
"Filters": [ { "Condition": "IS", "Key": "WhatIfForecastArn", "Value": "arn:aws:forecast:us-west-2:<acct-id>:forecast/electricityWhatIfForecast" } ]
Describes a filter for choosing a subset of objects. Each filter consists of a condition and a match statement. The condition is either IS or IS_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.
The name of the parameter to filter on.
The value to match.
The condition to apply. To include the objects that match the statement, specify IS . To exclude matching objects, specify IS_NOT .
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken from a previous response.
dict
Response Syntax
{
'WhatIfForecasts': [
{
'WhatIfForecastArn': 'string',
'WhatIfForecastName': 'string',
'WhatIfAnalysisArn': 'string',
'Status': 'string',
'Message': 'string',
'CreationTime': datetime(2015, 1, 1),
'LastModificationTime': datetime(2015, 1, 1)
},
],
}
Response Structure
(dict) --
WhatIfForecasts (list) --
An array of WhatIfForecasts objects that describe the matched forecasts.
(dict) --
Provides a summary of the what-if forecast properties used in the ListWhatIfForecasts operation. To get the complete set of properties, call the DescribeWhatIfForecast operation, and provide the WhatIfForecastArn that is listed in the summary.
WhatIfForecastArn (string) --
The Amazon Resource Name (ARN) of the what-if forecast.
WhatIfForecastName (string) --
The name of the what-if forecast.
WhatIfAnalysisArn (string) --
The Amazon Resource Name (ARN) of the what-if analysis that contains this what-if forecast.
Status (string) --
The status of the what-if forecast. States include:
ACTIVECREATE_PENDING , CREATE_IN_PROGRESS , CREATE_FAILEDCREATE_STOPPING , CREATE_STOPPEDDELETE_PENDING , DELETE_IN_PROGRESS , DELETE_FAILEDNote
The Status of the what-if analysis must be ACTIVE before you can access the analysis.
Message (string) --
If an error occurred, an informational message about the error.
CreationTime (datetime) --
When the what-if forecast was created.
LastModificationTime (datetime) --
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.