Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

ListLinks - Amazon CloudWatch Observability Access Manager

ListLinks

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.

POST /ListLinks HTTP/1.1 Content-type: application/json { "MaxResults": number, "NextToken": "string" }

The request does not use any URI parameters.

The request accepts the following data in JSON format.

Limits the number of returned links to the specified number.

Type: Integer

Valid Range: Minimum value of 1. Maximum value of 5.

Required: No

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

Type: String

Required: No

HTTP/1.1 200 Content-type: application/json { "Items": [ { "Arn": "string", "Id": "string", "Label": "string", "ResourceTypes": [ "string" ], "SinkArn": "string" } ], "NextToken": "string" }

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

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

Type: Array of ListLinksItem objects

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

Type: String

For information about the errors that are common to all actions, see Common Errors.

InternalServiceFault

Unexpected error while processing the request. Retry the request.

HTTP Status Code: 500

InvalidParameterException

A parameter is specified incorrectly.

HTTP Status Code: 400

ResourceNotFoundException

The request references a resource that does not exist.

HTTP Status Code: 404

For more information about using this API in one of the language-specific AWS SDKs, see the following:

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.