Exemplo n.º 1
0
        /// <summary>
        /// <para> Disables actions for the specified alarms. When an alarm's actions are disabled the alarm's state may change, but none of the alarm's
        /// actions will execute. </para>
        /// </summary>
        ///
        /// <param name="disableAlarmActionsRequest">Container for the necessary parameters to execute the DisableAlarmActions 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 <DisableAlarmActionsResponse> DisableAlarmActionsAsync(DisableAlarmActionsRequest disableAlarmActionsRequest, CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller   = new DisableAlarmActionsRequestMarshaller();
            var unmarshaller = DisableAlarmActionsResponseUnmarshaller.GetInstance();

            return(Invoke <IRequest, DisableAlarmActionsRequest, DisableAlarmActionsResponse>(disableAlarmActionsRequest, marshaller, unmarshaller, signer, cancellationToken));
        }
Exemplo n.º 2
0
 IAsyncResult invokeDisableAlarmActions(DisableAlarmActionsRequest disableAlarmActionsRequest, AsyncCallback callback, object state, bool synchronized)
 {
     IRequest irequest = new DisableAlarmActionsRequestMarshaller().Marshall(disableAlarmActionsRequest);
     var unmarshaller = DisableAlarmActionsResponseUnmarshaller.GetInstance();
     AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller);
     Invoke(result);
     return result;
 }
Exemplo n.º 3
0
        /// <summary>
        /// <para> Disables actions for the specified alarms. When an alarm's
        /// actions are disabled the alarm's state may change, but none of the
        /// alarm's actions will execute. </para>
        /// </summary>
        ///
        /// <param name="disableAlarmActionsRequest">Container for the necessary
        ///           parameters to execute the DisableAlarmActions service method on
        ///           AmazonCloudWatch.</param>
        ///
        public DisableAlarmActionsResponse DisableAlarmActions(DisableAlarmActionsRequest disableAlarmActionsRequest)
        {
            IRequest <DisableAlarmActionsRequest> request  = new DisableAlarmActionsRequestMarshaller().Marshall(disableAlarmActionsRequest);
            DisableAlarmActionsResponse           response = Invoke <DisableAlarmActionsRequest, DisableAlarmActionsResponse> (request, this.signer, DisableAlarmActionsResponseUnmarshaller.GetInstance());

            return(response);
        }