RoboMaker / Client / tag_resource

tag_resource#

RoboMaker.Client.tag_resource(**kwargs)#

Adds or edits tags for a AWS RoboMaker resource.

Each tag consists of a tag key and a tag value. Tag keys and tag values are both required, but tag values can be empty strings.

For information about the rules that apply to tag keys and tag values, see User-Defined Tag Restrictions in the AWS Billing and Cost Management User Guide.

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 AWS RoboMaker resource you are tagging.

  • tags (dict) –

    [REQUIRED]

    A map that contains tag keys and tag values that are attached to the resource.

    • (string) –

      • (string) –

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions

  • RoboMaker.Client.exceptions.InternalServerException

  • RoboMaker.Client.exceptions.ResourceNotFoundException

  • RoboMaker.Client.exceptions.InvalidParameterException

  • RoboMaker.Client.exceptions.ThrottlingException