LicenseManagerLinuxSubscriptions / Client / tag_resource

tag_resource#

LicenseManagerLinuxSubscriptions.Client.tag_resource(**kwargs)#

Add metadata tags to the specified Amazon Web Services 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 Amazon Web Services resource to which to add the specified metadata tags.

  • tags (dict) –

    [REQUIRED]

    The metadata tags to assign to the Amazon Web Services resource. Tags are formatted as key value pairs.

    • (string) –

      • (string) –

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions

  • LicenseManagerLinuxSubscriptions.Client.exceptions.InternalServerException

  • LicenseManagerLinuxSubscriptions.Client.exceptions.ResourceNotFoundException

  • LicenseManagerLinuxSubscriptions.Client.exceptions.ValidationException