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

Description

Returns a list of what-if analyses created using the CreateWhatIfAnalysis operation. For each what-if analysis, 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 analysis ARN with the DescribeWhatIfAnalysis operation.

This operation returns paginated results.

Synopsis

Creating a Request

data ListWhatIfAnalyses Source #

See: newListWhatIfAnalyses smart constructor.

Constructors

ListWhatIfAnalyses' 

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

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

    "Filters": [ { "Condition": "IS", "Key": "WhatIfAnalysisArn", "Value": "arn:aws:forecast:us-west-2:<acct-id>:forecast/electricityWhatIf" } ]
  • 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 ListWhatIfAnalyses Source # 
Instance details

Defined in Amazonka.Forecast.ListWhatIfAnalyses

ToHeaders ListWhatIfAnalyses Source # 
Instance details

Defined in Amazonka.Forecast.ListWhatIfAnalyses

ToPath ListWhatIfAnalyses Source # 
Instance details

Defined in Amazonka.Forecast.ListWhatIfAnalyses

ToQuery ListWhatIfAnalyses Source # 
Instance details

Defined in Amazonka.Forecast.ListWhatIfAnalyses

AWSPager ListWhatIfAnalyses Source # 
Instance details

Defined in Amazonka.Forecast.ListWhatIfAnalyses

AWSRequest ListWhatIfAnalyses Source # 
Instance details

Defined in Amazonka.Forecast.ListWhatIfAnalyses

Associated Types

type AWSResponse ListWhatIfAnalyses #

Generic ListWhatIfAnalyses Source # 
Instance details

Defined in Amazonka.Forecast.ListWhatIfAnalyses

Associated Types

type Rep ListWhatIfAnalyses :: Type -> Type #

Read ListWhatIfAnalyses Source # 
Instance details

Defined in Amazonka.Forecast.ListWhatIfAnalyses

Show ListWhatIfAnalyses Source # 
Instance details

Defined in Amazonka.Forecast.ListWhatIfAnalyses

NFData ListWhatIfAnalyses Source # 
Instance details

Defined in Amazonka.Forecast.ListWhatIfAnalyses

Methods

rnf :: ListWhatIfAnalyses -> () #

Eq ListWhatIfAnalyses Source # 
Instance details

Defined in Amazonka.Forecast.ListWhatIfAnalyses

Hashable ListWhatIfAnalyses Source # 
Instance details

Defined in Amazonka.Forecast.ListWhatIfAnalyses

type AWSResponse ListWhatIfAnalyses Source # 
Instance details

Defined in Amazonka.Forecast.ListWhatIfAnalyses

type Rep ListWhatIfAnalyses Source # 
Instance details

Defined in Amazonka.Forecast.ListWhatIfAnalyses

type Rep ListWhatIfAnalyses = D1 ('MetaData "ListWhatIfAnalyses" "Amazonka.Forecast.ListWhatIfAnalyses" "amazonka-forecast-2.0-HHvJwvxGrDPBJtUcnmLBqf" 'False) (C1 ('MetaCons "ListWhatIfAnalyses'" '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)))))

newListWhatIfAnalyses :: ListWhatIfAnalyses Source #

Create a value of ListWhatIfAnalyses 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:ListWhatIfAnalyses', listWhatIfAnalyses_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 analysis 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 what-if analysis jobs that match the statement, specify IS. To exclude matching what-if analysis jobs, specify IS_NOT.
  • Key - The name of the parameter to filter on. Valid values are WhatIfAnalysisArn and Status.
  • Value - The value to match.

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

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

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

ListWhatIfAnalyses, listWhatIfAnalyses_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

listWhatIfAnalyses_filters :: Lens' ListWhatIfAnalyses (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 analysis 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 what-if analysis jobs that match the statement, specify IS. To exclude matching what-if analysis jobs, specify IS_NOT.
  • Key - The name of the parameter to filter on. Valid values are WhatIfAnalysisArn and Status.
  • Value - The value to match.

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

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

listWhatIfAnalyses_maxResults :: Lens' ListWhatIfAnalyses (Maybe Natural) Source #

The number of items to return in the response.

listWhatIfAnalyses_nextToken :: Lens' ListWhatIfAnalyses (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 ListWhatIfAnalysesResponse Source #

See: newListWhatIfAnalysesResponse smart constructor.

Constructors

ListWhatIfAnalysesResponse' 

Fields

Instances

Instances details
Generic ListWhatIfAnalysesResponse Source # 
Instance details

Defined in Amazonka.Forecast.ListWhatIfAnalyses

Associated Types

type Rep ListWhatIfAnalysesResponse :: Type -> Type #

Read ListWhatIfAnalysesResponse Source # 
Instance details

Defined in Amazonka.Forecast.ListWhatIfAnalyses

Show ListWhatIfAnalysesResponse Source # 
Instance details

Defined in Amazonka.Forecast.ListWhatIfAnalyses

NFData ListWhatIfAnalysesResponse Source # 
Instance details

Defined in Amazonka.Forecast.ListWhatIfAnalyses

Eq ListWhatIfAnalysesResponse Source # 
Instance details

Defined in Amazonka.Forecast.ListWhatIfAnalyses

type Rep ListWhatIfAnalysesResponse Source # 
Instance details

Defined in Amazonka.Forecast.ListWhatIfAnalyses

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

newListWhatIfAnalysesResponse Source #

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

ListWhatIfAnalyses, listWhatIfAnalysesResponse_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:whatIfAnalyses:ListWhatIfAnalysesResponse', listWhatIfAnalysesResponse_whatIfAnalyses - An array of WhatIfAnalysisSummary objects that describe the matched analyses.

$sel:httpStatus:ListWhatIfAnalysesResponse', listWhatIfAnalysesResponse_httpStatus - The response's http status code.

Response Lenses

listWhatIfAnalysesResponse_nextToken :: Lens' ListWhatIfAnalysesResponse (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.

listWhatIfAnalysesResponse_whatIfAnalyses :: Lens' ListWhatIfAnalysesResponse (Maybe [WhatIfAnalysisSummary]) Source #

An array of WhatIfAnalysisSummary objects that describe the matched analyses.