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

Description

Returns a list of source account links that are linked to this monitoring account sink.

To use this operation, provide the sink ARN. To retrieve a list of sink ARNs, use ListSinks.

To find a list of links for one source account, use ListLinks.

This operation returns paginated results.

Synopsis

Creating a Request

data ListAttachedLinks Source #

See: newListAttachedLinks smart constructor.

Constructors

ListAttachedLinks' 

Fields

Instances

newListAttachedLinks Source #

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

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

$sel:sinkIdentifier:ListAttachedLinks', listAttachedLinks_sinkIdentifier - The ARN of the sink that you want to retrieve links for.

Request Lenses

listAttachedLinks_maxResults :: Lens' ListAttachedLinks (Maybe Natural) Source #

Limits the number of returned links to the specified number.

listAttachedLinks_nextToken :: Lens' ListAttachedLinks (Maybe Text) Source #

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

listAttachedLinks_sinkIdentifier :: Lens' ListAttachedLinks Text Source #

The ARN of the sink that you want to retrieve links for.

Destructuring the Response

data ListAttachedLinksResponse Source #

See: newListAttachedLinksResponse smart constructor.

Constructors

ListAttachedLinksResponse' 

Fields

Instances

Instances details
Generic ListAttachedLinksResponse Source # 
Instance details

Defined in Amazonka.OAM.ListAttachedLinks

Associated Types

type Rep ListAttachedLinksResponse :: Type -> Type #

Read ListAttachedLinksResponse Source # 
Instance details

Defined in Amazonka.OAM.ListAttachedLinks

Show ListAttachedLinksResponse Source # 
Instance details

Defined in Amazonka.OAM.ListAttachedLinks

NFData ListAttachedLinksResponse Source # 
Instance details

Defined in Amazonka.OAM.ListAttachedLinks

Eq ListAttachedLinksResponse Source # 
Instance details

Defined in Amazonka.OAM.ListAttachedLinks

type Rep ListAttachedLinksResponse Source # 
Instance details

Defined in Amazonka.OAM.ListAttachedLinks

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

newListAttachedLinksResponse Source #

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

ListAttachedLinks, listAttachedLinksResponse_nextToken - The token to use when requesting the next set of links.

$sel:httpStatus:ListAttachedLinksResponse', listAttachedLinksResponse_httpStatus - The response's http status code.

$sel:items:ListAttachedLinksResponse', listAttachedLinksResponse_items - An array of structures that contain the information about the attached links.

Response Lenses

listAttachedLinksResponse_nextToken :: Lens' ListAttachedLinksResponse (Maybe Text) Source #

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

listAttachedLinksResponse_items :: Lens' ListAttachedLinksResponse [ListAttachedLinksItem] Source #

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