tag_resource

SavingsPlans.Client.tag_resource(**kwargs)

Adds the specified tags to the specified 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.

  • tags (dict) --

    [REQUIRED]

    One or more tags. For example, { "tags": {"key1":"value1", "key2":"value2"} }.

    • (string) --
      • (string) --
Return type

dict

Returns

Response Syntax

{}

Response Structure

  • (dict) --

Exceptions

  • SavingsPlans.Client.exceptions.ResourceNotFoundException
  • SavingsPlans.Client.exceptions.ServiceQuotaExceededException
  • SavingsPlans.Client.exceptions.ValidationException
  • SavingsPlans.Client.exceptions.InternalServerException