public class AbstractAWSElasticsearch extends Object implements AWSElasticsearch
AWSElasticsearch
. Convenient method forms
pass through to the corresponding overload that takes a request object, which
throws an UnsupportedOperationException
.Modifier | Constructor and Description |
---|---|
protected |
AbstractAWSElasticsearch() |
Modifier and Type | Method and Description |
---|---|
void |
addTags(AddTagsRequest request)
Attaches tags to an existing Elasticsearch domain.
|
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.
|
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.
|
ListTagsResult |
listTags(ListTagsRequest request)
Returns all tags for the given Elasticsearch domain.
|
void |
removeTags(RemoveTagsRequest request)
Removes the specified set of tags from the specified Elasticsearch
domain.
|
void |
setEndpoint(String endpoint)
Overrides the default endpoint for this client
("https://es.us-east-1.amazonaws.com").
|
void |
setRegion(Region region)
An alternative to
AWSElasticsearch.setEndpoint(String) , sets the
regional endpoint for this client's service calls. |
void |
shutdown()
Shuts down this client object, releasing any resources that might be held
open.
|
UpdateElasticsearchDomainConfigResult |
updateElasticsearchDomainConfig(UpdateElasticsearchDomainConfigRequest request)
Modifies the cluster configuration of the specified Elasticsearch domain,
setting as setting the instance type and the number of instances.
|
public void setEndpoint(String endpoint)
AWSElasticsearch
Callers can pass in just the endpoint (ex: "es.us-east-1.amazonaws.com")
or a full URL, including the protocol (ex:
"https://es.us-east-1.amazonaws.com"). If the protocol is not specified
here, the default protocol from this client's ClientConfiguration
will be used, which by default is HTTPS.
For more information on using AWS regions with the AWS SDK for Java, and a complete list of all available endpoints for all AWS services, see: http://developer.amazonwebservices.com/connect/entry.jspa?externalID= 3912
This method is not threadsafe. An endpoint should be configured when the client is created and before any service requests are made. Changing it afterwards creates inevitable race conditions for any service requests in transit or retrying.
setEndpoint
in interface AWSElasticsearch
endpoint
- The endpoint (ex: "es.us-east-1.amazonaws.com") or a full URL,
including the protocol (ex: "https://es.us-east-1.amazonaws.com")
of the region specific AWS endpoint this client will communicate
with.public void setRegion(Region region)
AWSElasticsearch
AWSElasticsearch.setEndpoint(String)
, sets the
regional endpoint for this client's service calls. Callers can use this
method to control which AWS region they want to work with.
By default, all service endpoints in all regions use the https protocol.
To use http instead, specify it in the ClientConfiguration
supplied at construction.
This method is not threadsafe. A region should be configured when the client is created and before any service requests are made. Changing it afterwards creates inevitable race conditions for any service requests in transit or retrying.
setRegion
in interface AWSElasticsearch
region
- The region this client will communicate with. See
Region.getRegion(com.amazonaws.regions.Regions)
for
accessing a given region. Must not be null and must be a region
where the service is available.Region.getRegion(com.amazonaws.regions.Regions)
,
Region.createClient(Class,
com.amazonaws.auth.AWSCredentialsProvider, ClientConfiguration)
,
Region.isServiceSupported(String)
public void addTags(AddTagsRequest request)
AWSElasticsearch
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 AWSElasticsearch
request
- Container for the parameters to the AddTags
operation. Specify the tags that you want to attach to the
Elasticsearch domain.public CreateElasticsearchDomainResult createElasticsearchDomain(CreateElasticsearchDomainRequest request)
AWSElasticsearch
Creates a new Elasticsearch domain. For more information, see Creating Elasticsearch Domains in the Amazon Elasticsearch Service Developer Guide.
createElasticsearchDomain
in interface AWSElasticsearch
public DeleteElasticsearchDomainResult deleteElasticsearchDomain(DeleteElasticsearchDomainRequest request)
AWSElasticsearch
Permanently deletes the specified Elasticsearch domain and all of its data. Once a domain is deleted, it cannot be recovered.
deleteElasticsearchDomain
in interface AWSElasticsearch
request
- Container for the parameters to the
DeleteElasticsearchDomain
operation. Specifies
the name of the Elasticsearch domain that you want to delete.public DescribeElasticsearchDomainResult describeElasticsearchDomain(DescribeElasticsearchDomainRequest request)
AWSElasticsearch
Returns domain configuration information about the specified Elasticsearch domain, including the domain ID, domain endpoint, and domain ARN.
describeElasticsearchDomain
in interface AWSElasticsearch
request
- Container for the parameters to the
DescribeElasticsearchDomain
operation.public DescribeElasticsearchDomainConfigResult describeElasticsearchDomainConfig(DescribeElasticsearchDomainConfigRequest request)
AWSElasticsearch
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 AWSElasticsearch
request
- Container for the parameters to the
DescribeElasticsearchDomainConfig
operation.
Specifies the domain name for which you want configuration
information.public DescribeElasticsearchDomainsResult describeElasticsearchDomains(DescribeElasticsearchDomainsRequest request)
AWSElasticsearch
Returns domain configuration information about the specified Elasticsearch domains, including the domain ID, domain endpoint, and domain ARN.
describeElasticsearchDomains
in interface AWSElasticsearch
request
- Container for the parameters to the
DescribeElasticsearchDomains
operation. By
default, the API returns the status of all Elasticsearch domains.public ListDomainNamesResult listDomainNames(ListDomainNamesRequest request)
AWSElasticsearch
Returns the name of all Elasticsearch domains owned by the current user's account.
listDomainNames
in interface AWSElasticsearch
public ListTagsResult listTags(ListTagsRequest request)
AWSElasticsearch
Returns all tags for the given Elasticsearch domain.
listTags
in interface AWSElasticsearch
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 void removeTags(RemoveTagsRequest request)
AWSElasticsearch
Removes the specified set of tags from the specified Elasticsearch domain.
removeTags
in interface AWSElasticsearch
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 UpdateElasticsearchDomainConfigResult updateElasticsearchDomainConfig(UpdateElasticsearchDomainConfigRequest request)
AWSElasticsearch
Modifies the cluster configuration of the specified Elasticsearch domain, setting as setting the instance type and the number of instances.
updateElasticsearchDomainConfig
in interface AWSElasticsearch
request
- Container for the parameters to the
UpdateElasticsearchDomain
operation. Specifies
the type and number of instances in the domain cluster.public void shutdown()
AWSElasticsearch
shutdown
in interface AWSElasticsearch
public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
AWSElasticsearch
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 a request.
getCachedResponseMetadata
in interface AWSElasticsearch
request
- The originally executed request.Copyright © 2016. All rights reserved.