IAsyncResult invokeUpdateTable(UpdateTableRequest updateTableRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new UpdateTableRequestMarshaller().Marshall(updateTableRequest); var unmarshaller = UpdateTableResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
/// <summary> /// Initiates the asynchronous execution of the UpdateTable operation. /// <seealso cref="Amazon.DynamoDB.AmazonDynamoDB.UpdateTable"/> /// </summary> /// /// <param name="updateTableRequest">Container for the necessary parameters to execute the UpdateTable operation on AmazonDynamoDB.</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 EndUpdateTable /// operation.</returns> public IAsyncResult BeginUpdateTable(UpdateTableRequest updateTableRequest, AsyncCallback callback, object state) { return invokeUpdateTable(updateTableRequest, callback, state, false); }
/// <summary> /// <para>Updates the provisioned throughput for the given table.</para> <para>Setting the throughput for a table helps you manage performance /// and is part of the Provisioned Throughput feature of Amazon DynamoDB.</para> /// </summary> /// /// <param name="updateTableRequest">Container for the necessary parameters to execute the UpdateTable service method on AmazonDynamoDB.</param> /// /// <returns>The response from the UpdateTable service method, as returned by AmazonDynamoDB.</returns> /// /// <exception cref="ResourceInUseException"/> /// <exception cref="LimitExceededException"/> /// <exception cref="InternalServerErrorException"/> /// <exception cref="ResourceNotFoundException"/> public UpdateTableResponse UpdateTable(UpdateTableRequest updateTableRequest) { IAsyncResult asyncResult = invokeUpdateTable(updateTableRequest, null, null, true); return EndUpdateTable(asyncResult); }
/// <summary> /// <para> Updates the provisioned throughput for the given table. Setting the throughput for a table helps you manage performance and is part /// of the Provisioned Capacity feature of Amazon DynamoDB. </para> /// </summary> /// /// <param name="updateTableRequest">Container for the necessary parameters to execute the UpdateTable service method on AmazonDynamoDB.</param> /// /// <returns>The response from the UpdateTable service method, as returned by AmazonDynamoDB.</returns> /// /// <exception cref="ResourceInUseException"/> /// <exception cref="LimitExceededException"/> /// <exception cref="InternalServerErrorException"/> /// <exception cref="ResourceNotFoundException"/> public UpdateTableResponse UpdateTable(UpdateTableRequest updateTableRequest) { IRequest<UpdateTableRequest> request = new UpdateTableRequestMarshaller().Marshall(updateTableRequest); UpdateTableResponse response = Invoke<UpdateTableRequest, UpdateTableResponse> (request, this.signer, UpdateTableResponseUnmarshaller.GetInstance()); return response; }