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# |
public 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
Exception | Condition |
---|---|
LoadBalancerNotFoundException | |
InvalidInstanceException |