/// <summary> /// Enables one or more alarms. The alarms change to the <code>NORMAL</code> state after /// you enable them. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchEnableAlarm 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 BatchEnableAlarm 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/BatchEnableAlarm">REST API Reference for BatchEnableAlarm Operation</seealso> public virtual Task <BatchEnableAlarmResponse> BatchEnableAlarmAsync(BatchEnableAlarmRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = BatchEnableAlarmRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchEnableAlarmResponseUnmarshaller.Instance; return(InvokeAsync <BatchEnableAlarmResponse>(request, options, cancellationToken)); }
internal virtual BatchEnableAlarmResponse BatchEnableAlarm(BatchEnableAlarmRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchEnableAlarmRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchEnableAlarmResponseUnmarshaller.Instance; return(Invoke <BatchEnableAlarmResponse>(request, options)); }