tag_resource

SsmSap.Client.tag_resource(**kwargs)

Creates tag for a resource by specifying the ARN.

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]

    The tags on a resource.

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

dict

Returns

Response Syntax

{}

Response Structure

  • (dict) --

Exceptions

  • SsmSap.Client.exceptions.ResourceNotFoundException
  • SsmSap.Client.exceptions.ValidationException
  • SsmSap.Client.exceptions.ConflictException