LicenseManager / Client / tag_resource

tag_resource

LicenseManager.Client.tag_resource(**kwargs)

Adds the specified tags to the specified resource. The following resources support tagging in License Manager:

  • Licenses

  • Grants

  • License configurations

  • Report generators

See also: AWS API Documentation

Request Syntax

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

    [REQUIRED]

    Amazon Resource Name (ARN) of the resource. The following examples provide an example ARN for each supported resource in License Manager:

    • Licenses - arn:aws:license-manager::111122223333:license:l-EXAMPLE2da7646d6861033667f20e895

    • Grants - arn:aws:license-manager::111122223333:grant:g-EXAMPLE7b19f4a0ab73679b0beb52707

    • License configurations - arn:aws:license-manager:us-east-1:111122223333:license-configuration:lic-EXAMPLE6a788d4c8acd4264ff0ecf2ed2d

    • Report generators - arn:aws:license-manager:us-east-1:111122223333:report-generator:r-EXAMPLE825b4a4f8fe5a3e0c88824e5fc6

  • Tags (list) –

    [REQUIRED]

    One or more tags.

    • (dict) –

      Details about the tags for a resource. For more information about tagging support in License Manager, see the TagResource operation.

      • Key (string) –

        The tag key.

      • Value (string) –

        The tag value.

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions

  • LicenseManager.Client.exceptions.InvalidParameterValueException

  • LicenseManager.Client.exceptions.ServerInternalException

  • LicenseManager.Client.exceptions.AuthorizationException

  • LicenseManager.Client.exceptions.AccessDeniedException

  • LicenseManager.Client.exceptions.RateLimitExceededException