/// <summary> /// <para> Deregisters instances from the LoadBalancer. Once the instance is deregistered, it will stop receiving traffic from the LoadBalancer. /// </para> <para> In order to successfully call this API, the same account credentials as those used to create the LoadBalancer must be /// provided. </para> /// </summary> /// /// <param name="deregisterInstancesFromLoadBalancerRequest">Container for the necessary parameters to execute the /// DeregisterInstancesFromLoadBalancer service method on AmazonElasticLoadBalancing.</param> /// /// <returns>The response from the DeregisterInstancesFromLoadBalancer service method, as returned by AmazonElasticLoadBalancing.</returns> /// /// <exception cref="InvalidInstanceException"/> /// <exception cref="LoadBalancerNotFoundException"/> public DeregisterInstancesFromLoadBalancerResponse DeregisterInstancesFromLoadBalancer(DeregisterInstancesFromLoadBalancerRequest deregisterInstancesFromLoadBalancerRequest) { IRequest <DeregisterInstancesFromLoadBalancerRequest> request = new DeregisterInstancesFromLoadBalancerRequestMarshaller().Marshall(deregisterInstancesFromLoadBalancerRequest); DeregisterInstancesFromLoadBalancerResponse response = Invoke <DeregisterInstancesFromLoadBalancerRequest, DeregisterInstancesFromLoadBalancerResponse> (request, this.signer, DeregisterInstancesFromLoadBalancerResponseUnmarshaller.GetInstance()); return(response); }
public void DeregisterInstancesFromLoadBalancerMarshallTest() { var operation = service_model.FindOperation("DeregisterInstancesFromLoadBalancer"); var request = InstantiateClassGenerator.Execute <DeregisterInstancesFromLoadBalancerRequest>(); var marshaller = new DeregisterInstancesFromLoadBalancerRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), false, null); var response = DeregisterInstancesFromLoadBalancerResponseUnmarshaller.Instance.Unmarshall(context) as DeregisterInstancesFromLoadBalancerResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// Initiates the asynchronous execution of the DeregisterInstancesFromLoadBalancer operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeregisterInstancesFromLoadBalancer 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<DeregisterInstancesFromLoadBalancerResponse> DeregisterInstancesFromLoadBalancerAsync(DeregisterInstancesFromLoadBalancerRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeregisterInstancesFromLoadBalancerRequestMarshaller(); var unmarshaller = DeregisterInstancesFromLoadBalancerResponseUnmarshaller.Instance; return InvokeAsync<DeregisterInstancesFromLoadBalancerRequest,DeregisterInstancesFromLoadBalancerResponse>(request, marshaller, unmarshaller, cancellationToken); }
internal DeregisterInstancesFromLoadBalancerResponse DeregisterInstancesFromLoadBalancer(DeregisterInstancesFromLoadBalancerRequest request) { var marshaller = new DeregisterInstancesFromLoadBalancerRequestMarshaller(); var unmarshaller = DeregisterInstancesFromLoadBalancerResponseUnmarshaller.Instance; return Invoke<DeregisterInstancesFromLoadBalancerRequest,DeregisterInstancesFromLoadBalancerResponse>(request, marshaller, unmarshaller); }
IAsyncResult invokeDeregisterInstancesFromLoadBalancer(DeregisterInstancesFromLoadBalancerRequest deregisterInstancesFromLoadBalancerRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new DeregisterInstancesFromLoadBalancerRequestMarshaller().Marshall(deregisterInstancesFromLoadBalancerRequest); var unmarshaller = DeregisterInstancesFromLoadBalancerResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
/// <summary> /// <para> Deregisters instances from the load balancer. Once the instance is deregistered, it will stop receiving traffic from the load /// balancer. </para> <para> In order to successfully call this API, the same account credentials as those used to create the load balancer must /// be provided. </para> <para>For more information, see <a href="http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/US_DeReg_Reg_Instances.html">De-register and Register Amazon /// EC2 Instances</a> in the <i>Elastic Load Balancing Developer Guide</i> .</para> <para>You can use DescribeLoadBalancers to verify if the /// instance is deregistered from the load balancer.</para> /// </summary> /// /// <param name="deregisterInstancesFromLoadBalancerRequest">Container for the necessary parameters to execute the /// DeregisterInstancesFromLoadBalancer service method on AmazonElasticLoadBalancing.</param> /// /// <returns>The response from the DeregisterInstancesFromLoadBalancer service method, as returned by AmazonElasticLoadBalancing.</returns> /// /// <exception cref="T:Amazon.ElasticLoadBalancing.Model.LoadBalancerNotFoundException" /> /// <exception cref="T:Amazon.ElasticLoadBalancing.Model.InvalidInstanceException" /> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public async Task<DeregisterInstancesFromLoadBalancerResponse> DeregisterInstancesFromLoadBalancerAsync(DeregisterInstancesFromLoadBalancerRequest deregisterInstancesFromLoadBalancerRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeregisterInstancesFromLoadBalancerRequestMarshaller(); var unmarshaller = DeregisterInstancesFromLoadBalancerResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, DeregisterInstancesFromLoadBalancerRequest, DeregisterInstancesFromLoadBalancerResponse>(deregisterInstancesFromLoadBalancerRequest, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }
/// <summary> /// <para> Deregisters instances from the LoadBalancer. Once the instance /// is deregistered, it will stop receiving traffic from the LoadBalancer. /// </para> <para> In order to successfully call this API, the same /// account credentials as those used to create the LoadBalancer must be /// provided. </para> /// </summary> /// /// <param name="deregisterInstancesFromLoadBalancerRequest">Container for /// the necessary parameters to execute the /// DeregisterInstancesFromLoadBalancer service method on /// AmazonElasticLoadBalancing.</param> /// /// <returns>The response from the DeregisterInstancesFromLoadBalancer /// service method, as returned by AmazonElasticLoadBalancing.</returns> /// /// <exception cref="InvalidInstanceException"/> /// <exception cref="LoadBalancerNotFoundException"/> public DeregisterInstancesFromLoadBalancerResponse DeregisterInstancesFromLoadBalancer(DeregisterInstancesFromLoadBalancerRequest deregisterInstancesFromLoadBalancerRequest) { IRequest<DeregisterInstancesFromLoadBalancerRequest> request = new DeregisterInstancesFromLoadBalancerRequestMarshaller().Marshall(deregisterInstancesFromLoadBalancerRequest); DeregisterInstancesFromLoadBalancerResponse response = Invoke<DeregisterInstancesFromLoadBalancerRequest, DeregisterInstancesFromLoadBalancerResponse> (request, this.signer, DeregisterInstancesFromLoadBalancerResponseUnmarshaller.GetInstance()); return response; }
/// <summary> /// Initiates the asynchronous execution of the DeregisterInstancesFromLoadBalancer operation. /// <seealso cref="Amazon.ElasticLoadBalancing.IAmazonElasticLoadBalancing.DeregisterInstancesFromLoadBalancer"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeregisterInstancesFromLoadBalancer 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<DeregisterInstancesFromLoadBalancerResponse> DeregisterInstancesFromLoadBalancerAsync(DeregisterInstancesFromLoadBalancerRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeregisterInstancesFromLoadBalancerRequestMarshaller(); var unmarshaller = DeregisterInstancesFromLoadBalancerResponseUnmarshaller.GetInstance(); return Invoke<IRequest, DeregisterInstancesFromLoadBalancerRequest, DeregisterInstancesFromLoadBalancerResponse>(request, marshaller, unmarshaller, signer, cancellationToken); }
public void DeregisterInstancesFromLoadBalancerMarshallTest() { var operation = service_model.FindOperation("DeregisterInstancesFromLoadBalancer"); var request = InstantiateClassGenerator.Execute<DeregisterInstancesFromLoadBalancerRequest>(); var marshaller = new DeregisterInstancesFromLoadBalancerRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), false, null); var response = DeregisterInstancesFromLoadBalancerResponseUnmarshaller.Instance.Unmarshall(context) as DeregisterInstancesFromLoadBalancerResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
IAsyncResult invokeDeregisterInstancesFromLoadBalancer(DeregisterInstancesFromLoadBalancerRequest request, AsyncCallback callback, object state, bool synchronized) { var marshaller = new DeregisterInstancesFromLoadBalancerRequestMarshaller(); var unmarshaller = DeregisterInstancesFromLoadBalancerResponseUnmarshaller.Instance; return Invoke(request, callback, state, synchronized, marshaller, unmarshaller, signer); }
/// <summary> /// Initiates the asynchronous execution of the DeregisterInstancesFromLoadBalancer operation. /// <seealso cref="Amazon.ElasticLoadBalancing.IAmazonElasticLoadBalancing"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeregisterInstancesFromLoadBalancer operation on AmazonElasticLoadBalancingClient.</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 EndDeregisterInstancesFromLoadBalancer /// operation.</returns> public IAsyncResult BeginDeregisterInstancesFromLoadBalancer(DeregisterInstancesFromLoadBalancerRequest request, AsyncCallback callback, object state) { var marshaller = new DeregisterInstancesFromLoadBalancerRequestMarshaller(); var unmarshaller = DeregisterInstancesFromLoadBalancerResponseUnmarshaller.Instance; return BeginInvoke<DeregisterInstancesFromLoadBalancerRequest>(request, marshaller, unmarshaller, callback, state); }