com.amazonaws.services.redshift.AmazonRedshiftAsyncClient Maven / Gradle / Ivy
Show all versions of aws-java-sdk-redshift Show documentation
/*
* Copyright 2019-2024 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;
import static java.util.concurrent.Executors.newFixedThreadPool;
import javax.annotation.Generated;
import com.amazonaws.services.redshift.model.*;
import com.amazonaws.client.AwsAsyncClientParams;
import com.amazonaws.annotation.ThreadSafe;
import com.amazonaws.ClientConfiguration;
import com.amazonaws.auth.AWSCredentials;
import com.amazonaws.auth.AWSCredentialsProvider;
import java.util.concurrent.ExecutorService;
import com.amazonaws.auth.DefaultAWSCredentialsProviderChain;
/**
* Client for accessing Amazon Redshift asynchronously. Each asynchronous method will return a Java Future object
* representing the asynchronous operation; overloads which accept an {@code AsyncHandler} can be used to receive
* notification when an asynchronous operation completes.
*
* 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 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.
*
*/
@ThreadSafe
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class AmazonRedshiftAsyncClient extends AmazonRedshiftClient implements AmazonRedshiftAsync {
private static final int DEFAULT_THREAD_POOL_SIZE = 50;
private final java.util.concurrent.ExecutorService executorService;
/**
* Constructs a new asynchronous client to invoke service methods on Amazon Redshift. 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
* - Credential profiles file at the default location (~/.aws/credentials) shared by all AWS SDKs and the AWS CLI
* - Instance profile credentials delivered through the Amazon EC2 metadata service
*
*
* Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default
* maximum number of concurrent connections to the service).
*
* @see com.amazonaws.auth.DefaultAWSCredentialsProviderChain
* @see java.util.concurrent.Executors#newFixedThreadPool(int)
* @deprecated use {@link AmazonRedshiftAsyncClientBuilder#defaultClient()}
*/
@Deprecated
public AmazonRedshiftAsyncClient() {
this(DefaultAWSCredentialsProviderChain.getInstance());
}
/**
* Constructs a new asynchronous client to invoke service methods on Amazon Redshift. 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
* - Credential profiles file at the default location (~/.aws/credentials) shared by all AWS SDKs and the AWS CLI
* - Instance profile credentials delivered through the Amazon EC2 metadata service
*
*
* Asynchronous methods are delegated to a fixed-size thread pool containing a number of threads equal to the
* maximum number of concurrent connections configured via {@code ClientConfiguration.getMaxConnections()}.
*
* @param clientConfiguration
* The client configuration options controlling how this client connects to Amazon Redshift (ex: proxy
* settings, retry counts, etc).
*
* @see com.amazonaws.auth.DefaultAWSCredentialsProviderChain
* @see java.util.concurrent.Executors#newFixedThreadPool(int)
* @deprecated use {@link AmazonRedshiftAsyncClientBuilder#withClientConfiguration(ClientConfiguration)}
*/
@Deprecated
public AmazonRedshiftAsyncClient(ClientConfiguration clientConfiguration) {
this(DefaultAWSCredentialsProviderChain.getInstance(), clientConfiguration, newFixedThreadPool(clientConfiguration.getMaxConnections()));
}
/**
* Constructs a new asynchronous client to invoke service methods on Amazon Redshift using the specified AWS account
* credentials.
*
* Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default
* maximum number of concurrent connections to the service).
*
* @param awsCredentials
* The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
* @see java.util.concurrent.Executors#newFixedThreadPool(int)
* @deprecated use {@link AmazonRedshiftAsyncClientBuilder#withCredentials(AWSCredentialsProvider)}
*/
@Deprecated
public AmazonRedshiftAsyncClient(AWSCredentials awsCredentials) {
this(awsCredentials, newFixedThreadPool(DEFAULT_THREAD_POOL_SIZE));
}
/**
* Constructs a new asynchronous client to invoke service methods on Amazon Redshift using the specified AWS account
* credentials and executor service. Default client settings will be used.
*
* @param awsCredentials
* The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
* @param executorService
* The executor service by which all asynchronous requests will be executed.
* @deprecated use {@link AmazonRedshiftAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and
* {@link AmazonRedshiftAsyncClientBuilder#withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)}
*/
@Deprecated
public AmazonRedshiftAsyncClient(AWSCredentials awsCredentials, ExecutorService executorService) {
this(awsCredentials, configFactory.getConfig(), executorService);
}
/**
* Constructs a new asynchronous client to invoke service methods on Amazon Redshift using the specified AWS account
* credentials, executor service, and client configuration options.
*
* @param awsCredentials
* The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
* @param clientConfiguration
* Client configuration options (ex: max retry limit, proxy settings, etc).
* @param executorService
* The executor service by which all asynchronous requests will be executed.
* @deprecated use {@link AmazonRedshiftAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and
* {@link AmazonRedshiftAsyncClientBuilder#withClientConfiguration(ClientConfiguration)} and
* {@link AmazonRedshiftAsyncClientBuilder#withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)}
*/
@Deprecated
public AmazonRedshiftAsyncClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration, ExecutorService executorService) {
super(awsCredentials, clientConfiguration);
this.executorService = executorService;
}
/**
* Constructs a new asynchronous client to invoke service methods on Amazon Redshift using the specified AWS account
* credentials provider. Default client settings will be used.
*
* Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default
* maximum number of concurrent connections to the service).
*
* @param awsCredentialsProvider
* The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
* @see java.util.concurrent.Executors#newFixedThreadPool(int)
* @deprecated use {@link AmazonRedshiftAsyncClientBuilder#withCredentials(AWSCredentialsProvider)}
*/
@Deprecated
public AmazonRedshiftAsyncClient(AWSCredentialsProvider awsCredentialsProvider) {
this(awsCredentialsProvider, newFixedThreadPool(DEFAULT_THREAD_POOL_SIZE));
}
/**
* Constructs a new asynchronous client to invoke service methods on Amazon Redshift using the provided AWS account
* credentials provider and client configuration options.
*
* Asynchronous methods are delegated to a fixed-size thread pool containing a number of threads equal to the
* maximum number of concurrent connections configured via {@code ClientConfiguration.getMaxConnections()}.
*
* @param awsCredentialsProvider
* The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
* @param clientConfiguration
* Client configuration options (ex: max retry limit, proxy settings, etc).
*
* @see com.amazonaws.auth.DefaultAWSCredentialsProviderChain
* @see java.util.concurrent.Executors#newFixedThreadPool(int)
* @deprecated use {@link AmazonRedshiftAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and
* {@link AmazonRedshiftAsyncClientBuilder#withClientConfiguration(ClientConfiguration)}
*/
@Deprecated
public AmazonRedshiftAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration) {
this(awsCredentialsProvider, clientConfiguration, newFixedThreadPool(clientConfiguration.getMaxConnections()));
}
/**
* Constructs a new asynchronous client to invoke service methods on Amazon Redshift using the specified AWS account
* credentials provider and executor service. Default client settings will be used.
*
* @param awsCredentialsProvider
* The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
* @param executorService
* The executor service by which all asynchronous requests will be executed.
* @deprecated use {@link AmazonRedshiftAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and
* {@link AmazonRedshiftAsyncClientBuilder#withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)}
*/
@Deprecated
public AmazonRedshiftAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ExecutorService executorService) {
this(awsCredentialsProvider, configFactory.getConfig(), executorService);
}
/**
* Constructs a new asynchronous client to invoke service methods on Amazon Redshift using the specified AWS account
* credentials provider, executor service, and client configuration options.
*
* @param awsCredentialsProvider
* The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
* @param clientConfiguration
* Client configuration options (ex: max retry limit, proxy settings, etc).
* @param executorService
* The executor service by which all asynchronous requests will be executed.
* @deprecated use {@link AmazonRedshiftAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and
* {@link AmazonRedshiftAsyncClientBuilder#withClientConfiguration(ClientConfiguration)} and
* {@link AmazonRedshiftAsyncClientBuilder#withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)}
*/
@Deprecated
public AmazonRedshiftAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, ExecutorService executorService) {
super(awsCredentialsProvider, clientConfiguration);
this.executorService = executorService;
}
public static AmazonRedshiftAsyncClientBuilder asyncBuilder() {
return AmazonRedshiftAsyncClientBuilder.standard();
}
/**
* Constructs a new asynchronous client to invoke service methods on Amazon Redshift using the specified parameters.
*
* @param asyncClientParams
* Object providing client parameters.
*/
AmazonRedshiftAsyncClient(AwsAsyncClientParams asyncClientParams) {
this(asyncClientParams, false);
}
/**
* Constructs a new asynchronous client to invoke service methods on Amazon Redshift using the specified parameters.
*
* @param asyncClientParams
* Object providing client parameters.
* @param endpointDiscoveryEnabled
* true will enable endpoint discovery if the service supports it.
*/
AmazonRedshiftAsyncClient(AwsAsyncClientParams asyncClientParams, boolean endpointDiscoveryEnabled) {
super(asyncClientParams, endpointDiscoveryEnabled);
this.executorService = asyncClientParams.getExecutor();
}
/**
* Returns the executor service used by this client to execute async requests.
*
* @return The executor service used by this client to execute async requests.
*/
public ExecutorService getExecutorService() {
return executorService;
}
@Override
public java.util.concurrent.Future acceptReservedNodeExchangeAsync(AcceptReservedNodeExchangeRequest request) {
return acceptReservedNodeExchangeAsync(request, null);
}
@Override
public java.util.concurrent.Future acceptReservedNodeExchangeAsync(final AcceptReservedNodeExchangeRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final AcceptReservedNodeExchangeRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ReservedNode call() throws Exception {
ReservedNode result = null;
try {
result = executeAcceptReservedNodeExchange(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future addPartnerAsync(AddPartnerRequest request) {
return addPartnerAsync(request, null);
}
@Override
public java.util.concurrent.Future addPartnerAsync(final AddPartnerRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final AddPartnerRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public AddPartnerResult call() throws Exception {
AddPartnerResult result = null;
try {
result = executeAddPartner(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future associateDataShareConsumerAsync(AssociateDataShareConsumerRequest request) {
return associateDataShareConsumerAsync(request, null);
}
@Override
public java.util.concurrent.Future associateDataShareConsumerAsync(final AssociateDataShareConsumerRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final AssociateDataShareConsumerRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public AssociateDataShareConsumerResult call() throws Exception {
AssociateDataShareConsumerResult result = null;
try {
result = executeAssociateDataShareConsumer(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future authorizeClusterSecurityGroupIngressAsync(AuthorizeClusterSecurityGroupIngressRequest request) {
return authorizeClusterSecurityGroupIngressAsync(request, null);
}
@Override
public java.util.concurrent.Future authorizeClusterSecurityGroupIngressAsync(
final AuthorizeClusterSecurityGroupIngressRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final AuthorizeClusterSecurityGroupIngressRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ClusterSecurityGroup call() throws Exception {
ClusterSecurityGroup result = null;
try {
result = executeAuthorizeClusterSecurityGroupIngress(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future authorizeDataShareAsync(AuthorizeDataShareRequest request) {
return authorizeDataShareAsync(request, null);
}
@Override
public java.util.concurrent.Future authorizeDataShareAsync(final AuthorizeDataShareRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final AuthorizeDataShareRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public AuthorizeDataShareResult call() throws Exception {
AuthorizeDataShareResult result = null;
try {
result = executeAuthorizeDataShare(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future authorizeEndpointAccessAsync(AuthorizeEndpointAccessRequest request) {
return authorizeEndpointAccessAsync(request, null);
}
@Override
public java.util.concurrent.Future authorizeEndpointAccessAsync(final AuthorizeEndpointAccessRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final AuthorizeEndpointAccessRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public AuthorizeEndpointAccessResult call() throws Exception {
AuthorizeEndpointAccessResult result = null;
try {
result = executeAuthorizeEndpointAccess(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future authorizeSnapshotAccessAsync(AuthorizeSnapshotAccessRequest request) {
return authorizeSnapshotAccessAsync(request, null);
}
@Override
public java.util.concurrent.Future authorizeSnapshotAccessAsync(final AuthorizeSnapshotAccessRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final AuthorizeSnapshotAccessRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public Snapshot call() throws Exception {
Snapshot result = null;
try {
result = executeAuthorizeSnapshotAccess(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future batchDeleteClusterSnapshotsAsync(BatchDeleteClusterSnapshotsRequest request) {
return batchDeleteClusterSnapshotsAsync(request, null);
}
@Override
public java.util.concurrent.Future batchDeleteClusterSnapshotsAsync(final BatchDeleteClusterSnapshotsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final BatchDeleteClusterSnapshotsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public BatchDeleteClusterSnapshotsResult call() throws Exception {
BatchDeleteClusterSnapshotsResult result = null;
try {
result = executeBatchDeleteClusterSnapshots(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future batchModifyClusterSnapshotsAsync(BatchModifyClusterSnapshotsRequest request) {
return batchModifyClusterSnapshotsAsync(request, null);
}
@Override
public java.util.concurrent.Future batchModifyClusterSnapshotsAsync(final BatchModifyClusterSnapshotsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final BatchModifyClusterSnapshotsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public BatchModifyClusterSnapshotsResult call() throws Exception {
BatchModifyClusterSnapshotsResult result = null;
try {
result = executeBatchModifyClusterSnapshots(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future cancelResizeAsync(CancelResizeRequest request) {
return cancelResizeAsync(request, null);
}
@Override
public java.util.concurrent.Future cancelResizeAsync(final CancelResizeRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CancelResizeRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CancelResizeResult call() throws Exception {
CancelResizeResult result = null;
try {
result = executeCancelResize(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future copyClusterSnapshotAsync(CopyClusterSnapshotRequest request) {
return copyClusterSnapshotAsync(request, null);
}
@Override
public java.util.concurrent.Future copyClusterSnapshotAsync(final CopyClusterSnapshotRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CopyClusterSnapshotRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public Snapshot call() throws Exception {
Snapshot result = null;
try {
result = executeCopyClusterSnapshot(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createAuthenticationProfileAsync(CreateAuthenticationProfileRequest request) {
return createAuthenticationProfileAsync(request, null);
}
@Override
public java.util.concurrent.Future createAuthenticationProfileAsync(final CreateAuthenticationProfileRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateAuthenticationProfileRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateAuthenticationProfileResult call() throws Exception {
CreateAuthenticationProfileResult result = null;
try {
result = executeCreateAuthenticationProfile(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createClusterAsync(CreateClusterRequest request) {
return createClusterAsync(request, null);
}
@Override
public java.util.concurrent.Future createClusterAsync(final CreateClusterRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateClusterRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public Cluster call() throws Exception {
Cluster result = null;
try {
result = executeCreateCluster(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createClusterParameterGroupAsync(CreateClusterParameterGroupRequest request) {
return createClusterParameterGroupAsync(request, null);
}
@Override
public java.util.concurrent.Future createClusterParameterGroupAsync(final CreateClusterParameterGroupRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateClusterParameterGroupRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ClusterParameterGroup call() throws Exception {
ClusterParameterGroup result = null;
try {
result = executeCreateClusterParameterGroup(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createClusterSecurityGroupAsync(CreateClusterSecurityGroupRequest request) {
return createClusterSecurityGroupAsync(request, null);
}
@Override
public java.util.concurrent.Future createClusterSecurityGroupAsync(final CreateClusterSecurityGroupRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateClusterSecurityGroupRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ClusterSecurityGroup call() throws Exception {
ClusterSecurityGroup result = null;
try {
result = executeCreateClusterSecurityGroup(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createClusterSnapshotAsync(CreateClusterSnapshotRequest request) {
return createClusterSnapshotAsync(request, null);
}
@Override
public java.util.concurrent.Future createClusterSnapshotAsync(final CreateClusterSnapshotRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateClusterSnapshotRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public Snapshot call() throws Exception {
Snapshot result = null;
try {
result = executeCreateClusterSnapshot(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createClusterSubnetGroupAsync(CreateClusterSubnetGroupRequest request) {
return createClusterSubnetGroupAsync(request, null);
}
@Override
public java.util.concurrent.Future createClusterSubnetGroupAsync(final CreateClusterSubnetGroupRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateClusterSubnetGroupRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ClusterSubnetGroup call() throws Exception {
ClusterSubnetGroup result = null;
try {
result = executeCreateClusterSubnetGroup(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createCustomDomainAssociationAsync(CreateCustomDomainAssociationRequest request) {
return createCustomDomainAssociationAsync(request, null);
}
@Override
public java.util.concurrent.Future createCustomDomainAssociationAsync(
final CreateCustomDomainAssociationRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateCustomDomainAssociationRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateCustomDomainAssociationResult call() throws Exception {
CreateCustomDomainAssociationResult result = null;
try {
result = executeCreateCustomDomainAssociation(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createEndpointAccessAsync(CreateEndpointAccessRequest request) {
return createEndpointAccessAsync(request, null);
}
@Override
public java.util.concurrent.Future createEndpointAccessAsync(final CreateEndpointAccessRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateEndpointAccessRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateEndpointAccessResult call() throws Exception {
CreateEndpointAccessResult result = null;
try {
result = executeCreateEndpointAccess(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createEventSubscriptionAsync(CreateEventSubscriptionRequest request) {
return createEventSubscriptionAsync(request, null);
}
@Override
public java.util.concurrent.Future createEventSubscriptionAsync(final CreateEventSubscriptionRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateEventSubscriptionRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public EventSubscription call() throws Exception {
EventSubscription result = null;
try {
result = executeCreateEventSubscription(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createHsmClientCertificateAsync(CreateHsmClientCertificateRequest request) {
return createHsmClientCertificateAsync(request, null);
}
@Override
public java.util.concurrent.Future createHsmClientCertificateAsync(final CreateHsmClientCertificateRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateHsmClientCertificateRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public HsmClientCertificate call() throws Exception {
HsmClientCertificate result = null;
try {
result = executeCreateHsmClientCertificate(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createHsmConfigurationAsync(CreateHsmConfigurationRequest request) {
return createHsmConfigurationAsync(request, null);
}
@Override
public java.util.concurrent.Future createHsmConfigurationAsync(final CreateHsmConfigurationRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateHsmConfigurationRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public HsmConfiguration call() throws Exception {
HsmConfiguration result = null;
try {
result = executeCreateHsmConfiguration(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createRedshiftIdcApplicationAsync(CreateRedshiftIdcApplicationRequest request) {
return createRedshiftIdcApplicationAsync(request, null);
}
@Override
public java.util.concurrent.Future createRedshiftIdcApplicationAsync(final CreateRedshiftIdcApplicationRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateRedshiftIdcApplicationRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public RedshiftIdcApplication call() throws Exception {
RedshiftIdcApplication result = null;
try {
result = executeCreateRedshiftIdcApplication(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createScheduledActionAsync(CreateScheduledActionRequest request) {
return createScheduledActionAsync(request, null);
}
@Override
public java.util.concurrent.Future createScheduledActionAsync(final CreateScheduledActionRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateScheduledActionRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateScheduledActionResult call() throws Exception {
CreateScheduledActionResult result = null;
try {
result = executeCreateScheduledAction(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createSnapshotCopyGrantAsync(CreateSnapshotCopyGrantRequest request) {
return createSnapshotCopyGrantAsync(request, null);
}
@Override
public java.util.concurrent.Future createSnapshotCopyGrantAsync(final CreateSnapshotCopyGrantRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateSnapshotCopyGrantRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public SnapshotCopyGrant call() throws Exception {
SnapshotCopyGrant result = null;
try {
result = executeCreateSnapshotCopyGrant(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createSnapshotScheduleAsync(CreateSnapshotScheduleRequest request) {
return createSnapshotScheduleAsync(request, null);
}
@Override
public java.util.concurrent.Future createSnapshotScheduleAsync(final CreateSnapshotScheduleRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateSnapshotScheduleRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateSnapshotScheduleResult call() throws Exception {
CreateSnapshotScheduleResult result = null;
try {
result = executeCreateSnapshotSchedule(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createTagsAsync(CreateTagsRequest request) {
return createTagsAsync(request, null);
}
@Override
public java.util.concurrent.Future createTagsAsync(final CreateTagsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateTagsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateTagsResult call() throws Exception {
CreateTagsResult result = null;
try {
result = executeCreateTags(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createUsageLimitAsync(CreateUsageLimitRequest request) {
return createUsageLimitAsync(request, null);
}
@Override
public java.util.concurrent.Future createUsageLimitAsync(final CreateUsageLimitRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateUsageLimitRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateUsageLimitResult call() throws Exception {
CreateUsageLimitResult result = null;
try {
result = executeCreateUsageLimit(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deauthorizeDataShareAsync(DeauthorizeDataShareRequest request) {
return deauthorizeDataShareAsync(request, null);
}
@Override
public java.util.concurrent.Future deauthorizeDataShareAsync(final DeauthorizeDataShareRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeauthorizeDataShareRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeauthorizeDataShareResult call() throws Exception {
DeauthorizeDataShareResult result = null;
try {
result = executeDeauthorizeDataShare(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteAuthenticationProfileAsync(DeleteAuthenticationProfileRequest request) {
return deleteAuthenticationProfileAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteAuthenticationProfileAsync(final DeleteAuthenticationProfileRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteAuthenticationProfileRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteAuthenticationProfileResult call() throws Exception {
DeleteAuthenticationProfileResult result = null;
try {
result = executeDeleteAuthenticationProfile(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteClusterAsync(DeleteClusterRequest request) {
return deleteClusterAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteClusterAsync(final DeleteClusterRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteClusterRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public Cluster call() throws Exception {
Cluster result = null;
try {
result = executeDeleteCluster(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteClusterParameterGroupAsync(DeleteClusterParameterGroupRequest request) {
return deleteClusterParameterGroupAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteClusterParameterGroupAsync(final DeleteClusterParameterGroupRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteClusterParameterGroupRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteClusterParameterGroupResult call() throws Exception {
DeleteClusterParameterGroupResult result = null;
try {
result = executeDeleteClusterParameterGroup(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteClusterSecurityGroupAsync(DeleteClusterSecurityGroupRequest request) {
return deleteClusterSecurityGroupAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteClusterSecurityGroupAsync(final DeleteClusterSecurityGroupRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteClusterSecurityGroupRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteClusterSecurityGroupResult call() throws Exception {
DeleteClusterSecurityGroupResult result = null;
try {
result = executeDeleteClusterSecurityGroup(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteClusterSnapshotAsync(DeleteClusterSnapshotRequest request) {
return deleteClusterSnapshotAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteClusterSnapshotAsync(final DeleteClusterSnapshotRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteClusterSnapshotRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public Snapshot call() throws Exception {
Snapshot result = null;
try {
result = executeDeleteClusterSnapshot(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteClusterSubnetGroupAsync(DeleteClusterSubnetGroupRequest request) {
return deleteClusterSubnetGroupAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteClusterSubnetGroupAsync(final DeleteClusterSubnetGroupRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteClusterSubnetGroupRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteClusterSubnetGroupResult call() throws Exception {
DeleteClusterSubnetGroupResult result = null;
try {
result = executeDeleteClusterSubnetGroup(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteCustomDomainAssociationAsync(DeleteCustomDomainAssociationRequest request) {
return deleteCustomDomainAssociationAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteCustomDomainAssociationAsync(
final DeleteCustomDomainAssociationRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteCustomDomainAssociationRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteCustomDomainAssociationResult call() throws Exception {
DeleteCustomDomainAssociationResult result = null;
try {
result = executeDeleteCustomDomainAssociation(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteEndpointAccessAsync(DeleteEndpointAccessRequest request) {
return deleteEndpointAccessAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteEndpointAccessAsync(final DeleteEndpointAccessRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteEndpointAccessRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteEndpointAccessResult call() throws Exception {
DeleteEndpointAccessResult result = null;
try {
result = executeDeleteEndpointAccess(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteEventSubscriptionAsync(DeleteEventSubscriptionRequest request) {
return deleteEventSubscriptionAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteEventSubscriptionAsync(final DeleteEventSubscriptionRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteEventSubscriptionRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteEventSubscriptionResult call() throws Exception {
DeleteEventSubscriptionResult result = null;
try {
result = executeDeleteEventSubscription(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteHsmClientCertificateAsync(DeleteHsmClientCertificateRequest request) {
return deleteHsmClientCertificateAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteHsmClientCertificateAsync(final DeleteHsmClientCertificateRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteHsmClientCertificateRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteHsmClientCertificateResult call() throws Exception {
DeleteHsmClientCertificateResult result = null;
try {
result = executeDeleteHsmClientCertificate(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteHsmConfigurationAsync(DeleteHsmConfigurationRequest request) {
return deleteHsmConfigurationAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteHsmConfigurationAsync(final DeleteHsmConfigurationRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteHsmConfigurationRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteHsmConfigurationResult call() throws Exception {
DeleteHsmConfigurationResult result = null;
try {
result = executeDeleteHsmConfiguration(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deletePartnerAsync(DeletePartnerRequest request) {
return deletePartnerAsync(request, null);
}
@Override
public java.util.concurrent.Future deletePartnerAsync(final DeletePartnerRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeletePartnerRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeletePartnerResult call() throws Exception {
DeletePartnerResult result = null;
try {
result = executeDeletePartner(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteRedshiftIdcApplicationAsync(DeleteRedshiftIdcApplicationRequest request) {
return deleteRedshiftIdcApplicationAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteRedshiftIdcApplicationAsync(final DeleteRedshiftIdcApplicationRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteRedshiftIdcApplicationRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteRedshiftIdcApplicationResult call() throws Exception {
DeleteRedshiftIdcApplicationResult result = null;
try {
result = executeDeleteRedshiftIdcApplication(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteResourcePolicyAsync(DeleteResourcePolicyRequest request) {
return deleteResourcePolicyAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteResourcePolicyAsync(final DeleteResourcePolicyRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteResourcePolicyRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteResourcePolicyResult call() throws Exception {
DeleteResourcePolicyResult result = null;
try {
result = executeDeleteResourcePolicy(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteScheduledActionAsync(DeleteScheduledActionRequest request) {
return deleteScheduledActionAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteScheduledActionAsync(final DeleteScheduledActionRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteScheduledActionRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteScheduledActionResult call() throws Exception {
DeleteScheduledActionResult result = null;
try {
result = executeDeleteScheduledAction(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteSnapshotCopyGrantAsync(DeleteSnapshotCopyGrantRequest request) {
return deleteSnapshotCopyGrantAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteSnapshotCopyGrantAsync(final DeleteSnapshotCopyGrantRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteSnapshotCopyGrantRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteSnapshotCopyGrantResult call() throws Exception {
DeleteSnapshotCopyGrantResult result = null;
try {
result = executeDeleteSnapshotCopyGrant(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteSnapshotScheduleAsync(DeleteSnapshotScheduleRequest request) {
return deleteSnapshotScheduleAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteSnapshotScheduleAsync(final DeleteSnapshotScheduleRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteSnapshotScheduleRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteSnapshotScheduleResult call() throws Exception {
DeleteSnapshotScheduleResult result = null;
try {
result = executeDeleteSnapshotSchedule(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteTagsAsync(DeleteTagsRequest request) {
return deleteTagsAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteTagsAsync(final DeleteTagsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteTagsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteTagsResult call() throws Exception {
DeleteTagsResult result = null;
try {
result = executeDeleteTags(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteUsageLimitAsync(DeleteUsageLimitRequest request) {
return deleteUsageLimitAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteUsageLimitAsync(final DeleteUsageLimitRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteUsageLimitRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteUsageLimitResult call() throws Exception {
DeleteUsageLimitResult result = null;
try {
result = executeDeleteUsageLimit(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeAccountAttributesAsync(DescribeAccountAttributesRequest request) {
return describeAccountAttributesAsync(request, null);
}
@Override
public java.util.concurrent.Future describeAccountAttributesAsync(final DescribeAccountAttributesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeAccountAttributesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeAccountAttributesResult call() throws Exception {
DescribeAccountAttributesResult result = null;
try {
result = executeDescribeAccountAttributes(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeAuthenticationProfilesAsync(DescribeAuthenticationProfilesRequest request) {
return describeAuthenticationProfilesAsync(request, null);
}
@Override
public java.util.concurrent.Future describeAuthenticationProfilesAsync(
final DescribeAuthenticationProfilesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeAuthenticationProfilesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeAuthenticationProfilesResult call() throws Exception {
DescribeAuthenticationProfilesResult result = null;
try {
result = executeDescribeAuthenticationProfiles(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeClusterDbRevisionsAsync(DescribeClusterDbRevisionsRequest request) {
return describeClusterDbRevisionsAsync(request, null);
}
@Override
public java.util.concurrent.Future describeClusterDbRevisionsAsync(final DescribeClusterDbRevisionsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeClusterDbRevisionsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeClusterDbRevisionsResult call() throws Exception {
DescribeClusterDbRevisionsResult result = null;
try {
result = executeDescribeClusterDbRevisions(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeClusterParameterGroupsAsync(DescribeClusterParameterGroupsRequest request) {
return describeClusterParameterGroupsAsync(request, null);
}
@Override
public java.util.concurrent.Future describeClusterParameterGroupsAsync(
final DescribeClusterParameterGroupsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeClusterParameterGroupsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeClusterParameterGroupsResult call() throws Exception {
DescribeClusterParameterGroupsResult result = null;
try {
result = executeDescribeClusterParameterGroups(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
/**
* Simplified method form for invoking the DescribeClusterParameterGroups operation.
*
* @see #describeClusterParameterGroupsAsync(DescribeClusterParameterGroupsRequest)
*/
@Override
public java.util.concurrent.Future describeClusterParameterGroupsAsync() {
return describeClusterParameterGroupsAsync(new DescribeClusterParameterGroupsRequest());
}
/**
* Simplified method form for invoking the DescribeClusterParameterGroups operation with an AsyncHandler.
*
* @see #describeClusterParameterGroupsAsync(DescribeClusterParameterGroupsRequest,
* com.amazonaws.handlers.AsyncHandler)
*/
@Override
public java.util.concurrent.Future describeClusterParameterGroupsAsync(
com.amazonaws.handlers.AsyncHandler asyncHandler) {
return describeClusterParameterGroupsAsync(new DescribeClusterParameterGroupsRequest(), asyncHandler);
}
@Override
public java.util.concurrent.Future describeClusterParametersAsync(DescribeClusterParametersRequest request) {
return describeClusterParametersAsync(request, null);
}
@Override
public java.util.concurrent.Future describeClusterParametersAsync(final DescribeClusterParametersRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeClusterParametersRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeClusterParametersResult call() throws Exception {
DescribeClusterParametersResult result = null;
try {
result = executeDescribeClusterParameters(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeClusterSecurityGroupsAsync(DescribeClusterSecurityGroupsRequest request) {
return describeClusterSecurityGroupsAsync(request, null);
}
@Override
public java.util.concurrent.Future describeClusterSecurityGroupsAsync(
final DescribeClusterSecurityGroupsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeClusterSecurityGroupsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeClusterSecurityGroupsResult call() throws Exception {
DescribeClusterSecurityGroupsResult result = null;
try {
result = executeDescribeClusterSecurityGroups(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
/**
* Simplified method form for invoking the DescribeClusterSecurityGroups operation.
*
* @see #describeClusterSecurityGroupsAsync(DescribeClusterSecurityGroupsRequest)
*/
@Override
public java.util.concurrent.Future describeClusterSecurityGroupsAsync() {
return describeClusterSecurityGroupsAsync(new DescribeClusterSecurityGroupsRequest());
}
/**
* Simplified method form for invoking the DescribeClusterSecurityGroups operation with an AsyncHandler.
*
* @see #describeClusterSecurityGroupsAsync(DescribeClusterSecurityGroupsRequest,
* com.amazonaws.handlers.AsyncHandler)
*/
@Override
public java.util.concurrent.Future describeClusterSecurityGroupsAsync(
com.amazonaws.handlers.AsyncHandler asyncHandler) {
return describeClusterSecurityGroupsAsync(new DescribeClusterSecurityGroupsRequest(), asyncHandler);
}
@Override
public java.util.concurrent.Future describeClusterSnapshotsAsync(DescribeClusterSnapshotsRequest request) {
return describeClusterSnapshotsAsync(request, null);
}
@Override
public java.util.concurrent.Future describeClusterSnapshotsAsync(final DescribeClusterSnapshotsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeClusterSnapshotsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeClusterSnapshotsResult call() throws Exception {
DescribeClusterSnapshotsResult result = null;
try {
result = executeDescribeClusterSnapshots(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
/**
* Simplified method form for invoking the DescribeClusterSnapshots operation.
*
* @see #describeClusterSnapshotsAsync(DescribeClusterSnapshotsRequest)
*/
@Override
public java.util.concurrent.Future describeClusterSnapshotsAsync() {
return describeClusterSnapshotsAsync(new DescribeClusterSnapshotsRequest());
}
/**
* Simplified method form for invoking the DescribeClusterSnapshots operation with an AsyncHandler.
*
* @see #describeClusterSnapshotsAsync(DescribeClusterSnapshotsRequest, com.amazonaws.handlers.AsyncHandler)
*/
@Override
public java.util.concurrent.Future describeClusterSnapshotsAsync(
com.amazonaws.handlers.AsyncHandler asyncHandler) {
return describeClusterSnapshotsAsync(new DescribeClusterSnapshotsRequest(), asyncHandler);
}
@Override
public java.util.concurrent.Future describeClusterSubnetGroupsAsync(DescribeClusterSubnetGroupsRequest request) {
return describeClusterSubnetGroupsAsync(request, null);
}
@Override
public java.util.concurrent.Future describeClusterSubnetGroupsAsync(final DescribeClusterSubnetGroupsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeClusterSubnetGroupsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeClusterSubnetGroupsResult call() throws Exception {
DescribeClusterSubnetGroupsResult result = null;
try {
result = executeDescribeClusterSubnetGroups(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
/**
* Simplified method form for invoking the DescribeClusterSubnetGroups operation.
*
* @see #describeClusterSubnetGroupsAsync(DescribeClusterSubnetGroupsRequest)
*/
@Override
public java.util.concurrent.Future describeClusterSubnetGroupsAsync() {
return describeClusterSubnetGroupsAsync(new DescribeClusterSubnetGroupsRequest());
}
/**
* Simplified method form for invoking the DescribeClusterSubnetGroups operation with an AsyncHandler.
*
* @see #describeClusterSubnetGroupsAsync(DescribeClusterSubnetGroupsRequest, com.amazonaws.handlers.AsyncHandler)
*/
@Override
public java.util.concurrent.Future describeClusterSubnetGroupsAsync(
com.amazonaws.handlers.AsyncHandler asyncHandler) {
return describeClusterSubnetGroupsAsync(new DescribeClusterSubnetGroupsRequest(), asyncHandler);
}
@Override
public java.util.concurrent.Future describeClusterTracksAsync(DescribeClusterTracksRequest request) {
return describeClusterTracksAsync(request, null);
}
@Override
public java.util.concurrent.Future describeClusterTracksAsync(final DescribeClusterTracksRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeClusterTracksRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeClusterTracksResult call() throws Exception {
DescribeClusterTracksResult result = null;
try {
result = executeDescribeClusterTracks(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeClusterVersionsAsync(DescribeClusterVersionsRequest request) {
return describeClusterVersionsAsync(request, null);
}
@Override
public java.util.concurrent.Future describeClusterVersionsAsync(final DescribeClusterVersionsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeClusterVersionsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeClusterVersionsResult call() throws Exception {
DescribeClusterVersionsResult result = null;
try {
result = executeDescribeClusterVersions(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
/**
* Simplified method form for invoking the DescribeClusterVersions operation.
*
* @see #describeClusterVersionsAsync(DescribeClusterVersionsRequest)
*/
@Override
public java.util.concurrent.Future describeClusterVersionsAsync() {
return describeClusterVersionsAsync(new DescribeClusterVersionsRequest());
}
/**
* Simplified method form for invoking the DescribeClusterVersions operation with an AsyncHandler.
*
* @see #describeClusterVersionsAsync(DescribeClusterVersionsRequest, com.amazonaws.handlers.AsyncHandler)
*/
@Override
public java.util.concurrent.Future describeClusterVersionsAsync(
com.amazonaws.handlers.AsyncHandler asyncHandler) {
return describeClusterVersionsAsync(new DescribeClusterVersionsRequest(), asyncHandler);
}
@Override
public java.util.concurrent.Future describeClustersAsync(DescribeClustersRequest request) {
return describeClustersAsync(request, null);
}
@Override
public java.util.concurrent.Future describeClustersAsync(final DescribeClustersRequest request,
final com.amazonaws.handlers.AsyncHandler