@SdkInternalApi
    final DeleteResolverEndpointResult executeDeleteResolverEndpoint(DeleteResolverEndpointRequest deleteResolverEndpointRequest) {

        ExecutionContext executionContext = createExecutionContext(deleteResolverEndpointRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(Field.ClientExecuteTime);
        Request<DeleteResolverEndpointRequest> request = null;
        Response<DeleteResolverEndpointResult> response = null;

        try {
            awsRequestMetrics.startEvent(Field.RequestMarshallTime);
            try {
                request = new DeleteResolverEndpointRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteResolverEndpointRequest));
                // 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, "Route53Resolver");
                request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteResolverEndpoint");
                request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);

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

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

            return response.getAwsResponse();

        } finally {

            endClientExecution(awsRequestMetrics, request, response);
        }
    }
<p>
Deletes a Resolver endpoint. The effect of deleting a Resolver endpoint depends on whether it's an inbound or an
outbound Resolver endpoint:
</p>
<ul>
<li>
<p>
<b>Inbound</b>: DNS queries from your network are no longer routed to the DNS service for the specified VPC.
</p>
</li>
<li>
<p>
<b>Outbound</b>: DNS queries from a VPC are no longer routed to your network.
</p>
</li>
</ul>

@param deleteResolverEndpointRequest
@return Result of the DeleteResolverEndpoint operation returned by the service.
@throws ResourceNotFoundException
        The specified resource doesn't exist.
@throws InvalidParameterException
        One or more parameters in this request are not valid.
@throws InvalidRequestException
        The request is invalid.
@throws InternalServiceErrorException
        We encountered an unknown error. Try again in a few minutes.
@throws ThrottlingException
        The request was throttled. Try again in a few minutes.
@sample AmazonRoute53Resolver.DeleteResolverEndpoint
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/DeleteResolverEndpoint"
     target="_top">AWS API Documentation</a>
aws-java-sdk-route53resolver/src/main/java/com/amazonaws/services/route53resolver/AmazonRoute53ResolverClient.java