Interface IApplicationLoadBalancer

All Superinterfaces:
IConnectable, software.constructs.IConstruct, software.constructs.IDependable, ILoadBalancerV2, IResource, software.amazon.jsii.JsiiSerializable
All Known Subinterfaces:
IApplicationLoadBalancer.Jsii$Default
All Known Implementing Classes:
ApplicationLoadBalancer, IApplicationLoadBalancer.Jsii$Proxy

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2025-01-15T21:09:19.252Z") @Stability(Stable) public interface IApplicationLoadBalancer extends software.amazon.jsii.JsiiSerializable, ILoadBalancerV2, IConnectable
An application load balancer.
  • Method Details

    • getListeners

      @Stability(Stable) @NotNull List<ApplicationListener> getListeners()
      A list of listeners that have been added to the load balancer.

      This list is only valid for owned constructs.

    • getLoadBalancerArn

      @Stability(Stable) @NotNull String getLoadBalancerArn()
      The ARN of this load balancer.
    • getMetrics

      @Stability(Stable) @NotNull IApplicationLoadBalancerMetrics getMetrics()
      All metrics available for this load balancer.
    • getIpAddressType

      @Stability(Stable) @Nullable default IpAddressType getIpAddressType()
      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.

      Default: IpAddressType.IPV4

    • getVpc

      @Stability(Stable) @Nullable default IVpc getVpc()
      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.

    • addListener

      @Stability(Stable) @NotNull ApplicationListener addListener(@NotNull String id, @NotNull BaseApplicationListenerProps props)
      Add a new listener to this load balancer.

      Parameters:
      id - This parameter is required.
      props - This parameter is required.