Skip to content

Commit

Permalink
r/aws_wafv2_web_acl: 'verified_access_instance' -> 'verifiedaccess_in…
Browse files Browse the repository at this point in the history
…stance'.
  • Loading branch information
ewbankkit committed May 20, 2024
1 parent 802e4df commit ff8d9ff
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .changelog/37588.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
```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`
```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`
```
2 changes: 1 addition & 1 deletion internal/service/wafv2/schemas.go
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ func requestBodySchema() *schema.Schema {
},
},
},
"verified_access_instance": {
"verifiedaccess_instance": {
Type: schema.TypeList,
Optional: true,
Elem: &schema.Resource{
Expand Down
6 changes: 3 additions & 3 deletions internal/service/wafv2/web_acl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.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, "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, "default_action.#", acctest.Ct1),
resource.TestCheckResourceAttr(resourceName, "default_action.0.allow.#", acctest.Ct1),
resource.TestCheckResourceAttr(resourceName, "default_action.0.block.#", acctest.Ct0),
Expand Down Expand Up @@ -6039,7 +6039,7 @@ resource "aws_wafv2_web_acl" "test" {
apprunner_service {
default_size_inspection_limit = "KB_48"
}
verified_access_instance {
verifiedaccess_instance {
default_size_inspection_limit = "KB_64"
}
}
Expand Down
8 changes: 4 additions & 4 deletions website/docs/r/wafv2_web_acl.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ resource "aws_wafv2_web_acl" "example" {
cognito_user_pool {
default_size_inspection_limit = "KB_64"
}
verified_access_instance {
verifiedaccess_instance {
default_size_inspection_limit = "KB_64"
}
}
Expand Down Expand Up @@ -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.
* `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.
* `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.

### `api_gateway` Block

Expand All @@ -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`.

### `verified_access_instance` Block
### `verifiedaccess_instance` Block

The `verified_access_instance` block supports the following arguments:
The `verifiedaccess_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`.

Expand Down

0 comments on commit ff8d9ff

Please sign in to comment.