@ThreadSafe public class AWSElasticsearchClient extends AmazonWebServiceClient implements AWSElasticsearch
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| Constructor and Description |
|---|
AWSElasticsearchClient()
Constructs a new client to invoke service methods on Amazon Elasticsearch
Service.
|
AWSElasticsearchClient(AWSCredentials awsCredentials)
Constructs a new client to invoke service methods on Amazon Elasticsearch
Service using the specified AWS account credentials.
|
AWSElasticsearchClient(AWSCredentials awsCredentials,
ClientConfiguration clientConfiguration)
Constructs a new client to invoke service methods on Amazon Elasticsearch
Service using the specified AWS account credentials and client
configuration options.
|
AWSElasticsearchClient(AWSCredentialsProvider awsCredentialsProvider)
Constructs a new client to invoke service methods on Amazon Elasticsearch
Service using the specified AWS account credentials provider.
|
AWSElasticsearchClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration)
Constructs a new client to invoke service methods on Amazon Elasticsearch
Service using the specified AWS account credentials provider and client
configuration options.
|
AWSElasticsearchClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration,
RequestMetricCollector requestMetricCollector)
Constructs a new client to invoke service methods on Amazon Elasticsearch
Service using the specified AWS account credentials provider, client
configuration options, and request metric collector.
|
AWSElasticsearchClient(ClientConfiguration clientConfiguration)
Constructs a new client to invoke service methods on Amazon Elasticsearch
Service.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTags(AddTagsRequest addTagsRequest)
Attaches tags to an existing Elasticsearch domain.
|
CreateElasticsearchDomainResult |
createElasticsearchDomain(CreateElasticsearchDomainRequest createElasticsearchDomainRequest)
Creates a new Elasticsearch domain.
|
DeleteElasticsearchDomainResult |
deleteElasticsearchDomain(DeleteElasticsearchDomainRequest deleteElasticsearchDomainRequest)
Permanently deletes the specified Elasticsearch domain and all of its
data.
|
DescribeElasticsearchDomainResult |
describeElasticsearchDomain(DescribeElasticsearchDomainRequest describeElasticsearchDomainRequest)
Returns domain configuration information about the specified
Elasticsearch domain, including the domain ID, domain endpoint, and
domain ARN.
|
DescribeElasticsearchDomainConfigResult |
describeElasticsearchDomainConfig(DescribeElasticsearchDomainConfigRequest describeElasticsearchDomainConfigRequest)
Provides cluster configuration information about the specified
Elasticsearch domain, such as the state, creation date, update version,
and update date for cluster options.
|
DescribeElasticsearchDomainsResult |
describeElasticsearchDomains(DescribeElasticsearchDomainsRequest describeElasticsearchDomainsRequest)
Returns domain configuration information about the specified
Elasticsearch domains, including the domain ID, domain endpoint, and
domain ARN.
|
ResponseMetadata |
getCachedResponseMetadata(AmazonWebServiceRequest request)
Returns additional metadata for a previously executed successful,
request, typically used for debugging issues where a service isn't acting
as expected.
|
ListDomainNamesResult |
listDomainNames(ListDomainNamesRequest listDomainNamesRequest)
Returns the name of all Elasticsearch domains owned by the current user's
account.
|
ListTagsResult |
listTags(ListTagsRequest listTagsRequest)
Returns all tags for the given Elasticsearch domain.
|
void |
removeTags(RemoveTagsRequest removeTagsRequest)
Removes the specified set of tags from the specified Elasticsearch
domain.
|
UpdateElasticsearchDomainConfigResult |
updateElasticsearchDomainConfig(UpdateElasticsearchDomainConfigRequest updateElasticsearchDomainConfigRequest)
Modifies the cluster configuration of the specified Elasticsearch domain,
setting as setting the instance type and the number of instances.
|
addRequestHandler, addRequestHandler, configureRegion, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerRegionOverride, getTimeOffset, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, shutdown, withEndpoint, withRegion, withRegion, withTimeOffsetequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetEndpoint, setRegion, shutdownpublic AWSElasticsearchClient()
All service calls made using this new client object are blocking, and will not return until the service call completes.
DefaultAWSCredentialsProviderChainpublic AWSElasticsearchClient(ClientConfiguration clientConfiguration)
All service calls made using this new client object are blocking, and will not return until the service call completes.
clientConfiguration - The client configuration options controlling how this client
connects to Amazon Elasticsearch Service (ex: proxy settings,
retry counts, etc.).DefaultAWSCredentialsProviderChainpublic AWSElasticsearchClient(AWSCredentials awsCredentials)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentials - The AWS credentials (access key ID and secret key) to use when
authenticating with AWS services.public AWSElasticsearchClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentials - The AWS credentials (access key ID and secret key) to use when
authenticating with AWS services.clientConfiguration - The client configuration options controlling how this client
connects to Amazon Elasticsearch Service (ex: proxy settings,
retry counts, etc.).public AWSElasticsearchClient(AWSCredentialsProvider awsCredentialsProvider)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentialsProvider - The AWS credentials provider which will provide credentials to
authenticate requests with AWS services.public AWSElasticsearchClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentialsProvider - The AWS credentials provider which will provide credentials to
authenticate requests with AWS services.clientConfiguration - The client configuration options controlling how this client
connects to Amazon Elasticsearch Service (ex: proxy settings,
retry counts, etc.).public AWSElasticsearchClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, RequestMetricCollector requestMetricCollector)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentialsProvider - The AWS credentials provider which will provide credentials to
authenticate requests with AWS services.clientConfiguration - The client configuration options controlling how this client
connects to Amazon Elasticsearch Service (ex: proxy settings,
retry counts, etc.).requestMetricCollector - optional request metric collectorpublic void addTags(AddTagsRequest addTagsRequest)
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.
addTags in interface AWSElasticsearchaddTagsRequest - Container for the parameters to the AddTags
operation. Specify the tags that you want to attach to the
Elasticsearch domain.BaseException - An error occurred while processing the request.LimitExceededException - An exception for trying to create more than allowed resources or
sub-resources. Gives http status code of 409.ValidationException - An exception for missing / invalid input fields. Gives http
status code of 400.InternalException - The request processing has failed because of an unknown error,
exception or failure (the failure is internal to the service) .
Gives http status code of 500.public CreateElasticsearchDomainResult createElasticsearchDomain(CreateElasticsearchDomainRequest createElasticsearchDomainRequest)
Creates a new Elasticsearch domain. For more information, see Creating Elasticsearch Domains in the Amazon Elasticsearch Service Developer Guide.
createElasticsearchDomain in interface AWSElasticsearchcreateElasticsearchDomainRequest - BaseException - An error occurred while processing the request.DisabledOperationException - An error occured because the client wanted to access a not
supported operation. Gives http status code of 409.InternalException - The request processing has failed because of an unknown error,
exception or failure (the failure is internal to the service) .
Gives http status code of 500.InvalidTypeException - An exception for trying to create or access sub-resource that is
either invalid or not supported. Gives http status code of 409.LimitExceededException - An exception for trying to create more than allowed resources or
sub-resources. Gives http status code of 409.ResourceAlreadyExistsException - An exception for creating a resource that already exists. Gives
http status code of 400.ValidationException - An exception for missing / invalid input fields. Gives http
status code of 400.public DeleteElasticsearchDomainResult deleteElasticsearchDomain(DeleteElasticsearchDomainRequest deleteElasticsearchDomainRequest)
Permanently deletes the specified Elasticsearch domain and all of its data. Once a domain is deleted, it cannot be recovered.
deleteElasticsearchDomain in interface AWSElasticsearchdeleteElasticsearchDomainRequest - Container for the parameters to the
DeleteElasticsearchDomain operation. Specifies
the name of the Elasticsearch domain that you want to delete.BaseException - An error occurred while processing the request.InternalException - The request processing has failed because of an unknown error,
exception or failure (the failure is internal to the service) .
Gives http status code of 500.ResourceNotFoundException - An exception for accessing or deleting a resource that does not
exist. Gives http status code of 400.ValidationException - An exception for missing / invalid input fields. Gives http
status code of 400.public DescribeElasticsearchDomainResult describeElasticsearchDomain(DescribeElasticsearchDomainRequest describeElasticsearchDomainRequest)
Returns domain configuration information about the specified Elasticsearch domain, including the domain ID, domain endpoint, and domain ARN.
describeElasticsearchDomain in interface AWSElasticsearchdescribeElasticsearchDomainRequest - Container for the parameters to the
DescribeElasticsearchDomain operation.BaseException - An error occurred while processing the request.InternalException - The request processing has failed because of an unknown error,
exception or failure (the failure is internal to the service) .
Gives http status code of 500.ResourceNotFoundException - An exception for accessing or deleting a resource that does not
exist. Gives http status code of 400.ValidationException - An exception for missing / invalid input fields. Gives http
status code of 400.public DescribeElasticsearchDomainConfigResult describeElasticsearchDomainConfig(DescribeElasticsearchDomainConfigRequest describeElasticsearchDomainConfigRequest)
Provides cluster configuration information about the specified Elasticsearch domain, such as the state, creation date, update version, and update date for cluster options.
describeElasticsearchDomainConfig in interface AWSElasticsearchdescribeElasticsearchDomainConfigRequest - Container for the parameters to the
DescribeElasticsearchDomainConfig operation.
Specifies the domain name for which you want configuration
information.BaseException - An error occurred while processing the request.InternalException - The request processing has failed because of an unknown error,
exception or failure (the failure is internal to the service) .
Gives http status code of 500.ResourceNotFoundException - An exception for accessing or deleting a resource that does not
exist. Gives http status code of 400.ValidationException - An exception for missing / invalid input fields. Gives http
status code of 400.public DescribeElasticsearchDomainsResult describeElasticsearchDomains(DescribeElasticsearchDomainsRequest describeElasticsearchDomainsRequest)
Returns domain configuration information about the specified Elasticsearch domains, including the domain ID, domain endpoint, and domain ARN.
describeElasticsearchDomains in interface AWSElasticsearchdescribeElasticsearchDomainsRequest - Container for the parameters to the
DescribeElasticsearchDomains operation. By
default, the API returns the status of all Elasticsearch domains.BaseException - An error occurred while processing the request.InternalException - The request processing has failed because of an unknown error,
exception or failure (the failure is internal to the service) .
Gives http status code of 500.ValidationException - An exception for missing / invalid input fields. Gives http
status code of 400.public ListDomainNamesResult listDomainNames(ListDomainNamesRequest listDomainNamesRequest)
Returns the name of all Elasticsearch domains owned by the current user's account.
listDomainNames in interface AWSElasticsearchlistDomainNamesRequest - BaseException - An error occurred while processing the request.ValidationException - An exception for missing / invalid input fields. Gives http
status code of 400.public ListTagsResult listTags(ListTagsRequest listTagsRequest)
Returns all tags for the given Elasticsearch domain.
listTags in interface AWSElasticsearchlistTagsRequest - 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.BaseException - An error occurred while processing the request.ResourceNotFoundException - An exception for accessing or deleting a resource that does not
exist. Gives http status code of 400.ValidationException - An exception for missing / invalid input fields. Gives http
status code of 400.InternalException - The request processing has failed because of an unknown error,
exception or failure (the failure is internal to the service) .
Gives http status code of 500.public void removeTags(RemoveTagsRequest removeTagsRequest)
Removes the specified set of tags from the specified Elasticsearch domain.
removeTags in interface AWSElasticsearchremoveTagsRequest - Container for the parameters to the RemoveTags
operation. Specify the ARN for the Elasticsearch
domain from which you want to remove the specified
TagKey.BaseException - An error occurred while processing the request.ValidationException - An exception for missing / invalid input fields. Gives http
status code of 400.InternalException - The request processing has failed because of an unknown error,
exception or failure (the failure is internal to the service) .
Gives http status code of 500.public UpdateElasticsearchDomainConfigResult updateElasticsearchDomainConfig(UpdateElasticsearchDomainConfigRequest updateElasticsearchDomainConfigRequest)
Modifies the cluster configuration of the specified Elasticsearch domain, setting as setting the instance type and the number of instances.
updateElasticsearchDomainConfig in interface AWSElasticsearchupdateElasticsearchDomainConfigRequest - Container for the parameters to the
UpdateElasticsearchDomain operation. Specifies
the type and number of instances in the domain cluster.BaseException - An error occurred while processing the request.InternalException - The request processing has failed because of an unknown error,
exception or failure (the failure is internal to the service) .
Gives http status code of 500.InvalidTypeException - An exception for trying to create or access sub-resource that is
either invalid or not supported. Gives http status code of 409.LimitExceededException - An exception for trying to create more than allowed resources or
sub-resources. Gives http status code of 409.ResourceNotFoundException - An exception for accessing or deleting a resource that does not
exist. Gives http status code of 400.ValidationException - An exception for missing / invalid input fields. Gives http
status code of 400.public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing the request.
getCachedResponseMetadata in interface AWSElasticsearchrequest - The originally executed requestCopyright © 2013 Amazon Web Services, Inc. All Rights Reserved.