AssociationConfig - Amazon WAFV2
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

AssociationConfig

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 Amazon 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).

Note

You are charged additional fees when your protected resources forward body sizes that are larger than the default. For more information, see Amazon WAF Pricing.

For Application Load Balancer and Amazon AppSync, the limit is fixed at 8 KB (8,192 bytes).

Contents

RequestBody

Customizes the maximum size of the request body that your protected CloudFront, API Gateway, Amazon Cognito, App Runner, and Verified Access resources forward to Amazon WAF for inspection. The default size is 16 KB (16,384 bytes). You can change the setting for any of the available resource types.

Note

You are charged additional fees when your protected resources forward body sizes that are larger than the default. For more information, see Amazon WAF Pricing.

Example JSON: { "API_GATEWAY": "KB_48", "APP_RUNNER_SERVICE": "KB_32" }

For Application Load Balancer and Amazon AppSync, the limit is fixed at 8 KB (8,192 bytes).

Type: String to RequestBodyAssociatedResourceTypeConfig object map

Valid Keys: CLOUDFRONT | API_GATEWAY | COGNITO_USER_POOL | APP_RUNNER_SERVICE | VERIFIED_ACCESS_INSTANCE

Required: No

See Also

For more information about using this API in one of the language-specific Amazon SDKs, see the following: