libZSservicesZSamazonka-forecastZSamazonka-forecast
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Forecast.ListForecasts

Description

Returns a list of forecasts created using the CreateForecast operation. For each forecast, this operation returns a summary of its properties, including its Amazon Resource Name (ARN). To retrieve the complete set of properties, specify the ARN with the DescribeForecast operation. You can filter the list using an array of Filter objects.

This operation returns paginated results.

Synopsis

Creating a Request

data ListForecasts Source #

See: newListForecasts smart constructor.

Constructors

ListForecasts' 

Fields

  • filters :: Maybe [Filter]

    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 forecasts 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 forecasts that match the statement, specify IS. To exclude matching forecasts, specify IS_NOT.
    • Key - The name of the parameter to filter on. Valid values are DatasetGroupArn, PredictorArn, and Status.
    • Value - The value to match.

    For example, to list all forecasts whose status is not ACTIVE, you would specify:

    "Filters": [ { "Condition": "IS_NOT", "Key": "Status", "Value": "ACTIVE" } ]
  • nextToken :: Maybe Text

    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 :: Maybe Natural

    The number of items to return in the response.

Instances

Instances details
Eq ListForecasts Source # 
Instance details

Defined in Amazonka.Forecast.ListForecasts

Read ListForecasts Source # 
Instance details

Defined in Amazonka.Forecast.ListForecasts

Show ListForecasts Source # 
Instance details

Defined in Amazonka.Forecast.ListForecasts

Generic ListForecasts Source # 
Instance details

Defined in Amazonka.Forecast.ListForecasts

Associated Types

type Rep ListForecasts :: Type -> Type #

NFData ListForecasts Source # 
Instance details

Defined in Amazonka.Forecast.ListForecasts

Methods

rnf :: ListForecasts -> () #

Hashable ListForecasts Source # 
Instance details

Defined in Amazonka.Forecast.ListForecasts

ToJSON ListForecasts Source # 
Instance details

Defined in Amazonka.Forecast.ListForecasts

AWSPager ListForecasts Source # 
Instance details

Defined in Amazonka.Forecast.ListForecasts

AWSRequest ListForecasts Source # 
Instance details

Defined in Amazonka.Forecast.ListForecasts

Associated Types

type AWSResponse ListForecasts #

ToHeaders ListForecasts Source # 
Instance details

Defined in Amazonka.Forecast.ListForecasts

ToPath ListForecasts Source # 
Instance details

Defined in Amazonka.Forecast.ListForecasts

ToQuery ListForecasts Source # 
Instance details

Defined in Amazonka.Forecast.ListForecasts

type Rep ListForecasts Source # 
Instance details

Defined in Amazonka.Forecast.ListForecasts

type Rep ListForecasts = D1 ('MetaData "ListForecasts" "Amazonka.Forecast.ListForecasts" "libZSservicesZSamazonka-forecastZSamazonka-forecast" 'False) (C1 ('MetaCons "ListForecasts'" 'PrefixI 'True) (S1 ('MetaSel ('Just "filters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Filter])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)))))
type AWSResponse ListForecasts Source # 
Instance details

Defined in Amazonka.Forecast.ListForecasts

newListForecasts :: ListForecasts Source #

Create a value of ListForecasts 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:ListForecasts', listForecasts_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 forecasts 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 forecasts that match the statement, specify IS. To exclude matching forecasts, specify IS_NOT.
  • Key - The name of the parameter to filter on. Valid values are DatasetGroupArn, PredictorArn, and Status.
  • Value - The value to match.

For example, to list all forecasts whose status is not ACTIVE, you would specify:

"Filters": [ { "Condition": "IS_NOT", "Key": "Status", "Value": "ACTIVE" } ]

$sel:nextToken:ListForecasts', listForecasts_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:maxResults:ListForecasts', listForecasts_maxResults - The number of items to return in the response.

Request Lenses

listForecasts_filters :: Lens' ListForecasts (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 forecasts 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 forecasts that match the statement, specify IS. To exclude matching forecasts, specify IS_NOT.
  • Key - The name of the parameter to filter on. Valid values are DatasetGroupArn, PredictorArn, and Status.
  • Value - The value to match.

For example, to list all forecasts whose status is not ACTIVE, you would specify:

"Filters": [ { "Condition": "IS_NOT", "Key": "Status", "Value": "ACTIVE" } ]

listForecasts_nextToken :: Lens' ListForecasts (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.

listForecasts_maxResults :: Lens' ListForecasts (Maybe Natural) Source #

The number of items to return in the response.

Destructuring the Response

data ListForecastsResponse Source #

See: newListForecastsResponse smart constructor.

Constructors

ListForecastsResponse' 

Fields

  • forecasts :: Maybe [ForecastSummary]

    An array of objects that summarize each forecast's properties.

  • nextToken :: Maybe Text

    If the response is truncated, Amazon Forecast returns this token. To retrieve the next set of results, use the token in the next request.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq ListForecastsResponse Source # 
Instance details

Defined in Amazonka.Forecast.ListForecasts

Read ListForecastsResponse Source # 
Instance details

Defined in Amazonka.Forecast.ListForecasts

Show ListForecastsResponse Source # 
Instance details

Defined in Amazonka.Forecast.ListForecasts

Generic ListForecastsResponse Source # 
Instance details

Defined in Amazonka.Forecast.ListForecasts

Associated Types

type Rep ListForecastsResponse :: Type -> Type #

NFData ListForecastsResponse Source # 
Instance details

Defined in Amazonka.Forecast.ListForecasts

Methods

rnf :: ListForecastsResponse -> () #

type Rep ListForecastsResponse Source # 
Instance details

Defined in Amazonka.Forecast.ListForecasts

type Rep ListForecastsResponse = D1 ('MetaData "ListForecastsResponse" "Amazonka.Forecast.ListForecasts" "libZSservicesZSamazonka-forecastZSamazonka-forecast" 'False) (C1 ('MetaCons "ListForecastsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "forecasts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ForecastSummary])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListForecastsResponse Source #

Create a value of ListForecastsResponse 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:forecasts:ListForecastsResponse', listForecastsResponse_forecasts - An array of objects that summarize each forecast's properties.

$sel:nextToken:ListForecasts', listForecastsResponse_nextToken - If the response is truncated, Amazon Forecast returns this token. To retrieve the next set of results, use the token in the next request.

$sel:httpStatus:ListForecastsResponse', listForecastsResponse_httpStatus - The response's http status code.

Response Lenses

listForecastsResponse_forecasts :: Lens' ListForecastsResponse (Maybe [ForecastSummary]) Source #

An array of objects that summarize each forecast's properties.

listForecastsResponse_nextToken :: Lens' ListForecastsResponse (Maybe Text) Source #

If the response is truncated, Amazon Forecast returns this token. To retrieve the next set of results, use the token in the next request.