You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`pipeline_id` - (Required) The ID of the pipeline.
38
-
-`after_position` - (Optional) Add rules after the given position. Only one of `after_position` and `before_position` should be specified.
39
-
-`before_position` - (Optional) Add rules before the given position. Only one of `after_position` and `before_position` should be specified.
40
35
-`waf_stage_id` - (Optional) The ID of the WAF stage HTTP requests should be forwarded to when no rules are matched.
41
-
-`rules` - (Optional) The list of rules to be checked against every HTTP request. The first matching rule will forward the request to its specified backend stage. If no rules are matched, the request is forwarded to the WAF stage defined by `waf_stage_id`.
36
+
-`rule` - (Optional) The list of rules to be checked against every HTTP request. The first matching rule will forward the request to its specified backend stage. If no rules are matched, the request is forwarded to the WAF stage defined by `waf_stage_id`.
42
37
-`backend_stage_id` (Required) The ID of the backend stage that requests matching the rule should be forwarded to.
43
38
-`rule_http_match` (Optional) The rule condition to be matched. Requests matching the condition defined here will be directly forwarded to the backend specified by the `backend_stage_id` field. Requests that do not match will be checked by the next rule's condition.
44
39
-`method_filters` (Optional) HTTP methods to filter for. A request using any of these methods will be considered to match the rule. Possible values are `get`, `post`, `put`, `patch`, `delete`, `head`, `options`. All methods will match if none is provided.
Description: "The ID of the WAF stage HTTP requests should be forwarded to when no rules are matched",
36
36
},
37
-
"after_position": {
38
-
Type: schema.TypeInt,
39
-
Optional: true,
40
-
Description: "Add rules after the given position",
41
-
ConflictsWith: []string{"before_position"},
42
-
},
43
-
"before_position": {
44
-
Type: schema.TypeInt,
45
-
Optional: true,
46
-
Description: "Add rules before the given position",
47
-
ConflictsWith: []string{"after_position"},
48
-
},
49
-
"rules": {
37
+
"rule": {
50
38
Type: schema.TypeList,
51
39
Optional: true,
52
40
Description: "List of rules to be checked against every HTTP request. The first matching rule will forward the request to its specified backend stage. If no rules are matched, the request is forwarded to the WAF stage defined by `waf_stage_id`",
@@ -127,25 +115,9 @@ func ResourceRouteStageCreate(ctx context.Context, d *schema.ResourceData, m int
0 commit comments