IEcsLoadBalancerTarget

class aws_cdk.aws_ecs.IEcsLoadBalancerTarget(*args, **kwargs)

Bases: IApplicationLoadBalancerTarget, INetworkLoadBalancerTarget, ILoadBalancerTarget, Protocol

Interface for ECS load balancer target.

Methods

attach_to_application_target_group(target_group)

Attach load-balanced target to a TargetGroup.

May return JSON to directly add to the [Targets] list, or return undefined if the target will register itself with the load balancer.

Parameters:

target_group (IApplicationTargetGroup) –

Return type:

LoadBalancerTargetProps

attach_to_classic_lb(load_balancer)

Attach load-balanced target to a classic ELB.

Parameters:

load_balancer (LoadBalancer) – [disable-awslint:ref-via-interface] The load balancer to attach the target to.

Return type:

None

attach_to_network_target_group(target_group)

Attach load-balanced target to a TargetGroup.

May return JSON to directly add to the [Targets] list, or return undefined if the target will register itself with the load balancer.

Parameters:

target_group (INetworkTargetGroup) –

Return type:

LoadBalancerTargetProps

Attributes

connections

The network connections associated with this resource.