@Stability(value=Stable) public static final class CfnListenerRule.Builder extends Object implements software.amazon.jsii.Builder<CfnListenerRule>
CfnListenerRule.| Modifier and Type | Method and Description |
|---|---|
CfnListenerRule.Builder |
actions(IResolvable actions)
The actions.
|
CfnListenerRule.Builder |
actions(List<? extends Object> actions)
The actions.
|
CfnListenerRule |
build() |
CfnListenerRule.Builder |
conditions(IResolvable conditions)
The conditions.
|
CfnListenerRule.Builder |
conditions(List<? extends Object> conditions)
The conditions.
|
static CfnListenerRule.Builder |
create(software.constructs.Construct scope,
String id) |
CfnListenerRule.Builder |
listenerArn(String listenerArn)
The Amazon Resource Name (ARN) of the listener.
|
CfnListenerRule.Builder |
priority(Number priority)
The rule priority.
|
@Stability(value=Stable) public static CfnListenerRule.Builder create(software.constructs.Construct scope, String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.CfnListenerRule.ActionProperty.Builder.@Stability(value=Stable) public CfnListenerRule.Builder actions(IResolvable actions)
The rule must include exactly one of the following types of actions: forward , fixed-response , or redirect , and it must be the last action to be performed. If the rule is for an HTTPS listener, it can also optionally include an authentication action.
actions - The actions. This parameter is required.this@Stability(value=Stable) public CfnListenerRule.Builder actions(List<? extends Object> actions)
The rule must include exactly one of the following types of actions: forward , fixed-response , or redirect , and it must be the last action to be performed. If the rule is for an HTTPS listener, it can also optionally include an authentication action.
actions - The actions. This parameter is required.this@Stability(value=Stable) public CfnListenerRule.Builder conditions(IResolvable conditions)
The rule can optionally include up to one of each of the following conditions: http-request-method , host-header , path-pattern , and source-ip . A rule can also optionally include one or more of each of the following conditions: http-header and query-string .
conditions - The conditions. This parameter is required.this@Stability(value=Stable) public CfnListenerRule.Builder conditions(List<? extends Object> conditions)
The rule can optionally include up to one of each of the following conditions: http-request-method , host-header , path-pattern , and source-ip . A rule can also optionally include one or more of each of the following conditions: http-header and query-string .
conditions - The conditions. This parameter is required.this@Stability(value=Stable) public CfnListenerRule.Builder listenerArn(String listenerArn)
listenerArn - The Amazon Resource Name (ARN) of the listener. This parameter is required.this@Stability(value=Stable) public CfnListenerRule.Builder priority(Number priority)
If you try to reorder rules by updating their priorities, do not specify a new priority if an existing rule already uses this priority, as this can cause an error. If you need to reuse a priority with a different rule, you must remove it as a priority first, and then specify it in a subsequent update.
priority - The rule priority. A listener can't have multiple rules with the same priority. This parameter is required.this@Stability(value=Stable) public CfnListenerRule build()
build in interface software.amazon.jsii.Builder<CfnListenerRule>Copyright © 2022. All rights reserved.