Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Returns a list of what-if forecasts created using the CreateWhatIfForecast operation. For each what-if forecast, 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 what-if forecast ARN with the DescribeWhatIfForecast operation.
This operation returns paginated results.
Synopsis
- data ListWhatIfForecasts = ListWhatIfForecasts' {}
- newListWhatIfForecasts :: ListWhatIfForecasts
- listWhatIfForecasts_filters :: Lens' ListWhatIfForecasts (Maybe [Filter])
- listWhatIfForecasts_maxResults :: Lens' ListWhatIfForecasts (Maybe Natural)
- listWhatIfForecasts_nextToken :: Lens' ListWhatIfForecasts (Maybe Text)
- data ListWhatIfForecastsResponse = ListWhatIfForecastsResponse' {}
- newListWhatIfForecastsResponse :: Int -> ListWhatIfForecastsResponse
- listWhatIfForecastsResponse_nextToken :: Lens' ListWhatIfForecastsResponse (Maybe Text)
- listWhatIfForecastsResponse_whatIfForecasts :: Lens' ListWhatIfForecastsResponse (Maybe [WhatIfForecastSummary])
- listWhatIfForecastsResponse_httpStatus :: Lens' ListWhatIfForecastsResponse Int
Creating a Request
data ListWhatIfForecasts Source #
See: newListWhatIfForecasts
smart constructor.
ListWhatIfForecasts' | |
|
Instances
newListWhatIfForecasts :: ListWhatIfForecasts Source #
Create a value of ListWhatIfForecasts
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:filters:ListWhatIfForecasts'
, listWhatIfForecasts_filters
- 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 areIS
andIS_NOT
. To include the forecast export jobs that match the statement, specifyIS
. To exclude matching forecast export jobs, specifyIS_NOT
.Key
- The name of the parameter to filter on. Valid values areWhatIfForecastArn
andStatus
.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" } ]
$sel:maxResults:ListWhatIfForecasts'
, listWhatIfForecasts_maxResults
- The number of items to return in the response.
ListWhatIfForecasts
, listWhatIfForecasts_nextToken
- 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.
Request Lenses
listWhatIfForecasts_filters :: Lens' ListWhatIfForecasts (Maybe [Filter]) Source #
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 areIS
andIS_NOT
. To include the forecast export jobs that match the statement, specifyIS
. To exclude matching forecast export jobs, specifyIS_NOT
.Key
- The name of the parameter to filter on. Valid values areWhatIfForecastArn
andStatus
.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" } ]
listWhatIfForecasts_maxResults :: Lens' ListWhatIfForecasts (Maybe Natural) Source #
The number of items to return in the response.
listWhatIfForecasts_nextToken :: Lens' ListWhatIfForecasts (Maybe Text) Source #
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.
Destructuring the Response
data ListWhatIfForecastsResponse Source #
See: newListWhatIfForecastsResponse
smart constructor.
ListWhatIfForecastsResponse' | |
|
Instances
newListWhatIfForecastsResponse Source #
Create a value of ListWhatIfForecastsResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
ListWhatIfForecasts
, listWhatIfForecastsResponse_nextToken
- 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.
$sel:whatIfForecasts:ListWhatIfForecastsResponse'
, listWhatIfForecastsResponse_whatIfForecasts
- An array of WhatIfForecasts
objects that describe the matched
forecasts.
$sel:httpStatus:ListWhatIfForecastsResponse'
, listWhatIfForecastsResponse_httpStatus
- The response's http status code.
Response Lenses
listWhatIfForecastsResponse_nextToken :: Lens' ListWhatIfForecastsResponse (Maybe Text) Source #
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.
listWhatIfForecastsResponse_whatIfForecasts :: Lens' ListWhatIfForecastsResponse (Maybe [WhatIfForecastSummary]) Source #
An array of WhatIfForecasts
objects that describe the matched
forecasts.
listWhatIfForecastsResponse_httpStatus :: Lens' ListWhatIfForecastsResponse Int Source #
The response's http status code.