Skip to content
v2.278.0

IApplicationTargetGroup Interface ​

A Target Group for Application Load Balancers.

Properties ​

The environment this resource belongs to.
notes

For resources that are created and managed in a Stack (those created by creating new class instances like new Role(), new Bucket(), etc.), this is always the same as the environment of the stack they belong to.

For referenced resources (those obtained from referencing methods like Role.fromRoleArn(), Bucket.fromBucketName(), etc.), they might be different than the stack they were imported into.

loadBalancerArnsstringload_balancer_arnsstrloadBalancerArnsStringLoadBalancerArnsstringLoadBalancerArns*string #
A token representing a list of ARNs of the load balancers that route traffic to this target group.
loadBalancerAttachedIDependableload_balancer_attachedIDependableloadBalancerAttachedIDependableLoadBalancerAttachedIDependableLoadBalancerAttachedIDependable #
Return an object to depend on the listeners added to this target group.
nodeNodenodeNodenodeNodeNodeNodeNodeNode #
The tree node.
targetGroupArnstringtarget_group_arnstrtargetGroupArnStringTargetGroupArnstringTargetGroupArn*string #
ARN of the target group.
targetGroupNamestringtarget_group_namestrtargetGroupNameStringTargetGroupNamestringTargetGroupName*string #
The name of the target group.
targetGroupRefTargetGroupReferencetarget_group_refTargetGroupReferencetargetGroupRefTargetGroupReferenceTargetGroupRefTargetGroupReferenceTargetGroupRefTargetGroupReference #
A reference to a TargetGroup resource.

Methods ​

addTarget(...targets: IApplicationLoadBalancerTarget[]): voiddef add_target(self, targets: IApplicationLoadBalancerTarget) -> Nonepublic void addTarget(IApplicationLoadBalancerTarget targets)public void AddTarget(IApplicationLoadBalancerTarget targets)func AddTarget(Targets IApplicationLoadBalancerTarget) #
Add a load balancing target to this target group.
registerConnectable(connectable: IConnectable, portRange?: Port): voiddef register_connectable(self, connectable: IConnectable, port_range: typing.Optional[Port] = None) -> Nonepublic void registerConnectable(IConnectable connectable, Port portRange)public void RegisterConnectable(IConnectable connectable, Port? portRange = null)func RegisterConnectable(Connectable IConnectable, PortRange Port) #
Register a connectable as a member of this target group.

Don't call this directly. It will be called by load balancing targets.

registerListener(listener: IApplicationListener, associatingConstruct?: IConstruct): voiddef register_listener(self, listener: IApplicationListener, associating_construct: typing.Optional[IConstruct] = None) -> Nonepublic void registerListener(IApplicationListener listener, IConstruct associatingConstruct)public void RegisterListener(IApplicationListener listener, IConstruct? associatingConstruct = null)func RegisterListener(Listener IApplicationListener, AssociatingConstruct IConstruct) #
Register a listener that is load balancing to this target group.

Don't call this directly. It will be called by listeners.

with(...mixins: IMixin[]): IConstructdef with(self, mixins: IMixin) -> IConstructpublic IConstruct with(IMixin mixins)public IConstruct With(IMixin mixins)func With(Mixins IMixin) IConstruct #
Applies one or more mixins to this construct.

Mixins are applied in order. The list of constructs is captured at the start of the call, so constructs added by a mixin will not be visited.

1 parameter · returns

Parameters

  • mixinsmixinsmixinsmixinsMixins — The mixins to apply.

Returns: This construct for chaining