# IApplicationLoadBalancer

An application load balancer.

Extends: IApplicationLoadBalancer
Extends: ILoadBalancerV2, IConnectable, IApplicationLoadBalancerRef
Implemented by: ApplicationLoadBalancer

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

## Properties

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

- `env`: [ResourceEnvironment](/cdk/api/v2/docs/aws-cdk-lib.interfaces.ResourceEnvironment.html) (required) — 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.

- `ipAddressType`: [IpAddressType](/cdk/api/v2/docs/aws-cdk-lib.aws_elasticloadbalancingv2.IpAddressType.html) = IpAddressType.IPV4 — The IP Address Type for this load balancer.

  If the `@aws-cdk/aws-elasticloadbalancingV2:albDualstackWithoutPublicIpv4SecurityGroupRulesDefault`
  feature flag is set (the default for new projects), and `addListener()` is called with `open: true`,
  the load balancer's security group will automatically include both IPv4 and IPv6 ingress rules
  when using `IpAddressType.DUAL_STACK_WITHOUT_PUBLIC_IPV4`.

  For existing projects that only have IPv4 rules, you can opt-in to IPv6 ingress rules
  by enabling the feature flag in your cdk.json file. Note that enabling this feature flag
  will modify existing security group rules.

- `isApplicationLoadBalancer`: boolean (required) — Indicates that this is an Application Load Balancer.

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

- `listeners`: [ApplicationListener](/cdk/api/v2/docs/aws-cdk-lib.aws_elasticloadbalancingv2.ApplicationListener.html)[] (required) — A list of listeners that have been added to the load balancer.

  This list is only valid for owned constructs.

- `loadBalancerArn`: string (required) — The ARN of this load balancer.

- `loadBalancerCanonicalHostedZoneId`: string (required) — The canonical hosted zone ID of this load balancer.

  Example value: `Z2P70J7EXAMPLE`

- `loadBalancerDnsName`: string (required) — The DNS name of this load balancer.

  Example value: `my-load-balancer-424835706.us-west-2.elb.amazonaws.com`

- `loadBalancerRef`: [LoadBalancerReference](/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_elasticloadbalancingv2.LoadBalancerReference.html) (required) — A reference to a LoadBalancer resource.

- `metrics`: [IApplicationLoadBalancerMetrics](/cdk/api/v2/docs/aws-cdk-lib.aws_elasticloadbalancingv2.IApplicationLoadBalancerMetrics.html) (required) — All metrics available for this load balancer.

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

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

- `vpc`: [IVpc](/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.IVpc.html) — The VPC this load balancer has been created in (if available).

  If this interface is the result of an import call to fromApplicationLoadBalancerAttributes,
  the vpc attribute will be undefined unless specified in the optional properties of that method.

## Methods

- `addListener(id: string, props: BaseApplicationListenerProps): ApplicationListener` — Add a new listener to this load balancer.

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

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