Struct aws_sdk_wafv2::types::builders::AssociationConfigBuilder
source · #[non_exhaustive]pub struct AssociationConfigBuilder { /* private fields */ }
Expand description
A builder for AssociationConfig
.
Implementations§
source§impl AssociationConfigBuilder
impl AssociationConfigBuilder
sourcepub fn request_body(
self,
k: AssociatedResourceType,
v: RequestBodyAssociatedResourceTypeConfig
) -> Self
pub fn request_body( self, k: AssociatedResourceType, v: RequestBodyAssociatedResourceTypeConfig ) -> Self
Adds a key-value pair to request_body
.
To override the contents of this collection use set_request_body
.
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).
sourcepub fn set_request_body(
self,
input: Option<HashMap<AssociatedResourceType, RequestBodyAssociatedResourceTypeConfig>>
) -> Self
pub fn set_request_body( self, input: Option<HashMap<AssociatedResourceType, RequestBodyAssociatedResourceTypeConfig>> ) -> Self
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).
sourcepub fn get_request_body(
&self
) -> &Option<HashMap<AssociatedResourceType, RequestBodyAssociatedResourceTypeConfig>>
pub fn get_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).
sourcepub fn build(self) -> AssociationConfig
pub fn build(self) -> AssociationConfig
Consumes the builder and constructs a AssociationConfig
.
Trait Implementations§
source§impl Clone for AssociationConfigBuilder
impl Clone for AssociationConfigBuilder
source§fn clone(&self) -> AssociationConfigBuilder
fn clone(&self) -> AssociationConfigBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AssociationConfigBuilder
impl Debug for AssociationConfigBuilder
source§impl Default for AssociationConfigBuilder
impl Default for AssociationConfigBuilder
source§fn default() -> AssociationConfigBuilder
fn default() -> AssociationConfigBuilder
source§impl PartialEq for AssociationConfigBuilder
impl PartialEq for AssociationConfigBuilder
source§fn eq(&self, other: &AssociationConfigBuilder) -> bool
fn eq(&self, other: &AssociationConfigBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AssociationConfigBuilder
Auto Trait Implementations§
impl Freeze for AssociationConfigBuilder
impl RefUnwindSafe for AssociationConfigBuilder
impl Send for AssociationConfigBuilder
impl Sync for AssociationConfigBuilder
impl Unpin for AssociationConfigBuilder
impl UnwindSafe for AssociationConfigBuilder
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