@SdkInternalApi
    final DisableHttpEndpointResult executeDisableHttpEndpoint(DisableHttpEndpointRequest disableHttpEndpointRequest) {

        ExecutionContext executionContext = createExecutionContext(disableHttpEndpointRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(Field.ClientExecuteTime);
        Request<DisableHttpEndpointRequest> request = null;
        Response<DisableHttpEndpointResult> response = null;

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

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

            StaxResponseHandler<DisableHttpEndpointResult> responseHandler = new StaxResponseHandler<DisableHttpEndpointResult>(
                    new DisableHttpEndpointResultStaxUnmarshaller());

            response = invoke(request, responseHandler, executionContext);

            return response.getAwsResponse();

        } finally {

            endClientExecution(awsRequestMetrics, request, response);
        }
    }
<p>
Disables the HTTP endpoint for the specified DB cluster. Disabling this endpoint disables RDS Data API.
</p>
<p>
For more information, see <a
href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html">Using RDS Data API</a> in the
<i>Amazon Aurora User Guide</i>.
</p>
<note>
<p>
This operation applies only to Aurora PostgreSQL Serverless v2 and provisioned DB clusters. To disable the HTTP
endpoint for Aurora Serverless v1 DB clusters, use the <code>EnableHttpEndpoint</code> parameter of the
<code>ModifyDBCluster</code> operation.
</p>
</note>

@param disableHttpEndpointRequest
@return Result of the DisableHttpEndpoint operation returned by the service.
@throws ResourceNotFoundException
        The specified resource ID was not found.
@throws InvalidResourceStateException
        The operation can't be performed because another operation is in progress.
@sample AmazonRDS.DisableHttpEndpoint
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DisableHttpEndpoint" target="_top">AWS API
     Documentation</a>
aws-java-sdk-rds/src/main/java/com/amazonaws/services/rds/AmazonRDSClient.java