Struct aws_sdk_waf::operation::create_web_acl::CreateWebAclInput
source · #[non_exhaustive]pub struct CreateWebAclInput {
pub name: Option<String>,
pub metric_name: Option<String>,
pub default_action: Option<WafAction>,
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 WebACL. You can't change Name after you create the WebACL.
metric_name: Option<String>A friendly name or description for the metrics for this WebACL.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 MetricName after you create the WebACL.
default_action: Option<WafAction>The action that you want AWS WAF to take when a request doesn't match the criteria specified in any of the Rule objects that are associated with the WebACL.
change_token: Option<String>The value returned by the most recent call to GetChangeToken.
Implementations§
source§impl CreateWebAclInput
impl CreateWebAclInput
sourcepub fn name(&self) -> Option<&str>
pub fn name(&self) -> Option<&str>
A friendly name or description of the WebACL. You can't change Name after you create the WebACL.
sourcepub fn metric_name(&self) -> Option<&str>
pub fn metric_name(&self) -> Option<&str>
A friendly name or description for the metrics for this WebACL.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 MetricName after you create the WebACL.
sourcepub fn default_action(&self) -> Option<&WafAction>
pub fn default_action(&self) -> Option<&WafAction>
The action that you want AWS WAF to take when a request doesn't match the criteria specified in any of the Rule objects that are associated with the WebACL.
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 CreateWebAclInput
impl CreateWebAclInput
sourcepub fn builder() -> CreateWebAclInputBuilder
pub fn builder() -> CreateWebAclInputBuilder
Creates a new builder-style object to manufacture CreateWebAclInput.
Trait Implementations§
source§impl Clone for CreateWebAclInput
impl Clone for CreateWebAclInput
source§fn clone(&self) -> CreateWebAclInput
fn clone(&self) -> CreateWebAclInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CreateWebAclInput
impl Debug for CreateWebAclInput
source§impl PartialEq for CreateWebAclInput
impl PartialEq for CreateWebAclInput
source§fn eq(&self, other: &CreateWebAclInput) -> bool
fn eq(&self, other: &CreateWebAclInput) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for CreateWebAclInput
Auto Trait Implementations§
impl Freeze for CreateWebAclInput
impl RefUnwindSafe for CreateWebAclInput
impl Send for CreateWebAclInput
impl Sync for CreateWebAclInput
impl Unpin for CreateWebAclInput
impl UnwindSafe for CreateWebAclInput
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