@SdkInternalApi
    final TagResourceResult executeTagResource(TagResourceRequest tagResourceRequest) {

        ExecutionContext executionContext = createExecutionContext(tagResourceRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(Field.ClientExecuteTime);
        Request<TagResourceRequest> request = null;
        Response<TagResourceResult> response = null;

        try {
            awsRequestMetrics.startEvent(Field.RequestMarshallTime);
            try {
                request = new TagResourceRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(tagResourceRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
                request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
                request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
                request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
                request.addHandlerContext(HandlerContextKey.SERVICE_ID, "RoboMaker");
                request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "TagResource");
                request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);

            } finally {
                awsRequestMetrics.endEvent(Field.RequestMarshallTime);
            }

            HttpResponseHandler<AmazonWebServiceResponse<TagResourceResult>> responseHandler = protocolFactory.createResponseHandler(
                    new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new TagResourceResultJsonUnmarshaller());
            response = invoke(request, responseHandler, executionContext);

            return response.getAwsResponse();

        } finally {

            endClientExecution(awsRequestMetrics, request, response);
        }
    }
<p>
Adds or edits tags for a AWS RoboMaker resource.
</p>
<p>
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.
</p>
<p>
For information about the rules that apply to tag keys and tag values, see <a
href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/allocation-tag-restrictions.html">User-Defined
Tag Restrictions</a> in the <i>AWS Billing and Cost Management User Guide</i>.
</p>

@param tagResourceRequest
@return Result of the TagResource operation returned by the service.
@throws InternalServerException
        AWS RoboMaker experienced a service issue. Try your call again.
@throws ResourceNotFoundException
        The specified resource does not exist.
@throws InvalidParameterException
        A parameter specified in a request is not valid, is unsupported, or cannot be used. The returned message
        provides an explanation of the error value.
@throws ThrottlingException
        AWS RoboMaker is temporarily unable to process the request. Try your call again.
@sample AWSRoboMaker.TagResource
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/TagResource" target="_top">AWS API
     Documentation</a>
aws-java-sdk-robomaker/src/main/java/com/amazonaws/services/robomaker/AWSRoboMakerClient.java