@SdkInternalApi
    final DescribeFunctionResult executeDescribeFunction(DescribeFunctionRequest describeFunctionRequest) {

        ExecutionContext executionContext = createExecutionContext(describeFunctionRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(Field.ClientExecuteTime);
        Request<DescribeFunctionRequest> request = null;
        Response<DescribeFunctionResult> response = null;

        try {
            awsRequestMetrics.startEvent(Field.RequestMarshallTime);
            try {
                request = new DescribeFunctionRequestMarshaller().marshall(super.beforeMarshalling(describeFunctionRequest));
                // 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, "CloudFront");
                request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeFunction");
                request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);

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

            StaxResponseHandler<DescribeFunctionResult> responseHandler = new StaxResponseHandler<DescribeFunctionResult>(
                    new DescribeFunctionResultStaxUnmarshaller());

            response = invoke(request, responseHandler, executionContext);

            return response.getAwsResponse();

        } finally {

            endClientExecution(awsRequestMetrics, request, response);
        }
    }
<p>
Gets configuration information and metadata about a CloudFront function, but not the function's code. To get a
function's code, use <code>GetFunction</code>.
</p>
<p>
To get configuration information and metadata about a function, you must provide the function's name and stage.
To get these values, you can use <code>ListFunctions</code>.
</p>

@param describeFunctionRequest
@return Result of the DescribeFunction operation returned by the service.
@throws NoSuchFunctionExistsException
        The function does not exist.
@throws UnsupportedOperationException
        This operation is not supported in this region.
@sample AmazonCloudFront.DescribeFunction
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DescribeFunction" target="_top">AWS
     API Documentation</a>
aws-java-sdk-cloudfront/src/main/java/com/amazonaws/services/cloudfront/AmazonCloudFrontClient.java