@Generated(value="jsii-pacmak/1.29.0 (build 41df200)", date="2021-06-02T09:55:29.972Z") @Stability(value=Experimental) public class NetworkListener extends BaseListener implements INetworkListener
| Modifier and Type | Class and Description |
|---|---|
static class |
NetworkListener.Builder
(experimental) A fluent builder for
NetworkListener. |
software.amazon.jsii.JsiiObject.InitializationModeINetworkListener.Jsii$Default, INetworkListener.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
NetworkListener(software.constructs.Construct scope,
String id,
NetworkListenerProps props) |
protected |
NetworkListener(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
NetworkListener(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAction(String _id,
AddNetworkActionProps props)
(experimental) Perform the given Action on incoming requests.
|
void |
addTargetGroups(String _id,
INetworkTargetGroup... targetGroups)
(experimental) Load balance incoming requests to the given target groups.
|
NetworkTargetGroup |
addTargets(String id,
AddNetworkTargetsProps props)
(experimental) Load balance incoming requests to the given load balancing targets.
|
static INetworkListener |
fromLookup(software.constructs.Construct scope,
String id,
NetworkListenerLookupOptions options)
(experimental) Looks up a network listener.
|
static INetworkListener |
fromNetworkListenerArn(software.constructs.Construct scope,
String id,
String networkListenerArn)
(experimental) Import an existing listener.
|
INetworkLoadBalancer |
getLoadBalancer()
(experimental) The load balancer this listener is attached to.
|
getListenerArn, validateListenerapplyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourcejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetListenerArnprotected NetworkListener(software.amazon.jsii.JsiiObjectRef objRef)
protected NetworkListener(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public NetworkListener(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
NetworkListenerProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Experimental) @NotNull public static INetworkListener fromLookup(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull NetworkListenerLookupOptions options)
scope - This parameter is required.id - This parameter is required.options - This parameter is required.@Stability(value=Experimental) @NotNull public static INetworkListener fromNetworkListenerArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String networkListenerArn)
scope - This parameter is required.id - This parameter is required.networkListenerArn - This parameter is required.@Stability(value=Experimental)
public void addAction(@NotNull
String _id,
@NotNull
AddNetworkActionProps props)
This allows full control of the default Action of the load balancer,
including weighted forwarding. See the NetworkListenerAction class for
all options.
_id - This parameter is required.props - This parameter is required.@Stability(value=Experimental)
public void addTargetGroups(@NotNull
String _id,
@NotNull
INetworkTargetGroup... targetGroups)
All target groups will be load balanced to with equal weight and without
stickiness. For a more complex configuration than that, use addAction().
_id - This parameter is required.targetGroups - This parameter is required.@Stability(value=Experimental) @NotNull public NetworkTargetGroup addTargets(@NotNull String id, @NotNull AddNetworkTargetsProps props)
This method implicitly creates a NetworkTargetGroup for the targets involved, and a 'forward' action to route traffic to the given TargetGroup.
If you want more control over the precise setup, create the TargetGroup
and use addAction yourself.
It's possible to add conditions to the targets added in this way. At least one set of targets must be added without conditions.
id - This parameter is required.props - This parameter is required.@Stability(value=Experimental) @NotNull public INetworkLoadBalancer getLoadBalancer()
Copyright © 2021. All rights reserved.