v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-14156867.6 KB

Use this operation to change what types of data are shared from a source account to its linked monitoring account sink. You can't change the sink or change the monitoring account with this operation.

When you update a link, you can optionally specify filters that specify which metric namespaces and which log groups are shared from the source account to the monitoring account.

To update the list of tags associated with the sink, use TagResource.

post/UpdateLink

Request body

Identifierstring required

The ARN of the link that you want to update.

IncludeTagsboolean
<p>Specifies whether to include the tags associated with the link in the response after the update operation. When <code>IncludeTags</code> is set to <code>true</code> and the caller has the required permission, <code>oam:ListTagsForResource</code>, the API will return the tags for the specified resource. If the caller doesn't have the required permission, <code>oam:ListTagsForResource</code>, the API will raise an exception. </p> <p>The default value is <code>false</code>.</p>
ResourceTypesResourceType[] required
<p>An array of strings that define which types of data that the source account will send to the monitoring account.</p> <p>Your input here replaces the current set of data types that are shared.</p>

Response

Success

Arnstring

The ARN of the link that you have updated.

Idstring

The random ID string that Amazon Web Services generated as part of the sink ARN.

Labelstring

The label assigned to this link, with the variables resolved to their actual values.

LabelTemplatestring

The exact label template that was specified when the link was created, with the template variables not resolved.

ResourceTypesString[]

The resource types now supported by this link.

SinkArnstring

The ARN of the sink that is used for this link.

Tagsobject

The tags assigned to the link.