Interface OpenSearchServerlessAsyncClient
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
builder() method.The asynchronous client performs non-blocking I/O when configured with any
SdkAsyncHttpClient supported in the SDK. However, full non-blocking is not guaranteed as the async client may
perform blocking calls in some cases such as credentials retrieval and endpoint discovery as part of the async API
call.
Use the Amazon OpenSearch Serverless API to create, configure, and manage OpenSearch Serverless collections and security policies.
OpenSearch Serverless is an on-demand, pre-provisioned serverless configuration for Amazon OpenSearch Service. OpenSearch Serverless removes the operational complexities of provisioning, configuring, and tuning your OpenSearch clusters. It enables you to easily search and analyze petabytes of data without having to worry about the underlying infrastructure and data management.
To learn more about OpenSearch Serverless, see What is Amazon OpenSearch Serverless?
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringValue for looking up the service's metadata from theServiceMetadataProvider.static final String -
Method Summary
Modifier and TypeMethodDescriptionbatchGetCollection(Consumer<BatchGetCollectionRequest.Builder> batchGetCollectionRequest) Returns attributes for one or more collections, including the collection endpoint and the OpenSearch Dashboards endpoint.batchGetCollection(BatchGetCollectionRequest batchGetCollectionRequest) Returns attributes for one or more collections, including the collection endpoint and the OpenSearch Dashboards endpoint.batchGetEffectiveLifecyclePolicy(Consumer<BatchGetEffectiveLifecyclePolicyRequest.Builder> batchGetEffectiveLifecyclePolicyRequest) Returns a list of successful and failed retrievals for the OpenSearch Serverless indexes.batchGetEffectiveLifecyclePolicy(BatchGetEffectiveLifecyclePolicyRequest batchGetEffectiveLifecyclePolicyRequest) Returns a list of successful and failed retrievals for the OpenSearch Serverless indexes.batchGetLifecyclePolicy(Consumer<BatchGetLifecyclePolicyRequest.Builder> batchGetLifecyclePolicyRequest) Returns one or more configured OpenSearch Serverless lifecycle policies.batchGetLifecyclePolicy(BatchGetLifecyclePolicyRequest batchGetLifecyclePolicyRequest) Returns one or more configured OpenSearch Serverless lifecycle policies.batchGetVpcEndpoint(Consumer<BatchGetVpcEndpointRequest.Builder> batchGetVpcEndpointRequest) Returns attributes for one or more VPC endpoints associated with the current account.batchGetVpcEndpoint(BatchGetVpcEndpointRequest batchGetVpcEndpointRequest) Returns attributes for one or more VPC endpoints associated with the current account.builder()Create a builder that can be used to configure and create aOpenSearchServerlessAsyncClient.create()Create aOpenSearchServerlessAsyncClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.createAccessPolicy(Consumer<CreateAccessPolicyRequest.Builder> createAccessPolicyRequest) Creates a data access policy for OpenSearch Serverless.createAccessPolicy(CreateAccessPolicyRequest createAccessPolicyRequest) Creates a data access policy for OpenSearch Serverless.createCollection(Consumer<CreateCollectionRequest.Builder> createCollectionRequest) Creates a new OpenSearch Serverless collection.createCollection(CreateCollectionRequest createCollectionRequest) Creates a new OpenSearch Serverless collection.createLifecyclePolicy(Consumer<CreateLifecyclePolicyRequest.Builder> createLifecyclePolicyRequest) Creates a lifecyle policy to be applied to OpenSearch Serverless indexes.createLifecyclePolicy(CreateLifecyclePolicyRequest createLifecyclePolicyRequest) Creates a lifecyle policy to be applied to OpenSearch Serverless indexes.createSecurityConfig(Consumer<CreateSecurityConfigRequest.Builder> createSecurityConfigRequest) Specifies a security configuration for OpenSearch Serverless.createSecurityConfig(CreateSecurityConfigRequest createSecurityConfigRequest) Specifies a security configuration for OpenSearch Serverless.createSecurityPolicy(Consumer<CreateSecurityPolicyRequest.Builder> createSecurityPolicyRequest) Creates a security policy to be used by one or more OpenSearch Serverless collections.createSecurityPolicy(CreateSecurityPolicyRequest createSecurityPolicyRequest) Creates a security policy to be used by one or more OpenSearch Serverless collections.createVpcEndpoint(Consumer<CreateVpcEndpointRequest.Builder> createVpcEndpointRequest) Creates an OpenSearch Serverless-managed interface VPC endpoint.createVpcEndpoint(CreateVpcEndpointRequest createVpcEndpointRequest) Creates an OpenSearch Serverless-managed interface VPC endpoint.deleteAccessPolicy(Consumer<DeleteAccessPolicyRequest.Builder> deleteAccessPolicyRequest) Deletes an OpenSearch Serverless access policy.deleteAccessPolicy(DeleteAccessPolicyRequest deleteAccessPolicyRequest) Deletes an OpenSearch Serverless access policy.deleteCollection(Consumer<DeleteCollectionRequest.Builder> deleteCollectionRequest) Deletes an OpenSearch Serverless collection.deleteCollection(DeleteCollectionRequest deleteCollectionRequest) Deletes an OpenSearch Serverless collection.deleteLifecyclePolicy(Consumer<DeleteLifecyclePolicyRequest.Builder> deleteLifecyclePolicyRequest) Deletes an OpenSearch Serverless lifecycle policy.deleteLifecyclePolicy(DeleteLifecyclePolicyRequest deleteLifecyclePolicyRequest) Deletes an OpenSearch Serverless lifecycle policy.deleteSecurityConfig(Consumer<DeleteSecurityConfigRequest.Builder> deleteSecurityConfigRequest) Deletes a security configuration for OpenSearch Serverless.deleteSecurityConfig(DeleteSecurityConfigRequest deleteSecurityConfigRequest) Deletes a security configuration for OpenSearch Serverless.deleteSecurityPolicy(Consumer<DeleteSecurityPolicyRequest.Builder> deleteSecurityPolicyRequest) Deletes an OpenSearch Serverless security policy.deleteSecurityPolicy(DeleteSecurityPolicyRequest deleteSecurityPolicyRequest) Deletes an OpenSearch Serverless security policy.deleteVpcEndpoint(Consumer<DeleteVpcEndpointRequest.Builder> deleteVpcEndpointRequest) Deletes an OpenSearch Serverless-managed interface endpoint.deleteVpcEndpoint(DeleteVpcEndpointRequest deleteVpcEndpointRequest) Deletes an OpenSearch Serverless-managed interface endpoint.default CompletableFuture<GetAccessPolicyResponse> getAccessPolicy(Consumer<GetAccessPolicyRequest.Builder> getAccessPolicyRequest) Returns an OpenSearch Serverless access policy.default CompletableFuture<GetAccessPolicyResponse> getAccessPolicy(GetAccessPolicyRequest getAccessPolicyRequest) Returns an OpenSearch Serverless access policy.getAccountSettings(Consumer<GetAccountSettingsRequest.Builder> getAccountSettingsRequest) Returns account-level settings related to OpenSearch Serverless.getAccountSettings(GetAccountSettingsRequest getAccountSettingsRequest) Returns account-level settings related to OpenSearch Serverless.getPoliciesStats(Consumer<GetPoliciesStatsRequest.Builder> getPoliciesStatsRequest) Returns statistical information about your OpenSearch Serverless access policies, security configurations, and security policies.getPoliciesStats(GetPoliciesStatsRequest getPoliciesStatsRequest) Returns statistical information about your OpenSearch Serverless access policies, security configurations, and security policies.getSecurityConfig(Consumer<GetSecurityConfigRequest.Builder> getSecurityConfigRequest) Returns information about an OpenSearch Serverless security configuration.getSecurityConfig(GetSecurityConfigRequest getSecurityConfigRequest) Returns information about an OpenSearch Serverless security configuration.getSecurityPolicy(Consumer<GetSecurityPolicyRequest.Builder> getSecurityPolicyRequest) Returns information about a configured OpenSearch Serverless security policy.getSecurityPolicy(GetSecurityPolicyRequest getSecurityPolicyRequest) Returns information about a configured OpenSearch Serverless security policy.listAccessPolicies(Consumer<ListAccessPoliciesRequest.Builder> listAccessPoliciesRequest) Returns information about a list of OpenSearch Serverless access policies.listAccessPolicies(ListAccessPoliciesRequest listAccessPoliciesRequest) Returns information about a list of OpenSearch Serverless access policies.default ListAccessPoliciesPublisherlistAccessPoliciesPaginator(Consumer<ListAccessPoliciesRequest.Builder> listAccessPoliciesRequest) This is a variant oflistAccessPolicies(software.amazon.awssdk.services.opensearchserverless.model.ListAccessPoliciesRequest)operation.default ListAccessPoliciesPublisherlistAccessPoliciesPaginator(ListAccessPoliciesRequest listAccessPoliciesRequest) This is a variant oflistAccessPolicies(software.amazon.awssdk.services.opensearchserverless.model.ListAccessPoliciesRequest)operation.default CompletableFuture<ListCollectionsResponse> listCollections(Consumer<ListCollectionsRequest.Builder> listCollectionsRequest) Lists all OpenSearch Serverless collections.default CompletableFuture<ListCollectionsResponse> listCollections(ListCollectionsRequest listCollectionsRequest) Lists all OpenSearch Serverless collections.default ListCollectionsPublisherlistCollectionsPaginator(Consumer<ListCollectionsRequest.Builder> listCollectionsRequest) This is a variant oflistCollections(software.amazon.awssdk.services.opensearchserverless.model.ListCollectionsRequest)operation.default ListCollectionsPublisherlistCollectionsPaginator(ListCollectionsRequest listCollectionsRequest) This is a variant oflistCollections(software.amazon.awssdk.services.opensearchserverless.model.ListCollectionsRequest)operation.listLifecyclePolicies(Consumer<ListLifecyclePoliciesRequest.Builder> listLifecyclePoliciesRequest) Returns a list of OpenSearch Serverless lifecycle policies.listLifecyclePolicies(ListLifecyclePoliciesRequest listLifecyclePoliciesRequest) Returns a list of OpenSearch Serverless lifecycle policies.default ListLifecyclePoliciesPublisherlistLifecyclePoliciesPaginator(Consumer<ListLifecyclePoliciesRequest.Builder> listLifecyclePoliciesRequest) This is a variant oflistLifecyclePolicies(software.amazon.awssdk.services.opensearchserverless.model.ListLifecyclePoliciesRequest)operation.default ListLifecyclePoliciesPublisherlistLifecyclePoliciesPaginator(ListLifecyclePoliciesRequest listLifecyclePoliciesRequest) This is a variant oflistLifecyclePolicies(software.amazon.awssdk.services.opensearchserverless.model.ListLifecyclePoliciesRequest)operation.listSecurityConfigs(Consumer<ListSecurityConfigsRequest.Builder> listSecurityConfigsRequest) Returns information about configured OpenSearch Serverless security configurations.listSecurityConfigs(ListSecurityConfigsRequest listSecurityConfigsRequest) Returns information about configured OpenSearch Serverless security configurations.default ListSecurityConfigsPublisherlistSecurityConfigsPaginator(Consumer<ListSecurityConfigsRequest.Builder> listSecurityConfigsRequest) This is a variant oflistSecurityConfigs(software.amazon.awssdk.services.opensearchserverless.model.ListSecurityConfigsRequest)operation.default ListSecurityConfigsPublisherlistSecurityConfigsPaginator(ListSecurityConfigsRequest listSecurityConfigsRequest) This is a variant oflistSecurityConfigs(software.amazon.awssdk.services.opensearchserverless.model.ListSecurityConfigsRequest)operation.listSecurityPolicies(Consumer<ListSecurityPoliciesRequest.Builder> listSecurityPoliciesRequest) Returns information about configured OpenSearch Serverless security policies.listSecurityPolicies(ListSecurityPoliciesRequest listSecurityPoliciesRequest) Returns information about configured OpenSearch Serverless security policies.default ListSecurityPoliciesPublisherlistSecurityPoliciesPaginator(Consumer<ListSecurityPoliciesRequest.Builder> listSecurityPoliciesRequest) This is a variant oflistSecurityPolicies(software.amazon.awssdk.services.opensearchserverless.model.ListSecurityPoliciesRequest)operation.default ListSecurityPoliciesPublisherlistSecurityPoliciesPaginator(ListSecurityPoliciesRequest listSecurityPoliciesRequest) This is a variant oflistSecurityPolicies(software.amazon.awssdk.services.opensearchserverless.model.ListSecurityPoliciesRequest)operation.listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Returns the tags for an OpenSearch Serverless resource.listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) Returns the tags for an OpenSearch Serverless resource.listVpcEndpoints(Consumer<ListVpcEndpointsRequest.Builder> listVpcEndpointsRequest) Returns the OpenSearch Serverless-managed interface VPC endpoints associated with the current account.listVpcEndpoints(ListVpcEndpointsRequest listVpcEndpointsRequest) Returns the OpenSearch Serverless-managed interface VPC endpoints associated with the current account.default ListVpcEndpointsPublisherlistVpcEndpointsPaginator(Consumer<ListVpcEndpointsRequest.Builder> listVpcEndpointsRequest) This is a variant oflistVpcEndpoints(software.amazon.awssdk.services.opensearchserverless.model.ListVpcEndpointsRequest)operation.default ListVpcEndpointsPublisherlistVpcEndpointsPaginator(ListVpcEndpointsRequest listVpcEndpointsRequest) This is a variant oflistVpcEndpoints(software.amazon.awssdk.services.opensearchserverless.model.ListVpcEndpointsRequest)operation.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationdefault CompletableFuture<TagResourceResponse> tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Associates tags with an OpenSearch Serverless resource.default CompletableFuture<TagResourceResponse> tagResource(TagResourceRequest tagResourceRequest) Associates tags with an OpenSearch Serverless resource.default CompletableFuture<UntagResourceResponse> untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes a tag or set of tags from an OpenSearch Serverless resource.default CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest) Removes a tag or set of tags from an OpenSearch Serverless resource.updateAccessPolicy(Consumer<UpdateAccessPolicyRequest.Builder> updateAccessPolicyRequest) Updates an OpenSearch Serverless access policy.updateAccessPolicy(UpdateAccessPolicyRequest updateAccessPolicyRequest) Updates an OpenSearch Serverless access policy.updateAccountSettings(Consumer<UpdateAccountSettingsRequest.Builder> updateAccountSettingsRequest) Update the OpenSearch Serverless settings for the current Amazon Web Services account.updateAccountSettings(UpdateAccountSettingsRequest updateAccountSettingsRequest) Update the OpenSearch Serverless settings for the current Amazon Web Services account.updateCollection(Consumer<UpdateCollectionRequest.Builder> updateCollectionRequest) Updates an OpenSearch Serverless collection.updateCollection(UpdateCollectionRequest updateCollectionRequest) Updates an OpenSearch Serverless collection.updateLifecyclePolicy(Consumer<UpdateLifecyclePolicyRequest.Builder> updateLifecyclePolicyRequest) Updates an OpenSearch Serverless access policy.updateLifecyclePolicy(UpdateLifecyclePolicyRequest updateLifecyclePolicyRequest) Updates an OpenSearch Serverless access policy.updateSecurityConfig(Consumer<UpdateSecurityConfigRequest.Builder> updateSecurityConfigRequest) Updates a security configuration for OpenSearch Serverless.updateSecurityConfig(UpdateSecurityConfigRequest updateSecurityConfigRequest) Updates a security configuration for OpenSearch Serverless.updateSecurityPolicy(Consumer<UpdateSecurityPolicyRequest.Builder> updateSecurityPolicyRequest) Updates an OpenSearch Serverless security policy.updateSecurityPolicy(UpdateSecurityPolicyRequest updateSecurityPolicyRequest) Updates an OpenSearch Serverless security policy.updateVpcEndpoint(Consumer<UpdateVpcEndpointRequest.Builder> updateVpcEndpointRequest) Updates an OpenSearch Serverless-managed interface endpoint.updateVpcEndpoint(UpdateVpcEndpointRequest updateVpcEndpointRequest) Updates an OpenSearch Serverless-managed interface endpoint.Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
closeMethods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
Field Details
-
SERVICE_NAME
- See Also:
-
SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider.- See Also:
-
-
Method Details
-
batchGetCollection
default CompletableFuture<BatchGetCollectionResponse> batchGetCollection(BatchGetCollectionRequest batchGetCollectionRequest) Returns attributes for one or more collections, including the collection endpoint and the OpenSearch Dashboards endpoint. For more information, see Creating and managing Amazon OpenSearch Serverless collections.
- Parameters:
batchGetCollectionRequest-- Returns:
- A Java Future containing the result of the BatchGetCollection operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
batchGetCollection
default CompletableFuture<BatchGetCollectionResponse> batchGetCollection(Consumer<BatchGetCollectionRequest.Builder> batchGetCollectionRequest) Returns attributes for one or more collections, including the collection endpoint and the OpenSearch Dashboards endpoint. For more information, see Creating and managing Amazon OpenSearch Serverless collections.
This is a convenience which creates an instance of the
BatchGetCollectionRequest.Builderavoiding the need to create one manually viaBatchGetCollectionRequest.builder()- Parameters:
batchGetCollectionRequest- AConsumerthat will call methods onBatchGetCollectionRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the BatchGetCollection operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
batchGetEffectiveLifecyclePolicy
default CompletableFuture<BatchGetEffectiveLifecyclePolicyResponse> batchGetEffectiveLifecyclePolicy(BatchGetEffectiveLifecyclePolicyRequest batchGetEffectiveLifecyclePolicyRequest) Returns a list of successful and failed retrievals for the OpenSearch Serverless indexes. For more information, see Viewing data lifecycle policies.
- Parameters:
batchGetEffectiveLifecyclePolicyRequest-- Returns:
- A Java Future containing the result of the BatchGetEffectiveLifecyclePolicy operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
batchGetEffectiveLifecyclePolicy
default CompletableFuture<BatchGetEffectiveLifecyclePolicyResponse> batchGetEffectiveLifecyclePolicy(Consumer<BatchGetEffectiveLifecyclePolicyRequest.Builder> batchGetEffectiveLifecyclePolicyRequest) Returns a list of successful and failed retrievals for the OpenSearch Serverless indexes. For more information, see Viewing data lifecycle policies.
This is a convenience which creates an instance of the
BatchGetEffectiveLifecyclePolicyRequest.Builderavoiding the need to create one manually viaBatchGetEffectiveLifecyclePolicyRequest.builder()- Parameters:
batchGetEffectiveLifecyclePolicyRequest- AConsumerthat will call methods onBatchGetEffectiveLifecyclePolicyRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the BatchGetEffectiveLifecyclePolicy operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
batchGetLifecyclePolicy
default CompletableFuture<BatchGetLifecyclePolicyResponse> batchGetLifecyclePolicy(BatchGetLifecyclePolicyRequest batchGetLifecyclePolicyRequest) Returns one or more configured OpenSearch Serverless lifecycle policies. For more information, see Viewing data lifecycle policies.
- Parameters:
batchGetLifecyclePolicyRequest-- Returns:
- A Java Future containing the result of the BatchGetLifecyclePolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
batchGetLifecyclePolicy
default CompletableFuture<BatchGetLifecyclePolicyResponse> batchGetLifecyclePolicy(Consumer<BatchGetLifecyclePolicyRequest.Builder> batchGetLifecyclePolicyRequest) Returns one or more configured OpenSearch Serverless lifecycle policies. For more information, see Viewing data lifecycle policies.
This is a convenience which creates an instance of the
BatchGetLifecyclePolicyRequest.Builderavoiding the need to create one manually viaBatchGetLifecyclePolicyRequest.builder()- Parameters:
batchGetLifecyclePolicyRequest- AConsumerthat will call methods onBatchGetLifecyclePolicyRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the BatchGetLifecyclePolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
batchGetVpcEndpoint
default CompletableFuture<BatchGetVpcEndpointResponse> batchGetVpcEndpoint(BatchGetVpcEndpointRequest batchGetVpcEndpointRequest) Returns attributes for one or more VPC endpoints associated with the current account. For more information, see Access Amazon OpenSearch Serverless using an interface endpoint.
- Parameters:
batchGetVpcEndpointRequest-- Returns:
- A Java Future containing the result of the BatchGetVpcEndpoint operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
batchGetVpcEndpoint
default CompletableFuture<BatchGetVpcEndpointResponse> batchGetVpcEndpoint(Consumer<BatchGetVpcEndpointRequest.Builder> batchGetVpcEndpointRequest) Returns attributes for one or more VPC endpoints associated with the current account. For more information, see Access Amazon OpenSearch Serverless using an interface endpoint.
This is a convenience which creates an instance of the
BatchGetVpcEndpointRequest.Builderavoiding the need to create one manually viaBatchGetVpcEndpointRequest.builder()- Parameters:
batchGetVpcEndpointRequest- AConsumerthat will call methods onBatchGetVpcEndpointRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the BatchGetVpcEndpoint operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createAccessPolicy
default CompletableFuture<CreateAccessPolicyResponse> createAccessPolicy(CreateAccessPolicyRequest createAccessPolicyRequest) Creates a data access policy for OpenSearch Serverless. Access policies limit access to collections and the resources within them, and allow a user to access that data irrespective of the access mechanism or network source. For more information, see Data access control for Amazon OpenSearch Serverless.
- Parameters:
createAccessPolicyRequest-- Returns:
- A Java Future containing the result of the CreateAccessPolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ConflictException When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE or FAILED state.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- ServiceQuotaExceededException Thrown when you attempt to create more resources than the service allows based on service quotas.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createAccessPolicy
default CompletableFuture<CreateAccessPolicyResponse> createAccessPolicy(Consumer<CreateAccessPolicyRequest.Builder> createAccessPolicyRequest) Creates a data access policy for OpenSearch Serverless. Access policies limit access to collections and the resources within them, and allow a user to access that data irrespective of the access mechanism or network source. For more information, see Data access control for Amazon OpenSearch Serverless.
This is a convenience which creates an instance of the
CreateAccessPolicyRequest.Builderavoiding the need to create one manually viaCreateAccessPolicyRequest.builder()- Parameters:
createAccessPolicyRequest- AConsumerthat will call methods onCreateAccessPolicyRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the CreateAccessPolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ConflictException When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE or FAILED state.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- ServiceQuotaExceededException Thrown when you attempt to create more resources than the service allows based on service quotas.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createCollection
default CompletableFuture<CreateCollectionResponse> createCollection(CreateCollectionRequest createCollectionRequest) Creates a new OpenSearch Serverless collection. For more information, see Creating and managing Amazon OpenSearch Serverless collections.
- Parameters:
createCollectionRequest-- Returns:
- A Java Future containing the result of the CreateCollection operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- OcuLimitExceededException Thrown when the collection you're attempting to create results in a number of search or indexing OCUs that exceeds the account limit.
- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ConflictException When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE or FAILED state.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- ServiceQuotaExceededException Thrown when you attempt to create more resources than the service allows based on service quotas.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createCollection
default CompletableFuture<CreateCollectionResponse> createCollection(Consumer<CreateCollectionRequest.Builder> createCollectionRequest) Creates a new OpenSearch Serverless collection. For more information, see Creating and managing Amazon OpenSearch Serverless collections.
This is a convenience which creates an instance of the
CreateCollectionRequest.Builderavoiding the need to create one manually viaCreateCollectionRequest.builder()- Parameters:
createCollectionRequest- AConsumerthat will call methods onCreateCollectionRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the CreateCollection operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- OcuLimitExceededException Thrown when the collection you're attempting to create results in a number of search or indexing OCUs that exceeds the account limit.
- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ConflictException When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE or FAILED state.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- ServiceQuotaExceededException Thrown when you attempt to create more resources than the service allows based on service quotas.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createLifecyclePolicy
default CompletableFuture<CreateLifecyclePolicyResponse> createLifecyclePolicy(CreateLifecyclePolicyRequest createLifecyclePolicyRequest) Creates a lifecyle policy to be applied to OpenSearch Serverless indexes. Lifecycle policies define the number of days or hours to retain the data on an OpenSearch Serverless index. For more information, see Creating data lifecycle policies.
- Parameters:
createLifecyclePolicyRequest-- Returns:
- A Java Future containing the result of the CreateLifecyclePolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ConflictException When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE or FAILED state.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- ServiceQuotaExceededException Thrown when you attempt to create more resources than the service allows based on service quotas.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createLifecyclePolicy
default CompletableFuture<CreateLifecyclePolicyResponse> createLifecyclePolicy(Consumer<CreateLifecyclePolicyRequest.Builder> createLifecyclePolicyRequest) Creates a lifecyle policy to be applied to OpenSearch Serverless indexes. Lifecycle policies define the number of days or hours to retain the data on an OpenSearch Serverless index. For more information, see Creating data lifecycle policies.
This is a convenience which creates an instance of the
CreateLifecyclePolicyRequest.Builderavoiding the need to create one manually viaCreateLifecyclePolicyRequest.builder()- Parameters:
createLifecyclePolicyRequest- AConsumerthat will call methods onCreateLifecyclePolicyRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the CreateLifecyclePolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ConflictException When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE or FAILED state.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- ServiceQuotaExceededException Thrown when you attempt to create more resources than the service allows based on service quotas.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createSecurityConfig
default CompletableFuture<CreateSecurityConfigResponse> createSecurityConfig(CreateSecurityConfigRequest createSecurityConfigRequest) Specifies a security configuration for OpenSearch Serverless. For more information, see SAML authentication for Amazon OpenSearch Serverless.
- Parameters:
createSecurityConfigRequest-- Returns:
- A Java Future containing the result of the CreateSecurityConfig operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ConflictException When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE or FAILED state.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- ServiceQuotaExceededException Thrown when you attempt to create more resources than the service allows based on service quotas.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createSecurityConfig
default CompletableFuture<CreateSecurityConfigResponse> createSecurityConfig(Consumer<CreateSecurityConfigRequest.Builder> createSecurityConfigRequest) Specifies a security configuration for OpenSearch Serverless. For more information, see SAML authentication for Amazon OpenSearch Serverless.
This is a convenience which creates an instance of the
CreateSecurityConfigRequest.Builderavoiding the need to create one manually viaCreateSecurityConfigRequest.builder()- Parameters:
createSecurityConfigRequest- AConsumerthat will call methods onCreateSecurityConfigRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the CreateSecurityConfig operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ConflictException When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE or FAILED state.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- ServiceQuotaExceededException Thrown when you attempt to create more resources than the service allows based on service quotas.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createSecurityPolicy
default CompletableFuture<CreateSecurityPolicyResponse> createSecurityPolicy(CreateSecurityPolicyRequest createSecurityPolicyRequest) Creates a security policy to be used by one or more OpenSearch Serverless collections. Security policies provide access to a collection and its OpenSearch Dashboards endpoint from public networks or specific VPC endpoints. They also allow you to secure a collection with a KMS encryption key. For more information, see Network access for Amazon OpenSearch Serverless and Encryption at rest for Amazon OpenSearch Serverless.
- Parameters:
createSecurityPolicyRequest-- Returns:
- A Java Future containing the result of the CreateSecurityPolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ConflictException When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE or FAILED state.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- ServiceQuotaExceededException Thrown when you attempt to create more resources than the service allows based on service quotas.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createSecurityPolicy
default CompletableFuture<CreateSecurityPolicyResponse> createSecurityPolicy(Consumer<CreateSecurityPolicyRequest.Builder> createSecurityPolicyRequest) Creates a security policy to be used by one or more OpenSearch Serverless collections. Security policies provide access to a collection and its OpenSearch Dashboards endpoint from public networks or specific VPC endpoints. They also allow you to secure a collection with a KMS encryption key. For more information, see Network access for Amazon OpenSearch Serverless and Encryption at rest for Amazon OpenSearch Serverless.
This is a convenience which creates an instance of the
CreateSecurityPolicyRequest.Builderavoiding the need to create one manually viaCreateSecurityPolicyRequest.builder()- Parameters:
createSecurityPolicyRequest- AConsumerthat will call methods onCreateSecurityPolicyRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the CreateSecurityPolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ConflictException When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE or FAILED state.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- ServiceQuotaExceededException Thrown when you attempt to create more resources than the service allows based on service quotas.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createVpcEndpoint
default CompletableFuture<CreateVpcEndpointResponse> createVpcEndpoint(CreateVpcEndpointRequest createVpcEndpointRequest) Creates an OpenSearch Serverless-managed interface VPC endpoint. For more information, see Access Amazon OpenSearch Serverless using an interface endpoint.
- Parameters:
createVpcEndpointRequest-- Returns:
- A Java Future containing the result of the CreateVpcEndpoint operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ConflictException When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE or FAILED state.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- ServiceQuotaExceededException Thrown when you attempt to create more resources than the service allows based on service quotas.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createVpcEndpoint
default CompletableFuture<CreateVpcEndpointResponse> createVpcEndpoint(Consumer<CreateVpcEndpointRequest.Builder> createVpcEndpointRequest) Creates an OpenSearch Serverless-managed interface VPC endpoint. For more information, see Access Amazon OpenSearch Serverless using an interface endpoint.
This is a convenience which creates an instance of the
CreateVpcEndpointRequest.Builderavoiding the need to create one manually viaCreateVpcEndpointRequest.builder()- Parameters:
createVpcEndpointRequest- AConsumerthat will call methods onCreateVpcEndpointRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the CreateVpcEndpoint operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ConflictException When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE or FAILED state.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- ServiceQuotaExceededException Thrown when you attempt to create more resources than the service allows based on service quotas.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteAccessPolicy
default CompletableFuture<DeleteAccessPolicyResponse> deleteAccessPolicy(DeleteAccessPolicyRequest deleteAccessPolicyRequest) Deletes an OpenSearch Serverless access policy. For more information, see Data access control for Amazon OpenSearch Serverless.
- Parameters:
deleteAccessPolicyRequest-- Returns:
- A Java Future containing the result of the DeleteAccessPolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ResourceNotFoundException Thrown when accessing or deleting a resource that does not exist.
- ConflictException When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE or FAILED state.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteAccessPolicy
default CompletableFuture<DeleteAccessPolicyResponse> deleteAccessPolicy(Consumer<DeleteAccessPolicyRequest.Builder> deleteAccessPolicyRequest) Deletes an OpenSearch Serverless access policy. For more information, see Data access control for Amazon OpenSearch Serverless.
This is a convenience which creates an instance of the
DeleteAccessPolicyRequest.Builderavoiding the need to create one manually viaDeleteAccessPolicyRequest.builder()- Parameters:
deleteAccessPolicyRequest- AConsumerthat will call methods onDeleteAccessPolicyRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeleteAccessPolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ResourceNotFoundException Thrown when accessing or deleting a resource that does not exist.
- ConflictException When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE or FAILED state.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteCollection
default CompletableFuture<DeleteCollectionResponse> deleteCollection(DeleteCollectionRequest deleteCollectionRequest) Deletes an OpenSearch Serverless collection. For more information, see Creating and managing Amazon OpenSearch Serverless collections.
- Parameters:
deleteCollectionRequest-- Returns:
- A Java Future containing the result of the DeleteCollection operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ResourceNotFoundException Thrown when accessing or deleting a resource that does not exist.
- ConflictException When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE or FAILED state.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteCollection
default CompletableFuture<DeleteCollectionResponse> deleteCollection(Consumer<DeleteCollectionRequest.Builder> deleteCollectionRequest) Deletes an OpenSearch Serverless collection. For more information, see Creating and managing Amazon OpenSearch Serverless collections.
This is a convenience which creates an instance of the
DeleteCollectionRequest.Builderavoiding the need to create one manually viaDeleteCollectionRequest.builder()- Parameters:
deleteCollectionRequest- AConsumerthat will call methods onDeleteCollectionRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeleteCollection operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ResourceNotFoundException Thrown when accessing or deleting a resource that does not exist.
- ConflictException When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE or FAILED state.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteLifecyclePolicy
default CompletableFuture<DeleteLifecyclePolicyResponse> deleteLifecyclePolicy(DeleteLifecyclePolicyRequest deleteLifecyclePolicyRequest) Deletes an OpenSearch Serverless lifecycle policy. For more information, see Deleting data lifecycle policies.
- Parameters:
deleteLifecyclePolicyRequest-- Returns:
- A Java Future containing the result of the DeleteLifecyclePolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ResourceNotFoundException Thrown when accessing or deleting a resource that does not exist.
- ConflictException When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE or FAILED state.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteLifecyclePolicy
default CompletableFuture<DeleteLifecyclePolicyResponse> deleteLifecyclePolicy(Consumer<DeleteLifecyclePolicyRequest.Builder> deleteLifecyclePolicyRequest) Deletes an OpenSearch Serverless lifecycle policy. For more information, see Deleting data lifecycle policies.
This is a convenience which creates an instance of the
DeleteLifecyclePolicyRequest.Builderavoiding the need to create one manually viaDeleteLifecyclePolicyRequest.builder()- Parameters:
deleteLifecyclePolicyRequest- AConsumerthat will call methods onDeleteLifecyclePolicyRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeleteLifecyclePolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ResourceNotFoundException Thrown when accessing or deleting a resource that does not exist.
- ConflictException When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE or FAILED state.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteSecurityConfig
default CompletableFuture<DeleteSecurityConfigResponse> deleteSecurityConfig(DeleteSecurityConfigRequest deleteSecurityConfigRequest) Deletes a security configuration for OpenSearch Serverless. For more information, see SAML authentication for Amazon OpenSearch Serverless.
- Parameters:
deleteSecurityConfigRequest-- Returns:
- A Java Future containing the result of the DeleteSecurityConfig operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ResourceNotFoundException Thrown when accessing or deleting a resource that does not exist.
- ConflictException When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE or FAILED state.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteSecurityConfig
default CompletableFuture<DeleteSecurityConfigResponse> deleteSecurityConfig(Consumer<DeleteSecurityConfigRequest.Builder> deleteSecurityConfigRequest) Deletes a security configuration for OpenSearch Serverless. For more information, see SAML authentication for Amazon OpenSearch Serverless.
This is a convenience which creates an instance of the
DeleteSecurityConfigRequest.Builderavoiding the need to create one manually viaDeleteSecurityConfigRequest.builder()- Parameters:
deleteSecurityConfigRequest- AConsumerthat will call methods onDeleteSecurityConfigRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeleteSecurityConfig operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ResourceNotFoundException Thrown when accessing or deleting a resource that does not exist.
- ConflictException When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE or FAILED state.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteSecurityPolicy
default CompletableFuture<DeleteSecurityPolicyResponse> deleteSecurityPolicy(DeleteSecurityPolicyRequest deleteSecurityPolicyRequest) Deletes an OpenSearch Serverless security policy.
- Parameters:
deleteSecurityPolicyRequest-- Returns:
- A Java Future containing the result of the DeleteSecurityPolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ResourceNotFoundException Thrown when accessing or deleting a resource that does not exist.
- ConflictException When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE or FAILED state.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteSecurityPolicy
default CompletableFuture<DeleteSecurityPolicyResponse> deleteSecurityPolicy(Consumer<DeleteSecurityPolicyRequest.Builder> deleteSecurityPolicyRequest) Deletes an OpenSearch Serverless security policy.
This is a convenience which creates an instance of the
DeleteSecurityPolicyRequest.Builderavoiding the need to create one manually viaDeleteSecurityPolicyRequest.builder()- Parameters:
deleteSecurityPolicyRequest- AConsumerthat will call methods onDeleteSecurityPolicyRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeleteSecurityPolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ResourceNotFoundException Thrown when accessing or deleting a resource that does not exist.
- ConflictException When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE or FAILED state.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteVpcEndpoint
default CompletableFuture<DeleteVpcEndpointResponse> deleteVpcEndpoint(DeleteVpcEndpointRequest deleteVpcEndpointRequest) Deletes an OpenSearch Serverless-managed interface endpoint. For more information, see Access Amazon OpenSearch Serverless using an interface endpoint.
- Parameters:
deleteVpcEndpointRequest-- Returns:
- A Java Future containing the result of the DeleteVpcEndpoint operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ResourceNotFoundException Thrown when accessing or deleting a resource that does not exist.
- ConflictException When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE or FAILED state.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteVpcEndpoint
default CompletableFuture<DeleteVpcEndpointResponse> deleteVpcEndpoint(Consumer<DeleteVpcEndpointRequest.Builder> deleteVpcEndpointRequest) Deletes an OpenSearch Serverless-managed interface endpoint. For more information, see Access Amazon OpenSearch Serverless using an interface endpoint.
This is a convenience which creates an instance of the
DeleteVpcEndpointRequest.Builderavoiding the need to create one manually viaDeleteVpcEndpointRequest.builder()- Parameters:
deleteVpcEndpointRequest- AConsumerthat will call methods onDeleteVpcEndpointRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeleteVpcEndpoint operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ResourceNotFoundException Thrown when accessing or deleting a resource that does not exist.
- ConflictException When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE or FAILED state.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getAccessPolicy
default CompletableFuture<GetAccessPolicyResponse> getAccessPolicy(GetAccessPolicyRequest getAccessPolicyRequest) Returns an OpenSearch Serverless access policy. For more information, see Data access control for Amazon OpenSearch Serverless.
- Parameters:
getAccessPolicyRequest-- Returns:
- A Java Future containing the result of the GetAccessPolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ResourceNotFoundException Thrown when accessing or deleting a resource that does not exist.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getAccessPolicy
default CompletableFuture<GetAccessPolicyResponse> getAccessPolicy(Consumer<GetAccessPolicyRequest.Builder> getAccessPolicyRequest) Returns an OpenSearch Serverless access policy. For more information, see Data access control for Amazon OpenSearch Serverless.
This is a convenience which creates an instance of the
GetAccessPolicyRequest.Builderavoiding the need to create one manually viaGetAccessPolicyRequest.builder()- Parameters:
getAccessPolicyRequest- AConsumerthat will call methods onGetAccessPolicyRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetAccessPolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ResourceNotFoundException Thrown when accessing or deleting a resource that does not exist.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getAccountSettings
default CompletableFuture<GetAccountSettingsResponse> getAccountSettings(GetAccountSettingsRequest getAccountSettingsRequest) Returns account-level settings related to OpenSearch Serverless.
- Parameters:
getAccountSettingsRequest-- Returns:
- A Java Future containing the result of the GetAccountSettings operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getAccountSettings
default CompletableFuture<GetAccountSettingsResponse> getAccountSettings(Consumer<GetAccountSettingsRequest.Builder> getAccountSettingsRequest) Returns account-level settings related to OpenSearch Serverless.
This is a convenience which creates an instance of the
GetAccountSettingsRequest.Builderavoiding the need to create one manually viaGetAccountSettingsRequest.builder()- Parameters:
getAccountSettingsRequest- AConsumerthat will call methods onGetAccountSettingsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetAccountSettings operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getPoliciesStats
default CompletableFuture<GetPoliciesStatsResponse> getPoliciesStats(GetPoliciesStatsRequest getPoliciesStatsRequest) Returns statistical information about your OpenSearch Serverless access policies, security configurations, and security policies.
- Parameters:
getPoliciesStatsRequest-- Returns:
- A Java Future containing the result of the GetPoliciesStats operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getPoliciesStats
default CompletableFuture<GetPoliciesStatsResponse> getPoliciesStats(Consumer<GetPoliciesStatsRequest.Builder> getPoliciesStatsRequest) Returns statistical information about your OpenSearch Serverless access policies, security configurations, and security policies.
This is a convenience which creates an instance of the
GetPoliciesStatsRequest.Builderavoiding the need to create one manually viaGetPoliciesStatsRequest.builder()- Parameters:
getPoliciesStatsRequest- AConsumerthat will call methods onGetPoliciesStatsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetPoliciesStats operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getSecurityConfig
default CompletableFuture<GetSecurityConfigResponse> getSecurityConfig(GetSecurityConfigRequest getSecurityConfigRequest) Returns information about an OpenSearch Serverless security configuration. For more information, see SAML authentication for Amazon OpenSearch Serverless.
- Parameters:
getSecurityConfigRequest-- Returns:
- A Java Future containing the result of the GetSecurityConfig operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ResourceNotFoundException Thrown when accessing or deleting a resource that does not exist.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getSecurityConfig
default CompletableFuture<GetSecurityConfigResponse> getSecurityConfig(Consumer<GetSecurityConfigRequest.Builder> getSecurityConfigRequest) Returns information about an OpenSearch Serverless security configuration. For more information, see SAML authentication for Amazon OpenSearch Serverless.
This is a convenience which creates an instance of the
GetSecurityConfigRequest.Builderavoiding the need to create one manually viaGetSecurityConfigRequest.builder()- Parameters:
getSecurityConfigRequest- AConsumerthat will call methods onGetSecurityConfigRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetSecurityConfig operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ResourceNotFoundException Thrown when accessing or deleting a resource that does not exist.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getSecurityPolicy
default CompletableFuture<GetSecurityPolicyResponse> getSecurityPolicy(GetSecurityPolicyRequest getSecurityPolicyRequest) Returns information about a configured OpenSearch Serverless security policy. For more information, see Network access for Amazon OpenSearch Serverless and Encryption at rest for Amazon OpenSearch Serverless.
- Parameters:
getSecurityPolicyRequest-- Returns:
- A Java Future containing the result of the GetSecurityPolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ResourceNotFoundException Thrown when accessing or deleting a resource that does not exist.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getSecurityPolicy
default CompletableFuture<GetSecurityPolicyResponse> getSecurityPolicy(Consumer<GetSecurityPolicyRequest.Builder> getSecurityPolicyRequest) Returns information about a configured OpenSearch Serverless security policy. For more information, see Network access for Amazon OpenSearch Serverless and Encryption at rest for Amazon OpenSearch Serverless.
This is a convenience which creates an instance of the
GetSecurityPolicyRequest.Builderavoiding the need to create one manually viaGetSecurityPolicyRequest.builder()- Parameters:
getSecurityPolicyRequest- AConsumerthat will call methods onGetSecurityPolicyRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetSecurityPolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ResourceNotFoundException Thrown when accessing or deleting a resource that does not exist.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAccessPolicies
default CompletableFuture<ListAccessPoliciesResponse> listAccessPolicies(ListAccessPoliciesRequest listAccessPoliciesRequest) Returns information about a list of OpenSearch Serverless access policies.
- Parameters:
listAccessPoliciesRequest-- Returns:
- A Java Future containing the result of the ListAccessPolicies operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAccessPolicies
default CompletableFuture<ListAccessPoliciesResponse> listAccessPolicies(Consumer<ListAccessPoliciesRequest.Builder> listAccessPoliciesRequest) Returns information about a list of OpenSearch Serverless access policies.
This is a convenience which creates an instance of the
ListAccessPoliciesRequest.Builderavoiding the need to create one manually viaListAccessPoliciesRequest.builder()- Parameters:
listAccessPoliciesRequest- AConsumerthat will call methods onListAccessPoliciesRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListAccessPolicies operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAccessPoliciesPaginator
default ListAccessPoliciesPublisher listAccessPoliciesPaginator(ListAccessPoliciesRequest listAccessPoliciesRequest) This is a variant of
listAccessPolicies(software.amazon.awssdk.services.opensearchserverless.model.ListAccessPoliciesRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.opensearchserverless.paginators.ListAccessPoliciesPublisher publisher = client.listAccessPoliciesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.opensearchserverless.paginators.ListAccessPoliciesPublisher publisher = client.listAccessPoliciesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.opensearchserverless.model.ListAccessPoliciesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.opensearchserverless.model.ListAccessPoliciesResponse response) { //... }; });Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAccessPolicies(software.amazon.awssdk.services.opensearchserverless.model.ListAccessPoliciesRequest)operation.- Parameters:
listAccessPoliciesRequest-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAccessPoliciesPaginator
default ListAccessPoliciesPublisher listAccessPoliciesPaginator(Consumer<ListAccessPoliciesRequest.Builder> listAccessPoliciesRequest) This is a variant of
listAccessPolicies(software.amazon.awssdk.services.opensearchserverless.model.ListAccessPoliciesRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.opensearchserverless.paginators.ListAccessPoliciesPublisher publisher = client.listAccessPoliciesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.opensearchserverless.paginators.ListAccessPoliciesPublisher publisher = client.listAccessPoliciesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.opensearchserverless.model.ListAccessPoliciesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.opensearchserverless.model.ListAccessPoliciesResponse response) { //... }; });Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAccessPolicies(software.amazon.awssdk.services.opensearchserverless.model.ListAccessPoliciesRequest)operation.
This is a convenience which creates an instance of the
ListAccessPoliciesRequest.Builderavoiding the need to create one manually viaListAccessPoliciesRequest.builder()- Parameters:
listAccessPoliciesRequest- AConsumerthat will call methods onListAccessPoliciesRequest.Builderto create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listCollections
default CompletableFuture<ListCollectionsResponse> listCollections(ListCollectionsRequest listCollectionsRequest) Lists all OpenSearch Serverless collections. For more information, see Creating and managing Amazon OpenSearch Serverless collections.
Make sure to include an empty request body {} if you don't include any collection filters in the request.
- Parameters:
listCollectionsRequest-- Returns:
- A Java Future containing the result of the ListCollections operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listCollections
default CompletableFuture<ListCollectionsResponse> listCollections(Consumer<ListCollectionsRequest.Builder> listCollectionsRequest) Lists all OpenSearch Serverless collections. For more information, see Creating and managing Amazon OpenSearch Serverless collections.
Make sure to include an empty request body {} if you don't include any collection filters in the request.
This is a convenience which creates an instance of the
ListCollectionsRequest.Builderavoiding the need to create one manually viaListCollectionsRequest.builder()- Parameters:
listCollectionsRequest- AConsumerthat will call methods onListCollectionsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListCollections operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listCollectionsPaginator
default ListCollectionsPublisher listCollectionsPaginator(ListCollectionsRequest listCollectionsRequest) This is a variant of
listCollections(software.amazon.awssdk.services.opensearchserverless.model.ListCollectionsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.opensearchserverless.paginators.ListCollectionsPublisher publisher = client.listCollectionsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.opensearchserverless.paginators.ListCollectionsPublisher publisher = client.listCollectionsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.opensearchserverless.model.ListCollectionsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.opensearchserverless.model.ListCollectionsResponse response) { //... }; });Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listCollections(software.amazon.awssdk.services.opensearchserverless.model.ListCollectionsRequest)operation.- Parameters:
listCollectionsRequest-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listCollectionsPaginator
default ListCollectionsPublisher listCollectionsPaginator(Consumer<ListCollectionsRequest.Builder> listCollectionsRequest) This is a variant of
listCollections(software.amazon.awssdk.services.opensearchserverless.model.ListCollectionsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.opensearchserverless.paginators.ListCollectionsPublisher publisher = client.listCollectionsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.opensearchserverless.paginators.ListCollectionsPublisher publisher = client.listCollectionsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.opensearchserverless.model.ListCollectionsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.opensearchserverless.model.ListCollectionsResponse response) { //... }; });Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listCollections(software.amazon.awssdk.services.opensearchserverless.model.ListCollectionsRequest)operation.
This is a convenience which creates an instance of the
ListCollectionsRequest.Builderavoiding the need to create one manually viaListCollectionsRequest.builder()- Parameters:
listCollectionsRequest- AConsumerthat will call methods onListCollectionsRequest.Builderto create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listLifecyclePolicies
default CompletableFuture<ListLifecyclePoliciesResponse> listLifecyclePolicies(ListLifecyclePoliciesRequest listLifecyclePoliciesRequest) Returns a list of OpenSearch Serverless lifecycle policies. For more information, see Viewing data lifecycle policies.
- Parameters:
listLifecyclePoliciesRequest-- Returns:
- A Java Future containing the result of the ListLifecyclePolicies operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listLifecyclePolicies
default CompletableFuture<ListLifecyclePoliciesResponse> listLifecyclePolicies(Consumer<ListLifecyclePoliciesRequest.Builder> listLifecyclePoliciesRequest) Returns a list of OpenSearch Serverless lifecycle policies. For more information, see Viewing data lifecycle policies.
This is a convenience which creates an instance of the
ListLifecyclePoliciesRequest.Builderavoiding the need to create one manually viaListLifecyclePoliciesRequest.builder()- Parameters:
listLifecyclePoliciesRequest- AConsumerthat will call methods onListLifecyclePoliciesRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListLifecyclePolicies operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listLifecyclePoliciesPaginator
default ListLifecyclePoliciesPublisher listLifecyclePoliciesPaginator(ListLifecyclePoliciesRequest listLifecyclePoliciesRequest) This is a variant of
listLifecyclePolicies(software.amazon.awssdk.services.opensearchserverless.model.ListLifecyclePoliciesRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.opensearchserverless.paginators.ListLifecyclePoliciesPublisher publisher = client.listLifecyclePoliciesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.opensearchserverless.paginators.ListLifecyclePoliciesPublisher publisher = client.listLifecyclePoliciesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.opensearchserverless.model.ListLifecyclePoliciesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.opensearchserverless.model.ListLifecyclePoliciesResponse response) { //... }; });Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listLifecyclePolicies(software.amazon.awssdk.services.opensearchserverless.model.ListLifecyclePoliciesRequest)operation.- Parameters:
listLifecyclePoliciesRequest-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listLifecyclePoliciesPaginator
default ListLifecyclePoliciesPublisher listLifecyclePoliciesPaginator(Consumer<ListLifecyclePoliciesRequest.Builder> listLifecyclePoliciesRequest) This is a variant of
listLifecyclePolicies(software.amazon.awssdk.services.opensearchserverless.model.ListLifecyclePoliciesRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.opensearchserverless.paginators.ListLifecyclePoliciesPublisher publisher = client.listLifecyclePoliciesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.opensearchserverless.paginators.ListLifecyclePoliciesPublisher publisher = client.listLifecyclePoliciesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.opensearchserverless.model.ListLifecyclePoliciesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.opensearchserverless.model.ListLifecyclePoliciesResponse response) { //... }; });Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listLifecyclePolicies(software.amazon.awssdk.services.opensearchserverless.model.ListLifecyclePoliciesRequest)operation.
This is a convenience which creates an instance of the
ListLifecyclePoliciesRequest.Builderavoiding the need to create one manually viaListLifecyclePoliciesRequest.builder()- Parameters:
listLifecyclePoliciesRequest- AConsumerthat will call methods onListLifecyclePoliciesRequest.Builderto create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listSecurityConfigs
default CompletableFuture<ListSecurityConfigsResponse> listSecurityConfigs(ListSecurityConfigsRequest listSecurityConfigsRequest) Returns information about configured OpenSearch Serverless security configurations. For more information, see SAML authentication for Amazon OpenSearch Serverless.
- Parameters:
listSecurityConfigsRequest-- Returns:
- A Java Future containing the result of the ListSecurityConfigs operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listSecurityConfigs
default CompletableFuture<ListSecurityConfigsResponse> listSecurityConfigs(Consumer<ListSecurityConfigsRequest.Builder> listSecurityConfigsRequest) Returns information about configured OpenSearch Serverless security configurations. For more information, see SAML authentication for Amazon OpenSearch Serverless.
This is a convenience which creates an instance of the
ListSecurityConfigsRequest.Builderavoiding the need to create one manually viaListSecurityConfigsRequest.builder()- Parameters:
listSecurityConfigsRequest- AConsumerthat will call methods onListSecurityConfigsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListSecurityConfigs operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listSecurityConfigsPaginator
default ListSecurityConfigsPublisher listSecurityConfigsPaginator(ListSecurityConfigsRequest listSecurityConfigsRequest) This is a variant of
listSecurityConfigs(software.amazon.awssdk.services.opensearchserverless.model.ListSecurityConfigsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.opensearchserverless.paginators.ListSecurityConfigsPublisher publisher = client.listSecurityConfigsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.opensearchserverless.paginators.ListSecurityConfigsPublisher publisher = client.listSecurityConfigsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.opensearchserverless.model.ListSecurityConfigsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.opensearchserverless.model.ListSecurityConfigsResponse response) { //... }; });Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listSecurityConfigs(software.amazon.awssdk.services.opensearchserverless.model.ListSecurityConfigsRequest)operation.- Parameters:
listSecurityConfigsRequest-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listSecurityConfigsPaginator
default ListSecurityConfigsPublisher listSecurityConfigsPaginator(Consumer<ListSecurityConfigsRequest.Builder> listSecurityConfigsRequest) This is a variant of
listSecurityConfigs(software.amazon.awssdk.services.opensearchserverless.model.ListSecurityConfigsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.opensearchserverless.paginators.ListSecurityConfigsPublisher publisher = client.listSecurityConfigsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.opensearchserverless.paginators.ListSecurityConfigsPublisher publisher = client.listSecurityConfigsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.opensearchserverless.model.ListSecurityConfigsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.opensearchserverless.model.ListSecurityConfigsResponse response) { //... }; });Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listSecurityConfigs(software.amazon.awssdk.services.opensearchserverless.model.ListSecurityConfigsRequest)operation.
This is a convenience which creates an instance of the
ListSecurityConfigsRequest.Builderavoiding the need to create one manually viaListSecurityConfigsRequest.builder()- Parameters:
listSecurityConfigsRequest- AConsumerthat will call methods onListSecurityConfigsRequest.Builderto create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listSecurityPolicies
default CompletableFuture<ListSecurityPoliciesResponse> listSecurityPolicies(ListSecurityPoliciesRequest listSecurityPoliciesRequest) Returns information about configured OpenSearch Serverless security policies.
- Parameters:
listSecurityPoliciesRequest-- Returns:
- A Java Future containing the result of the ListSecurityPolicies operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listSecurityPolicies
default CompletableFuture<ListSecurityPoliciesResponse> listSecurityPolicies(Consumer<ListSecurityPoliciesRequest.Builder> listSecurityPoliciesRequest) Returns information about configured OpenSearch Serverless security policies.
This is a convenience which creates an instance of the
ListSecurityPoliciesRequest.Builderavoiding the need to create one manually viaListSecurityPoliciesRequest.builder()- Parameters:
listSecurityPoliciesRequest- AConsumerthat will call methods onListSecurityPoliciesRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListSecurityPolicies operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listSecurityPoliciesPaginator
default ListSecurityPoliciesPublisher listSecurityPoliciesPaginator(ListSecurityPoliciesRequest listSecurityPoliciesRequest) This is a variant of
listSecurityPolicies(software.amazon.awssdk.services.opensearchserverless.model.ListSecurityPoliciesRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.opensearchserverless.paginators.ListSecurityPoliciesPublisher publisher = client.listSecurityPoliciesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.opensearchserverless.paginators.ListSecurityPoliciesPublisher publisher = client.listSecurityPoliciesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.opensearchserverless.model.ListSecurityPoliciesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.opensearchserverless.model.ListSecurityPoliciesResponse response) { //... }; });Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listSecurityPolicies(software.amazon.awssdk.services.opensearchserverless.model.ListSecurityPoliciesRequest)operation.- Parameters:
listSecurityPoliciesRequest-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listSecurityPoliciesPaginator
default ListSecurityPoliciesPublisher listSecurityPoliciesPaginator(Consumer<ListSecurityPoliciesRequest.Builder> listSecurityPoliciesRequest) This is a variant of
listSecurityPolicies(software.amazon.awssdk.services.opensearchserverless.model.ListSecurityPoliciesRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.opensearchserverless.paginators.ListSecurityPoliciesPublisher publisher = client.listSecurityPoliciesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.opensearchserverless.paginators.ListSecurityPoliciesPublisher publisher = client.listSecurityPoliciesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.opensearchserverless.model.ListSecurityPoliciesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.opensearchserverless.model.ListSecurityPoliciesResponse response) { //... }; });Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listSecurityPolicies(software.amazon.awssdk.services.opensearchserverless.model.ListSecurityPoliciesRequest)operation.
This is a convenience which creates an instance of the
ListSecurityPoliciesRequest.Builderavoiding the need to create one manually viaListSecurityPoliciesRequest.builder()- Parameters:
listSecurityPoliciesRequest- AConsumerthat will call methods onListSecurityPoliciesRequest.Builderto create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listTagsForResource
default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) Returns the tags for an OpenSearch Serverless resource. For more information, see Tagging Amazon OpenSearch Serverless collections.
- Parameters:
listTagsForResourceRequest-- Returns:
- A Java Future containing the result of the ListTagsForResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ResourceNotFoundException Thrown when accessing or deleting a resource that does not exist.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listTagsForResource
default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Returns the tags for an OpenSearch Serverless resource. For more information, see Tagging Amazon OpenSearch Serverless collections.
This is a convenience which creates an instance of the
ListTagsForResourceRequest.Builderavoiding the need to create one manually viaListTagsForResourceRequest.builder()- Parameters:
listTagsForResourceRequest- AConsumerthat will call methods onListTagsForResourceRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListTagsForResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ResourceNotFoundException Thrown when accessing or deleting a resource that does not exist.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listVpcEndpoints
default CompletableFuture<ListVpcEndpointsResponse> listVpcEndpoints(ListVpcEndpointsRequest listVpcEndpointsRequest) Returns the OpenSearch Serverless-managed interface VPC endpoints associated with the current account. For more information, see Access Amazon OpenSearch Serverless using an interface endpoint.
- Parameters:
listVpcEndpointsRequest-- Returns:
- A Java Future containing the result of the ListVpcEndpoints operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listVpcEndpoints
default CompletableFuture<ListVpcEndpointsResponse> listVpcEndpoints(Consumer<ListVpcEndpointsRequest.Builder> listVpcEndpointsRequest) Returns the OpenSearch Serverless-managed interface VPC endpoints associated with the current account. For more information, see Access Amazon OpenSearch Serverless using an interface endpoint.
This is a convenience which creates an instance of the
ListVpcEndpointsRequest.Builderavoiding the need to create one manually viaListVpcEndpointsRequest.builder()- Parameters:
listVpcEndpointsRequest- AConsumerthat will call methods onListVpcEndpointsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListVpcEndpoints operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listVpcEndpointsPaginator
default ListVpcEndpointsPublisher listVpcEndpointsPaginator(ListVpcEndpointsRequest listVpcEndpointsRequest) This is a variant of
listVpcEndpoints(software.amazon.awssdk.services.opensearchserverless.model.ListVpcEndpointsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.opensearchserverless.paginators.ListVpcEndpointsPublisher publisher = client.listVpcEndpointsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.opensearchserverless.paginators.ListVpcEndpointsPublisher publisher = client.listVpcEndpointsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.opensearchserverless.model.ListVpcEndpointsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.opensearchserverless.model.ListVpcEndpointsResponse response) { //... }; });Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listVpcEndpoints(software.amazon.awssdk.services.opensearchserverless.model.ListVpcEndpointsRequest)operation.- Parameters:
listVpcEndpointsRequest-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listVpcEndpointsPaginator
default ListVpcEndpointsPublisher listVpcEndpointsPaginator(Consumer<ListVpcEndpointsRequest.Builder> listVpcEndpointsRequest) This is a variant of
listVpcEndpoints(software.amazon.awssdk.services.opensearchserverless.model.ListVpcEndpointsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.opensearchserverless.paginators.ListVpcEndpointsPublisher publisher = client.listVpcEndpointsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.opensearchserverless.paginators.ListVpcEndpointsPublisher publisher = client.listVpcEndpointsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.opensearchserverless.model.ListVpcEndpointsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.opensearchserverless.model.ListVpcEndpointsResponse response) { //... }; });Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listVpcEndpoints(software.amazon.awssdk.services.opensearchserverless.model.ListVpcEndpointsRequest)operation.
This is a convenience which creates an instance of the
ListVpcEndpointsRequest.Builderavoiding the need to create one manually viaListVpcEndpointsRequest.builder()- Parameters:
listVpcEndpointsRequest- AConsumerthat will call methods onListVpcEndpointsRequest.Builderto create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
tagResource
Associates tags with an OpenSearch Serverless resource. For more information, see Tagging Amazon OpenSearch Serverless collections.
- Parameters:
tagResourceRequest-- Returns:
- A Java Future containing the result of the TagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ResourceNotFoundException Thrown when accessing or deleting a resource that does not exist.
- ConflictException When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE or FAILED state.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- ServiceQuotaExceededException Thrown when you attempt to create more resources than the service allows based on service quotas.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
tagResource
default CompletableFuture<TagResourceResponse> tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Associates tags with an OpenSearch Serverless resource. For more information, see Tagging Amazon OpenSearch Serverless collections.
This is a convenience which creates an instance of the
TagResourceRequest.Builderavoiding the need to create one manually viaTagResourceRequest.builder()- Parameters:
tagResourceRequest- AConsumerthat will call methods onTagResourceRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the TagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ResourceNotFoundException Thrown when accessing or deleting a resource that does not exist.
- ConflictException When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE or FAILED state.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- ServiceQuotaExceededException Thrown when you attempt to create more resources than the service allows based on service quotas.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
untagResource
default CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest) Removes a tag or set of tags from an OpenSearch Serverless resource. For more information, see Tagging Amazon OpenSearch Serverless collections.
- Parameters:
untagResourceRequest-- Returns:
- A Java Future containing the result of the UntagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ResourceNotFoundException Thrown when accessing or deleting a resource that does not exist.
- ConflictException When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE or FAILED state.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
untagResource
default CompletableFuture<UntagResourceResponse> untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes a tag or set of tags from an OpenSearch Serverless resource. For more information, see Tagging Amazon OpenSearch Serverless collections.
This is a convenience which creates an instance of the
UntagResourceRequest.Builderavoiding the need to create one manually viaUntagResourceRequest.builder()- Parameters:
untagResourceRequest- AConsumerthat will call methods onUntagResourceRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the UntagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ResourceNotFoundException Thrown when accessing or deleting a resource that does not exist.
- ConflictException When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE or FAILED state.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateAccessPolicy
default CompletableFuture<UpdateAccessPolicyResponse> updateAccessPolicy(UpdateAccessPolicyRequest updateAccessPolicyRequest) Updates an OpenSearch Serverless access policy. For more information, see Data access control for Amazon OpenSearch Serverless.
- Parameters:
updateAccessPolicyRequest-- Returns:
- A Java Future containing the result of the UpdateAccessPolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ResourceNotFoundException Thrown when accessing or deleting a resource that does not exist.
- ConflictException When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE or FAILED state.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateAccessPolicy
default CompletableFuture<UpdateAccessPolicyResponse> updateAccessPolicy(Consumer<UpdateAccessPolicyRequest.Builder> updateAccessPolicyRequest) Updates an OpenSearch Serverless access policy. For more information, see Data access control for Amazon OpenSearch Serverless.
This is a convenience which creates an instance of the
UpdateAccessPolicyRequest.Builderavoiding the need to create one manually viaUpdateAccessPolicyRequest.builder()- Parameters:
updateAccessPolicyRequest- AConsumerthat will call methods onUpdateAccessPolicyRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the UpdateAccessPolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ResourceNotFoundException Thrown when accessing or deleting a resource that does not exist.
- ConflictException When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE or FAILED state.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateAccountSettings
default CompletableFuture<UpdateAccountSettingsResponse> updateAccountSettings(UpdateAccountSettingsRequest updateAccountSettingsRequest) Update the OpenSearch Serverless settings for the current Amazon Web Services account. For more information, see Managing capacity limits for Amazon OpenSearch Serverless.
- Parameters:
updateAccountSettingsRequest-- Returns:
- A Java Future containing the result of the UpdateAccountSettings operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateAccountSettings
default CompletableFuture<UpdateAccountSettingsResponse> updateAccountSettings(Consumer<UpdateAccountSettingsRequest.Builder> updateAccountSettingsRequest) Update the OpenSearch Serverless settings for the current Amazon Web Services account. For more information, see Managing capacity limits for Amazon OpenSearch Serverless.
This is a convenience which creates an instance of the
UpdateAccountSettingsRequest.Builderavoiding the need to create one manually viaUpdateAccountSettingsRequest.builder()- Parameters:
updateAccountSettingsRequest- AConsumerthat will call methods onUpdateAccountSettingsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the UpdateAccountSettings operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateCollection
default CompletableFuture<UpdateCollectionResponse> updateCollection(UpdateCollectionRequest updateCollectionRequest) Updates an OpenSearch Serverless collection.
- Parameters:
updateCollectionRequest-- Returns:
- A Java Future containing the result of the UpdateCollection operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ConflictException When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE or FAILED state.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateCollection
default CompletableFuture<UpdateCollectionResponse> updateCollection(Consumer<UpdateCollectionRequest.Builder> updateCollectionRequest) Updates an OpenSearch Serverless collection.
This is a convenience which creates an instance of the
UpdateCollectionRequest.Builderavoiding the need to create one manually viaUpdateCollectionRequest.builder()- Parameters:
updateCollectionRequest- AConsumerthat will call methods onUpdateCollectionRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the UpdateCollection operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ConflictException When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE or FAILED state.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateLifecyclePolicy
default CompletableFuture<UpdateLifecyclePolicyResponse> updateLifecyclePolicy(UpdateLifecyclePolicyRequest updateLifecyclePolicyRequest) Updates an OpenSearch Serverless access policy. For more information, see Updating data lifecycle policies.
- Parameters:
updateLifecyclePolicyRequest-- Returns:
- A Java Future containing the result of the UpdateLifecyclePolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ResourceNotFoundException Thrown when accessing or deleting a resource that does not exist.
- ConflictException When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE or FAILED state.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- ServiceQuotaExceededException Thrown when you attempt to create more resources than the service allows based on service quotas.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateLifecyclePolicy
default CompletableFuture<UpdateLifecyclePolicyResponse> updateLifecyclePolicy(Consumer<UpdateLifecyclePolicyRequest.Builder> updateLifecyclePolicyRequest) Updates an OpenSearch Serverless access policy. For more information, see Updating data lifecycle policies.
This is a convenience which creates an instance of the
UpdateLifecyclePolicyRequest.Builderavoiding the need to create one manually viaUpdateLifecyclePolicyRequest.builder()- Parameters:
updateLifecyclePolicyRequest- AConsumerthat will call methods onUpdateLifecyclePolicyRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the UpdateLifecyclePolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ResourceNotFoundException Thrown when accessing or deleting a resource that does not exist.
- ConflictException When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE or FAILED state.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- ServiceQuotaExceededException Thrown when you attempt to create more resources than the service allows based on service quotas.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateSecurityConfig
default CompletableFuture<UpdateSecurityConfigResponse> updateSecurityConfig(UpdateSecurityConfigRequest updateSecurityConfigRequest) Updates a security configuration for OpenSearch Serverless. For more information, see SAML authentication for Amazon OpenSearch Serverless.
- Parameters:
updateSecurityConfigRequest-- Returns:
- A Java Future containing the result of the UpdateSecurityConfig operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ResourceNotFoundException Thrown when accessing or deleting a resource that does not exist.
- ConflictException When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE or FAILED state.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateSecurityConfig
default CompletableFuture<UpdateSecurityConfigResponse> updateSecurityConfig(Consumer<UpdateSecurityConfigRequest.Builder> updateSecurityConfigRequest) Updates a security configuration for OpenSearch Serverless. For more information, see SAML authentication for Amazon OpenSearch Serverless.
This is a convenience which creates an instance of the
UpdateSecurityConfigRequest.Builderavoiding the need to create one manually viaUpdateSecurityConfigRequest.builder()- Parameters:
updateSecurityConfigRequest- AConsumerthat will call methods onUpdateSecurityConfigRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the UpdateSecurityConfig operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ResourceNotFoundException Thrown when accessing or deleting a resource that does not exist.
- ConflictException When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE or FAILED state.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateSecurityPolicy
default CompletableFuture<UpdateSecurityPolicyResponse> updateSecurityPolicy(UpdateSecurityPolicyRequest updateSecurityPolicyRequest) Updates an OpenSearch Serverless security policy. For more information, see Network access for Amazon OpenSearch Serverless and Encryption at rest for Amazon OpenSearch Serverless.
- Parameters:
updateSecurityPolicyRequest-- Returns:
- A Java Future containing the result of the UpdateSecurityPolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ResourceNotFoundException Thrown when accessing or deleting a resource that does not exist.
- ConflictException When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE or FAILED state.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- ServiceQuotaExceededException Thrown when you attempt to create more resources than the service allows based on service quotas.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateSecurityPolicy
default CompletableFuture<UpdateSecurityPolicyResponse> updateSecurityPolicy(Consumer<UpdateSecurityPolicyRequest.Builder> updateSecurityPolicyRequest) Updates an OpenSearch Serverless security policy. For more information, see Network access for Amazon OpenSearch Serverless and Encryption at rest for Amazon OpenSearch Serverless.
This is a convenience which creates an instance of the
UpdateSecurityPolicyRequest.Builderavoiding the need to create one manually viaUpdateSecurityPolicyRequest.builder()- Parameters:
updateSecurityPolicyRequest- AConsumerthat will call methods onUpdateSecurityPolicyRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the UpdateSecurityPolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ResourceNotFoundException Thrown when accessing or deleting a resource that does not exist.
- ConflictException When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE or FAILED state.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- ServiceQuotaExceededException Thrown when you attempt to create more resources than the service allows based on service quotas.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateVpcEndpoint
default CompletableFuture<UpdateVpcEndpointResponse> updateVpcEndpoint(UpdateVpcEndpointRequest updateVpcEndpointRequest) Updates an OpenSearch Serverless-managed interface endpoint. For more information, see Access Amazon OpenSearch Serverless using an interface endpoint.
- Parameters:
updateVpcEndpointRequest-- Returns:
- A Java Future containing the result of the UpdateVpcEndpoint operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ConflictException When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE or FAILED state.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateVpcEndpoint
default CompletableFuture<UpdateVpcEndpointResponse> updateVpcEndpoint(Consumer<UpdateVpcEndpointRequest.Builder> updateVpcEndpointRequest) Updates an OpenSearch Serverless-managed interface endpoint. For more information, see Access Amazon OpenSearch Serverless using an interface endpoint.
This is a convenience which creates an instance of the
UpdateVpcEndpointRequest.Builderavoiding the need to create one manually viaUpdateVpcEndpointRequest.builder()- Parameters:
updateVpcEndpointRequest- AConsumerthat will call methods onUpdateVpcEndpointRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the UpdateVpcEndpoint operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException Thrown when an error internal to the service occurs while processing a request.
- ConflictException When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE or FAILED state.
- ValidationException Thrown when the HTTP request contains invalid input or is missing required input.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- OpenSearchServerlessException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
serviceClientConfiguration
Description copied from interface:SdkClientThe SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient- Returns:
- SdkServiceClientConfiguration
-
create
Create aOpenSearchServerlessAsyncClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aOpenSearchServerlessAsyncClient.
-