/// <summary> /// <para> Enables actions for the specified alarms. </para> /// </summary> /// /// <param name="enableAlarmActionsRequest">Container for the necessary parameters to execute the EnableAlarmActions service method on /// AmazonCloudWatch.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public Task <EnableAlarmActionsResponse> EnableAlarmActionsAsync(EnableAlarmActionsRequest enableAlarmActionsRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new EnableAlarmActionsRequestMarshaller(); var unmarshaller = EnableAlarmActionsResponseUnmarshaller.GetInstance(); return(Invoke <IRequest, EnableAlarmActionsRequest, EnableAlarmActionsResponse>(enableAlarmActionsRequest, marshaller, unmarshaller, signer, cancellationToken)); }
IAsyncResult invokeEnableAlarmActions(EnableAlarmActionsRequest enableAlarmActionsRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new EnableAlarmActionsRequestMarshaller().Marshall(enableAlarmActionsRequest); var unmarshaller = EnableAlarmActionsResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
/// <summary> /// <para> Enables actions for the specified alarms. </para> /// </summary> /// /// <param name="enableAlarmActionsRequest">Container for the necessary /// parameters to execute the EnableAlarmActions service method on /// AmazonCloudWatch.</param> /// public EnableAlarmActionsResponse EnableAlarmActions(EnableAlarmActionsRequest enableAlarmActionsRequest) { IRequest <EnableAlarmActionsRequest> request = new EnableAlarmActionsRequestMarshaller().Marshall(enableAlarmActionsRequest); EnableAlarmActionsResponse response = Invoke <EnableAlarmActionsRequest, EnableAlarmActionsResponse> (request, this.signer, EnableAlarmActionsResponseUnmarshaller.GetInstance()); return(response); }