/// <summary> /// <para> Deletes a DBSnapshot. </para> <para><b>NOTE:</b>The DBSnapshot must be in the available state to be deleted.</para> /// </summary> /// /// <param name="deleteDBSnapshotRequest">Container for the necessary parameters to execute the DeleteDBSnapshot service method on /// AmazonRDS.</param> /// /// <returns>The response from the DeleteDBSnapshot service method, as returned by AmazonRDS.</returns> /// /// <exception cref="InvalidDBSnapshotStateException"/> /// <exception cref="DBSnapshotNotFoundException"/> public DeleteDBSnapshotResponse DeleteDBSnapshot(DeleteDBSnapshotRequest deleteDBSnapshotRequest) { IRequest <DeleteDBSnapshotRequest> request = new DeleteDBSnapshotRequestMarshaller().Marshall(deleteDBSnapshotRequest); DeleteDBSnapshotResponse response = Invoke <DeleteDBSnapshotRequest, DeleteDBSnapshotResponse> (request, this.signer, DeleteDBSnapshotResponseUnmarshaller.GetInstance()); return(response); }
private static IDictionary <string, string> ConvertDeleteDBSnapshot(DeleteDBSnapshotRequest request) { IDictionary <string, string> dictionary = new Dictionary <string, string>(); dictionary["Action"] = "DeleteDBSnapshot"; if (request.IsSetDBSnapshotIdentifier()) { dictionary["DBSnapshotIdentifier"] = request.DBSnapshotIdentifier; } return(dictionary); }
public DeleteDBSnapshotResponse DeleteDBSnapshot(DeleteDBSnapshotRequest request) { return(this.Invoke <DeleteDBSnapshotResponse>(ConvertDeleteDBSnapshot(request))); }