/// <summary> /// Resets one or more alarms. The alarms return to the <code>NORMAL</code> state after /// you reset them. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchResetAlarm 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 BatchResetAlarm service method, as returned by IoTEventsData.</returns> /// <exception cref="Amazon.IoTEventsData.Model.InternalFailureException"> /// An internal failure occurred. /// </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/BatchResetAlarm">REST API Reference for BatchResetAlarm Operation</seealso> public virtual Task <BatchResetAlarmResponse> BatchResetAlarmAsync(BatchResetAlarmRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = BatchResetAlarmRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchResetAlarmResponseUnmarshaller.Instance; return(InvokeAsync <BatchResetAlarmResponse>(request, options, cancellationToken)); }
internal virtual BatchResetAlarmResponse BatchResetAlarm(BatchResetAlarmRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchResetAlarmRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchResetAlarmResponseUnmarshaller.Instance; return(Invoke <BatchResetAlarmResponse>(request, options)); }