/// <summary> /// Disables one or more alarms. The alarms change to the <code>DISABLED</code> state /// after you disable them. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchDisableAlarm 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 BatchDisableAlarm 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/BatchDisableAlarm">REST API Reference for BatchDisableAlarm Operation</seealso> public virtual Task <BatchDisableAlarmResponse> BatchDisableAlarmAsync(BatchDisableAlarmRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = BatchDisableAlarmRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchDisableAlarmResponseUnmarshaller.Instance; return(InvokeAsync <BatchDisableAlarmResponse>(request, options, cancellationToken)); }
internal virtual BatchDisableAlarmResponse BatchDisableAlarm(BatchDisableAlarmRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchDisableAlarmRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchDisableAlarmResponseUnmarshaller.Instance; return(Invoke <BatchDisableAlarmResponse>(request, options)); }