/// <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)); }
/// <summary> /// Enables actions for the specified alarms. /// </summary> /// <param name="request">Container for the necessary parameters to execute the EnableAlarmActions service method.</param> /// /// <returns>The response from the EnableAlarmActions service method, as returned by CloudWatch.</returns> public EnableAlarmActionsResponse EnableAlarmActions(EnableAlarmActionsRequest request) { var marshaller = new EnableAlarmActionsRequestMarshaller(); var unmarshaller = EnableAlarmActionsResponseUnmarshaller.Instance; return(Invoke <EnableAlarmActionsRequest, EnableAlarmActionsResponse>(request, marshaller, unmarshaller)); }
/// <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); }
/// <summary> /// Initiates the asynchronous execution of the EnableAlarmActions operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the EnableAlarmActions operation.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns>The task object representing the asynchronous operation.</returns> public Task <EnableAlarmActionsResponse> EnableAlarmActionsAsync(EnableAlarmActionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new EnableAlarmActionsRequestMarshaller(); var unmarshaller = EnableAlarmActionsResponseUnmarshaller.Instance; return(InvokeAsync <EnableAlarmActionsRequest, EnableAlarmActionsResponse>(request, marshaller, unmarshaller, 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; }
public void EnableAlarmActionsMarshallTest() { var operation = service_model.FindOperation("EnableAlarmActions"); var request = InstantiateClassGenerator.Execute <EnableAlarmActionsRequest>(); var marshaller = new EnableAlarmActionsRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); }
/// <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; }
/// <summary> /// Initiates the asynchronous execution of the EnableAlarmActions operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the EnableAlarmActions operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndEnableAlarmActions /// operation.</returns> public IAsyncResult BeginEnableAlarmActions(EnableAlarmActionsRequest request, AsyncCallback callback, object state) { var marshaller = new EnableAlarmActionsRequestMarshaller(); var unmarshaller = EnableAlarmActionsResponseUnmarshaller.Instance; return BeginInvoke<EnableAlarmActionsRequest>(request, marshaller, unmarshaller, callback, state); }
/// <summary> /// Enables actions for the specified alarms. /// </summary> /// <param name="request">Container for the necessary parameters to execute the EnableAlarmActions service method.</param> /// /// <returns>The response from the EnableAlarmActions service method, as returned by CloudWatch.</returns> public EnableAlarmActionsResponse EnableAlarmActions(EnableAlarmActionsRequest request) { var marshaller = new EnableAlarmActionsRequestMarshaller(); var unmarshaller = EnableAlarmActionsResponseUnmarshaller.Instance; return Invoke<EnableAlarmActionsRequest,EnableAlarmActionsResponse>(request, marshaller, unmarshaller); }
/// <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); }
/// <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 async Task<EnableAlarmActionsResponse> EnableAlarmActionsAsync(EnableAlarmActionsRequest enableAlarmActionsRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new EnableAlarmActionsRequestMarshaller(); var unmarshaller = EnableAlarmActionsResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, EnableAlarmActionsRequest, EnableAlarmActionsResponse>(enableAlarmActionsRequest, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }
public void EnableAlarmActionsMarshallTest() { var operation = service_model.FindOperation("EnableAlarmActions"); var request = InstantiateClassGenerator.Execute<EnableAlarmActionsRequest>(); var marshaller = new EnableAlarmActionsRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); }
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> public IAsyncResult BeginEnableAlarmActions(EnableAlarmActionsRequest enableAlarmActionsRequest, AsyncCallback callback, object state) { return invokeEnableAlarmActions(enableAlarmActionsRequest, callback, state, false); }
/// <summary> /// Initiates the asynchronous execution of the EnableAlarmActions operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the EnableAlarmActions operation.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns>The task object representing the asynchronous operation.</returns> public Task<EnableAlarmActionsResponse> EnableAlarmActionsAsync(EnableAlarmActionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new EnableAlarmActionsRequestMarshaller(); var unmarshaller = EnableAlarmActionsResponseUnmarshaller.Instance; return InvokeAsync<EnableAlarmActionsRequest,EnableAlarmActionsResponse>(request, marshaller, unmarshaller, cancellationToken); }