Consul v3.11.3 published on Friday, May 24, 2024 by Pulumi
consul.ConfigEntryServiceResolver
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as consul from "@pulumi/consul";
const web = new consul.ConfigEntryServiceResolver("web", {
name: "web",
defaultSubset: "v1",
connectTimeout: "15s",
subsets: [
{
name: "v1",
filter: "Service.Meta.version == v1",
},
{
name: "v2",
filter: "Service.Meta.version == v2",
},
],
redirects: [{
service: "web",
datacenter: "dc2",
}],
failovers: [
{
subsetName: "v2",
datacenters: ["dc2"],
},
{
subsetName: "*",
datacenters: [
"dc3",
"dc4",
],
},
],
});
import pulumi
import pulumi_consul as consul
web = consul.ConfigEntryServiceResolver("web",
name="web",
default_subset="v1",
connect_timeout="15s",
subsets=[
consul.ConfigEntryServiceResolverSubsetArgs(
name="v1",
filter="Service.Meta.version == v1",
),
consul.ConfigEntryServiceResolverSubsetArgs(
name="v2",
filter="Service.Meta.version == v2",
),
],
redirects=[consul.ConfigEntryServiceResolverRedirectArgs(
service="web",
datacenter="dc2",
)],
failovers=[
consul.ConfigEntryServiceResolverFailoverArgs(
subset_name="v2",
datacenters=["dc2"],
),
consul.ConfigEntryServiceResolverFailoverArgs(
subset_name="*",
datacenters=[
"dc3",
"dc4",
],
),
])
package main
import (
"github.com/pulumi/pulumi-consul/sdk/v3/go/consul"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := consul.NewConfigEntryServiceResolver(ctx, "web", &consul.ConfigEntryServiceResolverArgs{
Name: pulumi.String("web"),
DefaultSubset: pulumi.String("v1"),
ConnectTimeout: pulumi.String("15s"),
Subsets: consul.ConfigEntryServiceResolverSubsetArray{
&consul.ConfigEntryServiceResolverSubsetArgs{
Name: pulumi.String("v1"),
Filter: pulumi.String("Service.Meta.version == v1"),
},
&consul.ConfigEntryServiceResolverSubsetArgs{
Name: pulumi.String("v2"),
Filter: pulumi.String("Service.Meta.version == v2"),
},
},
Redirects: consul.ConfigEntryServiceResolverRedirectArray{
&consul.ConfigEntryServiceResolverRedirectArgs{
Service: pulumi.String("web"),
Datacenter: pulumi.String("dc2"),
},
},
Failovers: consul.ConfigEntryServiceResolverFailoverArray{
&consul.ConfigEntryServiceResolverFailoverArgs{
SubsetName: pulumi.String("v2"),
Datacenters: pulumi.StringArray{
pulumi.String("dc2"),
},
},
&consul.ConfigEntryServiceResolverFailoverArgs{
SubsetName: pulumi.String("*"),
Datacenters: pulumi.StringArray{
pulumi.String("dc3"),
pulumi.String("dc4"),
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Consul = Pulumi.Consul;
return await Deployment.RunAsync(() =>
{
var web = new Consul.ConfigEntryServiceResolver("web", new()
{
Name = "web",
DefaultSubset = "v1",
ConnectTimeout = "15s",
Subsets = new[]
{
new Consul.Inputs.ConfigEntryServiceResolverSubsetArgs
{
Name = "v1",
Filter = "Service.Meta.version == v1",
},
new Consul.Inputs.ConfigEntryServiceResolverSubsetArgs
{
Name = "v2",
Filter = "Service.Meta.version == v2",
},
},
Redirects = new[]
{
new Consul.Inputs.ConfigEntryServiceResolverRedirectArgs
{
Service = "web",
Datacenter = "dc2",
},
},
Failovers = new[]
{
new Consul.Inputs.ConfigEntryServiceResolverFailoverArgs
{
SubsetName = "v2",
Datacenters = new[]
{
"dc2",
},
},
new Consul.Inputs.ConfigEntryServiceResolverFailoverArgs
{
SubsetName = "*",
Datacenters = new[]
{
"dc3",
"dc4",
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.consul.ConfigEntryServiceResolver;
import com.pulumi.consul.ConfigEntryServiceResolverArgs;
import com.pulumi.consul.inputs.ConfigEntryServiceResolverSubsetArgs;
import com.pulumi.consul.inputs.ConfigEntryServiceResolverRedirectArgs;
import com.pulumi.consul.inputs.ConfigEntryServiceResolverFailoverArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var web = new ConfigEntryServiceResolver("web", ConfigEntryServiceResolverArgs.builder()
.name("web")
.defaultSubset("v1")
.connectTimeout("15s")
.subsets(
ConfigEntryServiceResolverSubsetArgs.builder()
.name("v1")
.filter("Service.Meta.version == v1")
.build(),
ConfigEntryServiceResolverSubsetArgs.builder()
.name("v2")
.filter("Service.Meta.version == v2")
.build())
.redirects(ConfigEntryServiceResolverRedirectArgs.builder()
.service("web")
.datacenter("dc2")
.build())
.failovers(
ConfigEntryServiceResolverFailoverArgs.builder()
.subsetName("v2")
.datacenters("dc2")
.build(),
ConfigEntryServiceResolverFailoverArgs.builder()
.subsetName("*")
.datacenters(
"dc3",
"dc4")
.build())
.build());
}
}
resources:
web:
type: consul:ConfigEntryServiceResolver
properties:
name: web
defaultSubset: v1
connectTimeout: 15s
subsets:
- name: v1
filter: Service.Meta.version == v1
- name: v2
filter: Service.Meta.version == v2
redirects:
- service: web
datacenter: dc2
failovers:
- subsetName: v2
datacenters:
- dc2
- subsetName: '*'
datacenters:
- dc3
- dc4
Create ConfigEntryServiceResolver Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ConfigEntryServiceResolver(name: string, args?: ConfigEntryServiceResolverArgs, opts?: CustomResourceOptions);
@overload
def ConfigEntryServiceResolver(resource_name: str,
args: Optional[ConfigEntryServiceResolverArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def ConfigEntryServiceResolver(resource_name: str,
opts: Optional[ResourceOptions] = None,
connect_timeout: Optional[str] = None,
default_subset: Optional[str] = None,
failovers: Optional[Sequence[ConfigEntryServiceResolverFailoverArgs]] = None,
load_balancers: Optional[Sequence[ConfigEntryServiceResolverLoadBalancerArgs]] = None,
meta: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
namespace: Optional[str] = None,
partition: Optional[str] = None,
redirects: Optional[Sequence[ConfigEntryServiceResolverRedirectArgs]] = None,
request_timeout: Optional[str] = None,
subsets: Optional[Sequence[ConfigEntryServiceResolverSubsetArgs]] = None)
func NewConfigEntryServiceResolver(ctx *Context, name string, args *ConfigEntryServiceResolverArgs, opts ...ResourceOption) (*ConfigEntryServiceResolver, error)
public ConfigEntryServiceResolver(string name, ConfigEntryServiceResolverArgs? args = null, CustomResourceOptions? opts = null)
public ConfigEntryServiceResolver(String name, ConfigEntryServiceResolverArgs args)
public ConfigEntryServiceResolver(String name, ConfigEntryServiceResolverArgs args, CustomResourceOptions options)
type: consul:ConfigEntryServiceResolver
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ConfigEntryServiceResolverArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ConfigEntryServiceResolverArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ConfigEntryServiceResolverArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ConfigEntryServiceResolverArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ConfigEntryServiceResolverArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var configEntryServiceResolverResource = new Consul.ConfigEntryServiceResolver("configEntryServiceResolverResource", new()
{
ConnectTimeout = "string",
DefaultSubset = "string",
Failovers = new[]
{
new Consul.Inputs.ConfigEntryServiceResolverFailoverArgs
{
SubsetName = "string",
Datacenters = new[]
{
"string",
},
Namespace = "string",
SamenessGroup = "string",
Service = "string",
ServiceSubset = "string",
Targets = new[]
{
new Consul.Inputs.ConfigEntryServiceResolverFailoverTargetArgs
{
Datacenter = "string",
Namespace = "string",
Partition = "string",
Peer = "string",
Service = "string",
ServiceSubset = "string",
},
},
},
},
LoadBalancers = new[]
{
new Consul.Inputs.ConfigEntryServiceResolverLoadBalancerArgs
{
HashPolicies = new[]
{
new Consul.Inputs.ConfigEntryServiceResolverLoadBalancerHashPolicyArgs
{
CookieConfigs = new[]
{
new Consul.Inputs.ConfigEntryServiceResolverLoadBalancerHashPolicyCookieConfigArgs
{
Path = "string",
Session = false,
Ttl = "string",
},
},
Field = "string",
FieldValue = "string",
SourceIp = false,
Terminal = false,
},
},
LeastRequestConfigs = new[]
{
new Consul.Inputs.ConfigEntryServiceResolverLoadBalancerLeastRequestConfigArgs
{
ChoiceCount = 0,
},
},
Policy = "string",
RingHashConfigs = new[]
{
new Consul.Inputs.ConfigEntryServiceResolverLoadBalancerRingHashConfigArgs
{
MaximumRingSize = 0,
MinimumRingSize = 0,
},
},
},
},
Meta =
{
{ "string", "string" },
},
Name = "string",
Namespace = "string",
Partition = "string",
Redirects = new[]
{
new Consul.Inputs.ConfigEntryServiceResolverRedirectArgs
{
Datacenter = "string",
Namespace = "string",
Partition = "string",
Peer = "string",
SamenessGroup = "string",
Service = "string",
ServiceSubset = "string",
},
},
RequestTimeout = "string",
Subsets = new[]
{
new Consul.Inputs.ConfigEntryServiceResolverSubsetArgs
{
Filter = "string",
Name = "string",
OnlyPassing = false,
},
},
});
example, err := consul.NewConfigEntryServiceResolver(ctx, "configEntryServiceResolverResource", &consul.ConfigEntryServiceResolverArgs{
ConnectTimeout: pulumi.String("string"),
DefaultSubset: pulumi.String("string"),
Failovers: consul.ConfigEntryServiceResolverFailoverArray{
&consul.ConfigEntryServiceResolverFailoverArgs{
SubsetName: pulumi.String("string"),
Datacenters: pulumi.StringArray{
pulumi.String("string"),
},
Namespace: pulumi.String("string"),
SamenessGroup: pulumi.String("string"),
Service: pulumi.String("string"),
ServiceSubset: pulumi.String("string"),
Targets: consul.ConfigEntryServiceResolverFailoverTargetArray{
&consul.ConfigEntryServiceResolverFailoverTargetArgs{
Datacenter: pulumi.String("string"),
Namespace: pulumi.String("string"),
Partition: pulumi.String("string"),
Peer: pulumi.String("string"),
Service: pulumi.String("string"),
ServiceSubset: pulumi.String("string"),
},
},
},
},
LoadBalancers: consul.ConfigEntryServiceResolverLoadBalancerArray{
&consul.ConfigEntryServiceResolverLoadBalancerArgs{
HashPolicies: consul.ConfigEntryServiceResolverLoadBalancerHashPolicyArray{
&consul.ConfigEntryServiceResolverLoadBalancerHashPolicyArgs{
CookieConfigs: consul.ConfigEntryServiceResolverLoadBalancerHashPolicyCookieConfigArray{
&consul.ConfigEntryServiceResolverLoadBalancerHashPolicyCookieConfigArgs{
Path: pulumi.String("string"),
Session: pulumi.Bool(false),
Ttl: pulumi.String("string"),
},
},
Field: pulumi.String("string"),
FieldValue: pulumi.String("string"),
SourceIp: pulumi.Bool(false),
Terminal: pulumi.Bool(false),
},
},
LeastRequestConfigs: consul.ConfigEntryServiceResolverLoadBalancerLeastRequestConfigArray{
&consul.ConfigEntryServiceResolverLoadBalancerLeastRequestConfigArgs{
ChoiceCount: pulumi.Int(0),
},
},
Policy: pulumi.String("string"),
RingHashConfigs: consul.ConfigEntryServiceResolverLoadBalancerRingHashConfigArray{
&consul.ConfigEntryServiceResolverLoadBalancerRingHashConfigArgs{
MaximumRingSize: pulumi.Int(0),
MinimumRingSize: pulumi.Int(0),
},
},
},
},
Meta: pulumi.StringMap{
"string": pulumi.String("string"),
},
Name: pulumi.String("string"),
Namespace: pulumi.String("string"),
Partition: pulumi.String("string"),
Redirects: consul.ConfigEntryServiceResolverRedirectArray{
&consul.ConfigEntryServiceResolverRedirectArgs{
Datacenter: pulumi.String("string"),
Namespace: pulumi.String("string"),
Partition: pulumi.String("string"),
Peer: pulumi.String("string"),
SamenessGroup: pulumi.String("string"),
Service: pulumi.String("string"),
ServiceSubset: pulumi.String("string"),
},
},
RequestTimeout: pulumi.String("string"),
Subsets: consul.ConfigEntryServiceResolverSubsetArray{
&consul.ConfigEntryServiceResolverSubsetArgs{
Filter: pulumi.String("string"),
Name: pulumi.String("string"),
OnlyPassing: pulumi.Bool(false),
},
},
})
var configEntryServiceResolverResource = new ConfigEntryServiceResolver("configEntryServiceResolverResource", ConfigEntryServiceResolverArgs.builder()
.connectTimeout("string")
.defaultSubset("string")
.failovers(ConfigEntryServiceResolverFailoverArgs.builder()
.subsetName("string")
.datacenters("string")
.namespace("string")
.samenessGroup("string")
.service("string")
.serviceSubset("string")
.targets(ConfigEntryServiceResolverFailoverTargetArgs.builder()
.datacenter("string")
.namespace("string")
.partition("string")
.peer("string")
.service("string")
.serviceSubset("string")
.build())
.build())
.loadBalancers(ConfigEntryServiceResolverLoadBalancerArgs.builder()
.hashPolicies(ConfigEntryServiceResolverLoadBalancerHashPolicyArgs.builder()
.cookieConfigs(ConfigEntryServiceResolverLoadBalancerHashPolicyCookieConfigArgs.builder()
.path("string")
.session(false)
.ttl("string")
.build())
.field("string")
.fieldValue("string")
.sourceIp(false)
.terminal(false)
.build())
.leastRequestConfigs(ConfigEntryServiceResolverLoadBalancerLeastRequestConfigArgs.builder()
.choiceCount(0)
.build())
.policy("string")
.ringHashConfigs(ConfigEntryServiceResolverLoadBalancerRingHashConfigArgs.builder()
.maximumRingSize(0)
.minimumRingSize(0)
.build())
.build())
.meta(Map.of("string", "string"))
.name("string")
.namespace("string")
.partition("string")
.redirects(ConfigEntryServiceResolverRedirectArgs.builder()
.datacenter("string")
.namespace("string")
.partition("string")
.peer("string")
.samenessGroup("string")
.service("string")
.serviceSubset("string")
.build())
.requestTimeout("string")
.subsets(ConfigEntryServiceResolverSubsetArgs.builder()
.filter("string")
.name("string")
.onlyPassing(false)
.build())
.build());
config_entry_service_resolver_resource = consul.ConfigEntryServiceResolver("configEntryServiceResolverResource",
connect_timeout="string",
default_subset="string",
failovers=[consul.ConfigEntryServiceResolverFailoverArgs(
subset_name="string",
datacenters=["string"],
namespace="string",
sameness_group="string",
service="string",
service_subset="string",
targets=[consul.ConfigEntryServiceResolverFailoverTargetArgs(
datacenter="string",
namespace="string",
partition="string",
peer="string",
service="string",
service_subset="string",
)],
)],
load_balancers=[consul.ConfigEntryServiceResolverLoadBalancerArgs(
hash_policies=[consul.ConfigEntryServiceResolverLoadBalancerHashPolicyArgs(
cookie_configs=[consul.ConfigEntryServiceResolverLoadBalancerHashPolicyCookieConfigArgs(
path="string",
session=False,
ttl="string",
)],
field="string",
field_value="string",
source_ip=False,
terminal=False,
)],
least_request_configs=[consul.ConfigEntryServiceResolverLoadBalancerLeastRequestConfigArgs(
choice_count=0,
)],
policy="string",
ring_hash_configs=[consul.ConfigEntryServiceResolverLoadBalancerRingHashConfigArgs(
maximum_ring_size=0,
minimum_ring_size=0,
)],
)],
meta={
"string": "string",
},
name="string",
namespace="string",
partition="string",
redirects=[consul.ConfigEntryServiceResolverRedirectArgs(
datacenter="string",
namespace="string",
partition="string",
peer="string",
sameness_group="string",
service="string",
service_subset="string",
)],
request_timeout="string",
subsets=[consul.ConfigEntryServiceResolverSubsetArgs(
filter="string",
name="string",
only_passing=False,
)])
const configEntryServiceResolverResource = new consul.ConfigEntryServiceResolver("configEntryServiceResolverResource", {
connectTimeout: "string",
defaultSubset: "string",
failovers: [{
subsetName: "string",
datacenters: ["string"],
namespace: "string",
samenessGroup: "string",
service: "string",
serviceSubset: "string",
targets: [{
datacenter: "string",
namespace: "string",
partition: "string",
peer: "string",
service: "string",
serviceSubset: "string",
}],
}],
loadBalancers: [{
hashPolicies: [{
cookieConfigs: [{
path: "string",
session: false,
ttl: "string",
}],
field: "string",
fieldValue: "string",
sourceIp: false,
terminal: false,
}],
leastRequestConfigs: [{
choiceCount: 0,
}],
policy: "string",
ringHashConfigs: [{
maximumRingSize: 0,
minimumRingSize: 0,
}],
}],
meta: {
string: "string",
},
name: "string",
namespace: "string",
partition: "string",
redirects: [{
datacenter: "string",
namespace: "string",
partition: "string",
peer: "string",
samenessGroup: "string",
service: "string",
serviceSubset: "string",
}],
requestTimeout: "string",
subsets: [{
filter: "string",
name: "string",
onlyPassing: false,
}],
});
type: consul:ConfigEntryServiceResolver
properties:
connectTimeout: string
defaultSubset: string
failovers:
- datacenters:
- string
namespace: string
samenessGroup: string
service: string
serviceSubset: string
subsetName: string
targets:
- datacenter: string
namespace: string
partition: string
peer: string
service: string
serviceSubset: string
loadBalancers:
- hashPolicies:
- cookieConfigs:
- path: string
session: false
ttl: string
field: string
fieldValue: string
sourceIp: false
terminal: false
leastRequestConfigs:
- choiceCount: 0
policy: string
ringHashConfigs:
- maximumRingSize: 0
minimumRingSize: 0
meta:
string: string
name: string
namespace: string
partition: string
redirects:
- datacenter: string
namespace: string
partition: string
peer: string
samenessGroup: string
service: string
serviceSubset: string
requestTimeout: string
subsets:
- filter: string
name: string
onlyPassing: false
ConfigEntryServiceResolver Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The ConfigEntryServiceResolver resource accepts the following input properties:
- Connect
Timeout string - Specifies the timeout duration for establishing new network connections to this service.
- Default
Subset string - Specifies a defined subset of service instances to use when no explicit subset is requested. If this parameter is not specified, Consul uses the unnamed default subset.
- Failovers
List<Config
Entry Service Resolver Failover> - Specifies controls for rerouting traffic to an alternate pool of service instances if the target service fails.
- Load
Balancers List<ConfigEntry Service Resolver Load Balancer> - Specifies the load balancing policy and configuration for services issuing requests to this upstream.
- Meta Dictionary<string, string>
- Specifies key-value pairs to add to the KV store.
- Name string
- Specifies a name for the configuration entry.
- Namespace string
- Specifies the namespace that the service resolver applies to.
- Partition string
- Specifies the admin partition that the service resolver applies to.
- Redirects
List<Config
Entry Service Resolver Redirect> - Specifies redirect instructions for local service traffic so that services deployed to a different network location resolve the upstream request instead.
- Request
Timeout string - Specifies the timeout duration for receiving an HTTP response from this service.
- Subsets
List<Config
Entry Service Resolver Subset> - Specifies names for custom service subsets and the conditions under which service instances belong to each subset.
- Connect
Timeout string - Specifies the timeout duration for establishing new network connections to this service.
- Default
Subset string - Specifies a defined subset of service instances to use when no explicit subset is requested. If this parameter is not specified, Consul uses the unnamed default subset.
- Failovers
[]Config
Entry Service Resolver Failover Args - Specifies controls for rerouting traffic to an alternate pool of service instances if the target service fails.
- Load
Balancers []ConfigEntry Service Resolver Load Balancer Args - Specifies the load balancing policy and configuration for services issuing requests to this upstream.
- Meta map[string]string
- Specifies key-value pairs to add to the KV store.
- Name string
- Specifies a name for the configuration entry.
- Namespace string
- Specifies the namespace that the service resolver applies to.
- Partition string
- Specifies the admin partition that the service resolver applies to.
- Redirects
[]Config
Entry Service Resolver Redirect Args - Specifies redirect instructions for local service traffic so that services deployed to a different network location resolve the upstream request instead.
- Request
Timeout string - Specifies the timeout duration for receiving an HTTP response from this service.
- Subsets
[]Config
Entry Service Resolver Subset Args - Specifies names for custom service subsets and the conditions under which service instances belong to each subset.
- connect
Timeout String - Specifies the timeout duration for establishing new network connections to this service.
- default
Subset String - Specifies a defined subset of service instances to use when no explicit subset is requested. If this parameter is not specified, Consul uses the unnamed default subset.
- failovers
List<Config
Entry Service Resolver Failover> - Specifies controls for rerouting traffic to an alternate pool of service instances if the target service fails.
- load
Balancers List<ConfigEntry Service Resolver Load Balancer> - Specifies the load balancing policy and configuration for services issuing requests to this upstream.
- meta Map<String,String>
- Specifies key-value pairs to add to the KV store.
- name String
- Specifies a name for the configuration entry.
- namespace String
- Specifies the namespace that the service resolver applies to.
- partition String
- Specifies the admin partition that the service resolver applies to.
- redirects
List<Config
Entry Service Resolver Redirect> - Specifies redirect instructions for local service traffic so that services deployed to a different network location resolve the upstream request instead.
- request
Timeout String - Specifies the timeout duration for receiving an HTTP response from this service.
- subsets
List<Config
Entry Service Resolver Subset> - Specifies names for custom service subsets and the conditions under which service instances belong to each subset.
- connect
Timeout string - Specifies the timeout duration for establishing new network connections to this service.
- default
Subset string - Specifies a defined subset of service instances to use when no explicit subset is requested. If this parameter is not specified, Consul uses the unnamed default subset.
- failovers
Config
Entry Service Resolver Failover[] - Specifies controls for rerouting traffic to an alternate pool of service instances if the target service fails.
- load
Balancers ConfigEntry Service Resolver Load Balancer[] - Specifies the load balancing policy and configuration for services issuing requests to this upstream.
- meta {[key: string]: string}
- Specifies key-value pairs to add to the KV store.
- name string
- Specifies a name for the configuration entry.
- namespace string
- Specifies the namespace that the service resolver applies to.
- partition string
- Specifies the admin partition that the service resolver applies to.
- redirects
Config
Entry Service Resolver Redirect[] - Specifies redirect instructions for local service traffic so that services deployed to a different network location resolve the upstream request instead.
- request
Timeout string - Specifies the timeout duration for receiving an HTTP response from this service.
- subsets
Config
Entry Service Resolver Subset[] - Specifies names for custom service subsets and the conditions under which service instances belong to each subset.
- connect_
timeout str - Specifies the timeout duration for establishing new network connections to this service.
- default_
subset str - Specifies a defined subset of service instances to use when no explicit subset is requested. If this parameter is not specified, Consul uses the unnamed default subset.
- failovers
Sequence[Config
Entry Service Resolver Failover Args] - Specifies controls for rerouting traffic to an alternate pool of service instances if the target service fails.
- load_
balancers Sequence[ConfigEntry Service Resolver Load Balancer Args] - Specifies the load balancing policy and configuration for services issuing requests to this upstream.
- meta Mapping[str, str]
- Specifies key-value pairs to add to the KV store.
- name str
- Specifies a name for the configuration entry.
- namespace str
- Specifies the namespace that the service resolver applies to.
- partition str
- Specifies the admin partition that the service resolver applies to.
- redirects
Sequence[Config
Entry Service Resolver Redirect Args] - Specifies redirect instructions for local service traffic so that services deployed to a different network location resolve the upstream request instead.
- request_
timeout str - Specifies the timeout duration for receiving an HTTP response from this service.
- subsets
Sequence[Config
Entry Service Resolver Subset Args] - Specifies names for custom service subsets and the conditions under which service instances belong to each subset.
- connect
Timeout String - Specifies the timeout duration for establishing new network connections to this service.
- default
Subset String - Specifies a defined subset of service instances to use when no explicit subset is requested. If this parameter is not specified, Consul uses the unnamed default subset.
- failovers List<Property Map>
- Specifies controls for rerouting traffic to an alternate pool of service instances if the target service fails.
- load
Balancers List<Property Map> - Specifies the load balancing policy and configuration for services issuing requests to this upstream.
- meta Map<String>
- Specifies key-value pairs to add to the KV store.
- name String
- Specifies a name for the configuration entry.
- namespace String
- Specifies the namespace that the service resolver applies to.
- partition String
- Specifies the admin partition that the service resolver applies to.
- redirects List<Property Map>
- Specifies redirect instructions for local service traffic so that services deployed to a different network location resolve the upstream request instead.
- request
Timeout String - Specifies the timeout duration for receiving an HTTP response from this service.
- subsets List<Property Map>
- Specifies names for custom service subsets and the conditions under which service instances belong to each subset.
Outputs
All input properties are implicitly available as output properties. Additionally, the ConfigEntryServiceResolver resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing ConfigEntryServiceResolver Resource
Get an existing ConfigEntryServiceResolver resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ConfigEntryServiceResolverState, opts?: CustomResourceOptions): ConfigEntryServiceResolver
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
connect_timeout: Optional[str] = None,
default_subset: Optional[str] = None,
failovers: Optional[Sequence[ConfigEntryServiceResolverFailoverArgs]] = None,
load_balancers: Optional[Sequence[ConfigEntryServiceResolverLoadBalancerArgs]] = None,
meta: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
namespace: Optional[str] = None,
partition: Optional[str] = None,
redirects: Optional[Sequence[ConfigEntryServiceResolverRedirectArgs]] = None,
request_timeout: Optional[str] = None,
subsets: Optional[Sequence[ConfigEntryServiceResolverSubsetArgs]] = None) -> ConfigEntryServiceResolver
func GetConfigEntryServiceResolver(ctx *Context, name string, id IDInput, state *ConfigEntryServiceResolverState, opts ...ResourceOption) (*ConfigEntryServiceResolver, error)
public static ConfigEntryServiceResolver Get(string name, Input<string> id, ConfigEntryServiceResolverState? state, CustomResourceOptions? opts = null)
public static ConfigEntryServiceResolver get(String name, Output<String> id, ConfigEntryServiceResolverState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Connect
Timeout string - Specifies the timeout duration for establishing new network connections to this service.
- Default
Subset string - Specifies a defined subset of service instances to use when no explicit subset is requested. If this parameter is not specified, Consul uses the unnamed default subset.
- Failovers
List<Config
Entry Service Resolver Failover> - Specifies controls for rerouting traffic to an alternate pool of service instances if the target service fails.
- Load
Balancers List<ConfigEntry Service Resolver Load Balancer> - Specifies the load balancing policy and configuration for services issuing requests to this upstream.
- Meta Dictionary<string, string>
- Specifies key-value pairs to add to the KV store.
- Name string
- Specifies a name for the configuration entry.
- Namespace string
- Specifies the namespace that the service resolver applies to.
- Partition string
- Specifies the admin partition that the service resolver applies to.
- Redirects
List<Config
Entry Service Resolver Redirect> - Specifies redirect instructions for local service traffic so that services deployed to a different network location resolve the upstream request instead.
- Request
Timeout string - Specifies the timeout duration for receiving an HTTP response from this service.
- Subsets
List<Config
Entry Service Resolver Subset> - Specifies names for custom service subsets and the conditions under which service instances belong to each subset.
- Connect
Timeout string - Specifies the timeout duration for establishing new network connections to this service.
- Default
Subset string - Specifies a defined subset of service instances to use when no explicit subset is requested. If this parameter is not specified, Consul uses the unnamed default subset.
- Failovers
[]Config
Entry Service Resolver Failover Args - Specifies controls for rerouting traffic to an alternate pool of service instances if the target service fails.
- Load
Balancers []ConfigEntry Service Resolver Load Balancer Args - Specifies the load balancing policy and configuration for services issuing requests to this upstream.
- Meta map[string]string
- Specifies key-value pairs to add to the KV store.
- Name string
- Specifies a name for the configuration entry.
- Namespace string
- Specifies the namespace that the service resolver applies to.
- Partition string
- Specifies the admin partition that the service resolver applies to.
- Redirects
[]Config
Entry Service Resolver Redirect Args - Specifies redirect instructions for local service traffic so that services deployed to a different network location resolve the upstream request instead.
- Request
Timeout string - Specifies the timeout duration for receiving an HTTP response from this service.
- Subsets
[]Config
Entry Service Resolver Subset Args - Specifies names for custom service subsets and the conditions under which service instances belong to each subset.
- connect
Timeout String - Specifies the timeout duration for establishing new network connections to this service.
- default
Subset String - Specifies a defined subset of service instances to use when no explicit subset is requested. If this parameter is not specified, Consul uses the unnamed default subset.
- failovers
List<Config
Entry Service Resolver Failover> - Specifies controls for rerouting traffic to an alternate pool of service instances if the target service fails.
- load
Balancers List<ConfigEntry Service Resolver Load Balancer> - Specifies the load balancing policy and configuration for services issuing requests to this upstream.
- meta Map<String,String>
- Specifies key-value pairs to add to the KV store.
- name String
- Specifies a name for the configuration entry.
- namespace String
- Specifies the namespace that the service resolver applies to.
- partition String
- Specifies the admin partition that the service resolver applies to.
- redirects
List<Config
Entry Service Resolver Redirect> - Specifies redirect instructions for local service traffic so that services deployed to a different network location resolve the upstream request instead.
- request
Timeout String - Specifies the timeout duration for receiving an HTTP response from this service.
- subsets
List<Config
Entry Service Resolver Subset> - Specifies names for custom service subsets and the conditions under which service instances belong to each subset.
- connect
Timeout string - Specifies the timeout duration for establishing new network connections to this service.
- default
Subset string - Specifies a defined subset of service instances to use when no explicit subset is requested. If this parameter is not specified, Consul uses the unnamed default subset.
- failovers
Config
Entry Service Resolver Failover[] - Specifies controls for rerouting traffic to an alternate pool of service instances if the target service fails.
- load
Balancers ConfigEntry Service Resolver Load Balancer[] - Specifies the load balancing policy and configuration for services issuing requests to this upstream.
- meta {[key: string]: string}
- Specifies key-value pairs to add to the KV store.
- name string
- Specifies a name for the configuration entry.
- namespace string
- Specifies the namespace that the service resolver applies to.
- partition string
- Specifies the admin partition that the service resolver applies to.
- redirects
Config
Entry Service Resolver Redirect[] - Specifies redirect instructions for local service traffic so that services deployed to a different network location resolve the upstream request instead.
- request
Timeout string - Specifies the timeout duration for receiving an HTTP response from this service.
- subsets
Config
Entry Service Resolver Subset[] - Specifies names for custom service subsets and the conditions under which service instances belong to each subset.
- connect_
timeout str - Specifies the timeout duration for establishing new network connections to this service.
- default_
subset str - Specifies a defined subset of service instances to use when no explicit subset is requested. If this parameter is not specified, Consul uses the unnamed default subset.
- failovers
Sequence[Config
Entry Service Resolver Failover Args] - Specifies controls for rerouting traffic to an alternate pool of service instances if the target service fails.
- load_
balancers Sequence[ConfigEntry Service Resolver Load Balancer Args] - Specifies the load balancing policy and configuration for services issuing requests to this upstream.
- meta Mapping[str, str]
- Specifies key-value pairs to add to the KV store.
- name str
- Specifies a name for the configuration entry.
- namespace str
- Specifies the namespace that the service resolver applies to.
- partition str
- Specifies the admin partition that the service resolver applies to.
- redirects
Sequence[Config
Entry Service Resolver Redirect Args] - Specifies redirect instructions for local service traffic so that services deployed to a different network location resolve the upstream request instead.
- request_
timeout str - Specifies the timeout duration for receiving an HTTP response from this service.
- subsets
Sequence[Config
Entry Service Resolver Subset Args] - Specifies names for custom service subsets and the conditions under which service instances belong to each subset.
- connect
Timeout String - Specifies the timeout duration for establishing new network connections to this service.
- default
Subset String - Specifies a defined subset of service instances to use when no explicit subset is requested. If this parameter is not specified, Consul uses the unnamed default subset.
- failovers List<Property Map>
- Specifies controls for rerouting traffic to an alternate pool of service instances if the target service fails.
- load
Balancers List<Property Map> - Specifies the load balancing policy and configuration for services issuing requests to this upstream.
- meta Map<String>
- Specifies key-value pairs to add to the KV store.
- name String
- Specifies a name for the configuration entry.
- namespace String
- Specifies the namespace that the service resolver applies to.
- partition String
- Specifies the admin partition that the service resolver applies to.
- redirects List<Property Map>
- Specifies redirect instructions for local service traffic so that services deployed to a different network location resolve the upstream request instead.
- request
Timeout String - Specifies the timeout duration for receiving an HTTP response from this service.
- subsets List<Property Map>
- Specifies names for custom service subsets and the conditions under which service instances belong to each subset.
Supporting Types
ConfigEntryServiceResolverFailover, ConfigEntryServiceResolverFailoverArgs
- Subset
Name string - Name of subset.
- Datacenters List<string>
- Specifies an ordered list of datacenters at the failover location to attempt connections to during a failover scenario. When Consul cannot establish a connection with the first datacenter in the list, it proceeds sequentially until establishing a connection with another datacenter.
- Namespace string
- Specifies the namespace at the failover location where the failover services are deployed.
- Sameness
Group string - Specifies the sameness group at the failover location where the failover services are deployed.
- Service string
- Specifies the name of the service to resolve at the failover location during a failover scenario.
- Service
Subset string - Specifies the name of a subset of service instances to resolve at the failover location during a failover scenario.
- Targets
List<Config
Entry Service Resolver Failover Target> - Specifies a fixed list of failover targets to try during failover. This list can express complicated failover scenarios.
- Subset
Name string - Name of subset.
- Datacenters []string
- Specifies an ordered list of datacenters at the failover location to attempt connections to during a failover scenario. When Consul cannot establish a connection with the first datacenter in the list, it proceeds sequentially until establishing a connection with another datacenter.
- Namespace string
- Specifies the namespace at the failover location where the failover services are deployed.
- Sameness
Group string - Specifies the sameness group at the failover location where the failover services are deployed.
- Service string
- Specifies the name of the service to resolve at the failover location during a failover scenario.
- Service
Subset string - Specifies the name of a subset of service instances to resolve at the failover location during a failover scenario.
- Targets
[]Config
Entry Service Resolver Failover Target - Specifies a fixed list of failover targets to try during failover. This list can express complicated failover scenarios.
- subset
Name String - Name of subset.
- datacenters List<String>
- Specifies an ordered list of datacenters at the failover location to attempt connections to during a failover scenario. When Consul cannot establish a connection with the first datacenter in the list, it proceeds sequentially until establishing a connection with another datacenter.
- namespace String
- Specifies the namespace at the failover location where the failover services are deployed.
- sameness
Group String - Specifies the sameness group at the failover location where the failover services are deployed.
- service String
- Specifies the name of the service to resolve at the failover location during a failover scenario.
- service
Subset String - Specifies the name of a subset of service instances to resolve at the failover location during a failover scenario.
- targets
List<Config
Entry Service Resolver Failover Target> - Specifies a fixed list of failover targets to try during failover. This list can express complicated failover scenarios.
- subset
Name string - Name of subset.
- datacenters string[]
- Specifies an ordered list of datacenters at the failover location to attempt connections to during a failover scenario. When Consul cannot establish a connection with the first datacenter in the list, it proceeds sequentially until establishing a connection with another datacenter.
- namespace string
- Specifies the namespace at the failover location where the failover services are deployed.
- sameness
Group string - Specifies the sameness group at the failover location where the failover services are deployed.
- service string
- Specifies the name of the service to resolve at the failover location during a failover scenario.
- service
Subset string - Specifies the name of a subset of service instances to resolve at the failover location during a failover scenario.
- targets
Config
Entry Service Resolver Failover Target[] - Specifies a fixed list of failover targets to try during failover. This list can express complicated failover scenarios.
- subset_
name str - Name of subset.
- datacenters Sequence[str]
- Specifies an ordered list of datacenters at the failover location to attempt connections to during a failover scenario. When Consul cannot establish a connection with the first datacenter in the list, it proceeds sequentially until establishing a connection with another datacenter.
- namespace str
- Specifies the namespace at the failover location where the failover services are deployed.
- sameness_
group str - Specifies the sameness group at the failover location where the failover services are deployed.
- service str
- Specifies the name of the service to resolve at the failover location during a failover scenario.
- service_
subset str - Specifies the name of a subset of service instances to resolve at the failover location during a failover scenario.
- targets
Sequence[Config
Entry Service Resolver Failover Target] - Specifies a fixed list of failover targets to try during failover. This list can express complicated failover scenarios.
- subset
Name String - Name of subset.
- datacenters List<String>
- Specifies an ordered list of datacenters at the failover location to attempt connections to during a failover scenario. When Consul cannot establish a connection with the first datacenter in the list, it proceeds sequentially until establishing a connection with another datacenter.
- namespace String
- Specifies the namespace at the failover location where the failover services are deployed.
- sameness
Group String - Specifies the sameness group at the failover location where the failover services are deployed.
- service String
- Specifies the name of the service to resolve at the failover location during a failover scenario.
- service
Subset String - Specifies the name of a subset of service instances to resolve at the failover location during a failover scenario.
- targets List<Property Map>
- Specifies a fixed list of failover targets to try during failover. This list can express complicated failover scenarios.
ConfigEntryServiceResolverFailoverTarget, ConfigEntryServiceResolverFailoverTargetArgs
- Datacenter string
- Specifies the WAN federated datacenter to use for the failover target. If empty, the current datacenter is used.
- Namespace string
- Specifies the namespace to use for the failover target. If empty, the default namespace is used.
- Partition string
- Specifies the admin partition within the same datacenter to use for the failover target. If empty, the default partition is used.
- Peer string
- Specifies the destination cluster peer to resolve the target service name from.
- Service string
- Specifies the service name to use for the failover target. If empty, the current service name is used.
- Service
Subset string - Specifies the named subset to use for the failover target. If empty, the default subset for the requested service name is used.
- Datacenter string
- Specifies the WAN federated datacenter to use for the failover target. If empty, the current datacenter is used.
- Namespace string
- Specifies the namespace to use for the failover target. If empty, the default namespace is used.
- Partition string
- Specifies the admin partition within the same datacenter to use for the failover target. If empty, the default partition is used.
- Peer string
- Specifies the destination cluster peer to resolve the target service name from.
- Service string
- Specifies the service name to use for the failover target. If empty, the current service name is used.
- Service
Subset string - Specifies the named subset to use for the failover target. If empty, the default subset for the requested service name is used.
- datacenter String
- Specifies the WAN federated datacenter to use for the failover target. If empty, the current datacenter is used.
- namespace String
- Specifies the namespace to use for the failover target. If empty, the default namespace is used.
- partition String
- Specifies the admin partition within the same datacenter to use for the failover target. If empty, the default partition is used.
- peer String
- Specifies the destination cluster peer to resolve the target service name from.
- service String
- Specifies the service name to use for the failover target. If empty, the current service name is used.
- service
Subset String - Specifies the named subset to use for the failover target. If empty, the default subset for the requested service name is used.
- datacenter string
- Specifies the WAN federated datacenter to use for the failover target. If empty, the current datacenter is used.
- namespace string
- Specifies the namespace to use for the failover target. If empty, the default namespace is used.
- partition string
- Specifies the admin partition within the same datacenter to use for the failover target. If empty, the default partition is used.
- peer string
- Specifies the destination cluster peer to resolve the target service name from.
- service string
- Specifies the service name to use for the failover target. If empty, the current service name is used.
- service
Subset string - Specifies the named subset to use for the failover target. If empty, the default subset for the requested service name is used.
- datacenter str
- Specifies the WAN federated datacenter to use for the failover target. If empty, the current datacenter is used.
- namespace str
- Specifies the namespace to use for the failover target. If empty, the default namespace is used.
- partition str
- Specifies the admin partition within the same datacenter to use for the failover target. If empty, the default partition is used.
- peer str
- Specifies the destination cluster peer to resolve the target service name from.
- service str
- Specifies the service name to use for the failover target. If empty, the current service name is used.
- service_
subset str - Specifies the named subset to use for the failover target. If empty, the default subset for the requested service name is used.
- datacenter String
- Specifies the WAN federated datacenter to use for the failover target. If empty, the current datacenter is used.
- namespace String
- Specifies the namespace to use for the failover target. If empty, the default namespace is used.
- partition String
- Specifies the admin partition within the same datacenter to use for the failover target. If empty, the default partition is used.
- peer String
- Specifies the destination cluster peer to resolve the target service name from.
- service String
- Specifies the service name to use for the failover target. If empty, the current service name is used.
- service
Subset String - Specifies the named subset to use for the failover target. If empty, the default subset for the requested service name is used.
ConfigEntryServiceResolverLoadBalancer, ConfigEntryServiceResolverLoadBalancerArgs
- Hash
Policies List<ConfigEntry Service Resolver Load Balancer Hash Policy> - Specifies a list of hash policies to use for hashing load balancing algorithms. Consul evaluates hash policies individually and combines them so that identical lists result in the same hash.
- Least
Request List<ConfigConfigs Entry Service Resolver Load Balancer Least Request Config> - Specifies configuration for the least*request policy type.
- Policy string
- Specifies the type of load balancing policy for selecting a host.
- Ring
Hash List<ConfigConfigs Entry Service Resolver Load Balancer Ring Hash Config> - Specifies configuration for the ring*hash policy type.
- Hash
Policies []ConfigEntry Service Resolver Load Balancer Hash Policy - Specifies a list of hash policies to use for hashing load balancing algorithms. Consul evaluates hash policies individually and combines them so that identical lists result in the same hash.
- Least
Request []ConfigConfigs Entry Service Resolver Load Balancer Least Request Config - Specifies configuration for the least*request policy type.
- Policy string
- Specifies the type of load balancing policy for selecting a host.
- Ring
Hash []ConfigConfigs Entry Service Resolver Load Balancer Ring Hash Config - Specifies configuration for the ring*hash policy type.
- hash
Policies List<ConfigEntry Service Resolver Load Balancer Hash Policy> - Specifies a list of hash policies to use for hashing load balancing algorithms. Consul evaluates hash policies individually and combines them so that identical lists result in the same hash.
- least
Request List<ConfigConfigs Entry Service Resolver Load Balancer Least Request Config> - Specifies configuration for the least*request policy type.
- policy String
- Specifies the type of load balancing policy for selecting a host.
- ring
Hash List<ConfigConfigs Entry Service Resolver Load Balancer Ring Hash Config> - Specifies configuration for the ring*hash policy type.
- hash
Policies ConfigEntry Service Resolver Load Balancer Hash Policy[] - Specifies a list of hash policies to use for hashing load balancing algorithms. Consul evaluates hash policies individually and combines them so that identical lists result in the same hash.
- least
Request ConfigConfigs Entry Service Resolver Load Balancer Least Request Config[] - Specifies configuration for the least*request policy type.
- policy string
- Specifies the type of load balancing policy for selecting a host.
- ring
Hash ConfigConfigs Entry Service Resolver Load Balancer Ring Hash Config[] - Specifies configuration for the ring*hash policy type.
- hash_
policies Sequence[ConfigEntry Service Resolver Load Balancer Hash Policy] - Specifies a list of hash policies to use for hashing load balancing algorithms. Consul evaluates hash policies individually and combines them so that identical lists result in the same hash.
- least_
request_ Sequence[Configconfigs Entry Service Resolver Load Balancer Least Request Config] - Specifies configuration for the least*request policy type.
- policy str
- Specifies the type of load balancing policy for selecting a host.
- ring_
hash_ Sequence[Configconfigs Entry Service Resolver Load Balancer Ring Hash Config] - Specifies configuration for the ring*hash policy type.
- hash
Policies List<Property Map> - Specifies a list of hash policies to use for hashing load balancing algorithms. Consul evaluates hash policies individually and combines them so that identical lists result in the same hash.
- least
Request List<Property Map>Configs - Specifies configuration for the least*request policy type.
- policy String
- Specifies the type of load balancing policy for selecting a host.
- ring
Hash List<Property Map>Configs - Specifies configuration for the ring*hash policy type.
ConfigEntryServiceResolverLoadBalancerHashPolicy, ConfigEntryServiceResolverLoadBalancerHashPolicyArgs
- List<Config
Entry Service Resolver Load Balancer Hash Policy Cookie Config> - Specifies additional configuration options for the cookie hash policy type.
- Field string
- Specifies the attribute type to hash on. You cannot specify the Field parameter if SourceIP is also configured.
- Field
Value string - Specifies the value to hash, such as a header name, cookie name, or a URL query parameter name.
- Source
Ip bool - Determines if the hash type should be source IP address.
- Terminal bool
- Determines if Consul should stop computing the hash when multiple hash policies are present.
- []Config
Entry Service Resolver Load Balancer Hash Policy Cookie Config - Specifies additional configuration options for the cookie hash policy type.
- Field string
- Specifies the attribute type to hash on. You cannot specify the Field parameter if SourceIP is also configured.
- Field
Value string - Specifies the value to hash, such as a header name, cookie name, or a URL query parameter name.
- Source
Ip bool - Determines if the hash type should be source IP address.
- Terminal bool
- Determines if Consul should stop computing the hash when multiple hash policies are present.
- List<Config
Entry Service Resolver Load Balancer Hash Policy Cookie Config> - Specifies additional configuration options for the cookie hash policy type.
- field String
- Specifies the attribute type to hash on. You cannot specify the Field parameter if SourceIP is also configured.
- field
Value String - Specifies the value to hash, such as a header name, cookie name, or a URL query parameter name.
- source
Ip Boolean - Determines if the hash type should be source IP address.
- terminal Boolean
- Determines if Consul should stop computing the hash when multiple hash policies are present.
- Config
Entry Service Resolver Load Balancer Hash Policy Cookie Config[] - Specifies additional configuration options for the cookie hash policy type.
- field string
- Specifies the attribute type to hash on. You cannot specify the Field parameter if SourceIP is also configured.
- field
Value string - Specifies the value to hash, such as a header name, cookie name, or a URL query parameter name.
- source
Ip boolean - Determines if the hash type should be source IP address.
- terminal boolean
- Determines if Consul should stop computing the hash when multiple hash policies are present.
- Sequence[Config
Entry Service Resolver Load Balancer Hash Policy Cookie Config] - Specifies additional configuration options for the cookie hash policy type.
- field str
- Specifies the attribute type to hash on. You cannot specify the Field parameter if SourceIP is also configured.
- field_
value str - Specifies the value to hash, such as a header name, cookie name, or a URL query parameter name.
- source_
ip bool - Determines if the hash type should be source IP address.
- terminal bool
- Determines if Consul should stop computing the hash when multiple hash policies are present.
- List<Property Map>
- Specifies additional configuration options for the cookie hash policy type.
- field String
- Specifies the attribute type to hash on. You cannot specify the Field parameter if SourceIP is also configured.
- field
Value String - Specifies the value to hash, such as a header name, cookie name, or a URL query parameter name.
- source
Ip Boolean - Determines if the hash type should be source IP address.
- terminal Boolean
- Determines if Consul should stop computing the hash when multiple hash policies are present.
ConfigEntryServiceResolverLoadBalancerHashPolicyCookieConfig, ConfigEntryServiceResolverLoadBalancerHashPolicyCookieConfigArgs
ConfigEntryServiceResolverLoadBalancerLeastRequestConfig, ConfigEntryServiceResolverLoadBalancerLeastRequestConfigArgs
- Choice
Count int
- Choice
Count int
- choice
Count Integer
- choice
Count number
- choice_
count int
- choice
Count Number
ConfigEntryServiceResolverLoadBalancerRingHashConfig, ConfigEntryServiceResolverLoadBalancerRingHashConfigArgs
- Maximum
Ring intSize - Determines the maximum number of entries in the hash ring.
- Minimum
Ring intSize - Determines the minimum number of entries in the hash ring.
- Maximum
Ring intSize - Determines the maximum number of entries in the hash ring.
- Minimum
Ring intSize - Determines the minimum number of entries in the hash ring.
- maximum
Ring IntegerSize - Determines the maximum number of entries in the hash ring.
- minimum
Ring IntegerSize - Determines the minimum number of entries in the hash ring.
- maximum
Ring numberSize - Determines the maximum number of entries in the hash ring.
- minimum
Ring numberSize - Determines the minimum number of entries in the hash ring.
- maximum_
ring_ intsize - Determines the maximum number of entries in the hash ring.
- minimum_
ring_ intsize - Determines the minimum number of entries in the hash ring.
- maximum
Ring NumberSize - Determines the maximum number of entries in the hash ring.
- minimum
Ring NumberSize - Determines the minimum number of entries in the hash ring.
ConfigEntryServiceResolverRedirect, ConfigEntryServiceResolverRedirectArgs
- Datacenter string
- Specifies the datacenter at the redirect’s destination that resolves local upstream requests.
- Namespace string
- Specifies the namespace at the redirect’s destination that resolves local upstream requests.
- Partition string
- Specifies the admin partition at the redirect’s destination that resolves local upstream requests.
- Peer string
- Specifies the cluster with an active cluster peering connection at the redirect’s destination that resolves local upstream requests.
- Sameness
Group string - Specifies the sameness group at the redirect’s destination that resolves local upstream requests.
- Service string
- Specifies the name of a service at the redirect’s destination that resolves local upstream requests.
- Service
Subset string - Specifies the name of a subset of services at the redirect’s destination that resolves local upstream requests. If empty, the default subset is used. If specified, you must also specify at least one of the following in the same Redirect map: Service, Namespace, andDatacenter.
- Datacenter string
- Specifies the datacenter at the redirect’s destination that resolves local upstream requests.
- Namespace string
- Specifies the namespace at the redirect’s destination that resolves local upstream requests.
- Partition string
- Specifies the admin partition at the redirect’s destination that resolves local upstream requests.
- Peer string
- Specifies the cluster with an active cluster peering connection at the redirect’s destination that resolves local upstream requests.
- Sameness
Group string - Specifies the sameness group at the redirect’s destination that resolves local upstream requests.
- Service string
- Specifies the name of a service at the redirect’s destination that resolves local upstream requests.
- Service
Subset string - Specifies the name of a subset of services at the redirect’s destination that resolves local upstream requests. If empty, the default subset is used. If specified, you must also specify at least one of the following in the same Redirect map: Service, Namespace, andDatacenter.
- datacenter String
- Specifies the datacenter at the redirect’s destination that resolves local upstream requests.
- namespace String
- Specifies the namespace at the redirect’s destination that resolves local upstream requests.
- partition String
- Specifies the admin partition at the redirect’s destination that resolves local upstream requests.
- peer String
- Specifies the cluster with an active cluster peering connection at the redirect’s destination that resolves local upstream requests.
- sameness
Group String - Specifies the sameness group at the redirect’s destination that resolves local upstream requests.
- service String
- Specifies the name of a service at the redirect’s destination that resolves local upstream requests.
- service
Subset String - Specifies the name of a subset of services at the redirect’s destination that resolves local upstream requests. If empty, the default subset is used. If specified, you must also specify at least one of the following in the same Redirect map: Service, Namespace, andDatacenter.
- datacenter string
- Specifies the datacenter at the redirect’s destination that resolves local upstream requests.
- namespace string
- Specifies the namespace at the redirect’s destination that resolves local upstream requests.
- partition string
- Specifies the admin partition at the redirect’s destination that resolves local upstream requests.
- peer string
- Specifies the cluster with an active cluster peering connection at the redirect’s destination that resolves local upstream requests.
- sameness
Group string - Specifies the sameness group at the redirect’s destination that resolves local upstream requests.
- service string
- Specifies the name of a service at the redirect’s destination that resolves local upstream requests.
- service
Subset string - Specifies the name of a subset of services at the redirect’s destination that resolves local upstream requests. If empty, the default subset is used. If specified, you must also specify at least one of the following in the same Redirect map: Service, Namespace, andDatacenter.
- datacenter str
- Specifies the datacenter at the redirect’s destination that resolves local upstream requests.
- namespace str
- Specifies the namespace at the redirect’s destination that resolves local upstream requests.
- partition str
- Specifies the admin partition at the redirect’s destination that resolves local upstream requests.
- peer str
- Specifies the cluster with an active cluster peering connection at the redirect’s destination that resolves local upstream requests.
- sameness_
group str - Specifies the sameness group at the redirect’s destination that resolves local upstream requests.
- service str
- Specifies the name of a service at the redirect’s destination that resolves local upstream requests.
- service_
subset str - Specifies the name of a subset of services at the redirect’s destination that resolves local upstream requests. If empty, the default subset is used. If specified, you must also specify at least one of the following in the same Redirect map: Service, Namespace, andDatacenter.
- datacenter String
- Specifies the datacenter at the redirect’s destination that resolves local upstream requests.
- namespace String
- Specifies the namespace at the redirect’s destination that resolves local upstream requests.
- partition String
- Specifies the admin partition at the redirect’s destination that resolves local upstream requests.
- peer String
- Specifies the cluster with an active cluster peering connection at the redirect’s destination that resolves local upstream requests.
- sameness
Group String - Specifies the sameness group at the redirect’s destination that resolves local upstream requests.
- service String
- Specifies the name of a service at the redirect’s destination that resolves local upstream requests.
- service
Subset String - Specifies the name of a subset of services at the redirect’s destination that resolves local upstream requests. If empty, the default subset is used. If specified, you must also specify at least one of the following in the same Redirect map: Service, Namespace, andDatacenter.
ConfigEntryServiceResolverSubset, ConfigEntryServiceResolverSubsetArgs
- Filter string
- Specifies an expression that filters the DNS elements of service instances that belong to the subset. If empty, all healthy instances of a service are returned.
- Name string
- Name of subset.
- Only
Passing bool - Determines if instances that return a warning from a health check are allowed to resolve a request. When set to false, instances with passing and warning states are considered healthy. When set to true, only instances with a passing health check state are considered healthy.
- Filter string
- Specifies an expression that filters the DNS elements of service instances that belong to the subset. If empty, all healthy instances of a service are returned.
- Name string
- Name of subset.
- Only
Passing bool - Determines if instances that return a warning from a health check are allowed to resolve a request. When set to false, instances with passing and warning states are considered healthy. When set to true, only instances with a passing health check state are considered healthy.
- filter String
- Specifies an expression that filters the DNS elements of service instances that belong to the subset. If empty, all healthy instances of a service are returned.
- name String
- Name of subset.
- only
Passing Boolean - Determines if instances that return a warning from a health check are allowed to resolve a request. When set to false, instances with passing and warning states are considered healthy. When set to true, only instances with a passing health check state are considered healthy.
- filter string
- Specifies an expression that filters the DNS elements of service instances that belong to the subset. If empty, all healthy instances of a service are returned.
- name string
- Name of subset.
- only
Passing boolean - Determines if instances that return a warning from a health check are allowed to resolve a request. When set to false, instances with passing and warning states are considered healthy. When set to true, only instances with a passing health check state are considered healthy.
- filter str
- Specifies an expression that filters the DNS elements of service instances that belong to the subset. If empty, all healthy instances of a service are returned.
- name str
- Name of subset.
- only_
passing bool - Determines if instances that return a warning from a health check are allowed to resolve a request. When set to false, instances with passing and warning states are considered healthy. When set to true, only instances with a passing health check state are considered healthy.
- filter String
- Specifies an expression that filters the DNS elements of service instances that belong to the subset. If empty, all healthy instances of a service are returned.
- name String
- Name of subset.
- only
Passing Boolean - Determines if instances that return a warning from a health check are allowed to resolve a request. When set to false, instances with passing and warning states are considered healthy. When set to true, only instances with a passing health check state are considered healthy.
Package Details
- Repository
- HashiCorp Consul pulumi/pulumi-consul
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
consul
Terraform Provider.