Skip to content

Update Link

cloudwatchobservabilityaccessmanager_update_link R Documentation

Use this operation to change what types of data are shared from a source account to its linked monitoring account sink

Description

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

Usage

cloudwatchobservabilityaccessmanager_update_link(Identifier,
  LinkConfiguration, ResourceTypes)

Arguments

Identifier

[required] The ARN of the link that you want to update.

LinkConfiguration

Use this structure to filter which metric namespaces and which log groups are to be shared from the source account to the monitoring account.

ResourceTypes

[required] An array of strings that define which types of data that the source account will send to the monitoring account.

Your input here replaces the current set of data types that are shared.

Value

A list with the following syntax:

list(
  Arn = "string",
  Id = "string",
  Label = "string",
  LabelTemplate = "string",
  LinkConfiguration = list(
    LogGroupConfiguration = list(
      Filter = "string"
    ),
    MetricConfiguration = list(
      Filter = "string"
    )
  ),
  ResourceTypes = list(
    "string"
  ),
  SinkArn = "string",
  Tags = list(
    "string"
  )
)

Request syntax

svc$update_link(
  Identifier = "string",
  LinkConfiguration = list(
    LogGroupConfiguration = list(
      Filter = "string"
    ),
    MetricConfiguration = list(
      Filter = "string"
    )
  ),
  ResourceTypes = list(
    "AWS::CloudWatch::Metric"|"AWS::Logs::LogGroup"|"AWS::XRay::Trace"|"AWS::ApplicationInsights::Application"|"AWS::InternetMonitor::Monitor"
  )
)