Skip to content

Commit

Permalink
r/aws_wafv2_web_acl: 'app_runner_service' -> 'apprunner_service'.
Browse files Browse the repository at this point in the history
  • Loading branch information
ewbankkit committed May 20, 2024
1 parent 3685f42 commit 802e4df
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .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`, `app_runner_service`, `cognito_user_pool`, and `verified_access_instance` configuration blocks to the `association_config.request_body` argument
resource/aws_wafv2_web_acl: Add `api_gateway`, `apprunner_service`, `cognito_user_pool`, and `verified_access_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 @@ -552,7 +552,7 @@ func requestBodySchema() *schema.Schema {
},
},
},
"app_runner_service": {
"apprunner_service": {
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 @@ -2938,8 +2938,8 @@ func TestAccWAFV2WebACL_associationConfigRegional(t *testing.T) {
resource.TestCheckResourceAttr(resourceName, "association_config.0.request_body.0.api_gateway.0.default_size_inspection_limit", "KB_16"),
resource.TestCheckResourceAttr(resourceName, "association_config.0.request_body.0.cognito_user_pool.#", acctest.Ct1),
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.app_runner_service.#", acctest.Ct1),
resource.TestCheckResourceAttr(resourceName, "association_config.0.request_body.0.app_runner_service.0.default_size_inspection_limit", "KB_48"),
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, "default_action.#", acctest.Ct1),
Expand Down Expand Up @@ -6036,7 +6036,7 @@ resource "aws_wafv2_web_acl" "test" {
cognito_user_pool {
default_size_inspection_limit = "KB_32"
}
app_runner_service {
apprunner_service {
default_size_inspection_limit = "KB_48"
}
verified_access_instance {
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 @@ -433,7 +433,7 @@ resource "aws_wafv2_web_acl" "example" {
api_gateway {
default_size_inspection_limit = "KB_64"
}
app_runner_service {
apprunner_service {
default_size_inspection_limit = "KB_64"
}
cognito_user_pool {
Expand Down Expand Up @@ -1010,7 +1010,7 @@ The `immunity_time_property` block supports the following arguments:
The `request_body` block supports the following arguments:

* `api_gateway` - (Optional) Customizes the request body that your protected Amazon API Gateway REST APIs forward to AWS WAF for inspection. Applicable only when `scope` is set to `CLOUDFRONT`. See [`api_gateway`](#api_gateway-block) below for details.
* `app_runner_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 [`app_runner_service`](#app_runner_service-block) below for details.
* `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.
Expand All @@ -1021,9 +1021,9 @@ The `api_gateway` block supports the following arguments:

* `default_size_inspection_limit` - (Required) Specifies the maximum size of the web request body component that an associated Amazon API Gateway REST APIs 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`.

### `app_runner_service` Block
### `apprunner_service` Block

The `app_runner_service` block supports the following arguments:
The `apprunner_service` block supports the following arguments:

* `default_size_inspection_limit` - (Required) Specifies the maximum size of the web request body component that an associated Amazon App Runner services 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 802e4df

Please sign in to comment.