| Modifier and Type | Method and Description |
|---|---|
Listener.Builder |
accelerator(IAccelerator accelerator)
(experimental) The accelerator for this listener.
|
Listener |
build() |
Listener.Builder |
clientAffinity(ClientAffinity clientAffinity)
(experimental) Client affinity to direct all requests from a user to the same endpoint.
|
static Listener.Builder |
create(software.constructs.Construct scope,
String id) |
Listener.Builder |
listenerName(String listenerName)
(experimental) Name of the listener.
|
Listener.Builder |
portRanges(List<? extends PortRange> portRanges)
(experimental) The list of port ranges for the connections from clients to the accelerator.
|
Listener.Builder |
protocol(ConnectionProtocol protocol)
(experimental) The protocol for the connections from clients to the accelerator.
|
@Stability(value=Experimental) public static Listener.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.Listener.Builder.@Stability(value=Experimental) public Listener.Builder portRanges(List<? extends PortRange> portRanges)
portRanges - The list of port ranges for the connections from clients to the accelerator. This parameter is required.this@Stability(value=Experimental) public Listener.Builder clientAffinity(ClientAffinity clientAffinity)
If you have stateful applications, client affinity lets you direct all requests from a user to the same endpoint.
By default, each connection from each client is routed to seperate endpoints. Set client affinity to SOURCE_IP to route all connections from a single client to the same endpoint.
Default: ClientAffinity.NONE
clientAffinity - Client affinity to direct all requests from a user to the same endpoint. This parameter is required.this@Stability(value=Experimental) public Listener.Builder listenerName(String listenerName)
Default: - logical ID of the resource
listenerName - Name of the listener. This parameter is required.this@Stability(value=Experimental) public Listener.Builder protocol(ConnectionProtocol protocol)
Default: ConnectionProtocol.TCP
protocol - The protocol for the connections from clients to the accelerator. This parameter is required.this@Stability(value=Experimental) public Listener.Builder accelerator(IAccelerator accelerator)
accelerator - The accelerator for this listener. This parameter is required.thisCopyright © 2021. All rights reserved.