@Override
    public GetPolicyResult getPolicy(GetPolicyRequest request) {
        request = beforeClientExecution(request);
        return executeGetPolicy(request);
    }
<p>
Returns the JSON-formatted resource-based policy on a profiling group.
</p>

@param getPolicyRequest
       The structure representing the <code>getPolicyRequest</code>.
@return Result of the GetPolicy operation returned by the service.
@throws InternalServerException
        The server encountered an internal error and is unable to complete the request.
@throws ThrottlingException
        The request was denied due to request throttling.
@throws ResourceNotFoundException
        The resource specified in the request does not exist.
@sample AmazonCodeGuruProfiler.GetPolicy
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/GetPolicy" target="_top">AWS API
     Documentation</a>
aws-java-sdk-codeguruprofiler/src/main/java/com/amazonaws/services/codeguruprofiler/AmazonCodeGuruProfilerClient.java