Class: AWSCDK::WAFv2::CfnWebACL::RequestBodyAssociatedResourceTypeConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(default_size_inspection_limit:) ⇒ RequestBodyAssociatedResourceTypeConfigProperty

Returns a new instance of RequestBodyAssociatedResourceTypeConfigProperty.

Parameters:

  • default_size_inspection_limit (String)

    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.



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_limitString (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_propertiesObject



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_jsiiObject



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