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 ListInvestigationGroups operation 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.AccessDeniedException

  • AIOps.Client.exceptions.ForbiddenException

  • AIOps.Client.exceptions.ResourceNotFoundException

  • AIOps.Client.exceptions.ThrottlingException

  • AIOps.Client.exceptions.ValidationException

  • AIOps.Client.exceptions.InternalServerException

  • AIOps.Client.exceptions.ConflictException