diff --git a/.changelog/37588.txt b/.changelog/37588.txt index 68d5f932ff0c..f8c07057e7a2 100644 --- a/.changelog/37588.txt +++ b/.changelog/37588.txt @@ -1,3 +1,3 @@ -```release-note:enhancement -resource/aws_wafv2_web_acl: Add `api_gateway`, `apprunner_service`, `cognito_user_pool`, and `verifiedaccess_instance` configuration blocks to `association_config.request_body` +```release-note:enhancement +resource/aws_wafv2_web_acl: Add `api_gateway`, `apprunner_service`, `cognito_user_pool`, and `verified_access_instance` configuration blocks to `association_config.request_body` ``` \ No newline at end of file diff --git a/internal/service/wafv2/schemas.go b/internal/service/wafv2/schemas.go index 6772248e3991..f0382e10fefe 100644 --- a/internal/service/wafv2/schemas.go +++ b/internal/service/wafv2/schemas.go @@ -591,7 +591,7 @@ func requestBodySchema() *schema.Schema { }, }, }, - "verifiedaccess_instance": { + "verified_access_instance": { Type: schema.TypeList, Optional: true, Elem: &schema.Resource{ diff --git a/internal/service/wafv2/web_acl_test.go b/internal/service/wafv2/web_acl_test.go index 0909079d86fc..255eac66f5b5 100644 --- a/internal/service/wafv2/web_acl_test.go +++ b/internal/service/wafv2/web_acl_test.go @@ -2940,8 +2940,8 @@ func TestAccWAFV2WebACL_associationConfigRegional(t *testing.T) { resource.TestCheckResourceAttr(resourceName, "association_config.0.request_body.0.cognito_user_pool.0.default_size_inspection_limit", "KB_32"), resource.TestCheckResourceAttr(resourceName, "association_config.0.request_body.0.apprunner_service.#", acctest.Ct1), resource.TestCheckResourceAttr(resourceName, "association_config.0.request_body.0.apprunner_service.0.default_size_inspection_limit", "KB_48"), - resource.TestCheckResourceAttr(resourceName, "association_config.0.request_body.0.verifiedaccess_instance.#", acctest.Ct1), - resource.TestCheckResourceAttr(resourceName, "association_config.0.request_body.0.verifiedaccess_instance.0.default_size_inspection_limit", "KB_64"), + resource.TestCheckResourceAttr(resourceName, "association_config.0.request_body.0.verified_access_instance.#", acctest.Ct1), + resource.TestCheckResourceAttr(resourceName, "association_config.0.request_body.0.verified_access_instance.0.default_size_inspection_limit", "KB_64"), resource.TestCheckResourceAttr(resourceName, "default_action.#", acctest.Ct1), resource.TestCheckResourceAttr(resourceName, "default_action.0.allow.#", acctest.Ct1), resource.TestCheckResourceAttr(resourceName, "default_action.0.block.#", acctest.Ct0), @@ -6039,7 +6039,7 @@ resource "aws_wafv2_web_acl" "test" { apprunner_service { default_size_inspection_limit = "KB_48" } - verifiedaccess_instance { + verified_access_instance { default_size_inspection_limit = "KB_64" } } diff --git a/website/docs/r/wafv2_web_acl.html.markdown b/website/docs/r/wafv2_web_acl.html.markdown index 6369cf2c1f37..4cc715f10cc4 100644 --- a/website/docs/r/wafv2_web_acl.html.markdown +++ b/website/docs/r/wafv2_web_acl.html.markdown @@ -439,7 +439,7 @@ resource "aws_wafv2_web_acl" "example" { cognito_user_pool { default_size_inspection_limit = "KB_64" } - verifiedaccess_instance { + verified_access_instance { default_size_inspection_limit = "KB_64" } } @@ -1013,7 +1013,7 @@ The `request_body` block supports the following arguments: * `apprunner_service` - (Optional) Customizes the request body that your protected Amazon App Runner services forward to AWS WAF for inspection. Applicable only when `scope` is set to `REGIONAL`. See [`apprunner_service`](#apprunner_service-block) below for details. * `cloudfront` - (Optional) Customizes the request body that your protected Amazon CloudFront distributions forward to AWS WAF for inspection. Applicable only when `scope` is set to `REGIONAL`. See [`cloudfront`](#cloudfront-block) below for details. * `cognito_user_pool` - (Optional) Customizes the request body that your protected Amazon Cognito user pools forward to AWS WAF for inspection. Applicable only when `scope` is set to `REGIONAL`. See [`cognito_user_pool`](#cognito_user_pool-block) below for details. -* `verifiedaccess_instance` - (Optional) Customizes the request body that your protected AWS Verfied Access instances forward to AWS WAF for inspection. Applicable only when `scope` is set to `REGIONAL`. See [`verifiedaccess_instance`](#verifiedaccess_instance-block) below for details. +* `verified_access_instance` - (Optional) Customizes the request body that your protected AWS Verfied Access instances forward to AWS WAF for inspection. Applicable only when `scope` is set to `REGIONAL`. See [`verified_access_instance`](#verified_access_instance-block) below for details. ### `api_gateway` Block @@ -1039,9 +1039,9 @@ The `cognito_user_pool` block supports the following arguments: * `default_size_inspection_limit` - (Required) Specifies the maximum size of the web request body component that an associated Amazon Cognito user pools should send to AWS WAF for inspection. This applies to statements in the web ACL that inspect the body or JSON body. Valid values are `KB_16`, `KB_32`, `KB_48` and `KB_64`. -### `verifiedaccess_instance` Block +### `verified_access_instance` Block -The `verifiedaccess_instance` block supports the following arguments: +The `verified_access_instance` block supports the following arguments: * `default_size_inspection_limit` - (Required) Specifies the maximum size of the web request body component that an associated AWS Verified Access instances should send to AWS WAF for inspection. This applies to statements in the web ACL that inspect the body or JSON body. Valid values are `KB_16`, `KB_32`, `KB_48` and `KB_64`.