Interface OpenSearchServerlessClient
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
builder()
method.
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 TypeMethodDescriptiondefault BatchGetCollectionResponsebatchGetCollection(Consumer<BatchGetCollectionRequest.Builder> batchGetCollectionRequest) Returns attributes for one or more collections, including the collection endpoint and the OpenSearch Dashboards endpoint.default BatchGetCollectionResponsebatchGetCollection(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.default BatchGetLifecyclePolicyResponsebatchGetLifecyclePolicy(Consumer<BatchGetLifecyclePolicyRequest.Builder> batchGetLifecyclePolicyRequest) Returns one or more configured OpenSearch Serverless lifecycle policies.default BatchGetLifecyclePolicyResponsebatchGetLifecyclePolicy(BatchGetLifecyclePolicyRequest batchGetLifecyclePolicyRequest) Returns one or more configured OpenSearch Serverless lifecycle policies.default BatchGetVpcEndpointResponsebatchGetVpcEndpoint(Consumer<BatchGetVpcEndpointRequest.Builder> batchGetVpcEndpointRequest) Returns attributes for one or more VPC endpoints associated with the current account.default BatchGetVpcEndpointResponsebatchGetVpcEndpoint(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 aOpenSearchServerlessClient.static OpenSearchServerlessClientcreate()Create aOpenSearchServerlessClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default CreateAccessPolicyResponsecreateAccessPolicy(Consumer<CreateAccessPolicyRequest.Builder> createAccessPolicyRequest) Creates a data access policy for OpenSearch Serverless.default CreateAccessPolicyResponsecreateAccessPolicy(CreateAccessPolicyRequest createAccessPolicyRequest) Creates a data access policy for OpenSearch Serverless.default CreateCollectionResponsecreateCollection(Consumer<CreateCollectionRequest.Builder> createCollectionRequest) Creates a new OpenSearch Serverless collection.default CreateCollectionResponsecreateCollection(CreateCollectionRequest createCollectionRequest) Creates a new OpenSearch Serverless collection.default CreateLifecyclePolicyResponsecreateLifecyclePolicy(Consumer<CreateLifecyclePolicyRequest.Builder> createLifecyclePolicyRequest) Creates a lifecyle policy to be applied to OpenSearch Serverless indexes.default CreateLifecyclePolicyResponsecreateLifecyclePolicy(CreateLifecyclePolicyRequest createLifecyclePolicyRequest) Creates a lifecyle policy to be applied to OpenSearch Serverless indexes.default CreateSecurityConfigResponsecreateSecurityConfig(Consumer<CreateSecurityConfigRequest.Builder> createSecurityConfigRequest) Specifies a security configuration for OpenSearch Serverless.default CreateSecurityConfigResponsecreateSecurityConfig(CreateSecurityConfigRequest createSecurityConfigRequest) Specifies a security configuration for OpenSearch Serverless.default CreateSecurityPolicyResponsecreateSecurityPolicy(Consumer<CreateSecurityPolicyRequest.Builder> createSecurityPolicyRequest) Creates a security policy to be used by one or more OpenSearch Serverless collections.default CreateSecurityPolicyResponsecreateSecurityPolicy(CreateSecurityPolicyRequest createSecurityPolicyRequest) Creates a security policy to be used by one or more OpenSearch Serverless collections.default CreateVpcEndpointResponsecreateVpcEndpoint(Consumer<CreateVpcEndpointRequest.Builder> createVpcEndpointRequest) Creates an OpenSearch Serverless-managed interface VPC endpoint.default CreateVpcEndpointResponsecreateVpcEndpoint(CreateVpcEndpointRequest createVpcEndpointRequest) Creates an OpenSearch Serverless-managed interface VPC endpoint.default DeleteAccessPolicyResponsedeleteAccessPolicy(Consumer<DeleteAccessPolicyRequest.Builder> deleteAccessPolicyRequest) Deletes an OpenSearch Serverless access policy.default DeleteAccessPolicyResponsedeleteAccessPolicy(DeleteAccessPolicyRequest deleteAccessPolicyRequest) Deletes an OpenSearch Serverless access policy.default DeleteCollectionResponsedeleteCollection(Consumer<DeleteCollectionRequest.Builder> deleteCollectionRequest) Deletes an OpenSearch Serverless collection.default DeleteCollectionResponsedeleteCollection(DeleteCollectionRequest deleteCollectionRequest) Deletes an OpenSearch Serverless collection.default DeleteLifecyclePolicyResponsedeleteLifecyclePolicy(Consumer<DeleteLifecyclePolicyRequest.Builder> deleteLifecyclePolicyRequest) Deletes an OpenSearch Serverless lifecycle policy.default DeleteLifecyclePolicyResponsedeleteLifecyclePolicy(DeleteLifecyclePolicyRequest deleteLifecyclePolicyRequest) Deletes an OpenSearch Serverless lifecycle policy.default DeleteSecurityConfigResponsedeleteSecurityConfig(Consumer<DeleteSecurityConfigRequest.Builder> deleteSecurityConfigRequest) Deletes a security configuration for OpenSearch Serverless.default DeleteSecurityConfigResponsedeleteSecurityConfig(DeleteSecurityConfigRequest deleteSecurityConfigRequest) Deletes a security configuration for OpenSearch Serverless.default DeleteSecurityPolicyResponsedeleteSecurityPolicy(Consumer<DeleteSecurityPolicyRequest.Builder> deleteSecurityPolicyRequest) Deletes an OpenSearch Serverless security policy.default DeleteSecurityPolicyResponsedeleteSecurityPolicy(DeleteSecurityPolicyRequest deleteSecurityPolicyRequest) Deletes an OpenSearch Serverless security policy.default DeleteVpcEndpointResponsedeleteVpcEndpoint(Consumer<DeleteVpcEndpointRequest.Builder> deleteVpcEndpointRequest) Deletes an OpenSearch Serverless-managed interface endpoint.default DeleteVpcEndpointResponsedeleteVpcEndpoint(DeleteVpcEndpointRequest deleteVpcEndpointRequest) Deletes an OpenSearch Serverless-managed interface endpoint.default GetAccessPolicyResponsegetAccessPolicy(Consumer<GetAccessPolicyRequest.Builder> getAccessPolicyRequest) Returns an OpenSearch Serverless access policy.default GetAccessPolicyResponsegetAccessPolicy(GetAccessPolicyRequest getAccessPolicyRequest) Returns an OpenSearch Serverless access policy.default GetAccountSettingsResponsegetAccountSettings(Consumer<GetAccountSettingsRequest.Builder> getAccountSettingsRequest) Returns account-level settings related to OpenSearch Serverless.default GetAccountSettingsResponsegetAccountSettings(GetAccountSettingsRequest getAccountSettingsRequest) Returns account-level settings related to OpenSearch Serverless.default GetPoliciesStatsResponsegetPoliciesStats(Consumer<GetPoliciesStatsRequest.Builder> getPoliciesStatsRequest) Returns statistical information about your OpenSearch Serverless access policies, security configurations, and security policies.default GetPoliciesStatsResponsegetPoliciesStats(GetPoliciesStatsRequest getPoliciesStatsRequest) Returns statistical information about your OpenSearch Serverless access policies, security configurations, and security policies.default GetSecurityConfigResponsegetSecurityConfig(Consumer<GetSecurityConfigRequest.Builder> getSecurityConfigRequest) Returns information about an OpenSearch Serverless security configuration.default GetSecurityConfigResponsegetSecurityConfig(GetSecurityConfigRequest getSecurityConfigRequest) Returns information about an OpenSearch Serverless security configuration.default GetSecurityPolicyResponsegetSecurityPolicy(Consumer<GetSecurityPolicyRequest.Builder> getSecurityPolicyRequest) Returns information about a configured OpenSearch Serverless security policy.default GetSecurityPolicyResponsegetSecurityPolicy(GetSecurityPolicyRequest getSecurityPolicyRequest) Returns information about a configured OpenSearch Serverless security policy.default ListAccessPoliciesResponselistAccessPolicies(Consumer<ListAccessPoliciesRequest.Builder> listAccessPoliciesRequest) Returns information about a list of OpenSearch Serverless access policies.default ListAccessPoliciesResponselistAccessPolicies(ListAccessPoliciesRequest listAccessPoliciesRequest) Returns information about a list of OpenSearch Serverless access policies.default ListAccessPoliciesIterablelistAccessPoliciesPaginator(Consumer<ListAccessPoliciesRequest.Builder> listAccessPoliciesRequest) This is a variant oflistAccessPolicies(software.amazon.awssdk.services.opensearchserverless.model.ListAccessPoliciesRequest)operation.default ListAccessPoliciesIterablelistAccessPoliciesPaginator(ListAccessPoliciesRequest listAccessPoliciesRequest) This is a variant oflistAccessPolicies(software.amazon.awssdk.services.opensearchserverless.model.ListAccessPoliciesRequest)operation.default ListCollectionsResponselistCollections(Consumer<ListCollectionsRequest.Builder> listCollectionsRequest) Lists all OpenSearch Serverless collections.default ListCollectionsResponselistCollections(ListCollectionsRequest listCollectionsRequest) Lists all OpenSearch Serverless collections.default ListCollectionsIterablelistCollectionsPaginator(Consumer<ListCollectionsRequest.Builder> listCollectionsRequest) This is a variant oflistCollections(software.amazon.awssdk.services.opensearchserverless.model.ListCollectionsRequest)operation.default ListCollectionsIterablelistCollectionsPaginator(ListCollectionsRequest listCollectionsRequest) This is a variant oflistCollections(software.amazon.awssdk.services.opensearchserverless.model.ListCollectionsRequest)operation.default ListLifecyclePoliciesResponselistLifecyclePolicies(Consumer<ListLifecyclePoliciesRequest.Builder> listLifecyclePoliciesRequest) Returns a list of OpenSearch Serverless lifecycle policies.default ListLifecyclePoliciesResponselistLifecyclePolicies(ListLifecyclePoliciesRequest listLifecyclePoliciesRequest) Returns a list of OpenSearch Serverless lifecycle policies.default ListLifecyclePoliciesIterablelistLifecyclePoliciesPaginator(Consumer<ListLifecyclePoliciesRequest.Builder> listLifecyclePoliciesRequest) This is a variant oflistLifecyclePolicies(software.amazon.awssdk.services.opensearchserverless.model.ListLifecyclePoliciesRequest)operation.default ListLifecyclePoliciesIterablelistLifecyclePoliciesPaginator(ListLifecyclePoliciesRequest listLifecyclePoliciesRequest) This is a variant oflistLifecyclePolicies(software.amazon.awssdk.services.opensearchserverless.model.ListLifecyclePoliciesRequest)operation.default ListSecurityConfigsResponselistSecurityConfigs(Consumer<ListSecurityConfigsRequest.Builder> listSecurityConfigsRequest) Returns information about configured OpenSearch Serverless security configurations.default ListSecurityConfigsResponselistSecurityConfigs(ListSecurityConfigsRequest listSecurityConfigsRequest) Returns information about configured OpenSearch Serverless security configurations.default ListSecurityConfigsIterablelistSecurityConfigsPaginator(Consumer<ListSecurityConfigsRequest.Builder> listSecurityConfigsRequest) This is a variant oflistSecurityConfigs(software.amazon.awssdk.services.opensearchserverless.model.ListSecurityConfigsRequest)operation.default ListSecurityConfigsIterablelistSecurityConfigsPaginator(ListSecurityConfigsRequest listSecurityConfigsRequest) This is a variant oflistSecurityConfigs(software.amazon.awssdk.services.opensearchserverless.model.ListSecurityConfigsRequest)operation.default ListSecurityPoliciesResponselistSecurityPolicies(Consumer<ListSecurityPoliciesRequest.Builder> listSecurityPoliciesRequest) Returns information about configured OpenSearch Serverless security policies.default ListSecurityPoliciesResponselistSecurityPolicies(ListSecurityPoliciesRequest listSecurityPoliciesRequest) Returns information about configured OpenSearch Serverless security policies.default ListSecurityPoliciesIterablelistSecurityPoliciesPaginator(Consumer<ListSecurityPoliciesRequest.Builder> listSecurityPoliciesRequest) This is a variant oflistSecurityPolicies(software.amazon.awssdk.services.opensearchserverless.model.ListSecurityPoliciesRequest)operation.default ListSecurityPoliciesIterablelistSecurityPoliciesPaginator(ListSecurityPoliciesRequest listSecurityPoliciesRequest) This is a variant oflistSecurityPolicies(software.amazon.awssdk.services.opensearchserverless.model.ListSecurityPoliciesRequest)operation.default ListTagsForResourceResponselistTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Returns the tags for an OpenSearch Serverless resource.default ListTagsForResourceResponselistTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) Returns the tags for an OpenSearch Serverless resource.default ListVpcEndpointsResponselistVpcEndpoints(Consumer<ListVpcEndpointsRequest.Builder> listVpcEndpointsRequest) Returns the OpenSearch Serverless-managed interface VPC endpoints associated with the current account.default ListVpcEndpointsResponselistVpcEndpoints(ListVpcEndpointsRequest listVpcEndpointsRequest) Returns the OpenSearch Serverless-managed interface VPC endpoints associated with the current account.default ListVpcEndpointsIterablelistVpcEndpointsPaginator(Consumer<ListVpcEndpointsRequest.Builder> listVpcEndpointsRequest) This is a variant oflistVpcEndpoints(software.amazon.awssdk.services.opensearchserverless.model.ListVpcEndpointsRequest)operation.default ListVpcEndpointsIterablelistVpcEndpointsPaginator(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., ClientOverrideConfigurationstatic ServiceMetadatadefault TagResourceResponsetagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Associates tags with an OpenSearch Serverless resource.default TagResourceResponsetagResource(TagResourceRequest tagResourceRequest) Associates tags with an OpenSearch Serverless resource.default UntagResourceResponseuntagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes a tag or set of tags from an OpenSearch Serverless resource.default UntagResourceResponseuntagResource(UntagResourceRequest untagResourceRequest) Removes a tag or set of tags from an OpenSearch Serverless resource.default UpdateAccessPolicyResponseupdateAccessPolicy(Consumer<UpdateAccessPolicyRequest.Builder> updateAccessPolicyRequest) Updates an OpenSearch Serverless access policy.default UpdateAccessPolicyResponseupdateAccessPolicy(UpdateAccessPolicyRequest updateAccessPolicyRequest) Updates an OpenSearch Serverless access policy.default UpdateAccountSettingsResponseupdateAccountSettings(Consumer<UpdateAccountSettingsRequest.Builder> updateAccountSettingsRequest) Update the OpenSearch Serverless settings for the current Amazon Web Services account.default UpdateAccountSettingsResponseupdateAccountSettings(UpdateAccountSettingsRequest updateAccountSettingsRequest) Update the OpenSearch Serverless settings for the current Amazon Web Services account.default UpdateCollectionResponseupdateCollection(Consumer<UpdateCollectionRequest.Builder> updateCollectionRequest) Updates an OpenSearch Serverless collection.default UpdateCollectionResponseupdateCollection(UpdateCollectionRequest updateCollectionRequest) Updates an OpenSearch Serverless collection.default UpdateLifecyclePolicyResponseupdateLifecyclePolicy(Consumer<UpdateLifecyclePolicyRequest.Builder> updateLifecyclePolicyRequest) Updates an OpenSearch Serverless access policy.default UpdateLifecyclePolicyResponseupdateLifecyclePolicy(UpdateLifecyclePolicyRequest updateLifecyclePolicyRequest) Updates an OpenSearch Serverless access policy.default UpdateSecurityConfigResponseupdateSecurityConfig(Consumer<UpdateSecurityConfigRequest.Builder> updateSecurityConfigRequest) Updates a security configuration for OpenSearch Serverless.default UpdateSecurityConfigResponseupdateSecurityConfig(UpdateSecurityConfigRequest updateSecurityConfigRequest) Updates a security configuration for OpenSearch Serverless.default UpdateSecurityPolicyResponseupdateSecurityPolicy(Consumer<UpdateSecurityPolicyRequest.Builder> updateSecurityPolicyRequest) Updates an OpenSearch Serverless security policy.default UpdateSecurityPolicyResponseupdateSecurityPolicy(UpdateSecurityPolicyRequest updateSecurityPolicyRequest) Updates an OpenSearch Serverless security policy.default UpdateVpcEndpointResponseupdateVpcEndpoint(Consumer<UpdateVpcEndpointRequest.Builder> updateVpcEndpointRequest) Updates an OpenSearch Serverless-managed interface endpoint.default UpdateVpcEndpointResponseupdateVpcEndpoint(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 BatchGetCollectionResponse batchGetCollection(BatchGetCollectionRequest batchGetCollectionRequest) throws InternalServerException, ValidationException, AwsServiceException, SdkClientException, OpenSearchServerlessException 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:
- Result of the BatchGetCollection operation returned by the service.
- See Also:
-
batchGetCollection
default BatchGetCollectionResponse batchGetCollection(Consumer<BatchGetCollectionRequest.Builder> batchGetCollectionRequest) throws InternalServerException, ValidationException, AwsServiceException, SdkClientException, OpenSearchServerlessException 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:
- Result of the BatchGetCollection operation returned by the service.
- See Also:
-
batchGetEffectiveLifecyclePolicy
default BatchGetEffectiveLifecyclePolicyResponse batchGetEffectiveLifecyclePolicy(BatchGetEffectiveLifecyclePolicyRequest batchGetEffectiveLifecyclePolicyRequest) throws InternalServerException, ValidationException, AwsServiceException, SdkClientException, OpenSearchServerlessException Returns a list of successful and failed retrievals for the OpenSearch Serverless indexes. For more information, see Viewing data lifecycle policies.
- Parameters:
batchGetEffectiveLifecyclePolicyRequest-- Returns:
- Result of the BatchGetEffectiveLifecyclePolicy operation returned by the service.
- See Also:
-
batchGetEffectiveLifecyclePolicy
default BatchGetEffectiveLifecyclePolicyResponse batchGetEffectiveLifecyclePolicy(Consumer<BatchGetEffectiveLifecyclePolicyRequest.Builder> batchGetEffectiveLifecyclePolicyRequest) throws InternalServerException, ValidationException, AwsServiceException, SdkClientException, OpenSearchServerlessException 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:
- Result of the BatchGetEffectiveLifecyclePolicy operation returned by the service.
- See Also:
-
batchGetLifecyclePolicy
default BatchGetLifecyclePolicyResponse batchGetLifecyclePolicy(BatchGetLifecyclePolicyRequest batchGetLifecyclePolicyRequest) throws InternalServerException, ValidationException, AwsServiceException, SdkClientException, OpenSearchServerlessException Returns one or more configured OpenSearch Serverless lifecycle policies. For more information, see Viewing data lifecycle policies.
- Parameters:
batchGetLifecyclePolicyRequest-- Returns:
- Result of the BatchGetLifecyclePolicy operation returned by the service.
- See Also:
-
batchGetLifecyclePolicy
default BatchGetLifecyclePolicyResponse batchGetLifecyclePolicy(Consumer<BatchGetLifecyclePolicyRequest.Builder> batchGetLifecyclePolicyRequest) throws InternalServerException, ValidationException, AwsServiceException, SdkClientException, OpenSearchServerlessException 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:
- Result of the BatchGetLifecyclePolicy operation returned by the service.
- See Also:
-
batchGetVpcEndpoint
default BatchGetVpcEndpointResponse batchGetVpcEndpoint(BatchGetVpcEndpointRequest batchGetVpcEndpointRequest) throws InternalServerException, ValidationException, AwsServiceException, SdkClientException, OpenSearchServerlessException 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:
- Result of the BatchGetVpcEndpoint operation returned by the service.
- See Also:
-
batchGetVpcEndpoint
default BatchGetVpcEndpointResponse batchGetVpcEndpoint(Consumer<BatchGetVpcEndpointRequest.Builder> batchGetVpcEndpointRequest) throws InternalServerException, ValidationException, AwsServiceException, SdkClientException, OpenSearchServerlessException 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:
- Result of the BatchGetVpcEndpoint operation returned by the service.
- See Also:
-
createAccessPolicy
default CreateAccessPolicyResponse createAccessPolicy(CreateAccessPolicyRequest createAccessPolicyRequest) throws InternalServerException, ConflictException, ValidationException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, OpenSearchServerlessException 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:
- Result of the CreateAccessPolicy operation returned by the service.
- See Also:
-
createAccessPolicy
default CreateAccessPolicyResponse createAccessPolicy(Consumer<CreateAccessPolicyRequest.Builder> createAccessPolicyRequest) throws InternalServerException, ConflictException, ValidationException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, OpenSearchServerlessException 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:
- Result of the CreateAccessPolicy operation returned by the service.
- See Also:
-
createCollection
default CreateCollectionResponse createCollection(CreateCollectionRequest createCollectionRequest) throws OcuLimitExceededException, InternalServerException, ConflictException, ValidationException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, OpenSearchServerlessException Creates a new OpenSearch Serverless collection. For more information, see Creating and managing Amazon OpenSearch Serverless collections.
- Parameters:
createCollectionRequest-- Returns:
- Result of the CreateCollection operation returned by the service.
- See Also:
-
createCollection
default CreateCollectionResponse createCollection(Consumer<CreateCollectionRequest.Builder> createCollectionRequest) throws OcuLimitExceededException, InternalServerException, ConflictException, ValidationException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, OpenSearchServerlessException 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:
- Result of the CreateCollection operation returned by the service.
- See Also:
-
createLifecyclePolicy
default CreateLifecyclePolicyResponse createLifecyclePolicy(CreateLifecyclePolicyRequest createLifecyclePolicyRequest) throws InternalServerException, ConflictException, ValidationException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, OpenSearchServerlessException 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:
- Result of the CreateLifecyclePolicy operation returned by the service.
- See Also:
-
createLifecyclePolicy
default CreateLifecyclePolicyResponse createLifecyclePolicy(Consumer<CreateLifecyclePolicyRequest.Builder> createLifecyclePolicyRequest) throws InternalServerException, ConflictException, ValidationException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, OpenSearchServerlessException 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:
- Result of the CreateLifecyclePolicy operation returned by the service.
- See Also:
-
createSecurityConfig
default CreateSecurityConfigResponse createSecurityConfig(CreateSecurityConfigRequest createSecurityConfigRequest) throws InternalServerException, ConflictException, ValidationException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, OpenSearchServerlessException Specifies a security configuration for OpenSearch Serverless. For more information, see SAML authentication for Amazon OpenSearch Serverless.
- Parameters:
createSecurityConfigRequest-- Returns:
- Result of the CreateSecurityConfig operation returned by the service.
- See Also:
-
createSecurityConfig
default CreateSecurityConfigResponse createSecurityConfig(Consumer<CreateSecurityConfigRequest.Builder> createSecurityConfigRequest) throws InternalServerException, ConflictException, ValidationException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, OpenSearchServerlessException 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:
- Result of the CreateSecurityConfig operation returned by the service.
- See Also:
-
createSecurityPolicy
default CreateSecurityPolicyResponse createSecurityPolicy(CreateSecurityPolicyRequest createSecurityPolicyRequest) throws InternalServerException, ConflictException, ValidationException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, OpenSearchServerlessException 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:
- Result of the CreateSecurityPolicy operation returned by the service.
- See Also:
-
createSecurityPolicy
default CreateSecurityPolicyResponse createSecurityPolicy(Consumer<CreateSecurityPolicyRequest.Builder> createSecurityPolicyRequest) throws InternalServerException, ConflictException, ValidationException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, OpenSearchServerlessException 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:
- Result of the CreateSecurityPolicy operation returned by the service.
- See Also:
-
createVpcEndpoint
default CreateVpcEndpointResponse createVpcEndpoint(CreateVpcEndpointRequest createVpcEndpointRequest) throws InternalServerException, ConflictException, ValidationException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, OpenSearchServerlessException Creates an OpenSearch Serverless-managed interface VPC endpoint. For more information, see Access Amazon OpenSearch Serverless using an interface endpoint.
- Parameters:
createVpcEndpointRequest-- Returns:
- Result of the CreateVpcEndpoint operation returned by the service.
- See Also:
-
createVpcEndpoint
default CreateVpcEndpointResponse createVpcEndpoint(Consumer<CreateVpcEndpointRequest.Builder> createVpcEndpointRequest) throws InternalServerException, ConflictException, ValidationException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, OpenSearchServerlessException 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:
- Result of the CreateVpcEndpoint operation returned by the service.
- See Also:
-
deleteAccessPolicy
default DeleteAccessPolicyResponse deleteAccessPolicy(DeleteAccessPolicyRequest deleteAccessPolicyRequest) throws InternalServerException, ResourceNotFoundException, ConflictException, ValidationException, AwsServiceException, SdkClientException, OpenSearchServerlessException Deletes an OpenSearch Serverless access policy. For more information, see Data access control for Amazon OpenSearch Serverless.
- Parameters:
deleteAccessPolicyRequest-- Returns:
- Result of the DeleteAccessPolicy operation returned by the service.
- See Also:
-
deleteAccessPolicy
default DeleteAccessPolicyResponse deleteAccessPolicy(Consumer<DeleteAccessPolicyRequest.Builder> deleteAccessPolicyRequest) throws InternalServerException, ResourceNotFoundException, ConflictException, ValidationException, AwsServiceException, SdkClientException, OpenSearchServerlessException 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:
- Result of the DeleteAccessPolicy operation returned by the service.
- See Also:
-
deleteCollection
default DeleteCollectionResponse deleteCollection(DeleteCollectionRequest deleteCollectionRequest) throws InternalServerException, ResourceNotFoundException, ConflictException, ValidationException, AwsServiceException, SdkClientException, OpenSearchServerlessException Deletes an OpenSearch Serverless collection. For more information, see Creating and managing Amazon OpenSearch Serverless collections.
- Parameters:
deleteCollectionRequest-- Returns:
- Result of the DeleteCollection operation returned by the service.
- See Also:
-
deleteCollection
default DeleteCollectionResponse deleteCollection(Consumer<DeleteCollectionRequest.Builder> deleteCollectionRequest) throws InternalServerException, ResourceNotFoundException, ConflictException, ValidationException, AwsServiceException, SdkClientException, OpenSearchServerlessException 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:
- Result of the DeleteCollection operation returned by the service.
- See Also:
-
deleteLifecyclePolicy
default DeleteLifecyclePolicyResponse deleteLifecyclePolicy(DeleteLifecyclePolicyRequest deleteLifecyclePolicyRequest) throws InternalServerException, ResourceNotFoundException, ConflictException, ValidationException, AwsServiceException, SdkClientException, OpenSearchServerlessException Deletes an OpenSearch Serverless lifecycle policy. For more information, see Deleting data lifecycle policies.
- Parameters:
deleteLifecyclePolicyRequest-- Returns:
- Result of the DeleteLifecyclePolicy operation returned by the service.
- See Also:
-
deleteLifecyclePolicy
default DeleteLifecyclePolicyResponse deleteLifecyclePolicy(Consumer<DeleteLifecyclePolicyRequest.Builder> deleteLifecyclePolicyRequest) throws InternalServerException, ResourceNotFoundException, ConflictException, ValidationException, AwsServiceException, SdkClientException, OpenSearchServerlessException 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:
- Result of the DeleteLifecyclePolicy operation returned by the service.
- See Also:
-
deleteSecurityConfig
default DeleteSecurityConfigResponse deleteSecurityConfig(DeleteSecurityConfigRequest deleteSecurityConfigRequest) throws InternalServerException, ResourceNotFoundException, ConflictException, ValidationException, AwsServiceException, SdkClientException, OpenSearchServerlessException Deletes a security configuration for OpenSearch Serverless. For more information, see SAML authentication for Amazon OpenSearch Serverless.
- Parameters:
deleteSecurityConfigRequest-- Returns:
- Result of the DeleteSecurityConfig operation returned by the service.
- See Also:
-
deleteSecurityConfig
default DeleteSecurityConfigResponse deleteSecurityConfig(Consumer<DeleteSecurityConfigRequest.Builder> deleteSecurityConfigRequest) throws InternalServerException, ResourceNotFoundException, ConflictException, ValidationException, AwsServiceException, SdkClientException, OpenSearchServerlessException 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:
- Result of the DeleteSecurityConfig operation returned by the service.
- See Also:
-
deleteSecurityPolicy
default DeleteSecurityPolicyResponse deleteSecurityPolicy(DeleteSecurityPolicyRequest deleteSecurityPolicyRequest) throws InternalServerException, ResourceNotFoundException, ConflictException, ValidationException, AwsServiceException, SdkClientException, OpenSearchServerlessException Deletes an OpenSearch Serverless security policy.
- Parameters:
deleteSecurityPolicyRequest-- Returns:
- Result of the DeleteSecurityPolicy operation returned by the service.
- See Also:
-
deleteSecurityPolicy
default DeleteSecurityPolicyResponse deleteSecurityPolicy(Consumer<DeleteSecurityPolicyRequest.Builder> deleteSecurityPolicyRequest) throws InternalServerException, ResourceNotFoundException, ConflictException, ValidationException, AwsServiceException, SdkClientException, OpenSearchServerlessException 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:
- Result of the DeleteSecurityPolicy operation returned by the service.
- See Also:
-
deleteVpcEndpoint
default DeleteVpcEndpointResponse deleteVpcEndpoint(DeleteVpcEndpointRequest deleteVpcEndpointRequest) throws InternalServerException, ResourceNotFoundException, ConflictException, ValidationException, AwsServiceException, SdkClientException, OpenSearchServerlessException Deletes an OpenSearch Serverless-managed interface endpoint. For more information, see Access Amazon OpenSearch Serverless using an interface endpoint.
- Parameters:
deleteVpcEndpointRequest-- Returns:
- Result of the DeleteVpcEndpoint operation returned by the service.
- See Also:
-
deleteVpcEndpoint
default DeleteVpcEndpointResponse deleteVpcEndpoint(Consumer<DeleteVpcEndpointRequest.Builder> deleteVpcEndpointRequest) throws InternalServerException, ResourceNotFoundException, ConflictException, ValidationException, AwsServiceException, SdkClientException, OpenSearchServerlessException 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:
- Result of the DeleteVpcEndpoint operation returned by the service.
- See Also:
-
getAccessPolicy
default GetAccessPolicyResponse getAccessPolicy(GetAccessPolicyRequest getAccessPolicyRequest) throws InternalServerException, ResourceNotFoundException, ValidationException, AwsServiceException, SdkClientException, OpenSearchServerlessException Returns an OpenSearch Serverless access policy. For more information, see Data access control for Amazon OpenSearch Serverless.
- Parameters:
getAccessPolicyRequest-- Returns:
- Result of the GetAccessPolicy operation returned by the service.
- See Also:
-
getAccessPolicy
default GetAccessPolicyResponse getAccessPolicy(Consumer<GetAccessPolicyRequest.Builder> getAccessPolicyRequest) throws InternalServerException, ResourceNotFoundException, ValidationException, AwsServiceException, SdkClientException, OpenSearchServerlessException 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:
- Result of the GetAccessPolicy operation returned by the service.
- See Also:
-
getAccountSettings
default GetAccountSettingsResponse getAccountSettings(GetAccountSettingsRequest getAccountSettingsRequest) throws InternalServerException, ValidationException, AwsServiceException, SdkClientException, OpenSearchServerlessException Returns account-level settings related to OpenSearch Serverless.
- Parameters:
getAccountSettingsRequest-- Returns:
- Result of the GetAccountSettings operation returned by the service.
- See Also:
-
getAccountSettings
default GetAccountSettingsResponse getAccountSettings(Consumer<GetAccountSettingsRequest.Builder> getAccountSettingsRequest) throws InternalServerException, ValidationException, AwsServiceException, SdkClientException, OpenSearchServerlessException 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:
- Result of the GetAccountSettings operation returned by the service.
- See Also:
-
getPoliciesStats
default GetPoliciesStatsResponse getPoliciesStats(GetPoliciesStatsRequest getPoliciesStatsRequest) throws InternalServerException, AwsServiceException, SdkClientException, OpenSearchServerlessException Returns statistical information about your OpenSearch Serverless access policies, security configurations, and security policies.
- Parameters:
getPoliciesStatsRequest-- Returns:
- Result of the GetPoliciesStats operation returned by the service.
- See Also:
-
getPoliciesStats
default GetPoliciesStatsResponse getPoliciesStats(Consumer<GetPoliciesStatsRequest.Builder> getPoliciesStatsRequest) throws InternalServerException, AwsServiceException, SdkClientException, OpenSearchServerlessException 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:
- Result of the GetPoliciesStats operation returned by the service.
- See Also:
-
getSecurityConfig
default GetSecurityConfigResponse getSecurityConfig(GetSecurityConfigRequest getSecurityConfigRequest) throws InternalServerException, ResourceNotFoundException, ValidationException, AwsServiceException, SdkClientException, OpenSearchServerlessException Returns information about an OpenSearch Serverless security configuration. For more information, see SAML authentication for Amazon OpenSearch Serverless.
- Parameters:
getSecurityConfigRequest-- Returns:
- Result of the GetSecurityConfig operation returned by the service.
- See Also:
-
getSecurityConfig
default GetSecurityConfigResponse getSecurityConfig(Consumer<GetSecurityConfigRequest.Builder> getSecurityConfigRequest) throws InternalServerException, ResourceNotFoundException, ValidationException, AwsServiceException, SdkClientException, OpenSearchServerlessException 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:
- Result of the GetSecurityConfig operation returned by the service.
- See Also:
-
getSecurityPolicy
default GetSecurityPolicyResponse getSecurityPolicy(GetSecurityPolicyRequest getSecurityPolicyRequest) throws InternalServerException, ResourceNotFoundException, ValidationException, AwsServiceException, SdkClientException, OpenSearchServerlessException 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:
- Result of the GetSecurityPolicy operation returned by the service.
- See Also:
-
getSecurityPolicy
default GetSecurityPolicyResponse getSecurityPolicy(Consumer<GetSecurityPolicyRequest.Builder> getSecurityPolicyRequest) throws InternalServerException, ResourceNotFoundException, ValidationException, AwsServiceException, SdkClientException, OpenSearchServerlessException 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:
- Result of the GetSecurityPolicy operation returned by the service.
- See Also:
-
listAccessPolicies
default ListAccessPoliciesResponse listAccessPolicies(ListAccessPoliciesRequest listAccessPoliciesRequest) throws InternalServerException, ValidationException, AwsServiceException, SdkClientException, OpenSearchServerlessException Returns information about a list of OpenSearch Serverless access policies.
- Parameters:
listAccessPoliciesRequest-- Returns:
- Result of the ListAccessPolicies operation returned by the service.
- See Also:
-
listAccessPolicies
default ListAccessPoliciesResponse listAccessPolicies(Consumer<ListAccessPoliciesRequest.Builder> listAccessPoliciesRequest) throws InternalServerException, ValidationException, AwsServiceException, SdkClientException, OpenSearchServerlessException 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:
- Result of the ListAccessPolicies operation returned by the service.
- See Also:
-
listAccessPoliciesPaginator
default ListAccessPoliciesIterable listAccessPoliciesPaginator(ListAccessPoliciesRequest listAccessPoliciesRequest) throws InternalServerException, ValidationException, AwsServiceException, SdkClientException, OpenSearchServerlessException This is a variant of
listAccessPolicies(software.amazon.awssdk.services.opensearchserverless.model.ListAccessPoliciesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.opensearchserverless.paginators.ListAccessPoliciesIterable responses = client.listAccessPoliciesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.opensearchserverless.paginators.ListAccessPoliciesIterable responses = client .listAccessPoliciesPaginator(request); for (software.amazon.awssdk.services.opensearchserverless.model.ListAccessPoliciesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.opensearchserverless.paginators.ListAccessPoliciesIterable responses = client.listAccessPoliciesPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listAccessPoliciesPaginator
default ListAccessPoliciesIterable listAccessPoliciesPaginator(Consumer<ListAccessPoliciesRequest.Builder> listAccessPoliciesRequest) throws InternalServerException, ValidationException, AwsServiceException, SdkClientException, OpenSearchServerlessException This is a variant of
listAccessPolicies(software.amazon.awssdk.services.opensearchserverless.model.ListAccessPoliciesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.opensearchserverless.paginators.ListAccessPoliciesIterable responses = client.listAccessPoliciesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.opensearchserverless.paginators.ListAccessPoliciesIterable responses = client .listAccessPoliciesPaginator(request); for (software.amazon.awssdk.services.opensearchserverless.model.ListAccessPoliciesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.opensearchserverless.paginators.ListAccessPoliciesIterable responses = client.listAccessPoliciesPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listCollections
default ListCollectionsResponse listCollections(ListCollectionsRequest listCollectionsRequest) throws InternalServerException, ValidationException, AwsServiceException, SdkClientException, OpenSearchServerlessException 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:
- Result of the ListCollections operation returned by the service.
- See Also:
-
listCollections
default ListCollectionsResponse listCollections(Consumer<ListCollectionsRequest.Builder> listCollectionsRequest) throws InternalServerException, ValidationException, AwsServiceException, SdkClientException, OpenSearchServerlessException 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:
- Result of the ListCollections operation returned by the service.
- See Also:
-
listCollectionsPaginator
default ListCollectionsIterable listCollectionsPaginator(ListCollectionsRequest listCollectionsRequest) throws InternalServerException, ValidationException, AwsServiceException, SdkClientException, OpenSearchServerlessException This is a variant of
listCollections(software.amazon.awssdk.services.opensearchserverless.model.ListCollectionsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.opensearchserverless.paginators.ListCollectionsIterable responses = client.listCollectionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.opensearchserverless.paginators.ListCollectionsIterable responses = client .listCollectionsPaginator(request); for (software.amazon.awssdk.services.opensearchserverless.model.ListCollectionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.opensearchserverless.paginators.ListCollectionsIterable responses = client.listCollectionsPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listCollectionsPaginator
default ListCollectionsIterable listCollectionsPaginator(Consumer<ListCollectionsRequest.Builder> listCollectionsRequest) throws InternalServerException, ValidationException, AwsServiceException, SdkClientException, OpenSearchServerlessException This is a variant of
listCollections(software.amazon.awssdk.services.opensearchserverless.model.ListCollectionsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.opensearchserverless.paginators.ListCollectionsIterable responses = client.listCollectionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.opensearchserverless.paginators.ListCollectionsIterable responses = client .listCollectionsPaginator(request); for (software.amazon.awssdk.services.opensearchserverless.model.ListCollectionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.opensearchserverless.paginators.ListCollectionsIterable responses = client.listCollectionsPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listLifecyclePolicies
default ListLifecyclePoliciesResponse listLifecyclePolicies(ListLifecyclePoliciesRequest listLifecyclePoliciesRequest) throws InternalServerException, ValidationException, AwsServiceException, SdkClientException, OpenSearchServerlessException Returns a list of OpenSearch Serverless lifecycle policies. For more information, see Viewing data lifecycle policies.
- Parameters:
listLifecyclePoliciesRequest-- Returns:
- Result of the ListLifecyclePolicies operation returned by the service.
- See Also:
-
listLifecyclePolicies
default ListLifecyclePoliciesResponse listLifecyclePolicies(Consumer<ListLifecyclePoliciesRequest.Builder> listLifecyclePoliciesRequest) throws InternalServerException, ValidationException, AwsServiceException, SdkClientException, OpenSearchServerlessException 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:
- Result of the ListLifecyclePolicies operation returned by the service.
- See Also:
-
listLifecyclePoliciesPaginator
default ListLifecyclePoliciesIterable listLifecyclePoliciesPaginator(ListLifecyclePoliciesRequest listLifecyclePoliciesRequest) throws InternalServerException, ValidationException, AwsServiceException, SdkClientException, OpenSearchServerlessException This is a variant of
listLifecyclePolicies(software.amazon.awssdk.services.opensearchserverless.model.ListLifecyclePoliciesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.opensearchserverless.paginators.ListLifecyclePoliciesIterable responses = client.listLifecyclePoliciesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.opensearchserverless.paginators.ListLifecyclePoliciesIterable responses = client .listLifecyclePoliciesPaginator(request); for (software.amazon.awssdk.services.opensearchserverless.model.ListLifecyclePoliciesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.opensearchserverless.paginators.ListLifecyclePoliciesIterable responses = client.listLifecyclePoliciesPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listLifecyclePoliciesPaginator
default ListLifecyclePoliciesIterable listLifecyclePoliciesPaginator(Consumer<ListLifecyclePoliciesRequest.Builder> listLifecyclePoliciesRequest) throws InternalServerException, ValidationException, AwsServiceException, SdkClientException, OpenSearchServerlessException This is a variant of
listLifecyclePolicies(software.amazon.awssdk.services.opensearchserverless.model.ListLifecyclePoliciesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.opensearchserverless.paginators.ListLifecyclePoliciesIterable responses = client.listLifecyclePoliciesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.opensearchserverless.paginators.ListLifecyclePoliciesIterable responses = client .listLifecyclePoliciesPaginator(request); for (software.amazon.awssdk.services.opensearchserverless.model.ListLifecyclePoliciesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.opensearchserverless.paginators.ListLifecyclePoliciesIterable responses = client.listLifecyclePoliciesPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listSecurityConfigs
default ListSecurityConfigsResponse listSecurityConfigs(ListSecurityConfigsRequest listSecurityConfigsRequest) throws InternalServerException, ValidationException, AwsServiceException, SdkClientException, OpenSearchServerlessException Returns information about configured OpenSearch Serverless security configurations. For more information, see SAML authentication for Amazon OpenSearch Serverless.
- Parameters:
listSecurityConfigsRequest-- Returns:
- Result of the ListSecurityConfigs operation returned by the service.
- See Also:
-
listSecurityConfigs
default ListSecurityConfigsResponse listSecurityConfigs(Consumer<ListSecurityConfigsRequest.Builder> listSecurityConfigsRequest) throws InternalServerException, ValidationException, AwsServiceException, SdkClientException, OpenSearchServerlessException 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:
- Result of the ListSecurityConfigs operation returned by the service.
- See Also:
-
listSecurityConfigsPaginator
default ListSecurityConfigsIterable listSecurityConfigsPaginator(ListSecurityConfigsRequest listSecurityConfigsRequest) throws InternalServerException, ValidationException, AwsServiceException, SdkClientException, OpenSearchServerlessException This is a variant of
listSecurityConfigs(software.amazon.awssdk.services.opensearchserverless.model.ListSecurityConfigsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.opensearchserverless.paginators.ListSecurityConfigsIterable responses = client.listSecurityConfigsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.opensearchserverless.paginators.ListSecurityConfigsIterable responses = client .listSecurityConfigsPaginator(request); for (software.amazon.awssdk.services.opensearchserverless.model.ListSecurityConfigsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.opensearchserverless.paginators.ListSecurityConfigsIterable responses = client.listSecurityConfigsPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listSecurityConfigsPaginator
default ListSecurityConfigsIterable listSecurityConfigsPaginator(Consumer<ListSecurityConfigsRequest.Builder> listSecurityConfigsRequest) throws InternalServerException, ValidationException, AwsServiceException, SdkClientException, OpenSearchServerlessException This is a variant of
listSecurityConfigs(software.amazon.awssdk.services.opensearchserverless.model.ListSecurityConfigsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.opensearchserverless.paginators.ListSecurityConfigsIterable responses = client.listSecurityConfigsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.opensearchserverless.paginators.ListSecurityConfigsIterable responses = client .listSecurityConfigsPaginator(request); for (software.amazon.awssdk.services.opensearchserverless.model.ListSecurityConfigsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.opensearchserverless.paginators.ListSecurityConfigsIterable responses = client.listSecurityConfigsPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listSecurityPolicies
default ListSecurityPoliciesResponse listSecurityPolicies(ListSecurityPoliciesRequest listSecurityPoliciesRequest) throws InternalServerException, ValidationException, AwsServiceException, SdkClientException, OpenSearchServerlessException Returns information about configured OpenSearch Serverless security policies.
- Parameters:
listSecurityPoliciesRequest-- Returns:
- Result of the ListSecurityPolicies operation returned by the service.
- See Also:
-
listSecurityPolicies
default ListSecurityPoliciesResponse listSecurityPolicies(Consumer<ListSecurityPoliciesRequest.Builder> listSecurityPoliciesRequest) throws InternalServerException, ValidationException, AwsServiceException, SdkClientException, OpenSearchServerlessException 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:
- Result of the ListSecurityPolicies operation returned by the service.
- See Also:
-
listSecurityPoliciesPaginator
default ListSecurityPoliciesIterable listSecurityPoliciesPaginator(ListSecurityPoliciesRequest listSecurityPoliciesRequest) throws InternalServerException, ValidationException, AwsServiceException, SdkClientException, OpenSearchServerlessException This is a variant of
listSecurityPolicies(software.amazon.awssdk.services.opensearchserverless.model.ListSecurityPoliciesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.opensearchserverless.paginators.ListSecurityPoliciesIterable responses = client.listSecurityPoliciesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.opensearchserverless.paginators.ListSecurityPoliciesIterable responses = client .listSecurityPoliciesPaginator(request); for (software.amazon.awssdk.services.opensearchserverless.model.ListSecurityPoliciesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.opensearchserverless.paginators.ListSecurityPoliciesIterable responses = client.listSecurityPoliciesPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listSecurityPoliciesPaginator
default ListSecurityPoliciesIterable listSecurityPoliciesPaginator(Consumer<ListSecurityPoliciesRequest.Builder> listSecurityPoliciesRequest) throws InternalServerException, ValidationException, AwsServiceException, SdkClientException, OpenSearchServerlessException This is a variant of
listSecurityPolicies(software.amazon.awssdk.services.opensearchserverless.model.ListSecurityPoliciesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.opensearchserverless.paginators.ListSecurityPoliciesIterable responses = client.listSecurityPoliciesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.opensearchserverless.paginators.ListSecurityPoliciesIterable responses = client .listSecurityPoliciesPaginator(request); for (software.amazon.awssdk.services.opensearchserverless.model.ListSecurityPoliciesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.opensearchserverless.paginators.ListSecurityPoliciesIterable responses = client.listSecurityPoliciesPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws InternalServerException, ResourceNotFoundException, ValidationException, AwsServiceException, SdkClientException, OpenSearchServerlessException Returns the tags for an OpenSearch Serverless resource. For more information, see Tagging Amazon OpenSearch Serverless collections.
- Parameters:
listTagsForResourceRequest-- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws InternalServerException, ResourceNotFoundException, ValidationException, AwsServiceException, SdkClientException, OpenSearchServerlessException 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:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
listVpcEndpoints
default ListVpcEndpointsResponse listVpcEndpoints(ListVpcEndpointsRequest listVpcEndpointsRequest) throws InternalServerException, ValidationException, AwsServiceException, SdkClientException, OpenSearchServerlessException 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:
- Result of the ListVpcEndpoints operation returned by the service.
- See Also:
-
listVpcEndpoints
default ListVpcEndpointsResponse listVpcEndpoints(Consumer<ListVpcEndpointsRequest.Builder> listVpcEndpointsRequest) throws InternalServerException, ValidationException, AwsServiceException, SdkClientException, OpenSearchServerlessException 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:
- Result of the ListVpcEndpoints operation returned by the service.
- See Also:
-
listVpcEndpointsPaginator
default ListVpcEndpointsIterable listVpcEndpointsPaginator(ListVpcEndpointsRequest listVpcEndpointsRequest) throws InternalServerException, ValidationException, AwsServiceException, SdkClientException, OpenSearchServerlessException This is a variant of
listVpcEndpoints(software.amazon.awssdk.services.opensearchserverless.model.ListVpcEndpointsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.opensearchserverless.paginators.ListVpcEndpointsIterable responses = client.listVpcEndpointsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.opensearchserverless.paginators.ListVpcEndpointsIterable responses = client .listVpcEndpointsPaginator(request); for (software.amazon.awssdk.services.opensearchserverless.model.ListVpcEndpointsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.opensearchserverless.paginators.ListVpcEndpointsIterable responses = client.listVpcEndpointsPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listVpcEndpointsPaginator
default ListVpcEndpointsIterable listVpcEndpointsPaginator(Consumer<ListVpcEndpointsRequest.Builder> listVpcEndpointsRequest) throws InternalServerException, ValidationException, AwsServiceException, SdkClientException, OpenSearchServerlessException This is a variant of
listVpcEndpoints(software.amazon.awssdk.services.opensearchserverless.model.ListVpcEndpointsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.opensearchserverless.paginators.ListVpcEndpointsIterable responses = client.listVpcEndpointsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.opensearchserverless.paginators.ListVpcEndpointsIterable responses = client .listVpcEndpointsPaginator(request); for (software.amazon.awssdk.services.opensearchserverless.model.ListVpcEndpointsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.opensearchserverless.paginators.ListVpcEndpointsIterable responses = client.listVpcEndpointsPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
tagResource
default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws InternalServerException, ResourceNotFoundException, ConflictException, ValidationException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, OpenSearchServerlessException Associates tags with an OpenSearch Serverless resource. For more information, see Tagging Amazon OpenSearch Serverless collections.
- Parameters:
tagResourceRequest-- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws InternalServerException, ResourceNotFoundException, ConflictException, ValidationException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, OpenSearchServerlessException 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:
- Result of the TagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws InternalServerException, ResourceNotFoundException, ConflictException, ValidationException, AwsServiceException, SdkClientException, OpenSearchServerlessException Removes a tag or set of tags from an OpenSearch Serverless resource. For more information, see Tagging Amazon OpenSearch Serverless collections.
- Parameters:
untagResourceRequest-- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws InternalServerException, ResourceNotFoundException, ConflictException, ValidationException, AwsServiceException, SdkClientException, OpenSearchServerlessException 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:
- Result of the UntagResource operation returned by the service.
- See Also:
-
updateAccessPolicy
default UpdateAccessPolicyResponse updateAccessPolicy(UpdateAccessPolicyRequest updateAccessPolicyRequest) throws InternalServerException, ResourceNotFoundException, ConflictException, ValidationException, AwsServiceException, SdkClientException, OpenSearchServerlessException Updates an OpenSearch Serverless access policy. For more information, see Data access control for Amazon OpenSearch Serverless.
- Parameters:
updateAccessPolicyRequest-- Returns:
- Result of the UpdateAccessPolicy operation returned by the service.
- See Also:
-
updateAccessPolicy
default UpdateAccessPolicyResponse updateAccessPolicy(Consumer<UpdateAccessPolicyRequest.Builder> updateAccessPolicyRequest) throws InternalServerException, ResourceNotFoundException, ConflictException, ValidationException, AwsServiceException, SdkClientException, OpenSearchServerlessException 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:
- Result of the UpdateAccessPolicy operation returned by the service.
- See Also:
-
updateAccountSettings
default UpdateAccountSettingsResponse updateAccountSettings(UpdateAccountSettingsRequest updateAccountSettingsRequest) throws InternalServerException, ValidationException, AwsServiceException, SdkClientException, OpenSearchServerlessException 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:
- Result of the UpdateAccountSettings operation returned by the service.
- See Also:
-
updateAccountSettings
default UpdateAccountSettingsResponse updateAccountSettings(Consumer<UpdateAccountSettingsRequest.Builder> updateAccountSettingsRequest) throws InternalServerException, ValidationException, AwsServiceException, SdkClientException, OpenSearchServerlessException 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:
- Result of the UpdateAccountSettings operation returned by the service.
- See Also:
-
updateCollection
default UpdateCollectionResponse updateCollection(UpdateCollectionRequest updateCollectionRequest) throws InternalServerException, ConflictException, ValidationException, AwsServiceException, SdkClientException, OpenSearchServerlessException Updates an OpenSearch Serverless collection.
- Parameters:
updateCollectionRequest-- Returns:
- Result of the UpdateCollection operation returned by the service.
- See Also:
-
updateCollection
default UpdateCollectionResponse updateCollection(Consumer<UpdateCollectionRequest.Builder> updateCollectionRequest) throws InternalServerException, ConflictException, ValidationException, AwsServiceException, SdkClientException, OpenSearchServerlessException 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:
- Result of the UpdateCollection operation returned by the service.
- See Also:
-
updateLifecyclePolicy
default UpdateLifecyclePolicyResponse updateLifecyclePolicy(UpdateLifecyclePolicyRequest updateLifecyclePolicyRequest) throws InternalServerException, ResourceNotFoundException, ConflictException, ValidationException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, OpenSearchServerlessException Updates an OpenSearch Serverless access policy. For more information, see Updating data lifecycle policies.
- Parameters:
updateLifecyclePolicyRequest-- Returns:
- Result of the UpdateLifecyclePolicy operation returned by the service.
- See Also:
-
updateLifecyclePolicy
default UpdateLifecyclePolicyResponse updateLifecyclePolicy(Consumer<UpdateLifecyclePolicyRequest.Builder> updateLifecyclePolicyRequest) throws InternalServerException, ResourceNotFoundException, ConflictException, ValidationException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, OpenSearchServerlessException 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:
- Result of the UpdateLifecyclePolicy operation returned by the service.
- See Also:
-
updateSecurityConfig
default UpdateSecurityConfigResponse updateSecurityConfig(UpdateSecurityConfigRequest updateSecurityConfigRequest) throws InternalServerException, ResourceNotFoundException, ConflictException, ValidationException, AwsServiceException, SdkClientException, OpenSearchServerlessException Updates a security configuration for OpenSearch Serverless. For more information, see SAML authentication for Amazon OpenSearch Serverless.
- Parameters:
updateSecurityConfigRequest-- Returns:
- Result of the UpdateSecurityConfig operation returned by the service.
- See Also:
-
updateSecurityConfig
default UpdateSecurityConfigResponse updateSecurityConfig(Consumer<UpdateSecurityConfigRequest.Builder> updateSecurityConfigRequest) throws InternalServerException, ResourceNotFoundException, ConflictException, ValidationException, AwsServiceException, SdkClientException, OpenSearchServerlessException 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:
- Result of the UpdateSecurityConfig operation returned by the service.
- See Also:
-
updateSecurityPolicy
default UpdateSecurityPolicyResponse updateSecurityPolicy(UpdateSecurityPolicyRequest updateSecurityPolicyRequest) throws InternalServerException, ResourceNotFoundException, ConflictException, ValidationException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, OpenSearchServerlessException 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:
- Result of the UpdateSecurityPolicy operation returned by the service.
- See Also:
-
updateSecurityPolicy
default UpdateSecurityPolicyResponse updateSecurityPolicy(Consumer<UpdateSecurityPolicyRequest.Builder> updateSecurityPolicyRequest) throws InternalServerException, ResourceNotFoundException, ConflictException, ValidationException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, OpenSearchServerlessException 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:
- Result of the UpdateSecurityPolicy operation returned by the service.
- See Also:
-
updateVpcEndpoint
default UpdateVpcEndpointResponse updateVpcEndpoint(UpdateVpcEndpointRequest updateVpcEndpointRequest) throws InternalServerException, ConflictException, ValidationException, AwsServiceException, SdkClientException, OpenSearchServerlessException Updates an OpenSearch Serverless-managed interface endpoint. For more information, see Access Amazon OpenSearch Serverless using an interface endpoint.
- Parameters:
updateVpcEndpointRequest-- Returns:
- Result of the UpdateVpcEndpoint operation returned by the service.
- See Also:
-
updateVpcEndpoint
default UpdateVpcEndpointResponse updateVpcEndpoint(Consumer<UpdateVpcEndpointRequest.Builder> updateVpcEndpointRequest) throws InternalServerException, ConflictException, ValidationException, AwsServiceException, SdkClientException, OpenSearchServerlessException 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:
- Result of the UpdateVpcEndpoint operation returned by the service.
- See Also:
-
create
Create aOpenSearchServerlessClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aOpenSearchServerlessClient. -
serviceMetadata
-
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
-