/// <summary> /// Initiates the asynchronous execution of the BatchPutMessage operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the BatchPutMessage operation on AmazonIoTEventsDataClient.</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 EndBatchPutMessage /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-data-2018-10-23/BatchPutMessage">REST API Reference for BatchPutMessage Operation</seealso> public virtual IAsyncResult BeginBatchPutMessage(BatchPutMessageRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = BatchPutMessageRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchPutMessageResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); }
/// <summary> /// Sends a set of messages to the AWS IoT Events system. Each message payload is transformed /// into the input you specify (<code>"inputName"</code>) and ingested into any detectors /// that monitor that input. If multiple messages are sent, the order in which the messages /// are processed isn't guaranteed. To guarantee ordering, you must send messages one /// at a time and wait for a successful response. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchPutMessage service method.</param> /// /// <returns>The response from the BatchPutMessage service method, as returned by IoTEventsData.</returns> /// <exception cref="Amazon.IoTEventsData.Model.InternalFailureException"> /// An internal failure occured. /// </exception> /// <exception cref="Amazon.IoTEventsData.Model.InvalidRequestException"> /// The request was invalid. /// </exception> /// <exception cref="Amazon.IoTEventsData.Model.ServiceUnavailableException"> /// The service is currently unavailable. /// </exception> /// <exception cref="Amazon.IoTEventsData.Model.ThrottlingException"> /// The request could not be completed due to throttling. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-data-2018-10-23/BatchPutMessage">REST API Reference for BatchPutMessage Operation</seealso> public virtual BatchPutMessageResponse BatchPutMessage(BatchPutMessageRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchPutMessageRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchPutMessageResponseUnmarshaller.Instance; return Invoke<BatchPutMessageResponse>(request, options); }
/// <summary> /// Sends a set of messages to the AWS IoT Events system. Each message payload will be /// transformed into the input you specify (<code>inputName</code>) and ingested into /// any detectors that monitor that input. If multiple messages are sent, the order in /// which the messages are processed is not guaranteed--you must send messages one at /// a time and wait for a successful response to guarantee ordering. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchPutMessage service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the BatchPutMessage service method, as returned by IoTEventsData.</returns> /// <exception cref="Amazon.IoTEventsData.Model.InternalFailureException"> /// An internal failure occured. /// </exception> /// <exception cref="Amazon.IoTEventsData.Model.InvalidRequestException"> /// The request was invalid. /// </exception> /// <exception cref="Amazon.IoTEventsData.Model.ServiceUnavailableException"> /// The service is currently unavailable. /// </exception> /// <exception cref="Amazon.IoTEventsData.Model.ThrottlingException"> /// The request could not be completed due to throttling. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-data-2018-10-23/BatchPutMessage">REST API Reference for BatchPutMessage Operation</seealso> public virtual Task <BatchPutMessageResponse> BatchPutMessageAsync(BatchPutMessageRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = BatchPutMessageRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchPutMessageResponseUnmarshaller.Instance; return(InvokeAsync <BatchPutMessageResponse>(request, options, cancellationToken)); }