amazonka-forecast-2.0: Amazon Forecast Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Forecast.ListWhatIfForecastExports

Description

Returns a list of what-if forecast exports created using the CreateWhatIfForecastExport operation. For each what-if forecast export, 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 export ARN with the DescribeWhatIfForecastExport operation.

This operation returns paginated results.

Synopsis

Creating a Request

data ListWhatIfForecastExports Source #

See: newListWhatIfForecastExports smart constructor.

Constructors

ListWhatIfForecastExports' 

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 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 WhatIfForecastExportArn and Status.
    • Value - The value to match.

    For example, to list all jobs that export a forecast named electricityWIFExport, specify the following filter:

    "Filters": [ { "Condition": "IS", "Key": "WhatIfForecastExportArn", "Value": "arn:aws:forecast:us-west-2:<acct-id>:forecast/electricityWIFExport" } ]
  • maxResults :: Maybe Natural

    The number of items to return in the response.

  • 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.

Instances

Instances details
ToJSON ListWhatIfForecastExports Source # 
Instance details

Defined in Amazonka.Forecast.ListWhatIfForecastExports

ToHeaders ListWhatIfForecastExports Source # 
Instance details

Defined in Amazonka.Forecast.ListWhatIfForecastExports

ToPath ListWhatIfForecastExports Source # 
Instance details

Defined in Amazonka.Forecast.ListWhatIfForecastExports

ToQuery ListWhatIfForecastExports Source # 
Instance details

Defined in Amazonka.Forecast.ListWhatIfForecastExports

AWSPager ListWhatIfForecastExports Source # 
Instance details

Defined in Amazonka.Forecast.ListWhatIfForecastExports

AWSRequest ListWhatIfForecastExports Source # 
Instance details

Defined in Amazonka.Forecast.ListWhatIfForecastExports

Generic ListWhatIfForecastExports Source # 
Instance details

Defined in Amazonka.Forecast.ListWhatIfForecastExports

Associated Types

type Rep ListWhatIfForecastExports :: Type -> Type #

Read ListWhatIfForecastExports Source # 
Instance details

Defined in Amazonka.Forecast.ListWhatIfForecastExports

Show ListWhatIfForecastExports Source # 
Instance details

Defined in Amazonka.Forecast.ListWhatIfForecastExports

NFData ListWhatIfForecastExports Source # 
Instance details

Defined in Amazonka.Forecast.ListWhatIfForecastExports

Eq ListWhatIfForecastExports Source # 
Instance details

Defined in Amazonka.Forecast.ListWhatIfForecastExports

Hashable ListWhatIfForecastExports Source # 
Instance details

Defined in Amazonka.Forecast.ListWhatIfForecastExports

type AWSResponse ListWhatIfForecastExports Source # 
Instance details

Defined in Amazonka.Forecast.ListWhatIfForecastExports

type Rep ListWhatIfForecastExports Source # 
Instance details

Defined in Amazonka.Forecast.ListWhatIfForecastExports

type Rep ListWhatIfForecastExports = D1 ('MetaData "ListWhatIfForecastExports" "Amazonka.Forecast.ListWhatIfForecastExports" "amazonka-forecast-2.0-HHvJwvxGrDPBJtUcnmLBqf" 'False) (C1 ('MetaCons "ListWhatIfForecastExports'" 'PrefixI 'True) (S1 ('MetaSel ('Just "filters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Filter])) :*: (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

newListWhatIfForecastExports :: ListWhatIfForecastExports Source #

Create a value of ListWhatIfForecastExports 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:ListWhatIfForecastExports', listWhatIfForecastExports_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 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 WhatIfForecastExportArn and Status.
  • Value - The value to match.

For example, to list all jobs that export a forecast named electricityWIFExport, specify the following filter:

"Filters": [ { "Condition": "IS", "Key": "WhatIfForecastExportArn", "Value": "arn:aws:forecast:us-west-2:<acct-id>:forecast/electricityWIFExport" } ]

$sel:maxResults:ListWhatIfForecastExports', listWhatIfForecastExports_maxResults - The number of items to return in the response.

ListWhatIfForecastExports, listWhatIfForecastExports_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

listWhatIfForecastExports_filters :: Lens' ListWhatIfForecastExports (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 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 WhatIfForecastExportArn and Status.
  • Value - The value to match.

For example, to list all jobs that export a forecast named electricityWIFExport, specify the following filter:

"Filters": [ { "Condition": "IS", "Key": "WhatIfForecastExportArn", "Value": "arn:aws:forecast:us-west-2:<acct-id>:forecast/electricityWIFExport" } ]

listWhatIfForecastExports_maxResults :: Lens' ListWhatIfForecastExports (Maybe Natural) Source #

The number of items to return in the response.

listWhatIfForecastExports_nextToken :: Lens' ListWhatIfForecastExports (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 ListWhatIfForecastExportsResponse Source #

See: newListWhatIfForecastExportsResponse smart constructor.

Constructors

ListWhatIfForecastExportsResponse' 

Fields

Instances

Instances details
Generic ListWhatIfForecastExportsResponse Source # 
Instance details

Defined in Amazonka.Forecast.ListWhatIfForecastExports

Associated Types

type Rep ListWhatIfForecastExportsResponse :: Type -> Type #

Read ListWhatIfForecastExportsResponse Source # 
Instance details

Defined in Amazonka.Forecast.ListWhatIfForecastExports

Show ListWhatIfForecastExportsResponse Source # 
Instance details

Defined in Amazonka.Forecast.ListWhatIfForecastExports

NFData ListWhatIfForecastExportsResponse Source # 
Instance details

Defined in Amazonka.Forecast.ListWhatIfForecastExports

Eq ListWhatIfForecastExportsResponse Source # 
Instance details

Defined in Amazonka.Forecast.ListWhatIfForecastExports

type Rep ListWhatIfForecastExportsResponse Source # 
Instance details

Defined in Amazonka.Forecast.ListWhatIfForecastExports

type Rep ListWhatIfForecastExportsResponse = D1 ('MetaData "ListWhatIfForecastExportsResponse" "Amazonka.Forecast.ListWhatIfForecastExports" "amazonka-forecast-2.0-HHvJwvxGrDPBJtUcnmLBqf" 'False) (C1 ('MetaCons "ListWhatIfForecastExportsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "whatIfForecastExports") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [WhatIfForecastExportSummary])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListWhatIfForecastExportsResponse Source #

Create a value of ListWhatIfForecastExportsResponse 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:

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

$sel:whatIfForecastExports:ListWhatIfForecastExportsResponse', listWhatIfForecastExportsResponse_whatIfForecastExports - An array of WhatIfForecastExports objects that describe the matched forecast exports.

$sel:httpStatus:ListWhatIfForecastExportsResponse', listWhatIfForecastExportsResponse_httpStatus - The response's http status code.

Response Lenses

listWhatIfForecastExportsResponse_nextToken :: Lens' ListWhatIfForecastExportsResponse (Maybe Text) Source #

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

listWhatIfForecastExportsResponse_whatIfForecastExports :: Lens' ListWhatIfForecastExportsResponse (Maybe [WhatIfForecastExportSummary]) Source #

An array of WhatIfForecastExports objects that describe the matched forecast exports.