Struct aws_sdk_wafv2::types::AssociationConfig
source · #[non_exhaustive]pub struct AssociationConfig {
pub request_body: Option<HashMap<AssociatedResourceType, RequestBodyAssociatedResourceTypeConfig>>,
}
Expand description
Specifies custom configurations for the associations between the web ACL and protected resources.
Use this to customize the maximum size of the request body that your protected resources forward to WAF for inspection. You can customize this setting for CloudFront, API Gateway, Amazon Cognito, App Runner, or Verified Access resources. The default setting is 16 KB (16,384 bytes).
You are charged additional fees when your protected resources forward body sizes that are larger than the default. For more information, see WAF Pricing.
For Application Load Balancer and AppSync, the limit is fixed at 8 KB (8,192 bytes).
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.request_body: Option<HashMap<AssociatedResourceType, RequestBodyAssociatedResourceTypeConfig>>
Customizes the maximum size of the request body that your protected CloudFront, API Gateway, Amazon Cognito, App Runner, and Verified Access resources forward to WAF for inspection. The default size is 16 KB (16,384 bytes). You can change the setting for any of the available resource types.
You are charged additional fees when your protected resources forward body sizes that are larger than the default. For more information, see WAF Pricing.
Example JSON: { "API_GATEWAY": "KB_48", "APP_RUNNER_SERVICE": "KB_32" }
For Application Load Balancer and AppSync, the limit is fixed at 8 KB (8,192 bytes).
Implementations§
source§impl AssociationConfig
impl AssociationConfig
sourcepub fn request_body(
&self
) -> Option<&HashMap<AssociatedResourceType, RequestBodyAssociatedResourceTypeConfig>>
pub fn request_body( &self ) -> Option<&HashMap<AssociatedResourceType, RequestBodyAssociatedResourceTypeConfig>>
Customizes the maximum size of the request body that your protected CloudFront, API Gateway, Amazon Cognito, App Runner, and Verified Access resources forward to WAF for inspection. The default size is 16 KB (16,384 bytes). You can change the setting for any of the available resource types.
You are charged additional fees when your protected resources forward body sizes that are larger than the default. For more information, see WAF Pricing.
Example JSON: { "API_GATEWAY": "KB_48", "APP_RUNNER_SERVICE": "KB_32" }
For Application Load Balancer and AppSync, the limit is fixed at 8 KB (8,192 bytes).
source§impl AssociationConfig
impl AssociationConfig
sourcepub fn builder() -> AssociationConfigBuilder
pub fn builder() -> AssociationConfigBuilder
Creates a new builder-style object to manufacture AssociationConfig
.
Trait Implementations§
source§impl Clone for AssociationConfig
impl Clone for AssociationConfig
source§fn clone(&self) -> AssociationConfig
fn clone(&self) -> AssociationConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AssociationConfig
impl Debug for AssociationConfig
source§impl PartialEq for AssociationConfig
impl PartialEq for AssociationConfig
source§fn eq(&self, other: &AssociationConfig) -> bool
fn eq(&self, other: &AssociationConfig) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AssociationConfig
Auto Trait Implementations§
impl Freeze for AssociationConfig
impl RefUnwindSafe for AssociationConfig
impl Send for AssociationConfig
impl Sync for AssociationConfig
impl Unpin for AssociationConfig
impl UnwindSafe for AssociationConfig
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