@Generated(value="jsii-pacmak/1.29.0 (build 41df200)", date="2021-06-02T09:55:29.973Z") @Stability(value=Experimental) public class NetworkListenerAction extends software.amazon.jsii.JsiiObject implements IListenerAction
Some actions can be combined with other ones (specifically, you can perform authentication before serving the request).
Multiple actions form a linked chain; the chain must always terminate in a (weighted)forward, fixedResponse or redirect action.
If an action supports chaining, the next action can be indicated
by passing it in the next property.
software.amazon.jsii.JsiiObject.InitializationModeIListenerAction.Jsii$Default, IListenerAction.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
NetworkListenerAction(CfnListener.ActionProperty actionJson)
(experimental) Create an instance of NetworkListenerAction.
|
protected |
NetworkListenerAction(CfnListener.ActionProperty actionJson,
NetworkListenerAction next)
(experimental) Create an instance of NetworkListenerAction.
|
protected |
NetworkListenerAction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
NetworkListenerAction(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(software.constructs.Construct scope,
INetworkListener listener)
(experimental) Called when the action is being used in a listener.
|
static NetworkListenerAction |
forward(List<? extends INetworkTargetGroup> targetGroups)
(experimental) Forward to one or more Target Groups.
|
static NetworkListenerAction |
forward(List<? extends INetworkTargetGroup> targetGroups,
NetworkForwardOptions options)
(experimental) Forward to one or more Target Groups.
|
protected NetworkListenerAction |
getNext() |
List<CfnListener.ActionProperty> |
renderActions()
(experimental) Render the actions in this chain.
|
protected List<CfnListener.ActionProperty> |
renumber(List<CfnListener.ActionProperty> actions)
(experimental) Renumber the "order" fields in the actions array.
|
static NetworkListenerAction |
weightedForward(List<? extends NetworkWeightedTargetGroup> targetGroups)
(experimental) Forward to one or more Target Groups which are weighted differently.
|
static NetworkListenerAction |
weightedForward(List<? extends NetworkWeightedTargetGroup> targetGroups,
NetworkForwardOptions options)
(experimental) Forward to one or more Target Groups which are weighted differently.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected NetworkListenerAction(software.amazon.jsii.JsiiObjectRef objRef)
protected NetworkListenerAction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
protected NetworkListenerAction(@NotNull
CfnListener.ActionProperty actionJson,
@Nullable
NetworkListenerAction next)
The default class should be good enough for most cases and should be created by using one of the static factory functions, but allow overriding to make sure we allow flexibility for the future.
actionJson - This parameter is required.next - @Stability(value=Experimental)
protected NetworkListenerAction(@NotNull
CfnListener.ActionProperty actionJson)
The default class should be good enough for most cases and should be created by using one of the static factory functions, but allow overriding to make sure we allow flexibility for the future.
actionJson - This parameter is required.@Stability(value=Experimental) @NotNull public static NetworkListenerAction forward(@NotNull List<? extends INetworkTargetGroup> targetGroups, @Nullable NetworkForwardOptions options)
targetGroups - This parameter is required.options - @Stability(value=Experimental) @NotNull public static NetworkListenerAction forward(@NotNull List<? extends INetworkTargetGroup> targetGroups)
targetGroups - This parameter is required.@Stability(value=Experimental) @NotNull public static NetworkListenerAction weightedForward(@NotNull List<? extends NetworkWeightedTargetGroup> targetGroups, @Nullable NetworkForwardOptions options)
targetGroups - This parameter is required.options - @Stability(value=Experimental) @NotNull public static NetworkListenerAction weightedForward(@NotNull List<? extends NetworkWeightedTargetGroup> targetGroups)
targetGroups - This parameter is required.@Stability(value=Experimental)
public void bind(@NotNull
software.constructs.Construct scope,
@NotNull
INetworkListener listener)
scope - This parameter is required.listener - This parameter is required.@Stability(value=Experimental) @NotNull public List<CfnListener.ActionProperty> renderActions()
renderActions in interface IListenerAction@Stability(value=Experimental) @NotNull protected List<CfnListener.ActionProperty> renumber(@NotNull List<CfnListener.ActionProperty> actions)
We don't number for 0 or 1 elements, but otherwise number them 1...#actions so ELB knows about the right order.
Do this in NetworkListenerAction instead of in Listener so that we give
users the opportunity to override by subclassing and overriding renderActions.
actions - This parameter is required.@Stability(value=Experimental) @Nullable protected NetworkListenerAction getNext()
Copyright © 2021. All rights reserved.