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

Description

Returns a list of monitors created with the CreateMonitor operation and CreateAutoPredictor operation. For each monitor resource, this operation returns of a summary of its properties, including its Amazon Resource Name (ARN). You can retrieve a complete set of properties of a monitor resource by specify the monitor's ARN in the DescribeMonitor operation.

This operation returns paginated results.

Synopsis

Creating a Request

data ListMonitors Source #

See: newListMonitors smart constructor.

Constructors

ListMonitors' 

Fields

  • filters :: Maybe [Filter]

    An array of filters. For each filter, provide a condition and a match statement. The condition is either IS or IS_NOT, which specifies whether to include or exclude the resources that match the statement from the list. The match statement consists of a key and a value.

    Filter properties

    • Condition - The condition to apply. Valid values are IS and IS_NOT.
    • Key - The name of the parameter to filter on. The only valid value is Status.
    • Value - The value to match.

    For example, to list all monitors who's status is ACTIVE, you would specify:

    "Filters": [ { "Condition": "IS", "Key": "Status", "Value": "ACTIVE" } ]
  • maxResults :: Maybe Natural

    The maximum number of monitors to include 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 ListMonitors Source # 
Instance details

Defined in Amazonka.Forecast.ListMonitors

ToHeaders ListMonitors Source # 
Instance details

Defined in Amazonka.Forecast.ListMonitors

ToPath ListMonitors Source # 
Instance details

Defined in Amazonka.Forecast.ListMonitors

ToQuery ListMonitors Source # 
Instance details

Defined in Amazonka.Forecast.ListMonitors

AWSPager ListMonitors Source # 
Instance details

Defined in Amazonka.Forecast.ListMonitors

AWSRequest ListMonitors Source # 
Instance details

Defined in Amazonka.Forecast.ListMonitors

Associated Types

type AWSResponse ListMonitors #

Generic ListMonitors Source # 
Instance details

Defined in Amazonka.Forecast.ListMonitors

Associated Types

type Rep ListMonitors :: Type -> Type #

Read ListMonitors Source # 
Instance details

Defined in Amazonka.Forecast.ListMonitors

Show ListMonitors Source # 
Instance details

Defined in Amazonka.Forecast.ListMonitors

NFData ListMonitors Source # 
Instance details

Defined in Amazonka.Forecast.ListMonitors

Methods

rnf :: ListMonitors -> () #

Eq ListMonitors Source # 
Instance details

Defined in Amazonka.Forecast.ListMonitors

Hashable ListMonitors Source # 
Instance details

Defined in Amazonka.Forecast.ListMonitors

type AWSResponse ListMonitors Source # 
Instance details

Defined in Amazonka.Forecast.ListMonitors

type Rep ListMonitors Source # 
Instance details

Defined in Amazonka.Forecast.ListMonitors

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

newListMonitors :: ListMonitors Source #

Create a value of ListMonitors 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:ListMonitors', listMonitors_filters - An array of filters. For each filter, provide a condition and a match statement. The condition is either IS or IS_NOT, which specifies whether to include or exclude the resources that match the statement from the list. The match statement consists of a key and a value.

Filter properties

  • Condition - The condition to apply. Valid values are IS and IS_NOT.
  • Key - The name of the parameter to filter on. The only valid value is Status.
  • Value - The value to match.

For example, to list all monitors who's status is ACTIVE, you would specify:

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

$sel:maxResults:ListMonitors', listMonitors_maxResults - The maximum number of monitors to include in the response.

ListMonitors, listMonitors_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

listMonitors_filters :: Lens' ListMonitors (Maybe [Filter]) Source #

An array of filters. For each filter, provide a condition and a match statement. The condition is either IS or IS_NOT, which specifies whether to include or exclude the resources that match the statement from the list. The match statement consists of a key and a value.

Filter properties

  • Condition - The condition to apply. Valid values are IS and IS_NOT.
  • Key - The name of the parameter to filter on. The only valid value is Status.
  • Value - The value to match.

For example, to list all monitors who's status is ACTIVE, you would specify:

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

listMonitors_maxResults :: Lens' ListMonitors (Maybe Natural) Source #

The maximum number of monitors to include in the response.

listMonitors_nextToken :: Lens' ListMonitors (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 ListMonitorsResponse Source #

See: newListMonitorsResponse smart constructor.

Constructors

ListMonitorsResponse' 

Fields

  • monitors :: Maybe [MonitorSummary]

    An array of objects that summarize each monitor'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
Generic ListMonitorsResponse Source # 
Instance details

Defined in Amazonka.Forecast.ListMonitors

Associated Types

type Rep ListMonitorsResponse :: Type -> Type #

Read ListMonitorsResponse Source # 
Instance details

Defined in Amazonka.Forecast.ListMonitors

Show ListMonitorsResponse Source # 
Instance details

Defined in Amazonka.Forecast.ListMonitors

NFData ListMonitorsResponse Source # 
Instance details

Defined in Amazonka.Forecast.ListMonitors

Methods

rnf :: ListMonitorsResponse -> () #

Eq ListMonitorsResponse Source # 
Instance details

Defined in Amazonka.Forecast.ListMonitors

type Rep ListMonitorsResponse Source # 
Instance details

Defined in Amazonka.Forecast.ListMonitors

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

newListMonitorsResponse Source #

Create a value of ListMonitorsResponse 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:monitors:ListMonitorsResponse', listMonitorsResponse_monitors - An array of objects that summarize each monitor's properties.

ListMonitors, listMonitorsResponse_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:ListMonitorsResponse', listMonitorsResponse_httpStatus - The response's http status code.

Response Lenses

listMonitorsResponse_monitors :: Lens' ListMonitorsResponse (Maybe [MonitorSummary]) Source #

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

listMonitorsResponse_nextToken :: Lens' ListMonitorsResponse (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.