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

Description

Use this operation in a source account to return a list of links to monitoring account sinks that this source account has.

To find a list of links for one monitoring account sink, use ListAttachedLinks from within the monitoring account.

This operation returns paginated results.

Synopsis

Creating a Request

data ListLinks Source #

See: newListLinks smart constructor.

Constructors

ListLinks' 

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

newListLinks :: ListLinks Source #

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

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

Request Lenses

listLinks_maxResults :: Lens' ListLinks (Maybe Natural) Source #

Limits the number of returned links to the specified number.

listLinks_nextToken :: Lens' ListLinks (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 ListLinksResponse Source #

See: newListLinksResponse smart constructor.

Constructors

ListLinksResponse' 

Fields

Instances

Instances details
Generic ListLinksResponse Source # 
Instance details

Defined in Amazonka.OAM.ListLinks

Associated Types

type Rep ListLinksResponse :: Type -> Type #

Read ListLinksResponse Source # 
Instance details

Defined in Amazonka.OAM.ListLinks

Show ListLinksResponse Source # 
Instance details

Defined in Amazonka.OAM.ListLinks

NFData ListLinksResponse Source # 
Instance details

Defined in Amazonka.OAM.ListLinks

Methods

rnf :: ListLinksResponse -> () #

Eq ListLinksResponse Source # 
Instance details

Defined in Amazonka.OAM.ListLinks

type Rep ListLinksResponse Source # 
Instance details

Defined in Amazonka.OAM.ListLinks

type Rep ListLinksResponse = D1 ('MetaData "ListLinksResponse" "Amazonka.OAM.ListLinks" "amazonka-oam-2.0-2r3dTellrOe218sRY2Qi5h" 'False) (C1 ('MetaCons "ListLinksResponse'" '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 [ListLinksItem]))))

newListLinksResponse Source #

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

ListLinks, listLinksResponse_nextToken - The token to use when requesting the next set of links.

$sel:httpStatus:ListLinksResponse', listLinksResponse_httpStatus - The response's http status code.

$sel:items:ListLinksResponse', listLinksResponse_items - An array of structures that contain the information about the returned links.

Response Lenses

listLinksResponse_nextToken :: Lens' ListLinksResponse (Maybe Text) Source #

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

listLinksResponse_httpStatus :: Lens' ListLinksResponse Int Source #

The response's http status code.

listLinksResponse_items :: Lens' ListLinksResponse [ListLinksItem] Source #

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