AIOps / Client / tag_resource

tag_resource

AIOps.Client.tag_resource(**kwargs)

Assigns one or more tags (key-value pairs) to the specified resource.

Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.

Tags don’t have any semantic meaning to Amazon Web Services and are interpreted strictly as strings of characters.

You can associate as many as 50 tags with a resource.

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 resource that you want to apply the tags to. You can use the ListInvestigationGroups operation to find the ARNs of investigation groups.

  • tags (dict) –

    [REQUIRED]

    The list of key-value pairs to associate with the resource.

    • (string) –

      • (string) –

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

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