Home

envoy.config.route.v3.WeightedCluster.ClusterWeight

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.WeightedCluster.ClusterWeight
.withClusterHeader('string')
.withHostRewriteLiteral('string')
.withMetadataMatch(types.envoy.config.core.v3.Metadata)
.withName('string')
.withRequestHeadersToAdd([ types.envoy.config.core.v3.HeaderValueOption ])
.withRequestHeadersToRemove([ 'string' ])
.withResponseHeadersToAdd([ types.envoy.config.core.v3.HeaderValueOption ])
.withResponseHeadersToRemove([ 'string' ])
.withTypedPerFilterConfig({ key: types.google.protobuf.Any })
.withWeight(1)
._validate()

Nested Messages

Fields

Name Type One-of group Required Constraints
cluster_header string   {"String_":{"WellKnown":{"WellKnownRegex":1},"strict":false}}
host_rewrite_literal string host_rewrite_specifier   {"String_":{"WellKnown":{"WellKnownRegex":2},"strict":false}}
metadata_match envoy.config.core.v3.Metadata  
name string  
request_headers_to_add [] envoy.config.core.v3.HeaderValueOption   {"Repeated":{"max_items":1000}}
request_headers_to_remove [] string   {"Repeated":{"items":{"Type":{"String_":{"WellKnown":{"WellKnownRegex":1},"strict":false}}}}}
response_headers_to_add [] envoy.config.core.v3.HeaderValueOption   {"Repeated":{"max_items":1000}}
response_headers_to_remove [] string   {"Repeated":{"items":{"Type":{"String_":{"WellKnown":{"WellKnownRegex":1},"strict":false}}}}}
typed_per_filter_config map[string] google.protobuf.Any  
weight google.protobuf.UInt32Value