MigrationHubOrchestrator / Client / tag_resource

tag_resource#

MigrationHubOrchestrator.Client.tag_resource(**kwargs)#

Tag a resource by specifying its Amazon Resource Name (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 to which you want to add tags.

  • tags (dict) –

    [REQUIRED]

    A collection of labels, in the form of key:value pairs, that apply to this resource.

    • (string) –

      • (string) –

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions

  • MigrationHubOrchestrator.Client.exceptions.ValidationException

  • MigrationHubOrchestrator.Client.exceptions.ResourceNotFoundException