#[non_exhaustive]pub struct RequestBodyAssociatedResourceTypeConfig {
pub default_size_inspection_limit: SizeInspectionLimit,
}
Expand description
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).
This is used in the AssociationConfig
of the web ACL.
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.default_size_inspection_limit: SizeInspectionLimit
Specifies the maximum size of the web request body component that an associated CloudFront, API Gateway, Amazon Cognito, App Runner, or Verified Access resource should send to WAF for inspection. This applies to statements in the web ACL that inspect the body or JSON body.
Default: 16 KB (16,384 bytes)
Implementations§
source§impl RequestBodyAssociatedResourceTypeConfig
impl RequestBodyAssociatedResourceTypeConfig
sourcepub fn default_size_inspection_limit(&self) -> &SizeInspectionLimit
pub fn default_size_inspection_limit(&self) -> &SizeInspectionLimit
Specifies the maximum size of the web request body component that an associated CloudFront, API Gateway, Amazon Cognito, App Runner, or Verified Access resource should send to WAF for inspection. This applies to statements in the web ACL that inspect the body or JSON body.
Default: 16 KB (16,384 bytes)
source§impl RequestBodyAssociatedResourceTypeConfig
impl RequestBodyAssociatedResourceTypeConfig
sourcepub fn builder() -> RequestBodyAssociatedResourceTypeConfigBuilder
pub fn builder() -> RequestBodyAssociatedResourceTypeConfigBuilder
Creates a new builder-style object to manufacture RequestBodyAssociatedResourceTypeConfig
.
Trait Implementations§
source§impl Clone for RequestBodyAssociatedResourceTypeConfig
impl Clone for RequestBodyAssociatedResourceTypeConfig
source§fn clone(&self) -> RequestBodyAssociatedResourceTypeConfig
fn clone(&self) -> RequestBodyAssociatedResourceTypeConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for RequestBodyAssociatedResourceTypeConfig
impl PartialEq for RequestBodyAssociatedResourceTypeConfig
source§fn eq(&self, other: &RequestBodyAssociatedResourceTypeConfig) -> bool
fn eq(&self, other: &RequestBodyAssociatedResourceTypeConfig) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RequestBodyAssociatedResourceTypeConfig
Auto Trait Implementations§
impl Freeze for RequestBodyAssociatedResourceTypeConfig
impl RefUnwindSafe for RequestBodyAssociatedResourceTypeConfig
impl Send for RequestBodyAssociatedResourceTypeConfig
impl Sync for RequestBodyAssociatedResourceTypeConfig
impl Unpin for RequestBodyAssociatedResourceTypeConfig
impl UnwindSafe for RequestBodyAssociatedResourceTypeConfig
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