@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") 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_METRICENDPOINT_PREFIX| Constructor and Description |
|---|
AWSElasticsearchClient()
Deprecated.
|
AWSElasticsearchClient(AWSCredentials awsCredentials)
Deprecated.
use
AwsClientBuilder.withCredentials(AWSCredentialsProvider) for example:
AWSElasticsearchClientBuilder.standard().withCredentials(new AWSStaticCredentialsProvider(awsCredentials)).build(); |
AWSElasticsearchClient(AWSCredentials awsCredentials,
ClientConfiguration clientConfiguration)
|
AWSElasticsearchClient(AWSCredentialsProvider awsCredentialsProvider)
Deprecated.
|
AWSElasticsearchClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration)
|
AWSElasticsearchClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration,
RequestMetricCollector requestMetricCollector)
|
AWSElasticsearchClient(ClientConfiguration clientConfiguration)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
AddTagsResult |
addTags(AddTagsRequest request)
Attaches tags to an existing Elasticsearch domain.
|
static AWSElasticsearchClientBuilder |
builder() |
CreateElasticsearchDomainResult |
createElasticsearchDomain(CreateElasticsearchDomainRequest request)
Creates a new Elasticsearch domain.
|
DeleteElasticsearchDomainResult |
deleteElasticsearchDomain(DeleteElasticsearchDomainRequest request)
Permanently deletes the specified Elasticsearch domain and all of its data.
|
DescribeElasticsearchDomainResult |
describeElasticsearchDomain(DescribeElasticsearchDomainRequest request)
Returns domain configuration information about the specified Elasticsearch domain, including the domain ID,
domain endpoint, and domain ARN.
|
DescribeElasticsearchDomainConfigResult |
describeElasticsearchDomainConfig(DescribeElasticsearchDomainConfigRequest request)
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 request)
Returns domain configuration information about the specified Elasticsearch domains, including the domain ID,
domain endpoint, and domain ARN.
|
DescribeElasticsearchInstanceTypeLimitsResult |
describeElasticsearchInstanceTypeLimits(DescribeElasticsearchInstanceTypeLimitsRequest request)
Describe Elasticsearch Limits for a given InstanceType and ElasticsearchVersion.
|
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 request)
Returns the name of all Elasticsearch domains owned by the current user's account.
|
ListElasticsearchInstanceTypesResult |
listElasticsearchInstanceTypes(ListElasticsearchInstanceTypesRequest request)
List all Elasticsearch instance types that are supported for given ElasticsearchVersion
|
ListElasticsearchVersionsResult |
listElasticsearchVersions(ListElasticsearchVersionsRequest request)
List all supported Elasticsearch versions
|
ListTagsResult |
listTags(ListTagsRequest request)
Returns all tags for the given Elasticsearch domain.
|
RemoveTagsResult |
removeTags(RemoveTagsRequest request)
Removes the specified set of tags from the specified Elasticsearch domain.
|
UpdateElasticsearchDomainConfigResult |
updateElasticsearchDomainConfig(UpdateElasticsearchDomainConfigRequest request)
Modifies the cluster configuration of the specified Elasticsearch domain, setting as setting the instance type
and the number of instances.
|
addRequestHandler, addRequestHandler, configureRegion, getEndpointPrefix, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, shutdown, withEndpoint, withRegion, withRegion, withTimeOffsetequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetEndpoint, setRegion, shutdown@Deprecated public AWSElasticsearchClient()
AWSElasticsearchClientBuilder.defaultClient()All service calls made using this new client object are blocking, and will not return until the service call completes.
DefaultAWSCredentialsProviderChain@Deprecated public AWSElasticsearchClient(ClientConfiguration clientConfiguration)
AwsClientBuilder.withClientConfiguration(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.).DefaultAWSCredentialsProviderChain@Deprecated public AWSElasticsearchClient(AWSCredentials awsCredentials)
AwsClientBuilder.withCredentials(AWSCredentialsProvider) for example:
AWSElasticsearchClientBuilder.standard().withCredentials(new AWSStaticCredentialsProvider(awsCredentials)).build();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.@Deprecated public AWSElasticsearchClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration)
AwsClientBuilder.withCredentials(AWSCredentialsProvider) and
AwsClientBuilder.withClientConfiguration(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.).@Deprecated public AWSElasticsearchClient(AWSCredentialsProvider awsCredentialsProvider)
AwsClientBuilder.withCredentials(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.@Deprecated public AWSElasticsearchClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration)
AwsClientBuilder.withCredentials(AWSCredentialsProvider) and
AwsClientBuilder.withClientConfiguration(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.).@Deprecated public AWSElasticsearchClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, RequestMetricCollector requestMetricCollector)
AwsClientBuilder.withCredentials(AWSCredentialsProvider) and
AwsClientBuilder.withClientConfiguration(ClientConfiguration) and
AwsClientBuilder.withMetricsCollector(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 static AWSElasticsearchClientBuilder builder()
public AddTagsResult addTags(AddTagsRequest request)
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 request)
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 request)
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 request)
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 request)
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 request)
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 DescribeElasticsearchInstanceTypeLimitsResult describeElasticsearchInstanceTypeLimits(DescribeElasticsearchInstanceTypeLimitsRequest request)
Describe Elasticsearch Limits for a given InstanceType and ElasticsearchVersion. When modifying existing Domain,
specify the DomainName to know what Limits are supported for modifying.
describeElasticsearchInstanceTypeLimits in interface AWSElasticsearchdescribeElasticsearchInstanceTypeLimitsRequest - Container for the parameters to DescribeElasticsearchInstanceTypeLimits 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.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 ListDomainNamesResult listDomainNames(ListDomainNamesRequest request)
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 ListElasticsearchInstanceTypesResult listElasticsearchInstanceTypes(ListElasticsearchInstanceTypesRequest request)
List all Elasticsearch instance types that are supported for given ElasticsearchVersion
listElasticsearchInstanceTypes in interface AWSElasticsearchlistElasticsearchInstanceTypesRequest - Container for the parameters to the ListElasticsearchInstanceTypes 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 ListElasticsearchVersionsResult listElasticsearchVersions(ListElasticsearchVersionsRequest request)
List all supported Elasticsearch versions
listElasticsearchVersions in interface AWSElasticsearchlistElasticsearchVersionsRequest - 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.
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 ListTagsResult listTags(ListTagsRequest request)
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 RemoveTagsResult removeTags(RemoveTagsRequest request)
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 request)
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.