# IApplicationListener

Properties to reference an existing listener.

Extends: [IListener](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_elasticloadbalancingv2.IListener.html), [IConnectable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.IConnectable.html), [IApplicationListenerRef](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_elasticloadbalancingv2.IApplicationListenerRef.html)
Implemented by: [ApplicationListener](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_elasticloadbalancingv2.ApplicationListener.html)
Obtainable from: [ApplicationListener.fromApplicationListenerAttributes](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_elasticloadbalancingv2.ApplicationListener.html#fromapplicationlistenerattributes), [ApplicationListener.fromLookup](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_elasticloadbalancingv2.ApplicationListener.html#fromlookup)
Used as argument in: [HttpAlbIntegration (initializer)](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_apigatewayv2_integrations.HttpAlbIntegration.html#initializer), IApplicationTargetGroup.registerListener, ListenerAction.bind

- Source: [`aws-elasticloadbalancingv2/lib/alb/application-listener.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-elasticloadbalancingv2/lib/alb/application-listener.ts#L637)
- Type last changed: v2.234.0 · 8 Jan 2026

## Properties

- `connections`: [Connections](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.Connections.html) — The network connections associated with this resource.

- `env`: [ResourceEnvironment](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.ResourceEnvironment.html) — The environment this resource belongs to.

  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.

- `isApplicationListener`: boolean — Indicates that this is an ALB listener.

  Will always return true, but is necessary to prevent accidental structural
  equality in TypeScript.

- `listenerArn`: string — ARN of the listener.

- `listenerRef`: [ListenerReference](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_elasticloadbalancingv2.ListenerReference.html) — A reference to a Listener resource.

- `node`: [Node](https://docs.aws.amazon.com/cdk/api/v2/docs/constructs.Node.html) — The tree node.

- `stack`: [Stack](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.Stack.html) — The stack in which this resource is defined.

## Methods

- `addAction(id: string, props: AddApplicationActionProps): void` — Perform the given action on incoming requests.

  This allows full control of the default action of the load balancer,
  including Action chaining, fixed responses and redirect responses. See
  the `ListenerAction` class for all options.

  It's possible to add routing conditions to the Action added in this way.

  It is not possible to add a default action to an imported IApplicationListener.
  In order to add actions to an imported IApplicationListener a `priority`
  must be provided.

- `addCertificates(id: string, certificates: IListenerCertificate[]): void` — Add one or more certificates to this listener.

- `addTargetGroups(id: string, props: AddApplicationTargetGroupsProps): void` — Load balance incoming requests to the given target groups.

  It's possible to add conditions to the TargetGroups added in this way.
  At least one TargetGroup must be added without conditions.

- `addTargets(id: string, props: AddApplicationTargetsProps): ApplicationTargetGroup` — Load balance incoming requests to the given load balancing targets.

  This method implicitly creates an ApplicationTargetGroup for the targets
  involved.

  It's possible to add conditions to the targets added in this way. At least
  one set of targets must be added without conditions.

  **Returns:** The newly created target group

- `applyRemovalPolicy(policy: RemovalPolicy): void` — Apply the given removal policy to this resource.

  The Removal Policy controls what happens to this resource when it stops
  being managed by CloudFormation, either because you've removed it from the
  CDK application or because you've made a change that requires the resource
  to be replaced.

  The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS
  account for data recovery and cleanup later (`RemovalPolicy.RETAIN`).

- `registerConnectable(connectable: IConnectable, portRange: Port): void` — Register that a connectable that has been added to this load balancer.

  Don't call this directly. It is called by ApplicationTargetGroup.

- `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.

  **Parameters**

  - `mixins` — The mixins to apply.

  **Returns:** This construct for chaining
