ElementalInference / Client / tag_resource

tag_resource

ElementalInference.Client.tag_resource(**kwargs)

Associates the specified tags to the resource identified by the specified resourceArn in the current region. If existing tags on a resource are not specified in the request parameters, they are not changed. When a resource is deleted, the tags associated with that resource are also deleted.

See also: AWS API Documentation

Request Syntax

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

    [REQUIRED]

    The ARN of the resource where you want to add tags.

  • tags (dict) –

    [REQUIRED]

    A list of tags to add to the resource.

    • (string) –

      • (string) –

Returns:

None

Exceptions

  • ElementalInference.Client.exceptions.ValidationException

  • ElementalInference.Client.exceptions.ResourceNotFoundException

  • ElementalInference.Client.exceptions.InternalServerErrorException

  • ElementalInference.Client.exceptions.AccessDeniedException

  • ElementalInference.Client.exceptions.TooManyRequestException

  • ElementalInference.Client.exceptions.ConflictException