mgn / Client / tag_resource

tag_resource#

mgn.Client.tag_resource(**kwargs)#

Adds or overwrites only the specified tags for the specified Application Migration Service resource or resources. When you specify an existing tag key, the value is overwritten with the new value. Each resource can have a maximum of 50 tags. Each tag consists of a key and optional value.

See also: AWS API Documentation

Request Syntax

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

    [REQUIRED]

    Tag resource by ARN.

  • tags (dict) –

    [REQUIRED]

    Tag resource by Tags.

    • (string) –

      • (string) –

Returns:

None

Exceptions

  • mgn.Client.exceptions.ResourceNotFoundException

  • mgn.Client.exceptions.ThrottlingException

  • mgn.Client.exceptions.ValidationException

  • mgn.Client.exceptions.AccessDeniedException

  • mgn.Client.exceptions.InternalServerException