PartnerCentralRevenueMeasurementAPI / Client / tag_resource

tag_resource

PartnerCentralRevenueMeasurementAPI.Client.tag_resource(**kwargs)

Adds or overwrites one or more tags for the specified resource.

See also: AWS API Documentation

Request Syntax

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

    [REQUIRED]

    The Amazon Resource Name (ARN) of the resource to tag.

  • tags (list) –

    [REQUIRED]

    The tags to add to the resource.

    • (dict) –

      A key-value pair used for organizing and managing resources through metadata tags.

      • Key (string) – [REQUIRED]

        The key portion of the tag.

      • Value (string) – [REQUIRED]

        The value portion of the tag.

Returns:

None

Exceptions

  • PartnerCentralRevenueMeasurementAPI.Client.exceptions.ThrottlingException

  • PartnerCentralRevenueMeasurementAPI.Client.exceptions.ValidationException

  • PartnerCentralRevenueMeasurementAPI.Client.exceptions.AccessDeniedException

  • PartnerCentralRevenueMeasurementAPI.Client.exceptions.InternalServerException

  • PartnerCentralRevenueMeasurementAPI.Client.exceptions.ResourceNotFoundException

  • PartnerCentralRevenueMeasurementAPI.Client.exceptions.ConflictException