CloudWatchObservabilityAdminService / Client / tag_resource
tag_resource¶
- CloudWatchObservabilityAdminService.Client.tag_resource(**kwargs)¶
Adds or updates tags for a resource. Supports telemetry rule resources and telemetry pipeline resources.
See also: AWS API Documentation
Request Syntax
response = client.tag_resource( ResourceARN='string', Tags={ 'string': 'string' } )
- Parameters:
ResourceARN (string) –
[REQUIRED]
The Amazon Resource Name (ARN) of the telemetry rule resource to tag.
Tags (dict) –
[REQUIRED]
The key-value pairs to add or update for the telemetry rule resource.
(string) –
(string) –
- Returns:
None
Exceptions
CloudWatchObservabilityAdminService.Client.exceptions.ServiceQuotaExceededExceptionCloudWatchObservabilityAdminService.Client.exceptions.ResourceNotFoundExceptionCloudWatchObservabilityAdminService.Client.exceptions.AccessDeniedExceptionCloudWatchObservabilityAdminService.Client.exceptions.InternalServerExceptionCloudWatchObservabilityAdminService.Client.exceptions.ValidationExceptionCloudWatchObservabilityAdminService.Client.exceptions.TooManyRequestsException