class Listener (construct)
The construct for the Listener.
new Listener(scope: Construct, id: string, props: ListenerProps)
|accelerator||The accelerator for this listener.|
|port||The list of port ranges for the connections from clients to the accelerator.|
|client||Client affinity to direct all requests from a user to the same endpoint.|
|listener||Name of the listener.|
|protocol?||The protocol for the connections from clients to the accelerator.|
The accelerator for this listener.
The list of port ranges for the connections from clients to the accelerator.
(optional, default: NONE)
Client affinity to direct all requests from a user to the same endpoint.
(optional, default: logical ID of the resource)
Name of the listener.
(optional, default: TCP)
The protocol for the connections from clients to the accelerator.
|env||The environment this resource belongs to.|
|listener||The ARN of the listener.|
|listener||The name of the listener.|
|node||The construct tree node associated with this construct.|
|stack||The stack in which this resource is defined.|
The environment this resource belongs to.
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
The ARN of the listener.
The name of the listener.
The construct tree node associated with this construct.
The stack in which this resource is defined.
|to||Returns a string representation of this construct.|
|static from||import from ARN.|
public toString(): string
Returns a string representation of this construct.
Listener Arn(scope, id, listenerArn)
public static fromListenerArn(scope: Construct, id: string, listenerArn: string): IListener
import from ARN.