Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data Rule = Rule' {}
- newRule :: Rule
- rule_priority :: Lens' Rule (Maybe Text)
- rule_actions :: Lens' Rule (Maybe [Action])
- rule_conditions :: Lens' Rule (Maybe [RuleCondition])
- rule_ruleArn :: Lens' Rule (Maybe Text)
- rule_isDefault :: Lens' Rule (Maybe Bool)
Documentation
Information about a rule.
See: newRule
smart constructor.
Rule' | |
|
Instances
Create a value of Rule
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:priority:Rule'
, rule_priority
- The priority.
$sel:actions:Rule'
, rule_actions
- The actions. Each rule must include exactly one of the following types
of actions: forward
, redirect
, or fixed-response
, and it must be
the last action to be performed.
$sel:conditions:Rule'
, rule_conditions
- The conditions. Each rule can include zero or one of the following
conditions: http-request-method
, host-header
, path-pattern
, and
source-ip
, and zero or more of the following conditions: http-header
and query-string
.
$sel:ruleArn:Rule'
, rule_ruleArn
- The Amazon Resource Name (ARN) of the rule.
$sel:isDefault:Rule'
, rule_isDefault
- Indicates whether this is the default rule.
rule_actions :: Lens' Rule (Maybe [Action]) Source #
The actions. Each rule must include exactly one of the following types
of actions: forward
, redirect
, or fixed-response
, and it must be
the last action to be performed.
rule_conditions :: Lens' Rule (Maybe [RuleCondition]) Source #
The conditions. Each rule can include zero or one of the following
conditions: http-request-method
, host-header
, path-pattern
, and
source-ip
, and zero or more of the following conditions: http-header
and query-string
.