Home

envoy.config.route.v3.RedirectAction

Example

Disclaimer: The example is meant to show what methods are available on the object and does not necessarily constitute working code.
local types = import 'types.libsonnet';

types.envoy.config.route.v3.RedirectAction
.withHostRedirect('string')
.withHttpsRedirect(false)
.withPathRedirect('string')
.withPortRedirect(1)
.withPrefixRewrite('string')
.withRegexRewrite(types.envoy.type.matcher.v3.RegexMatchAndSubstitute)
.withResponseCode(types.envoy.config.route.v3.RedirectAction.RedirectResponseCode.MOVED_PERMANENTLY)
.withSchemeRedirect('string')
.withStripQuery(false)
._validate()

Nested Enums

Fields

Name Type One-of group Required Constraints
host_redirect string   {"String_":{"WellKnown":{"WellKnownRegex":2},"strict":false}}
https_redirect bool scheme_rewrite_specifier  
path_redirect string path_rewrite_specifier   {"String_":{"WellKnown":{"WellKnownRegex":2},"strict":false}}
port_redirect uint32  
prefix_rewrite string path_rewrite_specifier   {"String_":{"WellKnown":{"WellKnownRegex":2},"strict":false}}
regex_rewrite envoy.type.matcher.v3.RegexMatchAndSubstitute path_rewrite_specifier  
response_code envoy.config.route.v3.RedirectAction.RedirectResponseCode   {"Enum":{"defined_only":true}}
scheme_redirect string scheme_rewrite_specifier  
strip_query bool