/*
* 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.Collections.Generic;
using System.Net;
using Amazon.OpenSearchServerless.Model;
using Amazon.OpenSearchServerless.Model.Internal.MarshallTransformations;
using Amazon.OpenSearchServerless.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.OpenSearchServerless
{
///
/// Implementation 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 class AmazonOpenSearchServerlessClient : AmazonServiceClient, IAmazonOpenSearchServerless
{
private static IServiceMetadata serviceMetadata = new AmazonOpenSearchServerlessMetadata();
#if BCL45 || AWS_ASYNC_ENUMERABLES_API
private IOpenSearchServerlessPaginatorFactory _paginators;
///
/// Paginators for the service
///
public IOpenSearchServerlessPaginatorFactory Paginators
{
get
{
if (this._paginators == null)
{
this._paginators = new OpenSearchServerlessPaginatorFactory(this);
}
return this._paginators;
}
}
#endif
#region Constructors
///
/// Constructs AmazonOpenSearchServerlessClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
///
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
///
///
///
public AmazonOpenSearchServerlessClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonOpenSearchServerlessConfig()) { }
///
/// Constructs AmazonOpenSearchServerlessClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
///
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
///
///
///
/// The region to connect.
public AmazonOpenSearchServerlessClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonOpenSearchServerlessConfig{RegionEndpoint = region}) { }
///
/// Constructs AmazonOpenSearchServerlessClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
///
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
///
///
///
/// The AmazonOpenSearchServerlessClient Configuration Object
public AmazonOpenSearchServerlessClient(AmazonOpenSearchServerlessConfig config)
: base(FallbackCredentialsFactory.GetCredentials(config), config){}
///
/// Constructs AmazonOpenSearchServerlessClient with AWS Credentials
///
/// AWS Credentials
public AmazonOpenSearchServerlessClient(AWSCredentials credentials)
: this(credentials, new AmazonOpenSearchServerlessConfig())
{
}
///
/// Constructs AmazonOpenSearchServerlessClient with AWS Credentials
///
/// AWS Credentials
/// The region to connect.
public AmazonOpenSearchServerlessClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonOpenSearchServerlessConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonOpenSearchServerlessClient with AWS Credentials and an
/// AmazonOpenSearchServerlessClient Configuration object.
///
/// AWS Credentials
/// The AmazonOpenSearchServerlessClient Configuration Object
public AmazonOpenSearchServerlessClient(AWSCredentials credentials, AmazonOpenSearchServerlessConfig clientConfig)
: base(credentials, clientConfig)
{
}
///
/// Constructs AmazonOpenSearchServerlessClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
public AmazonOpenSearchServerlessClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonOpenSearchServerlessConfig())
{
}
///
/// Constructs AmazonOpenSearchServerlessClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The region to connect.
public AmazonOpenSearchServerlessClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonOpenSearchServerlessConfig() {RegionEndpoint=region})
{
}
///
/// Constructs AmazonOpenSearchServerlessClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonOpenSearchServerlessClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The AmazonOpenSearchServerlessClient Configuration Object
public AmazonOpenSearchServerlessClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonOpenSearchServerlessConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
///
/// Constructs AmazonOpenSearchServerlessClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
public AmazonOpenSearchServerlessClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonOpenSearchServerlessConfig())
{
}
///
/// Constructs AmazonOpenSearchServerlessClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
/// The region to connect.
public AmazonOpenSearchServerlessClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonOpenSearchServerlessConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonOpenSearchServerlessClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonOpenSearchServerlessClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
/// The AmazonOpenSearchServerlessClient Configuration Object
public AmazonOpenSearchServerlessClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonOpenSearchServerlessConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig)
{
}
#endregion
#region Overrides
///
/// Creates the signer for the service.
///
protected override AbstractAWSSigner CreateSigner()
{
return new AWS4Signer();
}
///
/// Customize the pipeline
///
///
protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
{
pipeline.RemoveHandler();
pipeline.AddHandlerAfter(new AmazonOpenSearchServerlessEndpointResolver());
}
///
/// Capture metadata for the service.
///
protected override IServiceMetadata ServiceMetadata
{
get
{
return serviceMetadata;
}
}
#endregion
#region Dispose
///
/// Disposes the service client.
///
protected override void Dispose(bool disposing)
{
base.Dispose(disposing);
}
#endregion
#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
public virtual BatchGetCollectionResponse BatchGetCollection(BatchGetCollectionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchGetCollectionRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchGetCollectionResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the BatchGetCollection operation.
///
///
/// Container for the necessary parameters to execute the BatchGetCollection operation on AmazonOpenSearchServerlessClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndBatchGetCollection
/// operation.
/// REST API Reference for BatchGetCollection Operation
public virtual IAsyncResult BeginBatchGetCollection(BatchGetCollectionRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchGetCollectionRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchGetCollectionResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the BatchGetCollection operation.
///
///
/// The IAsyncResult returned by the call to BeginBatchGetCollection.
///
/// Returns a BatchGetCollectionResult from OpenSearchServerless.
/// REST API Reference for BatchGetCollection Operation
public virtual BatchGetCollectionResponse EndBatchGetCollection(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#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
public virtual BatchGetVpcEndpointResponse BatchGetVpcEndpoint(BatchGetVpcEndpointRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchGetVpcEndpointRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchGetVpcEndpointResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the BatchGetVpcEndpoint operation.
///
///
/// Container for the necessary parameters to execute the BatchGetVpcEndpoint operation on AmazonOpenSearchServerlessClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndBatchGetVpcEndpoint
/// operation.
/// REST API Reference for BatchGetVpcEndpoint Operation
public virtual IAsyncResult BeginBatchGetVpcEndpoint(BatchGetVpcEndpointRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchGetVpcEndpointRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchGetVpcEndpointResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the BatchGetVpcEndpoint operation.
///
///
/// The IAsyncResult returned by the call to BeginBatchGetVpcEndpoint.
///
/// Returns a BatchGetVpcEndpointResult from OpenSearchServerless.
/// REST API Reference for BatchGetVpcEndpoint Operation
public virtual BatchGetVpcEndpointResponse EndBatchGetVpcEndpoint(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#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
public virtual CreateAccessPolicyResponse CreateAccessPolicy(CreateAccessPolicyRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateAccessPolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateAccessPolicyResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the CreateAccessPolicy operation.
///
///
/// Container for the necessary parameters to execute the CreateAccessPolicy operation on AmazonOpenSearchServerlessClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateAccessPolicy
/// operation.
/// REST API Reference for CreateAccessPolicy Operation
public virtual IAsyncResult BeginCreateAccessPolicy(CreateAccessPolicyRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateAccessPolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateAccessPolicyResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the CreateAccessPolicy operation.
///
///
/// The IAsyncResult returned by the call to BeginCreateAccessPolicy.
///
/// Returns a CreateAccessPolicyResult from OpenSearchServerless.
/// REST API Reference for CreateAccessPolicy Operation
public virtual CreateAccessPolicyResponse EndCreateAccessPolicy(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#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
public virtual CreateCollectionResponse CreateCollection(CreateCollectionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateCollectionRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateCollectionResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the CreateCollection operation.
///
///
/// Container for the necessary parameters to execute the CreateCollection operation on AmazonOpenSearchServerlessClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateCollection
/// operation.
/// REST API Reference for CreateCollection Operation
public virtual IAsyncResult BeginCreateCollection(CreateCollectionRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateCollectionRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateCollectionResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the CreateCollection operation.
///
///
/// The IAsyncResult returned by the call to BeginCreateCollection.
///
/// Returns a CreateCollectionResult from OpenSearchServerless.
/// REST API Reference for CreateCollection Operation
public virtual CreateCollectionResponse EndCreateCollection(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#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
public virtual CreateSecurityConfigResponse CreateSecurityConfig(CreateSecurityConfigRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateSecurityConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateSecurityConfigResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the CreateSecurityConfig operation.
///
///
/// Container for the necessary parameters to execute the CreateSecurityConfig operation on AmazonOpenSearchServerlessClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateSecurityConfig
/// operation.
/// REST API Reference for CreateSecurityConfig Operation
public virtual IAsyncResult BeginCreateSecurityConfig(CreateSecurityConfigRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateSecurityConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateSecurityConfigResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the CreateSecurityConfig operation.
///
///
/// The IAsyncResult returned by the call to BeginCreateSecurityConfig.
///
/// Returns a CreateSecurityConfigResult from OpenSearchServerless.
/// REST API Reference for CreateSecurityConfig Operation
public virtual CreateSecurityConfigResponse EndCreateSecurityConfig(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#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
public virtual CreateSecurityPolicyResponse CreateSecurityPolicy(CreateSecurityPolicyRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateSecurityPolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateSecurityPolicyResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the CreateSecurityPolicy operation.
///
///
/// Container for the necessary parameters to execute the CreateSecurityPolicy operation on AmazonOpenSearchServerlessClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateSecurityPolicy
/// operation.
/// REST API Reference for CreateSecurityPolicy Operation
public virtual IAsyncResult BeginCreateSecurityPolicy(CreateSecurityPolicyRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateSecurityPolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateSecurityPolicyResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the CreateSecurityPolicy operation.
///
///
/// The IAsyncResult returned by the call to BeginCreateSecurityPolicy.
///
/// Returns a CreateSecurityPolicyResult from OpenSearchServerless.
/// REST API Reference for CreateSecurityPolicy Operation
public virtual CreateSecurityPolicyResponse EndCreateSecurityPolicy(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#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
public virtual CreateVpcEndpointResponse CreateVpcEndpoint(CreateVpcEndpointRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateVpcEndpointRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateVpcEndpointResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the CreateVpcEndpoint operation.
///
///
/// Container for the necessary parameters to execute the CreateVpcEndpoint operation on AmazonOpenSearchServerlessClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateVpcEndpoint
/// operation.
/// REST API Reference for CreateVpcEndpoint Operation
public virtual IAsyncResult BeginCreateVpcEndpoint(CreateVpcEndpointRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateVpcEndpointRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateVpcEndpointResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the CreateVpcEndpoint operation.
///
///
/// The IAsyncResult returned by the call to BeginCreateVpcEndpoint.
///
/// Returns a CreateVpcEndpointResult from OpenSearchServerless.
/// REST API Reference for CreateVpcEndpoint Operation
public virtual CreateVpcEndpointResponse EndCreateVpcEndpoint(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#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
public virtual DeleteAccessPolicyResponse DeleteAccessPolicy(DeleteAccessPolicyRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteAccessPolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteAccessPolicyResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the DeleteAccessPolicy operation.
///
///
/// Container for the necessary parameters to execute the DeleteAccessPolicy operation on AmazonOpenSearchServerlessClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteAccessPolicy
/// operation.
/// REST API Reference for DeleteAccessPolicy Operation
public virtual IAsyncResult BeginDeleteAccessPolicy(DeleteAccessPolicyRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteAccessPolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteAccessPolicyResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the DeleteAccessPolicy operation.
///
///
/// The IAsyncResult returned by the call to BeginDeleteAccessPolicy.
///
/// Returns a DeleteAccessPolicyResult from OpenSearchServerless.
/// REST API Reference for DeleteAccessPolicy Operation
public virtual DeleteAccessPolicyResponse EndDeleteAccessPolicy(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#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
public virtual DeleteCollectionResponse DeleteCollection(DeleteCollectionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteCollectionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteCollectionResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the DeleteCollection operation.
///
///
/// Container for the necessary parameters to execute the DeleteCollection operation on AmazonOpenSearchServerlessClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteCollection
/// operation.
/// REST API Reference for DeleteCollection Operation
public virtual IAsyncResult BeginDeleteCollection(DeleteCollectionRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteCollectionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteCollectionResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the DeleteCollection operation.
///
///
/// The IAsyncResult returned by the call to BeginDeleteCollection.
///
/// Returns a DeleteCollectionResult from OpenSearchServerless.
/// REST API Reference for DeleteCollection Operation
public virtual DeleteCollectionResponse EndDeleteCollection(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#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
public virtual DeleteSecurityConfigResponse DeleteSecurityConfig(DeleteSecurityConfigRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteSecurityConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteSecurityConfigResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the DeleteSecurityConfig operation.
///
///
/// Container for the necessary parameters to execute the DeleteSecurityConfig operation on AmazonOpenSearchServerlessClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteSecurityConfig
/// operation.
/// REST API Reference for DeleteSecurityConfig Operation
public virtual IAsyncResult BeginDeleteSecurityConfig(DeleteSecurityConfigRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteSecurityConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteSecurityConfigResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the DeleteSecurityConfig operation.
///
///
/// The IAsyncResult returned by the call to BeginDeleteSecurityConfig.
///
/// Returns a DeleteSecurityConfigResult from OpenSearchServerless.
/// REST API Reference for DeleteSecurityConfig Operation
public virtual DeleteSecurityConfigResponse EndDeleteSecurityConfig(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#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
public virtual DeleteSecurityPolicyResponse DeleteSecurityPolicy(DeleteSecurityPolicyRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteSecurityPolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteSecurityPolicyResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the DeleteSecurityPolicy operation.
///
///
/// Container for the necessary parameters to execute the DeleteSecurityPolicy operation on AmazonOpenSearchServerlessClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteSecurityPolicy
/// operation.
/// REST API Reference for DeleteSecurityPolicy Operation
public virtual IAsyncResult BeginDeleteSecurityPolicy(DeleteSecurityPolicyRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteSecurityPolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteSecurityPolicyResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the DeleteSecurityPolicy operation.
///
///
/// The IAsyncResult returned by the call to BeginDeleteSecurityPolicy.
///
/// Returns a DeleteSecurityPolicyResult from OpenSearchServerless.
/// REST API Reference for DeleteSecurityPolicy Operation
public virtual DeleteSecurityPolicyResponse EndDeleteSecurityPolicy(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#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
public virtual DeleteVpcEndpointResponse DeleteVpcEndpoint(DeleteVpcEndpointRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteVpcEndpointRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteVpcEndpointResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the DeleteVpcEndpoint operation.
///
///
/// Container for the necessary parameters to execute the DeleteVpcEndpoint operation on AmazonOpenSearchServerlessClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteVpcEndpoint
/// operation.
/// REST API Reference for DeleteVpcEndpoint Operation
public virtual IAsyncResult BeginDeleteVpcEndpoint(DeleteVpcEndpointRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteVpcEndpointRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteVpcEndpointResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the DeleteVpcEndpoint operation.
///
///
/// The IAsyncResult returned by the call to BeginDeleteVpcEndpoint.
///
/// Returns a DeleteVpcEndpointResult from OpenSearchServerless.
/// REST API Reference for DeleteVpcEndpoint Operation
public virtual DeleteVpcEndpointResponse EndDeleteVpcEndpoint(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#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
public virtual GetAccessPolicyResponse GetAccessPolicy(GetAccessPolicyRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetAccessPolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetAccessPolicyResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the GetAccessPolicy operation.
///
///
/// Container for the necessary parameters to execute the GetAccessPolicy operation on AmazonOpenSearchServerlessClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetAccessPolicy
/// operation.
/// REST API Reference for GetAccessPolicy Operation
public virtual IAsyncResult BeginGetAccessPolicy(GetAccessPolicyRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetAccessPolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetAccessPolicyResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the GetAccessPolicy operation.
///
///
/// The IAsyncResult returned by the call to BeginGetAccessPolicy.
///
/// Returns a GetAccessPolicyResult from OpenSearchServerless.
/// REST API Reference for GetAccessPolicy Operation
public virtual GetAccessPolicyResponse EndGetAccessPolicy(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#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
public virtual GetAccountSettingsResponse GetAccountSettings(GetAccountSettingsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetAccountSettingsRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetAccountSettingsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the GetAccountSettings operation.
///
///
/// Container for the necessary parameters to execute the GetAccountSettings operation on AmazonOpenSearchServerlessClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetAccountSettings
/// operation.
/// REST API Reference for GetAccountSettings Operation
public virtual IAsyncResult BeginGetAccountSettings(GetAccountSettingsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetAccountSettingsRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetAccountSettingsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the GetAccountSettings operation.
///
///
/// The IAsyncResult returned by the call to BeginGetAccountSettings.
///
/// Returns a GetAccountSettingsResult from OpenSearchServerless.
/// REST API Reference for GetAccountSettings Operation
public virtual GetAccountSettingsResponse EndGetAccountSettings(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#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
public virtual GetPoliciesStatsResponse GetPoliciesStats(GetPoliciesStatsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetPoliciesStatsRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetPoliciesStatsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the GetPoliciesStats operation.
///
///
/// Container for the necessary parameters to execute the GetPoliciesStats operation on AmazonOpenSearchServerlessClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetPoliciesStats
/// operation.
/// REST API Reference for GetPoliciesStats Operation
public virtual IAsyncResult BeginGetPoliciesStats(GetPoliciesStatsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetPoliciesStatsRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetPoliciesStatsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the GetPoliciesStats operation.
///
///
/// The IAsyncResult returned by the call to BeginGetPoliciesStats.
///
/// Returns a GetPoliciesStatsResult from OpenSearchServerless.
/// REST API Reference for GetPoliciesStats Operation
public virtual GetPoliciesStatsResponse EndGetPoliciesStats(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#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
public virtual GetSecurityConfigResponse GetSecurityConfig(GetSecurityConfigRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetSecurityConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetSecurityConfigResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the GetSecurityConfig operation.
///
///
/// Container for the necessary parameters to execute the GetSecurityConfig operation on AmazonOpenSearchServerlessClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetSecurityConfig
/// operation.
/// REST API Reference for GetSecurityConfig Operation
public virtual IAsyncResult BeginGetSecurityConfig(GetSecurityConfigRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetSecurityConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetSecurityConfigResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the GetSecurityConfig operation.
///
///
/// The IAsyncResult returned by the call to BeginGetSecurityConfig.
///
/// Returns a GetSecurityConfigResult from OpenSearchServerless.
/// REST API Reference for GetSecurityConfig Operation
public virtual GetSecurityConfigResponse EndGetSecurityConfig(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#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
public virtual GetSecurityPolicyResponse GetSecurityPolicy(GetSecurityPolicyRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetSecurityPolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetSecurityPolicyResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the GetSecurityPolicy operation.
///
///
/// Container for the necessary parameters to execute the GetSecurityPolicy operation on AmazonOpenSearchServerlessClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetSecurityPolicy
/// operation.
/// REST API Reference for GetSecurityPolicy Operation
public virtual IAsyncResult BeginGetSecurityPolicy(GetSecurityPolicyRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetSecurityPolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetSecurityPolicyResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the GetSecurityPolicy operation.
///
///
/// The IAsyncResult returned by the call to BeginGetSecurityPolicy.
///
/// Returns a GetSecurityPolicyResult from OpenSearchServerless.
/// REST API Reference for GetSecurityPolicy Operation
public virtual GetSecurityPolicyResponse EndGetSecurityPolicy(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#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
public virtual ListAccessPoliciesResponse ListAccessPolicies(ListAccessPoliciesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListAccessPoliciesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListAccessPoliciesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the ListAccessPolicies operation.
///
///
/// Container for the necessary parameters to execute the ListAccessPolicies operation on AmazonOpenSearchServerlessClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListAccessPolicies
/// operation.
/// REST API Reference for ListAccessPolicies Operation
public virtual IAsyncResult BeginListAccessPolicies(ListAccessPoliciesRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListAccessPoliciesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListAccessPoliciesResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the ListAccessPolicies operation.
///
///
/// The IAsyncResult returned by the call to BeginListAccessPolicies.
///
/// Returns a ListAccessPoliciesResult from OpenSearchServerless.
/// REST API Reference for ListAccessPolicies Operation
public virtual ListAccessPoliciesResponse EndListAccessPolicies(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#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
public virtual ListCollectionsResponse ListCollections(ListCollectionsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListCollectionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListCollectionsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the ListCollections operation.
///
///
/// Container for the necessary parameters to execute the ListCollections operation on AmazonOpenSearchServerlessClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListCollections
/// operation.
/// REST API Reference for ListCollections Operation
public virtual IAsyncResult BeginListCollections(ListCollectionsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListCollectionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListCollectionsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the ListCollections operation.
///
///
/// The IAsyncResult returned by the call to BeginListCollections.
///
/// Returns a ListCollectionsResult from OpenSearchServerless.
/// REST API Reference for ListCollections Operation
public virtual ListCollectionsResponse EndListCollections(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#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
public virtual ListSecurityConfigsResponse ListSecurityConfigs(ListSecurityConfigsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListSecurityConfigsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListSecurityConfigsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the ListSecurityConfigs operation.
///
///
/// Container for the necessary parameters to execute the ListSecurityConfigs operation on AmazonOpenSearchServerlessClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListSecurityConfigs
/// operation.
/// REST API Reference for ListSecurityConfigs Operation
public virtual IAsyncResult BeginListSecurityConfigs(ListSecurityConfigsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListSecurityConfigsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListSecurityConfigsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the ListSecurityConfigs operation.
///
///
/// The IAsyncResult returned by the call to BeginListSecurityConfigs.
///
/// Returns a ListSecurityConfigsResult from OpenSearchServerless.
/// REST API Reference for ListSecurityConfigs Operation
public virtual ListSecurityConfigsResponse EndListSecurityConfigs(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#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
public virtual ListSecurityPoliciesResponse ListSecurityPolicies(ListSecurityPoliciesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListSecurityPoliciesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListSecurityPoliciesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the ListSecurityPolicies operation.
///
///
/// Container for the necessary parameters to execute the ListSecurityPolicies operation on AmazonOpenSearchServerlessClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListSecurityPolicies
/// operation.
/// REST API Reference for ListSecurityPolicies Operation
public virtual IAsyncResult BeginListSecurityPolicies(ListSecurityPoliciesRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListSecurityPoliciesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListSecurityPoliciesResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the ListSecurityPolicies operation.
///
///
/// The IAsyncResult returned by the call to BeginListSecurityPolicies.
///
/// Returns a ListSecurityPoliciesResult from OpenSearchServerless.
/// REST API Reference for ListSecurityPolicies Operation
public virtual ListSecurityPoliciesResponse EndListSecurityPolicies(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#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
public virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the ListTagsForResource operation.
///
///
/// Container for the necessary parameters to execute the ListTagsForResource operation on AmazonOpenSearchServerlessClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListTagsForResource
/// operation.
/// REST API Reference for ListTagsForResource Operation
public virtual IAsyncResult BeginListTagsForResource(ListTagsForResourceRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the ListTagsForResource operation.
///
///
/// The IAsyncResult returned by the call to BeginListTagsForResource.
///
/// Returns a ListTagsForResourceResult from OpenSearchServerless.
/// REST API Reference for ListTagsForResource Operation
public virtual ListTagsForResourceResponse EndListTagsForResource(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#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
public virtual ListVpcEndpointsResponse ListVpcEndpoints(ListVpcEndpointsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListVpcEndpointsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListVpcEndpointsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the ListVpcEndpoints operation.
///
///
/// Container for the necessary parameters to execute the ListVpcEndpoints operation on AmazonOpenSearchServerlessClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListVpcEndpoints
/// operation.
/// REST API Reference for ListVpcEndpoints Operation
public virtual IAsyncResult BeginListVpcEndpoints(ListVpcEndpointsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListVpcEndpointsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListVpcEndpointsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the ListVpcEndpoints operation.
///
///
/// The IAsyncResult returned by the call to BeginListVpcEndpoints.
///
/// Returns a ListVpcEndpointsResult from OpenSearchServerless.
/// REST API Reference for ListVpcEndpoints Operation
public virtual ListVpcEndpointsResponse EndListVpcEndpoints(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#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
public virtual TagResourceResponse TagResource(TagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the TagResource operation.
///
///
/// Container for the necessary parameters to execute the TagResource operation on AmazonOpenSearchServerlessClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndTagResource
/// operation.
/// REST API Reference for TagResource Operation
public virtual IAsyncResult BeginTagResource(TagResourceRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the TagResource operation.
///
///
/// The IAsyncResult returned by the call to BeginTagResource.
///
/// Returns a TagResourceResult from OpenSearchServerless.
/// REST API Reference for TagResource Operation
public virtual TagResourceResponse EndTagResource(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#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
public virtual UntagResourceResponse UntagResource(UntagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the UntagResource operation.
///
///
/// Container for the necessary parameters to execute the UntagResource operation on AmazonOpenSearchServerlessClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUntagResource
/// operation.
/// REST API Reference for UntagResource Operation
public virtual IAsyncResult BeginUntagResource(UntagResourceRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the UntagResource operation.
///
///
/// The IAsyncResult returned by the call to BeginUntagResource.
///
/// Returns a UntagResourceResult from OpenSearchServerless.
/// REST API Reference for UntagResource Operation
public virtual UntagResourceResponse EndUntagResource(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#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
public virtual UpdateAccessPolicyResponse UpdateAccessPolicy(UpdateAccessPolicyRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateAccessPolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateAccessPolicyResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the UpdateAccessPolicy operation.
///
///
/// Container for the necessary parameters to execute the UpdateAccessPolicy operation on AmazonOpenSearchServerlessClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateAccessPolicy
/// operation.
/// REST API Reference for UpdateAccessPolicy Operation
public virtual IAsyncResult BeginUpdateAccessPolicy(UpdateAccessPolicyRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateAccessPolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateAccessPolicyResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the UpdateAccessPolicy operation.
///
///
/// The IAsyncResult returned by the call to BeginUpdateAccessPolicy.
///
/// Returns a UpdateAccessPolicyResult from OpenSearchServerless.
/// REST API Reference for UpdateAccessPolicy Operation
public virtual UpdateAccessPolicyResponse EndUpdateAccessPolicy(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#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
public virtual UpdateAccountSettingsResponse UpdateAccountSettings(UpdateAccountSettingsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateAccountSettingsRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateAccountSettingsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the UpdateAccountSettings operation.
///
///
/// Container for the necessary parameters to execute the UpdateAccountSettings operation on AmazonOpenSearchServerlessClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateAccountSettings
/// operation.
/// REST API Reference for UpdateAccountSettings Operation
public virtual IAsyncResult BeginUpdateAccountSettings(UpdateAccountSettingsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateAccountSettingsRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateAccountSettingsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the UpdateAccountSettings operation.
///
///
/// The IAsyncResult returned by the call to BeginUpdateAccountSettings.
///
/// Returns a UpdateAccountSettingsResult from OpenSearchServerless.
/// REST API Reference for UpdateAccountSettings Operation
public virtual UpdateAccountSettingsResponse EndUpdateAccountSettings(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#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
public virtual UpdateCollectionResponse UpdateCollection(UpdateCollectionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateCollectionRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateCollectionResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the UpdateCollection operation.
///
///
/// Container for the necessary parameters to execute the UpdateCollection operation on AmazonOpenSearchServerlessClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateCollection
/// operation.
/// REST API Reference for UpdateCollection Operation
public virtual IAsyncResult BeginUpdateCollection(UpdateCollectionRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateCollectionRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateCollectionResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the UpdateCollection operation.
///
///
/// The IAsyncResult returned by the call to BeginUpdateCollection.
///
/// Returns a UpdateCollectionResult from OpenSearchServerless.
/// REST API Reference for UpdateCollection Operation
public virtual UpdateCollectionResponse EndUpdateCollection(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#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
public virtual UpdateSecurityConfigResponse UpdateSecurityConfig(UpdateSecurityConfigRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateSecurityConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateSecurityConfigResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the UpdateSecurityConfig operation.
///
///
/// Container for the necessary parameters to execute the UpdateSecurityConfig operation on AmazonOpenSearchServerlessClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateSecurityConfig
/// operation.
/// REST API Reference for UpdateSecurityConfig Operation
public virtual IAsyncResult BeginUpdateSecurityConfig(UpdateSecurityConfigRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateSecurityConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateSecurityConfigResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the UpdateSecurityConfig operation.
///
///
/// The IAsyncResult returned by the call to BeginUpdateSecurityConfig.
///
/// Returns a UpdateSecurityConfigResult from OpenSearchServerless.
/// REST API Reference for UpdateSecurityConfig Operation
public virtual UpdateSecurityConfigResponse EndUpdateSecurityConfig(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#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
public virtual UpdateSecurityPolicyResponse UpdateSecurityPolicy(UpdateSecurityPolicyRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateSecurityPolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateSecurityPolicyResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the UpdateSecurityPolicy operation.
///
///
/// Container for the necessary parameters to execute the UpdateSecurityPolicy operation on AmazonOpenSearchServerlessClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateSecurityPolicy
/// operation.
/// REST API Reference for UpdateSecurityPolicy Operation
public virtual IAsyncResult BeginUpdateSecurityPolicy(UpdateSecurityPolicyRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateSecurityPolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateSecurityPolicyResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the UpdateSecurityPolicy operation.
///
///
/// The IAsyncResult returned by the call to BeginUpdateSecurityPolicy.
///
/// Returns a UpdateSecurityPolicyResult from OpenSearchServerless.
/// REST API Reference for UpdateSecurityPolicy Operation
public virtual UpdateSecurityPolicyResponse EndUpdateSecurityPolicy(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#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
public virtual UpdateVpcEndpointResponse UpdateVpcEndpoint(UpdateVpcEndpointRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateVpcEndpointRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateVpcEndpointResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the UpdateVpcEndpoint operation.
///
///
/// Container for the necessary parameters to execute the UpdateVpcEndpoint operation on AmazonOpenSearchServerlessClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateVpcEndpoint
/// operation.
/// REST API Reference for UpdateVpcEndpoint Operation
public virtual IAsyncResult BeginUpdateVpcEndpoint(UpdateVpcEndpointRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateVpcEndpointRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateVpcEndpointResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the UpdateVpcEndpoint operation.
///
///
/// The IAsyncResult returned by the call to BeginUpdateVpcEndpoint.
///
/// Returns a UpdateVpcEndpointResult from OpenSearchServerless.
/// REST API Reference for UpdateVpcEndpoint Operation
public virtual UpdateVpcEndpointResponse EndUpdateVpcEndpoint(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
}
}