@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AmazonOpenSearchClient extends AmazonWebServiceClient implements AmazonOpenSearch
Use the Amazon OpenSearch configuration API to create, configure, and manage Amazon 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 Regions and Endpoints.
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
Modifier and Type | Method and Description |
---|---|
AcceptInboundConnectionResult |
acceptInboundConnection(AcceptInboundConnectionRequest request)
Allows the remote domain owner to accept an inbound cross-cluster connection request.
|
AddTagsResult |
addTags(AddTagsRequest request)
Attaches tags to an existing domain.
|
AssociatePackageResult |
associatePackage(AssociatePackageRequest request)
Associates a package with an Amazon OpenSearch Service domain.
|
static AmazonOpenSearchClientBuilder |
builder() |
CancelServiceSoftwareUpdateResult |
cancelServiceSoftwareUpdate(CancelServiceSoftwareUpdateRequest request)
Cancels a scheduled service software update for an Amazon OpenSearch Service domain.
|
CreateDomainResult |
createDomain(CreateDomainRequest request)
Creates a new Amazon OpenSearch Service domain.
|
CreateOutboundConnectionResult |
createOutboundConnection(CreateOutboundConnectionRequest request)
Creates a new cross-cluster connection from a local OpenSearch domain to a remote OpenSearch domain.
|
CreatePackageResult |
createPackage(CreatePackageRequest request)
Create a package for use with Amazon OpenSearch Service domains.
|
DeleteDomainResult |
deleteDomain(DeleteDomainRequest request)
Permanently deletes the specified domain and all of its data.
|
DeleteInboundConnectionResult |
deleteInboundConnection(DeleteInboundConnectionRequest request)
Allows the remote domain owner to delete an existing inbound cross-cluster connection.
|
DeleteOutboundConnectionResult |
deleteOutboundConnection(DeleteOutboundConnectionRequest request)
Allows the local domain owner to delete an existing outbound cross-cluster connection.
|
DeletePackageResult |
deletePackage(DeletePackageRequest request)
Deletes the package.
|
DescribeDomainResult |
describeDomain(DescribeDomainRequest request)
Returns domain configuration information about the specified domain, including the domain ID, domain endpoint,
and domain ARN.
|
DescribeDomainAutoTunesResult |
describeDomainAutoTunes(DescribeDomainAutoTunesRequest request)
Provides scheduled Auto-Tune action details for the domain, such as Auto-Tune action type, description, severity,
and scheduled date.
|
DescribeDomainConfigResult |
describeDomainConfig(DescribeDomainConfigRequest request)
Provides cluster configuration information about the specified domain, such as the state, creation date, update
version, and update date for cluster options.
|
DescribeDomainsResult |
describeDomains(DescribeDomainsRequest request)
Returns domain configuration information about the specified domains, including the domain ID, domain endpoint,
and domain ARN.
|
DescribeInboundConnectionsResult |
describeInboundConnections(DescribeInboundConnectionsRequest request)
Lists all the inbound cross-cluster connections for a remote domain.
|
DescribeInstanceTypeLimitsResult |
describeInstanceTypeLimits(DescribeInstanceTypeLimitsRequest request)
Describe the limits for a given instance type and OpenSearch or Elasticsearch version.
|
DescribeOutboundConnectionsResult |
describeOutboundConnections(DescribeOutboundConnectionsRequest request)
Lists all the outbound cross-cluster connections for a local domain.
|
DescribePackagesResult |
describePackages(DescribePackagesRequest request)
Describes all packages available to Amazon OpenSearch Service domains.
|
DescribeReservedInstanceOfferingsResult |
describeReservedInstanceOfferings(DescribeReservedInstanceOfferingsRequest request)
Lists available reserved OpenSearch instance offerings.
|
DescribeReservedInstancesResult |
describeReservedInstances(DescribeReservedInstancesRequest request)
Returns information about reserved OpenSearch instances for this account.
|
DissociatePackageResult |
dissociatePackage(DissociatePackageRequest request)
Dissociates a package from the Amazon OpenSearch Service domain.
|
ResponseMetadata |
getCachedResponseMetadata(AmazonWebServiceRequest request)
Returns additional metadata for a previously executed successful, request, typically used for debugging issues
where a service isn't acting as expected.
|
GetCompatibleVersionsResult |
getCompatibleVersions(GetCompatibleVersionsRequest request)
Returns a list of upgrade-compatible versions of OpenSearch/Elasticsearch.
|
GetPackageVersionHistoryResult |
getPackageVersionHistory(GetPackageVersionHistoryRequest request)
Returns a list of package versions, along with their creation time and commit message.
|
GetUpgradeHistoryResult |
getUpgradeHistory(GetUpgradeHistoryRequest request)
Retrieves the complete history of the last 10 upgrades performed on the domain.
|
GetUpgradeStatusResult |
getUpgradeStatus(GetUpgradeStatusRequest request)
Retrieves the latest status of the last upgrade or upgrade eligibility check performed on the domain.
|
ListDomainNamesResult |
listDomainNames(ListDomainNamesRequest request)
Returns the names of all domains owned by the current user's account.
|
ListDomainsForPackageResult |
listDomainsForPackage(ListDomainsForPackageRequest request)
Lists all Amazon OpenSearch Service domains associated with the package.
|
ListInstanceTypeDetailsResult |
listInstanceTypeDetails(ListInstanceTypeDetailsRequest request) |
ListPackagesForDomainResult |
listPackagesForDomain(ListPackagesForDomainRequest request)
Lists all packages associated with the Amazon OpenSearch Service domain.
|
ListTagsResult |
listTags(ListTagsRequest request)
Returns all tags for the given domain.
|
ListVersionsResult |
listVersions(ListVersionsRequest request)
List all supported versions of OpenSearch and Elasticsearch.
|
PurchaseReservedInstanceOfferingResult |
purchaseReservedInstanceOffering(PurchaseReservedInstanceOfferingRequest request)
Allows you to purchase reserved OpenSearch instances.
|
RejectInboundConnectionResult |
rejectInboundConnection(RejectInboundConnectionRequest request)
Allows the remote domain owner to reject an inbound cross-cluster connection request.
|
RemoveTagsResult |
removeTags(RemoveTagsRequest request)
Removes the specified set of tags from the given domain.
|
void |
shutdown()
Shuts down this client object, releasing any resources that might be held
open.
|
StartServiceSoftwareUpdateResult |
startServiceSoftwareUpdate(StartServiceSoftwareUpdateRequest request)
Schedules a service software update for an Amazon OpenSearch Service domain.
|
UpdateDomainConfigResult |
updateDomainConfig(UpdateDomainConfigRequest request)
Modifies the cluster configuration of the specified domain, such as setting the instance type and the number of
instances.
|
UpdatePackageResult |
updatePackage(UpdatePackageRequest request)
Updates a package for use with Amazon OpenSearch Service domains.
|
UpgradeDomainResult |
upgradeDomain(UpgradeDomainRequest request)
Allows you to either upgrade your domain or perform an upgrade eligibility check to a compatible version of
OpenSearch or Elasticsearch.
|
addRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
public static AmazonOpenSearchClientBuilder builder()
public AcceptInboundConnectionResult acceptInboundConnection(AcceptInboundConnectionRequest request)
Allows the remote domain owner to accept an inbound cross-cluster connection request.
acceptInboundConnection
in interface AmazonOpenSearch
acceptInboundConnectionRequest
- Container for the parameters to the AcceptInboundConnection
operation.ResourceNotFoundException
- An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.LimitExceededException
- An exception for trying to create more than allowed resources or sub-resources. Gives http status code of
409.DisabledOperationException
- An error occured because the client wanted to access a not supported operation. Gives http status code of
409.public AddTagsResult addTags(AddTagsRequest request)
Attaches tags to an existing domain. Tags are a set of case-sensitive key value pairs. An domain can have up to 10 tags. See Tagging Amazon OpenSearch Service domains for more information.
addTags
in interface AmazonOpenSearch
addTagsRequest
- Container for the parameters to the AddTags
operation. Specifies the tags to attach
to the domain.BaseException
- An error occurred while processing the request.LimitExceededException
- An exception for trying to create more than allowed resources or sub-resources. Gives http status code of
409.ValidationException
- An exception for missing / invalid input fields. Gives http status code of 400.InternalException
- The request processing has failed because of an unknown error, exception or failure (the failure is
internal to the service) . Gives http status code of 500.public AssociatePackageResult associatePackage(AssociatePackageRequest request)
Associates a package with an Amazon OpenSearch Service domain.
associatePackage
in interface AmazonOpenSearch
associatePackageRequest
- Container for the request parameters to the AssociatePackage
operation.BaseException
- An error occurred while processing the request.InternalException
- The request processing has failed because of an unknown error, exception or failure (the failure is
internal to the service) . Gives http status code of 500.ResourceNotFoundException
- An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.AccessDeniedException
- An error occurred because user does not have permissions to access the resource. Returns HTTP status code
403.ValidationException
- An exception for missing / invalid input fields. Gives http status code of 400.ConflictException
- An error occurred because the client attempts to remove a resource that is currently in use. Returns HTTP
status code 409.public CancelServiceSoftwareUpdateResult cancelServiceSoftwareUpdate(CancelServiceSoftwareUpdateRequest 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 UpdateStatus
is in the
PENDING_UPDATE
state.
cancelServiceSoftwareUpdate
in interface AmazonOpenSearch
cancelServiceSoftwareUpdateRequest
- Container for the parameters to the CancelServiceSoftwareUpdate
operation. Specifies
the name of the domain that you wish to cancel a service software update on.BaseException
- An error occurred while processing the request.InternalException
- The request processing has failed because of an unknown error, exception or failure (the failure is
internal to the service) . Gives http status code of 500.ResourceNotFoundException
- An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.ValidationException
- An exception for missing / invalid input fields. Gives http status code of 400.public CreateDomainResult createDomain(CreateDomainRequest request)
Creates a new Amazon OpenSearch Service domain. For more information, see Creating and managing Amazon OpenSearch Service domains in the Amazon OpenSearch Service Developer Guide.
createDomain
in interface AmazonOpenSearch
createDomainRequest
- BaseException
- An error occurred while processing the request.DisabledOperationException
- An error occured because the client wanted to access a not supported operation. Gives http status code of
409.InternalException
- The request processing has failed because of an unknown error, exception or failure (the failure is
internal to the service) . Gives http status code of 500.InvalidTypeException
- An exception for trying to create or access sub-resource that is either invalid or not supported. Gives
http status code of 409.LimitExceededException
- An exception for trying to create more than allowed resources or sub-resources. Gives http status code of
409.ResourceAlreadyExistsException
- An exception for creating a resource that already exists. Gives http status code of 400.ValidationException
- An exception for missing / invalid input fields. Gives http status code of 400.public CreateOutboundConnectionResult createOutboundConnection(CreateOutboundConnectionRequest request)
Creates a new cross-cluster connection from a local OpenSearch domain to a remote OpenSearch domain.
createOutboundConnection
in interface AmazonOpenSearch
createOutboundConnectionRequest
- Container for the parameters to the CreateOutboundConnection
operation.LimitExceededException
- An exception for trying to create more than allowed resources or sub-resources. Gives http status code of
409.InternalException
- The request processing has failed because of an unknown error, exception or failure (the failure is
internal to the service) . Gives http status code of 500.ResourceAlreadyExistsException
- An exception for creating a resource that already exists. Gives http status code of 400.DisabledOperationException
- An error occured because the client wanted to access a not supported operation. Gives http status code of
409.public CreatePackageResult createPackage(CreatePackageRequest request)
Create a package for use with Amazon OpenSearch Service domains.
createPackage
in interface AmazonOpenSearch
createPackageRequest
- Container for request parameters to the CreatePackage
operation.BaseException
- An error occurred while processing the request.InternalException
- The request processing has failed because of an unknown error, exception or failure (the failure is
internal to the service) . Gives http status code of 500.LimitExceededException
- An exception for trying to create more than allowed resources or sub-resources. Gives http status code of
409.InvalidTypeException
- An exception for trying to create or access sub-resource that is either invalid or not supported. Gives
http status code of 409.ResourceAlreadyExistsException
- An exception for creating a resource that already exists. Gives http status code of 400.AccessDeniedException
- An error occurred because user does not have permissions to access the resource. Returns HTTP status code
403.ValidationException
- An exception for missing / invalid input fields. Gives http status code of 400.public DeleteDomainResult deleteDomain(DeleteDomainRequest request)
Permanently deletes the specified domain and all of its data. Once a domain is deleted, it cannot be recovered.
deleteDomain
in interface AmazonOpenSearch
deleteDomainRequest
- Container for the parameters to the DeleteDomain
operation. Specifies the name of
the domain you want to delete.BaseException
- An error occurred while processing the request.InternalException
- The request processing has failed because of an unknown error, exception or failure (the failure is
internal to the service) . Gives http status code of 500.ResourceNotFoundException
- An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.ValidationException
- An exception for missing / invalid input fields. Gives http status code of 400.public DeleteInboundConnectionResult deleteInboundConnection(DeleteInboundConnectionRequest request)
Allows the remote domain owner to delete an existing inbound cross-cluster connection.
deleteInboundConnection
in interface AmazonOpenSearch
deleteInboundConnectionRequest
- Container for the parameters to the DeleteInboundConnection
operation.ResourceNotFoundException
- An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.DisabledOperationException
- An error occured because the client wanted to access a not supported operation. Gives http status code of
409.public DeleteOutboundConnectionResult deleteOutboundConnection(DeleteOutboundConnectionRequest request)
Allows the local domain owner to delete an existing outbound cross-cluster connection.
deleteOutboundConnection
in interface AmazonOpenSearch
deleteOutboundConnectionRequest
- Container for the parameters to the DeleteOutboundConnection
operation.ResourceNotFoundException
- An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.DisabledOperationException
- An error occured because the client wanted to access a not supported operation. Gives http status code of
409.public DeletePackageResult deletePackage(DeletePackageRequest request)
Deletes the package.
deletePackage
in interface AmazonOpenSearch
deletePackageRequest
- Container for the request parameters to the DeletePackage
operation.BaseException
- An error occurred while processing the request.InternalException
- The request processing has failed because of an unknown error, exception or failure (the failure is
internal to the service) . Gives http status code of 500.ResourceNotFoundException
- An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.AccessDeniedException
- An error occurred because user does not have permissions to access the resource. Returns HTTP status code
403.ValidationException
- An exception for missing / invalid input fields. Gives http status code of 400.ConflictException
- An error occurred because the client attempts to remove a resource that is currently in use. Returns HTTP
status code 409.public DescribeDomainResult describeDomain(DescribeDomainRequest request)
Returns domain configuration information about the specified domain, including the domain ID, domain endpoint, and domain ARN.
describeDomain
in interface AmazonOpenSearch
describeDomainRequest
- Container for the parameters to the DescribeDomain
operation.BaseException
- An error occurred while processing the request.InternalException
- The request processing has failed because of an unknown error, exception or failure (the failure is
internal to the service) . Gives http status code of 500.ResourceNotFoundException
- An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.ValidationException
- An exception for missing / invalid input fields. Gives http status code of 400.public DescribeDomainAutoTunesResult describeDomainAutoTunes(DescribeDomainAutoTunesRequest request)
Provides scheduled Auto-Tune action details for the domain, such as Auto-Tune action type, description, severity, and scheduled date.
describeDomainAutoTunes
in interface AmazonOpenSearch
describeDomainAutoTunesRequest
- Container for the parameters to the DescribeDomainAutoTunes
operation.BaseException
- An error occurred while processing the request.InternalException
- The request processing has failed because of an unknown error, exception or failure (the failure is
internal to the service) . Gives http status code of 500.ResourceNotFoundException
- An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.ValidationException
- An exception for missing / invalid input fields. Gives http status code of 400.public DescribeDomainConfigResult describeDomainConfig(DescribeDomainConfigRequest request)
Provides cluster configuration information about the specified domain, such as the state, creation date, update version, and update date for cluster options.
describeDomainConfig
in interface AmazonOpenSearch
describeDomainConfigRequest
- Container for the parameters to the DescribeDomainConfig
operation. Specifies the domain name
for which you want configuration information.BaseException
- An error occurred while processing the request.InternalException
- The request processing has failed because of an unknown error, exception or failure (the failure is
internal to the service) . Gives http status code of 500.ResourceNotFoundException
- An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.ValidationException
- An exception for missing / invalid input fields. Gives http status code of 400.public DescribeDomainsResult describeDomains(DescribeDomainsRequest request)
Returns domain configuration information about the specified domains, including the domain ID, domain endpoint, and domain ARN.
describeDomains
in interface AmazonOpenSearch
describeDomainsRequest
- Container for the parameters to the DescribeDomains
operation. By default, the API
returns the status of all domains.BaseException
- An error occurred while processing the request.InternalException
- The request processing has failed because of an unknown error, exception or failure (the failure is
internal to the service) . Gives http status code of 500.ValidationException
- An exception for missing / invalid input fields. Gives http status code of 400.public DescribeInboundConnectionsResult describeInboundConnections(DescribeInboundConnectionsRequest request)
Lists all the inbound cross-cluster connections for a remote domain.
describeInboundConnections
in interface AmazonOpenSearch
describeInboundConnectionsRequest
- Container for the parameters to the DescribeInboundConnections
operation.InvalidPaginationTokenException
- The request processing has failed because of invalid pagination token provided by customer. Returns an
HTTP status code of 400.DisabledOperationException
- An error occured because the client wanted to access a not supported operation. Gives http status code of
409.public DescribeInstanceTypeLimitsResult describeInstanceTypeLimits(DescribeInstanceTypeLimitsRequest request)
Describe the limits for a given instance type and OpenSearch or Elasticsearch version. When modifying an existing
domain, specify the DomainName
to see which limits you can modify.
describeInstanceTypeLimits
in interface AmazonOpenSearch
describeInstanceTypeLimitsRequest
- Container for the parameters to the DescribeInstanceTypeLimits
operation.BaseException
- An error occurred while processing the request.InternalException
- The request processing has failed because of an unknown error, exception or failure (the failure is
internal to the service) . Gives http status code of 500.InvalidTypeException
- An exception for trying to create or access sub-resource that is either invalid or not supported. Gives
http status code of 409.LimitExceededException
- An exception for trying to create more than allowed resources or sub-resources. Gives http status code of
409.ResourceNotFoundException
- An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.ValidationException
- An exception for missing / invalid input fields. Gives http status code of 400.public DescribeOutboundConnectionsResult describeOutboundConnections(DescribeOutboundConnectionsRequest request)
Lists all the outbound cross-cluster connections for a local domain.
describeOutboundConnections
in interface AmazonOpenSearch
describeOutboundConnectionsRequest
- Container for the parameters to the DescribeOutboundConnections
operation.InvalidPaginationTokenException
- The request processing has failed because of invalid pagination token provided by customer. Returns an
HTTP status code of 400.DisabledOperationException
- An error occured because the client wanted to access a not supported operation. Gives http status code of
409.public DescribePackagesResult describePackages(DescribePackagesRequest request)
Describes all packages available to Amazon OpenSearch Service domains. Includes options for filtering, limiting the number of results, and pagination.
describePackages
in interface AmazonOpenSearch
describePackagesRequest
- Container for the request parameters to the DescribePackage
operation.BaseException
- An error occurred while processing the request.InternalException
- The request processing has failed because of an unknown error, exception or failure (the failure is
internal to the service) . Gives http status code of 500.ResourceNotFoundException
- An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.AccessDeniedException
- An error occurred because user does not have permissions to access the resource. Returns HTTP status code
403.ValidationException
- An exception for missing / invalid input fields. Gives http status code of 400.public DescribeReservedInstanceOfferingsResult describeReservedInstanceOfferings(DescribeReservedInstanceOfferingsRequest request)
Lists available reserved OpenSearch instance offerings.
describeReservedInstanceOfferings
in interface AmazonOpenSearch
describeReservedInstanceOfferingsRequest
- Container for parameters to DescribeReservedInstanceOfferings
ResourceNotFoundException
- An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.ValidationException
- An exception for missing / invalid input fields. Gives http status code of 400.DisabledOperationException
- An error occured because the client wanted to access a not supported operation. Gives http status code of
409.InternalException
- The request processing has failed because of an unknown error, exception or failure (the failure is
internal to the service) . Gives http status code of 500.public DescribeReservedInstancesResult describeReservedInstances(DescribeReservedInstancesRequest request)
Returns information about reserved OpenSearch instances for this account.
describeReservedInstances
in interface AmazonOpenSearch
describeReservedInstancesRequest
- Container for parameters to DescribeReservedInstances
ResourceNotFoundException
- An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.InternalException
- The request processing has failed because of an unknown error, exception or failure (the failure is
internal to the service) . Gives http status code of 500.ValidationException
- An exception for missing / invalid input fields. Gives http status code of 400.DisabledOperationException
- An error occured because the client wanted to access a not supported operation. Gives http status code of
409.public DissociatePackageResult dissociatePackage(DissociatePackageRequest request)
Dissociates a package from the Amazon OpenSearch Service domain.
dissociatePackage
in interface AmazonOpenSearch
dissociatePackageRequest
- Container for the request parameters to the DissociatePackage
operation.BaseException
- An error occurred while processing the request.InternalException
- The request processing has failed because of an unknown error, exception or failure (the failure is
internal to the service) . Gives http status code of 500.ResourceNotFoundException
- An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.AccessDeniedException
- An error occurred because user does not have permissions to access the resource. Returns HTTP status code
403.ValidationException
- An exception for missing / invalid input fields. Gives http status code of 400.ConflictException
- An error occurred because the client attempts to remove a resource that is currently in use. Returns HTTP
status code 409.public GetCompatibleVersionsResult getCompatibleVersions(GetCompatibleVersionsRequest request)
Returns a list of upgrade-compatible versions of OpenSearch/Elasticsearch. You can optionally pass a
DomainName
to get all upgrade-compatible versions of OpenSearch/Elasticsearch for that
specific domain.
getCompatibleVersions
in interface AmazonOpenSearch
getCompatibleVersionsRequest
- Container for the request parameters to GetCompatibleVersions
operation.BaseException
- An error occurred while processing the request.ResourceNotFoundException
- An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.DisabledOperationException
- An error occured because the client wanted to access a not supported operation. Gives http status code of
409.ValidationException
- An exception for missing / invalid input fields. Gives http status code of 400.InternalException
- The request processing has failed because of an unknown error, exception or failure (the failure is
internal to the service) . Gives http status code of 500.public GetPackageVersionHistoryResult getPackageVersionHistory(GetPackageVersionHistoryRequest request)
Returns a list of package versions, along with their creation time and commit message.
getPackageVersionHistory
in interface AmazonOpenSearch
getPackageVersionHistoryRequest
- Container for the request parameters to the GetPackageVersionHistory
operation.BaseException
- An error occurred while processing the request.InternalException
- The request processing has failed because of an unknown error, exception or failure (the failure is
internal to the service) . Gives http status code of 500.ResourceNotFoundException
- An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.AccessDeniedException
- An error occurred because user does not have permissions to access the resource. Returns HTTP status code
403.ValidationException
- An exception for missing / invalid input fields. Gives http status code of 400.public GetUpgradeHistoryResult getUpgradeHistory(GetUpgradeHistoryRequest request)
Retrieves the complete history of the last 10 upgrades performed on the domain.
getUpgradeHistory
in interface AmazonOpenSearch
getUpgradeHistoryRequest
- Container for the request parameters to the GetUpgradeHistory
operation.BaseException
- An error occurred while processing the request.ResourceNotFoundException
- An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.DisabledOperationException
- An error occured because the client wanted to access a not supported operation. Gives http status code of
409.ValidationException
- An exception for missing / invalid input fields. Gives http status code of 400.InternalException
- The request processing has failed because of an unknown error, exception or failure (the failure is
internal to the service) . Gives http status code of 500.public GetUpgradeStatusResult getUpgradeStatus(GetUpgradeStatusRequest request)
Retrieves the latest status of the last upgrade or upgrade eligibility check performed on the domain.
getUpgradeStatus
in interface AmazonOpenSearch
getUpgradeStatusRequest
- Container for the request parameters to the GetUpgradeStatus
operation.BaseException
- An error occurred while processing the request.ResourceNotFoundException
- An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.DisabledOperationException
- An error occured because the client wanted to access a not supported operation. Gives http status code of
409.ValidationException
- An exception for missing / invalid input fields. Gives http status code of 400.InternalException
- The request processing has failed because of an unknown error, exception or failure (the failure is
internal to the service) . Gives http status code of 500.public ListDomainNamesResult listDomainNames(ListDomainNamesRequest request)
Returns the names of all domains owned by the current user's account.
listDomainNames
in interface AmazonOpenSearch
listDomainNamesRequest
- Container for the parameters to the ListDomainNames
operation.BaseException
- An error occurred while processing the request.ValidationException
- An exception for missing / invalid input fields. Gives http status code of 400.public ListDomainsForPackageResult listDomainsForPackage(ListDomainsForPackageRequest request)
Lists all Amazon OpenSearch Service domains associated with the package.
listDomainsForPackage
in interface AmazonOpenSearch
listDomainsForPackageRequest
- Container for the request parameters to the ListDomainsForPackage
operation.BaseException
- An error occurred while processing the request.InternalException
- The request processing has failed because of an unknown error, exception or failure (the failure is
internal to the service) . Gives http status code of 500.ResourceNotFoundException
- An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.AccessDeniedException
- An error occurred because user does not have permissions to access the resource. Returns HTTP status code
403.ValidationException
- An exception for missing / invalid input fields. Gives http status code of 400.public ListInstanceTypeDetailsResult listInstanceTypeDetails(ListInstanceTypeDetailsRequest request)
listInstanceTypeDetails
in interface AmazonOpenSearch
listInstanceTypeDetailsRequest
- BaseException
- An error occurred while processing the request.InternalException
- The request processing has failed because of an unknown error, exception or failure (the failure is
internal to the service) . Gives http status code of 500.ResourceNotFoundException
- An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.ValidationException
- An exception for missing / invalid input fields. Gives http status code of 400.public ListPackagesForDomainResult listPackagesForDomain(ListPackagesForDomainRequest request)
Lists all packages associated with the Amazon OpenSearch Service domain.
listPackagesForDomain
in interface AmazonOpenSearch
listPackagesForDomainRequest
- Container for the request parameters to the ListPackagesForDomain
operation.BaseException
- An error occurred while processing the request.InternalException
- The request processing has failed because of an unknown error, exception or failure (the failure is
internal to the service) . Gives http status code of 500.ResourceNotFoundException
- An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.AccessDeniedException
- An error occurred because user does not have permissions to access the resource. Returns HTTP status code
403.ValidationException
- An exception for missing / invalid input fields. Gives http status code of 400.public ListTagsResult listTags(ListTagsRequest request)
Returns all tags for the given domain.
listTags
in interface AmazonOpenSearch
listTagsRequest
- Container for the parameters to the ListTags
operation. Specify the ARN
of the domain that the tags you want to view are attached to.BaseException
- An error occurred while processing the request.ResourceNotFoundException
- An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.ValidationException
- An exception for missing / invalid input fields. Gives http status code of 400.InternalException
- The request processing has failed because of an unknown error, exception or failure (the failure is
internal to the service) . Gives http status code of 500.public ListVersionsResult listVersions(ListVersionsRequest request)
List all supported versions of OpenSearch and Elasticsearch.
listVersions
in interface AmazonOpenSearch
listVersionsRequest
- Container for the parameters to the ListVersions
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, there are no more results to retrieve.
BaseException
- An error occurred while processing the request.InternalException
- The request processing has failed because of an unknown error, exception or failure (the failure is
internal to the service) . Gives http status code of 500.ResourceNotFoundException
- An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.ValidationException
- An exception for missing / invalid input fields. Gives http status code of 400.public PurchaseReservedInstanceOfferingResult purchaseReservedInstanceOffering(PurchaseReservedInstanceOfferingRequest request)
Allows you to purchase reserved OpenSearch instances.
purchaseReservedInstanceOffering
in interface AmazonOpenSearch
purchaseReservedInstanceOfferingRequest
- Container for parameters to PurchaseReservedInstanceOffering
ResourceNotFoundException
- An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.ResourceAlreadyExistsException
- An exception for creating a resource that already exists. Gives http status code of 400.LimitExceededException
- An exception for trying to create more than allowed resources or sub-resources. Gives http status code of
409.DisabledOperationException
- An error occured because the client wanted to access a not supported operation. Gives http status code of
409.ValidationException
- An exception for missing / invalid input fields. Gives http status code of 400.InternalException
- The request processing has failed because of an unknown error, exception or failure (the failure is
internal to the service) . Gives http status code of 500.public RejectInboundConnectionResult rejectInboundConnection(RejectInboundConnectionRequest request)
Allows the remote domain owner to reject an inbound cross-cluster connection request.
rejectInboundConnection
in interface AmazonOpenSearch
rejectInboundConnectionRequest
- Container for the parameters to the RejectInboundConnection
operation.ResourceNotFoundException
- An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.DisabledOperationException
- An error occured because the client wanted to access a not supported operation. Gives http status code of
409.public RemoveTagsResult removeTags(RemoveTagsRequest request)
Removes the specified set of tags from the given domain.
removeTags
in interface AmazonOpenSearch
removeTagsRequest
- Container for the parameters to the RemoveTags
operation. Specify the
ARN
for the domain from which you want to remove the specified TagKey
.BaseException
- An error occurred while processing the request.ValidationException
- An exception for missing / invalid input fields. Gives http status code of 400.InternalException
- The request processing has failed because of an unknown error, exception or failure (the failure is
internal to the service) . Gives http status code of 500.public StartServiceSoftwareUpdateResult startServiceSoftwareUpdate(StartServiceSoftwareUpdateRequest request)
Schedules a service software update for an Amazon OpenSearch Service domain.
startServiceSoftwareUpdate
in interface AmazonOpenSearch
startServiceSoftwareUpdateRequest
- Container for the parameters to the StartServiceSoftwareUpdate
operation. Specifies
the name of the domain to schedule a service software update for.BaseException
- An error occurred while processing the request.InternalException
- The request processing has failed because of an unknown error, exception or failure (the failure is
internal to the service) . Gives http status code of 500.ResourceNotFoundException
- An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.ValidationException
- An exception for missing / invalid input fields. Gives http status code of 400.public UpdateDomainConfigResult updateDomainConfig(UpdateDomainConfigRequest request)
Modifies the cluster configuration of the specified domain, such as setting the instance type and the number of instances.
updateDomainConfig
in interface AmazonOpenSearch
updateDomainConfigRequest
- Container for the parameters to the UpdateDomain
operation. Specifies the type and
number of instances in the domain cluster.BaseException
- An error occurred while processing the request.InternalException
- The request processing has failed because of an unknown error, exception or failure (the failure is
internal to the service) . Gives http status code of 500.InvalidTypeException
- An exception for trying to create or access sub-resource that is either invalid or not supported. Gives
http status code of 409.LimitExceededException
- An exception for trying to create more than allowed resources or sub-resources. Gives http status code of
409.ResourceNotFoundException
- An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.ValidationException
- An exception for missing / invalid input fields. Gives http status code of 400.public UpdatePackageResult updatePackage(UpdatePackageRequest request)
Updates a package for use with Amazon OpenSearch Service domains.
updatePackage
in interface AmazonOpenSearch
updatePackageRequest
- Container for request parameters to the UpdatePackage
operation.BaseException
- An error occurred while processing the request.InternalException
- The request processing has failed because of an unknown error, exception or failure (the failure is
internal to the service) . Gives http status code of 500.LimitExceededException
- An exception for trying to create more than allowed resources or sub-resources. Gives http status code of
409.ResourceNotFoundException
- An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.AccessDeniedException
- An error occurred because user does not have permissions to access the resource. Returns HTTP status code
403.ValidationException
- An exception for missing / invalid input fields. Gives http status code of 400.public UpgradeDomainResult upgradeDomain(UpgradeDomainRequest request)
Allows you to either upgrade your domain or perform an upgrade eligibility check to a compatible version of OpenSearch or Elasticsearch.
upgradeDomain
in interface AmazonOpenSearch
upgradeDomainRequest
- Container for the request parameters to UpgradeDomain
operation.BaseException
- An error occurred while processing the request.ResourceNotFoundException
- An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.ResourceAlreadyExistsException
- An exception for creating a resource that already exists. Gives http status code of 400.DisabledOperationException
- An error occured because the client wanted to access a not supported operation. Gives http status code of
409.ValidationException
- An exception for missing / invalid input fields. Gives http status code of 400.InternalException
- The request processing has failed because of an unknown error, exception or failure (the failure is
internal to the service) . Gives http status code of 500.public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing the request.
getCachedResponseMetadata
in interface AmazonOpenSearch
request
- The originally executed requestpublic void shutdown()
AmazonWebServiceClient
shutdown
in interface AmazonOpenSearch
shutdown
in class AmazonWebServiceClient