LoadBalancingAliases.

RegisterLoadBalancerInstance(ICakeContext, string, LoadBalancingSettings) Method

Summary

Adds the current 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.

Syntax

public static Task<bool> RegisterLoadBalancerInstance(this ICakeContext context, string loadBalancer, LoadBalancingSettings settings)

Attributes

Type Description
AsyncStateMachineAttribute
CakeMethodAliasAttribute
CakeAliasCategoryAttribute

Parameters

Name Type Description
context ICakeContext The cake context.
loadBalancer string The name associated with the load balancer.
settings LoadBalancingSettings The LoadBalancingSettings used during the request to AWS.

Return Value

Type Description
Task<bool>