public static final class CfnListenerRuleProps.Builder
extends java.lang.Object
CfnListenerRuleProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnListenerRuleProps.Builder |
actions(IResolvable actions)
Sets the value of
CfnListenerRuleProps.getActions() |
CfnListenerRuleProps.Builder |
actions(java.util.List<? extends java.lang.Object> actions)
Sets the value of
CfnListenerRuleProps.getActions() |
CfnListenerRuleProps |
build()
Builds the configured instance.
|
CfnListenerRuleProps.Builder |
conditions(IResolvable conditions)
Sets the value of
CfnListenerRuleProps.getConditions() |
CfnListenerRuleProps.Builder |
conditions(java.util.List<? extends java.lang.Object> conditions)
Sets the value of
CfnListenerRuleProps.getConditions() |
CfnListenerRuleProps.Builder |
listenerArn(java.lang.String listenerArn)
Sets the value of
CfnListenerRuleProps.getListenerArn() |
CfnListenerRuleProps.Builder |
priority(java.lang.Number priority)
Sets the value of
CfnListenerRuleProps.getPriority() |
public CfnListenerRuleProps.Builder actions(IResolvable actions)
CfnListenerRuleProps.getActions()
actions
- The actions. This parameter is required.
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.this
public CfnListenerRuleProps.Builder actions(java.util.List<? extends java.lang.Object> actions)
CfnListenerRuleProps.getActions()
actions
- The actions. This parameter is required.
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.this
public CfnListenerRuleProps.Builder conditions(IResolvable conditions)
CfnListenerRuleProps.getConditions()
conditions
- The conditions. This parameter is required.
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
.this
public CfnListenerRuleProps.Builder conditions(java.util.List<? extends java.lang.Object> conditions)
CfnListenerRuleProps.getConditions()
conditions
- The conditions. This parameter is required.
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
.this
public CfnListenerRuleProps.Builder listenerArn(java.lang.String listenerArn)
CfnListenerRuleProps.getListenerArn()
listenerArn
- The Amazon Resource Name (ARN) of the listener. This parameter is required.this
public CfnListenerRuleProps.Builder priority(java.lang.Number priority)
CfnListenerRuleProps.getPriority()
priority
- The rule priority. A listener can't have multiple rules with the same priority. This parameter is required.
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.this
public CfnListenerRuleProps build()
CfnListenerRuleProps
java.lang.NullPointerException
- if any required attribute was not provided