/// <summary> /// <para> Creates a notification action for an Auto Scaling group when a specified event takes place. </para> /// </summary> /// /// <param name="putNotificationConfigurationRequest">Container for the necessary parameters to execute the PutNotificationConfiguration service /// method on AmazonAutoScaling.</param> /// /// <exception cref="LimitExceededException"/> public PutNotificationConfigurationResponse PutNotificationConfiguration(PutNotificationConfigurationRequest putNotificationConfigurationRequest) { IRequest <PutNotificationConfigurationRequest> request = new PutNotificationConfigurationRequestMarshaller().Marshall(putNotificationConfigurationRequest); PutNotificationConfigurationResponse response = Invoke <PutNotificationConfigurationRequest, PutNotificationConfigurationResponse> (request, this.signer, PutNotificationConfigurationResponseUnmarshaller.GetInstance()); return(response); }
public void PutNotificationConfigurationMarshallTest() { var operation = service_model.FindOperation("PutNotificationConfiguration"); var request = InstantiateClassGenerator.Execute <PutNotificationConfigurationRequest>(); var marshaller = new PutNotificationConfigurationRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); }
/// <summary> /// Initiates the asynchronous execution of the PutNotificationConfiguration operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the PutNotificationConfiguration 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<PutNotificationConfigurationResponse> PutNotificationConfigurationAsync(PutNotificationConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new PutNotificationConfigurationRequestMarshaller(); var unmarshaller = PutNotificationConfigurationResponseUnmarshaller.Instance; return InvokeAsync<PutNotificationConfigurationRequest,PutNotificationConfigurationResponse>(request, marshaller, unmarshaller, cancellationToken); }
internal PutNotificationConfigurationResponse PutNotificationConfiguration(PutNotificationConfigurationRequest request) { var marshaller = new PutNotificationConfigurationRequestMarshaller(); var unmarshaller = PutNotificationConfigurationResponseUnmarshaller.Instance; return Invoke<PutNotificationConfigurationRequest,PutNotificationConfigurationResponse>(request, marshaller, unmarshaller); }
IAsyncResult invokePutNotificationConfiguration(PutNotificationConfigurationRequest putNotificationConfigurationRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new PutNotificationConfigurationRequestMarshaller().Marshall(putNotificationConfigurationRequest); var unmarshaller = PutNotificationConfigurationResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
/// <summary> /// Initiates the asynchronous execution of the PutNotificationConfiguration operation. /// <seealso cref="Amazon.AutoScaling.IAmazonAutoScaling.PutNotificationConfiguration"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the PutNotificationConfiguration 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<PutNotificationConfigurationResponse> PutNotificationConfigurationAsync(PutNotificationConfigurationRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new PutNotificationConfigurationRequestMarshaller(); var unmarshaller = PutNotificationConfigurationResponseUnmarshaller.GetInstance(); return Invoke<IRequest, PutNotificationConfigurationRequest, PutNotificationConfigurationResponse>(request, marshaller, unmarshaller, signer, cancellationToken); }
/// <summary> /// Initiates the asynchronous execution of the PutNotificationConfiguration operation. /// <seealso cref="Amazon.AutoScaling.IAmazonAutoScaling"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the PutNotificationConfiguration operation on AmazonAutoScalingClient.</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 EndPutNotificationConfiguration /// operation.</returns> public IAsyncResult BeginPutNotificationConfiguration(PutNotificationConfigurationRequest request, AsyncCallback callback, object state) { var marshaller = new PutNotificationConfigurationRequestMarshaller(); var unmarshaller = PutNotificationConfigurationResponseUnmarshaller.Instance; return BeginInvoke<PutNotificationConfigurationRequest>(request, marshaller, unmarshaller, callback, state); }
public void PutNotificationConfigurationMarshallTest() { var operation = service_model.FindOperation("PutNotificationConfiguration"); var request = InstantiateClassGenerator.Execute<PutNotificationConfigurationRequest>(); var marshaller = new PutNotificationConfigurationRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); }
/// <summary> /// <para> Configures an Auto Scaling group to send notifications when specified events take place. Subscribers to this topic can have messages /// for events delivered to an endpoint such as a web server or email address. </para> <para> A new <c>PutNotificationConfiguration</c> /// overwrites an existing configuration.</para> /// </summary> /// /// <param name="putNotificationConfigurationRequest">Container for the necessary parameters to execute the PutNotificationConfiguration service /// method on AmazonAutoScaling.</param> /// /// <exception cref="LimitExceededException"/> public PutNotificationConfigurationResponse PutNotificationConfiguration(PutNotificationConfigurationRequest putNotificationConfigurationRequest) { IRequest<PutNotificationConfigurationRequest> request = new PutNotificationConfigurationRequestMarshaller().Marshall(putNotificationConfigurationRequest); PutNotificationConfigurationResponse response = Invoke<PutNotificationConfigurationRequest, PutNotificationConfigurationResponse> (request, this.signer, PutNotificationConfigurationResponseUnmarshaller.GetInstance()); return response; }
/// <summary> /// Initiates the asynchronous execution of the PutNotificationConfiguration operation. /// <seealso cref="Amazon.AutoScaling.IAmazonAutoScaling.PutNotificationConfiguration"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the PutNotificationConfiguration 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 async Task<PutNotificationConfigurationResponse> PutNotificationConfigurationAsync(PutNotificationConfigurationRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new PutNotificationConfigurationRequestMarshaller(); var unmarshaller = PutNotificationConfigurationResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, PutNotificationConfigurationRequest, PutNotificationConfigurationResponse>(request, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }