Interface ApplicationLoadBalancerAttributes

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
ApplicationLoadBalancerAttributes.Jsii$Proxy

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-10-31T19:12:58.030Z") @Stability(Stable) public interface ApplicationLoadBalancerAttributes extends software.amazon.jsii.JsiiSerializable
Properties to reference an existing load balancer.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.ec2.*;
 import software.amazon.awscdk.services.elasticloadbalancingv2.*;
 Vpc vpc;
 ApplicationLoadBalancerAttributes applicationLoadBalancerAttributes = ApplicationLoadBalancerAttributes.builder()
         .loadBalancerArn("loadBalancerArn")
         .securityGroupId("securityGroupId")
         // the properties below are optional
         .loadBalancerCanonicalHostedZoneId("loadBalancerCanonicalHostedZoneId")
         .loadBalancerDnsName("loadBalancerDnsName")
         .securityGroupAllowsAllOutbound(false)
         .vpc(vpc)
         .build();
 
  • Method Details

    • getLoadBalancerArn

      @Stability(Stable) @NotNull String getLoadBalancerArn()
      ARN of the load balancer.
    • getSecurityGroupId

      @Stability(Stable) @NotNull String getSecurityGroupId()
      ID of the load balancer's security group.
    • getLoadBalancerCanonicalHostedZoneId

      @Stability(Stable) @Nullable default String getLoadBalancerCanonicalHostedZoneId()
      The canonical hosted zone ID of this load balancer.

      Default: - When not provided, LB cannot be used as Route53 Alias target.

    • getLoadBalancerDnsName

      @Stability(Stable) @Nullable default String getLoadBalancerDnsName()
      The DNS name of this load balancer.

      Default: - When not provided, LB cannot be used as Route53 Alias target.

    • getSecurityGroupAllowsAllOutbound

      @Stability(Stable) @Nullable default Boolean getSecurityGroupAllowsAllOutbound()
      Whether the security group allows all outbound traffic or not.

      Unless set to false, no egress rules will be added to the security group.

      Default: true

    • getVpc

      @Stability(Stable) @Nullable default IVpc getVpc()
      The VPC this load balancer has been created in, if available.

      Default: - If the Load Balancer was imported and a VPC was not specified, the VPC is not available.

    • builder

      @Stability(Stable) static ApplicationLoadBalancerAttributes.Builder builder()
      Returns:
      a ApplicationLoadBalancerAttributes.Builder of ApplicationLoadBalancerAttributes