/* * 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.opensearch; 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.opensearch.AmazonOpenSearchClientBuilder; import com.amazonaws.AmazonServiceException; import com.amazonaws.services.opensearch.model.*; import com.amazonaws.services.opensearch.model.transform.*; /** * Client for accessing Amazon OpenSearch Service. All service calls made using this client are blocking, and will not * return until the service call completes. *
*
* Use the Amazon OpenSearch Service configuration API to create, configure, and manage OpenSearch Service domains. *
** For sample code that uses the configuration API, see the * Amazon OpenSearch Service Developer Guide . The guide also contains sample code for * sending signed HTTP requests to the OpenSearch 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 Amazon * Web Services service endpoints. *
*/ @ThreadSafe @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AmazonOpenSearchClient extends AmazonWebServiceClient implements AmazonOpenSearch { /** Provider for AWS credentials. */ private final AWSCredentialsProvider awsCredentialsProvider; private static final Log log = LogFactory.getLog(AmazonOpenSearch.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.opensearch.model.transform.DisabledOperationExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("SlotNotAvailableException").withExceptionUnmarshaller( com.amazonaws.services.opensearch.model.transform.SlotNotAvailableExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("LimitExceededException").withExceptionUnmarshaller( com.amazonaws.services.opensearch.model.transform.LimitExceededExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("DependencyFailureException").withExceptionUnmarshaller( com.amazonaws.services.opensearch.model.transform.DependencyFailureExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("InvalidTypeException").withExceptionUnmarshaller( com.amazonaws.services.opensearch.model.transform.InvalidTypeExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("ResourceNotFoundException").withExceptionUnmarshaller( com.amazonaws.services.opensearch.model.transform.ResourceNotFoundExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("ValidationException").withExceptionUnmarshaller( com.amazonaws.services.opensearch.model.transform.ValidationExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("ResourceAlreadyExistsException").withExceptionUnmarshaller( com.amazonaws.services.opensearch.model.transform.ResourceAlreadyExistsExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("InternalException").withExceptionUnmarshaller( com.amazonaws.services.opensearch.model.transform.InternalExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("InvalidPaginationTokenException").withExceptionUnmarshaller( com.amazonaws.services.opensearch.model.transform.InvalidPaginationTokenExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("AccessDeniedException").withExceptionUnmarshaller( com.amazonaws.services.opensearch.model.transform.AccessDeniedExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("ConflictException").withExceptionUnmarshaller( com.amazonaws.services.opensearch.model.transform.ConflictExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("BaseException").withExceptionUnmarshaller( com.amazonaws.services.opensearch.model.transform.BaseExceptionUnmarshaller.getInstance())) .withBaseServiceExceptionClass(com.amazonaws.services.opensearch.model.AmazonOpenSearchException.class)); public static AmazonOpenSearchClientBuilder builder() { return AmazonOpenSearchClientBuilder.standard(); } /** * Constructs a new client to invoke service methods on Amazon OpenSearch 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. */ AmazonOpenSearchClient(AwsSyncClientParams clientParams) { this(clientParams, false); } /** * Constructs a new client to invoke service methods on Amazon OpenSearch 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. */ AmazonOpenSearchClient(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("es.us-east-1.amazonaws.com"); HandlerChainFactory chainFactory = new HandlerChainFactory(); requestHandler2s.addAll(chainFactory.newRequestHandlerChain("/com/amazonaws/services/opensearch/request.handlers")); requestHandler2s.addAll(chainFactory.newRequestHandler2Chain("/com/amazonaws/services/opensearch/request.handler2s")); requestHandler2s.addAll(chainFactory.getGlobalHandlers()); } /** *
* Allows the destination Amazon OpenSearch Service domain owner to accept an inbound cross-cluster search * connection request. For more information, see Cross-cluster search for Amazon OpenSearch Service. *
* * @param acceptInboundConnectionRequest * Container for the parameters to theAcceptInboundConnection
operation.
* @return Result of the AcceptInboundConnection operation returned by the service.
* @throws ResourceNotFoundException
* An exception for accessing or deleting a resource that doesn't exist.
* @throws LimitExceededException
* An exception for trying to create more than the allowed number of resources or sub-resources.
* @throws DisabledOperationException
* An error occured because the client wanted to access an unsupported operation.
* @sample AmazonOpenSearch.AcceptInboundConnection
*/
@Override
public AcceptInboundConnectionResult acceptInboundConnection(AcceptInboundConnectionRequest request) {
request = beforeClientExecution(request);
return executeAcceptInboundConnection(request);
}
@SdkInternalApi
final AcceptInboundConnectionResult executeAcceptInboundConnection(AcceptInboundConnectionRequest acceptInboundConnectionRequest) {
ExecutionContext executionContext = createExecutionContext(acceptInboundConnectionRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request* Attaches tags to an existing Amazon OpenSearch Service domain. Tags are a set of case-sensitive key-value pairs. * A domain can have up to 10 tags. For more information, see Tagging Amazon OpenSearch Service domains. *
* * @param addTagsRequest * Container for the parameters to theAddTags
operation. Specifies the tags to attach to the
* 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 the allowed number of resources or sub-resources.
* @throws ValidationException
* An exception for accessing or deleting a resource that doesn't exist.
* @throws InternalException
* Request processing failed because of an unknown error, exception, or internal failure.
* @sample AmazonOpenSearch.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 OpenSearch Service domain. For more information, see Custom packages * for Amazon OpenSearch Service. *
* * @param associatePackageRequest * Container for the request parameters to theAssociatePackage
operation.
* @return Result of the AssociatePackage operation returned by the service.
* @throws BaseException
* An error occurred while processing the request.
* @throws InternalException
* Request processing failed because of an unknown error, exception, or internal failure.
* @throws ResourceNotFoundException
* An exception for accessing or deleting a resource that doesn't exist.
* @throws AccessDeniedException
* An error occurred because you don't have permissions to access the resource.
* @throws ValidationException
* An exception for accessing or deleting a resource that doesn't exist.
* @throws ConflictException
* An error occurred because the client attempts to remove a resource that is currently in use.
* @sample AmazonOpenSearch.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 * @return Result of the AuthorizeVpcEndpointAccess operation returned by the service. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that doesn't exist. * @throws DisabledOperationException * An error occured because the client wanted to access an unsupported operation. * @throws LimitExceededException * An exception for trying to create more than the allowed number of resources or sub-resources. * @throws ValidationException * An exception for accessing or deleting a resource that doesn't exist. * @throws InternalException * Request processing failed because of an unknown error, exception, or internal failure. * @throws BaseException * An error occurred while processing the request. * @sample AmazonOpenSearch.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 OpenSearch Service domain. You can only perform this
* operation before the AutomatedUpdateDate
and when the domain's UpdateStatus
is
* PENDING_UPDATE
. For more information, see Service
* software updates in Amazon OpenSearch Service.
*
* Creates an Amazon OpenSearch Service domain. For more information, see Creating and * managing Amazon OpenSearch Service domains. *
* * @param createDomainRequest * @return Result of the CreateDomain 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 an unsupported operation. * @throws InternalException * Request processing failed because of an unknown error, exception, or internal failure. * @throws InvalidTypeException * An exception for trying to create or access a sub-resource that's either invalid or not supported. * @throws LimitExceededException * An exception for trying to create more than the allowed number of resources or sub-resources. * @throws ResourceAlreadyExistsException * An exception for creating a resource that already exists. * @throws ValidationException * An exception for accessing or deleting a resource that doesn't exist. * @sample AmazonOpenSearch.CreateDomain */ @Override public CreateDomainResult createDomain(CreateDomainRequest request) { request = beforeClientExecution(request); return executeCreateDomain(request); } @SdkInternalApi final CreateDomainResult executeCreateDomain(CreateDomainRequest createDomainRequest) { ExecutionContext executionContext = createExecutionContext(createDomainRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Creates a new cross-cluster search connection from a source Amazon OpenSearch Service domain to a destination * domain. For more information, see Cross-cluster search for Amazon OpenSearch Service. *
* * @param createOutboundConnectionRequest * Container for the parameters to theCreateOutboundConnection
operation.
* @return Result of the CreateOutboundConnection operation returned by the service.
* @throws LimitExceededException
* An exception for trying to create more than the allowed number of resources or sub-resources.
* @throws InternalException
* Request processing failed because of an unknown error, exception, or internal failure.
* @throws ResourceAlreadyExistsException
* An exception for creating a resource that already exists.
* @throws DisabledOperationException
* An error occured because the client wanted to access an unsupported operation.
* @sample AmazonOpenSearch.CreateOutboundConnection
*/
@Override
public CreateOutboundConnectionResult createOutboundConnection(CreateOutboundConnectionRequest request) {
request = beforeClientExecution(request);
return executeCreateOutboundConnection(request);
}
@SdkInternalApi
final CreateOutboundConnectionResult executeCreateOutboundConnection(CreateOutboundConnectionRequest createOutboundConnectionRequest) {
ExecutionContext executionContext = createExecutionContext(createOutboundConnectionRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request* Creates a package for use with Amazon OpenSearch Service domains. For more information, see Custom packages * for Amazon OpenSearch Service. *
* * @param createPackageRequest * Container for request parameters to theCreatePackage
operation.
* @return Result of the CreatePackage operation returned by the service.
* @throws BaseException
* An error occurred while processing the request.
* @throws InternalException
* Request processing failed because of an unknown error, exception, or internal failure.
* @throws LimitExceededException
* An exception for trying to create more than the allowed number of resources or sub-resources.
* @throws InvalidTypeException
* An exception for trying to create or access a sub-resource that's either invalid or not supported.
* @throws ResourceAlreadyExistsException
* An exception for creating a resource that already exists.
* @throws AccessDeniedException
* An error occurred because you don't have permissions to access the resource.
* @throws ValidationException
* An exception for accessing or deleting a resource that doesn't exist.
* @sample AmazonOpenSearch.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 * @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. * @throws ValidationException * An exception for accessing or deleting a resource that doesn't exist. * @throws LimitExceededException * An exception for trying to create more than the allowed number of resources or sub-resources. * @throws InternalException * Request processing failed because of an unknown error, exception, or internal failure. * @throws DisabledOperationException * An error occured because the client wanted to access an unsupported operation. * @throws BaseException * An error occurred while processing the request. * @sample AmazonOpenSearch.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* Deletes an Amazon OpenSearch Service domain and all of its data. You can't recover a domain after you delete it. *
* * @param deleteDomainRequest * Container for the parameters to theDeleteDomain
operation.
* @return Result of the DeleteDomain operation returned by the service.
* @throws BaseException
* An error occurred while processing the request.
* @throws InternalException
* Request processing failed because of an unknown error, exception, or internal failure.
* @throws ResourceNotFoundException
* An exception for accessing or deleting a resource that doesn't exist.
* @throws ValidationException
* An exception for accessing or deleting a resource that doesn't exist.
* @sample AmazonOpenSearch.DeleteDomain
*/
@Override
public DeleteDomainResult deleteDomain(DeleteDomainRequest request) {
request = beforeClientExecution(request);
return executeDeleteDomain(request);
}
@SdkInternalApi
final DeleteDomainResult executeDeleteDomain(DeleteDomainRequest deleteDomainRequest) {
ExecutionContext executionContext = createExecutionContext(deleteDomainRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request* Allows the destination Amazon OpenSearch Service domain owner to delete an existing inbound cross-cluster search * connection. For more information, see Cross-cluster search for Amazon OpenSearch Service. *
* * @param deleteInboundConnectionRequest * Container for the parameters to theDeleteInboundConnection
operation.
* @return Result of the DeleteInboundConnection operation returned by the service.
* @throws ResourceNotFoundException
* An exception for accessing or deleting a resource that doesn't exist.
* @throws DisabledOperationException
* An error occured because the client wanted to access an unsupported operation.
* @sample AmazonOpenSearch.DeleteInboundConnection
*/
@Override
public DeleteInboundConnectionResult deleteInboundConnection(DeleteInboundConnectionRequest request) {
request = beforeClientExecution(request);
return executeDeleteInboundConnection(request);
}
@SdkInternalApi
final DeleteInboundConnectionResult executeDeleteInboundConnection(DeleteInboundConnectionRequest deleteInboundConnectionRequest) {
ExecutionContext executionContext = createExecutionContext(deleteInboundConnectionRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request* Allows the source Amazon OpenSearch Service domain owner to delete an existing outbound cross-cluster search * connection. For more information, see Cross-cluster search for Amazon OpenSearch Service. *
* * @param deleteOutboundConnectionRequest * Container for the parameters to theDeleteOutboundConnection
operation.
* @return Result of the DeleteOutboundConnection operation returned by the service.
* @throws ResourceNotFoundException
* An exception for accessing or deleting a resource that doesn't exist.
* @throws DisabledOperationException
* An error occured because the client wanted to access an unsupported operation.
* @sample AmazonOpenSearch.DeleteOutboundConnection
*/
@Override
public DeleteOutboundConnectionResult deleteOutboundConnection(DeleteOutboundConnectionRequest request) {
request = beforeClientExecution(request);
return executeDeleteOutboundConnection(request);
}
@SdkInternalApi
final DeleteOutboundConnectionResult executeDeleteOutboundConnection(DeleteOutboundConnectionRequest deleteOutboundConnectionRequest) {
ExecutionContext executionContext = createExecutionContext(deleteOutboundConnectionRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request* Deletes an Amazon OpenSearch Service package. For more information, see Custom packages * for Amazon OpenSearch Service. *
* * @param deletePackageRequest * Deletes a package from OpenSearch Service. The package can't be associated with any OpenSearch Service * domain. * @return Result of the DeletePackage operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws InternalException * Request processing failed because of an unknown error, exception, or internal failure. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that doesn't exist. * @throws AccessDeniedException * An error occurred because you don't have permissions to access the resource. * @throws ValidationException * An exception for accessing or deleting a resource that doesn't exist. * @throws ConflictException * An error occurred because the client attempts to remove a resource that is currently in use. * @sample AmazonOpenSearch.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 * @return Result of the DeleteVpcEndpoint operation returned by the service. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that doesn't exist. * @throws DisabledOperationException * An error occured because the client wanted to access an unsupported operation. * @throws InternalException * Request processing failed because of an unknown error, exception, or internal failure. * @throws BaseException * An error occurred while processing the request. * @sample AmazonOpenSearch.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* Describes the domain configuration for the specified Amazon OpenSearch Service domain, including the domain ID, * domain service endpoint, and domain ARN. *
* * @param describeDomainRequest * Container for the parameters to theDescribeDomain
operation.
* @return Result of the DescribeDomain operation returned by the service.
* @throws BaseException
* An error occurred while processing the request.
* @throws InternalException
* Request processing failed because of an unknown error, exception, or internal failure.
* @throws ResourceNotFoundException
* An exception for accessing or deleting a resource that doesn't exist.
* @throws ValidationException
* An exception for accessing or deleting a resource that doesn't exist.
* @sample AmazonOpenSearch.DescribeDomain
*/
@Override
public DescribeDomainResult describeDomain(DescribeDomainRequest request) {
request = beforeClientExecution(request);
return executeDescribeDomain(request);
}
@SdkInternalApi
final DescribeDomainResult executeDescribeDomain(DescribeDomainRequest describeDomainRequest) {
ExecutionContext executionContext = createExecutionContext(describeDomainRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request* Returns the list of optimizations that Auto-Tune has made to an Amazon OpenSearch Service domain. For more * information, see Auto-Tune for Amazon * OpenSearch Service. *
* * @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
* Request processing failed because of an unknown error, exception, or internal failure.
* @throws ResourceNotFoundException
* An exception for accessing or deleting a resource that doesn't exist.
* @throws ValidationException
* An exception for accessing or deleting a resource that doesn't exist.
* @sample AmazonOpenSearch.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 an Amazon OpenSearch Service domain. For * more information, see Making configuration changes in Amazon OpenSearch Service. *
* * @param describeDomainChangeProgressRequest * Container for the parameters to theDescribeDomainChangeProgress
operation.
* @return Result of the DescribeDomainChangeProgress operation returned by the service.
* @throws BaseException
* An error occurred while processing the request.
* @throws InternalException
* Request processing failed because of an unknown error, exception, or internal failure.
* @throws ResourceNotFoundException
* An exception for accessing or deleting a resource that doesn't exist.
* @throws ValidationException
* An exception for accessing or deleting a resource that doesn't exist.
* @sample AmazonOpenSearch.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 the configuration of an Amazon OpenSearch Service domain. *
* * @param describeDomainConfigRequest * Container for the parameters to theDescribeDomainConfig
operation.
* @return Result of the DescribeDomainConfig operation returned by the service.
* @throws BaseException
* An error occurred while processing the request.
* @throws InternalException
* Request processing failed because of an unknown error, exception, or internal failure.
* @throws ResourceNotFoundException
* An exception for accessing or deleting a resource that doesn't exist.
* @throws ValidationException
* An exception for accessing or deleting a resource that doesn't exist.
* @sample AmazonOpenSearch.DescribeDomainConfig
*/
@Override
public DescribeDomainConfigResult describeDomainConfig(DescribeDomainConfigRequest request) {
request = beforeClientExecution(request);
return executeDescribeDomainConfig(request);
}
@SdkInternalApi
final DescribeDomainConfigResult executeDescribeDomainConfig(DescribeDomainConfigRequest describeDomainConfigRequest) {
ExecutionContext executionContext = createExecutionContext(describeDomainConfigRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request* Returns information about domain and node health, the standby Availability Zone, number of nodes per Availability * Zone, and shard count per node. *
* * @param describeDomainHealthRequest * Container for the parameters to theDescribeDomainHealth
operation.
* @return Result of the DescribeDomainHealth operation returned by the service.
* @throws BaseException
* An error occurred while processing the request.
* @throws InternalException
* Request processing failed because of an unknown error, exception, or internal failure.
* @throws ResourceNotFoundException
* An exception for accessing or deleting a resource that doesn't exist.
* @throws ValidationException
* An exception for accessing or deleting a resource that doesn't exist.
* @throws DisabledOperationException
* An error occured because the client wanted to access an unsupported operation.
* @sample AmazonOpenSearch.DescribeDomainHealth
*/
@Override
public DescribeDomainHealthResult describeDomainHealth(DescribeDomainHealthRequest request) {
request = beforeClientExecution(request);
return executeDescribeDomainHealth(request);
}
@SdkInternalApi
final DescribeDomainHealthResult executeDescribeDomainHealth(DescribeDomainHealthRequest describeDomainHealthRequest) {
ExecutionContext executionContext = createExecutionContext(describeDomainHealthRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request* Returns information about domain and nodes, including data nodes, master nodes, ultrawarm nodes, Availability * Zone(s), standby nodes, node configurations, and node states. *
* * @param describeDomainNodesRequest * Container for the parameters to theDescribeDomainNodes
operation.
* @return Result of the DescribeDomainNodes operation returned by the service.
* @throws BaseException
* An error occurred while processing the request.
* @throws InternalException
* Request processing failed because of an unknown error, exception, or internal failure.
* @throws ResourceNotFoundException
* An exception for accessing or deleting a resource that doesn't exist.
* @throws ValidationException
* An exception for accessing or deleting a resource that doesn't exist.
* @throws DisabledOperationException
* An error occured because the client wanted to access an unsupported operation.
* @throws DependencyFailureException
* An exception for when a failure in one of the dependencies results in the service being unable to fetch
* details about the resource.
* @sample AmazonOpenSearch.DescribeDomainNodes
*/
@Override
public DescribeDomainNodesResult describeDomainNodes(DescribeDomainNodesRequest request) {
request = beforeClientExecution(request);
return executeDescribeDomainNodes(request);
}
@SdkInternalApi
final DescribeDomainNodesResult executeDescribeDomainNodes(DescribeDomainNodesRequest describeDomainNodesRequest) {
ExecutionContext executionContext = createExecutionContext(describeDomainNodesRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request* Returns domain configuration information about the specified Amazon OpenSearch Service domains. *
* * @param describeDomainsRequest * Container for the parameters to theDescribeDomains
operation.
* @return Result of the DescribeDomains operation returned by the service.
* @throws BaseException
* An error occurred while processing the request.
* @throws InternalException
* Request processing failed because of an unknown error, exception, or internal failure.
* @throws ValidationException
* An exception for accessing or deleting a resource that doesn't exist.
* @sample AmazonOpenSearch.DescribeDomains
*/
@Override
public DescribeDomainsResult describeDomains(DescribeDomainsRequest request) {
request = beforeClientExecution(request);
return executeDescribeDomains(request);
}
@SdkInternalApi
final DescribeDomainsResult executeDescribeDomains(DescribeDomainsRequest describeDomainsRequest) {
ExecutionContext executionContext = createExecutionContext(describeDomainsRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request* Describes the progress of a pre-update dry run analysis on an Amazon OpenSearch Service domain. For more * information, see Determining whether a change will cause a blue/green deployment. *
* * @param describeDryRunProgressRequest * @return Result of the DescribeDryRunProgress operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws InternalException * Request processing failed because of an unknown error, exception, or internal failure. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that doesn't exist. * @throws ValidationException * An exception for accessing or deleting a resource that doesn't exist. * @throws DisabledOperationException * An error occured because the client wanted to access an unsupported operation. * @sample AmazonOpenSearch.DescribeDryRunProgress */ @Override public DescribeDryRunProgressResult describeDryRunProgress(DescribeDryRunProgressRequest request) { request = beforeClientExecution(request); return executeDescribeDryRunProgress(request); } @SdkInternalApi final DescribeDryRunProgressResult executeDescribeDryRunProgress(DescribeDryRunProgressRequest describeDryRunProgressRequest) { ExecutionContext executionContext = createExecutionContext(describeDryRunProgressRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Lists all the inbound cross-cluster search connections for a destination (remote) Amazon OpenSearch Service * domain. For more information, see Cross-cluster search for Amazon OpenSearch Service. *
* * @param describeInboundConnectionsRequest * Container for the parameters to theDescribeInboundConnections
operation.
* @return Result of the DescribeInboundConnections operation returned by the service.
* @throws InvalidPaginationTokenException
* Request processing failed because you provided an invalid pagination token.
* @throws DisabledOperationException
* An error occured because the client wanted to access an unsupported operation.
* @sample AmazonOpenSearch.DescribeInboundConnections
*/
@Override
public DescribeInboundConnectionsResult describeInboundConnections(DescribeInboundConnectionsRequest request) {
request = beforeClientExecution(request);
return executeDescribeInboundConnections(request);
}
@SdkInternalApi
final DescribeInboundConnectionsResult executeDescribeInboundConnections(DescribeInboundConnectionsRequest describeInboundConnectionsRequest) {
ExecutionContext executionContext = createExecutionContext(describeInboundConnectionsRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request* Describes the instance count, storage, and master node limits for a given OpenSearch or Elasticsearch version and * instance type. *
* * @param describeInstanceTypeLimitsRequest * Container for the parameters to theDescribeInstanceTypeLimits
operation.
* @return Result of the DescribeInstanceTypeLimits operation returned by the service.
* @throws BaseException
* An error occurred while processing the request.
* @throws InternalException
* Request processing failed because of an unknown error, exception, or internal failure.
* @throws InvalidTypeException
* An exception for trying to create or access a sub-resource that's either invalid or not supported.
* @throws LimitExceededException
* An exception for trying to create more than the allowed number of resources or sub-resources.
* @throws ResourceNotFoundException
* An exception for accessing or deleting a resource that doesn't exist.
* @throws ValidationException
* An exception for accessing or deleting a resource that doesn't exist.
* @sample AmazonOpenSearch.DescribeInstanceTypeLimits
*/
@Override
public DescribeInstanceTypeLimitsResult describeInstanceTypeLimits(DescribeInstanceTypeLimitsRequest request) {
request = beforeClientExecution(request);
return executeDescribeInstanceTypeLimits(request);
}
@SdkInternalApi
final DescribeInstanceTypeLimitsResult executeDescribeInstanceTypeLimits(DescribeInstanceTypeLimitsRequest describeInstanceTypeLimitsRequest) {
ExecutionContext executionContext = createExecutionContext(describeInstanceTypeLimitsRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request* Lists all the outbound cross-cluster connections for a local (source) Amazon OpenSearch Service domain. For more * information, see Cross-cluster search for Amazon OpenSearch Service. *
* * @param describeOutboundConnectionsRequest * Container for the parameters to theDescribeOutboundConnections
operation.
* @return Result of the DescribeOutboundConnections operation returned by the service.
* @throws InvalidPaginationTokenException
* Request processing failed because you provided an invalid pagination token.
* @throws DisabledOperationException
* An error occured because the client wanted to access an unsupported operation.
* @sample AmazonOpenSearch.DescribeOutboundConnections
*/
@Override
public DescribeOutboundConnectionsResult describeOutboundConnections(DescribeOutboundConnectionsRequest request) {
request = beforeClientExecution(request);
return executeDescribeOutboundConnections(request);
}
@SdkInternalApi
final DescribeOutboundConnectionsResult executeDescribeOutboundConnections(DescribeOutboundConnectionsRequest describeOutboundConnectionsRequest) {
ExecutionContext executionContext = createExecutionContext(describeOutboundConnectionsRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request* Describes all packages available to OpenSearch Service. For more information, see Custom packages * for Amazon OpenSearch Service. *
* * @param describePackagesRequest * Container for the request parameters to theDescribePackage
operation.
* @return Result of the DescribePackages operation returned by the service.
* @throws BaseException
* An error occurred while processing the request.
* @throws InternalException
* Request processing failed because of an unknown error, exception, or internal failure.
* @throws ResourceNotFoundException
* An exception for accessing or deleting a resource that doesn't exist.
* @throws AccessDeniedException
* An error occurred because you don't have permissions to access the resource.
* @throws ValidationException
* An exception for accessing or deleting a resource that doesn't exist.
* @sample AmazonOpenSearch.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* Describes the available Amazon OpenSearch Service Reserved Instance offerings for a given Region. For more * information, see Reserved * Instances in Amazon OpenSearch Service. *
* * @param describeReservedInstanceOfferingsRequest * Container for the request parameters to aDescribeReservedInstanceOfferings
operation.
* @return Result of the DescribeReservedInstanceOfferings operation returned by the service.
* @throws ResourceNotFoundException
* An exception for accessing or deleting a resource that doesn't exist.
* @throws ValidationException
* An exception for accessing or deleting a resource that doesn't exist.
* @throws DisabledOperationException
* An error occured because the client wanted to access an unsupported operation.
* @throws InternalException
* Request processing failed because of an unknown error, exception, or internal failure.
* @sample AmazonOpenSearch.DescribeReservedInstanceOfferings
*/
@Override
public DescribeReservedInstanceOfferingsResult describeReservedInstanceOfferings(DescribeReservedInstanceOfferingsRequest request) {
request = beforeClientExecution(request);
return executeDescribeReservedInstanceOfferings(request);
}
@SdkInternalApi
final DescribeReservedInstanceOfferingsResult executeDescribeReservedInstanceOfferings(
DescribeReservedInstanceOfferingsRequest describeReservedInstanceOfferingsRequest) {
ExecutionContext executionContext = createExecutionContext(describeReservedInstanceOfferingsRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request* Describes the Amazon OpenSearch Service instances that you have reserved in a given Region. For more information, * see Reserved Instances in * Amazon OpenSearch Service. *
* * @param describeReservedInstancesRequest * Container for the request parameters to theDescribeReservedInstances
operation.
* @return Result of the DescribeReservedInstances operation returned by the service.
* @throws ResourceNotFoundException
* An exception for accessing or deleting a resource that doesn't exist.
* @throws InternalException
* Request processing failed because of an unknown error, exception, or internal failure.
* @throws ValidationException
* An exception for accessing or deleting a resource that doesn't exist.
* @throws DisabledOperationException
* An error occured because the client wanted to access an unsupported operation.
* @sample AmazonOpenSearch.DescribeReservedInstances
*/
@Override
public DescribeReservedInstancesResult describeReservedInstances(DescribeReservedInstancesRequest request) {
request = beforeClientExecution(request);
return executeDescribeReservedInstances(request);
}
@SdkInternalApi
final DescribeReservedInstancesResult executeDescribeReservedInstances(DescribeReservedInstancesRequest describeReservedInstancesRequest) {
ExecutionContext executionContext = createExecutionContext(describeReservedInstancesRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request* Describes one or more Amazon OpenSearch Service-managed VPC endpoints. *
* * @param describeVpcEndpointsRequest * @return Result of the DescribeVpcEndpoints operation returned by the service. * @throws ValidationException * An exception for accessing or deleting a resource that doesn't exist. * @throws InternalException * Request processing failed because of an unknown error, exception, or internal failure. * @throws DisabledOperationException * An error occured because the client wanted to access an unsupported operation. * @throws BaseException * An error occurred while processing the request. * @sample AmazonOpenSearch.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* Removes a package from the specified Amazon OpenSearch Service domain. The package can't be in use with any * OpenSearch index for the dissociation to succeed. The package is still available in OpenSearch Service for * association later. For more information, see Custom packages * for Amazon OpenSearch Service. *
* * @param dissociatePackageRequest * Container for the request parameters to theDissociatePackage
operation.
* @return Result of the DissociatePackage operation returned by the service.
* @throws BaseException
* An error occurred while processing the request.
* @throws InternalException
* Request processing failed because of an unknown error, exception, or internal failure.
* @throws ResourceNotFoundException
* An exception for accessing or deleting a resource that doesn't exist.
* @throws AccessDeniedException
* An error occurred because you don't have permissions to access the resource.
* @throws ValidationException
* An exception for accessing or deleting a resource that doesn't exist.
* @throws ConflictException
* An error occurred because the client attempts to remove a resource that is currently in use.
* @sample AmazonOpenSearch.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 map of OpenSearch or Elasticsearch versions and the versions you can upgrade them to. *
* * @param getCompatibleVersionsRequest * Container for the request parameters toGetCompatibleVersions
operation.
* @return Result of the GetCompatibleVersions 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 doesn't exist.
* @throws DisabledOperationException
* An error occured because the client wanted to access an unsupported operation.
* @throws ValidationException
* An exception for accessing or deleting a resource that doesn't exist.
* @throws InternalException
* Request processing failed because of an unknown error, exception, or internal failure.
* @sample AmazonOpenSearch.GetCompatibleVersions
*/
@Override
public GetCompatibleVersionsResult getCompatibleVersions(GetCompatibleVersionsRequest request) {
request = beforeClientExecution(request);
return executeGetCompatibleVersions(request);
}
@SdkInternalApi
final GetCompatibleVersionsResult executeGetCompatibleVersions(GetCompatibleVersionsRequest getCompatibleVersionsRequest) {
ExecutionContext executionContext = createExecutionContext(getCompatibleVersionsRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request* Returns a list of Amazon OpenSearch Service package versions, along with their creation time, commit message, and * plugin properties (if the package is a zip plugin package). For more information, see Custom packages * for Amazon OpenSearch Service. *
* * @param getPackageVersionHistoryRequest * Container for the request parameters to theGetPackageVersionHistory
operation.
* @return Result of the GetPackageVersionHistory operation returned by the service.
* @throws BaseException
* An error occurred while processing the request.
* @throws InternalException
* Request processing failed because of an unknown error, exception, or internal failure.
* @throws ResourceNotFoundException
* An exception for accessing or deleting a resource that doesn't exist.
* @throws AccessDeniedException
* An error occurred because you don't have permissions to access the resource.
* @throws ValidationException
* An exception for accessing or deleting a resource that doesn't exist.
* @sample AmazonOpenSearch.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 performed on an Amazon OpenSearch Service domain. *
* * @param getUpgradeHistoryRequest * Container for the request parameters to theGetUpgradeHistory
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 doesn't exist.
* @throws DisabledOperationException
* An error occured because the client wanted to access an unsupported operation.
* @throws ValidationException
* An exception for accessing or deleting a resource that doesn't exist.
* @throws InternalException
* Request processing failed because of an unknown error, exception, or internal failure.
* @sample AmazonOpenSearch.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* Returns the most recent status of the last upgrade or upgrade eligibility check performed on an Amazon OpenSearch * Service domain. *
* * @param getUpgradeStatusRequest * Container for the request parameters to theGetUpgradeStatus
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 doesn't exist.
* @throws DisabledOperationException
* An error occured because the client wanted to access an unsupported operation.
* @throws ValidationException
* An exception for accessing or deleting a resource that doesn't exist.
* @throws InternalException
* Request processing failed because of an unknown error, exception, or internal failure.
* @sample AmazonOpenSearch.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 names of all Amazon OpenSearch Service domains owned by the current user in the active Region. *
* * @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 accessing or deleting a resource that doesn't exist.
* @sample AmazonOpenSearch.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 OpenSearch Service domains associated with a given package. For more information, see Custom packages * for Amazon OpenSearch Service. *
* * @param listDomainsForPackageRequest * Container for the request parameters to theListDomainsForPackage
operation.
* @return Result of the ListDomainsForPackage operation returned by the service.
* @throws BaseException
* An error occurred while processing the request.
* @throws InternalException
* Request processing failed because of an unknown error, exception, or internal failure.
* @throws ResourceNotFoundException
* An exception for accessing or deleting a resource that doesn't exist.
* @throws AccessDeniedException
* An error occurred because you don't have permissions to access the resource.
* @throws ValidationException
* An exception for accessing or deleting a resource that doesn't exist.
* @sample AmazonOpenSearch.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* Lists all instance types and available features for a given OpenSearch or Elasticsearch version. *
* * @param listInstanceTypeDetailsRequest * @return Result of the ListInstanceTypeDetails operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws InternalException * Request processing failed because of an unknown error, exception, or internal failure. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that doesn't exist. * @throws ValidationException * An exception for accessing or deleting a resource that doesn't exist. * @sample AmazonOpenSearch.ListInstanceTypeDetails */ @Override public ListInstanceTypeDetailsResult listInstanceTypeDetails(ListInstanceTypeDetailsRequest request) { request = beforeClientExecution(request); return executeListInstanceTypeDetails(request); } @SdkInternalApi final ListInstanceTypeDetailsResult executeListInstanceTypeDetails(ListInstanceTypeDetailsRequest listInstanceTypeDetailsRequest) { ExecutionContext executionContext = createExecutionContext(listInstanceTypeDetailsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Lists all packages associated with an Amazon OpenSearch Service domain. For more information, see Custom packages * for Amazon OpenSearch Service. *
* * @param listPackagesForDomainRequest * Container for the request parameters to theListPackagesForDomain
operation.
* @return Result of the ListPackagesForDomain operation returned by the service.
* @throws BaseException
* An error occurred while processing the request.
* @throws InternalException
* Request processing failed because of an unknown error, exception, or internal failure.
* @throws ResourceNotFoundException
* An exception for accessing or deleting a resource that doesn't exist.
* @throws AccessDeniedException
* An error occurred because you don't have permissions to access the resource.
* @throws ValidationException
* An exception for accessing or deleting a resource that doesn't exist.
* @sample AmazonOpenSearch.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* Retrieves a list of configuration changes that are scheduled for a domain. These changes can be service * software updates or blue/green Auto-Tune enhancements. *
* * @param listScheduledActionsRequest * @return Result of the ListScheduledActions operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws InternalException * Request processing failed because of an unknown error, exception, or internal failure. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that doesn't exist. * @throws InvalidPaginationTokenException * Request processing failed because you provided an invalid pagination token. * @throws ValidationException * An exception for accessing or deleting a resource that doesn't exist. * @sample AmazonOpenSearch.ListScheduledActions */ @Override public ListScheduledActionsResult listScheduledActions(ListScheduledActionsRequest request) { request = beforeClientExecution(request); return executeListScheduledActions(request); } @SdkInternalApi final ListScheduledActionsResult executeListScheduledActions(ListScheduledActionsRequest listScheduledActionsRequest) { ExecutionContext executionContext = createExecutionContext(listScheduledActionsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Returns all resource tags for an Amazon OpenSearch Service domain. For more information, see Tagging Amazon OpenSearch Service domains. *
* * @param listTagsRequest * Container for the parameters to theListTags
operation.
* @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 doesn't exist.
* @throws ValidationException
* An exception for accessing or deleting a resource that doesn't exist.
* @throws InternalException
* Request processing failed because of an unknown error, exception, or internal failure.
* @sample AmazonOpenSearch.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* Lists all versions of OpenSearch and Elasticsearch that Amazon OpenSearch Service supports. *
* * @param listVersionsRequest * Container for the request parameters to theListVersions
operation.
* @return Result of the ListVersions operation returned by the service.
* @throws BaseException
* An error occurred while processing the request.
* @throws InternalException
* Request processing failed because of an unknown error, exception, or internal failure.
* @throws ResourceNotFoundException
* An exception for accessing or deleting a resource that doesn't exist.
* @throws ValidationException
* An exception for accessing or deleting a resource that doesn't exist.
* @sample AmazonOpenSearch.ListVersions
*/
@Override
public ListVersionsResult listVersions(ListVersionsRequest request) {
request = beforeClientExecution(request);
return executeListVersions(request);
}
@SdkInternalApi
final ListVersionsResult executeListVersions(ListVersionsRequest listVersionsRequest) {
ExecutionContext executionContext = createExecutionContext(listVersionsRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request* Retrieves information about each Amazon Web Services principal that is allowed to access a given Amazon * OpenSearch Service domain through the use of an interface VPC endpoint. *
* * @param listVpcEndpointAccessRequest * @return Result of the ListVpcEndpointAccess operation returned by the service. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that doesn't exist. * @throws DisabledOperationException * An error occured because the client wanted to access an unsupported operation. * @throws InternalException * Request processing failed because of an unknown error, exception, or internal failure. * @throws BaseException * An error occurred while processing the request. * @sample AmazonOpenSearch.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 Amazon Web Services account and * Region. *
* * @param listVpcEndpointsRequest * @return Result of the ListVpcEndpoints operation returned by the service. * @throws InternalException * Request processing failed because of an unknown error, exception, or internal failure. * @throws DisabledOperationException * An error occured because the client wanted to access an unsupported operation. * @throws BaseException * An error occurred while processing the request. * @sample AmazonOpenSearch.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 * @return Result of the ListVpcEndpointsForDomain operation returned by the service. * @throws InternalException * Request processing failed because of an unknown error, exception, or internal failure. * @throws DisabledOperationException * An error occured because the client wanted to access an unsupported operation. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that doesn't exist. * @throws BaseException * An error occurred while processing the request. * @sample AmazonOpenSearch.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 Amazon OpenSearch Service Reserved Instances. *
* * @param purchaseReservedInstanceOfferingRequest * Container for request parameters to thePurchaseReservedInstanceOffering
operation.
* @return Result of the PurchaseReservedInstanceOffering operation returned by the service.
* @throws ResourceNotFoundException
* An exception for accessing or deleting a resource that doesn't exist.
* @throws ResourceAlreadyExistsException
* An exception for creating a resource that already exists.
* @throws LimitExceededException
* An exception for trying to create more than the allowed number of resources or sub-resources.
* @throws DisabledOperationException
* An error occured because the client wanted to access an unsupported operation.
* @throws ValidationException
* An exception for accessing or deleting a resource that doesn't exist.
* @throws InternalException
* Request processing failed because of an unknown error, exception, or internal failure.
* @sample AmazonOpenSearch.PurchaseReservedInstanceOffering
*/
@Override
public PurchaseReservedInstanceOfferingResult purchaseReservedInstanceOffering(PurchaseReservedInstanceOfferingRequest request) {
request = beforeClientExecution(request);
return executePurchaseReservedInstanceOffering(request);
}
@SdkInternalApi
final PurchaseReservedInstanceOfferingResult executePurchaseReservedInstanceOffering(
PurchaseReservedInstanceOfferingRequest purchaseReservedInstanceOfferingRequest) {
ExecutionContext executionContext = createExecutionContext(purchaseReservedInstanceOfferingRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request* Allows the remote Amazon OpenSearch Service domain owner to reject an inbound cross-cluster connection request. *
* * @param rejectInboundConnectionRequest * Container for the request parameters to theRejectInboundConnection
operation.
* @return Result of the RejectInboundConnection operation returned by the service.
* @throws ResourceNotFoundException
* An exception for accessing or deleting a resource that doesn't exist.
* @throws DisabledOperationException
* An error occured because the client wanted to access an unsupported operation.
* @sample AmazonOpenSearch.RejectInboundConnection
*/
@Override
public RejectInboundConnectionResult rejectInboundConnection(RejectInboundConnectionRequest request) {
request = beforeClientExecution(request);
return executeRejectInboundConnection(request);
}
@SdkInternalApi
final RejectInboundConnectionResult executeRejectInboundConnection(RejectInboundConnectionRequest rejectInboundConnectionRequest) {
ExecutionContext executionContext = createExecutionContext(rejectInboundConnectionRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request* Removes the specified set of tags from an Amazon OpenSearch Service domain. For more information, see Tagging Amazon OpenSearch Service domains. *
* * @param removeTagsRequest * Container for the request parameters to theRemoveTags
operation.
* @return Result of the RemoveTags operation returned by the service.
* @throws BaseException
* An error occurred while processing the request.
* @throws ValidationException
* An exception for accessing or deleting a resource that doesn't exist.
* @throws InternalException
* Request processing failed because of an unknown error, exception, or internal failure.
* @sample AmazonOpenSearch.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 * @return Result of the RevokeVpcEndpointAccess operation returned by the service. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that doesn't exist. * @throws ValidationException * An exception for accessing or deleting a resource that doesn't exist. * @throws DisabledOperationException * An error occured because the client wanted to access an unsupported operation. * @throws InternalException * Request processing failed because of an unknown error, exception, or internal failure. * @throws BaseException * An error occurred while processing the request. * @sample AmazonOpenSearch.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 OpenSearch Service domain. For more information, see Service * software updates in Amazon OpenSearch Service. *
* * @param startServiceSoftwareUpdateRequest * Container for the request parameters to theStartServiceSoftwareUpdate
operation.
* @return Result of the StartServiceSoftwareUpdate operation returned by the service.
* @throws BaseException
* An error occurred while processing the request.
* @throws InternalException
* Request processing failed because of an unknown error, exception, or internal failure.
* @throws ResourceNotFoundException
* An exception for accessing or deleting a resource that doesn't exist.
* @throws ValidationException
* An exception for accessing or deleting a resource that doesn't exist.
* @sample AmazonOpenSearch.StartServiceSoftwareUpdate
*/
@Override
public StartServiceSoftwareUpdateResult startServiceSoftwareUpdate(StartServiceSoftwareUpdateRequest request) {
request = beforeClientExecution(request);
return executeStartServiceSoftwareUpdate(request);
}
@SdkInternalApi
final StartServiceSoftwareUpdateResult executeStartServiceSoftwareUpdate(StartServiceSoftwareUpdateRequest startServiceSoftwareUpdateRequest) {
ExecutionContext executionContext = createExecutionContext(startServiceSoftwareUpdateRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request* Modifies the cluster configuration of the specified Amazon OpenSearch Service domain.sl *
* * @param updateDomainConfigRequest * Container for the request parameters to theUpdateDomain
operation.
* @return Result of the UpdateDomainConfig operation returned by the service.
* @throws BaseException
* An error occurred while processing the request.
* @throws InternalException
* Request processing failed because of an unknown error, exception, or internal failure.
* @throws InvalidTypeException
* An exception for trying to create or access a sub-resource that's either invalid or not supported.
* @throws LimitExceededException
* An exception for trying to create more than the allowed number of resources or sub-resources.
* @throws ResourceNotFoundException
* An exception for accessing or deleting a resource that doesn't exist.
* @throws ValidationException
* An exception for accessing or deleting a resource that doesn't exist.
* @sample AmazonOpenSearch.UpdateDomainConfig
*/
@Override
public UpdateDomainConfigResult updateDomainConfig(UpdateDomainConfigRequest request) {
request = beforeClientExecution(request);
return executeUpdateDomainConfig(request);
}
@SdkInternalApi
final UpdateDomainConfigResult executeUpdateDomainConfig(UpdateDomainConfigRequest updateDomainConfigRequest) {
ExecutionContext executionContext = createExecutionContext(updateDomainConfigRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request* Updates a package for use with Amazon OpenSearch Service domains. For more information, see Custom packages * for Amazon OpenSearch Service. *
* * @param updatePackageRequest * Container for request parameters to theUpdatePackage
operation.
* @return Result of the UpdatePackage operation returned by the service.
* @throws BaseException
* An error occurred while processing the request.
* @throws InternalException
* Request processing failed because of an unknown error, exception, or internal failure.
* @throws LimitExceededException
* An exception for trying to create more than the allowed number of resources or sub-resources.
* @throws ResourceNotFoundException
* An exception for accessing or deleting a resource that doesn't exist.
* @throws AccessDeniedException
* An error occurred because you don't have permissions to access the resource.
* @throws ValidationException
* An exception for accessing or deleting a resource that doesn't exist.
* @sample AmazonOpenSearch.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* Reschedules a planned domain configuration change for a later time. This change can be a scheduled service * software update or a blue/green Auto-Tune enhancement. *
* * @param updateScheduledActionRequest * @return Result of the UpdateScheduledAction operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws InternalException * Request processing failed because of an unknown error, exception, or internal failure. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that doesn't exist. * @throws SlotNotAvailableException * An exception for attempting to schedule a domain action during an unavailable time slot. * @throws ConflictException * An error occurred because the client attempts to remove a resource that is currently in use. * @throws LimitExceededException * An exception for trying to create more than the allowed number of resources or sub-resources. * @throws ValidationException * An exception for accessing or deleting a resource that doesn't exist. * @sample AmazonOpenSearch.UpdateScheduledAction */ @Override public UpdateScheduledActionResult updateScheduledAction(UpdateScheduledActionRequest request) { request = beforeClientExecution(request); return executeUpdateScheduledAction(request); } @SdkInternalApi final UpdateScheduledActionResult executeUpdateScheduledAction(UpdateScheduledActionRequest updateScheduledActionRequest) { ExecutionContext executionContext = createExecutionContext(updateScheduledActionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Modifies an Amazon OpenSearch Service-managed interface VPC endpoint. *
* * @param updateVpcEndpointRequest * @return Result of the UpdateVpcEndpoint operation returned by the service. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that doesn't exist. * @throws DisabledOperationException * An error occured because the client wanted to access an unsupported operation. * @throws InternalException * Request processing failed because of an unknown error, exception, or internal failure. * @throws ValidationException * An exception for accessing or deleting a resource that doesn't exist. * @throws ConflictException * An error occurred because the client attempts to remove a resource that is currently in use. * @throws BaseException * An error occurred while processing the request. * @sample AmazonOpenSearch.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 Amazon OpenSearch Service domain or perform an upgrade eligibility check to a * compatible version of OpenSearch or Elasticsearch. *
* * @param upgradeDomainRequest * Container for the request parameters to theUpgradeDomain
operation.
* @return Result of the UpgradeDomain 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 doesn't exist.
* @throws ResourceAlreadyExistsException
* An exception for creating a resource that already exists.
* @throws DisabledOperationException
* An error occured because the client wanted to access an unsupported operation.
* @throws ValidationException
* An exception for accessing or deleting a resource that doesn't exist.
* @throws InternalException
* Request processing failed because of an unknown error, exception, or internal failure.
* @sample AmazonOpenSearch.UpgradeDomain
*/
@Override
public UpgradeDomainResult upgradeDomain(UpgradeDomainRequest request) {
request = beforeClientExecution(request);
return executeUpgradeDomain(request);
}
@SdkInternalApi
final UpgradeDomainResult executeUpgradeDomain(UpgradeDomainRequest upgradeDomainRequest) {
ExecutionContext executionContext = createExecutionContext(upgradeDomainRequest);
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