Backup / Client / tag_resource

tag_resource

Backup.Client.tag_resource(**kwargs)

Assigns a set of key-value pairs to a resource.

See also: AWS API Documentation

Request Syntax

response = client.tag_resource(
    ResourceArn='string',
    Tags={
        'string': 'string'
    }
)
Parameters:
  • ResourceArn (string) –

    [REQUIRED]

    The ARN that uniquely identifies the resource.

  • Tags (dict) –

    [REQUIRED]

    Key-value pairs that are used to help organize your resources. You can assign your own metadata to the resources you create. For clarity, this is the structure to assign tags: [{"Key":"string","Value":"string"}].

    • (string) –

      • (string) –

Returns:

None

Exceptions

  • Backup.Client.exceptions.ResourceNotFoundException

  • Backup.Client.exceptions.InvalidParameterValueException

  • Backup.Client.exceptions.MissingParameterValueException

  • Backup.Client.exceptions.ServiceUnavailableException

  • Backup.Client.exceptions.LimitExceededException