The construct for the Listener.
import { Listener } from 'aws-cdk-lib/aws-globalaccelerator';Or use the module namespace:
import * as globalaccelerator from 'aws-cdk-lib/aws-globalaccelerator';
// globalaccelerator.ListenerConfiguration passed to the constructor as ListenerProps.
acceleratorRequiredIAcceleratorRefThe accelerator for this listener.
ListenerOptionsportRangesRequiredinherited from ListenerOptionsPortRange[]The list of port ranges for the connections from clients to the accelerator.
clientAffinityOptionalinherited from ListenerOptionsClientAffinityClient affinity to direct all requests from a user to the same endpoint. 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 separate endpoints. Set client affinity to SOURCE_IP to route all connections from a single client to the same endpoint.
Default: ClientAffinity.NONE
listenerNameOptionalinherited from ListenerOptionsstringName of the listener.
Default: - logical ID of the resource
protocolOptionalinherited from ListenerOptionsConnectionProtocolThe protocol for the connections from clients to the accelerator.
Default: ConnectionProtocol.TCP
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-globalaccelerator