@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AWSElasticsearchAsyncClient extends AWSElasticsearchClient implements AWSElasticsearchAsync
AsyncHandler
can be used to receive
notification when an asynchronous operation completes.
Use the Amazon Elasticsearch configuration API to create, configure, and manage Elasticsearch domains.
The endpoint for configuration service requests is region-specific: es.region.amazonaws.com. For example, es.us-east-1.amazonaws.com. For a current list of supported regions and endpoints, see Regions and Endpoints.
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
Constructor and Description |
---|
AWSElasticsearchAsyncClient()
Deprecated.
|
AWSElasticsearchAsyncClient(AWSCredentials awsCredentials)
Deprecated.
|
AWSElasticsearchAsyncClient(AWSCredentials awsCredentials,
ClientConfiguration clientConfiguration,
ExecutorService executorService)
|
AWSElasticsearchAsyncClient(AWSCredentials awsCredentials,
ExecutorService executorService)
|
AWSElasticsearchAsyncClient(AWSCredentialsProvider awsCredentialsProvider)
Deprecated.
|
AWSElasticsearchAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration)
|
AWSElasticsearchAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration,
ExecutorService executorService)
|
AWSElasticsearchAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ExecutorService executorService)
|
AWSElasticsearchAsyncClient(ClientConfiguration clientConfiguration)
Deprecated.
|
addTags, builder, createElasticsearchDomain, deleteElasticsearchDomain, deleteElasticsearchServiceRole, describeElasticsearchDomain, describeElasticsearchDomainConfig, describeElasticsearchDomains, describeElasticsearchInstanceTypeLimits, getCachedResponseMetadata, listDomainNames, listElasticsearchInstanceTypes, listElasticsearchVersions, listTags, removeTags, updateElasticsearchDomainConfig
addRequestHandler, addRequestHandler, configureRegion, getEndpointPrefix, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addTags, createElasticsearchDomain, deleteElasticsearchDomain, deleteElasticsearchServiceRole, describeElasticsearchDomain, describeElasticsearchDomainConfig, describeElasticsearchDomains, describeElasticsearchInstanceTypeLimits, getCachedResponseMetadata, listDomainNames, listElasticsearchInstanceTypes, listElasticsearchVersions, listTags, removeTags, setEndpoint, setRegion, updateElasticsearchDomainConfig
@Deprecated public AWSElasticsearchAsyncClient()
AWSElasticsearchAsyncClientBuilder.defaultClient()
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).
@Deprecated public AWSElasticsearchAsyncClient(ClientConfiguration clientConfiguration)
AwsClientBuilder.withClientConfiguration(ClientConfiguration)
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 ClientConfiguration.getMaxConnections()
.
clientConfiguration
- The client configuration options controlling how this client connects to Amazon Elasticsearch Service (ex:
proxy settings, retry counts, etc).DefaultAWSCredentialsProviderChain
,
Executors.newFixedThreadPool(int)
@Deprecated public AWSElasticsearchAsyncClient(AWSCredentials awsCredentials)
AwsClientBuilder.withCredentials(AWSCredentialsProvider)
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).
awsCredentials
- The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.Executors.newFixedThreadPool(int)
@Deprecated public AWSElasticsearchAsyncClient(AWSCredentials awsCredentials, ExecutorService executorService)
AwsClientBuilder.withCredentials(AWSCredentialsProvider)
and
AwsAsyncClientBuilder.withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)
awsCredentials
- The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.executorService
- The executor service by which all asynchronous requests will be executed.@Deprecated public AWSElasticsearchAsyncClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration, ExecutorService executorService)
AwsClientBuilder.withCredentials(AWSCredentialsProvider)
and
AwsClientBuilder.withClientConfiguration(ClientConfiguration)
and
AwsAsyncClientBuilder.withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)
awsCredentials
- The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.clientConfiguration
- Client configuration options (ex: max retry limit, proxy settings, etc).executorService
- The executor service by which all asynchronous requests will be executed.@Deprecated public AWSElasticsearchAsyncClient(AWSCredentialsProvider awsCredentialsProvider)
AwsClientBuilder.withCredentials(AWSCredentialsProvider)
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).
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to authenticate requests with AWS services.Executors.newFixedThreadPool(int)
@Deprecated public AWSElasticsearchAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration)
AwsClientBuilder.withCredentials(AWSCredentialsProvider)
and
AwsClientBuilder.withClientConfiguration(ClientConfiguration)
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 ClientConfiguration.getMaxConnections()
.
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to authenticate requests with AWS services.clientConfiguration
- Client configuration options (ex: max retry limit, proxy settings, etc).DefaultAWSCredentialsProviderChain
,
Executors.newFixedThreadPool(int)
@Deprecated public AWSElasticsearchAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ExecutorService executorService)
AwsClientBuilder.withCredentials(AWSCredentialsProvider)
and
AwsAsyncClientBuilder.withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to authenticate requests with AWS services.executorService
- The executor service by which all asynchronous requests will be executed.@Deprecated public AWSElasticsearchAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, ExecutorService executorService)
AwsClientBuilder.withCredentials(AWSCredentialsProvider)
and
AwsClientBuilder.withClientConfiguration(ClientConfiguration)
and
AwsAsyncClientBuilder.withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to authenticate requests with AWS services.clientConfiguration
- Client configuration options (ex: max retry limit, proxy settings, etc).executorService
- The executor service by which all asynchronous requests will be executed.public static AWSElasticsearchAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<AddTagsResult> addTagsAsync(AddTagsRequest request)
AWSElasticsearchAsync
Attaches tags to an existing Elasticsearch domain. Tags are a set of case-sensitive key value pairs. An Elasticsearch domain may have up to 10 tags. See Tagging Amazon Elasticsearch Service Domains for more information.
addTagsAsync
in interface AWSElasticsearchAsync
request
- Container for the parameters to the AddTags
operation. Specify the tags that you want
to attach to the Elasticsearch domain.public Future<AddTagsResult> addTagsAsync(AddTagsRequest request, AsyncHandler<AddTagsRequest,AddTagsResult> asyncHandler)
AWSElasticsearchAsync
Attaches tags to an existing Elasticsearch domain. Tags are a set of case-sensitive key value pairs. An Elasticsearch domain may have up to 10 tags. See Tagging Amazon Elasticsearch Service Domains for more information.
addTagsAsync
in interface AWSElasticsearchAsync
request
- Container for the parameters to the AddTags
operation. Specify the tags that you want
to attach to the Elasticsearch domain.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<CreateElasticsearchDomainResult> createElasticsearchDomainAsync(CreateElasticsearchDomainRequest request)
AWSElasticsearchAsync
Creates a new Elasticsearch domain. For more information, see Creating Elasticsearch Domains in the Amazon Elasticsearch Service Developer Guide.
createElasticsearchDomainAsync
in interface AWSElasticsearchAsync
public Future<CreateElasticsearchDomainResult> createElasticsearchDomainAsync(CreateElasticsearchDomainRequest request, AsyncHandler<CreateElasticsearchDomainRequest,CreateElasticsearchDomainResult> asyncHandler)
AWSElasticsearchAsync
Creates a new Elasticsearch domain. For more information, see Creating Elasticsearch Domains in the Amazon Elasticsearch Service Developer Guide.
createElasticsearchDomainAsync
in interface AWSElasticsearchAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DeleteElasticsearchDomainResult> deleteElasticsearchDomainAsync(DeleteElasticsearchDomainRequest request)
AWSElasticsearchAsync
Permanently deletes the specified Elasticsearch domain and all of its data. Once a domain is deleted, it cannot be recovered.
deleteElasticsearchDomainAsync
in interface AWSElasticsearchAsync
request
- Container for the parameters to the DeleteElasticsearchDomain
operation. Specifies the
name of the Elasticsearch domain that you want to delete.public Future<DeleteElasticsearchDomainResult> deleteElasticsearchDomainAsync(DeleteElasticsearchDomainRequest request, AsyncHandler<DeleteElasticsearchDomainRequest,DeleteElasticsearchDomainResult> asyncHandler)
AWSElasticsearchAsync
Permanently deletes the specified Elasticsearch domain and all of its data. Once a domain is deleted, it cannot be recovered.
deleteElasticsearchDomainAsync
in interface AWSElasticsearchAsync
request
- Container for the parameters to the DeleteElasticsearchDomain
operation. Specifies the
name of the Elasticsearch domain that you want to delete.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DeleteElasticsearchServiceRoleResult> deleteElasticsearchServiceRoleAsync(DeleteElasticsearchServiceRoleRequest request)
AWSElasticsearchAsync
Deletes the service-linked role that Elasticsearch Service uses to manage and maintain VPC domains. Role deletion will fail if any existing VPC domains use the role. You must delete any such Elasticsearch domains before deleting the role. See Deleting Elasticsearch Service Role in VPC Endpoints for Amazon Elasticsearch Service Domains.
deleteElasticsearchServiceRoleAsync
in interface AWSElasticsearchAsync
public Future<DeleteElasticsearchServiceRoleResult> deleteElasticsearchServiceRoleAsync(DeleteElasticsearchServiceRoleRequest request, AsyncHandler<DeleteElasticsearchServiceRoleRequest,DeleteElasticsearchServiceRoleResult> asyncHandler)
AWSElasticsearchAsync
Deletes the service-linked role that Elasticsearch Service uses to manage and maintain VPC domains. Role deletion will fail if any existing VPC domains use the role. You must delete any such Elasticsearch domains before deleting the role. See Deleting Elasticsearch Service Role in VPC Endpoints for Amazon Elasticsearch Service Domains.
deleteElasticsearchServiceRoleAsync
in interface AWSElasticsearchAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeElasticsearchDomainResult> describeElasticsearchDomainAsync(DescribeElasticsearchDomainRequest request)
AWSElasticsearchAsync
Returns domain configuration information about the specified Elasticsearch domain, including the domain ID, domain endpoint, and domain ARN.
describeElasticsearchDomainAsync
in interface AWSElasticsearchAsync
request
- Container for the parameters to the DescribeElasticsearchDomain
operation.public Future<DescribeElasticsearchDomainResult> describeElasticsearchDomainAsync(DescribeElasticsearchDomainRequest request, AsyncHandler<DescribeElasticsearchDomainRequest,DescribeElasticsearchDomainResult> asyncHandler)
AWSElasticsearchAsync
Returns domain configuration information about the specified Elasticsearch domain, including the domain ID, domain endpoint, and domain ARN.
describeElasticsearchDomainAsync
in interface AWSElasticsearchAsync
request
- Container for the parameters to the DescribeElasticsearchDomain
operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeElasticsearchDomainConfigResult> describeElasticsearchDomainConfigAsync(DescribeElasticsearchDomainConfigRequest request)
AWSElasticsearchAsync
Provides cluster configuration information about the specified Elasticsearch domain, such as the state, creation date, update version, and update date for cluster options.
describeElasticsearchDomainConfigAsync
in interface AWSElasticsearchAsync
request
- Container for the parameters to the DescribeElasticsearchDomainConfig
operation. Specifies
the domain name for which you want configuration information.public Future<DescribeElasticsearchDomainConfigResult> describeElasticsearchDomainConfigAsync(DescribeElasticsearchDomainConfigRequest request, AsyncHandler<DescribeElasticsearchDomainConfigRequest,DescribeElasticsearchDomainConfigResult> asyncHandler)
AWSElasticsearchAsync
Provides cluster configuration information about the specified Elasticsearch domain, such as the state, creation date, update version, and update date for cluster options.
describeElasticsearchDomainConfigAsync
in interface AWSElasticsearchAsync
request
- Container for the parameters to the DescribeElasticsearchDomainConfig
operation. Specifies
the domain name for which you want configuration information.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeElasticsearchDomainsResult> describeElasticsearchDomainsAsync(DescribeElasticsearchDomainsRequest request)
AWSElasticsearchAsync
Returns domain configuration information about the specified Elasticsearch domains, including the domain ID, domain endpoint, and domain ARN.
describeElasticsearchDomainsAsync
in interface AWSElasticsearchAsync
request
- Container for the parameters to the DescribeElasticsearchDomains
operation. By
default, the API returns the status of all Elasticsearch domains.public Future<DescribeElasticsearchDomainsResult> describeElasticsearchDomainsAsync(DescribeElasticsearchDomainsRequest request, AsyncHandler<DescribeElasticsearchDomainsRequest,DescribeElasticsearchDomainsResult> asyncHandler)
AWSElasticsearchAsync
Returns domain configuration information about the specified Elasticsearch domains, including the domain ID, domain endpoint, and domain ARN.
describeElasticsearchDomainsAsync
in interface AWSElasticsearchAsync
request
- Container for the parameters to the DescribeElasticsearchDomains
operation. By
default, the API returns the status of all Elasticsearch domains.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeElasticsearchInstanceTypeLimitsResult> describeElasticsearchInstanceTypeLimitsAsync(DescribeElasticsearchInstanceTypeLimitsRequest request)
AWSElasticsearchAsync
Describe Elasticsearch Limits for a given InstanceType and ElasticsearchVersion. When modifying existing Domain,
specify the DomainName
to know what Limits are supported for modifying.
describeElasticsearchInstanceTypeLimitsAsync
in interface AWSElasticsearchAsync
request
- Container for the parameters to DescribeElasticsearchInstanceTypeLimits
operation.public Future<DescribeElasticsearchInstanceTypeLimitsResult> describeElasticsearchInstanceTypeLimitsAsync(DescribeElasticsearchInstanceTypeLimitsRequest request, AsyncHandler<DescribeElasticsearchInstanceTypeLimitsRequest,DescribeElasticsearchInstanceTypeLimitsResult> asyncHandler)
AWSElasticsearchAsync
Describe Elasticsearch Limits for a given InstanceType and ElasticsearchVersion. When modifying existing Domain,
specify the DomainName
to know what Limits are supported for modifying.
describeElasticsearchInstanceTypeLimitsAsync
in interface AWSElasticsearchAsync
request
- Container for the parameters to DescribeElasticsearchInstanceTypeLimits
operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListDomainNamesResult> listDomainNamesAsync(ListDomainNamesRequest request)
AWSElasticsearchAsync
Returns the name of all Elasticsearch domains owned by the current user's account.
listDomainNamesAsync
in interface AWSElasticsearchAsync
public Future<ListDomainNamesResult> listDomainNamesAsync(ListDomainNamesRequest request, AsyncHandler<ListDomainNamesRequest,ListDomainNamesResult> asyncHandler)
AWSElasticsearchAsync
Returns the name of all Elasticsearch domains owned by the current user's account.
listDomainNamesAsync
in interface AWSElasticsearchAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListElasticsearchInstanceTypesResult> listElasticsearchInstanceTypesAsync(ListElasticsearchInstanceTypesRequest request)
AWSElasticsearchAsync
List all Elasticsearch instance types that are supported for given ElasticsearchVersion
listElasticsearchInstanceTypesAsync
in interface AWSElasticsearchAsync
request
- Container for the parameters to the ListElasticsearchInstanceTypes
operation.public Future<ListElasticsearchInstanceTypesResult> listElasticsearchInstanceTypesAsync(ListElasticsearchInstanceTypesRequest request, AsyncHandler<ListElasticsearchInstanceTypesRequest,ListElasticsearchInstanceTypesResult> asyncHandler)
AWSElasticsearchAsync
List all Elasticsearch instance types that are supported for given ElasticsearchVersion
listElasticsearchInstanceTypesAsync
in interface AWSElasticsearchAsync
request
- Container for the parameters to the ListElasticsearchInstanceTypes
operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListElasticsearchVersionsResult> listElasticsearchVersionsAsync(ListElasticsearchVersionsRequest request)
AWSElasticsearchAsync
List all supported Elasticsearch versions
listElasticsearchVersionsAsync
in interface AWSElasticsearchAsync
request
- Container for the parameters to the ListElasticsearchVersions
operation.
Use MaxResults
to control the maximum number of results to retrieve in a single
call.
Use NextToken
in response to retrieve more results. If the received response does
not contain a NextToken, then there are no more results to retrieve.
public Future<ListElasticsearchVersionsResult> listElasticsearchVersionsAsync(ListElasticsearchVersionsRequest request, AsyncHandler<ListElasticsearchVersionsRequest,ListElasticsearchVersionsResult> asyncHandler)
AWSElasticsearchAsync
List all supported Elasticsearch versions
listElasticsearchVersionsAsync
in interface AWSElasticsearchAsync
request
- Container for the parameters to the ListElasticsearchVersions
operation.
Use MaxResults
to control the maximum number of results to retrieve in a single
call.
Use NextToken
in response to retrieve more results. If the received response does
not contain a NextToken, then there are no more results to retrieve.
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListTagsResult> listTagsAsync(ListTagsRequest request)
AWSElasticsearchAsync
Returns all tags for the given Elasticsearch domain.
listTagsAsync
in interface AWSElasticsearchAsync
request
- Container for the parameters to the ListTags
operation. Specify the ARN
for the Elasticsearch domain to which the tags are attached that you want to view are attached.public Future<ListTagsResult> listTagsAsync(ListTagsRequest request, AsyncHandler<ListTagsRequest,ListTagsResult> asyncHandler)
AWSElasticsearchAsync
Returns all tags for the given Elasticsearch domain.
listTagsAsync
in interface AWSElasticsearchAsync
request
- Container for the parameters to the ListTags
operation. Specify the ARN
for the Elasticsearch domain to which the tags are attached that you want to view are attached.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<RemoveTagsResult> removeTagsAsync(RemoveTagsRequest request)
AWSElasticsearchAsync
Removes the specified set of tags from the specified Elasticsearch domain.
removeTagsAsync
in interface AWSElasticsearchAsync
request
- Container for the parameters to the RemoveTags
operation. Specify the ARN
for the Elasticsearch domain from which you want to remove the specified TagKey
.public Future<RemoveTagsResult> removeTagsAsync(RemoveTagsRequest request, AsyncHandler<RemoveTagsRequest,RemoveTagsResult> asyncHandler)
AWSElasticsearchAsync
Removes the specified set of tags from the specified Elasticsearch domain.
removeTagsAsync
in interface AWSElasticsearchAsync
request
- Container for the parameters to the RemoveTags
operation. Specify the ARN
for the Elasticsearch domain from which you want to remove the specified TagKey
.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<UpdateElasticsearchDomainConfigResult> updateElasticsearchDomainConfigAsync(UpdateElasticsearchDomainConfigRequest request)
AWSElasticsearchAsync
Modifies the cluster configuration of the specified Elasticsearch domain, setting as setting the instance type and the number of instances.
updateElasticsearchDomainConfigAsync
in interface AWSElasticsearchAsync
request
- Container for the parameters to the UpdateElasticsearchDomain
operation. Specifies the
type and number of instances in the domain cluster.public Future<UpdateElasticsearchDomainConfigResult> updateElasticsearchDomainConfigAsync(UpdateElasticsearchDomainConfigRequest request, AsyncHandler<UpdateElasticsearchDomainConfigRequest,UpdateElasticsearchDomainConfigResult> asyncHandler)
AWSElasticsearchAsync
Modifies the cluster configuration of the specified Elasticsearch domain, setting as setting the instance type and the number of instances.
updateElasticsearchDomainConfigAsync
in interface AWSElasticsearchAsync
request
- Container for the parameters to the UpdateElasticsearchDomain
operation. Specifies the
type and number of instances in the domain cluster.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public void shutdown()
getExecutorService().shutdown()
followed by getExecutorService().awaitTermination()
prior to
calling this method.shutdown
in interface AWSElasticsearch
shutdown
in class AmazonWebServiceClient
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.