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-12-06T14:43:18.939Z")
@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
Modifier and TypeInterfaceDescriptionstatic final class
A builder forApplicationLoadBalancerRedirectConfig
static final class
An implementation forApplicationLoadBalancerRedirectConfig
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default Boolean
getOpen()
Allow anyone to connect to this listener.default Number
The port number to listen to.default ApplicationProtocol
The protocol of the listener being created.default Number
The port number to redirect to.default ApplicationProtocol
The 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
false
and use the listener'sconnections
object 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
-