Interface ApplicationLoadBalancerProps

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

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-27T16:50:57.156Z") @Stability(Stable) public interface ApplicationLoadBalancerProps extends software.amazon.jsii.JsiiSerializable
Properties to define an application 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.*;
 import software.amazon.awscdk.services.certificatemanager.*;
 import software.amazon.awscdk.services.ecs.patterns.*;
 import software.amazon.awscdk.services.elasticloadbalancingv2.*;
 import software.amazon.awscdk.services.route53.*;
 Certificate certificate;
 HostedZone hostedZone;
 ApplicationLoadBalancerProps applicationLoadBalancerProps = ApplicationLoadBalancerProps.builder()
         .listeners(List.of(ApplicationListenerProps.builder()
                 .name("name")
                 // the properties below are optional
                 .certificate(certificate)
                 .port(123)
                 .protocol(ApplicationProtocol.HTTP)
                 .sslPolicy(SslPolicy.RECOMMENDED_TLS)
                 .build()))
         .name("name")
         // the properties below are optional
         .domainName("domainName")
         .domainZone(hostedZone)
         .idleTimeout(Duration.minutes(30))
         .publicLoadBalancer(false)
         .build();
 
  • Method Details

    • getListeners

      @Stability(Stable) @NotNull List<ApplicationListenerProps> getListeners()
      Listeners (at least one listener) attached to this load balancer.
    • getName

      @Stability(Stable) @NotNull String getName()
      Name of the load balancer.
    • getDomainName

      @Stability(Stable) @Nullable default String getDomainName()
      The domain name for the service, e.g. "api.example.com.".

      Default: - No domain name.

    • getDomainZone

      @Stability(Stable) @Nullable default IHostedZone getDomainZone()
      The Route53 hosted zone for the domain, e.g. "example.com.".

      Default: - No Route53 hosted domain zone.

    • getIdleTimeout

      @Stability(Stable) @Nullable default Duration getIdleTimeout()
      The load balancer idle timeout, in seconds.

      Can be between 1 and 4000 seconds.

      Default: - CloudFormation sets idle timeout to 60 seconds

    • getPublicLoadBalancer

      @Stability(Stable) @Nullable default Boolean getPublicLoadBalancer()
      Determines whether the Load Balancer will be internet-facing.

      Default: true

    • builder

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