@Override
    public TagResourceResult tagResource(TagResourceRequest request) {
        request = beforeClientExecution(request);
        return executeTagResource(request);
    }
<p>
Assigns tags to the specified retention rule.
</p>

@param tagResourceRequest
@return Result of the TagResource operation returned by the service.
@throws ValidationException
        One or more of the parameters in the request is not valid.
@throws InternalServerException
        The service could not respond to the request due to an internal problem.
@throws ResourceNotFoundException
        The specified resource was not found.
@throws ServiceQuotaExceededException
        The request would cause a service quota for the number of tags per resource to be exceeded.
@sample AmazonRecycleBin.TagResource
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/rbin-2021-06-15/TagResource" target="_top">AWS API
     Documentation</a>
aws-java-sdk-recyclebin/src/main/java/com/amazonaws/services/recyclebin/AmazonRecycleBinClient.java