/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the opensearchserverless-2021-11-01.normal.json service model.
*/
using System;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using Amazon.Runtime;
using Amazon.OpenSearchServerless.Model;
namespace Amazon.OpenSearchServerless
{
///
/// Interface for accessing OpenSearchServerless
///
/// 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?
///
///
public partial interface IAmazonOpenSearchServerless : IAmazonService, IDisposable
{
///
/// Paginators for the service
///
IOpenSearchServerlessPaginatorFactory Paginators { get; }
#region BatchGetCollection
///
/// 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.
///
/// Container for the necessary parameters to execute the BatchGetCollection service method.
///
/// The response from the BatchGetCollection service method, as returned by OpenSearchServerless.
///
/// Thrown when an error internal to the service occurs while processing a request.
///
///
/// Thrown when the HTTP request contains invalid input or is missing required input.
///
/// REST API Reference for BatchGetCollection Operation
BatchGetCollectionResponse BatchGetCollection(BatchGetCollectionRequest request);
///
/// 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.
///
/// Container for the necessary parameters to execute the BatchGetCollection service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the BatchGetCollection service method, as returned by OpenSearchServerless.
///
/// Thrown when an error internal to the service occurs while processing a request.
///
///
/// Thrown when the HTTP request contains invalid input or is missing required input.
///
/// REST API Reference for BatchGetCollection Operation
Task BatchGetCollectionAsync(BatchGetCollectionRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region BatchGetVpcEndpoint
///
/// 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.
///
/// Container for the necessary parameters to execute the BatchGetVpcEndpoint service method.
///
/// The response from the BatchGetVpcEndpoint service method, as returned by OpenSearchServerless.
///
/// Thrown when an error internal to the service occurs while processing a request.
///
///
/// Thrown when the HTTP request contains invalid input or is missing required input.
///
/// REST API Reference for BatchGetVpcEndpoint Operation
BatchGetVpcEndpointResponse BatchGetVpcEndpoint(BatchGetVpcEndpointRequest request);
///
/// 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.
///
/// Container for the necessary parameters to execute the BatchGetVpcEndpoint service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the BatchGetVpcEndpoint service method, as returned by OpenSearchServerless.
///
/// Thrown when an error internal to the service occurs while processing a request.
///
///
/// Thrown when the HTTP request contains invalid input or is missing required input.
///
/// REST API Reference for BatchGetVpcEndpoint Operation
Task BatchGetVpcEndpointAsync(BatchGetVpcEndpointRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region CreateAccessPolicy
///
/// 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.
///
/// Container for the necessary parameters to execute the CreateAccessPolicy service method.
///
/// The response from the CreateAccessPolicy service method, as returned by OpenSearchServerless.
///
/// When creating a resource, thrown when a resource with the same name already exists
/// or is being created. When deleting a resource, thrown when the resource is not in
/// the ACTIVE or FAILED state.
///
///
/// Thrown when an error internal to the service occurs while processing a request.
///
///
/// Thrown when you attempt to create more resources than the service allows based on
/// service quotas.
///
///
/// Thrown when the HTTP request contains invalid input or is missing required input.
///
/// REST API Reference for CreateAccessPolicy Operation
CreateAccessPolicyResponse CreateAccessPolicy(CreateAccessPolicyRequest request);
///
/// 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.
///
/// Container for the necessary parameters to execute the CreateAccessPolicy service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateAccessPolicy service method, as returned by OpenSearchServerless.
///
/// When creating a resource, thrown when a resource with the same name already exists
/// or is being created. When deleting a resource, thrown when the resource is not in
/// the ACTIVE or FAILED state.
///
///
/// Thrown when an error internal to the service occurs while processing a request.
///
///
/// Thrown when you attempt to create more resources than the service allows based on
/// service quotas.
///
///
/// Thrown when the HTTP request contains invalid input or is missing required input.
///
/// REST API Reference for CreateAccessPolicy Operation
Task CreateAccessPolicyAsync(CreateAccessPolicyRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region CreateCollection
///
/// Creates a new OpenSearch Serverless collection. For more information, see Creating
/// and managing Amazon OpenSearch Serverless collections.
///
/// Container for the necessary parameters to execute the CreateCollection service method.
///
/// The response from the CreateCollection service method, as returned by OpenSearchServerless.
///
/// When creating a resource, thrown when a resource with the same name already exists
/// or is being created. When deleting a resource, thrown when the resource is not in
/// the ACTIVE or FAILED state.
///
///
/// Thrown when an error internal to the service occurs while processing a request.
///
///
/// Thrown when the collection you're attempting to create results in a number of search
/// or indexing OCUs that exceeds the account limit.
///
///
/// Thrown when you attempt to create more resources than the service allows based on
/// service quotas.
///
///
/// Thrown when the HTTP request contains invalid input or is missing required input.
///
/// REST API Reference for CreateCollection Operation
CreateCollectionResponse CreateCollection(CreateCollectionRequest request);
///
/// Creates a new OpenSearch Serverless collection. For more information, see Creating
/// and managing Amazon OpenSearch Serverless collections.
///
/// Container for the necessary parameters to execute the CreateCollection service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateCollection service method, as returned by OpenSearchServerless.
///
/// When creating a resource, thrown when a resource with the same name already exists
/// or is being created. When deleting a resource, thrown when the resource is not in
/// the ACTIVE or FAILED state.
///
///
/// Thrown when an error internal to the service occurs while processing a request.
///
///
/// Thrown when the collection you're attempting to create results in a number of search
/// or indexing OCUs that exceeds the account limit.
///
///
/// Thrown when you attempt to create more resources than the service allows based on
/// service quotas.
///
///
/// Thrown when the HTTP request contains invalid input or is missing required input.
///
/// REST API Reference for CreateCollection Operation
Task CreateCollectionAsync(CreateCollectionRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region CreateSecurityConfig
///
/// Specifies a security configuration for OpenSearch Serverless. For more information,
/// see SAML
/// authentication for Amazon OpenSearch Serverless.
///
/// Container for the necessary parameters to execute the CreateSecurityConfig service method.
///
/// The response from the CreateSecurityConfig service method, as returned by OpenSearchServerless.
///
/// When creating a resource, thrown when a resource with the same name already exists
/// or is being created. When deleting a resource, thrown when the resource is not in
/// the ACTIVE or FAILED state.
///
///
/// Thrown when an error internal to the service occurs while processing a request.
///
///
/// Thrown when you attempt to create more resources than the service allows based on
/// service quotas.
///
///
/// Thrown when the HTTP request contains invalid input or is missing required input.
///
/// REST API Reference for CreateSecurityConfig Operation
CreateSecurityConfigResponse CreateSecurityConfig(CreateSecurityConfigRequest request);
///
/// Specifies a security configuration for OpenSearch Serverless. For more information,
/// see SAML
/// authentication for Amazon OpenSearch Serverless.
///
/// Container for the necessary parameters to execute the CreateSecurityConfig service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateSecurityConfig service method, as returned by OpenSearchServerless.
///
/// When creating a resource, thrown when a resource with the same name already exists
/// or is being created. When deleting a resource, thrown when the resource is not in
/// the ACTIVE or FAILED state.
///
///
/// Thrown when an error internal to the service occurs while processing a request.
///
///
/// Thrown when you attempt to create more resources than the service allows based on
/// service quotas.
///
///
/// Thrown when the HTTP request contains invalid input or is missing required input.
///
/// REST API Reference for CreateSecurityConfig Operation
Task CreateSecurityConfigAsync(CreateSecurityConfigRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region CreateSecurityPolicy
///
/// 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.
///
/// Container for the necessary parameters to execute the CreateSecurityPolicy service method.
///
/// The response from the CreateSecurityPolicy service method, as returned by OpenSearchServerless.
///
/// When creating a resource, thrown when a resource with the same name already exists
/// or is being created. When deleting a resource, thrown when the resource is not in
/// the ACTIVE or FAILED state.
///
///
/// Thrown when an error internal to the service occurs while processing a request.
///
///
/// Thrown when you attempt to create more resources than the service allows based on
/// service quotas.
///
///
/// Thrown when the HTTP request contains invalid input or is missing required input.
///
/// REST API Reference for CreateSecurityPolicy Operation
CreateSecurityPolicyResponse CreateSecurityPolicy(CreateSecurityPolicyRequest request);
///
/// 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.
///
/// Container for the necessary parameters to execute the CreateSecurityPolicy service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateSecurityPolicy service method, as returned by OpenSearchServerless.
///
/// When creating a resource, thrown when a resource with the same name already exists
/// or is being created. When deleting a resource, thrown when the resource is not in
/// the ACTIVE or FAILED state.
///
///
/// Thrown when an error internal to the service occurs while processing a request.
///
///
/// Thrown when you attempt to create more resources than the service allows based on
/// service quotas.
///
///
/// Thrown when the HTTP request contains invalid input or is missing required input.
///
/// REST API Reference for CreateSecurityPolicy Operation
Task CreateSecurityPolicyAsync(CreateSecurityPolicyRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region CreateVpcEndpoint
///
/// Creates an OpenSearch Serverless-managed interface VPC endpoint. For more information,
/// see Access
/// Amazon OpenSearch Serverless using an interface endpoint.
///
/// Container for the necessary parameters to execute the CreateVpcEndpoint service method.
///
/// The response from the CreateVpcEndpoint service method, as returned by OpenSearchServerless.
///
/// When creating a resource, thrown when a resource with the same name already exists
/// or is being created. When deleting a resource, thrown when the resource is not in
/// the ACTIVE or FAILED state.
///
///
/// Thrown when an error internal to the service occurs while processing a request.
///
///
/// Thrown when you attempt to create more resources than the service allows based on
/// service quotas.
///
///
/// Thrown when the HTTP request contains invalid input or is missing required input.
///
/// REST API Reference for CreateVpcEndpoint Operation
CreateVpcEndpointResponse CreateVpcEndpoint(CreateVpcEndpointRequest request);
///
/// Creates an OpenSearch Serverless-managed interface VPC endpoint. For more information,
/// see Access
/// Amazon OpenSearch Serverless using an interface endpoint.
///
/// Container for the necessary parameters to execute the CreateVpcEndpoint service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateVpcEndpoint service method, as returned by OpenSearchServerless.
///
/// When creating a resource, thrown when a resource with the same name already exists
/// or is being created. When deleting a resource, thrown when the resource is not in
/// the ACTIVE or FAILED state.
///
///
/// Thrown when an error internal to the service occurs while processing a request.
///
///
/// Thrown when you attempt to create more resources than the service allows based on
/// service quotas.
///
///
/// Thrown when the HTTP request contains invalid input or is missing required input.
///
/// REST API Reference for CreateVpcEndpoint Operation
Task CreateVpcEndpointAsync(CreateVpcEndpointRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DeleteAccessPolicy
///
/// Deletes an OpenSearch Serverless access policy. For more information, see Data
/// access control for Amazon OpenSearch Serverless.
///
/// Container for the necessary parameters to execute the DeleteAccessPolicy service method.
///
/// The response from the DeleteAccessPolicy service method, as returned by OpenSearchServerless.
///
/// When creating a resource, thrown when a resource with the same name already exists
/// or is being created. When deleting a resource, thrown when the resource is not in
/// the ACTIVE or FAILED state.
///
///
/// Thrown when an error internal to the service occurs while processing a request.
///
///
/// Thrown when accessing or deleting a resource that does not exist.
///
///
/// Thrown when the HTTP request contains invalid input or is missing required input.
///
/// REST API Reference for DeleteAccessPolicy Operation
DeleteAccessPolicyResponse DeleteAccessPolicy(DeleteAccessPolicyRequest request);
///
/// Deletes an OpenSearch Serverless access policy. For more information, see Data
/// access control for Amazon OpenSearch Serverless.
///
/// Container for the necessary parameters to execute the DeleteAccessPolicy service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteAccessPolicy service method, as returned by OpenSearchServerless.
///
/// When creating a resource, thrown when a resource with the same name already exists
/// or is being created. When deleting a resource, thrown when the resource is not in
/// the ACTIVE or FAILED state.
///
///
/// Thrown when an error internal to the service occurs while processing a request.
///
///
/// Thrown when accessing or deleting a resource that does not exist.
///
///
/// Thrown when the HTTP request contains invalid input or is missing required input.
///
/// REST API Reference for DeleteAccessPolicy Operation
Task DeleteAccessPolicyAsync(DeleteAccessPolicyRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DeleteCollection
///
/// Deletes an OpenSearch Serverless collection. For more information, see Creating
/// and managing Amazon OpenSearch Serverless collections.
///
/// Container for the necessary parameters to execute the DeleteCollection service method.
///
/// The response from the DeleteCollection service method, as returned by OpenSearchServerless.
///
/// When creating a resource, thrown when a resource with the same name already exists
/// or is being created. When deleting a resource, thrown when the resource is not in
/// the ACTIVE or FAILED state.
///
///
/// Thrown when an error internal to the service occurs while processing a request.
///
///
/// Thrown when accessing or deleting a resource that does not exist.
///
///
/// Thrown when the HTTP request contains invalid input or is missing required input.
///
/// REST API Reference for DeleteCollection Operation
DeleteCollectionResponse DeleteCollection(DeleteCollectionRequest request);
///
/// Deletes an OpenSearch Serverless collection. For more information, see Creating
/// and managing Amazon OpenSearch Serverless collections.
///
/// Container for the necessary parameters to execute the DeleteCollection service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteCollection service method, as returned by OpenSearchServerless.
///
/// When creating a resource, thrown when a resource with the same name already exists
/// or is being created. When deleting a resource, thrown when the resource is not in
/// the ACTIVE or FAILED state.
///
///
/// Thrown when an error internal to the service occurs while processing a request.
///
///
/// Thrown when accessing or deleting a resource that does not exist.
///
///
/// Thrown when the HTTP request contains invalid input or is missing required input.
///
/// REST API Reference for DeleteCollection Operation
Task DeleteCollectionAsync(DeleteCollectionRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DeleteSecurityConfig
///
/// Deletes a security configuration for OpenSearch Serverless. For more information,
/// see SAML
/// authentication for Amazon OpenSearch Serverless.
///
/// Container for the necessary parameters to execute the DeleteSecurityConfig service method.
///
/// The response from the DeleteSecurityConfig service method, as returned by OpenSearchServerless.
///
/// When creating a resource, thrown when a resource with the same name already exists
/// or is being created. When deleting a resource, thrown when the resource is not in
/// the ACTIVE or FAILED state.
///
///
/// Thrown when an error internal to the service occurs while processing a request.
///
///
/// Thrown when accessing or deleting a resource that does not exist.
///
///
/// Thrown when the HTTP request contains invalid input or is missing required input.
///
/// REST API Reference for DeleteSecurityConfig Operation
DeleteSecurityConfigResponse DeleteSecurityConfig(DeleteSecurityConfigRequest request);
///
/// Deletes a security configuration for OpenSearch Serverless. For more information,
/// see SAML
/// authentication for Amazon OpenSearch Serverless.
///
/// Container for the necessary parameters to execute the DeleteSecurityConfig service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteSecurityConfig service method, as returned by OpenSearchServerless.
///
/// When creating a resource, thrown when a resource with the same name already exists
/// or is being created. When deleting a resource, thrown when the resource is not in
/// the ACTIVE or FAILED state.
///
///
/// Thrown when an error internal to the service occurs while processing a request.
///
///
/// Thrown when accessing or deleting a resource that does not exist.
///
///
/// Thrown when the HTTP request contains invalid input or is missing required input.
///
/// REST API Reference for DeleteSecurityConfig Operation
Task DeleteSecurityConfigAsync(DeleteSecurityConfigRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DeleteSecurityPolicy
///
/// Deletes an OpenSearch Serverless security policy.
///
/// Container for the necessary parameters to execute the DeleteSecurityPolicy service method.
///
/// The response from the DeleteSecurityPolicy service method, as returned by OpenSearchServerless.
///
/// When creating a resource, thrown when a resource with the same name already exists
/// or is being created. When deleting a resource, thrown when the resource is not in
/// the ACTIVE or FAILED state.
///
///
/// Thrown when an error internal to the service occurs while processing a request.
///
///
/// Thrown when accessing or deleting a resource that does not exist.
///
///
/// Thrown when the HTTP request contains invalid input or is missing required input.
///
/// REST API Reference for DeleteSecurityPolicy Operation
DeleteSecurityPolicyResponse DeleteSecurityPolicy(DeleteSecurityPolicyRequest request);
///
/// Deletes an OpenSearch Serverless security policy.
///
/// Container for the necessary parameters to execute the DeleteSecurityPolicy service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteSecurityPolicy service method, as returned by OpenSearchServerless.
///
/// When creating a resource, thrown when a resource with the same name already exists
/// or is being created. When deleting a resource, thrown when the resource is not in
/// the ACTIVE or FAILED state.
///
///
/// Thrown when an error internal to the service occurs while processing a request.
///
///
/// Thrown when accessing or deleting a resource that does not exist.
///
///
/// Thrown when the HTTP request contains invalid input or is missing required input.
///
/// REST API Reference for DeleteSecurityPolicy Operation
Task DeleteSecurityPolicyAsync(DeleteSecurityPolicyRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DeleteVpcEndpoint
///
/// Deletes an OpenSearch Serverless-managed interface endpoint. For more information,
/// see Access
/// Amazon OpenSearch Serverless using an interface endpoint.
///
/// Container for the necessary parameters to execute the DeleteVpcEndpoint service method.
///
/// The response from the DeleteVpcEndpoint service method, as returned by OpenSearchServerless.
///
/// When creating a resource, thrown when a resource with the same name already exists
/// or is being created. When deleting a resource, thrown when the resource is not in
/// the ACTIVE or FAILED state.
///
///
/// Thrown when an error internal to the service occurs while processing a request.
///
///
/// Thrown when accessing or deleting a resource that does not exist.
///
///
/// Thrown when the HTTP request contains invalid input or is missing required input.
///
/// REST API Reference for DeleteVpcEndpoint Operation
DeleteVpcEndpointResponse DeleteVpcEndpoint(DeleteVpcEndpointRequest request);
///
/// Deletes an OpenSearch Serverless-managed interface endpoint. For more information,
/// see Access
/// Amazon OpenSearch Serverless using an interface endpoint.
///
/// Container for the necessary parameters to execute the DeleteVpcEndpoint service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteVpcEndpoint service method, as returned by OpenSearchServerless.
///
/// When creating a resource, thrown when a resource with the same name already exists
/// or is being created. When deleting a resource, thrown when the resource is not in
/// the ACTIVE or FAILED state.
///
///
/// Thrown when an error internal to the service occurs while processing a request.
///
///
/// Thrown when accessing or deleting a resource that does not exist.
///
///
/// Thrown when the HTTP request contains invalid input or is missing required input.
///
/// REST API Reference for DeleteVpcEndpoint Operation
Task DeleteVpcEndpointAsync(DeleteVpcEndpointRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region GetAccessPolicy
///
/// Returns an OpenSearch Serverless access policy. For more information, see Data
/// access control for Amazon OpenSearch Serverless.
///
/// Container for the necessary parameters to execute the GetAccessPolicy service method.
///
/// The response from the GetAccessPolicy service method, as returned by OpenSearchServerless.
///
/// Thrown when an error internal to the service occurs while processing a request.
///
///
/// Thrown when accessing or deleting a resource that does not exist.
///
///
/// Thrown when the HTTP request contains invalid input or is missing required input.
///
/// REST API Reference for GetAccessPolicy Operation
GetAccessPolicyResponse GetAccessPolicy(GetAccessPolicyRequest request);
///
/// Returns an OpenSearch Serverless access policy. For more information, see Data
/// access control for Amazon OpenSearch Serverless.
///
/// Container for the necessary parameters to execute the GetAccessPolicy service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetAccessPolicy service method, as returned by OpenSearchServerless.
///
/// Thrown when an error internal to the service occurs while processing a request.
///
///
/// Thrown when accessing or deleting a resource that does not exist.
///
///
/// Thrown when the HTTP request contains invalid input or is missing required input.
///
/// REST API Reference for GetAccessPolicy Operation
Task GetAccessPolicyAsync(GetAccessPolicyRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region GetAccountSettings
///
/// Returns account-level settings related to OpenSearch Serverless.
///
/// Container for the necessary parameters to execute the GetAccountSettings service method.
///
/// The response from the GetAccountSettings service method, as returned by OpenSearchServerless.
///
/// Thrown when an error internal to the service occurs while processing a request.
///
///
/// Thrown when the HTTP request contains invalid input or is missing required input.
///
/// REST API Reference for GetAccountSettings Operation
GetAccountSettingsResponse GetAccountSettings(GetAccountSettingsRequest request);
///
/// Returns account-level settings related to OpenSearch Serverless.
///
/// Container for the necessary parameters to execute the GetAccountSettings service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetAccountSettings service method, as returned by OpenSearchServerless.
///
/// Thrown when an error internal to the service occurs while processing a request.
///
///
/// Thrown when the HTTP request contains invalid input or is missing required input.
///
/// REST API Reference for GetAccountSettings Operation
Task GetAccountSettingsAsync(GetAccountSettingsRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region GetPoliciesStats
///
/// Returns statistical information about your OpenSearch Serverless access policies,
/// security configurations, and security policies.
///
/// Container for the necessary parameters to execute the GetPoliciesStats service method.
///
/// The response from the GetPoliciesStats service method, as returned by OpenSearchServerless.
///
/// Thrown when an error internal to the service occurs while processing a request.
///
/// REST API Reference for GetPoliciesStats Operation
GetPoliciesStatsResponse GetPoliciesStats(GetPoliciesStatsRequest request);
///
/// Returns statistical information about your OpenSearch Serverless access policies,
/// security configurations, and security policies.
///
/// Container for the necessary parameters to execute the GetPoliciesStats service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetPoliciesStats service method, as returned by OpenSearchServerless.
///
/// Thrown when an error internal to the service occurs while processing a request.
///
/// REST API Reference for GetPoliciesStats Operation
Task GetPoliciesStatsAsync(GetPoliciesStatsRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region GetSecurityConfig
///
/// Returns information about an OpenSearch Serverless security configuration. For more
/// information, see SAML
/// authentication for Amazon OpenSearch Serverless.
///
/// Container for the necessary parameters to execute the GetSecurityConfig service method.
///
/// The response from the GetSecurityConfig service method, as returned by OpenSearchServerless.
///
/// Thrown when an error internal to the service occurs while processing a request.
///
///
/// Thrown when accessing or deleting a resource that does not exist.
///
///
/// Thrown when the HTTP request contains invalid input or is missing required input.
///
/// REST API Reference for GetSecurityConfig Operation
GetSecurityConfigResponse GetSecurityConfig(GetSecurityConfigRequest request);
///
/// Returns information about an OpenSearch Serverless security configuration. For more
/// information, see SAML
/// authentication for Amazon OpenSearch Serverless.
///
/// Container for the necessary parameters to execute the GetSecurityConfig service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetSecurityConfig service method, as returned by OpenSearchServerless.
///
/// Thrown when an error internal to the service occurs while processing a request.
///
///
/// Thrown when accessing or deleting a resource that does not exist.
///
///
/// Thrown when the HTTP request contains invalid input or is missing required input.
///
/// REST API Reference for GetSecurityConfig Operation
Task GetSecurityConfigAsync(GetSecurityConfigRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region GetSecurityPolicy
///
/// 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.
///
/// Container for the necessary parameters to execute the GetSecurityPolicy service method.
///
/// The response from the GetSecurityPolicy service method, as returned by OpenSearchServerless.
///
/// Thrown when an error internal to the service occurs while processing a request.
///
///
/// Thrown when accessing or deleting a resource that does not exist.
///
///
/// Thrown when the HTTP request contains invalid input or is missing required input.
///
/// REST API Reference for GetSecurityPolicy Operation
GetSecurityPolicyResponse GetSecurityPolicy(GetSecurityPolicyRequest request);
///
/// 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.
///
/// Container for the necessary parameters to execute the GetSecurityPolicy service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetSecurityPolicy service method, as returned by OpenSearchServerless.
///
/// Thrown when an error internal to the service occurs while processing a request.
///
///
/// Thrown when accessing or deleting a resource that does not exist.
///
///
/// Thrown when the HTTP request contains invalid input or is missing required input.
///
/// REST API Reference for GetSecurityPolicy Operation
Task GetSecurityPolicyAsync(GetSecurityPolicyRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListAccessPolicies
///
/// Returns information about a list of OpenSearch Serverless access policies.
///
/// Container for the necessary parameters to execute the ListAccessPolicies service method.
///
/// The response from the ListAccessPolicies service method, as returned by OpenSearchServerless.
///
/// Thrown when an error internal to the service occurs while processing a request.
///
///
/// Thrown when the HTTP request contains invalid input or is missing required input.
///
/// REST API Reference for ListAccessPolicies Operation
ListAccessPoliciesResponse ListAccessPolicies(ListAccessPoliciesRequest request);
///
/// Returns information about a list of OpenSearch Serverless access policies.
///
/// Container for the necessary parameters to execute the ListAccessPolicies service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListAccessPolicies service method, as returned by OpenSearchServerless.
///
/// Thrown when an error internal to the service occurs while processing a request.
///
///
/// Thrown when the HTTP request contains invalid input or is missing required input.
///
/// REST API Reference for ListAccessPolicies Operation
Task ListAccessPoliciesAsync(ListAccessPoliciesRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListCollections
///
/// 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.
///
///
///
/// Container for the necessary parameters to execute the ListCollections service method.
///
/// The response from the ListCollections service method, as returned by OpenSearchServerless.
///
/// Thrown when an error internal to the service occurs while processing a request.
///
///
/// Thrown when the HTTP request contains invalid input or is missing required input.
///
/// REST API Reference for ListCollections Operation
ListCollectionsResponse ListCollections(ListCollectionsRequest request);
///
/// 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.
///
///
///
/// Container for the necessary parameters to execute the ListCollections service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListCollections service method, as returned by OpenSearchServerless.
///
/// Thrown when an error internal to the service occurs while processing a request.
///
///
/// Thrown when the HTTP request contains invalid input or is missing required input.
///
/// REST API Reference for ListCollections Operation
Task ListCollectionsAsync(ListCollectionsRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListSecurityConfigs
///
/// Returns information about configured OpenSearch Serverless security configurations.
/// For more information, see SAML
/// authentication for Amazon OpenSearch Serverless.
///
/// Container for the necessary parameters to execute the ListSecurityConfigs service method.
///
/// The response from the ListSecurityConfigs service method, as returned by OpenSearchServerless.
///
/// Thrown when an error internal to the service occurs while processing a request.
///
///
/// Thrown when the HTTP request contains invalid input or is missing required input.
///
/// REST API Reference for ListSecurityConfigs Operation
ListSecurityConfigsResponse ListSecurityConfigs(ListSecurityConfigsRequest request);
///
/// Returns information about configured OpenSearch Serverless security configurations.
/// For more information, see SAML
/// authentication for Amazon OpenSearch Serverless.
///
/// Container for the necessary parameters to execute the ListSecurityConfigs service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListSecurityConfigs service method, as returned by OpenSearchServerless.
///
/// Thrown when an error internal to the service occurs while processing a request.
///
///
/// Thrown when the HTTP request contains invalid input or is missing required input.
///
/// REST API Reference for ListSecurityConfigs Operation
Task ListSecurityConfigsAsync(ListSecurityConfigsRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListSecurityPolicies
///
/// Returns information about configured OpenSearch Serverless security policies.
///
/// Container for the necessary parameters to execute the ListSecurityPolicies service method.
///
/// The response from the ListSecurityPolicies service method, as returned by OpenSearchServerless.
///
/// Thrown when an error internal to the service occurs while processing a request.
///
///
/// Thrown when the HTTP request contains invalid input or is missing required input.
///
/// REST API Reference for ListSecurityPolicies Operation
ListSecurityPoliciesResponse ListSecurityPolicies(ListSecurityPoliciesRequest request);
///
/// Returns information about configured OpenSearch Serverless security policies.
///
/// Container for the necessary parameters to execute the ListSecurityPolicies service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListSecurityPolicies service method, as returned by OpenSearchServerless.
///
/// Thrown when an error internal to the service occurs while processing a request.
///
///
/// Thrown when the HTTP request contains invalid input or is missing required input.
///
/// REST API Reference for ListSecurityPolicies Operation
Task ListSecurityPoliciesAsync(ListSecurityPoliciesRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListTagsForResource
///
/// Returns the tags for an OpenSearch Serverless resource. For more information, see
/// Tagging
/// Amazon OpenSearch Serverless collections.
///
/// Container for the necessary parameters to execute the ListTagsForResource service method.
///
/// The response from the ListTagsForResource service method, as returned by OpenSearchServerless.
///
/// Thrown when an error internal to the service occurs while processing a request.
///
///
/// Thrown when accessing or deleting a resource that does not exist.
///
///
/// Thrown when the HTTP request contains invalid input or is missing required input.
///
/// REST API Reference for ListTagsForResource Operation
ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request);
///
/// Returns the tags for an OpenSearch Serverless resource. For more information, see
/// Tagging
/// Amazon OpenSearch Serverless collections.
///
/// Container for the necessary parameters to execute the ListTagsForResource service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListTagsForResource service method, as returned by OpenSearchServerless.
///
/// Thrown when an error internal to the service occurs while processing a request.
///
///
/// Thrown when accessing or deleting a resource that does not exist.
///
///
/// Thrown when the HTTP request contains invalid input or is missing required input.
///
/// REST API Reference for ListTagsForResource Operation
Task ListTagsForResourceAsync(ListTagsForResourceRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListVpcEndpoints
///
/// 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.
///
/// Container for the necessary parameters to execute the ListVpcEndpoints service method.
///
/// The response from the ListVpcEndpoints service method, as returned by OpenSearchServerless.
///
/// Thrown when an error internal to the service occurs while processing a request.
///
///
/// Thrown when the HTTP request contains invalid input or is missing required input.
///
/// REST API Reference for ListVpcEndpoints Operation
ListVpcEndpointsResponse ListVpcEndpoints(ListVpcEndpointsRequest request);
///
/// 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.
///
/// Container for the necessary parameters to execute the ListVpcEndpoints service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListVpcEndpoints service method, as returned by OpenSearchServerless.
///
/// Thrown when an error internal to the service occurs while processing a request.
///
///
/// Thrown when the HTTP request contains invalid input or is missing required input.
///
/// REST API Reference for ListVpcEndpoints Operation
Task ListVpcEndpointsAsync(ListVpcEndpointsRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region TagResource
///
/// Associates tags with an OpenSearch Serverless resource. For more information, see
/// Tagging
/// Amazon OpenSearch Serverless collections.
///
/// Container for the necessary parameters to execute the TagResource service method.
///
/// The response from the TagResource service method, as returned by OpenSearchServerless.
///
/// When creating a resource, thrown when a resource with the same name already exists
/// or is being created. When deleting a resource, thrown when the resource is not in
/// the ACTIVE or FAILED state.
///
///
/// Thrown when an error internal to the service occurs while processing a request.
///
///
/// Thrown when accessing or deleting a resource that does not exist.
///
///
/// Thrown when you attempt to create more resources than the service allows based on
/// service quotas.
///
///
/// Thrown when the HTTP request contains invalid input or is missing required input.
///
/// REST API Reference for TagResource Operation
TagResourceResponse TagResource(TagResourceRequest request);
///
/// Associates tags with an OpenSearch Serverless resource. For more information, see
/// Tagging
/// Amazon OpenSearch Serverless collections.
///
/// Container for the necessary parameters to execute the TagResource service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the TagResource service method, as returned by OpenSearchServerless.
///
/// When creating a resource, thrown when a resource with the same name already exists
/// or is being created. When deleting a resource, thrown when the resource is not in
/// the ACTIVE or FAILED state.
///
///
/// Thrown when an error internal to the service occurs while processing a request.
///
///
/// Thrown when accessing or deleting a resource that does not exist.
///
///
/// Thrown when you attempt to create more resources than the service allows based on
/// service quotas.
///
///
/// Thrown when the HTTP request contains invalid input or is missing required input.
///
/// REST API Reference for TagResource Operation
Task TagResourceAsync(TagResourceRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region UntagResource
///
/// Removes a tag or set of tags from an OpenSearch Serverless resource. For more information,
/// see Tagging
/// Amazon OpenSearch Serverless collections.
///
/// Container for the necessary parameters to execute the UntagResource service method.
///
/// The response from the UntagResource service method, as returned by OpenSearchServerless.
///
/// When creating a resource, thrown when a resource with the same name already exists
/// or is being created. When deleting a resource, thrown when the resource is not in
/// the ACTIVE or FAILED state.
///
///
/// Thrown when an error internal to the service occurs while processing a request.
///
///
/// Thrown when accessing or deleting a resource that does not exist.
///
///
/// Thrown when the HTTP request contains invalid input or is missing required input.
///
/// REST API Reference for UntagResource Operation
UntagResourceResponse UntagResource(UntagResourceRequest request);
///
/// Removes a tag or set of tags from an OpenSearch Serverless resource. For more information,
/// see Tagging
/// Amazon OpenSearch Serverless collections.
///
/// Container for the necessary parameters to execute the UntagResource service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UntagResource service method, as returned by OpenSearchServerless.
///
/// When creating a resource, thrown when a resource with the same name already exists
/// or is being created. When deleting a resource, thrown when the resource is not in
/// the ACTIVE or FAILED state.
///
///
/// Thrown when an error internal to the service occurs while processing a request.
///
///
/// Thrown when accessing or deleting a resource that does not exist.
///
///
/// Thrown when the HTTP request contains invalid input or is missing required input.
///
/// REST API Reference for UntagResource Operation
Task UntagResourceAsync(UntagResourceRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region UpdateAccessPolicy
///
/// Updates an OpenSearch Serverless access policy. For more information, see Data
/// access control for Amazon OpenSearch Serverless.
///
/// Container for the necessary parameters to execute the UpdateAccessPolicy service method.
///
/// The response from the UpdateAccessPolicy service method, as returned by OpenSearchServerless.
///
/// When creating a resource, thrown when a resource with the same name already exists
/// or is being created. When deleting a resource, thrown when the resource is not in
/// the ACTIVE or FAILED state.
///
///
/// Thrown when an error internal to the service occurs while processing a request.
///
///
/// Thrown when accessing or deleting a resource that does not exist.
///
///
/// Thrown when the HTTP request contains invalid input or is missing required input.
///
/// REST API Reference for UpdateAccessPolicy Operation
UpdateAccessPolicyResponse UpdateAccessPolicy(UpdateAccessPolicyRequest request);
///
/// Updates an OpenSearch Serverless access policy. For more information, see Data
/// access control for Amazon OpenSearch Serverless.
///
/// Container for the necessary parameters to execute the UpdateAccessPolicy service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UpdateAccessPolicy service method, as returned by OpenSearchServerless.
///
/// When creating a resource, thrown when a resource with the same name already exists
/// or is being created. When deleting a resource, thrown when the resource is not in
/// the ACTIVE or FAILED state.
///
///
/// Thrown when an error internal to the service occurs while processing a request.
///
///
/// Thrown when accessing or deleting a resource that does not exist.
///
///
/// Thrown when the HTTP request contains invalid input or is missing required input.
///
/// REST API Reference for UpdateAccessPolicy Operation
Task UpdateAccessPolicyAsync(UpdateAccessPolicyRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region UpdateAccountSettings
///
/// Update the OpenSearch Serverless settings for the current Amazon Web Services account.
/// For more information, see Managing
/// capacity limits for Amazon OpenSearch Serverless.
///
/// Container for the necessary parameters to execute the UpdateAccountSettings service method.
///
/// The response from the UpdateAccountSettings service method, as returned by OpenSearchServerless.
///
/// Thrown when an error internal to the service occurs while processing a request.
///
///
/// Thrown when the HTTP request contains invalid input or is missing required input.
///
/// REST API Reference for UpdateAccountSettings Operation
UpdateAccountSettingsResponse UpdateAccountSettings(UpdateAccountSettingsRequest request);
///
/// Update the OpenSearch Serverless settings for the current Amazon Web Services account.
/// For more information, see Managing
/// capacity limits for Amazon OpenSearch Serverless.
///
/// Container for the necessary parameters to execute the UpdateAccountSettings service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UpdateAccountSettings service method, as returned by OpenSearchServerless.
///
/// Thrown when an error internal to the service occurs while processing a request.
///
///
/// Thrown when the HTTP request contains invalid input or is missing required input.
///
/// REST API Reference for UpdateAccountSettings Operation
Task UpdateAccountSettingsAsync(UpdateAccountSettingsRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region UpdateCollection
///
/// Updates an OpenSearch Serverless collection.
///
/// Container for the necessary parameters to execute the UpdateCollection service method.
///
/// The response from the UpdateCollection service method, as returned by OpenSearchServerless.
///
/// When creating a resource, thrown when a resource with the same name already exists
/// or is being created. When deleting a resource, thrown when the resource is not in
/// the ACTIVE or FAILED state.
///
///
/// Thrown when an error internal to the service occurs while processing a request.
///
///
/// Thrown when the HTTP request contains invalid input or is missing required input.
///
/// REST API Reference for UpdateCollection Operation
UpdateCollectionResponse UpdateCollection(UpdateCollectionRequest request);
///
/// Updates an OpenSearch Serverless collection.
///
/// Container for the necessary parameters to execute the UpdateCollection service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UpdateCollection service method, as returned by OpenSearchServerless.
///
/// When creating a resource, thrown when a resource with the same name already exists
/// or is being created. When deleting a resource, thrown when the resource is not in
/// the ACTIVE or FAILED state.
///
///
/// Thrown when an error internal to the service occurs while processing a request.
///
///
/// Thrown when the HTTP request contains invalid input or is missing required input.
///
/// REST API Reference for UpdateCollection Operation
Task UpdateCollectionAsync(UpdateCollectionRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region UpdateSecurityConfig
///
/// Updates a security configuration for OpenSearch Serverless. For more information,
/// see SAML
/// authentication for Amazon OpenSearch Serverless.
///
/// Container for the necessary parameters to execute the UpdateSecurityConfig service method.
///
/// The response from the UpdateSecurityConfig service method, as returned by OpenSearchServerless.
///
/// When creating a resource, thrown when a resource with the same name already exists
/// or is being created. When deleting a resource, thrown when the resource is not in
/// the ACTIVE or FAILED state.
///
///
/// Thrown when an error internal to the service occurs while processing a request.
///
///
/// Thrown when accessing or deleting a resource that does not exist.
///
///
/// Thrown when the HTTP request contains invalid input or is missing required input.
///
/// REST API Reference for UpdateSecurityConfig Operation
UpdateSecurityConfigResponse UpdateSecurityConfig(UpdateSecurityConfigRequest request);
///
/// Updates a security configuration for OpenSearch Serverless. For more information,
/// see SAML
/// authentication for Amazon OpenSearch Serverless.
///
/// Container for the necessary parameters to execute the UpdateSecurityConfig service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UpdateSecurityConfig service method, as returned by OpenSearchServerless.
///
/// When creating a resource, thrown when a resource with the same name already exists
/// or is being created. When deleting a resource, thrown when the resource is not in
/// the ACTIVE or FAILED state.
///
///
/// Thrown when an error internal to the service occurs while processing a request.
///
///
/// Thrown when accessing or deleting a resource that does not exist.
///
///
/// Thrown when the HTTP request contains invalid input or is missing required input.
///
/// REST API Reference for UpdateSecurityConfig Operation
Task UpdateSecurityConfigAsync(UpdateSecurityConfigRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region UpdateSecurityPolicy
///
/// Updates an OpenSearch Serverless security policy. For more information, see Network
/// access for Amazon OpenSearch Serverless and Encryption
/// at rest for Amazon OpenSearch Serverless.
///
/// Container for the necessary parameters to execute the UpdateSecurityPolicy service method.
///
/// The response from the UpdateSecurityPolicy service method, as returned by OpenSearchServerless.
///
/// When creating a resource, thrown when a resource with the same name already exists
/// or is being created. When deleting a resource, thrown when the resource is not in
/// the ACTIVE or FAILED state.
///
///
/// Thrown when an error internal to the service occurs while processing a request.
///
///
/// Thrown when accessing or deleting a resource that does not exist.
///
///
/// Thrown when you attempt to create more resources than the service allows based on
/// service quotas.
///
///
/// Thrown when the HTTP request contains invalid input or is missing required input.
///
/// REST API Reference for UpdateSecurityPolicy Operation
UpdateSecurityPolicyResponse UpdateSecurityPolicy(UpdateSecurityPolicyRequest request);
///
/// Updates an OpenSearch Serverless security policy. For more information, see Network
/// access for Amazon OpenSearch Serverless and Encryption
/// at rest for Amazon OpenSearch Serverless.
///
/// Container for the necessary parameters to execute the UpdateSecurityPolicy service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UpdateSecurityPolicy service method, as returned by OpenSearchServerless.
///
/// When creating a resource, thrown when a resource with the same name already exists
/// or is being created. When deleting a resource, thrown when the resource is not in
/// the ACTIVE or FAILED state.
///
///
/// Thrown when an error internal to the service occurs while processing a request.
///
///
/// Thrown when accessing or deleting a resource that does not exist.
///
///
/// Thrown when you attempt to create more resources than the service allows based on
/// service quotas.
///
///
/// Thrown when the HTTP request contains invalid input or is missing required input.
///
/// REST API Reference for UpdateSecurityPolicy Operation
Task UpdateSecurityPolicyAsync(UpdateSecurityPolicyRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region UpdateVpcEndpoint
///
/// Updates an OpenSearch Serverless-managed interface endpoint. For more information,
/// see Access
/// Amazon OpenSearch Serverless using an interface endpoint.
///
/// Container for the necessary parameters to execute the UpdateVpcEndpoint service method.
///
/// The response from the UpdateVpcEndpoint service method, as returned by OpenSearchServerless.
///
/// When creating a resource, thrown when a resource with the same name already exists
/// or is being created. When deleting a resource, thrown when the resource is not in
/// the ACTIVE or FAILED state.
///
///
/// Thrown when an error internal to the service occurs while processing a request.
///
///
/// Thrown when the HTTP request contains invalid input or is missing required input.
///
/// REST API Reference for UpdateVpcEndpoint Operation
UpdateVpcEndpointResponse UpdateVpcEndpoint(UpdateVpcEndpointRequest request);
///
/// Updates an OpenSearch Serverless-managed interface endpoint. For more information,
/// see Access
/// Amazon OpenSearch Serverless using an interface endpoint.
///
/// Container for the necessary parameters to execute the UpdateVpcEndpoint service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UpdateVpcEndpoint service method, as returned by OpenSearchServerless.
///
/// When creating a resource, thrown when a resource with the same name already exists
/// or is being created. When deleting a resource, thrown when the resource is not in
/// the ACTIVE or FAILED state.
///
///
/// Thrown when an error internal to the service occurs while processing a request.
///
///
/// Thrown when the HTTP request contains invalid input or is missing required input.
///
/// REST API Reference for UpdateVpcEndpoint Operation
Task UpdateVpcEndpointAsync(UpdateVpcEndpointRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
}
}