/* * Copyright 2018-2023 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.elasticsearch; import org.w3c.dom.*; import java.net.*; import java.util.*; import javax.annotation.Generated; import org.apache.commons.logging.*; import com.amazonaws.*; import com.amazonaws.annotation.SdkInternalApi; import com.amazonaws.auth.*; import com.amazonaws.handlers.*; import com.amazonaws.http.*; import com.amazonaws.internal.*; import com.amazonaws.internal.auth.*; import com.amazonaws.metrics.*; import com.amazonaws.regions.*; import com.amazonaws.transform.*; import com.amazonaws.util.*; import com.amazonaws.protocol.json.*; import com.amazonaws.util.AWSRequestMetrics.Field; import com.amazonaws.annotation.ThreadSafe; import com.amazonaws.client.AwsSyncClientParams; import com.amazonaws.client.builder.AdvancedConfig; import com.amazonaws.services.elasticsearch.AWSElasticsearchClientBuilder; import com.amazonaws.AmazonServiceException; import com.amazonaws.services.elasticsearch.model.*; import com.amazonaws.services.elasticsearch.model.transform.*; /** * Client for accessing Amazon Elasticsearch Service. All service calls made using this client are blocking, and will * not return until the service call completes. *
*
* Use the Amazon Elasticsearch Configuration API to create, configure, and manage Elasticsearch domains. *
** For sample code that uses the Configuration API, see the Amazon * Elasticsearch Service Developer Guide. The guide also contains sample code * for sending signed HTTP requests to the Elasticsearch APIs. *
** 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. *
*/ @ThreadSafe @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AWSElasticsearchClient extends AmazonWebServiceClient implements AWSElasticsearch { /** Provider for AWS credentials. */ private final AWSCredentialsProvider awsCredentialsProvider; private static final Log log = LogFactory.getLog(AWSElasticsearch.class); /** Default signing name for the service. */ private static final String DEFAULT_SIGNING_NAME = "es"; /** Client configuration factory providing ClientConfigurations tailored to this client */ protected static final ClientConfigurationFactory configFactory = new ClientConfigurationFactory(); private final AdvancedConfig advancedConfig; private static final com.amazonaws.protocol.json.SdkJsonProtocolFactory protocolFactory = new com.amazonaws.protocol.json.SdkJsonProtocolFactory( new JsonClientMetadata() .withProtocolVersion("1.1") .withSupportsCbor(false) .withSupportsIon(false) .withContentTypeOverride("application/json") .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("DisabledOperationException").withExceptionUnmarshaller( com.amazonaws.services.elasticsearch.model.transform.DisabledOperationExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("LimitExceededException").withExceptionUnmarshaller( com.amazonaws.services.elasticsearch.model.transform.LimitExceededExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("InvalidTypeException").withExceptionUnmarshaller( com.amazonaws.services.elasticsearch.model.transform.InvalidTypeExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("ResourceNotFoundException").withExceptionUnmarshaller( com.amazonaws.services.elasticsearch.model.transform.ResourceNotFoundExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("ValidationException").withExceptionUnmarshaller( com.amazonaws.services.elasticsearch.model.transform.ValidationExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("ResourceAlreadyExistsException").withExceptionUnmarshaller( com.amazonaws.services.elasticsearch.model.transform.ResourceAlreadyExistsExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("InternalException").withExceptionUnmarshaller( com.amazonaws.services.elasticsearch.model.transform.InternalExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("InvalidPaginationTokenException").withExceptionUnmarshaller( com.amazonaws.services.elasticsearch.model.transform.InvalidPaginationTokenExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("AccessDeniedException").withExceptionUnmarshaller( com.amazonaws.services.elasticsearch.model.transform.AccessDeniedExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("ConflictException").withExceptionUnmarshaller( com.amazonaws.services.elasticsearch.model.transform.ConflictExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("BaseException").withExceptionUnmarshaller( com.amazonaws.services.elasticsearch.model.transform.BaseExceptionUnmarshaller.getInstance())) .withBaseServiceExceptionClass(com.amazonaws.services.elasticsearch.model.AWSElasticsearchException.class)); /** * Constructs a new client to invoke service methods on Amazon Elasticsearch Service. A credentials provider chain * will be used that searches for credentials in this order: ** All service calls made using this new client object are blocking, and will not return until the service call * completes. * * @see DefaultAWSCredentialsProviderChain * @deprecated use {@link AWSElasticsearchClientBuilder#defaultClient()} */ @Deprecated public AWSElasticsearchClient() { this(DefaultAWSCredentialsProviderChain.getInstance(), configFactory.getConfig()); } /** * Constructs a new client to invoke service methods on Amazon Elasticsearch Service. A credentials provider chain * will be used that searches for credentials in this order: *
* All service calls made using this new client object are blocking, and will not return until the service call * completes. * * @param clientConfiguration * The client configuration options controlling how this client connects to Amazon Elasticsearch Service (ex: * proxy settings, retry counts, etc.). * * @see DefaultAWSCredentialsProviderChain * @deprecated use {@link AWSElasticsearchClientBuilder#withClientConfiguration(ClientConfiguration)} */ @Deprecated public AWSElasticsearchClient(ClientConfiguration clientConfiguration) { this(DefaultAWSCredentialsProviderChain.getInstance(), clientConfiguration); } /** * Constructs a new client to invoke service methods on Amazon Elasticsearch Service using the specified AWS account * credentials. * *
* All service calls made using this new client object are blocking, and will not return until the service call * completes. * * @param awsCredentials * The AWS credentials (access key ID and secret key) to use when authenticating with AWS services. * @deprecated use {@link AWSElasticsearchClientBuilder#withCredentials(AWSCredentialsProvider)} for example: * {@code AWSElasticsearchClientBuilder.standard().withCredentials(new AWSStaticCredentialsProvider(awsCredentials)).build();} */ @Deprecated public AWSElasticsearchClient(AWSCredentials awsCredentials) { this(awsCredentials, configFactory.getConfig()); } /** * Constructs a new client to invoke service methods on Amazon Elasticsearch Service using the specified AWS account * credentials and client configuration options. * *
* All service calls made using this new client object are blocking, and will not return until the service call * completes. * * @param awsCredentials * The AWS credentials (access key ID and secret key) to use when authenticating with AWS services. * @param clientConfiguration * The client configuration options controlling how this client connects to Amazon Elasticsearch Service (ex: * proxy settings, retry counts, etc.). * @deprecated use {@link AWSElasticsearchClientBuilder#withCredentials(AWSCredentialsProvider)} and * {@link AWSElasticsearchClientBuilder#withClientConfiguration(ClientConfiguration)} */ @Deprecated public AWSElasticsearchClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration) { super(clientConfiguration); this.awsCredentialsProvider = new StaticCredentialsProvider(awsCredentials); this.advancedConfig = AdvancedConfig.EMPTY; init(); } /** * Constructs a new client to invoke service methods on Amazon Elasticsearch Service using the specified AWS account * credentials provider. * *
* All service calls made using this new client object are blocking, and will not return until the service call * completes. * * @param awsCredentialsProvider * The AWS credentials provider which will provide credentials to authenticate requests with AWS services. * @deprecated use {@link AWSElasticsearchClientBuilder#withCredentials(AWSCredentialsProvider)} */ @Deprecated public AWSElasticsearchClient(AWSCredentialsProvider awsCredentialsProvider) { this(awsCredentialsProvider, configFactory.getConfig()); } /** * Constructs a new client to invoke service methods on Amazon Elasticsearch Service using the specified AWS account * credentials provider and client configuration options. * *
* All service calls made using this new client object are blocking, and will not return until the service call * completes. * * @param awsCredentialsProvider * The AWS credentials provider which will provide credentials to authenticate requests with AWS services. * @param clientConfiguration * The client configuration options controlling how this client connects to Amazon Elasticsearch Service (ex: * proxy settings, retry counts, etc.). * @deprecated use {@link AWSElasticsearchClientBuilder#withCredentials(AWSCredentialsProvider)} and * {@link AWSElasticsearchClientBuilder#withClientConfiguration(ClientConfiguration)} */ @Deprecated public AWSElasticsearchClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration) { this(awsCredentialsProvider, clientConfiguration, null); } /** * 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. * *
* All service calls made using this new client object are blocking, and will not return until the service call * completes. * * @param awsCredentialsProvider * The AWS credentials provider which will provide credentials to authenticate requests with AWS services. * @param clientConfiguration * The client configuration options controlling how this client connects to Amazon Elasticsearch Service (ex: * proxy settings, retry counts, etc.). * @param requestMetricCollector * optional request metric collector * @deprecated use {@link AWSElasticsearchClientBuilder#withCredentials(AWSCredentialsProvider)} and * {@link AWSElasticsearchClientBuilder#withClientConfiguration(ClientConfiguration)} and * {@link AWSElasticsearchClientBuilder#withMetricsCollector(RequestMetricCollector)} */ @Deprecated public AWSElasticsearchClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, RequestMetricCollector requestMetricCollector) { super(clientConfiguration, requestMetricCollector); this.awsCredentialsProvider = awsCredentialsProvider; this.advancedConfig = AdvancedConfig.EMPTY; init(); } public static AWSElasticsearchClientBuilder builder() { return AWSElasticsearchClientBuilder.standard(); } /** * Constructs a new client to invoke service methods on Amazon Elasticsearch Service using the specified parameters. * *
* All service calls made using this new client object are blocking, and will not return until the service call * completes. * * @param clientParams * Object providing client parameters. */ AWSElasticsearchClient(AwsSyncClientParams clientParams) { this(clientParams, false); } /** * Constructs a new client to invoke service methods on Amazon Elasticsearch Service using the specified parameters. * *
* All service calls made using this new client object are blocking, and will not return until the service call * completes. * * @param clientParams * Object providing client parameters. */ AWSElasticsearchClient(AwsSyncClientParams clientParams, boolean endpointDiscoveryEnabled) { super(clientParams); this.awsCredentialsProvider = clientParams.getCredentialsProvider(); this.advancedConfig = clientParams.getAdvancedConfig(); init(); } private void init() { setServiceNameIntern(DEFAULT_SIGNING_NAME); setEndpointPrefix(ENDPOINT_PREFIX); // calling this.setEndPoint(...) will also modify the signer accordingly setEndpoint("https://es.us-east-1.amazonaws.com"); HandlerChainFactory chainFactory = new HandlerChainFactory(); requestHandler2s.addAll(chainFactory.newRequestHandlerChain("/com/amazonaws/services/elasticsearch/request.handlers")); requestHandler2s.addAll(chainFactory.newRequestHandler2Chain("/com/amazonaws/services/elasticsearch/request.handler2s")); requestHandler2s.addAll(chainFactory.getGlobalHandlers()); } /** *
* Allows the destination domain owner to accept an inbound cross-cluster search connection request. *
* * @param acceptInboundCrossClusterSearchConnectionRequest * Container for the parameters to theAcceptInboundCrossClusterSearchConnection
* operation.
* @return Result of the AcceptInboundCrossClusterSearchConnection operation returned by the service.
* @throws ResourceNotFoundException
* An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.
* @throws LimitExceededException
* An exception for trying to create more than allowed resources or sub-resources. Gives http status code of
* 409.
* @throws DisabledOperationException
* An error occured because the client wanted to access a not supported operation. Gives http status code of
* 409.
* @sample AWSElasticsearch.AcceptInboundCrossClusterSearchConnection
*/
@Override
public AcceptInboundCrossClusterSearchConnectionResult acceptInboundCrossClusterSearchConnection(AcceptInboundCrossClusterSearchConnectionRequest request) {
request = beforeClientExecution(request);
return executeAcceptInboundCrossClusterSearchConnection(request);
}
@SdkInternalApi
final AcceptInboundCrossClusterSearchConnectionResult executeAcceptInboundCrossClusterSearchConnection(
AcceptInboundCrossClusterSearchConnectionRequest acceptInboundCrossClusterSearchConnectionRequest) {
ExecutionContext executionContext = createExecutionContext(acceptInboundCrossClusterSearchConnectionRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
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. *
* * @param addTagsRequest * Container for the parameters to theAddTags
operation. Specify the tags that you want
* to attach to the Elasticsearch domain.
* @return Result of the AddTags operation returned by the service.
* @throws BaseException
* An error occurred while processing the request.
* @throws LimitExceededException
* An exception for trying to create more than allowed resources or sub-resources. Gives http status code of
* 409.
* @throws ValidationException
* An exception for missing / invalid input fields. Gives http status code of 400.
* @throws 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.
* @sample AWSElasticsearch.AddTags
*/
@Override
public AddTagsResult addTags(AddTagsRequest request) {
request = beforeClientExecution(request);
return executeAddTags(request);
}
@SdkInternalApi
final AddTagsResult executeAddTags(AddTagsRequest addTagsRequest) {
ExecutionContext executionContext = createExecutionContext(addTagsRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request* Associates a package with an Amazon ES domain. *
* * @param associatePackageRequest * Container for request parameters to AssociatePackage
operation.
* @return Result of the AssociatePackage operation returned by the service.
* @throws BaseException
* An error occurred while processing the request.
* @throws 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.
* @throws ResourceNotFoundException
* An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.
* @throws AccessDeniedException
* An error occurred because user does not have permissions to access the resource. Returns HTTP status code
* 403.
* @throws ValidationException
* An exception for missing / invalid input fields. Gives http status code of 400.
* @throws ConflictException
* An error occurred because the client attempts to remove a resource that is currently in use. Returns HTTP
* status code 409.
* @sample AWSElasticsearch.AssociatePackage
*/
@Override
public AssociatePackageResult associatePackage(AssociatePackageRequest request) {
request = beforeClientExecution(request);
return executeAssociatePackage(request);
}
@SdkInternalApi
final AssociatePackageResult executeAssociatePackage(AssociatePackageRequest associatePackageRequest) {
ExecutionContext executionContext = createExecutionContext(associatePackageRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request* Provides access to an Amazon OpenSearch Service domain through the use of an interface VPC endpoint. *
* * @param authorizeVpcEndpointAccessRequest * Container for request parameters to theAuthorizeVpcEndpointAccess
operation.
* Specifies the account to be permitted to manage VPC endpoints against the domain.
* @return Result of the AuthorizeVpcEndpointAccess operation returned by the service.
* @throws ResourceNotFoundException
* An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.
* @throws DisabledOperationException
* An error occured because the client wanted to access a not supported operation. Gives http status code of
* 409.
* @throws LimitExceededException
* An exception for trying to create more than allowed resources or sub-resources. Gives http status code of
* 409.
* @throws ValidationException
* An exception for missing / invalid input fields. Gives http status code of 400.
* @throws 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.
* @throws BaseException
* An error occurred while processing the request.
* @sample AWSElasticsearch.AuthorizeVpcEndpointAccess
*/
@Override
public AuthorizeVpcEndpointAccessResult authorizeVpcEndpointAccess(AuthorizeVpcEndpointAccessRequest request) {
request = beforeClientExecution(request);
return executeAuthorizeVpcEndpointAccess(request);
}
@SdkInternalApi
final AuthorizeVpcEndpointAccessResult executeAuthorizeVpcEndpointAccess(AuthorizeVpcEndpointAccessRequest authorizeVpcEndpointAccessRequest) {
ExecutionContext executionContext = createExecutionContext(authorizeVpcEndpointAccessRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request
* Cancels a scheduled service software update for an Amazon ES domain. You can only perform this operation before
* the AutomatedUpdateDate
and when the UpdateStatus
is in the PENDING_UPDATE
* state.
*
CancelElasticsearchServiceSoftwareUpdate
* operation. Specifies the name of the Elasticsearch domain that you wish to cancel a service software
* update on.
* @return Result of the CancelElasticsearchServiceSoftwareUpdate operation returned by the service.
* @throws BaseException
* An error occurred while processing the request.
* @throws 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.
* @throws ResourceNotFoundException
* An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.
* @throws ValidationException
* An exception for missing / invalid input fields. Gives http status code of 400.
* @sample AWSElasticsearch.CancelElasticsearchServiceSoftwareUpdate
*/
@Override
public CancelElasticsearchServiceSoftwareUpdateResult cancelElasticsearchServiceSoftwareUpdate(CancelElasticsearchServiceSoftwareUpdateRequest request) {
request = beforeClientExecution(request);
return executeCancelElasticsearchServiceSoftwareUpdate(request);
}
@SdkInternalApi
final CancelElasticsearchServiceSoftwareUpdateResult executeCancelElasticsearchServiceSoftwareUpdate(
CancelElasticsearchServiceSoftwareUpdateRequest cancelElasticsearchServiceSoftwareUpdateRequest) {
ExecutionContext executionContext = createExecutionContext(cancelElasticsearchServiceSoftwareUpdateRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request* Creates a new Elasticsearch domain. For more information, see Creating Elasticsearch Domains in the Amazon Elasticsearch Service Developer Guide. *
* * @param createElasticsearchDomainRequest * @return Result of the CreateElasticsearchDomain operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws 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. * @throws InvalidTypeException * An exception for trying to create or access sub-resource that is either invalid or not supported. Gives * http status code of 409. * @throws LimitExceededException * An exception for trying to create more than allowed resources or sub-resources. Gives http status code of * 409. * @throws ResourceAlreadyExistsException * An exception for creating a resource that already exists. Gives http status code of 400. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @sample AWSElasticsearch.CreateElasticsearchDomain */ @Override public CreateElasticsearchDomainResult createElasticsearchDomain(CreateElasticsearchDomainRequest request) { request = beforeClientExecution(request); return executeCreateElasticsearchDomain(request); } @SdkInternalApi final CreateElasticsearchDomainResult executeCreateElasticsearchDomain(CreateElasticsearchDomainRequest createElasticsearchDomainRequest) { ExecutionContext executionContext = createExecutionContext(createElasticsearchDomainRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Creates a new cross-cluster search connection from a source domain to a destination domain. *
* * @param createOutboundCrossClusterSearchConnectionRequest * Container for the parameters to theCreateOutboundCrossClusterSearchConnection
* operation.
* @return Result of the CreateOutboundCrossClusterSearchConnection operation returned by the service.
* @throws LimitExceededException
* An exception for trying to create more than allowed resources or sub-resources. Gives http status code of
* 409.
* @throws 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.
* @throws ResourceAlreadyExistsException
* An exception for creating a resource that already exists. Gives http status code of 400.
* @throws DisabledOperationException
* An error occured because the client wanted to access a not supported operation. Gives http status code of
* 409.
* @sample AWSElasticsearch.CreateOutboundCrossClusterSearchConnection
*/
@Override
public CreateOutboundCrossClusterSearchConnectionResult createOutboundCrossClusterSearchConnection(CreateOutboundCrossClusterSearchConnectionRequest request) {
request = beforeClientExecution(request);
return executeCreateOutboundCrossClusterSearchConnection(request);
}
@SdkInternalApi
final CreateOutboundCrossClusterSearchConnectionResult executeCreateOutboundCrossClusterSearchConnection(
CreateOutboundCrossClusterSearchConnectionRequest createOutboundCrossClusterSearchConnectionRequest) {
ExecutionContext executionContext = createExecutionContext(createOutboundCrossClusterSearchConnectionRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request* Create a package for use with Amazon ES domains. *
* * @param createPackageRequest * Container for request parameters to CreatePackage
operation.
* @return Result of the CreatePackage operation returned by the service.
* @throws BaseException
* An error occurred while processing the request.
* @throws 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.
* @throws LimitExceededException
* An exception for trying to create more than allowed resources or sub-resources. Gives http status code of
* 409.
* @throws InvalidTypeException
* An exception for trying to create or access sub-resource that is either invalid or not supported. Gives
* http status code of 409.
* @throws ResourceAlreadyExistsException
* An exception for creating a resource that already exists. Gives http status code of 400.
* @throws AccessDeniedException
* An error occurred because user does not have permissions to access the resource. Returns HTTP status code
* 403.
* @throws ValidationException
* An exception for missing / invalid input fields. Gives http status code of 400.
* @sample AWSElasticsearch.CreatePackage
*/
@Override
public CreatePackageResult createPackage(CreatePackageRequest request) {
request = beforeClientExecution(request);
return executeCreatePackage(request);
}
@SdkInternalApi
final CreatePackageResult executeCreatePackage(CreatePackageRequest createPackageRequest) {
ExecutionContext executionContext = createExecutionContext(createPackageRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request* Creates an Amazon OpenSearch Service-managed VPC endpoint. *
* * @param createVpcEndpointRequest * Container for the parameters to theCreateVpcEndpointRequest
operation.
* @return Result of the CreateVpcEndpoint operation returned by the service.
* @throws ConflictException
* An error occurred because the client attempts to remove a resource that is currently in use. Returns HTTP
* status code 409.
* @throws ValidationException
* An exception for missing / invalid input fields. Gives http status code of 400.
* @throws LimitExceededException
* An exception for trying to create more than allowed resources or sub-resources. Gives http status code of
* 409.
* @throws 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.
* @throws DisabledOperationException
* An error occured because the client wanted to access a not supported operation. Gives http status code of
* 409.
* @throws BaseException
* An error occurred while processing the request.
* @sample AWSElasticsearch.CreateVpcEndpoint
*/
@Override
public CreateVpcEndpointResult createVpcEndpoint(CreateVpcEndpointRequest request) {
request = beforeClientExecution(request);
return executeCreateVpcEndpoint(request);
}
@SdkInternalApi
final CreateVpcEndpointResult executeCreateVpcEndpoint(CreateVpcEndpointRequest createVpcEndpointRequest) {
ExecutionContext executionContext = createExecutionContext(createVpcEndpointRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request* Permanently deletes the specified Elasticsearch domain and all of its data. Once a domain is deleted, it cannot * be recovered. *
* * @param deleteElasticsearchDomainRequest * Container for the parameters to theDeleteElasticsearchDomain
operation. Specifies the
* name of the Elasticsearch domain that you want to delete.
* @return Result of the DeleteElasticsearchDomain operation returned by the service.
* @throws BaseException
* An error occurred while processing the request.
* @throws 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.
* @throws ResourceNotFoundException
* An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.
* @throws ValidationException
* An exception for missing / invalid input fields. Gives http status code of 400.
* @sample AWSElasticsearch.DeleteElasticsearchDomain
*/
@Override
public DeleteElasticsearchDomainResult deleteElasticsearchDomain(DeleteElasticsearchDomainRequest request) {
request = beforeClientExecution(request);
return executeDeleteElasticsearchDomain(request);
}
@SdkInternalApi
final DeleteElasticsearchDomainResult executeDeleteElasticsearchDomain(DeleteElasticsearchDomainRequest deleteElasticsearchDomainRequest) {
ExecutionContext executionContext = createExecutionContext(deleteElasticsearchDomainRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request* 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. *
* * @param deleteElasticsearchServiceRoleRequest * @return Result of the DeleteElasticsearchServiceRole operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws 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. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @sample AWSElasticsearch.DeleteElasticsearchServiceRole */ @Override public DeleteElasticsearchServiceRoleResult deleteElasticsearchServiceRole(DeleteElasticsearchServiceRoleRequest request) { request = beforeClientExecution(request); return executeDeleteElasticsearchServiceRole(request); } @SdkInternalApi final DeleteElasticsearchServiceRoleResult executeDeleteElasticsearchServiceRole(DeleteElasticsearchServiceRoleRequest deleteElasticsearchServiceRoleRequest) { ExecutionContext executionContext = createExecutionContext(deleteElasticsearchServiceRoleRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Allows the destination domain owner to delete an existing inbound cross-cluster search connection. *
* * @param deleteInboundCrossClusterSearchConnectionRequest * Container for the parameters to theDeleteInboundCrossClusterSearchConnection
* operation.
* @return Result of the DeleteInboundCrossClusterSearchConnection operation returned by the service.
* @throws ResourceNotFoundException
* An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.
* @throws DisabledOperationException
* An error occured because the client wanted to access a not supported operation. Gives http status code of
* 409.
* @sample AWSElasticsearch.DeleteInboundCrossClusterSearchConnection
*/
@Override
public DeleteInboundCrossClusterSearchConnectionResult deleteInboundCrossClusterSearchConnection(DeleteInboundCrossClusterSearchConnectionRequest request) {
request = beforeClientExecution(request);
return executeDeleteInboundCrossClusterSearchConnection(request);
}
@SdkInternalApi
final DeleteInboundCrossClusterSearchConnectionResult executeDeleteInboundCrossClusterSearchConnection(
DeleteInboundCrossClusterSearchConnectionRequest deleteInboundCrossClusterSearchConnectionRequest) {
ExecutionContext executionContext = createExecutionContext(deleteInboundCrossClusterSearchConnectionRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request* Allows the source domain owner to delete an existing outbound cross-cluster search connection. *
* * @param deleteOutboundCrossClusterSearchConnectionRequest * Container for the parameters to theDeleteOutboundCrossClusterSearchConnection
* operation.
* @return Result of the DeleteOutboundCrossClusterSearchConnection operation returned by the service.
* @throws ResourceNotFoundException
* An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.
* @throws DisabledOperationException
* An error occured because the client wanted to access a not supported operation. Gives http status code of
* 409.
* @sample AWSElasticsearch.DeleteOutboundCrossClusterSearchConnection
*/
@Override
public DeleteOutboundCrossClusterSearchConnectionResult deleteOutboundCrossClusterSearchConnection(DeleteOutboundCrossClusterSearchConnectionRequest request) {
request = beforeClientExecution(request);
return executeDeleteOutboundCrossClusterSearchConnection(request);
}
@SdkInternalApi
final DeleteOutboundCrossClusterSearchConnectionResult executeDeleteOutboundCrossClusterSearchConnection(
DeleteOutboundCrossClusterSearchConnectionRequest deleteOutboundCrossClusterSearchConnectionRequest) {
ExecutionContext executionContext = createExecutionContext(deleteOutboundCrossClusterSearchConnectionRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request* Delete the package. *
* * @param deletePackageRequest * Container for request parameters to DeletePackage
operation.
* @return Result of the DeletePackage operation returned by the service.
* @throws BaseException
* An error occurred while processing the request.
* @throws 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.
* @throws ResourceNotFoundException
* An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.
* @throws AccessDeniedException
* An error occurred because user does not have permissions to access the resource. Returns HTTP status code
* 403.
* @throws ValidationException
* An exception for missing / invalid input fields. Gives http status code of 400.
* @throws ConflictException
* An error occurred because the client attempts to remove a resource that is currently in use. Returns HTTP
* status code 409.
* @sample AWSElasticsearch.DeletePackage
*/
@Override
public DeletePackageResult deletePackage(DeletePackageRequest request) {
request = beforeClientExecution(request);
return executeDeletePackage(request);
}
@SdkInternalApi
final DeletePackageResult executeDeletePackage(DeletePackageRequest deletePackageRequest) {
ExecutionContext executionContext = createExecutionContext(deletePackageRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request* Deletes an Amazon OpenSearch Service-managed interface VPC endpoint. *
* * @param deleteVpcEndpointRequest * Deletes an Amazon OpenSearch Service-managed interface VPC endpoint. * @return Result of the DeleteVpcEndpoint operation returned by the service. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws 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. * @throws BaseException * An error occurred while processing the request. * @sample AWSElasticsearch.DeleteVpcEndpoint */ @Override public DeleteVpcEndpointResult deleteVpcEndpoint(DeleteVpcEndpointRequest request) { request = beforeClientExecution(request); return executeDeleteVpcEndpoint(request); } @SdkInternalApi final DeleteVpcEndpointResult executeDeleteVpcEndpoint(DeleteVpcEndpointRequest deleteVpcEndpointRequest) { ExecutionContext executionContext = createExecutionContext(deleteVpcEndpointRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Provides scheduled Auto-Tune action details for the Elasticsearch domain, such as Auto-Tune action type, * description, severity, and scheduled date. *
* * @param describeDomainAutoTunesRequest * Container for the parameters to theDescribeDomainAutoTunes
operation.
* @return Result of the DescribeDomainAutoTunes operation returned by the service.
* @throws BaseException
* An error occurred while processing the request.
* @throws 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.
* @throws ResourceNotFoundException
* An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.
* @throws ValidationException
* An exception for missing / invalid input fields. Gives http status code of 400.
* @sample AWSElasticsearch.DescribeDomainAutoTunes
*/
@Override
public DescribeDomainAutoTunesResult describeDomainAutoTunes(DescribeDomainAutoTunesRequest request) {
request = beforeClientExecution(request);
return executeDescribeDomainAutoTunes(request);
}
@SdkInternalApi
final DescribeDomainAutoTunesResult executeDescribeDomainAutoTunes(DescribeDomainAutoTunesRequest describeDomainAutoTunesRequest) {
ExecutionContext executionContext = createExecutionContext(describeDomainAutoTunesRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request* Returns information about the current blue/green deployment happening on a domain, including a change ID, status, * and progress stages. *
* * @param describeDomainChangeProgressRequest * Container for the parameters to theDescribeDomainChangeProgress
operation. Specifies the
* domain name and optional change specific identity for which you want progress information.
* @return Result of the DescribeDomainChangeProgress operation returned by the service.
* @throws BaseException
* An error occurred while processing the request.
* @throws 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.
* @throws ResourceNotFoundException
* An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.
* @throws ValidationException
* An exception for missing / invalid input fields. Gives http status code of 400.
* @sample AWSElasticsearch.DescribeDomainChangeProgress
*/
@Override
public DescribeDomainChangeProgressResult describeDomainChangeProgress(DescribeDomainChangeProgressRequest request) {
request = beforeClientExecution(request);
return executeDescribeDomainChangeProgress(request);
}
@SdkInternalApi
final DescribeDomainChangeProgressResult executeDescribeDomainChangeProgress(DescribeDomainChangeProgressRequest describeDomainChangeProgressRequest) {
ExecutionContext executionContext = createExecutionContext(describeDomainChangeProgressRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request* Returns domain configuration information about the specified Elasticsearch domain, including the domain ID, * domain endpoint, and domain ARN. *
* * @param describeElasticsearchDomainRequest * Container for the parameters to theDescribeElasticsearchDomain
operation.
* @return Result of the DescribeElasticsearchDomain operation returned by the service.
* @throws BaseException
* An error occurred while processing the request.
* @throws 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.
* @throws ResourceNotFoundException
* An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.
* @throws ValidationException
* An exception for missing / invalid input fields. Gives http status code of 400.
* @sample AWSElasticsearch.DescribeElasticsearchDomain
*/
@Override
public DescribeElasticsearchDomainResult describeElasticsearchDomain(DescribeElasticsearchDomainRequest request) {
request = beforeClientExecution(request);
return executeDescribeElasticsearchDomain(request);
}
@SdkInternalApi
final DescribeElasticsearchDomainResult executeDescribeElasticsearchDomain(DescribeElasticsearchDomainRequest describeElasticsearchDomainRequest) {
ExecutionContext executionContext = createExecutionContext(describeElasticsearchDomainRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request* Provides cluster configuration information about the specified Elasticsearch domain, such as the state, creation * date, update version, and update date for cluster options. *
* * @param describeElasticsearchDomainConfigRequest * Container for the parameters to theDescribeElasticsearchDomainConfig
operation. Specifies
* the domain name for which you want configuration information.
* @return Result of the DescribeElasticsearchDomainConfig operation returned by the service.
* @throws BaseException
* An error occurred while processing the request.
* @throws 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.
* @throws ResourceNotFoundException
* An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.
* @throws ValidationException
* An exception for missing / invalid input fields. Gives http status code of 400.
* @sample AWSElasticsearch.DescribeElasticsearchDomainConfig
*/
@Override
public DescribeElasticsearchDomainConfigResult describeElasticsearchDomainConfig(DescribeElasticsearchDomainConfigRequest request) {
request = beforeClientExecution(request);
return executeDescribeElasticsearchDomainConfig(request);
}
@SdkInternalApi
final DescribeElasticsearchDomainConfigResult executeDescribeElasticsearchDomainConfig(
DescribeElasticsearchDomainConfigRequest describeElasticsearchDomainConfigRequest) {
ExecutionContext executionContext = createExecutionContext(describeElasticsearchDomainConfigRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request* Returns domain configuration information about the specified Elasticsearch domains, including the domain ID, * domain endpoint, and domain ARN. *
* * @param describeElasticsearchDomainsRequest * Container for the parameters to theDescribeElasticsearchDomains
operation. By
* default, the API returns the status of all Elasticsearch domains.
* @return Result of the DescribeElasticsearchDomains operation returned by the service.
* @throws BaseException
* An error occurred while processing the request.
* @throws 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.
* @throws ValidationException
* An exception for missing / invalid input fields. Gives http status code of 400.
* @sample AWSElasticsearch.DescribeElasticsearchDomains
*/
@Override
public DescribeElasticsearchDomainsResult describeElasticsearchDomains(DescribeElasticsearchDomainsRequest request) {
request = beforeClientExecution(request);
return executeDescribeElasticsearchDomains(request);
}
@SdkInternalApi
final DescribeElasticsearchDomainsResult executeDescribeElasticsearchDomains(DescribeElasticsearchDomainsRequest describeElasticsearchDomainsRequest) {
ExecutionContext executionContext = createExecutionContext(describeElasticsearchDomainsRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
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
operation.
* @return Result of the DescribeElasticsearchInstanceTypeLimits operation returned by the service.
* @throws BaseException
* An error occurred while processing the request.
* @throws 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.
* @throws InvalidTypeException
* An exception for trying to create or access sub-resource that is either invalid or not supported. Gives
* http status code of 409.
* @throws LimitExceededException
* An exception for trying to create more than allowed resources or sub-resources. Gives http status code of
* 409.
* @throws ResourceNotFoundException
* An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.
* @throws ValidationException
* An exception for missing / invalid input fields. Gives http status code of 400.
* @sample AWSElasticsearch.DescribeElasticsearchInstanceTypeLimits
*/
@Override
public DescribeElasticsearchInstanceTypeLimitsResult describeElasticsearchInstanceTypeLimits(DescribeElasticsearchInstanceTypeLimitsRequest request) {
request = beforeClientExecution(request);
return executeDescribeElasticsearchInstanceTypeLimits(request);
}
@SdkInternalApi
final DescribeElasticsearchInstanceTypeLimitsResult executeDescribeElasticsearchInstanceTypeLimits(
DescribeElasticsearchInstanceTypeLimitsRequest describeElasticsearchInstanceTypeLimitsRequest) {
ExecutionContext executionContext = createExecutionContext(describeElasticsearchInstanceTypeLimitsRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request* Lists all the inbound cross-cluster search connections for a destination domain. *
* * @param describeInboundCrossClusterSearchConnectionsRequest * Container for the parameters to theDescribeInboundCrossClusterSearchConnections
* operation.
* @return Result of the DescribeInboundCrossClusterSearchConnections operation returned by the service.
* @throws InvalidPaginationTokenException
* The request processing has failed because of invalid pagination token provided by customer. Returns an
* HTTP status code of 400.
* @throws DisabledOperationException
* An error occured because the client wanted to access a not supported operation. Gives http status code of
* 409.
* @sample AWSElasticsearch.DescribeInboundCrossClusterSearchConnections
*/
@Override
public DescribeInboundCrossClusterSearchConnectionsResult describeInboundCrossClusterSearchConnections(
DescribeInboundCrossClusterSearchConnectionsRequest request) {
request = beforeClientExecution(request);
return executeDescribeInboundCrossClusterSearchConnections(request);
}
@SdkInternalApi
final DescribeInboundCrossClusterSearchConnectionsResult executeDescribeInboundCrossClusterSearchConnections(
DescribeInboundCrossClusterSearchConnectionsRequest describeInboundCrossClusterSearchConnectionsRequest) {
ExecutionContext executionContext = createExecutionContext(describeInboundCrossClusterSearchConnectionsRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request* Lists all the outbound cross-cluster search connections for a source domain. *
* * @param describeOutboundCrossClusterSearchConnectionsRequest * Container for the parameters to theDescribeOutboundCrossClusterSearchConnections
* operation.
* @return Result of the DescribeOutboundCrossClusterSearchConnections operation returned by the service.
* @throws InvalidPaginationTokenException
* The request processing has failed because of invalid pagination token provided by customer. Returns an
* HTTP status code of 400.
* @throws DisabledOperationException
* An error occured because the client wanted to access a not supported operation. Gives http status code of
* 409.
* @sample AWSElasticsearch.DescribeOutboundCrossClusterSearchConnections
*/
@Override
public DescribeOutboundCrossClusterSearchConnectionsResult describeOutboundCrossClusterSearchConnections(
DescribeOutboundCrossClusterSearchConnectionsRequest request) {
request = beforeClientExecution(request);
return executeDescribeOutboundCrossClusterSearchConnections(request);
}
@SdkInternalApi
final DescribeOutboundCrossClusterSearchConnectionsResult executeDescribeOutboundCrossClusterSearchConnections(
DescribeOutboundCrossClusterSearchConnectionsRequest describeOutboundCrossClusterSearchConnectionsRequest) {
ExecutionContext executionContext = createExecutionContext(describeOutboundCrossClusterSearchConnectionsRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request* Describes all packages available to Amazon ES. Includes options for filtering, limiting the number of results, * and pagination. *
* * @param describePackagesRequest * Container for request parameters to DescribePackage
operation.
* @return Result of the DescribePackages operation returned by the service.
* @throws BaseException
* An error occurred while processing the request.
* @throws 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.
* @throws ResourceNotFoundException
* An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.
* @throws AccessDeniedException
* An error occurred because user does not have permissions to access the resource. Returns HTTP status code
* 403.
* @throws ValidationException
* An exception for missing / invalid input fields. Gives http status code of 400.
* @sample AWSElasticsearch.DescribePackages
*/
@Override
public DescribePackagesResult describePackages(DescribePackagesRequest request) {
request = beforeClientExecution(request);
return executeDescribePackages(request);
}
@SdkInternalApi
final DescribePackagesResult executeDescribePackages(DescribePackagesRequest describePackagesRequest) {
ExecutionContext executionContext = createExecutionContext(describePackagesRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request* Lists available reserved Elasticsearch instance offerings. *
* * @param describeReservedElasticsearchInstanceOfferingsRequest * Container for parameters toDescribeReservedElasticsearchInstanceOfferings
* @return Result of the DescribeReservedElasticsearchInstanceOfferings operation returned by the service.
* @throws ResourceNotFoundException
* An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.
* @throws ValidationException
* An exception for missing / invalid input fields. Gives http status code of 400.
* @throws DisabledOperationException
* An error occured because the client wanted to access a not supported operation. Gives http status code of
* 409.
* @throws 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.
* @sample AWSElasticsearch.DescribeReservedElasticsearchInstanceOfferings
*/
@Override
public DescribeReservedElasticsearchInstanceOfferingsResult describeReservedElasticsearchInstanceOfferings(
DescribeReservedElasticsearchInstanceOfferingsRequest request) {
request = beforeClientExecution(request);
return executeDescribeReservedElasticsearchInstanceOfferings(request);
}
@SdkInternalApi
final DescribeReservedElasticsearchInstanceOfferingsResult executeDescribeReservedElasticsearchInstanceOfferings(
DescribeReservedElasticsearchInstanceOfferingsRequest describeReservedElasticsearchInstanceOfferingsRequest) {
ExecutionContext executionContext = createExecutionContext(describeReservedElasticsearchInstanceOfferingsRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request* Returns information about reserved Elasticsearch instances for this account. *
* * @param describeReservedElasticsearchInstancesRequest * Container for parameters toDescribeReservedElasticsearchInstances
* @return Result of the DescribeReservedElasticsearchInstances operation returned by the service.
* @throws ResourceNotFoundException
* An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.
* @throws 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.
* @throws ValidationException
* An exception for missing / invalid input fields. Gives http status code of 400.
* @throws DisabledOperationException
* An error occured because the client wanted to access a not supported operation. Gives http status code of
* 409.
* @sample AWSElasticsearch.DescribeReservedElasticsearchInstances
*/
@Override
public DescribeReservedElasticsearchInstancesResult describeReservedElasticsearchInstances(DescribeReservedElasticsearchInstancesRequest request) {
request = beforeClientExecution(request);
return executeDescribeReservedElasticsearchInstances(request);
}
@SdkInternalApi
final DescribeReservedElasticsearchInstancesResult executeDescribeReservedElasticsearchInstances(
DescribeReservedElasticsearchInstancesRequest describeReservedElasticsearchInstancesRequest) {
ExecutionContext executionContext = createExecutionContext(describeReservedElasticsearchInstancesRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request* Describes one or more Amazon OpenSearch Service-managed VPC endpoints. *
* * @param describeVpcEndpointsRequest * Container for request parameters to theDescribeVpcEndpoints
operation. Specifies the
* list of VPC endpoints to be described.
* @return Result of the DescribeVpcEndpoints operation returned by the service.
* @throws ValidationException
* An exception for missing / invalid input fields. Gives http status code of 400.
* @throws 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.
* @throws DisabledOperationException
* An error occured because the client wanted to access a not supported operation. Gives http status code of
* 409.
* @throws BaseException
* An error occurred while processing the request.
* @sample AWSElasticsearch.DescribeVpcEndpoints
*/
@Override
public DescribeVpcEndpointsResult describeVpcEndpoints(DescribeVpcEndpointsRequest request) {
request = beforeClientExecution(request);
return executeDescribeVpcEndpoints(request);
}
@SdkInternalApi
final DescribeVpcEndpointsResult executeDescribeVpcEndpoints(DescribeVpcEndpointsRequest describeVpcEndpointsRequest) {
ExecutionContext executionContext = createExecutionContext(describeVpcEndpointsRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request* Dissociates a package from the Amazon ES domain. *
* * @param dissociatePackageRequest * Container for request parameters to DissociatePackage
operation.
* @return Result of the DissociatePackage operation returned by the service.
* @throws BaseException
* An error occurred while processing the request.
* @throws 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.
* @throws ResourceNotFoundException
* An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.
* @throws AccessDeniedException
* An error occurred because user does not have permissions to access the resource. Returns HTTP status code
* 403.
* @throws ValidationException
* An exception for missing / invalid input fields. Gives http status code of 400.
* @throws ConflictException
* An error occurred because the client attempts to remove a resource that is currently in use. Returns HTTP
* status code 409.
* @sample AWSElasticsearch.DissociatePackage
*/
@Override
public DissociatePackageResult dissociatePackage(DissociatePackageRequest request) {
request = beforeClientExecution(request);
return executeDissociatePackage(request);
}
@SdkInternalApi
final DissociatePackageResult executeDissociatePackage(DissociatePackageRequest dissociatePackageRequest) {
ExecutionContext executionContext = createExecutionContext(dissociatePackageRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request
* Returns a list of upgrade compatible Elastisearch versions. You can optionally pass a
* DomainName
to get all upgrade compatible Elasticsearch versions for that specific domain.
*
GetCompatibleElasticsearchVersions
operation.
* @return Result of the GetCompatibleElasticsearchVersions operation returned by the service.
* @throws BaseException
* An error occurred while processing the request.
* @throws ResourceNotFoundException
* An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.
* @throws DisabledOperationException
* An error occured because the client wanted to access a not supported operation. Gives http status code of
* 409.
* @throws ValidationException
* An exception for missing / invalid input fields. Gives http status code of 400.
* @throws 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.
* @sample AWSElasticsearch.GetCompatibleElasticsearchVersions
*/
@Override
public GetCompatibleElasticsearchVersionsResult getCompatibleElasticsearchVersions(GetCompatibleElasticsearchVersionsRequest request) {
request = beforeClientExecution(request);
return executeGetCompatibleElasticsearchVersions(request);
}
@SdkInternalApi
final GetCompatibleElasticsearchVersionsResult executeGetCompatibleElasticsearchVersions(
GetCompatibleElasticsearchVersionsRequest getCompatibleElasticsearchVersionsRequest) {
ExecutionContext executionContext = createExecutionContext(getCompatibleElasticsearchVersionsRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request* Returns a list of versions of the package, along with their creation time and commit message. *
* * @param getPackageVersionHistoryRequest * Container for request parameters to GetPackageVersionHistory
operation.
* @return Result of the GetPackageVersionHistory operation returned by the service.
* @throws BaseException
* An error occurred while processing the request.
* @throws 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.
* @throws ResourceNotFoundException
* An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.
* @throws AccessDeniedException
* An error occurred because user does not have permissions to access the resource. Returns HTTP status code
* 403.
* @throws ValidationException
* An exception for missing / invalid input fields. Gives http status code of 400.
* @sample AWSElasticsearch.GetPackageVersionHistory
*/
@Override
public GetPackageVersionHistoryResult getPackageVersionHistory(GetPackageVersionHistoryRequest request) {
request = beforeClientExecution(request);
return executeGetPackageVersionHistory(request);
}
@SdkInternalApi
final GetPackageVersionHistoryResult executeGetPackageVersionHistory(GetPackageVersionHistoryRequest getPackageVersionHistoryRequest) {
ExecutionContext executionContext = createExecutionContext(getPackageVersionHistoryRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request* Retrieves the complete history of the last 10 upgrades that were performed on the domain. *
* * @param getUpgradeHistoryRequest * Container for request parameters to GetUpgradeHistory
operation.
* @return Result of the GetUpgradeHistory operation returned by the service.
* @throws BaseException
* An error occurred while processing the request.
* @throws ResourceNotFoundException
* An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.
* @throws DisabledOperationException
* An error occured because the client wanted to access a not supported operation. Gives http status code of
* 409.
* @throws ValidationException
* An exception for missing / invalid input fields. Gives http status code of 400.
* @throws 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.
* @sample AWSElasticsearch.GetUpgradeHistory
*/
@Override
public GetUpgradeHistoryResult getUpgradeHistory(GetUpgradeHistoryRequest request) {
request = beforeClientExecution(request);
return executeGetUpgradeHistory(request);
}
@SdkInternalApi
final GetUpgradeHistoryResult executeGetUpgradeHistory(GetUpgradeHistoryRequest getUpgradeHistoryRequest) {
ExecutionContext executionContext = createExecutionContext(getUpgradeHistoryRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request* Retrieves the latest status of the last upgrade or upgrade eligibility check that was performed on the domain. *
* * @param getUpgradeStatusRequest * Container for request parameters to GetUpgradeStatus
operation.
* @return Result of the GetUpgradeStatus operation returned by the service.
* @throws BaseException
* An error occurred while processing the request.
* @throws ResourceNotFoundException
* An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.
* @throws DisabledOperationException
* An error occured because the client wanted to access a not supported operation. Gives http status code of
* 409.
* @throws ValidationException
* An exception for missing / invalid input fields. Gives http status code of 400.
* @throws 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.
* @sample AWSElasticsearch.GetUpgradeStatus
*/
@Override
public GetUpgradeStatusResult getUpgradeStatus(GetUpgradeStatusRequest request) {
request = beforeClientExecution(request);
return executeGetUpgradeStatus(request);
}
@SdkInternalApi
final GetUpgradeStatusResult executeGetUpgradeStatus(GetUpgradeStatusRequest getUpgradeStatusRequest) {
ExecutionContext executionContext = createExecutionContext(getUpgradeStatusRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request* Returns the name of all Elasticsearch domains owned by the current user's account. *
* * @param listDomainNamesRequest * Container for the parameters to theListDomainNames
operation.
* @return Result of the ListDomainNames operation returned by the service.
* @throws BaseException
* An error occurred while processing the request.
* @throws ValidationException
* An exception for missing / invalid input fields. Gives http status code of 400.
* @sample AWSElasticsearch.ListDomainNames
*/
@Override
public ListDomainNamesResult listDomainNames(ListDomainNamesRequest request) {
request = beforeClientExecution(request);
return executeListDomainNames(request);
}
@SdkInternalApi
final ListDomainNamesResult executeListDomainNames(ListDomainNamesRequest listDomainNamesRequest) {
ExecutionContext executionContext = createExecutionContext(listDomainNamesRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request* Lists all Amazon ES domains associated with the package. *
* * @param listDomainsForPackageRequest * Container for request parameters to ListDomainsForPackage
operation.
* @return Result of the ListDomainsForPackage operation returned by the service.
* @throws BaseException
* An error occurred while processing the request.
* @throws 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.
* @throws ResourceNotFoundException
* An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.
* @throws AccessDeniedException
* An error occurred because user does not have permissions to access the resource. Returns HTTP status code
* 403.
* @throws ValidationException
* An exception for missing / invalid input fields. Gives http status code of 400.
* @sample AWSElasticsearch.ListDomainsForPackage
*/
@Override
public ListDomainsForPackageResult listDomainsForPackage(ListDomainsForPackageRequest request) {
request = beforeClientExecution(request);
return executeListDomainsForPackage(request);
}
@SdkInternalApi
final ListDomainsForPackageResult executeListDomainsForPackage(ListDomainsForPackageRequest listDomainsForPackageRequest) {
ExecutionContext executionContext = createExecutionContext(listDomainsForPackageRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request* List all Elasticsearch instance types that are supported for given ElasticsearchVersion *
* * @param listElasticsearchInstanceTypesRequest * Container for the parameters to the ListElasticsearchInstanceTypes
operation.
* @return Result of the ListElasticsearchInstanceTypes operation returned by the service.
* @throws BaseException
* An error occurred while processing the request.
* @throws 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.
* @throws ResourceNotFoundException
* An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.
* @throws ValidationException
* An exception for missing / invalid input fields. Gives http status code of 400.
* @sample AWSElasticsearch.ListElasticsearchInstanceTypes
*/
@Override
public ListElasticsearchInstanceTypesResult listElasticsearchInstanceTypes(ListElasticsearchInstanceTypesRequest request) {
request = beforeClientExecution(request);
return executeListElasticsearchInstanceTypes(request);
}
@SdkInternalApi
final ListElasticsearchInstanceTypesResult executeListElasticsearchInstanceTypes(ListElasticsearchInstanceTypesRequest listElasticsearchInstanceTypesRequest) {
ExecutionContext executionContext = createExecutionContext(listElasticsearchInstanceTypesRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request* List all supported Elasticsearch versions *
* * @param listElasticsearchVersionsRequest * 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.
*
* Lists all packages associated with the Amazon ES domain. *
* * @param listPackagesForDomainRequest * Container for request parameters to ListPackagesForDomain
operation.
* @return Result of the ListPackagesForDomain operation returned by the service.
* @throws BaseException
* An error occurred while processing the request.
* @throws 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.
* @throws ResourceNotFoundException
* An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.
* @throws AccessDeniedException
* An error occurred because user does not have permissions to access the resource. Returns HTTP status code
* 403.
* @throws ValidationException
* An exception for missing / invalid input fields. Gives http status code of 400.
* @sample AWSElasticsearch.ListPackagesForDomain
*/
@Override
public ListPackagesForDomainResult listPackagesForDomain(ListPackagesForDomainRequest request) {
request = beforeClientExecution(request);
return executeListPackagesForDomain(request);
}
@SdkInternalApi
final ListPackagesForDomainResult executeListPackagesForDomain(ListPackagesForDomainRequest listPackagesForDomainRequest) {
ExecutionContext executionContext = createExecutionContext(listPackagesForDomainRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request* Returns all tags for the given Elasticsearch domain. *
* * @param listTagsRequest * Container for the parameters to theListTags
operation. Specify the ARN
* for the Elasticsearch domain to which the tags are attached that you want to view are attached.
* @return Result of the ListTags operation returned by the service.
* @throws BaseException
* An error occurred while processing the request.
* @throws ResourceNotFoundException
* An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.
* @throws ValidationException
* An exception for missing / invalid input fields. Gives http status code of 400.
* @throws 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.
* @sample AWSElasticsearch.ListTags
*/
@Override
public ListTagsResult listTags(ListTagsRequest request) {
request = beforeClientExecution(request);
return executeListTags(request);
}
@SdkInternalApi
final ListTagsResult executeListTags(ListTagsRequest listTagsRequest) {
ExecutionContext executionContext = createExecutionContext(listTagsRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request* Retrieves information about each principal that is allowed to access a given Amazon OpenSearch Service domain * through the use of an interface VPC endpoint. *
* * @param listVpcEndpointAccessRequest * Retrieves information about each principal that is allowed to access a given Amazon OpenSearch Service * domain through the use of an interface VPC endpoint * @return Result of the ListVpcEndpointAccess operation returned by the service. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws 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. * @throws BaseException * An error occurred while processing the request. * @sample AWSElasticsearch.ListVpcEndpointAccess */ @Override public ListVpcEndpointAccessResult listVpcEndpointAccess(ListVpcEndpointAccessRequest request) { request = beforeClientExecution(request); return executeListVpcEndpointAccess(request); } @SdkInternalApi final ListVpcEndpointAccessResult executeListVpcEndpointAccess(ListVpcEndpointAccessRequest listVpcEndpointAccessRequest) { ExecutionContext executionContext = createExecutionContext(listVpcEndpointAccessRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Retrieves all Amazon OpenSearch Service-managed VPC endpoints in the current account and Region. *
* * @param listVpcEndpointsRequest * Container for request parameters to theListVpcEndpoints
operation.
* @return Result of the ListVpcEndpoints operation returned by the service.
* @throws 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.
* @throws DisabledOperationException
* An error occured because the client wanted to access a not supported operation. Gives http status code of
* 409.
* @throws BaseException
* An error occurred while processing the request.
* @sample AWSElasticsearch.ListVpcEndpoints
*/
@Override
public ListVpcEndpointsResult listVpcEndpoints(ListVpcEndpointsRequest request) {
request = beforeClientExecution(request);
return executeListVpcEndpoints(request);
}
@SdkInternalApi
final ListVpcEndpointsResult executeListVpcEndpoints(ListVpcEndpointsRequest listVpcEndpointsRequest) {
ExecutionContext executionContext = createExecutionContext(listVpcEndpointsRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request* Retrieves all Amazon OpenSearch Service-managed VPC endpoints associated with a particular domain. *
* * @param listVpcEndpointsForDomainRequest * Container for request parameters to theListVpcEndpointsForDomain
operation. Specifies
* the domain whose VPC endpoints will be listed.
* @return Result of the ListVpcEndpointsForDomain operation returned by the service.
* @throws 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.
* @throws DisabledOperationException
* An error occured because the client wanted to access a not supported operation. Gives http status code of
* 409.
* @throws ResourceNotFoundException
* An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.
* @throws BaseException
* An error occurred while processing the request.
* @sample AWSElasticsearch.ListVpcEndpointsForDomain
*/
@Override
public ListVpcEndpointsForDomainResult listVpcEndpointsForDomain(ListVpcEndpointsForDomainRequest request) {
request = beforeClientExecution(request);
return executeListVpcEndpointsForDomain(request);
}
@SdkInternalApi
final ListVpcEndpointsForDomainResult executeListVpcEndpointsForDomain(ListVpcEndpointsForDomainRequest listVpcEndpointsForDomainRequest) {
ExecutionContext executionContext = createExecutionContext(listVpcEndpointsForDomainRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request* Allows you to purchase reserved Elasticsearch instances. *
* * @param purchaseReservedElasticsearchInstanceOfferingRequest * Container for parameters toPurchaseReservedElasticsearchInstanceOffering
* @return Result of the PurchaseReservedElasticsearchInstanceOffering operation returned by the service.
* @throws ResourceNotFoundException
* An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.
* @throws ResourceAlreadyExistsException
* An exception for creating a resource that already exists. Gives http status code of 400.
* @throws LimitExceededException
* An exception for trying to create more than allowed resources or sub-resources. Gives http status code of
* 409.
* @throws DisabledOperationException
* An error occured because the client wanted to access a not supported operation. Gives http status code of
* 409.
* @throws ValidationException
* An exception for missing / invalid input fields. Gives http status code of 400.
* @throws 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.
* @sample AWSElasticsearch.PurchaseReservedElasticsearchInstanceOffering
*/
@Override
public PurchaseReservedElasticsearchInstanceOfferingResult purchaseReservedElasticsearchInstanceOffering(
PurchaseReservedElasticsearchInstanceOfferingRequest request) {
request = beforeClientExecution(request);
return executePurchaseReservedElasticsearchInstanceOffering(request);
}
@SdkInternalApi
final PurchaseReservedElasticsearchInstanceOfferingResult executePurchaseReservedElasticsearchInstanceOffering(
PurchaseReservedElasticsearchInstanceOfferingRequest purchaseReservedElasticsearchInstanceOfferingRequest) {
ExecutionContext executionContext = createExecutionContext(purchaseReservedElasticsearchInstanceOfferingRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request* Allows the destination domain owner to reject an inbound cross-cluster search connection request. *
* * @param rejectInboundCrossClusterSearchConnectionRequest * Container for the parameters to theRejectInboundCrossClusterSearchConnection
* operation.
* @return Result of the RejectInboundCrossClusterSearchConnection operation returned by the service.
* @throws ResourceNotFoundException
* An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.
* @throws DisabledOperationException
* An error occured because the client wanted to access a not supported operation. Gives http status code of
* 409.
* @sample AWSElasticsearch.RejectInboundCrossClusterSearchConnection
*/
@Override
public RejectInboundCrossClusterSearchConnectionResult rejectInboundCrossClusterSearchConnection(RejectInboundCrossClusterSearchConnectionRequest request) {
request = beforeClientExecution(request);
return executeRejectInboundCrossClusterSearchConnection(request);
}
@SdkInternalApi
final RejectInboundCrossClusterSearchConnectionResult executeRejectInboundCrossClusterSearchConnection(
RejectInboundCrossClusterSearchConnectionRequest rejectInboundCrossClusterSearchConnectionRequest) {
ExecutionContext executionContext = createExecutionContext(rejectInboundCrossClusterSearchConnectionRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request* Removes the specified set of tags from the specified Elasticsearch domain. *
* * @param removeTagsRequest * Container for the parameters to theRemoveTags
operation. Specify the ARN
* for the Elasticsearch domain from which you want to remove the specified TagKey
.
* @return Result of the RemoveTags operation returned by the service.
* @throws BaseException
* An error occurred while processing the request.
* @throws ValidationException
* An exception for missing / invalid input fields. Gives http status code of 400.
* @throws 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.
* @sample AWSElasticsearch.RemoveTags
*/
@Override
public RemoveTagsResult removeTags(RemoveTagsRequest request) {
request = beforeClientExecution(request);
return executeRemoveTags(request);
}
@SdkInternalApi
final RemoveTagsResult executeRemoveTags(RemoveTagsRequest removeTagsRequest) {
ExecutionContext executionContext = createExecutionContext(removeTagsRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request* Revokes access to an Amazon OpenSearch Service domain that was provided through an interface VPC endpoint. *
* * @param revokeVpcEndpointAccessRequest * Revokes access to an Amazon OpenSearch Service domain that was provided through an interface VPC endpoint. * @return Result of the RevokeVpcEndpointAccess operation returned by the service. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws 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. * @throws BaseException * An error occurred while processing the request. * @sample AWSElasticsearch.RevokeVpcEndpointAccess */ @Override public RevokeVpcEndpointAccessResult revokeVpcEndpointAccess(RevokeVpcEndpointAccessRequest request) { request = beforeClientExecution(request); return executeRevokeVpcEndpointAccess(request); } @SdkInternalApi final RevokeVpcEndpointAccessResult executeRevokeVpcEndpointAccess(RevokeVpcEndpointAccessRequest revokeVpcEndpointAccessRequest) { ExecutionContext executionContext = createExecutionContext(revokeVpcEndpointAccessRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Schedules a service software update for an Amazon ES domain. *
* * @param startElasticsearchServiceSoftwareUpdateRequest * Container for the parameters to theStartElasticsearchServiceSoftwareUpdate
operation.
* Specifies the name of the Elasticsearch domain that you wish to schedule a service software update on.
* @return Result of the StartElasticsearchServiceSoftwareUpdate operation returned by the service.
* @throws BaseException
* An error occurred while processing the request.
* @throws 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.
* @throws ResourceNotFoundException
* An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.
* @throws ValidationException
* An exception for missing / invalid input fields. Gives http status code of 400.
* @sample AWSElasticsearch.StartElasticsearchServiceSoftwareUpdate
*/
@Override
public StartElasticsearchServiceSoftwareUpdateResult startElasticsearchServiceSoftwareUpdate(StartElasticsearchServiceSoftwareUpdateRequest request) {
request = beforeClientExecution(request);
return executeStartElasticsearchServiceSoftwareUpdate(request);
}
@SdkInternalApi
final StartElasticsearchServiceSoftwareUpdateResult executeStartElasticsearchServiceSoftwareUpdate(
StartElasticsearchServiceSoftwareUpdateRequest startElasticsearchServiceSoftwareUpdateRequest) {
ExecutionContext executionContext = createExecutionContext(startElasticsearchServiceSoftwareUpdateRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request* Modifies the cluster configuration of the specified Elasticsearch domain, setting as setting the instance type * and the number of instances. *
* * @param updateElasticsearchDomainConfigRequest * Container for the parameters to theUpdateElasticsearchDomain
operation. Specifies the
* type and number of instances in the domain cluster.
* @return Result of the UpdateElasticsearchDomainConfig operation returned by the service.
* @throws BaseException
* An error occurred while processing the request.
* @throws 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.
* @throws InvalidTypeException
* An exception for trying to create or access sub-resource that is either invalid or not supported. Gives
* http status code of 409.
* @throws LimitExceededException
* An exception for trying to create more than allowed resources or sub-resources. Gives http status code of
* 409.
* @throws ResourceNotFoundException
* An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.
* @throws ValidationException
* An exception for missing / invalid input fields. Gives http status code of 400.
* @sample AWSElasticsearch.UpdateElasticsearchDomainConfig
*/
@Override
public UpdateElasticsearchDomainConfigResult updateElasticsearchDomainConfig(UpdateElasticsearchDomainConfigRequest request) {
request = beforeClientExecution(request);
return executeUpdateElasticsearchDomainConfig(request);
}
@SdkInternalApi
final UpdateElasticsearchDomainConfigResult executeUpdateElasticsearchDomainConfig(
UpdateElasticsearchDomainConfigRequest updateElasticsearchDomainConfigRequest) {
ExecutionContext executionContext = createExecutionContext(updateElasticsearchDomainConfigRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request* Updates a package for use with Amazon ES domains. *
* * @param updatePackageRequest * Container for request parameters to UpdatePackage
operation.
* @return Result of the UpdatePackage operation returned by the service.
* @throws BaseException
* An error occurred while processing the request.
* @throws 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.
* @throws LimitExceededException
* An exception for trying to create more than allowed resources or sub-resources. Gives http status code of
* 409.
* @throws ResourceNotFoundException
* An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.
* @throws AccessDeniedException
* An error occurred because user does not have permissions to access the resource. Returns HTTP status code
* 403.
* @throws ValidationException
* An exception for missing / invalid input fields. Gives http status code of 400.
* @sample AWSElasticsearch.UpdatePackage
*/
@Override
public UpdatePackageResult updatePackage(UpdatePackageRequest request) {
request = beforeClientExecution(request);
return executeUpdatePackage(request);
}
@SdkInternalApi
final UpdatePackageResult executeUpdatePackage(UpdatePackageRequest updatePackageRequest) {
ExecutionContext executionContext = createExecutionContext(updatePackageRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request* Modifies an Amazon OpenSearch Service-managed interface VPC endpoint. *
* * @param updateVpcEndpointRequest * Modifies an Amazon OpenSearch Service-managed interface VPC endpoint. * @return Result of the UpdateVpcEndpoint operation returned by the service. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws 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. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws ConflictException * An error occurred because the client attempts to remove a resource that is currently in use. Returns HTTP * status code 409. * @throws BaseException * An error occurred while processing the request. * @sample AWSElasticsearch.UpdateVpcEndpoint */ @Override public UpdateVpcEndpointResult updateVpcEndpoint(UpdateVpcEndpointRequest request) { request = beforeClientExecution(request); return executeUpdateVpcEndpoint(request); } @SdkInternalApi final UpdateVpcEndpointResult executeUpdateVpcEndpoint(UpdateVpcEndpointRequest updateVpcEndpointRequest) { ExecutionContext executionContext = createExecutionContext(updateVpcEndpointRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Allows you to either upgrade your domain or perform an Upgrade eligibility check to a compatible Elasticsearch * version. *
* * @param upgradeElasticsearchDomainRequest * Container for request parameters to UpgradeElasticsearchDomain
operation.
* @return Result of the UpgradeElasticsearchDomain operation returned by the service.
* @throws BaseException
* An error occurred while processing the request.
* @throws ResourceNotFoundException
* An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.
* @throws ResourceAlreadyExistsException
* An exception for creating a resource that already exists. Gives http status code of 400.
* @throws DisabledOperationException
* An error occured because the client wanted to access a not supported operation. Gives http status code of
* 409.
* @throws ValidationException
* An exception for missing / invalid input fields. Gives http status code of 400.
* @throws 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.
* @sample AWSElasticsearch.UpgradeElasticsearchDomain
*/
@Override
public UpgradeElasticsearchDomainResult upgradeElasticsearchDomain(UpgradeElasticsearchDomainRequest request) {
request = beforeClientExecution(request);
return executeUpgradeElasticsearchDomain(request);
}
@SdkInternalApi
final UpgradeElasticsearchDomainResult executeUpgradeElasticsearchDomain(UpgradeElasticsearchDomainRequest upgradeElasticsearchDomainRequest) {
ExecutionContext executionContext = createExecutionContext(upgradeElasticsearchDomainRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
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.
*
* @param request
* The originally executed request
*
* @return The response metadata for the specified request, or null if none is available.
*/
public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request) {
return client.getResponseMetadataForRequest(request);
}
/**
* Normal invoke with authentication. Credentials are required and may be overriden at the request level.
**/
private