1. Packages
  2. Consul Provider
  3. API Docs
  4. ConfigEntryServiceResolver
Consul v3.12.2 published on Wednesday, Oct 16, 2024 by Pulumi

consul.ConfigEntryServiceResolver

Explore with Pulumi AI

consul logo
Consul v3.12.2 published on Wednesday, Oct 16, 2024 by Pulumi

    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=[
            {
                "name": "v1",
                "filter": "Service.Meta.version == v1",
            },
            {
                "name": "v2",
                "filter": "Service.Meta.version == v2",
            },
        ],
        redirects=[{
            "service": "web",
            "datacenter": "dc2",
        }],
        failovers=[
            {
                "subset_name": "v2",
                "datacenters": ["dc2"],
            },
            {
                "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=[{
            "subset_name": "string",
            "datacenters": ["string"],
            "namespace": "string",
            "sameness_group": "string",
            "service": "string",
            "service_subset": "string",
            "targets": [{
                "datacenter": "string",
                "namespace": "string",
                "partition": "string",
                "peer": "string",
                "service": "string",
                "service_subset": "string",
            }],
        }],
        load_balancers=[{
            "hash_policies": [{
                "cookie_configs": [{
                    "path": "string",
                    "session": False,
                    "ttl": "string",
                }],
                "field": "string",
                "field_value": "string",
                "source_ip": False,
                "terminal": False,
            }],
            "least_request_configs": [{
                "choice_count": 0,
            }],
            "policy": "string",
            "ring_hash_configs": [{
                "maximum_ring_size": 0,
                "minimum_ring_size": 0,
            }],
        }],
        meta={
            "string": "string",
        },
        name="string",
        namespace="string",
        partition="string",
        redirects=[{
            "datacenter": "string",
            "namespace": "string",
            "partition": "string",
            "peer": "string",
            "sameness_group": "string",
            "service": "string",
            "service_subset": "string",
        }],
        request_timeout="string",
        subsets=[{
            "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

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The ConfigEntryServiceResolver resource accepts the following input properties:

    ConnectTimeout string
    Specifies the timeout duration for establishing new network connections to this service.
    DefaultSubset 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<ConfigEntryServiceResolverFailover>
    Specifies controls for rerouting traffic to an alternate pool of service instances if the target service fails.
    LoadBalancers List<ConfigEntryServiceResolverLoadBalancer>
    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<ConfigEntryServiceResolverRedirect>
    Specifies redirect instructions for local service traffic so that services deployed to a different network location resolve the upstream request instead.
    RequestTimeout string
    Specifies the timeout duration for receiving an HTTP response from this service.
    Subsets List<ConfigEntryServiceResolverSubset>
    Specifies names for custom service subsets and the conditions under which service instances belong to each subset.
    ConnectTimeout string
    Specifies the timeout duration for establishing new network connections to this service.
    DefaultSubset 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 []ConfigEntryServiceResolverFailoverArgs
    Specifies controls for rerouting traffic to an alternate pool of service instances if the target service fails.
    LoadBalancers []ConfigEntryServiceResolverLoadBalancerArgs
    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 []ConfigEntryServiceResolverRedirectArgs
    Specifies redirect instructions for local service traffic so that services deployed to a different network location resolve the upstream request instead.
    RequestTimeout string
    Specifies the timeout duration for receiving an HTTP response from this service.
    Subsets []ConfigEntryServiceResolverSubsetArgs
    Specifies names for custom service subsets and the conditions under which service instances belong to each subset.
    connectTimeout String
    Specifies the timeout duration for establishing new network connections to this service.
    defaultSubset 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<ConfigEntryServiceResolverFailover>
    Specifies controls for rerouting traffic to an alternate pool of service instances if the target service fails.
    loadBalancers List<ConfigEntryServiceResolverLoadBalancer>
    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<ConfigEntryServiceResolverRedirect>
    Specifies redirect instructions for local service traffic so that services deployed to a different network location resolve the upstream request instead.
    requestTimeout String
    Specifies the timeout duration for receiving an HTTP response from this service.
    subsets List<ConfigEntryServiceResolverSubset>
    Specifies names for custom service subsets and the conditions under which service instances belong to each subset.
    connectTimeout string
    Specifies the timeout duration for establishing new network connections to this service.
    defaultSubset 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 ConfigEntryServiceResolverFailover[]
    Specifies controls for rerouting traffic to an alternate pool of service instances if the target service fails.
    loadBalancers ConfigEntryServiceResolverLoadBalancer[]
    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 ConfigEntryServiceResolverRedirect[]
    Specifies redirect instructions for local service traffic so that services deployed to a different network location resolve the upstream request instead.
    requestTimeout string
    Specifies the timeout duration for receiving an HTTP response from this service.
    subsets ConfigEntryServiceResolverSubset[]
    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[ConfigEntryServiceResolverFailoverArgs]
    Specifies controls for rerouting traffic to an alternate pool of service instances if the target service fails.
    load_balancers Sequence[ConfigEntryServiceResolverLoadBalancerArgs]
    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[ConfigEntryServiceResolverRedirectArgs]
    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[ConfigEntryServiceResolverSubsetArgs]
    Specifies names for custom service subsets and the conditions under which service instances belong to each subset.
    connectTimeout String
    Specifies the timeout duration for establishing new network connections to this service.
    defaultSubset 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.
    loadBalancers 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.
    requestTimeout 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.
    The following state arguments are supported:
    ConnectTimeout string
    Specifies the timeout duration for establishing new network connections to this service.
    DefaultSubset 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<ConfigEntryServiceResolverFailover>
    Specifies controls for rerouting traffic to an alternate pool of service instances if the target service fails.
    LoadBalancers List<ConfigEntryServiceResolverLoadBalancer>
    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<ConfigEntryServiceResolverRedirect>
    Specifies redirect instructions for local service traffic so that services deployed to a different network location resolve the upstream request instead.
    RequestTimeout string
    Specifies the timeout duration for receiving an HTTP response from this service.
    Subsets List<ConfigEntryServiceResolverSubset>
    Specifies names for custom service subsets and the conditions under which service instances belong to each subset.
    ConnectTimeout string
    Specifies the timeout duration for establishing new network connections to this service.
    DefaultSubset 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 []ConfigEntryServiceResolverFailoverArgs
    Specifies controls for rerouting traffic to an alternate pool of service instances if the target service fails.
    LoadBalancers []ConfigEntryServiceResolverLoadBalancerArgs
    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 []ConfigEntryServiceResolverRedirectArgs
    Specifies redirect instructions for local service traffic so that services deployed to a different network location resolve the upstream request instead.
    RequestTimeout string
    Specifies the timeout duration for receiving an HTTP response from this service.
    Subsets []ConfigEntryServiceResolverSubsetArgs
    Specifies names for custom service subsets and the conditions under which service instances belong to each subset.
    connectTimeout String
    Specifies the timeout duration for establishing new network connections to this service.
    defaultSubset 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<ConfigEntryServiceResolverFailover>
    Specifies controls for rerouting traffic to an alternate pool of service instances if the target service fails.
    loadBalancers List<ConfigEntryServiceResolverLoadBalancer>
    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<ConfigEntryServiceResolverRedirect>
    Specifies redirect instructions for local service traffic so that services deployed to a different network location resolve the upstream request instead.
    requestTimeout String
    Specifies the timeout duration for receiving an HTTP response from this service.
    subsets List<ConfigEntryServiceResolverSubset>
    Specifies names for custom service subsets and the conditions under which service instances belong to each subset.
    connectTimeout string
    Specifies the timeout duration for establishing new network connections to this service.
    defaultSubset 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 ConfigEntryServiceResolverFailover[]
    Specifies controls for rerouting traffic to an alternate pool of service instances if the target service fails.
    loadBalancers ConfigEntryServiceResolverLoadBalancer[]
    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 ConfigEntryServiceResolverRedirect[]
    Specifies redirect instructions for local service traffic so that services deployed to a different network location resolve the upstream request instead.
    requestTimeout string
    Specifies the timeout duration for receiving an HTTP response from this service.
    subsets ConfigEntryServiceResolverSubset[]
    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[ConfigEntryServiceResolverFailoverArgs]
    Specifies controls for rerouting traffic to an alternate pool of service instances if the target service fails.
    load_balancers Sequence[ConfigEntryServiceResolverLoadBalancerArgs]
    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[ConfigEntryServiceResolverRedirectArgs]
    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[ConfigEntryServiceResolverSubsetArgs]
    Specifies names for custom service subsets and the conditions under which service instances belong to each subset.
    connectTimeout String
    Specifies the timeout duration for establishing new network connections to this service.
    defaultSubset 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.
    loadBalancers 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.
    requestTimeout 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

    SubsetName 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.
    SamenessGroup 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.
    ServiceSubset string
    Specifies the name of a subset of service instances to resolve at the failover location during a failover scenario.
    Targets List<ConfigEntryServiceResolverFailoverTarget>
    Specifies a fixed list of failover targets to try during failover. This list can express complicated failover scenarios.
    SubsetName 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.
    SamenessGroup 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.
    ServiceSubset string
    Specifies the name of a subset of service instances to resolve at the failover location during a failover scenario.
    Targets []ConfigEntryServiceResolverFailoverTarget
    Specifies a fixed list of failover targets to try during failover. This list can express complicated failover scenarios.
    subsetName 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.
    samenessGroup 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.
    serviceSubset String
    Specifies the name of a subset of service instances to resolve at the failover location during a failover scenario.
    targets List<ConfigEntryServiceResolverFailoverTarget>
    Specifies a fixed list of failover targets to try during failover. This list can express complicated failover scenarios.
    subsetName 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.
    samenessGroup 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.
    serviceSubset string
    Specifies the name of a subset of service instances to resolve at the failover location during a failover scenario.
    targets ConfigEntryServiceResolverFailoverTarget[]
    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[ConfigEntryServiceResolverFailoverTarget]
    Specifies a fixed list of failover targets to try during failover. This list can express complicated failover scenarios.
    subsetName 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.
    samenessGroup 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.
    serviceSubset 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.
    ServiceSubset 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.
    ServiceSubset 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.
    serviceSubset 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.
    serviceSubset 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.
    serviceSubset 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

    HashPolicies List<ConfigEntryServiceResolverLoadBalancerHashPolicy>
    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.
    LeastRequestConfigs List<ConfigEntryServiceResolverLoadBalancerLeastRequestConfig>
    Specifies configuration for the least*request policy type.
    Policy string
    Specifies the type of load balancing policy for selecting a host.
    RingHashConfigs List<ConfigEntryServiceResolverLoadBalancerRingHashConfig>
    Specifies configuration for the ring*hash policy type.
    HashPolicies []ConfigEntryServiceResolverLoadBalancerHashPolicy
    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.
    LeastRequestConfigs []ConfigEntryServiceResolverLoadBalancerLeastRequestConfig
    Specifies configuration for the least*request policy type.
    Policy string
    Specifies the type of load balancing policy for selecting a host.
    RingHashConfigs []ConfigEntryServiceResolverLoadBalancerRingHashConfig
    Specifies configuration for the ring*hash policy type.
    hashPolicies List<ConfigEntryServiceResolverLoadBalancerHashPolicy>
    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.
    leastRequestConfigs List<ConfigEntryServiceResolverLoadBalancerLeastRequestConfig>
    Specifies configuration for the least*request policy type.
    policy String
    Specifies the type of load balancing policy for selecting a host.
    ringHashConfigs List<ConfigEntryServiceResolverLoadBalancerRingHashConfig>
    Specifies configuration for the ring*hash policy type.
    hashPolicies ConfigEntryServiceResolverLoadBalancerHashPolicy[]
    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.
    leastRequestConfigs ConfigEntryServiceResolverLoadBalancerLeastRequestConfig[]
    Specifies configuration for the least*request policy type.
    policy string
    Specifies the type of load balancing policy for selecting a host.
    ringHashConfigs ConfigEntryServiceResolverLoadBalancerRingHashConfig[]
    Specifies configuration for the ring*hash policy type.
    hash_policies Sequence[ConfigEntryServiceResolverLoadBalancerHashPolicy]
    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_configs Sequence[ConfigEntryServiceResolverLoadBalancerLeastRequestConfig]
    Specifies configuration for the least*request policy type.
    policy str
    Specifies the type of load balancing policy for selecting a host.
    ring_hash_configs Sequence[ConfigEntryServiceResolverLoadBalancerRingHashConfig]
    Specifies configuration for the ring*hash policy type.
    hashPolicies 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.
    leastRequestConfigs List<Property Map>
    Specifies configuration for the least*request policy type.
    policy String
    Specifies the type of load balancing policy for selecting a host.
    ringHashConfigs List<Property Map>
    Specifies configuration for the ring*hash policy type.

    ConfigEntryServiceResolverLoadBalancerHashPolicy, ConfigEntryServiceResolverLoadBalancerHashPolicyArgs

    CookieConfigs List<ConfigEntryServiceResolverLoadBalancerHashPolicyCookieConfig>
    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.
    FieldValue string
    Specifies the value to hash, such as a header name, cookie name, or a URL query parameter name.
    SourceIp 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.
    CookieConfigs []ConfigEntryServiceResolverLoadBalancerHashPolicyCookieConfig
    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.
    FieldValue string
    Specifies the value to hash, such as a header name, cookie name, or a URL query parameter name.
    SourceIp 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.
    cookieConfigs List<ConfigEntryServiceResolverLoadBalancerHashPolicyCookieConfig>
    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.
    fieldValue String
    Specifies the value to hash, such as a header name, cookie name, or a URL query parameter name.
    sourceIp 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.
    cookieConfigs ConfigEntryServiceResolverLoadBalancerHashPolicyCookieConfig[]
    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.
    fieldValue string
    Specifies the value to hash, such as a header name, cookie name, or a URL query parameter name.
    sourceIp 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.
    cookie_configs Sequence[ConfigEntryServiceResolverLoadBalancerHashPolicyCookieConfig]
    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.
    cookieConfigs 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.
    fieldValue String
    Specifies the value to hash, such as a header name, cookie name, or a URL query parameter name.
    sourceIp 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

    Path string
    Specifies the path to set for the cookie.
    Session bool
    Directs Consul to generate a session cookie with no expiration.
    Ttl string
    Specifies the TTL for generated cookies. Cannot be specified for session cookies.
    Path string
    Specifies the path to set for the cookie.
    Session bool
    Directs Consul to generate a session cookie with no expiration.
    Ttl string
    Specifies the TTL for generated cookies. Cannot be specified for session cookies.
    path String
    Specifies the path to set for the cookie.
    session Boolean
    Directs Consul to generate a session cookie with no expiration.
    ttl String
    Specifies the TTL for generated cookies. Cannot be specified for session cookies.
    path string
    Specifies the path to set for the cookie.
    session boolean
    Directs Consul to generate a session cookie with no expiration.
    ttl string
    Specifies the TTL for generated cookies. Cannot be specified for session cookies.
    path str
    Specifies the path to set for the cookie.
    session bool
    Directs Consul to generate a session cookie with no expiration.
    ttl str
    Specifies the TTL for generated cookies. Cannot be specified for session cookies.
    path String
    Specifies the path to set for the cookie.
    session Boolean
    Directs Consul to generate a session cookie with no expiration.
    ttl String
    Specifies the TTL for generated cookies. Cannot be specified for session cookies.

    ConfigEntryServiceResolverLoadBalancerLeastRequestConfig, ConfigEntryServiceResolverLoadBalancerLeastRequestConfigArgs

    choiceCount Integer

    ConfigEntryServiceResolverLoadBalancerRingHashConfig, ConfigEntryServiceResolverLoadBalancerRingHashConfigArgs

    MaximumRingSize int
    Determines the maximum number of entries in the hash ring.
    MinimumRingSize int
    Determines the minimum number of entries in the hash ring.
    MaximumRingSize int
    Determines the maximum number of entries in the hash ring.
    MinimumRingSize int
    Determines the minimum number of entries in the hash ring.
    maximumRingSize Integer
    Determines the maximum number of entries in the hash ring.
    minimumRingSize Integer
    Determines the minimum number of entries in the hash ring.
    maximumRingSize number
    Determines the maximum number of entries in the hash ring.
    minimumRingSize number
    Determines the minimum number of entries in the hash ring.
    maximum_ring_size int
    Determines the maximum number of entries in the hash ring.
    minimum_ring_size int
    Determines the minimum number of entries in the hash ring.
    maximumRingSize Number
    Determines the maximum number of entries in the hash ring.
    minimumRingSize Number
    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.
    SamenessGroup 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.
    ServiceSubset 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.
    SamenessGroup 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.
    ServiceSubset 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.
    samenessGroup 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.
    serviceSubset 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.
    samenessGroup 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.
    serviceSubset 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.
    samenessGroup 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.
    serviceSubset 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.
    OnlyPassing 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.
    OnlyPassing 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.
    onlyPassing 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.
    onlyPassing 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.
    onlyPassing 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.
    consul logo
    Consul v3.12.2 published on Wednesday, Oct 16, 2024 by Pulumi