/* * 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.Runtime.ExceptionServices; using System.Threading; using System.Threading.Tasks; 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(); private IOpenSearchServerlessPaginatorFactory _paginators; /// /// Paginators for the service /// public IOpenSearchServerlessPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new OpenSearchServerlessPaginatorFactory(this); } return this._paginators; } } #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); } /// /// 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 public virtual Task BatchGetCollectionAsync(BatchGetCollectionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = BatchGetCollectionRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchGetCollectionResponseUnmarshaller.Instance; return InvokeAsync(request, options, 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 public virtual BatchGetVpcEndpointResponse BatchGetVpcEndpoint(BatchGetVpcEndpointRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchGetVpcEndpointRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchGetVpcEndpointResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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 public virtual Task BatchGetVpcEndpointAsync(BatchGetVpcEndpointRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = BatchGetVpcEndpointRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchGetVpcEndpointResponseUnmarshaller.Instance; return InvokeAsync(request, options, 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 public virtual CreateAccessPolicyResponse CreateAccessPolicy(CreateAccessPolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateAccessPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateAccessPolicyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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 public virtual Task CreateAccessPolicyAsync(CreateAccessPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateAccessPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateAccessPolicyResponseUnmarshaller.Instance; return InvokeAsync(request, options, 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 public virtual CreateCollectionResponse CreateCollection(CreateCollectionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateCollectionRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateCollectionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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 public virtual Task CreateCollectionAsync(CreateCollectionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateCollectionRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateCollectionResponseUnmarshaller.Instance; return InvokeAsync(request, options, 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 public virtual CreateSecurityConfigResponse CreateSecurityConfig(CreateSecurityConfigRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateSecurityConfigRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateSecurityConfigResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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 public virtual Task CreateSecurityConfigAsync(CreateSecurityConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateSecurityConfigRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateSecurityConfigResponseUnmarshaller.Instance; return InvokeAsync(request, options, 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 public virtual CreateSecurityPolicyResponse CreateSecurityPolicy(CreateSecurityPolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateSecurityPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateSecurityPolicyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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 public virtual Task CreateSecurityPolicyAsync(CreateSecurityPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateSecurityPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateSecurityPolicyResponseUnmarshaller.Instance; return InvokeAsync(request, options, 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 public virtual CreateVpcEndpointResponse CreateVpcEndpoint(CreateVpcEndpointRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateVpcEndpointRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateVpcEndpointResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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 public virtual Task CreateVpcEndpointAsync(CreateVpcEndpointRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateVpcEndpointRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateVpcEndpointResponseUnmarshaller.Instance; return InvokeAsync(request, options, 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 public virtual DeleteAccessPolicyResponse DeleteAccessPolicy(DeleteAccessPolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAccessPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAccessPolicyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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 public virtual Task DeleteAccessPolicyAsync(DeleteAccessPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAccessPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAccessPolicyResponseUnmarshaller.Instance; return InvokeAsync(request, options, 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 public virtual DeleteCollectionResponse DeleteCollection(DeleteCollectionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteCollectionRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteCollectionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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 public virtual Task DeleteCollectionAsync(DeleteCollectionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteCollectionRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteCollectionResponseUnmarshaller.Instance; return InvokeAsync(request, options, 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 public virtual DeleteSecurityConfigResponse DeleteSecurityConfig(DeleteSecurityConfigRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteSecurityConfigRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteSecurityConfigResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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 public virtual Task DeleteSecurityConfigAsync(DeleteSecurityConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteSecurityConfigRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteSecurityConfigResponseUnmarshaller.Instance; return InvokeAsync(request, options, 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 public virtual DeleteSecurityPolicyResponse DeleteSecurityPolicy(DeleteSecurityPolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteSecurityPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteSecurityPolicyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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 public virtual Task DeleteSecurityPolicyAsync(DeleteSecurityPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteSecurityPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteSecurityPolicyResponseUnmarshaller.Instance; return InvokeAsync(request, options, 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 public virtual DeleteVpcEndpointResponse DeleteVpcEndpoint(DeleteVpcEndpointRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteVpcEndpointRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteVpcEndpointResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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 public virtual Task DeleteVpcEndpointAsync(DeleteVpcEndpointRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteVpcEndpointRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteVpcEndpointResponseUnmarshaller.Instance; return InvokeAsync(request, options, 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 public virtual GetAccessPolicyResponse GetAccessPolicy(GetAccessPolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetAccessPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = GetAccessPolicyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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 public virtual Task GetAccessPolicyAsync(GetAccessPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetAccessPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = GetAccessPolicyResponseUnmarshaller.Instance; return InvokeAsync(request, options, 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 public virtual GetAccountSettingsResponse GetAccountSettings(GetAccountSettingsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetAccountSettingsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetAccountSettingsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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 public virtual Task GetAccountSettingsAsync(GetAccountSettingsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetAccountSettingsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetAccountSettingsResponseUnmarshaller.Instance; return InvokeAsync(request, options, 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 public virtual GetPoliciesStatsResponse GetPoliciesStats(GetPoliciesStatsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetPoliciesStatsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetPoliciesStatsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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 public virtual Task GetPoliciesStatsAsync(GetPoliciesStatsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetPoliciesStatsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetPoliciesStatsResponseUnmarshaller.Instance; return InvokeAsync(request, options, 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 public virtual GetSecurityConfigResponse GetSecurityConfig(GetSecurityConfigRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetSecurityConfigRequestMarshaller.Instance; options.ResponseUnmarshaller = GetSecurityConfigResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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 public virtual Task GetSecurityConfigAsync(GetSecurityConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetSecurityConfigRequestMarshaller.Instance; options.ResponseUnmarshaller = GetSecurityConfigResponseUnmarshaller.Instance; return InvokeAsync(request, options, 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 public virtual GetSecurityPolicyResponse GetSecurityPolicy(GetSecurityPolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetSecurityPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = GetSecurityPolicyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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 public virtual Task GetSecurityPolicyAsync(GetSecurityPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetSecurityPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = GetSecurityPolicyResponseUnmarshaller.Instance; return InvokeAsync(request, options, 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 public virtual ListAccessPoliciesResponse ListAccessPolicies(ListAccessPoliciesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListAccessPoliciesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAccessPoliciesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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 public virtual Task ListAccessPoliciesAsync(ListAccessPoliciesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListAccessPoliciesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAccessPoliciesResponseUnmarshaller.Instance; return InvokeAsync(request, options, 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 public virtual ListCollectionsResponse ListCollections(ListCollectionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListCollectionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListCollectionsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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 public virtual Task ListCollectionsAsync(ListCollectionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListCollectionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListCollectionsResponseUnmarshaller.Instance; return InvokeAsync(request, options, 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 public virtual ListSecurityConfigsResponse ListSecurityConfigs(ListSecurityConfigsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListSecurityConfigsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListSecurityConfigsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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 public virtual Task ListSecurityConfigsAsync(ListSecurityConfigsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListSecurityConfigsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListSecurityConfigsResponseUnmarshaller.Instance; return InvokeAsync(request, options, 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 public virtual ListSecurityPoliciesResponse ListSecurityPolicies(ListSecurityPoliciesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListSecurityPoliciesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListSecurityPoliciesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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 public virtual Task ListSecurityPoliciesAsync(ListSecurityPoliciesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListSecurityPoliciesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListSecurityPoliciesResponseUnmarshaller.Instance; return InvokeAsync(request, options, 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 public virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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 public virtual Task ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return InvokeAsync(request, options, 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 public virtual ListVpcEndpointsResponse ListVpcEndpoints(ListVpcEndpointsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListVpcEndpointsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListVpcEndpointsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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 public virtual Task ListVpcEndpointsAsync(ListVpcEndpointsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListVpcEndpointsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListVpcEndpointsResponseUnmarshaller.Instance; return InvokeAsync(request, options, 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 public virtual TagResourceResponse TagResource(TagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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 public virtual Task TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return InvokeAsync(request, options, 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 public virtual UntagResourceResponse UntagResource(UntagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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 public virtual Task UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return InvokeAsync(request, options, 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 public virtual UpdateAccessPolicyResponse UpdateAccessPolicy(UpdateAccessPolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateAccessPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateAccessPolicyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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 public virtual Task UpdateAccessPolicyAsync(UpdateAccessPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateAccessPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateAccessPolicyResponseUnmarshaller.Instance; return InvokeAsync(request, options, 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 public virtual UpdateAccountSettingsResponse UpdateAccountSettings(UpdateAccountSettingsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateAccountSettingsRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateAccountSettingsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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 public virtual Task UpdateAccountSettingsAsync(UpdateAccountSettingsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateAccountSettingsRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateAccountSettingsResponseUnmarshaller.Instance; return InvokeAsync(request, options, 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 public virtual UpdateCollectionResponse UpdateCollection(UpdateCollectionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateCollectionRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateCollectionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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 public virtual Task UpdateCollectionAsync(UpdateCollectionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateCollectionRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateCollectionResponseUnmarshaller.Instance; return InvokeAsync(request, options, 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 public virtual UpdateSecurityConfigResponse UpdateSecurityConfig(UpdateSecurityConfigRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateSecurityConfigRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateSecurityConfigResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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 public virtual Task UpdateSecurityConfigAsync(UpdateSecurityConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateSecurityConfigRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateSecurityConfigResponseUnmarshaller.Instance; return InvokeAsync(request, options, 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 public virtual UpdateSecurityPolicyResponse UpdateSecurityPolicy(UpdateSecurityPolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateSecurityPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateSecurityPolicyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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 public virtual Task UpdateSecurityPolicyAsync(UpdateSecurityPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateSecurityPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateSecurityPolicyResponseUnmarshaller.Instance; return InvokeAsync(request, options, 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 public virtual UpdateVpcEndpointResponse UpdateVpcEndpoint(UpdateVpcEndpointRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateVpcEndpointRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateVpcEndpointResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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 public virtual Task UpdateVpcEndpointAsync(UpdateVpcEndpointRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateVpcEndpointRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateVpcEndpointResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion } }