com.amazonaws.services.waf.AWSWAFAsyncClient Maven / Gradle / Ivy
Show all versions of aws-java-sdk-waf 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.waf;
import static java.util.concurrent.Executors.newFixedThreadPool;
import javax.annotation.Generated;
import com.amazonaws.services.waf.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 WAF 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.
*
*
*
* This is AWS WAF Classic documentation. For more information, see AWS WAF Classic in the
* developer guide.
*
*
* For the latest version of AWS WAF, use the AWS WAFV2 API and see the AWS WAF Developer Guide. With the
* latest version, AWS WAF has a single set of endpoints for regional and global use.
*
*
*
* This is the AWS WAF Classic API Reference for using AWS WAF Classic with Amazon CloudFront. The AWS WAF
* Classic actions and data types listed in the reference are available for protecting Amazon CloudFront distributions.
* You can use these actions and data types via the endpoint waf.amazonaws.com. This guide is for developers who
* need detailed information about the AWS WAF Classic API actions, data types, and errors. For detailed information
* about AWS WAF Classic features and an overview of how to use the AWS WAF Classic API, see the AWS WAF Classic in the
* developer guide.
*
*/
@ThreadSafe
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class AWSWAFAsyncClient extends AWSWAFClient implements AWSWAFAsync {
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 WAF. 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 AWSWAFAsyncClientBuilder#defaultClient()}
*/
@Deprecated
public AWSWAFAsyncClient() {
this(DefaultAWSCredentialsProviderChain.getInstance());
}
/**
* Constructs a new asynchronous client to invoke service methods on WAF. 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 WAF (ex: proxy settings, retry
* counts, etc).
*
* @see com.amazonaws.auth.DefaultAWSCredentialsProviderChain
* @see java.util.concurrent.Executors#newFixedThreadPool(int)
* @deprecated use {@link AWSWAFAsyncClientBuilder#withClientConfiguration(ClientConfiguration)}
*/
@Deprecated
public AWSWAFAsyncClient(ClientConfiguration clientConfiguration) {
this(DefaultAWSCredentialsProviderChain.getInstance(), clientConfiguration, newFixedThreadPool(clientConfiguration.getMaxConnections()));
}
/**
* Constructs a new asynchronous client to invoke service methods on WAF 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 AWSWAFAsyncClientBuilder#withCredentials(AWSCredentialsProvider)}
*/
@Deprecated
public AWSWAFAsyncClient(AWSCredentials awsCredentials) {
this(awsCredentials, newFixedThreadPool(DEFAULT_THREAD_POOL_SIZE));
}
/**
* Constructs a new asynchronous client to invoke service methods on WAF 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 AWSWAFAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and
* {@link AWSWAFAsyncClientBuilder#withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)}
*/
@Deprecated
public AWSWAFAsyncClient(AWSCredentials awsCredentials, ExecutorService executorService) {
this(awsCredentials, configFactory.getConfig(), executorService);
}
/**
* Constructs a new asynchronous client to invoke service methods on WAF 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 AWSWAFAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and
* {@link AWSWAFAsyncClientBuilder#withClientConfiguration(ClientConfiguration)} and
* {@link AWSWAFAsyncClientBuilder#withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)}
*/
@Deprecated
public AWSWAFAsyncClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration, ExecutorService executorService) {
super(awsCredentials, clientConfiguration);
this.executorService = executorService;
}
/**
* Constructs a new asynchronous client to invoke service methods on WAF 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 AWSWAFAsyncClientBuilder#withCredentials(AWSCredentialsProvider)}
*/
@Deprecated
public AWSWAFAsyncClient(AWSCredentialsProvider awsCredentialsProvider) {
this(awsCredentialsProvider, newFixedThreadPool(DEFAULT_THREAD_POOL_SIZE));
}
/**
* Constructs a new asynchronous client to invoke service methods on WAF 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 AWSWAFAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and
* {@link AWSWAFAsyncClientBuilder#withClientConfiguration(ClientConfiguration)}
*/
@Deprecated
public AWSWAFAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration) {
this(awsCredentialsProvider, clientConfiguration, newFixedThreadPool(clientConfiguration.getMaxConnections()));
}
/**
* Constructs a new asynchronous client to invoke service methods on WAF 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 AWSWAFAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and
* {@link AWSWAFAsyncClientBuilder#withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)}
*/
@Deprecated
public AWSWAFAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ExecutorService executorService) {
this(awsCredentialsProvider, configFactory.getConfig(), executorService);
}
/**
* Constructs a new asynchronous client to invoke service methods on WAF 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 AWSWAFAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and
* {@link AWSWAFAsyncClientBuilder#withClientConfiguration(ClientConfiguration)} and
* {@link AWSWAFAsyncClientBuilder#withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)}
*/
@Deprecated
public AWSWAFAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, ExecutorService executorService) {
super(awsCredentialsProvider, clientConfiguration);
this.executorService = executorService;
}
public static AWSWAFAsyncClientBuilder asyncBuilder() {
return AWSWAFAsyncClientBuilder.standard();
}
/**
* Constructs a new asynchronous client to invoke service methods on WAF using the specified parameters.
*
* @param asyncClientParams
* Object providing client parameters.
*/
AWSWAFAsyncClient(AwsAsyncClientParams asyncClientParams) {
this(asyncClientParams, false);
}
/**
* Constructs a new asynchronous client to invoke service methods on WAF using the specified parameters.
*
* @param asyncClientParams
* Object providing client parameters.
* @param endpointDiscoveryEnabled
* true will enable endpoint discovery if the service supports it.
*/
AWSWAFAsyncClient(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 createByteMatchSetAsync(CreateByteMatchSetRequest request) {
return createByteMatchSetAsync(request, null);
}
@Override
public java.util.concurrent.Future createByteMatchSetAsync(final CreateByteMatchSetRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateByteMatchSetRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateByteMatchSetResult call() throws Exception {
CreateByteMatchSetResult result = null;
try {
result = executeCreateByteMatchSet(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 createGeoMatchSetAsync(CreateGeoMatchSetRequest request) {
return createGeoMatchSetAsync(request, null);
}
@Override
public java.util.concurrent.Future createGeoMatchSetAsync(final CreateGeoMatchSetRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateGeoMatchSetRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateGeoMatchSetResult call() throws Exception {
CreateGeoMatchSetResult result = null;
try {
result = executeCreateGeoMatchSet(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 createIPSetAsync(CreateIPSetRequest request) {
return createIPSetAsync(request, null);
}
@Override
public java.util.concurrent.Future createIPSetAsync(final CreateIPSetRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateIPSetRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateIPSetResult call() throws Exception {
CreateIPSetResult result = null;
try {
result = executeCreateIPSet(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 createRateBasedRuleAsync(CreateRateBasedRuleRequest request) {
return createRateBasedRuleAsync(request, null);
}
@Override
public java.util.concurrent.Future createRateBasedRuleAsync(final CreateRateBasedRuleRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateRateBasedRuleRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateRateBasedRuleResult call() throws Exception {
CreateRateBasedRuleResult result = null;
try {
result = executeCreateRateBasedRule(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 createRegexMatchSetAsync(CreateRegexMatchSetRequest request) {
return createRegexMatchSetAsync(request, null);
}
@Override
public java.util.concurrent.Future createRegexMatchSetAsync(final CreateRegexMatchSetRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateRegexMatchSetRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateRegexMatchSetResult call() throws Exception {
CreateRegexMatchSetResult result = null;
try {
result = executeCreateRegexMatchSet(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 createRegexPatternSetAsync(CreateRegexPatternSetRequest request) {
return createRegexPatternSetAsync(request, null);
}
@Override
public java.util.concurrent.Future createRegexPatternSetAsync(final CreateRegexPatternSetRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateRegexPatternSetRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateRegexPatternSetResult call() throws Exception {
CreateRegexPatternSetResult result = null;
try {
result = executeCreateRegexPatternSet(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 createRuleAsync(CreateRuleRequest request) {
return createRuleAsync(request, null);
}
@Override
public java.util.concurrent.Future createRuleAsync(final CreateRuleRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateRuleRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateRuleResult call() throws Exception {
CreateRuleResult result = null;
try {
result = executeCreateRule(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 createRuleGroupAsync(CreateRuleGroupRequest request) {
return createRuleGroupAsync(request, null);
}
@Override
public java.util.concurrent.Future createRuleGroupAsync(final CreateRuleGroupRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateRuleGroupRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateRuleGroupResult call() throws Exception {
CreateRuleGroupResult result = null;
try {
result = executeCreateRuleGroup(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 createSizeConstraintSetAsync(CreateSizeConstraintSetRequest request) {
return createSizeConstraintSetAsync(request, null);
}
@Override
public java.util.concurrent.Future createSizeConstraintSetAsync(final CreateSizeConstraintSetRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateSizeConstraintSetRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateSizeConstraintSetResult call() throws Exception {
CreateSizeConstraintSetResult result = null;
try {
result = executeCreateSizeConstraintSet(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 createSqlInjectionMatchSetAsync(CreateSqlInjectionMatchSetRequest request) {
return createSqlInjectionMatchSetAsync(request, null);
}
@Override
public java.util.concurrent.Future createSqlInjectionMatchSetAsync(final CreateSqlInjectionMatchSetRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateSqlInjectionMatchSetRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateSqlInjectionMatchSetResult call() throws Exception {
CreateSqlInjectionMatchSetResult result = null;
try {
result = executeCreateSqlInjectionMatchSet(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 createWebACLAsync(CreateWebACLRequest request) {
return createWebACLAsync(request, null);
}
@Override
public java.util.concurrent.Future createWebACLAsync(final CreateWebACLRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateWebACLRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateWebACLResult call() throws Exception {
CreateWebACLResult result = null;
try {
result = executeCreateWebACL(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 createWebACLMigrationStackAsync(CreateWebACLMigrationStackRequest request) {
return createWebACLMigrationStackAsync(request, null);
}
@Override
public java.util.concurrent.Future createWebACLMigrationStackAsync(final CreateWebACLMigrationStackRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateWebACLMigrationStackRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateWebACLMigrationStackResult call() throws Exception {
CreateWebACLMigrationStackResult result = null;
try {
result = executeCreateWebACLMigrationStack(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 createXssMatchSetAsync(CreateXssMatchSetRequest request) {
return createXssMatchSetAsync(request, null);
}
@Override
public java.util.concurrent.Future createXssMatchSetAsync(final CreateXssMatchSetRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateXssMatchSetRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateXssMatchSetResult call() throws Exception {
CreateXssMatchSetResult result = null;
try {
result = executeCreateXssMatchSet(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 deleteByteMatchSetAsync(DeleteByteMatchSetRequest request) {
return deleteByteMatchSetAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteByteMatchSetAsync(final DeleteByteMatchSetRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteByteMatchSetRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteByteMatchSetResult call() throws Exception {
DeleteByteMatchSetResult result = null;
try {
result = executeDeleteByteMatchSet(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 deleteGeoMatchSetAsync(DeleteGeoMatchSetRequest request) {
return deleteGeoMatchSetAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteGeoMatchSetAsync(final DeleteGeoMatchSetRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteGeoMatchSetRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteGeoMatchSetResult call() throws Exception {
DeleteGeoMatchSetResult result = null;
try {
result = executeDeleteGeoMatchSet(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 deleteIPSetAsync(DeleteIPSetRequest request) {
return deleteIPSetAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteIPSetAsync(final DeleteIPSetRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteIPSetRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteIPSetResult call() throws Exception {
DeleteIPSetResult result = null;
try {
result = executeDeleteIPSet(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 deleteLoggingConfigurationAsync(DeleteLoggingConfigurationRequest request) {
return deleteLoggingConfigurationAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteLoggingConfigurationAsync(final DeleteLoggingConfigurationRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteLoggingConfigurationRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteLoggingConfigurationResult call() throws Exception {
DeleteLoggingConfigurationResult result = null;
try {
result = executeDeleteLoggingConfiguration(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 deletePermissionPolicyAsync(DeletePermissionPolicyRequest request) {
return deletePermissionPolicyAsync(request, null);
}
@Override
public java.util.concurrent.Future deletePermissionPolicyAsync(final DeletePermissionPolicyRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeletePermissionPolicyRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeletePermissionPolicyResult call() throws Exception {
DeletePermissionPolicyResult result = null;
try {
result = executeDeletePermissionPolicy(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 deleteRateBasedRuleAsync(DeleteRateBasedRuleRequest request) {
return deleteRateBasedRuleAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteRateBasedRuleAsync(final DeleteRateBasedRuleRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteRateBasedRuleRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteRateBasedRuleResult call() throws Exception {
DeleteRateBasedRuleResult result = null;
try {
result = executeDeleteRateBasedRule(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 deleteRegexMatchSetAsync(DeleteRegexMatchSetRequest request) {
return deleteRegexMatchSetAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteRegexMatchSetAsync(final DeleteRegexMatchSetRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteRegexMatchSetRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteRegexMatchSetResult call() throws Exception {
DeleteRegexMatchSetResult result = null;
try {
result = executeDeleteRegexMatchSet(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 deleteRegexPatternSetAsync(DeleteRegexPatternSetRequest request) {
return deleteRegexPatternSetAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteRegexPatternSetAsync(final DeleteRegexPatternSetRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteRegexPatternSetRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteRegexPatternSetResult call() throws Exception {
DeleteRegexPatternSetResult result = null;
try {
result = executeDeleteRegexPatternSet(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 deleteRuleAsync(DeleteRuleRequest request) {
return deleteRuleAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteRuleAsync(final DeleteRuleRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteRuleRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteRuleResult call() throws Exception {
DeleteRuleResult result = null;
try {
result = executeDeleteRule(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 deleteRuleGroupAsync(DeleteRuleGroupRequest request) {
return deleteRuleGroupAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteRuleGroupAsync(final DeleteRuleGroupRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteRuleGroupRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteRuleGroupResult call() throws Exception {
DeleteRuleGroupResult result = null;
try {
result = executeDeleteRuleGroup(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 deleteSizeConstraintSetAsync(DeleteSizeConstraintSetRequest request) {
return deleteSizeConstraintSetAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteSizeConstraintSetAsync(final DeleteSizeConstraintSetRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteSizeConstraintSetRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteSizeConstraintSetResult call() throws Exception {
DeleteSizeConstraintSetResult result = null;
try {
result = executeDeleteSizeConstraintSet(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 deleteSqlInjectionMatchSetAsync(DeleteSqlInjectionMatchSetRequest request) {
return deleteSqlInjectionMatchSetAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteSqlInjectionMatchSetAsync(final DeleteSqlInjectionMatchSetRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteSqlInjectionMatchSetRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteSqlInjectionMatchSetResult call() throws Exception {
DeleteSqlInjectionMatchSetResult result = null;
try {
result = executeDeleteSqlInjectionMatchSet(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 deleteWebACLAsync(DeleteWebACLRequest request) {
return deleteWebACLAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteWebACLAsync(final DeleteWebACLRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteWebACLRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteWebACLResult call() throws Exception {
DeleteWebACLResult result = null;
try {
result = executeDeleteWebACL(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 deleteXssMatchSetAsync(DeleteXssMatchSetRequest request) {
return deleteXssMatchSetAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteXssMatchSetAsync(final DeleteXssMatchSetRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteXssMatchSetRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteXssMatchSetResult call() throws Exception {
DeleteXssMatchSetResult result = null;
try {
result = executeDeleteXssMatchSet(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 getByteMatchSetAsync(GetByteMatchSetRequest request) {
return getByteMatchSetAsync(request, null);
}
@Override
public java.util.concurrent.Future getByteMatchSetAsync(final GetByteMatchSetRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetByteMatchSetRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetByteMatchSetResult call() throws Exception {
GetByteMatchSetResult result = null;
try {
result = executeGetByteMatchSet(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 getChangeTokenAsync(GetChangeTokenRequest request) {
return getChangeTokenAsync(request, null);
}
@Override
public java.util.concurrent.Future getChangeTokenAsync(final GetChangeTokenRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetChangeTokenRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetChangeTokenResult call() throws Exception {
GetChangeTokenResult result = null;
try {
result = executeGetChangeToken(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 getChangeTokenStatusAsync(GetChangeTokenStatusRequest request) {
return getChangeTokenStatusAsync(request, null);
}
@Override
public java.util.concurrent.Future getChangeTokenStatusAsync(final GetChangeTokenStatusRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetChangeTokenStatusRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetChangeTokenStatusResult call() throws Exception {
GetChangeTokenStatusResult result = null;
try {
result = executeGetChangeTokenStatus(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 getGeoMatchSetAsync(GetGeoMatchSetRequest request) {
return getGeoMatchSetAsync(request, null);
}
@Override
public java.util.concurrent.Future getGeoMatchSetAsync(final GetGeoMatchSetRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetGeoMatchSetRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetGeoMatchSetResult call() throws Exception {
GetGeoMatchSetResult result = null;
try {
result = executeGetGeoMatchSet(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 getIPSetAsync(GetIPSetRequest request) {
return getIPSetAsync(request, null);
}
@Override
public java.util.concurrent.Future getIPSetAsync(final GetIPSetRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetIPSetRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetIPSetResult call() throws Exception {
GetIPSetResult result = null;
try {
result = executeGetIPSet(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 getLoggingConfigurationAsync(GetLoggingConfigurationRequest request) {
return getLoggingConfigurationAsync(request, null);
}
@Override
public java.util.concurrent.Future getLoggingConfigurationAsync(final GetLoggingConfigurationRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetLoggingConfigurationRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetLoggingConfigurationResult call() throws Exception {
GetLoggingConfigurationResult result = null;
try {
result = executeGetLoggingConfiguration(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 getPermissionPolicyAsync(GetPermissionPolicyRequest request) {
return getPermissionPolicyAsync(request, null);
}
@Override
public java.util.concurrent.Future getPermissionPolicyAsync(final GetPermissionPolicyRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetPermissionPolicyRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetPermissionPolicyResult call() throws Exception {
GetPermissionPolicyResult result = null;
try {
result = executeGetPermissionPolicy(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 getRateBasedRuleAsync(GetRateBasedRuleRequest request) {
return getRateBasedRuleAsync(request, null);
}
@Override
public java.util.concurrent.Future getRateBasedRuleAsync(final GetRateBasedRuleRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetRateBasedRuleRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetRateBasedRuleResult call() throws Exception {
GetRateBasedRuleResult result = null;
try {
result = executeGetRateBasedRule(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 getRateBasedRuleManagedKeysAsync(GetRateBasedRuleManagedKeysRequest request) {
return getRateBasedRuleManagedKeysAsync(request, null);
}
@Override
public java.util.concurrent.Future getRateBasedRuleManagedKeysAsync(final GetRateBasedRuleManagedKeysRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetRateBasedRuleManagedKeysRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetRateBasedRuleManagedKeysResult call() throws Exception {
GetRateBasedRuleManagedKeysResult result = null;
try {
result = executeGetRateBasedRuleManagedKeys(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 getRegexMatchSetAsync(GetRegexMatchSetRequest request) {
return getRegexMatchSetAsync(request, null);
}
@Override
public java.util.concurrent.Future getRegexMatchSetAsync(final GetRegexMatchSetRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetRegexMatchSetRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetRegexMatchSetResult call() throws Exception {
GetRegexMatchSetResult result = null;
try {
result = executeGetRegexMatchSet(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 getRegexPatternSetAsync(GetRegexPatternSetRequest request) {
return getRegexPatternSetAsync(request, null);
}
@Override
public java.util.concurrent.Future getRegexPatternSetAsync(final GetRegexPatternSetRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetRegexPatternSetRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetRegexPatternSetResult call() throws Exception {
GetRegexPatternSetResult result = null;
try {
result = executeGetRegexPatternSet(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 getRuleAsync(GetRuleRequest request) {
return getRuleAsync(request, null);
}
@Override
public java.util.concurrent.Future getRuleAsync(final GetRuleRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetRuleRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetRuleResult call() throws Exception {
GetRuleResult result = null;
try {
result = executeGetRule(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 getRuleGroupAsync(GetRuleGroupRequest request) {
return getRuleGroupAsync(request, null);
}
@Override
public java.util.concurrent.Future getRuleGroupAsync(final GetRuleGroupRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetRuleGroupRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetRuleGroupResult call() throws Exception {
GetRuleGroupResult result = null;
try {
result = executeGetRuleGroup(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 getSampledRequestsAsync(GetSampledRequestsRequest request) {
return getSampledRequestsAsync(request, null);
}
@Override
public java.util.concurrent.Future getSampledRequestsAsync(final GetSampledRequestsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetSampledRequestsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetSampledRequestsResult call() throws Exception {
GetSampledRequestsResult result = null;
try {
result = executeGetSampledRequests(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 getSizeConstraintSetAsync(GetSizeConstraintSetRequest request) {
return getSizeConstraintSetAsync(request, null);
}
@Override
public java.util.concurrent.Future getSizeConstraintSetAsync(final GetSizeConstraintSetRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetSizeConstraintSetRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetSizeConstraintSetResult call() throws Exception {
GetSizeConstraintSetResult result = null;
try {
result = executeGetSizeConstraintSet(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 getSqlInjectionMatchSetAsync(GetSqlInjectionMatchSetRequest request) {
return getSqlInjectionMatchSetAsync(request, null);
}
@Override
public java.util.concurrent.Future getSqlInjectionMatchSetAsync(final GetSqlInjectionMatchSetRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetSqlInjectionMatchSetRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetSqlInjectionMatchSetResult call() throws Exception {
GetSqlInjectionMatchSetResult result = null;
try {
result = executeGetSqlInjectionMatchSet(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 getWebACLAsync(GetWebACLRequest request) {
return getWebACLAsync(request, null);
}
@Override
public java.util.concurrent.Future getWebACLAsync(final GetWebACLRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetWebACLRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetWebACLResult call() throws Exception {
GetWebACLResult result = null;
try {
result = executeGetWebACL(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 getXssMatchSetAsync(GetXssMatchSetRequest request) {
return getXssMatchSetAsync(request, null);
}
@Override
public java.util.concurrent.Future getXssMatchSetAsync(final GetXssMatchSetRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetXssMatchSetRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetXssMatchSetResult call() throws Exception {
GetXssMatchSetResult result = null;
try {
result = executeGetXssMatchSet(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 listActivatedRulesInRuleGroupAsync(ListActivatedRulesInRuleGroupRequest request) {
return listActivatedRulesInRuleGroupAsync(request, null);
}
@Override
public java.util.concurrent.Future listActivatedRulesInRuleGroupAsync(
final ListActivatedRulesInRuleGroupRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListActivatedRulesInRuleGroupRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListActivatedRulesInRuleGroupResult call() throws Exception {
ListActivatedRulesInRuleGroupResult result = null;
try {
result = executeListActivatedRulesInRuleGroup(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 listByteMatchSetsAsync(ListByteMatchSetsRequest request) {
return listByteMatchSetsAsync(request, null);
}
@Override
public java.util.concurrent.Future listByteMatchSetsAsync(final ListByteMatchSetsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListByteMatchSetsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListByteMatchSetsResult call() throws Exception {
ListByteMatchSetsResult result = null;
try {
result = executeListByteMatchSets(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 listGeoMatchSetsAsync(ListGeoMatchSetsRequest request) {
return listGeoMatchSetsAsync(request, null);
}
@Override
public java.util.concurrent.Future listGeoMatchSetsAsync(final ListGeoMatchSetsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListGeoMatchSetsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListGeoMatchSetsResult call() throws Exception {
ListGeoMatchSetsResult result = null;
try {
result = executeListGeoMatchSets(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 listIPSetsAsync(ListIPSetsRequest request) {
return listIPSetsAsync(request, null);
}
@Override
public java.util.concurrent.Future listIPSetsAsync(final ListIPSetsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListIPSetsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListIPSetsResult call() throws Exception {
ListIPSetsResult result = null;
try {
result = executeListIPSets(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 listLoggingConfigurationsAsync(ListLoggingConfigurationsRequest request) {
return listLoggingConfigurationsAsync(request, null);
}
@Override
public java.util.concurrent.Future listLoggingConfigurationsAsync(final ListLoggingConfigurationsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListLoggingConfigurationsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListLoggingConfigurationsResult call() throws Exception {
ListLoggingConfigurationsResult result = null;
try {
result = executeListLoggingConfigurations(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 listRateBasedRulesAsync(ListRateBasedRulesRequest request) {
return listRateBasedRulesAsync(request, null);
}
@Override
public java.util.concurrent.Future listRateBasedRulesAsync(final ListRateBasedRulesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListRateBasedRulesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListRateBasedRulesResult call() throws Exception {
ListRateBasedRulesResult result = null;
try {
result = executeListRateBasedRules(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 listRegexMatchSetsAsync(ListRegexMatchSetsRequest request) {
return listRegexMatchSetsAsync(request, null);
}
@Override
public java.util.concurrent.Future listRegexMatchSetsAsync(final ListRegexMatchSetsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListRegexMatchSetsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListRegexMatchSetsResult call() throws Exception {
ListRegexMatchSetsResult result = null;
try {
result = executeListRegexMatchSets(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 listRegexPatternSetsAsync(ListRegexPatternSetsRequest request) {
return listRegexPatternSetsAsync(request, null);
}
@Override
public java.util.concurrent.Future listRegexPatternSetsAsync(final ListRegexPatternSetsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListRegexPatternSetsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListRegexPatternSetsResult call() throws Exception {
ListRegexPatternSetsResult result = null;
try {
result = executeListRegexPatternSets(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 listRuleGroupsAsync(ListRuleGroupsRequest request) {
return listRuleGroupsAsync(request, null);
}
@Override
public java.util.concurrent.Future listRuleGroupsAsync(final ListRuleGroupsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListRuleGroupsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListRuleGroupsResult call() throws Exception {
ListRuleGroupsResult result = null;
try {
result = executeListRuleGroups(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 listRulesAsync(ListRulesRequest request) {
return listRulesAsync(request, null);
}
@Override
public java.util.concurrent.Future listRulesAsync(final ListRulesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListRulesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListRulesResult call() throws Exception {
ListRulesResult result = null;
try {
result = executeListRules(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 listSizeConstraintSetsAsync(ListSizeConstraintSetsRequest request) {
return listSizeConstraintSetsAsync(request, null);
}
@Override
public java.util.concurrent.Future listSizeConstraintSetsAsync(final ListSizeConstraintSetsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListSizeConstraintSetsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListSizeConstraintSetsResult call() throws Exception {
ListSizeConstraintSetsResult result = null;
try {
result = executeListSizeConstraintSets(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 listSqlInjectionMatchSetsAsync(ListSqlInjectionMatchSetsRequest request) {
return listSqlInjectionMatchSetsAsync(request, null);
}
@Override
public java.util.concurrent.Future listSqlInjectionMatchSetsAsync(final ListSqlInjectionMatchSetsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListSqlInjectionMatchSetsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListSqlInjectionMatchSetsResult call() throws Exception {
ListSqlInjectionMatchSetsResult result = null;
try {
result = executeListSqlInjectionMatchSets(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 listSubscribedRuleGroupsAsync(ListSubscribedRuleGroupsRequest request) {
return listSubscribedRuleGroupsAsync(request, null);
}
@Override
public java.util.concurrent.Future listSubscribedRuleGroupsAsync(final ListSubscribedRuleGroupsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListSubscribedRuleGroupsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListSubscribedRuleGroupsResult call() throws Exception {
ListSubscribedRuleGroupsResult result = null;
try {
result = executeListSubscribedRuleGroups(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 listTagsForResourceAsync(ListTagsForResourceRequest request) {
return listTagsForResourceAsync(request, null);
}
@Override
public java.util.concurrent.Future listTagsForResourceAsync(final ListTagsForResourceRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListTagsForResourceRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListTagsForResourceResult call() throws Exception {
ListTagsForResourceResult result = null;
try {
result = executeListTagsForResource(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 listWebACLsAsync(ListWebACLsRequest request) {
return listWebACLsAsync(request, null);
}
@Override
public java.util.concurrent.Future listWebACLsAsync(final ListWebACLsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListWebACLsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListWebACLsResult call() throws Exception {
ListWebACLsResult result = null;
try {
result = executeListWebACLs(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 listXssMatchSetsAsync(ListXssMatchSetsRequest request) {
return listXssMatchSetsAsync(request, null);
}
@Override
public java.util.concurrent.Future listXssMatchSetsAsync(final ListXssMatchSetsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListXssMatchSetsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListXssMatchSetsResult call() throws Exception {
ListXssMatchSetsResult result = null;
try {
result = executeListXssMatchSets(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 putLoggingConfigurationAsync(PutLoggingConfigurationRequest request) {
return putLoggingConfigurationAsync(request, null);
}
@Override
public java.util.concurrent.Future putLoggingConfigurationAsync(final PutLoggingConfigurationRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final PutLoggingConfigurationRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public PutLoggingConfigurationResult call() throws Exception {
PutLoggingConfigurationResult result = null;
try {
result = executePutLoggingConfiguration(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 putPermissionPolicyAsync(PutPermissionPolicyRequest request) {
return putPermissionPolicyAsync(request, null);
}
@Override
public java.util.concurrent.Future