IAsyncResult invokeDeleteClusterSnapshot(DeleteClusterSnapshotRequest deleteClusterSnapshotRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new DeleteClusterSnapshotRequestMarshaller().Marshall(deleteClusterSnapshotRequest); var unmarshaller = DeleteClusterSnapshotResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
/// <summary> /// Deletes the specified manual snapshot. The snapshot must be in the <code>available</code> /// state, with no other users authorized to access the snapshot. /// /// /// <para> /// Unlike automated snapshots, manual snapshots are retained even after you delete your /// cluster. Amazon Redshift does not delete your manual snapshots. You must delete manual /// snapshot explicitly to avoid getting charged. If other accounts are authorized to /// access the snapshot, you must revoke all of the authorizations before you can delete /// the snapshot. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteClusterSnapshot service method.</param> /// /// <returns>The response from the DeleteClusterSnapshot service method, as returned by Redshift.</returns> /// <exception cref="Amazon.Redshift.Model.ClusterSnapshotNotFoundException"> /// The snapshot identifier does not refer to an existing cluster snapshot. /// </exception> /// <exception cref="Amazon.Redshift.Model.InvalidClusterSnapshotStateException"> /// The state of the cluster snapshot is not <code>available</code>, or other accounts /// are authorized to access the snapshot. /// </exception> public DeleteClusterSnapshotResponse DeleteClusterSnapshot(DeleteClusterSnapshotRequest request) { var marshaller = new DeleteClusterSnapshotRequestMarshaller(); var unmarshaller = DeleteClusterSnapshotResponseUnmarshaller.Instance; return Invoke<DeleteClusterSnapshotRequest,DeleteClusterSnapshotResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the DeleteClusterSnapshot operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteClusterSnapshot operation on AmazonRedshiftClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteClusterSnapshot /// operation.</returns> public IAsyncResult BeginDeleteClusterSnapshot(DeleteClusterSnapshotRequest request, AsyncCallback callback, object state) { var marshaller = new DeleteClusterSnapshotRequestMarshaller(); var unmarshaller = DeleteClusterSnapshotResponseUnmarshaller.Instance; return BeginInvoke<DeleteClusterSnapshotRequest>(request, marshaller, unmarshaller, callback, state); }
public void DeleteClusterSnapshotMarshallTest() { var operation = service_model.FindOperation("DeleteClusterSnapshot"); var request = InstantiateClassGenerator.Execute<DeleteClusterSnapshotRequest>(); var marshaller = new DeleteClusterSnapshotRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), false, null); var response = DeleteClusterSnapshotResponseUnmarshaller.Instance.Unmarshall(context) as DeleteClusterSnapshotResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// <para> Deletes the specified manual snapshot. The snapshot must be in the "available" state, with no other users authorized to access the /// snapshot. </para> <para> Unlike automated snapshots, manual snapshots are retained even after you delete your cluster. Amazon Redshift does /// not delete your manual snapshots. You must delete manual snapshot explicitly to avoid getting charged. If other accounts are authorized to /// access the snapshot, you must revoke all of the authorizations before you can delete the snapshot. </para> /// </summary> /// /// <param name="deleteClusterSnapshotRequest">Container for the necessary parameters to execute the DeleteClusterSnapshot service method on /// AmazonRedshift.</param> /// /// <returns>The response from the DeleteClusterSnapshot service method, as returned by AmazonRedshift.</returns> /// /// <exception cref="T:Amazon.Redshift.Model.ClusterSnapshotNotFoundException" /> /// <exception cref="T:Amazon.Redshift.Model.InvalidClusterSnapshotStateException" /> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public Task<DeleteClusterSnapshotResponse> DeleteClusterSnapshotAsync(DeleteClusterSnapshotRequest deleteClusterSnapshotRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteClusterSnapshotRequestMarshaller(); var unmarshaller = DeleteClusterSnapshotResponseUnmarshaller.GetInstance(); return Invoke<IRequest, DeleteClusterSnapshotRequest, DeleteClusterSnapshotResponse>(deleteClusterSnapshotRequest, marshaller, unmarshaller, signer, cancellationToken); }
/// <summary> /// <para> Deletes the specified manual snapshot. The snapshot must be in the "available" state, with no other users authorized to access the /// snapshot. </para> <para> Unlike automated snapshots, manual snapshots are retained even after you delete your cluster. Amazon Redshift does /// not delete your manual snapshots. You must delete manual snapshot explicitly to avoid getting charged. If other accounts are authorized to /// access the snapshot, you must revoke all of the authorizations before you can delete the snapshot. </para> /// </summary> /// /// <param name="deleteClusterSnapshotRequest">Container for the necessary parameters to execute the DeleteClusterSnapshot service method on /// AmazonRedshift.</param> /// /// <returns>The response from the DeleteClusterSnapshot service method, as returned by AmazonRedshift.</returns> /// /// <exception cref="T:Amazon.Redshift.Model.ClusterSnapshotNotFoundException" /> /// <exception cref="T:Amazon.Redshift.Model.InvalidClusterSnapshotStateException" /> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public async Task<DeleteClusterSnapshotResponse> DeleteClusterSnapshotAsync(DeleteClusterSnapshotRequest deleteClusterSnapshotRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteClusterSnapshotRequestMarshaller(); var unmarshaller = DeleteClusterSnapshotResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, DeleteClusterSnapshotRequest, DeleteClusterSnapshotResponse>(deleteClusterSnapshotRequest, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }
/// <summary> /// Initiates the asynchronous execution of the DeleteClusterSnapshot operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteClusterSnapshot operation.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns>The task object representing the asynchronous operation.</returns> public Task<DeleteClusterSnapshotResponse> DeleteClusterSnapshotAsync(DeleteClusterSnapshotRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteClusterSnapshotRequestMarshaller(); var unmarshaller = DeleteClusterSnapshotResponseUnmarshaller.Instance; return InvokeAsync<DeleteClusterSnapshotRequest,DeleteClusterSnapshotResponse>(request, marshaller, unmarshaller, cancellationToken); }
IAsyncResult invokeDeleteClusterSnapshot(DeleteClusterSnapshotRequest request, AsyncCallback callback, object state, bool synchronized) { var marshaller = new DeleteClusterSnapshotRequestMarshaller(); var unmarshaller = DeleteClusterSnapshotResponseUnmarshaller.Instance; return Invoke(request, callback, state, synchronized, marshaller, unmarshaller, signer); }