Class: AWSCDK::WAFv2::CfnWebACL::RequestBodyAssociatedResourceTypeConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::WAFv2::CfnWebACL::RequestBodyAssociatedResourceTypeConfigProperty
- Defined in:
- wa_fv2/cfn_web_acl.rb
Overview
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.
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 AWS WAF Pricing .
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.
Instance Attribute Summary collapse
-
#default_size_inspection_limit ⇒ String
readonly
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.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(default_size_inspection_limit:) ⇒ RequestBodyAssociatedResourceTypeConfigProperty
constructor
A new instance of RequestBodyAssociatedResourceTypeConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(default_size_inspection_limit:) ⇒ RequestBodyAssociatedResourceTypeConfigProperty
Returns a new instance of RequestBodyAssociatedResourceTypeConfigProperty.
4914 4915 4916 4917 |
# File 'wa_fv2/cfn_web_acl.rb', line 4914 def initialize(default_size_inspection_limit:) @default_size_inspection_limit = default_size_inspection_limit Jsii::Type.check_type(@default_size_inspection_limit, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "defaultSizeInspectionLimit") end |
Instance Attribute Details
#default_size_inspection_limit ⇒ String (readonly)
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.
This applies to statements in the web ACL that inspect the body or JSON body.
Default: 16 KB (16,384 bytes)
4927 4928 4929 |
# File 'wa_fv2/cfn_web_acl.rb', line 4927 def default_size_inspection_limit @default_size_inspection_limit end |
Class Method Details
.jsii_properties ⇒ Object
4929 4930 4931 4932 4933 |
# File 'wa_fv2/cfn_web_acl.rb', line 4929 def self.jsii_properties { :default_size_inspection_limit => "defaultSizeInspectionLimit", } end |
Instance Method Details
#to_jsii ⇒ Object
4935 4936 4937 4938 4939 4940 4941 |
# File 'wa_fv2/cfn_web_acl.rb', line 4935 def to_jsii result = {} result.merge!({ "defaultSizeInspectionLimit" => @default_size_inspection_limit, }) result.compact end |