Class CfnListenerRule.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnListenerRule>
- Enclosing class:
CfnListenerRule
CfnListenerRule
.-
Method Summary
Modifier and TypeMethodDescriptionThe actions.actions
(IResolvable actions) The actions.build()
conditions
(List<? extends Object> conditions) The conditions.conditions
(IResolvable conditions) The conditions.static CfnListenerRule.Builder
listenerArn
(String listenerArn) The Amazon Resource Name (ARN) of the listener.The rule priority.
-
Method Details
-
create
@Stability(Stable) public static CfnListenerRule.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnListenerRule.Builder
.
-
actions
The actions.The rule must include exactly one of the following types of actions:
forward
,fixed-response
, orredirect
, 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.- Parameters:
actions
- The actions. This parameter is required.- Returns:
this
- See Also:
-
actions
The actions.The rule must include exactly one of the following types of actions:
forward
,fixed-response
, orredirect
, 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.- Parameters:
actions
- The actions. This parameter is required.- Returns:
this
- See Also:
-
conditions
The conditions.The rule can optionally include up to one of each of the following conditions:
http-request-method
,host-header
,path-pattern
, andsource-ip
. A rule can also optionally include one or more of each of the following conditions:http-header
andquery-string
.- Parameters:
conditions
- The conditions. This parameter is required.- Returns:
this
- See Also:
-
conditions
The conditions.The rule can optionally include up to one of each of the following conditions:
http-request-method
,host-header
,path-pattern
, andsource-ip
. A rule can also optionally include one or more of each of the following conditions:http-header
andquery-string
.- Parameters:
conditions
- The conditions. This parameter is required.- Returns:
this
- See Also:
-
priority
The rule priority. A listener can't have multiple rules with the same 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.
- Parameters:
priority
- The rule priority. A listener can't have multiple rules with the same priority. This parameter is required.- Returns:
this
- See Also:
-
listenerArn
The Amazon Resource Name (ARN) of the listener.- Parameters:
listenerArn
- The Amazon Resource Name (ARN) of the listener. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnListenerRule>
- Returns:
- a newly built instance of
CfnListenerRule
.
-