AIOps / Client / list_tags_for_resource
list_tags_for_resource¶
- AIOps.Client.list_tags_for_resource(**kwargs)¶
Displays the tags associated with a CloudWatch investigations resource. Currently, investigation groups support tagging.
See also: AWS API Documentation
Request Syntax
response = client.list_tags_for_resource( resourceArn='string' )
- Parameters:
resourceArn (string) –
[REQUIRED]
The ARN of the CloudWatch investigations resource that you want to view tags for. You can use the
ListInvestigationGroupsoperation to find the ARNs of investigation groups.The ARN format for an investigation group is ``arn:aws:aiops:Region:account-id:investigation-group:investigation-group-id ``.
- Return type:
dict
- Returns:
Response Syntax
{ 'tags': { 'string': 'string' } }
Response Structure
(dict) –
tags (dict) –
The list of tag keys and values associated with the resource you specified.
(string) –
(string) –
Exceptions
AIOps.Client.exceptions.AccessDeniedExceptionAIOps.Client.exceptions.ForbiddenExceptionAIOps.Client.exceptions.ResourceNotFoundExceptionAIOps.Client.exceptions.ThrottlingExceptionAIOps.Client.exceptions.ValidationExceptionAIOps.Client.exceptions.InternalServerExceptionAIOps.Client.exceptions.ConflictException