/* * 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.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(); #if BCL45 || 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 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 #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 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 /// /// Creates a new Elastic DocumentDB cluster and returns its Cluster structure. /// /// Container for the necessary parameters to execute the CreateCluster service method. /// /// 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 CreateClusterResponse CreateCluster(CreateClusterRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateClusterRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateClusterResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the CreateCluster operation. /// /// /// Container for the necessary parameters to execute the CreateCluster operation on AmazonDocDBElasticClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateCluster /// operation. /// REST API Reference for CreateCluster Operation public virtual IAsyncResult BeginCreateCluster(CreateClusterRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateClusterRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateClusterResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the CreateCluster operation. /// /// /// The IAsyncResult returned by the call to BeginCreateCluster. /// /// Returns a CreateClusterResult from DocDBElastic. /// REST API Reference for CreateCluster Operation public virtual CreateClusterResponse EndCreateCluster(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region CreateClusterSnapshot /// /// Creates a snapshot of a cluster. /// /// Container for the necessary parameters to execute the CreateClusterSnapshot service method. /// /// 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 CreateClusterSnapshotResponse CreateClusterSnapshot(CreateClusterSnapshotRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateClusterSnapshotRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateClusterSnapshotResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the CreateClusterSnapshot operation. /// /// /// Container for the necessary parameters to execute the CreateClusterSnapshot operation on AmazonDocDBElasticClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateClusterSnapshot /// operation. /// REST API Reference for CreateClusterSnapshot Operation public virtual IAsyncResult BeginCreateClusterSnapshot(CreateClusterSnapshotRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateClusterSnapshotRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateClusterSnapshotResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the CreateClusterSnapshot operation. /// /// /// The IAsyncResult returned by the call to BeginCreateClusterSnapshot. /// /// Returns a CreateClusterSnapshotResult from DocDBElastic. /// REST API Reference for CreateClusterSnapshot Operation public virtual CreateClusterSnapshotResponse EndCreateClusterSnapshot(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DeleteCluster /// /// Delete a Elastic DocumentDB cluster. /// /// Container for the necessary parameters to execute the DeleteCluster service method. /// /// 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 DeleteClusterResponse DeleteCluster(DeleteClusterRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteClusterRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteClusterResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DeleteCluster operation. /// /// /// Container for the necessary parameters to execute the DeleteCluster operation on AmazonDocDBElasticClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteCluster /// operation. /// REST API Reference for DeleteCluster Operation public virtual IAsyncResult BeginDeleteCluster(DeleteClusterRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteClusterRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteClusterResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeleteCluster operation. /// /// /// The IAsyncResult returned by the call to BeginDeleteCluster. /// /// Returns a DeleteClusterResult from DocDBElastic. /// REST API Reference for DeleteCluster Operation public virtual DeleteClusterResponse EndDeleteCluster(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DeleteClusterSnapshot /// /// Delete a Elastic DocumentDB snapshot. /// /// Container for the necessary parameters to execute the DeleteClusterSnapshot service method. /// /// 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 DeleteClusterSnapshotResponse DeleteClusterSnapshot(DeleteClusterSnapshotRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteClusterSnapshotRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteClusterSnapshotResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DeleteClusterSnapshot operation. /// /// /// Container for the necessary parameters to execute the DeleteClusterSnapshot operation on AmazonDocDBElasticClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteClusterSnapshot /// operation. /// REST API Reference for DeleteClusterSnapshot Operation public virtual IAsyncResult BeginDeleteClusterSnapshot(DeleteClusterSnapshotRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteClusterSnapshotRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteClusterSnapshotResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeleteClusterSnapshot operation. /// /// /// The IAsyncResult returned by the call to BeginDeleteClusterSnapshot. /// /// Returns a DeleteClusterSnapshotResult from DocDBElastic. /// REST API Reference for DeleteClusterSnapshot Operation public virtual DeleteClusterSnapshotResponse EndDeleteClusterSnapshot(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GetCluster /// /// Returns information about a specific Elastic DocumentDB cluster. /// /// Container for the necessary parameters to execute the GetCluster service method. /// /// 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 GetClusterResponse GetCluster(GetClusterRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetClusterRequestMarshaller.Instance; options.ResponseUnmarshaller = GetClusterResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetCluster operation. /// /// /// Container for the necessary parameters to execute the GetCluster operation on AmazonDocDBElasticClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetCluster /// operation. /// REST API Reference for GetCluster Operation public virtual IAsyncResult BeginGetCluster(GetClusterRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetClusterRequestMarshaller.Instance; options.ResponseUnmarshaller = GetClusterResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetCluster operation. /// /// /// The IAsyncResult returned by the call to BeginGetCluster. /// /// Returns a GetClusterResult from DocDBElastic. /// REST API Reference for GetCluster Operation public virtual GetClusterResponse EndGetCluster(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GetClusterSnapshot /// /// Returns information about a specific Elastic DocumentDB snapshot /// /// Container for the necessary parameters to execute the GetClusterSnapshot service method. /// /// 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 GetClusterSnapshotResponse GetClusterSnapshot(GetClusterSnapshotRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetClusterSnapshotRequestMarshaller.Instance; options.ResponseUnmarshaller = GetClusterSnapshotResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetClusterSnapshot operation. /// /// /// Container for the necessary parameters to execute the GetClusterSnapshot operation on AmazonDocDBElasticClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetClusterSnapshot /// operation. /// REST API Reference for GetClusterSnapshot Operation public virtual IAsyncResult BeginGetClusterSnapshot(GetClusterSnapshotRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetClusterSnapshotRequestMarshaller.Instance; options.ResponseUnmarshaller = GetClusterSnapshotResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetClusterSnapshot operation. /// /// /// The IAsyncResult returned by the call to BeginGetClusterSnapshot. /// /// Returns a GetClusterSnapshotResult from DocDBElastic. /// REST API Reference for GetClusterSnapshot Operation public virtual GetClusterSnapshotResponse EndGetClusterSnapshot(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListClusters /// /// Returns information about provisioned Elastic DocumentDB clusters. /// /// Container for the necessary parameters to execute the ListClusters service method. /// /// 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 ListClustersResponse ListClusters(ListClustersRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListClustersRequestMarshaller.Instance; options.ResponseUnmarshaller = ListClustersResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListClusters operation. /// /// /// Container for the necessary parameters to execute the ListClusters operation on AmazonDocDBElasticClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListClusters /// operation. /// REST API Reference for ListClusters Operation public virtual IAsyncResult BeginListClusters(ListClustersRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListClustersRequestMarshaller.Instance; options.ResponseUnmarshaller = ListClustersResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListClusters operation. /// /// /// The IAsyncResult returned by the call to BeginListClusters. /// /// Returns a ListClustersResult from DocDBElastic. /// REST API Reference for ListClusters Operation public virtual ListClustersResponse EndListClusters(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListClusterSnapshots /// /// Returns information about Elastic DocumentDB snapshots for a specified cluster. /// /// Container for the necessary parameters to execute the ListClusterSnapshots service method. /// /// 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 ListClusterSnapshotsResponse ListClusterSnapshots(ListClusterSnapshotsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListClusterSnapshotsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListClusterSnapshotsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListClusterSnapshots operation. /// /// /// Container for the necessary parameters to execute the ListClusterSnapshots operation on AmazonDocDBElasticClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListClusterSnapshots /// operation. /// REST API Reference for ListClusterSnapshots Operation public virtual IAsyncResult BeginListClusterSnapshots(ListClusterSnapshotsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListClusterSnapshotsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListClusterSnapshotsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListClusterSnapshots operation. /// /// /// The IAsyncResult returned by the call to BeginListClusterSnapshots. /// /// Returns a ListClusterSnapshotsResult from DocDBElastic. /// REST API Reference for ListClusterSnapshots Operation public virtual ListClusterSnapshotsResponse EndListClusterSnapshots(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListTagsForResource /// /// Lists all tags on a Elastic DocumentDB resource /// /// Container for the necessary parameters to execute the ListTagsForResource service method. /// /// 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 ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListTagsForResource operation. /// /// /// Container for the necessary parameters to execute the ListTagsForResource operation on AmazonDocDBElasticClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListTagsForResource /// operation. /// REST API Reference for ListTagsForResource Operation public virtual IAsyncResult BeginListTagsForResource(ListTagsForResourceRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListTagsForResource operation. /// /// /// The IAsyncResult returned by the call to BeginListTagsForResource. /// /// Returns a ListTagsForResourceResult from DocDBElastic. /// REST API Reference for ListTagsForResource Operation public virtual ListTagsForResourceResponse EndListTagsForResource(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region RestoreClusterFromSnapshot /// /// Restores a Elastic DocumentDB cluster from a snapshot. /// /// Container for the necessary parameters to execute the RestoreClusterFromSnapshot service method. /// /// 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 RestoreClusterFromSnapshotResponse RestoreClusterFromSnapshot(RestoreClusterFromSnapshotRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RestoreClusterFromSnapshotRequestMarshaller.Instance; options.ResponseUnmarshaller = RestoreClusterFromSnapshotResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the RestoreClusterFromSnapshot operation. /// /// /// Container for the necessary parameters to execute the RestoreClusterFromSnapshot operation on AmazonDocDBElasticClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndRestoreClusterFromSnapshot /// operation. /// REST API Reference for RestoreClusterFromSnapshot Operation public virtual IAsyncResult BeginRestoreClusterFromSnapshot(RestoreClusterFromSnapshotRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = RestoreClusterFromSnapshotRequestMarshaller.Instance; options.ResponseUnmarshaller = RestoreClusterFromSnapshotResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the RestoreClusterFromSnapshot operation. /// /// /// The IAsyncResult returned by the call to BeginRestoreClusterFromSnapshot. /// /// Returns a RestoreClusterFromSnapshotResult from DocDBElastic. /// REST API Reference for RestoreClusterFromSnapshot Operation public virtual RestoreClusterFromSnapshotResponse EndRestoreClusterFromSnapshot(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region TagResource /// /// Adds metadata tags to a Elastic DocumentDB resource /// /// Container for the necessary parameters to execute the TagResource service method. /// /// 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 TagResourceResponse TagResource(TagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the TagResource operation. /// /// /// Container for the necessary parameters to execute the TagResource operation on AmazonDocDBElasticClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndTagResource /// operation. /// REST API Reference for TagResource Operation public virtual IAsyncResult BeginTagResource(TagResourceRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the TagResource operation. /// /// /// The IAsyncResult returned by the call to BeginTagResource. /// /// Returns a TagResourceResult from DocDBElastic. /// REST API Reference for TagResource Operation public virtual TagResourceResponse EndTagResource(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region UntagResource /// /// Removes metadata tags to a Elastic DocumentDB resource /// /// Container for the necessary parameters to execute the UntagResource service method. /// /// 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 UntagResourceResponse UntagResource(UntagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the UntagResource operation. /// /// /// Container for the necessary parameters to execute the UntagResource operation on AmazonDocDBElasticClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUntagResource /// operation. /// REST API Reference for UntagResource Operation public virtual IAsyncResult BeginUntagResource(UntagResourceRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the UntagResource operation. /// /// /// The IAsyncResult returned by the call to BeginUntagResource. /// /// Returns a UntagResourceResult from DocDBElastic. /// REST API Reference for UntagResource Operation public virtual UntagResourceResponse EndUntagResource(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region UpdateCluster /// /// 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. /// /// 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 UpdateClusterResponse UpdateCluster(UpdateClusterRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateClusterRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateClusterResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the UpdateCluster operation. /// /// /// Container for the necessary parameters to execute the UpdateCluster operation on AmazonDocDBElasticClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateCluster /// operation. /// REST API Reference for UpdateCluster Operation public virtual IAsyncResult BeginUpdateCluster(UpdateClusterRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateClusterRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateClusterResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the UpdateCluster operation. /// /// /// The IAsyncResult returned by the call to BeginUpdateCluster. /// /// Returns a UpdateClusterResult from DocDBElastic. /// REST API Reference for UpdateCluster Operation public virtual UpdateClusterResponse EndUpdateCluster(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion } }