AWS SDK for .NET Documentation
RegisterInstancesWithLoadBalancerRequest Class
AmazonAmazon.ElasticLoadBalancing.ModelRegisterInstancesWithLoadBalancerRequest Did this page help you?   Yes   No    Tell us about it...
Container for the parameters to the RegisterInstancesWithLoadBalancer operation.

Adds new instances to the load balancer.

Once the instance is registered, it starts receiving traffic and requests from the load balancer. Any instance that is not in any of the Availability Zones registered for the load balancer will be moved to the OutOfService state. It will move to the InService state when the Availability Zone is added to the load balancer.

When an instance registered with a load balancer is stopped and then restarted, the IP addresses associated with the instance changes. Elastic Load Balancing cannot recognize the new IP address, which prevents it from routing traffic to the instances. We recommend that you de-register your Amazon EC2 instances from your load balancer after you stop your instance, and then register the load balancer with your instance after you've restarted. To de-register your instances from load balancer, use DeregisterInstancesFromLoadBalancer action.

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

NOTE: In order for this call to be successful, you must provide the same account credentials as those that were used to create the load balancer.

NOTE: Completion of this API does not guarantee that operation has completed. Rather, it means that the request has been registered and the changes will happen shortly.

You can use DescribeLoadBalancers or DescribeInstanceHealth action to check the state of the newly registered instances.

Declaration Syntax
public class RegisterInstancesWithLoadBalancerRequest : AmazonWebServiceRequest
All MembersConstructorsMethodsProperties

Default constructor for a new RegisterInstancesWithLoadBalancerRequest object. Callers should use the properties or fluent setter (With...) methods to initialize this object after creating it.

RegisterInstancesWithLoadBalancerRequest(String, List<(Of <<'(Instance>)>>))
Constructs a new RegisterInstancesWithLoadBalancerRequest object. Callers should use the properties or fluent setter (With...) methods to initialize any additional object members.

Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Serves as a hash function for a particular type.
(Inherited from Object.)
Gets the type of the current instance.
(Inherited from Object.)
A list of instance IDs that should be registered with the load balancer.

The name associated with the load balancer. The name must be unique within your set of load balancers.

Returns a string that represents the current object.
(Inherited from Object.)
WithInstances(array<Instance>[]()[][]) Obsolete.
Adds elements to the Instances collection

WithInstances(IEnumerable<(Of <<'(Instance>)>>)) Obsolete.
Adds elements to the Instances collection

WithLoadBalancerName(String) Obsolete.
Sets the LoadBalancerName property

Inheritance Hierarchy
See Also

Assembly: AWSSDK (Module: AWSSDK) Version: (