Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
   /*
    * Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
    * 
    * Licensed under the Apache License, Version 2.0 (the "License").
    * You may not use this file except in compliance with the License.
    * A copy of the License is located at
    * 
    *  http://aws.amazon.com/apache2.0
    * 
   * or in the "license" file accompanying this file. This file is distributed
   * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
   * express or implied. See the License for the specific language governing
   * permissions and limitations under the License.
   */
  package com.amazonaws.services.redshift;
  
  
  
Asynchronous client for accessing AmazonRedshift. All asynchronous calls made using this client are non-blocking. Callers could either process the result and handle the exceptions in the worker thread by providing a callback handler when making the call, or use the returned Future object to check the result of the call in the calling thread. Amazon Redshift Overview

This is an interface reference for Amazon Redshift. It contains documentation for one of the programming or command line interfaces you can use to manage Amazon Redshift clusters. Note that Amazon Redshift is asynchronous, which means that some interfaces may require techniques, such as polling or asynchronous callback handlers, to determine when a command has been applied. In this reference, the parameter descriptions indicate whether a change is applied immediately, on the next instance reboot, or during the next maintenance window. For a summary of the Amazon Redshift cluster management interfaces, go to Using the Amazon Redshift Management Interfaces .

Amazon Redshift manages all the work of setting up, operating, and scaling a data warehouse: provisioning capacity, monitoring and backing up the cluster, and applying patches and upgrades to the Amazon Redshift engine. You can focus on using your data to acquire new insights for your business and customers.

If you are a first-time user of Amazon Redshift, we recommend that you begin by reading the The Amazon Redshift Getting Started Guide

If you are a database developer, the Amazon Redshift Database Developer Guide explains how to design, build, query, and maintain the databases that make up your data warehouse.

  
          implements AmazonRedshiftAsync {

    
Executor service for executing asynchronous requests.
  
      private ExecutorService executorService;
  
      private static final int DEFAULT_THREAD_POOL_SIZE = 50;

    
Constructs a new asynchronous client to invoke service methods on AmazonRedshift. A credentials provider chain will be used that searches for credentials in this order:
  • Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY
  • Java System Properties - aws.accessKeyId and aws.secretKey
  • Instance profile credentials delivered through the Amazon EC2 metadata service

All service calls made using this new client object are blocking, and will not return until the service call completes.

  
      public AmazonRedshiftAsyncClient() {
          this(new DefaultAWSCredentialsProviderChain());
      }

    
Constructs a new asynchronous client to invoke service methods on AmazonRedshift. A credentials provider chain will be used that searches for credentials in this order:
  • Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY
  • Java System Properties - aws.accessKeyId and aws.secretKey
  • Instance profile credentials delivered through the Amazon EC2 metadata service

All service calls made using this new client object are blocking, and will not return until the service call completes.

Parameters:
clientConfiguration The client configuration options controlling how this client connects to AmazonRedshift (ex: proxy settings, retry counts, etc.).
See also:
com.amazonaws.auth.DefaultAWSCredentialsProviderChain
 
     public AmazonRedshiftAsyncClient(ClientConfiguration clientConfiguration) {
         this(new DefaultAWSCredentialsProviderChain(), clientConfiguration, Executors.newFixedThreadPool(clientConfiguration.getMaxConnections()));
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonRedshift using the specified AWS account credentials. Default client settings will be used, and a fixed size thread pool will be created for executing the asynchronous tasks.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentials The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
 
     public AmazonRedshiftAsyncClient(AWSCredentials awsCredentials) {
         this(awsCredentials, Executors.newFixedThreadPool());
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonRedshift using the specified AWS account credentials and executor service. Default client settings will be used.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentials The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
executorService The executor service by which all asynchronous requests will be executed.
 
     public AmazonRedshiftAsyncClient(AWSCredentials awsCredentialsExecutorService executorService) {
         super(awsCredentials);
         this. = executorService;
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonRedshift using the specified AWS account credentials, executor service, and client configuration options.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentials The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
clientConfiguration Client configuration options (ex: max retry limit, proxy settings, etc).
executorService The executor service by which all asynchronous requests will be executed.
 
     public AmazonRedshiftAsyncClient(AWSCredentials awsCredentials,
                 ClientConfiguration clientConfigurationExecutorService executorService) {
         super(awsCredentialsclientConfiguration);
         this. = executorService;
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonRedshift using the specified AWS account credentials provider. Default client settings will be used, and a fixed size thread pool will be created for executing the asynchronous tasks.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentialsProvider The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
 
     public AmazonRedshiftAsyncClient(AWSCredentialsProvider awsCredentialsProvider) {
         this(awsCredentialsProvider, Executors.newFixedThreadPool());
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonRedshift using the specified AWS account credentials provider and executor service. Default client settings will be used.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentialsProvider The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
executorService The executor service by which all asynchronous requests will be executed.
 
     public AmazonRedshiftAsyncClient(AWSCredentialsProvider awsCredentialsProviderExecutorService executorService) {
         this(awsCredentialsProvidernew ClientConfiguration(), executorService);
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonRedshift using the specified AWS account credentials provider and client configuration options.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentialsProvider The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
clientConfiguration Client configuration options (ex: max retry limit, proxy settings, etc).
 
     public AmazonRedshiftAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
                 ClientConfiguration clientConfiguration) {
         this(awsCredentialsProviderclientConfiguration, Executors.newFixedThreadPool(clientConfiguration.getMaxConnections()));
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonRedshift using the specified AWS account credentials provider, executor service, and client configuration options.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentialsProvider The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
clientConfiguration Client configuration options (ex: max retry limit, proxy settings, etc).
executorService The executor service by which all asynchronous requests will be executed.
 
     public AmazonRedshiftAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
                 ClientConfiguration clientConfigurationExecutorService executorService) {
         super(awsCredentialsProviderclientConfiguration);
         this. = executorService;
     }

    
Returns the executor service used by this async client to execute requests.

Returns:
The executor service used by this async client to execute requests.
 
     public ExecutorService getExecutorService() {
         return ;
     }

    
Shuts down the client, releasing all managed resources. This includes forcibly terminating all pending asynchronous service calls. Clients who wish to give pending asynchronous service calls time to complete should call getExecutorService().shutdown() followed by getExecutorService().awaitTermination() prior to calling this method.
 
     @Override
     public void shutdown() {
         super.shutdown();
         .shutdownNow();
     }
            
    

Removes the ability of the specified AWS customer account to restore the specified snapshot. If the account is currently restoring the snapshot, the restore will run to completion.

For more information about working with snapshots, go to Amazon Redshift Snapshots in the Amazon Redshift Cluster Management Guide .

Parameters:
revokeSnapshotAccessRequest Container for the necessary parameters to execute the RevokeSnapshotAccess operation on AmazonRedshift.
Returns:
A Java Future object containing the response from the RevokeSnapshotAccess service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
 
     public Future<SnapshotrevokeSnapshotAccessAsync(final RevokeSnapshotAccessRequest revokeSnapshotAccessRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<Snapshot>() {
             public Snapshot call() throws Exception {
                 return revokeSnapshotAccess(revokeSnapshotAccessRequest);
         }
     });
     }

    

Removes the ability of the specified AWS customer account to restore the specified snapshot. If the account is currently restoring the snapshot, the restore will run to completion.

For more information about working with snapshots, go to Amazon Redshift Snapshots in the Amazon Redshift Cluster Management Guide .

Parameters:
revokeSnapshotAccessRequest Container for the necessary parameters to execute the RevokeSnapshotAccess operation on AmazonRedshift.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the RevokeSnapshotAccess service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
 
             final RevokeSnapshotAccessRequest revokeSnapshotAccessRequest,
             final AsyncHandler<RevokeSnapshotAccessRequestSnapshotasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<Snapshot>() {
             public Snapshot call() throws Exception {
               Snapshot result;
                 try {
                 result = revokeSnapshotAccess(revokeSnapshotAccessRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(revokeSnapshotAccessRequestresult);
                  return result;
         }
     });
     }
    
    

Modifies the number of days to retain automated snapshots in the destination region after they are copied from the source region.

Parameters:
modifySnapshotCopyRetentionPeriodRequest Container for the necessary parameters to execute the ModifySnapshotCopyRetentionPeriod operation on AmazonRedshift.
Returns:
A Java Future object containing the response from the ModifySnapshotCopyRetentionPeriod service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
 
     public Future<ClustermodifySnapshotCopyRetentionPeriodAsync(final ModifySnapshotCopyRetentionPeriodRequest modifySnapshotCopyRetentionPeriodRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<Cluster>() {
             public Cluster call() throws Exception {
                 return modifySnapshotCopyRetentionPeriod(modifySnapshotCopyRetentionPeriodRequest);
         }
     });
     }

    

Modifies the number of days to retain automated snapshots in the destination region after they are copied from the source region.

Parameters:
modifySnapshotCopyRetentionPeriodRequest Container for the necessary parameters to execute the ModifySnapshotCopyRetentionPeriod operation on AmazonRedshift.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the ModifySnapshotCopyRetentionPeriod service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
 
             final ModifySnapshotCopyRetentionPeriodRequest modifySnapshotCopyRetentionPeriodRequest,
             final AsyncHandler<ModifySnapshotCopyRetentionPeriodRequestClusterasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<Cluster>() {
             public Cluster call() throws Exception {
               Cluster result;
                 try {
                 result = modifySnapshotCopyRetentionPeriod(modifySnapshotCopyRetentionPeriodRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(modifySnapshotCopyRetentionPeriodRequestresult);
                  return result;
         }
     });
     }
    
    

Modifies a cluster subnet group to include the specified list of VPC subnets. The operation replaces the existing list of subnets with the new list of subnets.

Parameters:
modifyClusterSubnetGroupRequest Container for the necessary parameters to execute the ModifyClusterSubnetGroup operation on AmazonRedshift.
Returns:
A Java Future object containing the response from the ModifyClusterSubnetGroup service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
 
     public Future<ClusterSubnetGroupmodifyClusterSubnetGroupAsync(final ModifyClusterSubnetGroupRequest modifyClusterSubnetGroupRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<ClusterSubnetGroup>() {
             public ClusterSubnetGroup call() throws Exception {
                 return modifyClusterSubnetGroup(modifyClusterSubnetGroupRequest);
         }
     });
     }

    

Modifies a cluster subnet group to include the specified list of VPC subnets. The operation replaces the existing list of subnets with the new list of subnets.

Parameters:
modifyClusterSubnetGroupRequest Container for the necessary parameters to execute the ModifyClusterSubnetGroup operation on AmazonRedshift.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the ModifyClusterSubnetGroup service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
 
             final ModifyClusterSubnetGroupRequest modifyClusterSubnetGroupRequest,
             final AsyncHandler<ModifyClusterSubnetGroupRequestClusterSubnetGroupasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<ClusterSubnetGroup>() {
             public ClusterSubnetGroup call() throws Exception {
               ClusterSubnetGroup result;
                 try {
                 result = modifyClusterSubnetGroup(modifyClusterSubnetGroupRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(modifyClusterSubnetGroupRequestresult);
                  return result;
         }
     });
     }
    
    

Allows you to purchase reserved nodes. Amazon Redshift offers a predefined set of reserved node offerings. You can purchase one of the offerings. You can call the DescribeReservedNodeOfferings API to obtain the available reserved node offerings. You can call this API by providing a specific reserved node offering and the number of nodes you want to reserve.

For more information about managing parameter groups, go to Purchasing Reserved Nodes in the Amazon Redshift Cluster Management Guide .

Parameters:
purchaseReservedNodeOfferingRequest Container for the necessary parameters to execute the PurchaseReservedNodeOffering operation on AmazonRedshift.
Returns:
A Java Future object containing the response from the PurchaseReservedNodeOffering service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
 
     public Future<ReservedNodepurchaseReservedNodeOfferingAsync(final PurchaseReservedNodeOfferingRequest purchaseReservedNodeOfferingRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<ReservedNode>() {
             public ReservedNode call() throws Exception {
                 return purchaseReservedNodeOffering(purchaseReservedNodeOfferingRequest);
         }
     });
     }

    

Allows you to purchase reserved nodes. Amazon Redshift offers a predefined set of reserved node offerings. You can purchase one of the offerings. You can call the DescribeReservedNodeOfferings API to obtain the available reserved node offerings. You can call this API by providing a specific reserved node offering and the number of nodes you want to reserve.

For more information about managing parameter groups, go to Purchasing Reserved Nodes in the Amazon Redshift Cluster Management Guide .

Parameters:
purchaseReservedNodeOfferingRequest Container for the necessary parameters to execute the PurchaseReservedNodeOffering operation on AmazonRedshift.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the PurchaseReservedNodeOffering service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
 
             final PurchaseReservedNodeOfferingRequest purchaseReservedNodeOfferingRequest,
             final AsyncHandler<PurchaseReservedNodeOfferingRequestReservedNodeasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<ReservedNode>() {
             public ReservedNode call() throws Exception {
               ReservedNode result;
                 try {
                 result = purchaseReservedNodeOffering(purchaseReservedNodeOfferingRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(purchaseReservedNodeOfferingRequestresult);
                  return result;
         }
     });
     }
    
    

Deletes the specified Amazon Redshift HSM configuration.

Parameters:
deleteHsmConfigurationRequest Container for the necessary parameters to execute the DeleteHsmConfiguration operation on AmazonRedshift.
Returns:
A Java Future object containing the response from the DeleteHsmConfiguration service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
 
     public Future<VoiddeleteHsmConfigurationAsync(final DeleteHsmConfigurationRequest deleteHsmConfigurationRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<Void>() {
             public Void call() throws Exception {
                 deleteHsmConfiguration(deleteHsmConfigurationRequest);
                 return null;
         }
     });
     }

    

Deletes the specified Amazon Redshift HSM configuration.

Parameters:
deleteHsmConfigurationRequest Container for the necessary parameters to execute the DeleteHsmConfiguration operation on AmazonRedshift.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DeleteHsmConfiguration service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
 
             final DeleteHsmConfigurationRequest deleteHsmConfigurationRequest,
             final AsyncHandler<DeleteHsmConfigurationRequestVoidasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<Void>() {
             public Void call() throws Exception {
               try {
                 deleteHsmConfiguration(deleteHsmConfigurationRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(deleteHsmConfigurationRequestnull);
                  return null;
         }
     });
     }
    
    

Stops logging information, such as queries and connection attempts, for the specified Amazon Redshift cluster.

Parameters:
disableLoggingRequest Container for the necessary parameters to execute the DisableLogging operation on AmazonRedshift.
Returns:
A Java Future object containing the response from the DisableLogging service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
 
     public Future<DisableLoggingResultdisableLoggingAsync(final DisableLoggingRequest disableLoggingRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<DisableLoggingResult>() {
             public DisableLoggingResult call() throws Exception {
                 return disableLogging(disableLoggingRequest);
         }
     });
     }

    

Stops logging information, such as queries and connection attempts, for the specified Amazon Redshift cluster.

Parameters:
disableLoggingRequest Container for the necessary parameters to execute the DisableLogging operation on AmazonRedshift.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DisableLogging service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
 
             final DisableLoggingRequest disableLoggingRequest,
             final AsyncHandler<DisableLoggingRequestDisableLoggingResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<DisableLoggingResult>() {
             public DisableLoggingResult call() throws Exception {
               DisableLoggingResult result;
                 try {
                 result = disableLogging(disableLoggingRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(disableLoggingRequestresult);
                  return result;
         }
     });
     }
    
    

Modifies the settings for a cluster. For example, you can add another security or parameter group, update the preferred maintenance window, or change the master user password. Resetting a cluster password or modifying the security groups associated with a cluster do not need a reboot. However, modifying a parameter group requires a reboot for parameters to take effect. For more information about managing clusters, go to Amazon Redshift Clusters in the Amazon Redshift Cluster Management Guide .

You can also change node type and the number of nodes to scale up or down the cluster. When resizing a cluster, you must specify both the number of nodes and the node type even if one of the parameters does not change.

Parameters:
modifyClusterRequest Container for the necessary parameters to execute the ModifyCluster operation on AmazonRedshift.
Returns:
A Java Future object containing the response from the ModifyCluster service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
 
     public Future<ClustermodifyClusterAsync(final ModifyClusterRequest modifyClusterRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<Cluster>() {
             public Cluster call() throws Exception {
                 return modifyCluster(modifyClusterRequest);
         }
     });
     }

    

Modifies the settings for a cluster. For example, you can add another security or parameter group, update the preferred maintenance window, or change the master user password. Resetting a cluster password or modifying the security groups associated with a cluster do not need a reboot. However, modifying a parameter group requires a reboot for parameters to take effect. For more information about managing clusters, go to Amazon Redshift Clusters in the Amazon Redshift Cluster Management Guide .

You can also change node type and the number of nodes to scale up or down the cluster. When resizing a cluster, you must specify both the number of nodes and the node type even if one of the parameters does not change.

Parameters:
modifyClusterRequest Container for the necessary parameters to execute the ModifyCluster operation on AmazonRedshift.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the ModifyCluster service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
 
     public Future<ClustermodifyClusterAsync(
             final ModifyClusterRequest modifyClusterRequest,
             final AsyncHandler<ModifyClusterRequestClusterasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<Cluster>() {
             public Cluster call() throws Exception {
               Cluster result;
                 try {
                 result = modifyCluster(modifyClusterRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(modifyClusterRequestresult);
                  return result;
         }
     });
     }
    
    

Deletes a tag or tags from a resource. You must provide the ARN of the resource from which you want to delete the tag or tags.

Parameters:
deleteTagsRequest Container for the necessary parameters to execute the DeleteTags operation on AmazonRedshift.
Returns:
A Java Future object containing the response from the DeleteTags service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
 
     public Future<VoiddeleteTagsAsync(final DeleteTagsRequest deleteTagsRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<Void>() {
             public Void call() throws Exception {
                 deleteTags(deleteTagsRequest);
                 return null;
         }
     });
     }

    

Deletes a tag or tags from a resource. You must provide the ARN of the resource from which you want to delete the tag or tags.

Parameters:
deleteTagsRequest Container for the necessary parameters to execute the DeleteTags operation on AmazonRedshift.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DeleteTags service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
 
     public Future<VoiddeleteTagsAsync(
             final DeleteTagsRequest deleteTagsRequest,
             final AsyncHandler<DeleteTagsRequestVoidasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<Void>() {
             public Void call() throws Exception {
               try {
                 deleteTags(deleteTagsRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(deleteTagsRequestnull);
                  return null;
         }
     });
     }
    
    

Copies the specified automated cluster snapshot to a new manual cluster snapshot. The source must be an automated snapshot and it must be in the available state.

When you delete a cluster, Amazon Redshift deletes any automated snapshots of the cluster. Also, when the retention period of the snapshot expires, Amazon Redshift automatically deletes it. If you want to keep an automated snapshot for a longer period, you can make a manual copy of the snapshot. Manual snapshots are retained until you delete them.

For more information about working with snapshots, go to Amazon Redshift Snapshots in the Amazon Redshift Cluster Management Guide .

Parameters:
copyClusterSnapshotRequest Container for the necessary parameters to execute the CopyClusterSnapshot operation on AmazonRedshift.
Returns:
A Java Future object containing the response from the CopyClusterSnapshot service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
    public Future<SnapshotcopyClusterSnapshotAsync(final CopyClusterSnapshotRequest copyClusterSnapshotRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<Snapshot>() {
            public Snapshot call() throws Exception {
                return copyClusterSnapshot(copyClusterSnapshotRequest);
        }
    });
    }

    

Copies the specified automated cluster snapshot to a new manual cluster snapshot. The source must be an automated snapshot and it must be in the available state.

When you delete a cluster, Amazon Redshift deletes any automated snapshots of the cluster. Also, when the retention period of the snapshot expires, Amazon Redshift automatically deletes it. If you want to keep an automated snapshot for a longer period, you can make a manual copy of the snapshot. Manual snapshots are retained until you delete them.

For more information about working with snapshots, go to Amazon Redshift Snapshots in the Amazon Redshift Cluster Management Guide .

Parameters:
copyClusterSnapshotRequest Container for the necessary parameters to execute the CopyClusterSnapshot operation on AmazonRedshift.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the CopyClusterSnapshot service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
            final CopyClusterSnapshotRequest copyClusterSnapshotRequest,
            final AsyncHandler<CopyClusterSnapshotRequestSnapshotasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<Snapshot>() {
            public Snapshot call() throws Exception {
              Snapshot result;
                try {
                result = copyClusterSnapshot(copyClusterSnapshotRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(copyClusterSnapshotRequestresult);
                 return result;
        }
    });
    }
    
    

Returns a list of orderable cluster options. Before you create a new cluster you can use this operation to find what options are available, such as the EC2 Availability Zones (AZ) in the specific AWS region that you can specify, and the node types you can request. The node types differ by available storage, memory, CPU and price. With the cost involved you might want to obtain a list of cluster options in the specific region and specify values when creating a cluster. For more information about managing clusters, go to Amazon Redshift Clusters in the Amazon Redshift Cluster Management Guide

Parameters:
describeOrderableClusterOptionsRequest Container for the necessary parameters to execute the DescribeOrderableClusterOptions operation on AmazonRedshift.
Returns:
A Java Future object containing the response from the DescribeOrderableClusterOptions service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
            throws AmazonServiceExceptionAmazonClientException {
            public DescribeOrderableClusterOptionsResult call() throws Exception {
                return describeOrderableClusterOptions(describeOrderableClusterOptionsRequest);
        }
    });
    }

    

Returns a list of orderable cluster options. Before you create a new cluster you can use this operation to find what options are available, such as the EC2 Availability Zones (AZ) in the specific AWS region that you can specify, and the node types you can request. The node types differ by available storage, memory, CPU and price. With the cost involved you might want to obtain a list of cluster options in the specific region and specify values when creating a cluster. For more information about managing clusters, go to Amazon Redshift Clusters in the Amazon Redshift Cluster Management Guide

Parameters:
describeOrderableClusterOptionsRequest Container for the necessary parameters to execute the DescribeOrderableClusterOptions operation on AmazonRedshift.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DescribeOrderableClusterOptions service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
            final DescribeOrderableClusterOptionsRequest describeOrderableClusterOptionsRequest,
                    throws AmazonServiceExceptionAmazonClientException {
            public DescribeOrderableClusterOptionsResult call() throws Exception {
              DescribeOrderableClusterOptionsResult result;
                try {
                result = describeOrderableClusterOptions(describeOrderableClusterOptionsRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(describeOrderableClusterOptionsRequestresult);
                 return result;
        }
    });
    }
    
    

Starts logging information, such as queries and connection attempts, for the specified Amazon Redshift cluster.

Parameters:
enableLoggingRequest Container for the necessary parameters to execute the EnableLogging operation on AmazonRedshift.
Returns:
A Java Future object containing the response from the EnableLogging service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
    public Future<EnableLoggingResultenableLoggingAsync(final EnableLoggingRequest enableLoggingRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<EnableLoggingResult>() {
            public EnableLoggingResult call() throws Exception {
                return enableLogging(enableLoggingRequest);
        }
    });
    }

    

Starts logging information, such as queries and connection attempts, for the specified Amazon Redshift cluster.

Parameters:
enableLoggingRequest Container for the necessary parameters to execute the EnableLogging operation on AmazonRedshift.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the EnableLogging service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
            final EnableLoggingRequest enableLoggingRequest,
            final AsyncHandler<EnableLoggingRequestEnableLoggingResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<EnableLoggingResult>() {
            public EnableLoggingResult call() throws Exception {
              EnableLoggingResult result;
                try {
                result = enableLogging(enableLoggingRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(enableLoggingRequestresult);
                 return result;
        }
    });
    }
    
    

Creates a new Amazon Redshift subnet group. You must provide a list of one or more subnets in your existing Amazon Virtual Private Cloud (Amazon VPC) when creating Amazon Redshift subnet group.

For information about subnet groups, go to Amazon Redshift Cluster Subnet Groups in the Amazon Redshift Cluster Management Guide .

Parameters:
createClusterSubnetGroupRequest Container for the necessary parameters to execute the CreateClusterSubnetGroup operation on AmazonRedshift.
Returns:
A Java Future object containing the response from the CreateClusterSubnetGroup service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
    public Future<ClusterSubnetGroupcreateClusterSubnetGroupAsync(final CreateClusterSubnetGroupRequest createClusterSubnetGroupRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<ClusterSubnetGroup>() {
            public ClusterSubnetGroup call() throws Exception {
                return createClusterSubnetGroup(createClusterSubnetGroupRequest);
        }
    });
    }

    

Creates a new Amazon Redshift subnet group. You must provide a list of one or more subnets in your existing Amazon Virtual Private Cloud (Amazon VPC) when creating Amazon Redshift subnet group.

For information about subnet groups, go to Amazon Redshift Cluster Subnet Groups in the Amazon Redshift Cluster Management Guide .

Parameters:
createClusterSubnetGroupRequest Container for the necessary parameters to execute the CreateClusterSubnetGroup operation on AmazonRedshift.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the CreateClusterSubnetGroup service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
            final CreateClusterSubnetGroupRequest createClusterSubnetGroupRequest,
            final AsyncHandler<CreateClusterSubnetGroupRequestClusterSubnetGroupasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<ClusterSubnetGroup>() {
            public ClusterSubnetGroup call() throws Exception {
              ClusterSubnetGroup result;
                try {
                result = createClusterSubnetGroup(createClusterSubnetGroupRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(createClusterSubnetGroupRequestresult);
                 return result;
        }
    });
    }
    
    

Deletes the specified HSM client certificate.

Parameters:
deleteHsmClientCertificateRequest Container for the necessary parameters to execute the DeleteHsmClientCertificate operation on AmazonRedshift.
Returns:
A Java Future object containing the response from the DeleteHsmClientCertificate service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
    public Future<VoiddeleteHsmClientCertificateAsync(final DeleteHsmClientCertificateRequest deleteHsmClientCertificateRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<Void>() {
            public Void call() throws Exception {
                deleteHsmClientCertificate(deleteHsmClientCertificateRequest);
                return null;
        }
    });
    }

    

Deletes the specified HSM client certificate.

Parameters:
deleteHsmClientCertificateRequest Container for the necessary parameters to execute the DeleteHsmClientCertificate operation on AmazonRedshift.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DeleteHsmClientCertificate service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
            final DeleteHsmClientCertificateRequest deleteHsmClientCertificateRequest,
            final AsyncHandler<DeleteHsmClientCertificateRequestVoidasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<Void>() {
            public Void call() throws Exception {
              try {
                deleteHsmClientCertificate(deleteHsmClientCertificateRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(deleteHsmClientCertificateRequestnull);
                 return null;
        }
    });
    }
    
    

Reboots a cluster. This action is taken as soon as possible. It results in a momentary outage to the cluster, during which the cluster status is set to rebooting . A cluster event is created when the reboot is completed. Any pending cluster modifications (see ModifyCluster) are applied at this reboot. For more information about managing clusters, go to Amazon Redshift Clusters in the Amazon Redshift Cluster Management Guide

Parameters:
rebootClusterRequest Container for the necessary parameters to execute the RebootCluster operation on AmazonRedshift.
Returns:
A Java Future object containing the response from the RebootCluster service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
    public Future<ClusterrebootClusterAsync(final RebootClusterRequest rebootClusterRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<Cluster>() {
            public Cluster call() throws Exception {
                return rebootCluster(rebootClusterRequest);
        }
    });
    }

    

Reboots a cluster. This action is taken as soon as possible. It results in a momentary outage to the cluster, during which the cluster status is set to rebooting . A cluster event is created when the reboot is completed. Any pending cluster modifications (see ModifyCluster) are applied at this reboot. For more information about managing clusters, go to Amazon Redshift Clusters in the Amazon Redshift Cluster Management Guide

Parameters:
rebootClusterRequest Container for the necessary parameters to execute the RebootCluster operation on AmazonRedshift.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the RebootCluster service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
            final RebootClusterRequest rebootClusterRequest,
            final AsyncHandler<RebootClusterRequestClusterasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<Cluster>() {
            public Cluster call() throws Exception {
              Cluster result;
                try {
                result = rebootCluster(rebootClusterRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(rebootClusterRequestresult);
                 return result;
        }
    });
    }
    
    

Deletes the specified cluster subnet group.

Parameters:
deleteClusterSubnetGroupRequest Container for the necessary parameters to execute the DeleteClusterSubnetGroup operation on AmazonRedshift.
Returns:
A Java Future object containing the response from the DeleteClusterSubnetGroup service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
    public Future<VoiddeleteClusterSubnetGroupAsync(final DeleteClusterSubnetGroupRequest deleteClusterSubnetGroupRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<Void>() {
            public Void call() throws Exception {
                deleteClusterSubnetGroup(deleteClusterSubnetGroupRequest);
                return null;
        }
    });
    }

    

Deletes the specified cluster subnet group.

Parameters:
deleteClusterSubnetGroupRequest Container for the necessary parameters to execute the DeleteClusterSubnetGroup operation on AmazonRedshift.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DeleteClusterSubnetGroup service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
            final DeleteClusterSubnetGroupRequest deleteClusterSubnetGroupRequest,
            final AsyncHandler<DeleteClusterSubnetGroupRequestVoidasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<Void>() {
            public Void call() throws Exception {
              try {
                deleteClusterSubnetGroup(deleteClusterSubnetGroupRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(deleteClusterSubnetGroupRequestnull);
                 return null;
        }
    });
    }
    
    

Deletes a previously provisioned cluster. A successful response from the web service indicates that the request was received correctly. Use DescribeClusters to monitor the status of the deletion. The delete operation cannot be canceled or reverted once submitted. For more information about managing clusters, go to Amazon Redshift Clusters in the Amazon Redshift Cluster Management Guide .

If you want to shut down the cluster and retain it for future use, set SkipFinalClusterSnapshot to false and specify a name for FinalClusterSnapshotIdentifier . You can later restore this snapshot to resume using the cluster. If a final cluster snapshot is requested, the status of the cluster will be "final-snapshot" while the snapshot is being taken, then it's "deleting" once Amazon Redshift begins deleting the cluster.

For more information about managing clusters, go to Amazon Redshift Clusters in the Amazon Redshift Cluster Management Guide .

Parameters:
deleteClusterRequest Container for the necessary parameters to execute the DeleteCluster operation on AmazonRedshift.
Returns:
A Java Future object containing the response from the DeleteCluster service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
    public Future<ClusterdeleteClusterAsync(final DeleteClusterRequest deleteClusterRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<Cluster>() {
            public Cluster call() throws Exception {
                return deleteCluster(deleteClusterRequest);
        }
    });
    }

    

Deletes a previously provisioned cluster. A successful response from the web service indicates that the request was received correctly. Use DescribeClusters to monitor the status of the deletion. The delete operation cannot be canceled or reverted once submitted. For more information about managing clusters, go to Amazon Redshift Clusters in the Amazon Redshift Cluster Management Guide .

If you want to shut down the cluster and retain it for future use, set SkipFinalClusterSnapshot to false and specify a name for FinalClusterSnapshotIdentifier . You can later restore this snapshot to resume using the cluster. If a final cluster snapshot is requested, the status of the cluster will be "final-snapshot" while the snapshot is being taken, then it's "deleting" once Amazon Redshift begins deleting the cluster.

For more information about managing clusters, go to Amazon Redshift Clusters in the Amazon Redshift Cluster Management Guide .

Parameters:
deleteClusterRequest Container for the necessary parameters to execute the DeleteCluster operation on AmazonRedshift.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DeleteCluster service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
            final DeleteClusterRequest deleteClusterRequest,
            final AsyncHandler<DeleteClusterRequestClusterasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<Cluster>() {
            public Cluster call() throws Exception {
              Cluster result;
                try {
                result = deleteCluster(deleteClusterRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(deleteClusterRequestresult);
                 return result;
        }
    });
    }
    
    

Creates a manual snapshot of the specified cluster. The cluster must be in the available state.

For more information about working with snapshots, go to Amazon Redshift Snapshots in the Amazon Redshift Cluster Management Guide .

Parameters:
createClusterSnapshotRequest Container for the necessary parameters to execute the CreateClusterSnapshot operation on AmazonRedshift.
Returns:
A Java Future object containing the response from the CreateClusterSnapshot service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
    public Future<SnapshotcreateClusterSnapshotAsync(final CreateClusterSnapshotRequest createClusterSnapshotRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<Snapshot>() {
            public Snapshot call() throws Exception {
                return createClusterSnapshot(createClusterSnapshotRequest);
        }
    });
    }

    

Creates a manual snapshot of the specified cluster. The cluster must be in the available state.

For more information about working with snapshots, go to Amazon Redshift Snapshots in the Amazon Redshift Cluster Management Guide .

Parameters:
createClusterSnapshotRequest Container for the necessary parameters to execute the CreateClusterSnapshot operation on AmazonRedshift.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the CreateClusterSnapshot service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
            final CreateClusterSnapshotRequest createClusterSnapshotRequest,
            final AsyncHandler<CreateClusterSnapshotRequestSnapshotasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<Snapshot>() {
            public Snapshot call() throws Exception {
              Snapshot result;
                try {
                result = createClusterSnapshot(createClusterSnapshotRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(createClusterSnapshotRequestresult);
                 return result;
        }
    });
    }
    
    

Creates a new cluster. To create the cluster in virtual private cloud (VPC), you must provide cluster subnet group name. If you don't provide a cluster subnet group name or the cluster security group parameter, Amazon Redshift creates a non-VPC cluster, it associates the default cluster security group with the cluster. For more information about managing clusters, go to Amazon Redshift Clusters in the Amazon Redshift Cluster Management Guide .

Parameters:
createClusterRequest Container for the necessary parameters to execute the CreateCluster operation on AmazonRedshift.
Returns:
A Java Future object containing the response from the CreateCluster service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
    public Future<ClustercreateClusterAsync(final CreateClusterRequest createClusterRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<Cluster>() {
            public Cluster call() throws Exception {
                return createCluster(createClusterRequest);
        }
    });
    }

    

Creates a new cluster. To create the cluster in virtual private cloud (VPC), you must provide cluster subnet group name. If you don't provide a cluster subnet group name or the cluster security group parameter, Amazon Redshift creates a non-VPC cluster, it associates the default cluster security group with the cluster. For more information about managing clusters, go to Amazon Redshift Clusters in the Amazon Redshift Cluster Management Guide .

Parameters:
createClusterRequest Container for the necessary parameters to execute the CreateCluster operation on AmazonRedshift.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the CreateCluster service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
            final CreateClusterRequest createClusterRequest,
            final AsyncHandler<CreateClusterRequestClusterasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<Cluster>() {
            public Cluster call() throws Exception {
              Cluster result;
                try {
                result = createCluster(createClusterRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(createClusterRequestresult);
                 return result;
        }
    });
    }
    
    

Returns events related to clusters, security groups, snapshots, and parameter groups for the past 14 days. Events specific to a particular cluster, security group, snapshot or parameter group can be obtained by providing the name as a parameter. By default, the past hour of events are returned.

Parameters:
describeEventsRequest Container for the necessary parameters to execute the DescribeEvents operation on AmazonRedshift.
Returns:
A Java Future object containing the response from the DescribeEvents service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
    public Future<DescribeEventsResultdescribeEventsAsync(final DescribeEventsRequest describeEventsRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<DescribeEventsResult>() {
            public DescribeEventsResult call() throws Exception {
                return describeEvents(describeEventsRequest);
        }
    });
    }

    

Returns events related to clusters, security groups, snapshots, and parameter groups for the past 14 days. Events specific to a particular cluster, security group, snapshot or parameter group can be obtained by providing the name as a parameter. By default, the past hour of events are returned.

Parameters:
describeEventsRequest Container for the necessary parameters to execute the DescribeEvents operation on AmazonRedshift.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DescribeEvents service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
            final DescribeEventsRequest describeEventsRequest,
            final AsyncHandler<DescribeEventsRequestDescribeEventsResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<DescribeEventsResult>() {
            public DescribeEventsResult call() throws Exception {
              DescribeEventsResult result;
                try {
                result = describeEvents(describeEventsRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(describeEventsRequestresult);
                 return result;
        }
    });
    }
    
    

Adds an inbound (ingress) rule to an Amazon Redshift security group. Depending on whether the application accessing your cluster is running on the Internet or an EC2 instance, you can authorize inbound access to either a Classless Interdomain Routing (CIDR) IP address range or an EC2 security group. You can add as many as 20 ingress rules to an Amazon Redshift security group.

NOTE: The EC2 security group must be defined in the AWS region where the cluster resides.

For an overview of CIDR blocks, see the Wikipedia article on Classless Inter-Domain Routing .

You must also associate the security group with a cluster so that clients running on these IP addresses or the EC2 instance are authorized to connect to the cluster. For information about managing security groups, go to Working with Security Groups in the Amazon Redshift Cluster Management Guide .

Parameters:
authorizeClusterSecurityGroupIngressRequest Container for the necessary parameters to execute the AuthorizeClusterSecurityGroupIngress operation on AmazonRedshift.
Returns:
A Java Future object containing the response from the AuthorizeClusterSecurityGroupIngress service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
    public Future<ClusterSecurityGroupauthorizeClusterSecurityGroupIngressAsync(final AuthorizeClusterSecurityGroupIngressRequest authorizeClusterSecurityGroupIngressRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<ClusterSecurityGroup>() {
            public ClusterSecurityGroup call() throws Exception {
                return authorizeClusterSecurityGroupIngress(authorizeClusterSecurityGroupIngressRequest);
        }
    });
    }

    

Adds an inbound (ingress) rule to an Amazon Redshift security group. Depending on whether the application accessing your cluster is running on the Internet or an EC2 instance, you can authorize inbound access to either a Classless Interdomain Routing (CIDR) IP address range or an EC2 security group. You can add as many as 20 ingress rules to an Amazon Redshift security group.

NOTE: The EC2 security group must be defined in the AWS region where the cluster resides.

For an overview of CIDR blocks, see the Wikipedia article on Classless Inter-Domain Routing .

You must also associate the security group with a cluster so that clients running on these IP addresses or the EC2 instance are authorized to connect to the cluster. For information about managing security groups, go to Working with Security Groups in the Amazon Redshift Cluster Management Guide .

Parameters:
authorizeClusterSecurityGroupIngressRequest Container for the necessary parameters to execute the AuthorizeClusterSecurityGroupIngress operation on AmazonRedshift.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the AuthorizeClusterSecurityGroupIngress service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
            final AuthorizeClusterSecurityGroupIngressRequest authorizeClusterSecurityGroupIngressRequest,
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<ClusterSecurityGroup>() {
            public ClusterSecurityGroup call() throws Exception {
              ClusterSecurityGroup result;
                try {
                result = authorizeClusterSecurityGroupIngress(authorizeClusterSecurityGroupIngressRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(authorizeClusterSecurityGroupIngressRequestresult);
                 return result;
        }
    });
    }
    
    

Rotates the encryption keys for a cluster.

Parameters:
rotateEncryptionKeyRequest Container for the necessary parameters to execute the RotateEncryptionKey operation on AmazonRedshift.
Returns:
A Java Future object containing the response from the RotateEncryptionKey service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
    public Future<ClusterrotateEncryptionKeyAsync(final RotateEncryptionKeyRequest rotateEncryptionKeyRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<Cluster>() {
            public Cluster call() throws Exception {
                return rotateEncryptionKey(rotateEncryptionKeyRequest);
        }
    });
    }

    

Rotates the encryption keys for a cluster.

Parameters:
rotateEncryptionKeyRequest Container for the necessary parameters to execute the RotateEncryptionKey operation on AmazonRedshift.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the RotateEncryptionKey service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
            final RotateEncryptionKeyRequest rotateEncryptionKeyRequest,
            final AsyncHandler<RotateEncryptionKeyRequestClusterasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<Cluster>() {
            public Cluster call() throws Exception {
              Cluster result;
                try {
                result = rotateEncryptionKey(rotateEncryptionKeyRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(rotateEncryptionKeyRequestresult);
                 return result;
        }
    });
    }
    
    

Deletes an Amazon Redshift security group.

NOTE:You cannot delete a security group that is associated with any clusters. You cannot delete the default security group.

For information about managing security groups, go to Amazon Redshift Cluster Security Groups in the Amazon Redshift Cluster Management Guide .

Parameters:
deleteClusterSecurityGroupRequest Container for the necessary parameters to execute the DeleteClusterSecurityGroup operation on AmazonRedshift.
Returns:
A Java Future object containing the response from the DeleteClusterSecurityGroup service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
    public Future<VoiddeleteClusterSecurityGroupAsync(final DeleteClusterSecurityGroupRequest deleteClusterSecurityGroupRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<Void>() {
            public Void call() throws Exception {
                deleteClusterSecurityGroup(deleteClusterSecurityGroupRequest);
                return null;
        }
    });
    }

    

Deletes an Amazon Redshift security group.

NOTE:You cannot delete a security group that is associated with any clusters. You cannot delete the default security group.

For information about managing security groups, go to Amazon Redshift Cluster Security Groups in the Amazon Redshift Cluster Management Guide .

Parameters:
deleteClusterSecurityGroupRequest Container for the necessary parameters to execute the DeleteClusterSecurityGroup operation on AmazonRedshift.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DeleteClusterSecurityGroup service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
            final DeleteClusterSecurityGroupRequest deleteClusterSecurityGroupRequest,
            final AsyncHandler<DeleteClusterSecurityGroupRequestVoidasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<Void>() {
            public Void call() throws Exception {
              try {
                deleteClusterSecurityGroup(deleteClusterSecurityGroupRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(deleteClusterSecurityGroupRequestnull);
                 return null;
        }
    });
    }
    
    

Returns the descriptions of the reserved nodes.

Parameters:
describeReservedNodesRequest Container for the necessary parameters to execute the DescribeReservedNodes operation on AmazonRedshift.
Returns:
A Java Future object containing the response from the DescribeReservedNodes service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
    public Future<DescribeReservedNodesResultdescribeReservedNodesAsync(final DescribeReservedNodesRequest describeReservedNodesRequest
            throws AmazonServiceExceptionAmazonClientException {
            public DescribeReservedNodesResult call() throws Exception {
                return describeReservedNodes(describeReservedNodesRequest);
        }
    });
    }

    

Returns the descriptions of the reserved nodes.

Parameters:
describeReservedNodesRequest Container for the necessary parameters to execute the DescribeReservedNodes operation on AmazonRedshift.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DescribeReservedNodes service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
            final DescribeReservedNodesRequest describeReservedNodesRequest,
            final AsyncHandler<DescribeReservedNodesRequestDescribeReservedNodesResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
            public DescribeReservedNodesResult call() throws Exception {
              DescribeReservedNodesResult result;
                try {
                result = describeReservedNodes(describeReservedNodesRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(describeReservedNodesRequestresult);
                 return result;
        }
    });
    }
    
    

Returns a list of parameter settings for the specified parameter group family.

For more information about managing parameter groups, go to Amazon Redshift Parameter Groups in the Amazon Redshift Cluster Management Guide .

Parameters:
describeDefaultClusterParametersRequest Container for the necessary parameters to execute the DescribeDefaultClusterParameters operation on AmazonRedshift.
Returns:
A Java Future object containing the response from the DescribeDefaultClusterParameters service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<DefaultClusterParameters>() {
            public DefaultClusterParameters call() throws Exception {
                return describeDefaultClusterParameters(describeDefaultClusterParametersRequest);
        }
    });
    }

    

Returns a list of parameter settings for the specified parameter group family.

For more information about managing parameter groups, go to Amazon Redshift Parameter Groups in the Amazon Redshift Cluster Management Guide .

Parameters:
describeDefaultClusterParametersRequest Container for the necessary parameters to execute the DescribeDefaultClusterParameters operation on AmazonRedshift.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DescribeDefaultClusterParameters service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
            final DescribeDefaultClusterParametersRequest describeDefaultClusterParametersRequest,
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<DefaultClusterParameters>() {
            public DefaultClusterParameters call() throws Exception {
              DefaultClusterParameters result;
                try {
                result = describeDefaultClusterParameters(describeDefaultClusterParametersRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(describeDefaultClusterParametersRequestresult);
                 return result;
        }
    });
    }
    
    

Modifies an existing Amazon Redshift event notification subscription.

Parameters:
modifyEventSubscriptionRequest Container for the necessary parameters to execute the ModifyEventSubscription operation on AmazonRedshift.
Returns:
A Java Future object containing the response from the ModifyEventSubscription service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
    public Future<EventSubscriptionmodifyEventSubscriptionAsync(final ModifyEventSubscriptionRequest modifyEventSubscriptionRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<EventSubscription>() {
            public EventSubscription call() throws Exception {
                return modifyEventSubscription(modifyEventSubscriptionRequest);
        }
    });
    }

    

Modifies an existing Amazon Redshift event notification subscription.

Parameters:
modifyEventSubscriptionRequest Container for the necessary parameters to execute the ModifyEventSubscription operation on AmazonRedshift.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the ModifyEventSubscription service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.