amazonka-devops-guru-2.0: Amazon DevOps Guru 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.DevOpsGuru.ListInsights

Description

Returns a list of insights in your Amazon Web Services account. You can specify which insights are returned by their start time and status (ONGOING, CLOSED, or ANY).

This operation returns paginated results.

Synopsis

Creating a Request

data ListInsights Source #

See: newListInsights smart constructor.

Constructors

ListInsights' 

Fields

  • maxResults :: Maybe Natural

    The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.

  • nextToken :: Maybe Text

    The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.

  • statusFilter :: ListInsightsStatusFilter

    A filter used to filter the returned insights by their status. You can specify one status filter.

Instances

Instances details
ToJSON ListInsights Source # 
Instance details

Defined in Amazonka.DevOpsGuru.ListInsights

ToHeaders ListInsights Source # 
Instance details

Defined in Amazonka.DevOpsGuru.ListInsights

ToPath ListInsights Source # 
Instance details

Defined in Amazonka.DevOpsGuru.ListInsights

ToQuery ListInsights Source # 
Instance details

Defined in Amazonka.DevOpsGuru.ListInsights

AWSPager ListInsights Source # 
Instance details

Defined in Amazonka.DevOpsGuru.ListInsights

AWSRequest ListInsights Source # 
Instance details

Defined in Amazonka.DevOpsGuru.ListInsights

Associated Types

type AWSResponse ListInsights #

Generic ListInsights Source # 
Instance details

Defined in Amazonka.DevOpsGuru.ListInsights

Associated Types

type Rep ListInsights :: Type -> Type #

Read ListInsights Source # 
Instance details

Defined in Amazonka.DevOpsGuru.ListInsights

Show ListInsights Source # 
Instance details

Defined in Amazonka.DevOpsGuru.ListInsights

NFData ListInsights Source # 
Instance details

Defined in Amazonka.DevOpsGuru.ListInsights

Methods

rnf :: ListInsights -> () #

Eq ListInsights Source # 
Instance details

Defined in Amazonka.DevOpsGuru.ListInsights

Hashable ListInsights Source # 
Instance details

Defined in Amazonka.DevOpsGuru.ListInsights

type AWSResponse ListInsights Source # 
Instance details

Defined in Amazonka.DevOpsGuru.ListInsights

type Rep ListInsights Source # 
Instance details

Defined in Amazonka.DevOpsGuru.ListInsights

type Rep ListInsights = D1 ('MetaData "ListInsights" "Amazonka.DevOpsGuru.ListInsights" "amazonka-devops-guru-2.0-C03FLSgo73f1Pu5ftIREHS" 'False) (C1 ('MetaCons "ListInsights'" 'PrefixI 'True) (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "statusFilter") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ListInsightsStatusFilter))))

newListInsights Source #

Create a value of ListInsights 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:maxResults:ListInsights', listInsights_maxResults - The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.

ListInsights, listInsights_nextToken - The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.

$sel:statusFilter:ListInsights', listInsights_statusFilter - A filter used to filter the returned insights by their status. You can specify one status filter.

Request Lenses

listInsights_maxResults :: Lens' ListInsights (Maybe Natural) Source #

The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.

listInsights_nextToken :: Lens' ListInsights (Maybe Text) Source #

The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.

listInsights_statusFilter :: Lens' ListInsights ListInsightsStatusFilter Source #

A filter used to filter the returned insights by their status. You can specify one status filter.

Destructuring the Response

data ListInsightsResponse Source #

See: newListInsightsResponse smart constructor.

Constructors

ListInsightsResponse' 

Fields

Instances

Instances details
Generic ListInsightsResponse Source # 
Instance details

Defined in Amazonka.DevOpsGuru.ListInsights

Associated Types

type Rep ListInsightsResponse :: Type -> Type #

Read ListInsightsResponse Source # 
Instance details

Defined in Amazonka.DevOpsGuru.ListInsights

Show ListInsightsResponse Source # 
Instance details

Defined in Amazonka.DevOpsGuru.ListInsights

NFData ListInsightsResponse Source # 
Instance details

Defined in Amazonka.DevOpsGuru.ListInsights

Methods

rnf :: ListInsightsResponse -> () #

Eq ListInsightsResponse Source # 
Instance details

Defined in Amazonka.DevOpsGuru.ListInsights

type Rep ListInsightsResponse Source # 
Instance details

Defined in Amazonka.DevOpsGuru.ListInsights

type Rep ListInsightsResponse = D1 ('MetaData "ListInsightsResponse" "Amazonka.DevOpsGuru.ListInsights" "amazonka-devops-guru-2.0-C03FLSgo73f1Pu5ftIREHS" 'False) (C1 ('MetaCons "ListInsightsResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "proactiveInsights") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ProactiveInsightSummary]))) :*: (S1 ('MetaSel ('Just "reactiveInsights") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ReactiveInsightSummary])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListInsightsResponse Source #

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

ListInsights, listInsightsResponse_nextToken - The pagination token to use to retrieve the next page of results for this operation. If there are no more pages, this value is null.

$sel:proactiveInsights:ListInsightsResponse', listInsightsResponse_proactiveInsights - The returned list of proactive insights.

$sel:reactiveInsights:ListInsightsResponse', listInsightsResponse_reactiveInsights - The returned list of reactive insights.

$sel:httpStatus:ListInsightsResponse', listInsightsResponse_httpStatus - The response's http status code.

Response Lenses

listInsightsResponse_nextToken :: Lens' ListInsightsResponse (Maybe Text) Source #

The pagination token to use to retrieve the next page of results for this operation. If there are no more pages, this value is null.