IEcsLoadBalancerTarget

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

Bases: aws_cdk.aws_elasticloadbalancingv2.IApplicationLoadBalancerTarget, aws_cdk.aws_elasticloadbalancingv2.INetworkLoadBalancerTarget, aws_cdk.aws_elasticloadbalancing.ILoadBalancerTarget, typing_extensions.Protocol

Interface for ECS load balancer target.

__init__(*args, **kwargs)

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
Return type

Connections