amazonka-oam-2.0: Amazon CloudWatch Observability Access Manager 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.OAM.ListSinks

Description

Use this operation in a monitoring account to return the list of sinks created in that account.

This operation returns paginated results.

Synopsis

Creating a Request

data ListSinks Source #

See: newListSinks smart constructor.

Constructors

ListSinks' 

Fields

  • maxResults :: Maybe Natural

    Limits the number of returned links to the specified number.

  • nextToken :: Maybe Text

    The token for the next set of items to return. You received this token from a previous call.

Instances

Instances details
ToJSON ListSinks Source # 
Instance details

Defined in Amazonka.OAM.ListSinks

ToHeaders ListSinks Source # 
Instance details

Defined in Amazonka.OAM.ListSinks

Methods

toHeaders :: ListSinks -> [Header] #

ToPath ListSinks Source # 
Instance details

Defined in Amazonka.OAM.ListSinks

ToQuery ListSinks Source # 
Instance details

Defined in Amazonka.OAM.ListSinks

AWSPager ListSinks Source # 
Instance details

Defined in Amazonka.OAM.ListSinks

AWSRequest ListSinks Source # 
Instance details

Defined in Amazonka.OAM.ListSinks

Associated Types

type AWSResponse ListSinks #

Generic ListSinks Source # 
Instance details

Defined in Amazonka.OAM.ListSinks

Associated Types

type Rep ListSinks :: Type -> Type #

Read ListSinks Source # 
Instance details

Defined in Amazonka.OAM.ListSinks

Show ListSinks Source # 
Instance details

Defined in Amazonka.OAM.ListSinks

NFData ListSinks Source # 
Instance details

Defined in Amazonka.OAM.ListSinks

Methods

rnf :: ListSinks -> () #

Eq ListSinks Source # 
Instance details

Defined in Amazonka.OAM.ListSinks

Hashable ListSinks Source # 
Instance details

Defined in Amazonka.OAM.ListSinks

type AWSResponse ListSinks Source # 
Instance details

Defined in Amazonka.OAM.ListSinks

type Rep ListSinks Source # 
Instance details

Defined in Amazonka.OAM.ListSinks

type Rep ListSinks = D1 ('MetaData "ListSinks" "Amazonka.OAM.ListSinks" "amazonka-oam-2.0-2r3dTellrOe218sRY2Qi5h" 'False) (C1 ('MetaCons "ListSinks'" 'PrefixI 'True) (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))

newListSinks :: ListSinks Source #

Create a value of ListSinks 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:ListSinks', listSinks_maxResults - Limits the number of returned links to the specified number.

ListSinks, listSinks_nextToken - The token for the next set of items to return. You received this token from a previous call.

Request Lenses

listSinks_maxResults :: Lens' ListSinks (Maybe Natural) Source #

Limits the number of returned links to the specified number.

listSinks_nextToken :: Lens' ListSinks (Maybe Text) Source #

The token for the next set of items to return. You received this token from a previous call.

Destructuring the Response

data ListSinksResponse Source #

See: newListSinksResponse smart constructor.

Constructors

ListSinksResponse' 

Fields

Instances

Instances details
Generic ListSinksResponse Source # 
Instance details

Defined in Amazonka.OAM.ListSinks

Associated Types

type Rep ListSinksResponse :: Type -> Type #

Read ListSinksResponse Source # 
Instance details

Defined in Amazonka.OAM.ListSinks

Show ListSinksResponse Source # 
Instance details

Defined in Amazonka.OAM.ListSinks

NFData ListSinksResponse Source # 
Instance details

Defined in Amazonka.OAM.ListSinks

Methods

rnf :: ListSinksResponse -> () #

Eq ListSinksResponse Source # 
Instance details

Defined in Amazonka.OAM.ListSinks

type Rep ListSinksResponse Source # 
Instance details

Defined in Amazonka.OAM.ListSinks

type Rep ListSinksResponse = D1 ('MetaData "ListSinksResponse" "Amazonka.OAM.ListSinks" "amazonka-oam-2.0-2r3dTellrOe218sRY2Qi5h" 'False) (C1 ('MetaCons "ListSinksResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "items") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [ListSinksItem]))))

newListSinksResponse Source #

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

ListSinks, listSinksResponse_nextToken - The token to use when requesting the next set of sinks.

$sel:httpStatus:ListSinksResponse', listSinksResponse_httpStatus - The response's http status code.

$sel:items:ListSinksResponse', listSinksResponse_items - An array of structures that contain the information about the returned sinks.

Response Lenses

listSinksResponse_nextToken :: Lens' ListSinksResponse (Maybe Text) Source #

The token to use when requesting the next set of sinks.

listSinksResponse_httpStatus :: Lens' ListSinksResponse Int Source #

The response's http status code.

listSinksResponse_items :: Lens' ListSinksResponse [ListSinksItem] Source #

An array of structures that contain the information about the returned sinks.