Class CfnWebACL.RequestBodyAssociatedResourceTypeConfigProperty
Customizes the maximum size of the request body that your protected CloudFront, API Gateway, Amazon Cognito, App Runner, and Verified Access resources forward to AWS WAF for inspection.
Inherited Members
Namespace: Amazon.CDK.AWS.WAFv2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnWebACL.RequestBodyAssociatedResourceTypeConfigProperty : CfnWebACL.IRequestBodyAssociatedResourceTypeConfigProperty
Syntax (vb)
Public Class CfnWebACL.RequestBodyAssociatedResourceTypeConfigProperty Implements CfnWebACL.IRequestBodyAssociatedResourceTypeConfigProperty
Remarks
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 <a href="https://docs.aws.amazon.com/waf/pricing/">AWS WAF Pricing</a> .
Example JSON: { "API_GATEWAY": "KB_48", "APP_RUNNER_SERVICE": "KB_32" }
For Application Load Balancer and AWS AppSync , the limit is fixed at 8 KB (8,192 bytes).
This is used in the AssociationConfig of the web ACL.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.WAFv2;
var requestBodyAssociatedResourceTypeConfigProperty = new RequestBodyAssociatedResourceTypeConfigProperty {
DefaultSizeInspectionLimit = "defaultSizeInspectionLimit"
};
Synopsis
Constructors
| RequestBodyAssociatedResourceTypeConfigProperty() | Customizes the maximum size of the request body that your protected CloudFront, API Gateway, Amazon Cognito, App Runner, and Verified Access resources forward to AWS WAF for inspection. |
Properties
| DefaultSizeInspectionLimit | 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 AWS WAF for inspection. |
Constructors
RequestBodyAssociatedResourceTypeConfigProperty()
Customizes the maximum size of the request body that your protected CloudFront, API Gateway, Amazon Cognito, App Runner, and Verified Access resources forward to AWS WAF for inspection.
public RequestBodyAssociatedResourceTypeConfigProperty()
Remarks
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 <a href="https://docs.aws.amazon.com/waf/pricing/">AWS WAF Pricing</a> .
Example JSON: { "API_GATEWAY": "KB_48", "APP_RUNNER_SERVICE": "KB_32" }
For Application Load Balancer and AWS AppSync , the limit is fixed at 8 KB (8,192 bytes).
This is used in the AssociationConfig of the web ACL.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.WAFv2;
var requestBodyAssociatedResourceTypeConfigProperty = new RequestBodyAssociatedResourceTypeConfigProperty {
DefaultSizeInspectionLimit = "defaultSizeInspectionLimit"
};
Properties
DefaultSizeInspectionLimit
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 AWS WAF for inspection.
public string DefaultSizeInspectionLimit { get; set; }
Property Value
Remarks
This applies to statements in the web ACL that inspect the body or JSON body.
Default: 16 KB (16,384 bytes)