Struct aws_sdk_waf::operation::create_rule::CreateRuleInput
source · #[non_exhaustive]pub struct CreateRuleInput {
pub name: Option<String>,
pub metric_name: Option<String>,
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 Rule. You can't change the name of a Rule after you create it.
metric_name: Option<String>A friendly name or description for the metrics for this Rule. 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 Rule.
change_token: Option<String>The value returned by the most recent call to GetChangeToken.
Implementations§
source§impl CreateRuleInput
impl CreateRuleInput
sourcepub fn name(&self) -> Option<&str>
pub fn name(&self) -> Option<&str>
A friendly name or description of the Rule. You can't change the name of a Rule 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 Rule. 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 Rule.
sourcepub fn change_token(&self) -> Option<&str>
pub fn change_token(&self) -> Option<&str>
The value returned by the most recent call to GetChangeToken.
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 CreateRuleInput
impl CreateRuleInput
sourcepub fn builder() -> CreateRuleInputBuilder
pub fn builder() -> CreateRuleInputBuilder
Creates a new builder-style object to manufacture CreateRuleInput.
Trait Implementations§
source§impl Clone for CreateRuleInput
impl Clone for CreateRuleInput
source§fn clone(&self) -> CreateRuleInput
fn clone(&self) -> CreateRuleInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CreateRuleInput
impl Debug for CreateRuleInput
source§impl PartialEq for CreateRuleInput
impl PartialEq for CreateRuleInput
source§fn eq(&self, other: &CreateRuleInput) -> bool
fn eq(&self, other: &CreateRuleInput) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for CreateRuleInput
Auto Trait Implementations§
impl Freeze for CreateRuleInput
impl RefUnwindSafe for CreateRuleInput
impl Send for CreateRuleInput
impl Sync for CreateRuleInput
impl Unpin for CreateRuleInput
impl UnwindSafe for CreateRuleInput
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