pub struct Builder { /* private fields */ }
Expand description
A builder for Rule
.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn rule_arn(self, input: impl Into<String>) -> Self
pub fn rule_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the rule.
sourcepub fn set_rule_arn(self, input: Option<String>) -> Self
pub fn set_rule_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the rule.
sourcepub fn set_priority(self, input: Option<String>) -> Self
pub fn set_priority(self, input: Option<String>) -> Self
The priority.
sourcepub fn conditions(self, input: RuleCondition) -> Self
pub fn conditions(self, input: RuleCondition) -> Self
Appends an item to conditions
.
To override the contents of this collection use set_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
.
sourcepub fn set_conditions(self, input: Option<Vec<RuleCondition>>) -> Self
pub fn set_conditions(self, input: Option<Vec<RuleCondition>>) -> Self
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
.
sourcepub fn actions(self, input: Action) -> Self
pub fn actions(self, input: Action) -> Self
Appends an item to actions
.
To override the contents of this collection use set_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.
sourcepub fn set_actions(self, input: Option<Vec<Action>>) -> Self
pub fn set_actions(self, input: Option<Vec<Action>>) -> Self
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.
sourcepub fn is_default(self, input: bool) -> Self
pub fn is_default(self, input: bool) -> Self
Indicates whether this is the default rule.
sourcepub fn set_is_default(self, input: Option<bool>) -> Self
pub fn set_is_default(self, input: Option<bool>) -> Self
Indicates whether this is the default rule.