Interface ListenerProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable,ListenerOptions
- All Known Implementing Classes:
ListenerProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.110.0 (build 336b265)",
date="2025-04-22T23:08:14.046Z")
@Stability(Stable)
public interface ListenerProps
extends software.amazon.jsii.JsiiSerializable, ListenerOptions
Construct properties for Listener.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.globalaccelerator.*;
Accelerator accelerator;
ListenerProps listenerProps = ListenerProps.builder()
.accelerator(accelerator)
.portRanges(List.of(PortRange.builder()
.fromPort(123)
// the properties below are optional
.toPort(123)
.build()))
// the properties below are optional
.clientAffinity(ClientAffinity.NONE)
.listenerName("listenerName")
.protocol(ConnectionProtocol.TCP)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forListenerPropsstatic final classAn implementation forListenerProps -
Method Summary
Modifier and TypeMethodDescriptionstatic ListenerProps.Builderbuilder()The accelerator for this listener.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJsonMethods inherited from interface software.amazon.awscdk.services.globalaccelerator.ListenerOptions
getClientAffinity, getListenerName, getPortRanges, getProtocol
-
Method Details
-
getAccelerator
The accelerator for this listener. -
builder
- Returns:
- a
ListenerProps.BuilderofListenerProps
-