@SdkInternalApi
    final DeleteRealtimeLogConfigResult executeDeleteRealtimeLogConfig(DeleteRealtimeLogConfigRequest deleteRealtimeLogConfigRequest) {

        ExecutionContext executionContext = createExecutionContext(deleteRealtimeLogConfigRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(Field.ClientExecuteTime);
        Request<DeleteRealtimeLogConfigRequest> request = null;
        Response<DeleteRealtimeLogConfigResult> response = null;

        try {
            awsRequestMetrics.startEvent(Field.RequestMarshallTime);
            try {
                request = new DeleteRealtimeLogConfigRequestMarshaller().marshall(super.beforeMarshalling(deleteRealtimeLogConfigRequest));
                // 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, "DeleteRealtimeLogConfig");
                request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);

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

            StaxResponseHandler<DeleteRealtimeLogConfigResult> responseHandler = new StaxResponseHandler<DeleteRealtimeLogConfigResult>(
                    new DeleteRealtimeLogConfigResultStaxUnmarshaller());

            response = invoke(request, responseHandler, executionContext);

            return response.getAwsResponse();

        } finally {

            endClientExecution(awsRequestMetrics, request, response);
        }
    }
<p>
Deletes a real-time log configuration.
</p>
<p>
You cannot delete a real-time log configuration if it's attached to a cache behavior. First update your
distributions to remove the real-time log configuration from all cache behaviors, then delete the real-time log
configuration.
</p>
<p>
To delete a real-time log configuration, you can provide the configuration's name or its Amazon Resource Name
(ARN). You must provide at least one. If you provide both, CloudFront uses the name to identify the real-time log
configuration to delete.
</p>

@param deleteRealtimeLogConfigRequest
@return Result of the DeleteRealtimeLogConfig operation returned by the service.
@throws NoSuchRealtimeLogConfigException
        The real-time log configuration does not exist.
@throws RealtimeLogConfigInUseException
        Cannot delete the real-time log configuration because it is attached to one or more cache behaviors.
@throws InvalidArgumentException
        An argument is invalid.
@throws AccessDeniedException
        Access denied.
@sample AmazonCloudFront.DeleteRealtimeLogConfig
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteRealtimeLogConfig"
     target="_top">AWS API Documentation</a>
aws-java-sdk-cloudfront/src/main/java/com/amazonaws/services/cloudfront/AmazonCloudFrontClient.java