Interface ApplicationLoadBalancerRedirectConfig
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ApplicationLoadBalancerRedirectConfig.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-21T06:34:08.109Z")
@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());
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forApplicationLoadBalancerRedirectConfigstatic final classAn implementation forApplicationLoadBalancerRedirectConfig -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default BooleangetOpen()Allow anyone to connect to this listener.default NumberThe port number to listen to.default ApplicationProtocolThe protocol of the listener being created.default NumberThe port number to redirect to.default ApplicationProtocolThe protocol of the redirection target.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
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
falseand use the listener'sconnectionsobject to selectively grant access to the listener.Default: true
-
getSourcePort
The port number to listen to.Default: 80
-
getSourceProtocol
The protocol of the listener being created.Default: HTTP
-
getTargetPort
The port number to redirect to.Default: 443
-
getTargetProtocol
The protocol of the redirection target.Default: HTTPS
-
builder
-