Interface ApplicationLoadBalancerRedirectConfig

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

@Generated(value="jsii-pacmak/1.99.0 (build 8f757e4)", date="2024-06-13T18:49:18.816Z") @Stability(Stable) public interface ApplicationLoadBalancerRedirectConfig extends software.amazon.jsii.JsiiSerializable
Properties for a redirection config.

Example:

 ApplicationLoadBalancer lb;
 lb.addRedirect(ApplicationLoadBalancerRedirectConfig.builder()
         .sourceProtocol(ApplicationProtocol.HTTPS)
         .sourcePort(8443)
         .targetProtocol(ApplicationProtocol.HTTP)
         .targetPort(8080)
         .build());
 
  • Method Details

    • getOpen

      @Stability(Stable) @Nullable default Boolean getOpen()
      Allow anyone to connect to this listener.

      If this is specified, the listener will be opened up to anyone who can reach it. For internal load balancers this is anyone in the same VPC. For public load balancers, this is anyone on the internet.

      If you want to be more selective about who can access this load balancer, set this to false and use the listener's connections object to selectively grant access to the listener.

      Default: true

    • getSourcePort

      @Stability(Stable) @Nullable default Number getSourcePort()
      The port number to listen to.

      Default: 80

    • getSourceProtocol

      @Stability(Stable) @Nullable default ApplicationProtocol getSourceProtocol()
      The protocol of the listener being created.

      Default: HTTP

    • getTargetPort

      @Stability(Stable) @Nullable default Number getTargetPort()
      The port number to redirect to.

      Default: 443

    • getTargetProtocol

      @Stability(Stable) @Nullable default ApplicationProtocol getTargetProtocol()
      The protocol of the redirection target.

      Default: HTTPS

    • builder

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