S3Files / Client / tag_resource

tag_resource

S3Files.Client.tag_resource(**kwargs)

Creates tags for S3 Files resources using standard Amazon Web Services tagging APIs.

See also: AWS API Documentation

Request Syntax

response = client.tag_resource(
    resourceId='string',
    tags=[
        {
            'key': 'string',
            'value': 'string'
        },
    ]
)
Parameters:
  • resourceId (string) –

    [REQUIRED]

    The ID or Amazon Resource Name (ARN) of the resource to add tags to.

  • tags (list) –

    [REQUIRED]

    An array of key-value pairs to add as tags to the resource.

    • (dict) –

      A key-value pair for resource tagging.

      • key (string) – [REQUIRED]

        The tag key. The key can’t start with aws:.

      • value (string) – [REQUIRED]

        The tag value.

Returns:

None

Exceptions

  • S3Files.Client.exceptions.InternalServerException

  • S3Files.Client.exceptions.ResourceNotFoundException

  • S3Files.Client.exceptions.ThrottlingException

  • S3Files.Client.exceptions.ValidationException