#[non_exhaustive]pub struct CreateRateBasedRuleInput {
pub name: Option<String>,
pub metric_name: Option<String>,
pub rate_key: Option<RateKey>,
pub rate_limit: Option<i64>,
pub change_token: Option<String>,
pub tags: Option<Vec<Tag>>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: Option<String>A friendly name or description of the RateBasedRule. You can't change the name of a RateBasedRule after you create it.
metric_name: Option<String>A friendly name or description for the metrics for this RateBasedRule. The name can contain only alphanumeric characters (A-Z, a-z, 0-9), with maximum length 128 and minimum length one. It can't contain whitespace or metric names reserved for AWS WAF, including "All" and "Default_Action." You can't change the name of the metric after you create the RateBasedRule.
rate_key: Option<RateKey>The field that AWS WAF uses to determine if requests are likely arriving from a single source and thus subject to rate monitoring. The only valid value for RateKey is IP. IP indicates that requests that arrive from the same IP address are subject to the RateLimit that is specified in the RateBasedRule.
rate_limit: Option<i64>The maximum number of requests, which have an identical value in the field that is specified by RateKey, allowed in a five-minute period. If the number of requests exceeds the RateLimit and the other predicates specified in the rule are also met, AWS WAF triggers the action that is specified for this rule.
change_token: Option<String>The ChangeToken that you used to submit the CreateRateBasedRule request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus.
Implementations§
source§impl CreateRateBasedRuleInput
impl CreateRateBasedRuleInput
sourcepub fn name(&self) -> Option<&str>
pub fn name(&self) -> Option<&str>
A friendly name or description of the RateBasedRule. You can't change the name of a RateBasedRule after you create it.
sourcepub fn metric_name(&self) -> Option<&str>
pub fn metric_name(&self) -> Option<&str>
A friendly name or description for the metrics for this RateBasedRule. The name can contain only alphanumeric characters (A-Z, a-z, 0-9), with maximum length 128 and minimum length one. It can't contain whitespace or metric names reserved for AWS WAF, including "All" and "Default_Action." You can't change the name of the metric after you create the RateBasedRule.
sourcepub fn rate_key(&self) -> Option<&RateKey>
pub fn rate_key(&self) -> Option<&RateKey>
The field that AWS WAF uses to determine if requests are likely arriving from a single source and thus subject to rate monitoring. The only valid value for RateKey is IP. IP indicates that requests that arrive from the same IP address are subject to the RateLimit that is specified in the RateBasedRule.
sourcepub fn rate_limit(&self) -> Option<i64>
pub fn rate_limit(&self) -> Option<i64>
The maximum number of requests, which have an identical value in the field that is specified by RateKey, allowed in a five-minute period. If the number of requests exceeds the RateLimit and the other predicates specified in the rule are also met, AWS WAF triggers the action that is specified for this rule.
sourcepub fn change_token(&self) -> Option<&str>
pub fn change_token(&self) -> Option<&str>
The ChangeToken that you used to submit the CreateRateBasedRule request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .tags.is_none().
source§impl CreateRateBasedRuleInput
impl CreateRateBasedRuleInput
sourcepub fn builder() -> CreateRateBasedRuleInputBuilder
pub fn builder() -> CreateRateBasedRuleInputBuilder
Creates a new builder-style object to manufacture CreateRateBasedRuleInput.
Trait Implementations§
source§impl Clone for CreateRateBasedRuleInput
impl Clone for CreateRateBasedRuleInput
source§fn clone(&self) -> CreateRateBasedRuleInput
fn clone(&self) -> CreateRateBasedRuleInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CreateRateBasedRuleInput
impl Debug for CreateRateBasedRuleInput
source§impl PartialEq for CreateRateBasedRuleInput
impl PartialEq for CreateRateBasedRuleInput
source§fn eq(&self, other: &CreateRateBasedRuleInput) -> bool
fn eq(&self, other: &CreateRateBasedRuleInput) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for CreateRateBasedRuleInput
Auto Trait Implementations§
impl Freeze for CreateRateBasedRuleInput
impl RefUnwindSafe for CreateRateBasedRuleInput
impl Send for CreateRateBasedRuleInput
impl Sync for CreateRateBasedRuleInput
impl Unpin for CreateRateBasedRuleInput
impl UnwindSafe for CreateRateBasedRuleInput
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more