|
8 | 8 | LoadBalancerMode string |
9 | 9 | LoadBalancerMatcherType string |
10 | 10 | LoadBalancerActionType string |
| 11 | + LoadBalancerActionHTTPRedirectScheme string |
11 | 12 | LoadBalancerStringMatcherMethod string |
12 | 13 | LoadBalancerHTTPMatcherMethod string |
13 | 14 | LoadBalancerIntegerMatcherMethod string |
@@ -73,6 +74,9 @@ const ( |
73 | 74 | LoadBalancerActionTypeHTTPRedirect LoadBalancerActionType = "http_redirect" |
74 | 75 | LoadBalancerActionTypeSetForwardedHeaders LoadBalancerActionType = "set_forwarded_headers" |
75 | 76 |
|
| 77 | + LoadBalancerActionHTTPRedirectSchemeHTTP LoadBalancerActionHTTPRedirectScheme = "http" |
| 78 | + LoadBalancerActionHTTPRedirectSchemeHTTPS LoadBalancerActionHTTPRedirectScheme = "https" |
| 79 | + |
76 | 80 | LoadBalancerStringMatcherMethodExact LoadBalancerStringMatcherMethod = "exact" |
77 | 81 | LoadBalancerStringMatcherMethodSubstring LoadBalancerStringMatcherMethod = "substring" |
78 | 82 | LoadBalancerStringMatcherMethodRegexp LoadBalancerStringMatcherMethod = "regexp" |
@@ -323,9 +327,10 @@ type LoadBalancerActionHTTPReturn struct { |
323 | 327 | Payload string `json:"payload,omitempty"` |
324 | 328 | } |
325 | 329 |
|
326 | | -// LoadBalancerActionHTTPRedirect represents 'http_redirect' action |
| 330 | +// LoadBalancerActionHTTPRedirect represents 'http_redirect' action. Only either Location or Scheme should be defined. |
327 | 331 | type LoadBalancerActionHTTPRedirect struct { |
328 | | - Location string `json:"location,omitempty"` |
| 332 | + Location string `json:"location,omitempty"` |
| 333 | + Scheme LoadBalancerActionHTTPRedirectScheme `json:"scheme,omitempty"` |
329 | 334 | } |
330 | 335 |
|
331 | 336 | // LoadBalancerActionSetForwardedHeaders represents 'set_forwarded_headers' action |
|
0 commit comments