public void DeleteDBClusterSnapshotMarshallTest() { var operation = service_model.FindOperation("DeleteDBClusterSnapshot"); var request = InstantiateClassGenerator.Execute <DeleteDBClusterSnapshotRequest>(); var marshaller = new DeleteDBClusterSnapshotRequestMarshaller(); 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 = DeleteDBClusterSnapshotResponseUnmarshaller.Instance.Unmarshall(context) as DeleteDBClusterSnapshotResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// Initiates the asynchronous execution of the DeleteDBClusterSnapshot operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteDBClusterSnapshot 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<DeleteDBClusterSnapshotResponse> DeleteDBClusterSnapshotAsync(DeleteDBClusterSnapshotRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteDBClusterSnapshotRequestMarshaller(); var unmarshaller = DeleteDBClusterSnapshotResponseUnmarshaller.Instance; return InvokeAsync<DeleteDBClusterSnapshotRequest,DeleteDBClusterSnapshotResponse>(request, marshaller, unmarshaller, cancellationToken); }
/// <summary> /// Deletes a DB cluster snapshot. If the snapshot is being copied, the copy operation /// is terminated. /// /// <note>The DB cluster snapshot must be in the <code>available</code> state to be deleted.</note> /// /// <para> /// For more information on Amazon Aurora, see <a href="http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Aurora.html">Aurora /// on Amazon RDS</a> in the <i>Amazon RDS User Guide.</i> /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteDBClusterSnapshot service method.</param> /// /// <returns>The response from the DeleteDBClusterSnapshot service method, as returned by RDS.</returns> /// <exception cref="Amazon.RDS.Model.DBClusterSnapshotNotFoundException"> /// <i>DBClusterSnapshotIdentifier</i> does not refer to an existing DB cluster snapshot. /// </exception> /// <exception cref="Amazon.RDS.Model.InvalidDBClusterSnapshotStateException"> /// The supplied value is not a valid DB cluster snapshot state. /// </exception> public DeleteDBClusterSnapshotResponse DeleteDBClusterSnapshot(DeleteDBClusterSnapshotRequest request) { var marshaller = new DeleteDBClusterSnapshotRequestMarshaller(); var unmarshaller = DeleteDBClusterSnapshotResponseUnmarshaller.Instance; return Invoke<DeleteDBClusterSnapshotRequest,DeleteDBClusterSnapshotResponse>(request, marshaller, unmarshaller); }
public void DeleteDBClusterSnapshotMarshallTest() { var operation = service_model.FindOperation("DeleteDBClusterSnapshot"); var request = InstantiateClassGenerator.Execute<DeleteDBClusterSnapshotRequest>(); var marshaller = new DeleteDBClusterSnapshotRequestMarshaller(); 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 = DeleteDBClusterSnapshotResponseUnmarshaller.Instance.Unmarshall(context) as DeleteDBClusterSnapshotResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// Initiates the asynchronous execution of the DeleteDBClusterSnapshot operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteDBClusterSnapshot operation on AmazonRDSClient.</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 EndDeleteDBClusterSnapshot /// operation.</returns> public IAsyncResult BeginDeleteDBClusterSnapshot(DeleteDBClusterSnapshotRequest request, AsyncCallback callback, object state) { var marshaller = new DeleteDBClusterSnapshotRequestMarshaller(); var unmarshaller = DeleteDBClusterSnapshotResponseUnmarshaller.Instance; return BeginInvoke<DeleteDBClusterSnapshotRequest>(request, marshaller, unmarshaller, callback, state); }