Beispiel #1
0
        /// <summary>
        /// <para> Deletes all specified alarms. In the event of an error, no alarms are deleted. </para>
        /// </summary>
        ///
        /// <param name="deleteAlarmsRequest">Container for the necessary parameters to execute the DeleteAlarms service method on
        /// AmazonCloudWatch.</param>
        ///
        /// <exception cref="T:Amazon.CloudWatch.Model.ResourceNotFoundException" />
        /// <param name="cancellationToken">
        ///     A cancellation token that can be used by other objects or threads to receive notice of cancellation.
        /// </param>
        public Task <DeleteAlarmsResponse> DeleteAlarmsAsync(DeleteAlarmsRequest deleteAlarmsRequest, CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller   = new DeleteAlarmsRequestMarshaller();
            var unmarshaller = DeleteAlarmsResponseUnmarshaller.GetInstance();

            return(Invoke <IRequest, DeleteAlarmsRequest, DeleteAlarmsResponse>(deleteAlarmsRequest, marshaller, unmarshaller, signer, cancellationToken));
        }
Beispiel #2
0
 IAsyncResult invokeDeleteAlarms(DeleteAlarmsRequest deleteAlarmsRequest, AsyncCallback callback, object state, bool synchronized)
 {
     IRequest irequest = new DeleteAlarmsRequestMarshaller().Marshall(deleteAlarmsRequest);
     var unmarshaller = DeleteAlarmsResponseUnmarshaller.GetInstance();
     AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller);
     Invoke(result);
     return result;
 }
Beispiel #3
0
        /// <summary>
        /// <para> Deletes all specified alarms. In the event of an error, no
        /// alarms are deleted. </para>
        /// </summary>
        ///
        /// <param name="deleteAlarmsRequest">Container for the necessary
        ///           parameters to execute the DeleteAlarms service method on
        ///           AmazonCloudWatch.</param>
        ///
        /// <exception cref="ResourceNotFoundException"/>
        public DeleteAlarmsResponse DeleteAlarms(DeleteAlarmsRequest deleteAlarmsRequest)
        {
            IRequest <DeleteAlarmsRequest> request  = new DeleteAlarmsRequestMarshaller().Marshall(deleteAlarmsRequest);
            DeleteAlarmsResponse           response = Invoke <DeleteAlarmsRequest, DeleteAlarmsResponse> (request, this.signer, DeleteAlarmsResponseUnmarshaller.GetInstance());

            return(response);
        }