Skip to content

Commit 024d427

Browse files
Added redirect_options to compute_security_policy. (#5926) (#11492)
Signed-off-by: Modular Magician <[email protected]>
1 parent 3d83d71 commit 024d427

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

.changelog/5926.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
compute: Added `redirect_options` field for `google_compute_security_policy` rules
3+
```

website/docs/r/compute_security_policy.html.markdown

+12
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ The following arguments are supported:
9696
* `rate_limit_options` - (Optional, [Beta](https://terraform.io/docs/providers/google/guides/provider_versions.html))
9797
Must be specified if the `action` is "rate_based_bad" or "throttle". Cannot be specified for other actions. Structure is [documented below](#nested_rate_limit_options).
9898

99+
* `redirect_options` - (Optional, [Beta](https://terraform.io/docs/providers/google/guides/provider_versions.html))
100+
Can be specified if the `action` is "redirect". Cannot be specified for other actions. Structure is [documented below](#nested_redirect_options).
101+
99102
<a name="nested_match"></a>The `match` block supports:
100103

101104
* `config` - (Optional) The configuration options available when specifying `versioned_expr`.
@@ -153,6 +156,15 @@ The following arguments are supported:
153156

154157
* `interval_sec` - (Optional) Interval over which the threshold is computed.
155158

159+
<a name="nested_redirect_options"></a>The `redirect_options` block supports:
160+
161+
* `type` - (Required) Type of redirect action.
162+
163+
* EXTERNAL_302: Redirect to an external address, configured in 'target'.
164+
* GOOGLE_RECAPTCHA: Redirect to Google reCAPTCHA.
165+
166+
* `target` - (Optional) External redirection target when "EXTERNAL_302" is set in 'type'.
167+
156168
<a name="nested_adaptive_protection_config"></a>The `adaptive_protection_config` block supports:
157169

158170
* `layer_7_ddos_defense_config` - (Optional, [Beta](https://terraform.io/docs/providers/google/guides/provider_versions.html)) Configuration for [Google Cloud Armor Adaptive Protection Layer 7 DDoS Defense](https://cloud.google.com/armor/docs/adaptive-protection-overview?hl=en). Structure is [documented below](#nested_layer_7_ddos_defense_config).

0 commit comments

Comments
 (0)