@SdkInternalApi
    final DeleteIpamPoolResult executeDeleteIpamPool(DeleteIpamPoolRequest deleteIpamPoolRequest) {

        ExecutionContext executionContext = createExecutionContext(deleteIpamPoolRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(Field.ClientExecuteTime);
        Request<DeleteIpamPoolRequest> request = null;
        Response<DeleteIpamPoolResult> response = null;

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

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

            StaxResponseHandler<DeleteIpamPoolResult> responseHandler = new StaxResponseHandler<DeleteIpamPoolResult>(
                    new DeleteIpamPoolResultStaxUnmarshaller());

            response = invoke(request, responseHandler, executionContext);

            return response.getAwsResponse();

        } finally {

            endClientExecution(awsRequestMetrics, request, response);
        }
    }
<p>
Delete an IPAM pool.
</p>
<note>
<p>
You cannot delete an IPAM pool if there are allocations in it or CIDRs provisioned to it. To release allocations,
see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ReleaseIpamPoolAllocation.html">
ReleaseIpamPoolAllocation</a>. To deprovision pool CIDRs, see <a
href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DeprovisionIpamPoolCidr.html"
>DeprovisionIpamPoolCidr</a>.
</p>
</note>
<p>
For more information, see <a href="https://docs.aws.amazon.com/vpc/latest/ipam/delete-pool-ipam.html">Delete a
pool</a> in the <i>Amazon VPC IPAM User Guide</i>.
</p>

@param deleteIpamPoolRequest
@return Result of the DeleteIpamPool operation returned by the service.
@sample AmazonEC2.DeleteIpamPool
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteIpamPool" target="_top">AWS API
     Documentation</a>
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/AmazonEC2Client.java