NetworkLoadBalancerEndpointProps

class aws_cdk.aws_globalaccelerator_endpoints.NetworkLoadBalancerEndpointProps(*, weight=None)

Bases: object

Properties for a NetworkLoadBalancerEndpoint.

Parameters

weight (Union[int, float, None]) – Endpoint weight across all endpoints in the group. Must be a value between 0 and 255. Default: 128

ExampleMetadata

infused

Example:

# nlb: elbv2.NetworkLoadBalancer
# listener: globalaccelerator.Listener


listener.add_endpoint_group("Group",
    endpoints=[
        ga_endpoints.NetworkLoadBalancerEndpoint(nlb,
            weight=128
        )
    ]
)

Attributes

weight

Endpoint weight across all endpoints in the group.

Must be a value between 0 and 255.

Default

128

Return type

Union[int, float, None]