Class: AWSCDK::WAFv2::CfnWebACL::AssociationConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::WAFv2::CfnWebACL::AssociationConfigProperty
- Defined in:
- wa_fv2/cfn_web_acl.rb
Overview
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 AWS 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).
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 .
For Application Load Balancer and AWS AppSync , the limit is fixed at 8 KB (8,192 bytes).
Instance Attribute Summary collapse
-
#request_body ⇒ AWSCDK::IResolvable, ...
readonly
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.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(request_body: nil) ⇒ AssociationConfigProperty
constructor
A new instance of AssociationConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(request_body: nil) ⇒ AssociationConfigProperty
Returns a new instance of AssociationConfigProperty.
1259 1260 1261 1262 |
# File 'wa_fv2/cfn_web_acl.rb', line 1259 def initialize(request_body: nil) @request_body = request_body Jsii::Type.check_type(@request_body, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfd2FmdjIuQ2ZuV2ViQUNMLlJlcXVlc3RCb2R5QXNzb2NpYXRlZFJlc291cmNlVHlwZUNvbmZpZ1Byb3BlcnR5In1dfX0sImtpbmQiOiJtYXAifX1dfX0=")), "requestBody") unless @request_body.nil? end |
Instance Attribute Details
#request_body ⇒ AWSCDK::IResolvable, ... (readonly)
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).
1276 1277 1278 |
# File 'wa_fv2/cfn_web_acl.rb', line 1276 def request_body @request_body end |
Class Method Details
.jsii_properties ⇒ Object
1278 1279 1280 1281 1282 |
# File 'wa_fv2/cfn_web_acl.rb', line 1278 def self.jsii_properties { :request_body => "requestBody", } end |
Instance Method Details
#to_jsii ⇒ Object
1284 1285 1286 1287 1288 1289 1290 |
# File 'wa_fv2/cfn_web_acl.rb', line 1284 def to_jsii result = {} result.merge!({ "requestBody" => @request_body, }) result.compact end |