AWS SDK for .NET Documentation
DeregisterInstancesFromLoadBalancer Method (deregisterInstancesFromLoadBalancerRequest)
AmazonAmazon.ElasticLoadBalancingAmazonElasticLoadBalancingDeregisterInstancesFromLoadBalancer(DeregisterInstancesFromLoadBalancerRequest) Did this page help you?   Yes   No    Tell us about it...

Deregisters instances from the load balancer. Once the instance is deregistered, it will stop receiving traffic from the load balancer.

In order to successfully call this API, the same account credentials as those used to create the load balancer must be provided.

For more information, see De-register and Register Amazon EC2 Instances in the Elastic Load Balancing Developer Guide .

You can use DescribeLoadBalancers to verify if the instance is deregistered from the load balancer.

Declaration Syntax
C#
DeregisterInstancesFromLoadBalancerResponse DeregisterInstancesFromLoadBalancer(
	DeregisterInstancesFromLoadBalancerRequest deregisterInstancesFromLoadBalancerRequest
)
Parameters
deregisterInstancesFromLoadBalancerRequest (DeregisterInstancesFromLoadBalancerRequest)
Container for the necessary parameters to execute the DeregisterInstancesFromLoadBalancer service method on AmazonElasticLoadBalancing.
Return Value
The response from the DeregisterInstancesFromLoadBalancer service method, as returned by AmazonElasticLoadBalancing.
Exceptions

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)