/*
* 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 docdb-elastic-2022-11-28.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.DocDBElastic.Model;
using Amazon.DocDBElastic.Model.Internal.MarshallTransformations;
using Amazon.DocDBElastic.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.DocDBElastic
{
///
/// Implementation for accessing DocDBElastic
///
/// The new Amazon Elastic DocumentDB service endpoint.
///
public partial class AmazonDocDBElasticClient : AmazonServiceClient, IAmazonDocDBElastic
{
private static IServiceMetadata serviceMetadata = new AmazonDocDBElasticMetadata();
#region Constructors
///
/// Constructs AmazonDocDBElasticClient 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 AmazonDocDBElasticClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonDocDBElasticConfig()) { }
///
/// Constructs AmazonDocDBElasticClient 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 AmazonDocDBElasticClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonDocDBElasticConfig{RegionEndpoint = region}) { }
///
/// Constructs AmazonDocDBElasticClient 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 AmazonDocDBElasticClient Configuration Object
public AmazonDocDBElasticClient(AmazonDocDBElasticConfig config)
: base(FallbackCredentialsFactory.GetCredentials(config), config){}
///
/// Constructs AmazonDocDBElasticClient with AWS Credentials
///
/// AWS Credentials
public AmazonDocDBElasticClient(AWSCredentials credentials)
: this(credentials, new AmazonDocDBElasticConfig())
{
}
///
/// Constructs AmazonDocDBElasticClient with AWS Credentials
///
/// AWS Credentials
/// The region to connect.
public AmazonDocDBElasticClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonDocDBElasticConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonDocDBElasticClient with AWS Credentials and an
/// AmazonDocDBElasticClient Configuration object.
///
/// AWS Credentials
/// The AmazonDocDBElasticClient Configuration Object
public AmazonDocDBElasticClient(AWSCredentials credentials, AmazonDocDBElasticConfig clientConfig)
: base(credentials, clientConfig)
{
}
///
/// Constructs AmazonDocDBElasticClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
public AmazonDocDBElasticClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonDocDBElasticConfig())
{
}
///
/// Constructs AmazonDocDBElasticClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The region to connect.
public AmazonDocDBElasticClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonDocDBElasticConfig() {RegionEndpoint=region})
{
}
///
/// Constructs AmazonDocDBElasticClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonDocDBElasticClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The AmazonDocDBElasticClient Configuration Object
public AmazonDocDBElasticClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonDocDBElasticConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
///
/// Constructs AmazonDocDBElasticClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
public AmazonDocDBElasticClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonDocDBElasticConfig())
{
}
///
/// Constructs AmazonDocDBElasticClient 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 AmazonDocDBElasticClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonDocDBElasticConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonDocDBElasticClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonDocDBElasticClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
/// The AmazonDocDBElasticClient Configuration Object
public AmazonDocDBElasticClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonDocDBElasticConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig)
{
}
#endregion
#if AWS_ASYNC_ENUMERABLES_API
private IDocDBElasticPaginatorFactory _paginators;
///
/// Paginators for the service
///
public IDocDBElasticPaginatorFactory Paginators
{
get
{
if (this._paginators == null)
{
this._paginators = new DocDBElasticPaginatorFactory(this);
}
return this._paginators;
}
}
#endif
#region Overrides
///
/// Creates the signer for the service.
///
protected override AbstractAWSSigner CreateSigner()
{
return new AWS4Signer();
}
///
/// Customizes the runtime pipeline.
///
/// Runtime pipeline for the current client.
protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
{
pipeline.RemoveHandler();
pipeline.AddHandlerAfter(new AmazonDocDBElasticEndpointResolver());
}
///
/// 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 CreateCluster
internal virtual CreateClusterResponse CreateCluster(CreateClusterRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateClusterRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateClusterResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates a new Elastic DocumentDB cluster and returns its Cluster structure.
///
/// Container for the necessary parameters to execute the CreateCluster service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateCluster service method, as returned by DocDBElastic.
///
/// An exception that occurs when there are not sufficient permissions to perform an action.
///
///
/// There was an access conflict.
///
///
/// There was an internal server error.
///
///
/// The service quota for the action was exceeded.
///
///
/// ThrottlingException will be thrown when request was denied due to request throttling.
///
///
/// A structure defining a validation exception.
///
/// REST API Reference for CreateCluster Operation
public virtual Task CreateClusterAsync(CreateClusterRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateClusterRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateClusterResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateClusterSnapshot
internal virtual CreateClusterSnapshotResponse CreateClusterSnapshot(CreateClusterSnapshotRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateClusterSnapshotRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateClusterSnapshotResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates a snapshot of a cluster.
///
/// Container for the necessary parameters to execute the CreateClusterSnapshot service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateClusterSnapshot service method, as returned by DocDBElastic.
///
/// An exception that occurs when there are not sufficient permissions to perform an action.
///
///
/// There was an access conflict.
///
///
/// There was an internal server error.
///
///
/// The specified resource could not be located.
///
///
/// The service quota for the action was exceeded.
///
///
/// ThrottlingException will be thrown when request was denied due to request throttling.
///
///
/// A structure defining a validation exception.
///
/// REST API Reference for CreateClusterSnapshot Operation
public virtual Task CreateClusterSnapshotAsync(CreateClusterSnapshotRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateClusterSnapshotRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateClusterSnapshotResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteCluster
internal virtual DeleteClusterResponse DeleteCluster(DeleteClusterRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteClusterRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteClusterResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Delete a Elastic DocumentDB cluster.
///
/// Container for the necessary parameters to execute the DeleteCluster service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteCluster service method, as returned by DocDBElastic.
///
/// An exception that occurs when there are not sufficient permissions to perform an action.
///
///
/// There was an access conflict.
///
///
/// There was an internal server error.
///
///
/// The specified resource could not be located.
///
///
/// ThrottlingException will be thrown when request was denied due to request throttling.
///
///
/// A structure defining a validation exception.
///
/// REST API Reference for DeleteCluster Operation
public virtual Task DeleteClusterAsync(DeleteClusterRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteClusterRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteClusterResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteClusterSnapshot
internal virtual DeleteClusterSnapshotResponse DeleteClusterSnapshot(DeleteClusterSnapshotRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteClusterSnapshotRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteClusterSnapshotResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Delete a Elastic DocumentDB snapshot.
///
/// Container for the necessary parameters to execute the DeleteClusterSnapshot service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteClusterSnapshot service method, as returned by DocDBElastic.
///
/// An exception that occurs when there are not sufficient permissions to perform an action.
///
///
/// There was an access conflict.
///
///
/// There was an internal server error.
///
///
/// The specified resource could not be located.
///
///
/// ThrottlingException will be thrown when request was denied due to request throttling.
///
///
/// A structure defining a validation exception.
///
/// REST API Reference for DeleteClusterSnapshot Operation
public virtual Task DeleteClusterSnapshotAsync(DeleteClusterSnapshotRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteClusterSnapshotRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteClusterSnapshotResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetCluster
internal virtual GetClusterResponse GetCluster(GetClusterRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetClusterRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetClusterResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns information about a specific Elastic DocumentDB cluster.
///
/// Container for the necessary parameters to execute the GetCluster service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetCluster service method, as returned by DocDBElastic.
///
/// An exception that occurs when there are not sufficient permissions to perform an action.
///
///
/// There was an internal server error.
///
///
/// The specified resource could not be located.
///
///
/// ThrottlingException will be thrown when request was denied due to request throttling.
///
///
/// A structure defining a validation exception.
///
/// REST API Reference for GetCluster Operation
public virtual Task GetClusterAsync(GetClusterRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetClusterRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetClusterResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetClusterSnapshot
internal virtual GetClusterSnapshotResponse GetClusterSnapshot(GetClusterSnapshotRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetClusterSnapshotRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetClusterSnapshotResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns information about a specific Elastic DocumentDB snapshot
///
/// Container for the necessary parameters to execute the GetClusterSnapshot service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetClusterSnapshot service method, as returned by DocDBElastic.
///
/// An exception that occurs when there are not sufficient permissions to perform an action.
///
///
/// There was an internal server error.
///
///
/// The specified resource could not be located.
///
///
/// ThrottlingException will be thrown when request was denied due to request throttling.
///
///
/// A structure defining a validation exception.
///
/// REST API Reference for GetClusterSnapshot Operation
public virtual Task GetClusterSnapshotAsync(GetClusterSnapshotRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetClusterSnapshotRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetClusterSnapshotResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListClusters
internal virtual ListClustersResponse ListClusters(ListClustersRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListClustersRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListClustersResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns information about provisioned Elastic DocumentDB clusters.
///
/// Container for the necessary parameters to execute the ListClusters service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListClusters service method, as returned by DocDBElastic.
///
/// An exception that occurs when there are not sufficient permissions to perform an action.
///
///
/// There was an internal server error.
///
///
/// ThrottlingException will be thrown when request was denied due to request throttling.
///
///
/// A structure defining a validation exception.
///
/// REST API Reference for ListClusters Operation
public virtual Task ListClustersAsync(ListClustersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListClustersRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListClustersResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListClusterSnapshots
internal virtual ListClusterSnapshotsResponse ListClusterSnapshots(ListClusterSnapshotsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListClusterSnapshotsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListClusterSnapshotsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns information about Elastic DocumentDB snapshots for a specified cluster.
///
/// Container for the necessary parameters to execute the ListClusterSnapshots service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListClusterSnapshots service method, as returned by DocDBElastic.
///
/// An exception that occurs when there are not sufficient permissions to perform an action.
///
///
/// There was an internal server error.
///
///
/// ThrottlingException will be thrown when request was denied due to request throttling.
///
///
/// A structure defining a validation exception.
///
/// REST API Reference for ListClusterSnapshots Operation
public virtual Task ListClusterSnapshotsAsync(ListClusterSnapshotsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListClusterSnapshotsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListClusterSnapshotsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListTagsForResource
internal virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Lists all tags on a Elastic DocumentDB resource
///
/// 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 DocDBElastic.
///
/// There was an internal server error.
///
///
/// The specified resource could not be located.
///
///
/// ThrottlingException will be thrown when request was denied due to request throttling.
///
///
/// A structure defining a validation exception.
///
/// 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 RestoreClusterFromSnapshot
internal virtual RestoreClusterFromSnapshotResponse RestoreClusterFromSnapshot(RestoreClusterFromSnapshotRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = RestoreClusterFromSnapshotRequestMarshaller.Instance;
options.ResponseUnmarshaller = RestoreClusterFromSnapshotResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Restores a Elastic DocumentDB cluster from a snapshot.
///
/// Container for the necessary parameters to execute the RestoreClusterFromSnapshot service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the RestoreClusterFromSnapshot service method, as returned by DocDBElastic.
///
/// An exception that occurs when there are not sufficient permissions to perform an action.
///
///
/// There was an access conflict.
///
///
/// There was an internal server error.
///
///
/// The specified resource could not be located.
///
///
/// The service quota for the action was exceeded.
///
///
/// ThrottlingException will be thrown when request was denied due to request throttling.
///
///
/// A structure defining a validation exception.
///
/// REST API Reference for RestoreClusterFromSnapshot Operation
public virtual Task RestoreClusterFromSnapshotAsync(RestoreClusterFromSnapshotRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = RestoreClusterFromSnapshotRequestMarshaller.Instance;
options.ResponseUnmarshaller = RestoreClusterFromSnapshotResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region TagResource
internal virtual TagResourceResponse TagResource(TagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Adds metadata tags to a Elastic DocumentDB resource
///
/// 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 DocDBElastic.
///
/// There was an internal server error.
///
///
/// The specified resource could not be located.
///
///
/// ThrottlingException will be thrown when request was denied due to request throttling.
///
///
/// A structure defining a validation exception.
///
/// 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
internal virtual UntagResourceResponse UntagResource(UntagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Removes metadata tags to a Elastic DocumentDB resource
///
/// 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 DocDBElastic.
///
/// There was an internal server error.
///
///
/// The specified resource could not be located.
///
///
/// ThrottlingException will be thrown when request was denied due to request throttling.
///
///
/// A structure defining a validation exception.
///
/// 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 UpdateCluster
internal virtual UpdateClusterResponse UpdateCluster(UpdateClusterRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateClusterRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateClusterResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Modifies a Elastic DocumentDB cluster. This includes updating admin-username/password,
/// upgrading API version setting up a backup window and maintenance window
///
/// Container for the necessary parameters to execute the UpdateCluster service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UpdateCluster service method, as returned by DocDBElastic.
///
/// An exception that occurs when there are not sufficient permissions to perform an action.
///
///
/// There was an access conflict.
///
///
/// There was an internal server error.
///
///
/// The specified resource could not be located.
///
///
/// ThrottlingException will be thrown when request was denied due to request throttling.
///
///
/// A structure defining a validation exception.
///
/// REST API Reference for UpdateCluster Operation
public virtual Task UpdateClusterAsync(UpdateClusterRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateClusterRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateClusterResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
}
}