Skip to content

LoadBalancerState

Source code in docs_src/capo_elastic_load_balancing_v2/types/load_balancer_state.py
class LoadBalancerState(TypedDict, closed=True):
    code: NotRequired[
        "capo_elastic_load_balancing_v2.types.load_balancer_state_enum.LoadBalancerStateEnum"
    ]
    """<p>The state code. The initial state of the load balancer is <code>provisioning</code>. After the load balancer is fully set up and ready to route traffic, its state is <code>active</code>. If load balancer is routing traffic but does not have the resources it needs to scale, its state is<code>active_impaired</code>. If the load balancer could not be set up, its state is <code>failed</code>.</p>"""
    reason: NotRequired["capo_elastic_load_balancing_v2.types.state_reason.StateReason"]
    """<p>A description of the state.</p>"""

code instance-attribute

code: NotRequired[LoadBalancerStateEnum]

The state code. The initial state of the load balancer is provisioning. After the load balancer is fully set up and ready to route traffic, its state is active. If load balancer is routing traffic but does not have the resources it needs to scale, its state isactive_impaired. If the load balancer could not be set up, its state is failed.

reason instance-attribute

reason: NotRequired[StateReason]

A description of the state.