CloudWatchObservabilityAccessManager.Client.
update_link
(**kwargs)¶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.
To update the list of tags associated with the sink, use TagResource.
See also: AWS API Documentation
Request Syntax
response = client.update_link(
Identifier='string',
ResourceTypes=[
'AWS::CloudWatch::Metric'|'AWS::Logs::LogGroup'|'AWS::XRay::Trace',
]
)
[REQUIRED]
The ARN of the link that you want to update.
[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.
dict
Response Syntax
{
'Arn': 'string',
'Id': 'string',
'Label': 'string',
'LabelTemplate': 'string',
'ResourceTypes': [
'string',
],
'SinkArn': 'string',
'Tags': {
'string': 'string'
}
}
Response Structure
(dict) --
Arn (string) --
The ARN of the link that you have updated.
Id (string) --
The random ID string that Amazon Web Services generated as part of the sink ARN.
Label (string) --
The label assigned to this link, with the variables resolved to their actual values.
LabelTemplate (string) --
The exact label template that was specified when the link was created, with the template variables not resolved.
ResourceTypes (list) --
The resource types now supported by this link.
SinkArn (string) --
The ARN of the sink that is used for this link.
Tags (dict) --
The tags assigned to the link.
Exceptions
CloudWatchObservabilityAccessManager.Client.exceptions.InternalServiceFault
CloudWatchObservabilityAccessManager.Client.exceptions.MissingRequiredParameterException
CloudWatchObservabilityAccessManager.Client.exceptions.InvalidParameterException
CloudWatchObservabilityAccessManager.Client.exceptions.ResourceNotFoundException