consul

package
v2.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

A Pulumi package for creating and managing consul resources.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AclAuthMethod

type AclAuthMethod struct {
	pulumi.CustomResourceState

	// The raw configuration for this ACL auth method. This
	// attribute is deprecated and will be removed in a future version. `configJson`
	// should be used instead.
	//
	// Deprecated: The config attribute is deprecated, please use config_json instead.
	Config pulumi.StringMapOutput `pulumi:"config"`
	// The raw configuration for this ACL auth method.
	ConfigJson pulumi.StringPtrOutput `pulumi:"configJson"`
	// A free form human readable description of the auth method.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// An optional name to use instead of the name
	// attribute when displaying information about this auth method.
	DisplayName pulumi.StringPtrOutput `pulumi:"displayName"`
	// The maximum life of any token created by this
	// auth method.
	MaxTokenTtl pulumi.StringPtrOutput `pulumi:"maxTokenTtl"`
	// The name of the ACL auth method.
	Name pulumi.StringOutput `pulumi:"name"`
	// The namespace to create the policy within.
	Namespace pulumi.StringPtrOutput `pulumi:"namespace"`
	// A set of rules that control
	// which namespace tokens created via this auth method will be created within.
	NamespaceRules AclAuthMethodNamespaceRuleArrayOutput `pulumi:"namespaceRules"`
	// The kind of token that this auth method
	// produces. This can be either 'local' or 'global'.
	TokenLocality pulumi.StringPtrOutput `pulumi:"tokenLocality"`
	// The type of the ACL auth method.
	Type pulumi.StringOutput `pulumi:"type"`
}

Starting with Consul 1.5.0, the AclAuthMethod resource can be used to managed [Consul ACL auth methods](https://www.consul.io/docs/acl/auth-methods).

## Example Usage

Define a `kubernetes` auth method: ```go package main

import (

"encoding/json"

"github.com/pulumi/pulumi-consul/sdk/v2/go/consul"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		tmpJSON0, err := json.Marshal(map[string]interface{}{
			"Host":              "https://192.0.2.42:8443",
			"CACert":            "-----BEGIN CERTIFICATE-----\n...-----END CERTIFICATE-----\n",
			"ServiceAccountJWT": "eyJhbGciOiJSUzI1NiIsImtpZCI6IiJ9...",
		})
		if err != nil {
			return err
		}
		json0 := string(tmpJSON0)
		_, err := consul.NewAclAuthMethod(ctx, "minikube", &consul.AclAuthMethodArgs{
			Type:        pulumi.String("kubernetes"),
			Description: pulumi.String("dev minikube cluster"),
			ConfigJson:  pulumi.String(json0),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

Define a `jwt` auth method: ```go package main

import (

"encoding/json"

"github.com/pulumi/pulumi-consul/sdk/v2/go/consul"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		tmpJSON0, err := json.Marshal(map[string]interface{}{
			"JWKSURL":          "https://example.com/identity/oidc/.well-known/keys",
			"JWTSupportedAlgs": "RS256",
			"BoundIssuer":      "https://example.com",
			"ClaimMappings": map[string]interface{}{
				"subject": "subject",
			},
		})
		if err != nil {
			return err
		}
		json0 := string(tmpJSON0)
		_, err := consul.NewAclAuthMethod(ctx, "minikube", &consul.AclAuthMethodArgs{
			Type:       pulumi.String("jwt"),
			ConfigJson: pulumi.String(json0),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetAclAuthMethod

func GetAclAuthMethod(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *AclAuthMethodState, opts ...pulumi.ResourceOption) (*AclAuthMethod, error)

GetAclAuthMethod gets an existing AclAuthMethod resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewAclAuthMethod

func NewAclAuthMethod(ctx *pulumi.Context,
	name string, args *AclAuthMethodArgs, opts ...pulumi.ResourceOption) (*AclAuthMethod, error)

NewAclAuthMethod registers a new resource with the given unique name, arguments, and options.

type AclAuthMethodArgs

type AclAuthMethodArgs struct {
	// The raw configuration for this ACL auth method. This
	// attribute is deprecated and will be removed in a future version. `configJson`
	// should be used instead.
	//
	// Deprecated: The config attribute is deprecated, please use config_json instead.
	Config pulumi.StringMapInput
	// The raw configuration for this ACL auth method.
	ConfigJson pulumi.StringPtrInput
	// A free form human readable description of the auth method.
	Description pulumi.StringPtrInput
	// An optional name to use instead of the name
	// attribute when displaying information about this auth method.
	DisplayName pulumi.StringPtrInput
	// The maximum life of any token created by this
	// auth method.
	MaxTokenTtl pulumi.StringPtrInput
	// The name of the ACL auth method.
	Name pulumi.StringPtrInput
	// The namespace to create the policy within.
	Namespace pulumi.StringPtrInput
	// A set of rules that control
	// which namespace tokens created via this auth method will be created within.
	NamespaceRules AclAuthMethodNamespaceRuleArrayInput
	// The kind of token that this auth method
	// produces. This can be either 'local' or 'global'.
	TokenLocality pulumi.StringPtrInput
	// The type of the ACL auth method.
	Type pulumi.StringInput
}

The set of arguments for constructing a AclAuthMethod resource.

func (AclAuthMethodArgs) ElementType

func (AclAuthMethodArgs) ElementType() reflect.Type

type AclAuthMethodNamespaceRule added in v2.3.0

type AclAuthMethodNamespaceRule struct {
	// If the namespace rule's `selector` matches then
	// this is used to control the namespace where the token is created.
	BindNamespace string `pulumi:"bindNamespace"`
	// Specifies the expression used to match this namespace
	// rule against valid identities returned from an auth method validation.
	// Defaults to `""`.
	Selector *string `pulumi:"selector"`
}

type AclAuthMethodNamespaceRuleArgs added in v2.3.0

type AclAuthMethodNamespaceRuleArgs struct {
	// If the namespace rule's `selector` matches then
	// this is used to control the namespace where the token is created.
	BindNamespace pulumi.StringInput `pulumi:"bindNamespace"`
	// Specifies the expression used to match this namespace
	// rule against valid identities returned from an auth method validation.
	// Defaults to `""`.
	Selector pulumi.StringPtrInput `pulumi:"selector"`
}

func (AclAuthMethodNamespaceRuleArgs) ElementType added in v2.3.0

func (AclAuthMethodNamespaceRuleArgs) ToAclAuthMethodNamespaceRuleOutput added in v2.3.0

func (i AclAuthMethodNamespaceRuleArgs) ToAclAuthMethodNamespaceRuleOutput() AclAuthMethodNamespaceRuleOutput

func (AclAuthMethodNamespaceRuleArgs) ToAclAuthMethodNamespaceRuleOutputWithContext added in v2.3.0

func (i AclAuthMethodNamespaceRuleArgs) ToAclAuthMethodNamespaceRuleOutputWithContext(ctx context.Context) AclAuthMethodNamespaceRuleOutput

type AclAuthMethodNamespaceRuleArray added in v2.3.0

type AclAuthMethodNamespaceRuleArray []AclAuthMethodNamespaceRuleInput

func (AclAuthMethodNamespaceRuleArray) ElementType added in v2.3.0

func (AclAuthMethodNamespaceRuleArray) ToAclAuthMethodNamespaceRuleArrayOutput added in v2.3.0

func (i AclAuthMethodNamespaceRuleArray) ToAclAuthMethodNamespaceRuleArrayOutput() AclAuthMethodNamespaceRuleArrayOutput

func (AclAuthMethodNamespaceRuleArray) ToAclAuthMethodNamespaceRuleArrayOutputWithContext added in v2.3.0

func (i AclAuthMethodNamespaceRuleArray) ToAclAuthMethodNamespaceRuleArrayOutputWithContext(ctx context.Context) AclAuthMethodNamespaceRuleArrayOutput

type AclAuthMethodNamespaceRuleArrayInput added in v2.3.0

type AclAuthMethodNamespaceRuleArrayInput interface {
	pulumi.Input

	ToAclAuthMethodNamespaceRuleArrayOutput() AclAuthMethodNamespaceRuleArrayOutput
	ToAclAuthMethodNamespaceRuleArrayOutputWithContext(context.Context) AclAuthMethodNamespaceRuleArrayOutput
}

AclAuthMethodNamespaceRuleArrayInput is an input type that accepts AclAuthMethodNamespaceRuleArray and AclAuthMethodNamespaceRuleArrayOutput values. You can construct a concrete instance of `AclAuthMethodNamespaceRuleArrayInput` via:

AclAuthMethodNamespaceRuleArray{ AclAuthMethodNamespaceRuleArgs{...} }

type AclAuthMethodNamespaceRuleArrayOutput added in v2.3.0

type AclAuthMethodNamespaceRuleArrayOutput struct{ *pulumi.OutputState }

func (AclAuthMethodNamespaceRuleArrayOutput) ElementType added in v2.3.0

func (AclAuthMethodNamespaceRuleArrayOutput) Index added in v2.3.0

func (AclAuthMethodNamespaceRuleArrayOutput) ToAclAuthMethodNamespaceRuleArrayOutput added in v2.3.0

func (o AclAuthMethodNamespaceRuleArrayOutput) ToAclAuthMethodNamespaceRuleArrayOutput() AclAuthMethodNamespaceRuleArrayOutput

func (AclAuthMethodNamespaceRuleArrayOutput) ToAclAuthMethodNamespaceRuleArrayOutputWithContext added in v2.3.0

func (o AclAuthMethodNamespaceRuleArrayOutput) ToAclAuthMethodNamespaceRuleArrayOutputWithContext(ctx context.Context) AclAuthMethodNamespaceRuleArrayOutput

type AclAuthMethodNamespaceRuleInput added in v2.3.0

type AclAuthMethodNamespaceRuleInput interface {
	pulumi.Input

	ToAclAuthMethodNamespaceRuleOutput() AclAuthMethodNamespaceRuleOutput
	ToAclAuthMethodNamespaceRuleOutputWithContext(context.Context) AclAuthMethodNamespaceRuleOutput
}

AclAuthMethodNamespaceRuleInput is an input type that accepts AclAuthMethodNamespaceRuleArgs and AclAuthMethodNamespaceRuleOutput values. You can construct a concrete instance of `AclAuthMethodNamespaceRuleInput` via:

AclAuthMethodNamespaceRuleArgs{...}

type AclAuthMethodNamespaceRuleOutput added in v2.3.0

type AclAuthMethodNamespaceRuleOutput struct{ *pulumi.OutputState }

func (AclAuthMethodNamespaceRuleOutput) BindNamespace added in v2.3.0

If the namespace rule's `selector` matches then this is used to control the namespace where the token is created.

func (AclAuthMethodNamespaceRuleOutput) ElementType added in v2.3.0

func (AclAuthMethodNamespaceRuleOutput) Selector added in v2.3.0

Specifies the expression used to match this namespace rule against valid identities returned from an auth method validation. Defaults to `""`.

func (AclAuthMethodNamespaceRuleOutput) ToAclAuthMethodNamespaceRuleOutput added in v2.3.0

func (o AclAuthMethodNamespaceRuleOutput) ToAclAuthMethodNamespaceRuleOutput() AclAuthMethodNamespaceRuleOutput

func (AclAuthMethodNamespaceRuleOutput) ToAclAuthMethodNamespaceRuleOutputWithContext added in v2.3.0

func (o AclAuthMethodNamespaceRuleOutput) ToAclAuthMethodNamespaceRuleOutputWithContext(ctx context.Context) AclAuthMethodNamespaceRuleOutput

type AclAuthMethodState

type AclAuthMethodState struct {
	// The raw configuration for this ACL auth method. This
	// attribute is deprecated and will be removed in a future version. `configJson`
	// should be used instead.
	//
	// Deprecated: The config attribute is deprecated, please use config_json instead.
	Config pulumi.StringMapInput
	// The raw configuration for this ACL auth method.
	ConfigJson pulumi.StringPtrInput
	// A free form human readable description of the auth method.
	Description pulumi.StringPtrInput
	// An optional name to use instead of the name
	// attribute when displaying information about this auth method.
	DisplayName pulumi.StringPtrInput
	// The maximum life of any token created by this
	// auth method.
	MaxTokenTtl pulumi.StringPtrInput
	// The name of the ACL auth method.
	Name pulumi.StringPtrInput
	// The namespace to create the policy within.
	Namespace pulumi.StringPtrInput
	// A set of rules that control
	// which namespace tokens created via this auth method will be created within.
	NamespaceRules AclAuthMethodNamespaceRuleArrayInput
	// The kind of token that this auth method
	// produces. This can be either 'local' or 'global'.
	TokenLocality pulumi.StringPtrInput
	// The type of the ACL auth method.
	Type pulumi.StringPtrInput
}

func (AclAuthMethodState) ElementType

func (AclAuthMethodState) ElementType() reflect.Type

type AclBindingRule

type AclBindingRule struct {
	pulumi.CustomResourceState

	// The name of the ACL auth method this rule apply.
	AuthMethod pulumi.StringOutput `pulumi:"authMethod"`
	// The name to bind to a token at login-time.
	BindName pulumi.StringOutput `pulumi:"bindName"`
	// Specifies the way the binding rule affects a token
	// created at login.
	BindType pulumi.StringOutput `pulumi:"bindType"`
	// A free form human readable description of the
	// binding rule.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// The namespace to create the binding
	// rule within.
	Namespace pulumi.StringPtrOutput `pulumi:"namespace"`
	// The expression used to math this rule against valid
	// identities returned from an auth method validation.
	Selector pulumi.StringPtrOutput `pulumi:"selector"`
}

Starting with Consul 1.5.0, the AclBindingRule resource can be used to managed Consul ACL binding rules.

## Example Usage

```go package main

import (

"fmt"

"github.com/pulumi/pulumi-consul/sdk/v2/go/consul"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		minikube, err := consul.NewAclAuthMethod(ctx, "minikube", &consul.AclAuthMethodArgs{
			Config: pulumi.StringMap{
				"CACert":            pulumi.String(fmt.Sprintf("%v%v%v", "-----BEGIN CERTIFICATE-----\n", "...-----END CERTIFICATE-----\n", "\n")),
				"Host":              pulumi.String("https://192.0.2.42:8443"),
				"ServiceAccountJWT": pulumi.String("eyJhbGciOiJSUzI1NiIsImtpZCI6IiJ9..."),
			},
			Description: pulumi.String("dev minikube cluster"),
			Type:        pulumi.String("kubernetes"),
		})
		if err != nil {
			return err
		}
		_, err = consul.NewAclBindingRule(ctx, "test", &consul.AclBindingRuleArgs{
			AuthMethod:  minikube.Name,
			BindName:    pulumi.String("minikube"),
			BindType:    pulumi.String("service"),
			Description: pulumi.String("foobar"),
			Selector:    pulumi.String("serviceaccount.namespace==default"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetAclBindingRule

func GetAclBindingRule(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *AclBindingRuleState, opts ...pulumi.ResourceOption) (*AclBindingRule, error)

GetAclBindingRule gets an existing AclBindingRule resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewAclBindingRule

func NewAclBindingRule(ctx *pulumi.Context,
	name string, args *AclBindingRuleArgs, opts ...pulumi.ResourceOption) (*AclBindingRule, error)

NewAclBindingRule registers a new resource with the given unique name, arguments, and options.

type AclBindingRuleArgs

type AclBindingRuleArgs struct {
	// The name of the ACL auth method this rule apply.
	AuthMethod pulumi.StringInput
	// The name to bind to a token at login-time.
	BindName pulumi.StringInput
	// Specifies the way the binding rule affects a token
	// created at login.
	BindType pulumi.StringInput
	// A free form human readable description of the
	// binding rule.
	Description pulumi.StringPtrInput
	// The namespace to create the binding
	// rule within.
	Namespace pulumi.StringPtrInput
	// The expression used to math this rule against valid
	// identities returned from an auth method validation.
	Selector pulumi.StringPtrInput
}

The set of arguments for constructing a AclBindingRule resource.

func (AclBindingRuleArgs) ElementType

func (AclBindingRuleArgs) ElementType() reflect.Type

type AclBindingRuleState

type AclBindingRuleState struct {
	// The name of the ACL auth method this rule apply.
	AuthMethod pulumi.StringPtrInput
	// The name to bind to a token at login-time.
	BindName pulumi.StringPtrInput
	// Specifies the way the binding rule affects a token
	// created at login.
	BindType pulumi.StringPtrInput
	// A free form human readable description of the
	// binding rule.
	Description pulumi.StringPtrInput
	// The namespace to create the binding
	// rule within.
	Namespace pulumi.StringPtrInput
	// The expression used to math this rule against valid
	// identities returned from an auth method validation.
	Selector pulumi.StringPtrInput
}

func (AclBindingRuleState) ElementType

func (AclBindingRuleState) ElementType() reflect.Type

type AclPolicy

type AclPolicy struct {
	pulumi.CustomResourceState

	// The datacenters of the policy.
	Datacenters pulumi.StringArrayOutput `pulumi:"datacenters"`
	// The description of the policy.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// The name of the policy.
	Name pulumi.StringOutput `pulumi:"name"`
	// The namespace to create the policy within.
	Namespace pulumi.StringPtrOutput `pulumi:"namespace"`
	// The rules of the policy.
	Rules pulumi.StringOutput `pulumi:"rules"`
}

Starting with Consul 1.4.0, the AclPolicy can be used to managed Consul ACL policies.

## Example Usage

```go package main

import (

"fmt"

"github.com/pulumi/pulumi-consul/sdk/v2/go/consul"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := consul.NewAclPolicy(ctx, "test", &consul.AclPolicyArgs{
			Datacenters: pulumi.StringArray{
				pulumi.String("dc1"),
			},
			Rules: pulumi.String(fmt.Sprintf("%v%v%v%v", "node_prefix \"\" {\n", "  policy = \"read\"\n", "}\n", "\n")),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetAclPolicy

func GetAclPolicy(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *AclPolicyState, opts ...pulumi.ResourceOption) (*AclPolicy, error)

GetAclPolicy gets an existing AclPolicy resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewAclPolicy

func NewAclPolicy(ctx *pulumi.Context,
	name string, args *AclPolicyArgs, opts ...pulumi.ResourceOption) (*AclPolicy, error)

NewAclPolicy registers a new resource with the given unique name, arguments, and options.

type AclPolicyArgs

type AclPolicyArgs struct {
	// The datacenters of the policy.
	Datacenters pulumi.StringArrayInput
	// The description of the policy.
	Description pulumi.StringPtrInput
	// The name of the policy.
	Name pulumi.StringPtrInput
	// The namespace to create the policy within.
	Namespace pulumi.StringPtrInput
	// The rules of the policy.
	Rules pulumi.StringInput
}

The set of arguments for constructing a AclPolicy resource.

func (AclPolicyArgs) ElementType

func (AclPolicyArgs) ElementType() reflect.Type

type AclPolicyState

type AclPolicyState struct {
	// The datacenters of the policy.
	Datacenters pulumi.StringArrayInput
	// The description of the policy.
	Description pulumi.StringPtrInput
	// The name of the policy.
	Name pulumi.StringPtrInput
	// The namespace to create the policy within.
	Namespace pulumi.StringPtrInput
	// The rules of the policy.
	Rules pulumi.StringPtrInput
}

func (AclPolicyState) ElementType

func (AclPolicyState) ElementType() reflect.Type

type AclRole

type AclRole struct {
	pulumi.CustomResourceState

	// A free form human readable description of the role.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// The name of the ACL role.
	Name pulumi.StringOutput `pulumi:"name"`
	// The namespace to create the role within.
	Namespace pulumi.StringPtrOutput `pulumi:"namespace"`
	// The list of policies that should be applied to the role.
	Policies pulumi.StringArrayOutput `pulumi:"policies"`
	// The list of service identities that should
	// be applied to the role.
	ServiceIdentities AclRoleServiceIdentityArrayOutput `pulumi:"serviceIdentities"`
}

Starting with Consul 1.5.0, the AclRole can be used to managed Consul ACL roles.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-consul/sdk/v2/go/consul"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := consul.NewAclPolicy(ctx, "read_policy", &consul.AclPolicyArgs{
			Datacenters: pulumi.StringArray{
				pulumi.String("dc1"),
			},
			Rules: pulumi.String("node \"\" { policy = \"read\" }"),
		})
		if err != nil {
			return err
		}
		_, err = consul.NewAclRole(ctx, "read", &consul.AclRoleArgs{
			Description: pulumi.String("bar"),
			Policies: pulumi.StringArray{
				read_policy.ID(),
			},
			ServiceIdentities: consul.AclRoleServiceIdentityArray{
				&consul.AclRoleServiceIdentityArgs{
					ServiceName: pulumi.String("foo"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetAclRole

func GetAclRole(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *AclRoleState, opts ...pulumi.ResourceOption) (*AclRole, error)

GetAclRole gets an existing AclRole resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewAclRole

func NewAclRole(ctx *pulumi.Context,
	name string, args *AclRoleArgs, opts ...pulumi.ResourceOption) (*AclRole, error)

NewAclRole registers a new resource with the given unique name, arguments, and options.

type AclRoleArgs

type AclRoleArgs struct {
	// A free form human readable description of the role.
	Description pulumi.StringPtrInput
	// The name of the ACL role.
	Name pulumi.StringPtrInput
	// The namespace to create the role within.
	Namespace pulumi.StringPtrInput
	// The list of policies that should be applied to the role.
	Policies pulumi.StringArrayInput
	// The list of service identities that should
	// be applied to the role.
	ServiceIdentities AclRoleServiceIdentityArrayInput
}

The set of arguments for constructing a AclRole resource.

func (AclRoleArgs) ElementType

func (AclRoleArgs) ElementType() reflect.Type

type AclRoleServiceIdentity

type AclRoleServiceIdentity struct {
	// The datacenters the effective policy is valid within.
	Datacenters []string `pulumi:"datacenters"`
	// The name of the service.
	ServiceName string `pulumi:"serviceName"`
}

type AclRoleServiceIdentityArgs

type AclRoleServiceIdentityArgs struct {
	// The datacenters the effective policy is valid within.
	Datacenters pulumi.StringArrayInput `pulumi:"datacenters"`
	// The name of the service.
	ServiceName pulumi.StringInput `pulumi:"serviceName"`
}

func (AclRoleServiceIdentityArgs) ElementType

func (AclRoleServiceIdentityArgs) ElementType() reflect.Type

func (AclRoleServiceIdentityArgs) ToAclRoleServiceIdentityOutput

func (i AclRoleServiceIdentityArgs) ToAclRoleServiceIdentityOutput() AclRoleServiceIdentityOutput

func (AclRoleServiceIdentityArgs) ToAclRoleServiceIdentityOutputWithContext

func (i AclRoleServiceIdentityArgs) ToAclRoleServiceIdentityOutputWithContext(ctx context.Context) AclRoleServiceIdentityOutput

type AclRoleServiceIdentityArray

type AclRoleServiceIdentityArray []AclRoleServiceIdentityInput

func (AclRoleServiceIdentityArray) ElementType

func (AclRoleServiceIdentityArray) ToAclRoleServiceIdentityArrayOutput

func (i AclRoleServiceIdentityArray) ToAclRoleServiceIdentityArrayOutput() AclRoleServiceIdentityArrayOutput

func (AclRoleServiceIdentityArray) ToAclRoleServiceIdentityArrayOutputWithContext

func (i AclRoleServiceIdentityArray) ToAclRoleServiceIdentityArrayOutputWithContext(ctx context.Context) AclRoleServiceIdentityArrayOutput

type AclRoleServiceIdentityArrayInput

type AclRoleServiceIdentityArrayInput interface {
	pulumi.Input

	ToAclRoleServiceIdentityArrayOutput() AclRoleServiceIdentityArrayOutput
	ToAclRoleServiceIdentityArrayOutputWithContext(context.Context) AclRoleServiceIdentityArrayOutput
}

AclRoleServiceIdentityArrayInput is an input type that accepts AclRoleServiceIdentityArray and AclRoleServiceIdentityArrayOutput values. You can construct a concrete instance of `AclRoleServiceIdentityArrayInput` via:

AclRoleServiceIdentityArray{ AclRoleServiceIdentityArgs{...} }

type AclRoleServiceIdentityArrayOutput

type AclRoleServiceIdentityArrayOutput struct{ *pulumi.OutputState }

func (AclRoleServiceIdentityArrayOutput) ElementType

func (AclRoleServiceIdentityArrayOutput) Index

func (AclRoleServiceIdentityArrayOutput) ToAclRoleServiceIdentityArrayOutput

func (o AclRoleServiceIdentityArrayOutput) ToAclRoleServiceIdentityArrayOutput() AclRoleServiceIdentityArrayOutput

func (AclRoleServiceIdentityArrayOutput) ToAclRoleServiceIdentityArrayOutputWithContext

func (o AclRoleServiceIdentityArrayOutput) ToAclRoleServiceIdentityArrayOutputWithContext(ctx context.Context) AclRoleServiceIdentityArrayOutput

type AclRoleServiceIdentityInput

type AclRoleServiceIdentityInput interface {
	pulumi.Input

	ToAclRoleServiceIdentityOutput() AclRoleServiceIdentityOutput
	ToAclRoleServiceIdentityOutputWithContext(context.Context) AclRoleServiceIdentityOutput
}

AclRoleServiceIdentityInput is an input type that accepts AclRoleServiceIdentityArgs and AclRoleServiceIdentityOutput values. You can construct a concrete instance of `AclRoleServiceIdentityInput` via:

AclRoleServiceIdentityArgs{...}

type AclRoleServiceIdentityOutput

type AclRoleServiceIdentityOutput struct{ *pulumi.OutputState }

func (AclRoleServiceIdentityOutput) Datacenters

The datacenters the effective policy is valid within.

func (AclRoleServiceIdentityOutput) ElementType

func (AclRoleServiceIdentityOutput) ServiceName

The name of the service.

func (AclRoleServiceIdentityOutput) ToAclRoleServiceIdentityOutput

func (o AclRoleServiceIdentityOutput) ToAclRoleServiceIdentityOutput() AclRoleServiceIdentityOutput

func (AclRoleServiceIdentityOutput) ToAclRoleServiceIdentityOutputWithContext

func (o AclRoleServiceIdentityOutput) ToAclRoleServiceIdentityOutputWithContext(ctx context.Context) AclRoleServiceIdentityOutput

type AclRoleState

type AclRoleState struct {
	// A free form human readable description of the role.
	Description pulumi.StringPtrInput
	// The name of the ACL role.
	Name pulumi.StringPtrInput
	// The namespace to create the role within.
	Namespace pulumi.StringPtrInput
	// The list of policies that should be applied to the role.
	Policies pulumi.StringArrayInput
	// The list of service identities that should
	// be applied to the role.
	ServiceIdentities AclRoleServiceIdentityArrayInput
}

func (AclRoleState) ElementType

func (AclRoleState) ElementType() reflect.Type

type AclToken

type AclToken struct {
	pulumi.CustomResourceState

	// The uuid of the token. If omitted, Consul will
	// generate a random uuid.
	AccessorId pulumi.StringOutput `pulumi:"accessorId"`
	// The description of the token.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// The flag to set the token local to the current datacenter.
	Local pulumi.BoolPtrOutput `pulumi:"local"`
	// The namespace to create the token within.
	Namespace pulumi.StringPtrOutput `pulumi:"namespace"`
	// The list of policies attached to the token.
	Policies pulumi.StringArrayOutput `pulumi:"policies"`
	// The list of roles attached to the token.
	Roles pulumi.StringArrayOutput `pulumi:"roles"`
}

The `AclToken` resource writes an ACL token into Consul.

## Example Usage ### Basic usage

```go package main

import (

"fmt"

"github.com/pulumi/pulumi-consul/sdk/v2/go/consul"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		agent, err := consul.NewAclPolicy(ctx, "agent", &consul.AclPolicyArgs{
			Rules: pulumi.String(fmt.Sprintf("%v%v%v%v", "node_prefix \"\" {\n", "  policy = \"read\"\n", "}\n", "\n")),
		})
		if err != nil {
			return err
		}
		_, err = consul.NewAclToken(ctx, "test", &consul.AclTokenArgs{
			Description: pulumi.String("my test token"),
			Local:       pulumi.Bool(true),
			Policies: pulumi.StringArray{
				agent.Name,
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetAclToken

func GetAclToken(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *AclTokenState, opts ...pulumi.ResourceOption) (*AclToken, error)

GetAclToken gets an existing AclToken resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewAclToken

func NewAclToken(ctx *pulumi.Context,
	name string, args *AclTokenArgs, opts ...pulumi.ResourceOption) (*AclToken, error)

NewAclToken registers a new resource with the given unique name, arguments, and options.

type AclTokenArgs

type AclTokenArgs struct {
	// The uuid of the token. If omitted, Consul will
	// generate a random uuid.
	AccessorId pulumi.StringPtrInput
	// The description of the token.
	Description pulumi.StringPtrInput
	// The flag to set the token local to the current datacenter.
	Local pulumi.BoolPtrInput
	// The namespace to create the token within.
	Namespace pulumi.StringPtrInput
	// The list of policies attached to the token.
	Policies pulumi.StringArrayInput
	// The list of roles attached to the token.
	Roles pulumi.StringArrayInput
}

The set of arguments for constructing a AclToken resource.

func (AclTokenArgs) ElementType

func (AclTokenArgs) ElementType() reflect.Type

type AclTokenPolicyAttachment

type AclTokenPolicyAttachment struct {
	pulumi.CustomResourceState

	// The name of the policy attached to the token.
	Policy pulumi.StringOutput `pulumi:"policy"`
	// The id of the token.
	TokenId pulumi.StringOutput `pulumi:"tokenId"`
}

func GetAclTokenPolicyAttachment

func GetAclTokenPolicyAttachment(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *AclTokenPolicyAttachmentState, opts ...pulumi.ResourceOption) (*AclTokenPolicyAttachment, error)

GetAclTokenPolicyAttachment gets an existing AclTokenPolicyAttachment resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewAclTokenPolicyAttachment

func NewAclTokenPolicyAttachment(ctx *pulumi.Context,
	name string, args *AclTokenPolicyAttachmentArgs, opts ...pulumi.ResourceOption) (*AclTokenPolicyAttachment, error)

NewAclTokenPolicyAttachment registers a new resource with the given unique name, arguments, and options.

type AclTokenPolicyAttachmentArgs

type AclTokenPolicyAttachmentArgs struct {
	// The name of the policy attached to the token.
	Policy pulumi.StringInput
	// The id of the token.
	TokenId pulumi.StringInput
}

The set of arguments for constructing a AclTokenPolicyAttachment resource.

func (AclTokenPolicyAttachmentArgs) ElementType

type AclTokenPolicyAttachmentState

type AclTokenPolicyAttachmentState struct {
	// The name of the policy attached to the token.
	Policy pulumi.StringPtrInput
	// The id of the token.
	TokenId pulumi.StringPtrInput
}

func (AclTokenPolicyAttachmentState) ElementType

type AclTokenState

type AclTokenState struct {
	// The uuid of the token. If omitted, Consul will
	// generate a random uuid.
	AccessorId pulumi.StringPtrInput
	// The description of the token.
	Description pulumi.StringPtrInput
	// The flag to set the token local to the current datacenter.
	Local pulumi.BoolPtrInput
	// The namespace to create the token within.
	Namespace pulumi.StringPtrInput
	// The list of policies attached to the token.
	Policies pulumi.StringArrayInput
	// The list of roles attached to the token.
	Roles pulumi.StringArrayInput
}

func (AclTokenState) ElementType

func (AclTokenState) ElementType() reflect.Type

type AgentService

type AgentService struct {
	pulumi.CustomResourceState

	// The address of the service. Defaults to the
	// address of the agent.
	Address pulumi.StringOutput `pulumi:"address"`
	// The name of the service.
	Name pulumi.StringOutput `pulumi:"name"`
	// The port of the service.
	Port pulumi.IntPtrOutput `pulumi:"port"`
	// A list of values that are opaque to Consul,
	// but can be used to distinguish between services or nodes.
	Tags pulumi.StringArrayOutput `pulumi:"tags"`
}

!> The `AgentService` resource has been deprecated in version 2.0.0 of the provider and will be removed in a future release. Please read the [upgrade guide](https://www.terraform.io/docs/providers/consul/guides/upgrading.html#deprecation-of-consul_agent_service) for more information.

Provides access to the agent service data in Consul. This can be used to define a service associated with a particular agent. Currently, defining health checks for an agent service is not supported.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-consul/sdk/v2/go/consul"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := consul.NewAgentService(ctx, "app", &consul.AgentServiceArgs{
			Address: pulumi.String("www.google.com"),
			Port:    pulumi.Int(80),
			Tags: pulumi.StringArray{
				pulumi.String("tag0"),
				pulumi.String("tag1"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetAgentService

func GetAgentService(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *AgentServiceState, opts ...pulumi.ResourceOption) (*AgentService, error)

GetAgentService gets an existing AgentService resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewAgentService

func NewAgentService(ctx *pulumi.Context,
	name string, args *AgentServiceArgs, opts ...pulumi.ResourceOption) (*AgentService, error)

NewAgentService registers a new resource with the given unique name, arguments, and options.

type AgentServiceArgs

type AgentServiceArgs struct {
	// The address of the service. Defaults to the
	// address of the agent.
	Address pulumi.StringPtrInput
	// The name of the service.
	Name pulumi.StringPtrInput
	// The port of the service.
	Port pulumi.IntPtrInput
	// A list of values that are opaque to Consul,
	// but can be used to distinguish between services or nodes.
	Tags pulumi.StringArrayInput
}

The set of arguments for constructing a AgentService resource.

func (AgentServiceArgs) ElementType

func (AgentServiceArgs) ElementType() reflect.Type

type AgentServiceState

type AgentServiceState struct {
	// The address of the service. Defaults to the
	// address of the agent.
	Address pulumi.StringPtrInput
	// The name of the service.
	Name pulumi.StringPtrInput
	// The port of the service.
	Port pulumi.IntPtrInput
	// A list of values that are opaque to Consul,
	// but can be used to distinguish between services or nodes.
	Tags pulumi.StringArrayInput
}

func (AgentServiceState) ElementType

func (AgentServiceState) ElementType() reflect.Type

type AutopilotConfig

type AutopilotConfig struct {
	pulumi.CustomResourceState

	// Whether to remove failing servers when a
	// replacement comes online. Defaults to true.
	CleanupDeadServers pulumi.BoolPtrOutput `pulumi:"cleanupDeadServers"`
	// The datacenter to use. This overrides the agent's
	// default datacenter and the datacenter in the provider setup.
	Datacenter pulumi.StringPtrOutput `pulumi:"datacenter"`
	// Whether to disable [upgrade migrations](https://www.consul.io/docs/guides/autopilot.html#redundancy-zones).
	// Defaults to false.
	DisableUpgradeMigration pulumi.BoolPtrOutput `pulumi:"disableUpgradeMigration"`
	// The time after which a server is
	// considered as unhealthy and will be removed. Defaults to `"200ms"`.
	LastContactThreshold pulumi.StringPtrOutput `pulumi:"lastContactThreshold"`
	// The maximum number of Raft log entries a
	// server can trail the leader. Defaults to 250.
	MaxTrailingLogs pulumi.IntPtrOutput `pulumi:"maxTrailingLogs"`
	// The [redundancy zone](https://www.consul.io/docs/guides/autopilot.html#redundancy-zones)
	// tag to use. Consul will try to keep one voting server by zone to take advantage
	// of isolated failure domains. Defaults to an empty string.
	RedundancyZoneTag pulumi.StringPtrOutput `pulumi:"redundancyZoneTag"`
	// The period to wait for a server to be
	// healthy and stable before being promoted to a full, voting member. Defaults to
	// `"10s"`.
	ServerStabilizationTime pulumi.StringPtrOutput `pulumi:"serverStabilizationTime"`
	// The tag to override the version information
	// used during a migration. Defaults to an empty string.
	UpgradeVersionTag pulumi.StringPtrOutput `pulumi:"upgradeVersionTag"`
}

Provides access to the [Autopilot Configuration](https://www.consul.io/docs/guides/autopilot.html) of Consul to automatically manage Consul servers.

It includes to automatically cleanup dead servers, monitor the status of the Raft cluster and stable server introduction.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-consul/sdk/v2/go/consul"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := consul.NewAutopilotConfig(ctx, "config", &consul.AutopilotConfigArgs{
			CleanupDeadServers:   pulumi.Bool(false),
			LastContactThreshold: pulumi.String("1s"),
			MaxTrailingLogs:      pulumi.Int(500),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetAutopilotConfig

func GetAutopilotConfig(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *AutopilotConfigState, opts ...pulumi.ResourceOption) (*AutopilotConfig, error)

GetAutopilotConfig gets an existing AutopilotConfig resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewAutopilotConfig

func NewAutopilotConfig(ctx *pulumi.Context,
	name string, args *AutopilotConfigArgs, opts ...pulumi.ResourceOption) (*AutopilotConfig, error)

NewAutopilotConfig registers a new resource with the given unique name, arguments, and options.

type AutopilotConfigArgs

type AutopilotConfigArgs struct {
	// Whether to remove failing servers when a
	// replacement comes online. Defaults to true.
	CleanupDeadServers pulumi.BoolPtrInput
	// The datacenter to use. This overrides the agent's
	// default datacenter and the datacenter in the provider setup.
	Datacenter pulumi.StringPtrInput
	// Whether to disable [upgrade migrations](https://www.consul.io/docs/guides/autopilot.html#redundancy-zones).
	// Defaults to false.
	DisableUpgradeMigration pulumi.BoolPtrInput
	// The time after which a server is
	// considered as unhealthy and will be removed. Defaults to `"200ms"`.
	LastContactThreshold pulumi.StringPtrInput
	// The maximum number of Raft log entries a
	// server can trail the leader. Defaults to 250.
	MaxTrailingLogs pulumi.IntPtrInput
	// The [redundancy zone](https://www.consul.io/docs/guides/autopilot.html#redundancy-zones)
	// tag to use. Consul will try to keep one voting server by zone to take advantage
	// of isolated failure domains. Defaults to an empty string.
	RedundancyZoneTag pulumi.StringPtrInput
	// The period to wait for a server to be
	// healthy and stable before being promoted to a full, voting member. Defaults to
	// `"10s"`.
	ServerStabilizationTime pulumi.StringPtrInput
	// The tag to override the version information
	// used during a migration. Defaults to an empty string.
	UpgradeVersionTag pulumi.StringPtrInput
}

The set of arguments for constructing a AutopilotConfig resource.

func (AutopilotConfigArgs) ElementType

func (AutopilotConfigArgs) ElementType() reflect.Type

type AutopilotConfigState

type AutopilotConfigState struct {
	// Whether to remove failing servers when a
	// replacement comes online. Defaults to true.
	CleanupDeadServers pulumi.BoolPtrInput
	// The datacenter to use. This overrides the agent's
	// default datacenter and the datacenter in the provider setup.
	Datacenter pulumi.StringPtrInput
	// Whether to disable [upgrade migrations](https://www.consul.io/docs/guides/autopilot.html#redundancy-zones).
	// Defaults to false.
	DisableUpgradeMigration pulumi.BoolPtrInput
	// The time after which a server is
	// considered as unhealthy and will be removed. Defaults to `"200ms"`.
	LastContactThreshold pulumi.StringPtrInput
	// The maximum number of Raft log entries a
	// server can trail the leader. Defaults to 250.
	MaxTrailingLogs pulumi.IntPtrInput
	// The [redundancy zone](https://www.consul.io/docs/guides/autopilot.html#redundancy-zones)
	// tag to use. Consul will try to keep one voting server by zone to take advantage
	// of isolated failure domains. Defaults to an empty string.
	RedundancyZoneTag pulumi.StringPtrInput
	// The period to wait for a server to be
	// healthy and stable before being promoted to a full, voting member. Defaults to
	// `"10s"`.
	ServerStabilizationTime pulumi.StringPtrInput
	// The tag to override the version information
	// used during a migration. Defaults to an empty string.
	UpgradeVersionTag pulumi.StringPtrInput
}

func (AutopilotConfigState) ElementType

func (AutopilotConfigState) ElementType() reflect.Type

type CatalogEntry

type CatalogEntry struct {
	pulumi.CustomResourceState

	// The address of the node being added to,
	// or referenced in the catalog.
	Address pulumi.StringOutput `pulumi:"address"`
	// The datacenter to use. This overrides the
	// agent's default datacenter and the datacenter in the provider setup.
	Datacenter pulumi.StringOutput `pulumi:"datacenter"`
	// The name of the node being added to, or
	// referenced in the catalog.
	Node pulumi.StringOutput `pulumi:"node"`
	// A service to optionally associated with
	// the node. Supported values are documented below.
	Services CatalogEntryServiceArrayOutput `pulumi:"services"`
	// ACL token.
	Token pulumi.StringPtrOutput `pulumi:"token"`
}

!> The `CatalogEntry` resource has been deprecated in version 2.0.0 of the provider and will be removed in a future release. Please read the [upgrade guide](https://www.terraform.io/docs/providers/consul/guides/upgrading.html#deprecation-of-consul_catalog_entry) for more information.

Registers a node or service with the [Consul Catalog](https://www.consul.io/docs/agent/http/catalog.html#catalog_register). Currently, defining health checks is not supported.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-consul/sdk/v2/go/consul"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := consul.NewCatalogEntry(ctx, "app", &consul.CatalogEntryArgs{
			Address: pulumi.String("192.168.10.10"),
			Node:    pulumi.String("foobar"),
			Services: consul.CatalogEntryServiceArray{
				&consul.CatalogEntryServiceArgs{
					Address: pulumi.String("127.0.0.1"),
					Id:      pulumi.String("redis1"),
					Name:    pulumi.String("redis"),
					Port:    pulumi.Int(8000),
					Tags: pulumi.StringArray{
						pulumi.String("master"),
						pulumi.String("v1"),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetCatalogEntry

func GetCatalogEntry(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *CatalogEntryState, opts ...pulumi.ResourceOption) (*CatalogEntry, error)

GetCatalogEntry gets an existing CatalogEntry resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewCatalogEntry

func NewCatalogEntry(ctx *pulumi.Context,
	name string, args *CatalogEntryArgs, opts ...pulumi.ResourceOption) (*CatalogEntry, error)

NewCatalogEntry registers a new resource with the given unique name, arguments, and options.

type CatalogEntryArgs

type CatalogEntryArgs struct {
	// The address of the node being added to,
	// or referenced in the catalog.
	Address pulumi.StringInput
	// The datacenter to use. This overrides the
	// agent's default datacenter and the datacenter in the provider setup.
	Datacenter pulumi.StringPtrInput
	// The name of the node being added to, or
	// referenced in the catalog.
	Node pulumi.StringInput
	// A service to optionally associated with
	// the node. Supported values are documented below.
	Services CatalogEntryServiceArrayInput
	// ACL token.
	Token pulumi.StringPtrInput
}

The set of arguments for constructing a CatalogEntry resource.

func (CatalogEntryArgs) ElementType

func (CatalogEntryArgs) ElementType() reflect.Type

type CatalogEntryService

type CatalogEntryService struct {
	// The address of the service. Defaults to the
	// node address.
	Address *string `pulumi:"address"`
	// The ID of the service. Defaults to the `name`.
	Id *string `pulumi:"id"`
	// The name of the service
	Name string `pulumi:"name"`
	// The port of the service.
	Port *int `pulumi:"port"`
	// A list of values that are opaque to Consul,
	// but can be used to distinguish between services or nodes.
	Tags []string `pulumi:"tags"`
}

type CatalogEntryServiceArgs

type CatalogEntryServiceArgs struct {
	// The address of the service. Defaults to the
	// node address.
	Address pulumi.StringPtrInput `pulumi:"address"`
	// The ID of the service. Defaults to the `name`.
	Id pulumi.StringPtrInput `pulumi:"id"`
	// The name of the service
	Name pulumi.StringInput `pulumi:"name"`
	// The port of the service.
	Port pulumi.IntPtrInput `pulumi:"port"`
	// A list of values that are opaque to Consul,
	// but can be used to distinguish between services or nodes.
	Tags pulumi.StringArrayInput `pulumi:"tags"`
}

func (CatalogEntryServiceArgs) ElementType

func (CatalogEntryServiceArgs) ElementType() reflect.Type

func (CatalogEntryServiceArgs) ToCatalogEntryServiceOutput

func (i CatalogEntryServiceArgs) ToCatalogEntryServiceOutput() CatalogEntryServiceOutput

func (CatalogEntryServiceArgs) ToCatalogEntryServiceOutputWithContext

func (i CatalogEntryServiceArgs) ToCatalogEntryServiceOutputWithContext(ctx context.Context) CatalogEntryServiceOutput

type CatalogEntryServiceArray

type CatalogEntryServiceArray []CatalogEntryServiceInput

func (CatalogEntryServiceArray) ElementType

func (CatalogEntryServiceArray) ElementType() reflect.Type

func (CatalogEntryServiceArray) ToCatalogEntryServiceArrayOutput

func (i CatalogEntryServiceArray) ToCatalogEntryServiceArrayOutput() CatalogEntryServiceArrayOutput

func (CatalogEntryServiceArray) ToCatalogEntryServiceArrayOutputWithContext

func (i CatalogEntryServiceArray) ToCatalogEntryServiceArrayOutputWithContext(ctx context.Context) CatalogEntryServiceArrayOutput

type CatalogEntryServiceArrayInput

type CatalogEntryServiceArrayInput interface {
	pulumi.Input

	ToCatalogEntryServiceArrayOutput() CatalogEntryServiceArrayOutput
	ToCatalogEntryServiceArrayOutputWithContext(context.Context) CatalogEntryServiceArrayOutput
}

CatalogEntryServiceArrayInput is an input type that accepts CatalogEntryServiceArray and CatalogEntryServiceArrayOutput values. You can construct a concrete instance of `CatalogEntryServiceArrayInput` via:

CatalogEntryServiceArray{ CatalogEntryServiceArgs{...} }

type CatalogEntryServiceArrayOutput

type CatalogEntryServiceArrayOutput struct{ *pulumi.OutputState }

func (CatalogEntryServiceArrayOutput) ElementType

func (CatalogEntryServiceArrayOutput) Index

func (CatalogEntryServiceArrayOutput) ToCatalogEntryServiceArrayOutput

func (o CatalogEntryServiceArrayOutput) ToCatalogEntryServiceArrayOutput() CatalogEntryServiceArrayOutput

func (CatalogEntryServiceArrayOutput) ToCatalogEntryServiceArrayOutputWithContext

func (o CatalogEntryServiceArrayOutput) ToCatalogEntryServiceArrayOutputWithContext(ctx context.Context) CatalogEntryServiceArrayOutput

type CatalogEntryServiceInput

type CatalogEntryServiceInput interface {
	pulumi.Input

	ToCatalogEntryServiceOutput() CatalogEntryServiceOutput
	ToCatalogEntryServiceOutputWithContext(context.Context) CatalogEntryServiceOutput
}

CatalogEntryServiceInput is an input type that accepts CatalogEntryServiceArgs and CatalogEntryServiceOutput values. You can construct a concrete instance of `CatalogEntryServiceInput` via:

CatalogEntryServiceArgs{...}

type CatalogEntryServiceOutput

type CatalogEntryServiceOutput struct{ *pulumi.OutputState }

func (CatalogEntryServiceOutput) Address

The address of the service. Defaults to the node address.

func (CatalogEntryServiceOutput) ElementType

func (CatalogEntryServiceOutput) ElementType() reflect.Type

func (CatalogEntryServiceOutput) Id

The ID of the service. Defaults to the `name`.

func (CatalogEntryServiceOutput) Name

The name of the service

func (CatalogEntryServiceOutput) Port

The port of the service.

func (CatalogEntryServiceOutput) Tags

A list of values that are opaque to Consul, but can be used to distinguish between services or nodes.

func (CatalogEntryServiceOutput) ToCatalogEntryServiceOutput

func (o CatalogEntryServiceOutput) ToCatalogEntryServiceOutput() CatalogEntryServiceOutput

func (CatalogEntryServiceOutput) ToCatalogEntryServiceOutputWithContext

func (o CatalogEntryServiceOutput) ToCatalogEntryServiceOutputWithContext(ctx context.Context) CatalogEntryServiceOutput

type CatalogEntryState

type CatalogEntryState struct {
	// The address of the node being added to,
	// or referenced in the catalog.
	Address pulumi.StringPtrInput
	// The datacenter to use. This overrides the
	// agent's default datacenter and the datacenter in the provider setup.
	Datacenter pulumi.StringPtrInput
	// The name of the node being added to, or
	// referenced in the catalog.
	Node pulumi.StringPtrInput
	// A service to optionally associated with
	// the node. Supported values are documented below.
	Services CatalogEntryServiceArrayInput
	// ACL token.
	Token pulumi.StringPtrInput
}

func (CatalogEntryState) ElementType

func (CatalogEntryState) ElementType() reflect.Type

type CertificateAuthority added in v2.3.0

type CertificateAuthority struct {
	pulumi.CustomResourceState

	// The raw configuration to use for the chosen provider.
	Config pulumi.StringMapOutput `pulumi:"config"`
	// Specifies the CA provider type to use.
	ConnectProvider pulumi.StringOutput `pulumi:"connectProvider"`
}

The `certificateAuthority` resource can be used to manage the configuration of the Certificate Authority used by [Consul Connect](https://www.consul.io/docs/connect/ca).

func GetCertificateAuthority added in v2.3.0

func GetCertificateAuthority(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *CertificateAuthorityState, opts ...pulumi.ResourceOption) (*CertificateAuthority, error)

GetCertificateAuthority gets an existing CertificateAuthority resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewCertificateAuthority added in v2.3.0

func NewCertificateAuthority(ctx *pulumi.Context,
	name string, args *CertificateAuthorityArgs, opts ...pulumi.ResourceOption) (*CertificateAuthority, error)

NewCertificateAuthority registers a new resource with the given unique name, arguments, and options.

type CertificateAuthorityArgs added in v2.3.0

type CertificateAuthorityArgs struct {
	// The raw configuration to use for the chosen provider.
	Config pulumi.StringMapInput
	// Specifies the CA provider type to use.
	ConnectProvider pulumi.StringInput
}

The set of arguments for constructing a CertificateAuthority resource.

func (CertificateAuthorityArgs) ElementType added in v2.3.0

func (CertificateAuthorityArgs) ElementType() reflect.Type

type CertificateAuthorityState added in v2.3.0

type CertificateAuthorityState struct {
	// The raw configuration to use for the chosen provider.
	Config pulumi.StringMapInput
	// Specifies the CA provider type to use.
	ConnectProvider pulumi.StringPtrInput
}

func (CertificateAuthorityState) ElementType added in v2.3.0

func (CertificateAuthorityState) ElementType() reflect.Type

type ConfigEntry

type ConfigEntry struct {
	pulumi.CustomResourceState

	// An arbitrary map of configuration values.
	ConfigJson pulumi.StringPtrOutput `pulumi:"configJson"`
	// The kind of configuration entry to register.
	Kind pulumi.StringOutput `pulumi:"kind"`
	// The name of the configuration entry being registred.
	Name pulumi.StringOutput `pulumi:"name"`
}

The [Configuration Entry](https://www.consul.io/docs/agent/config_entries.html) resource can be used to provide cluster-wide defaults for various aspects of Consul.

## Example Usage

```go package main

import (

"encoding/json"

"github.com/pulumi/pulumi-consul/sdk/v2/go/consul"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		tmpJSON0, err := json.Marshal(map[string]interface{}{
			"Config": map[string]interface{}{
				"local_connect_timeout_ms": 1000,
				"handshake_timeout_ms":     10000,
			},
		})
		if err != nil {
			return err
		}
		json0 := string(tmpJSON0)
		_, err := consul.NewConfigEntry(ctx, "proxyDefaults", &consul.ConfigEntryArgs{
			Kind:       pulumi.String("proxy-defaults"),
			ConfigJson: pulumi.String(json0),
		})
		if err != nil {
			return err
		}
		tmpJSON1, err := json.Marshal(map[string]interface{}{
			"Protocol": "http",
		})
		if err != nil {
			return err
		}
		json1 := string(tmpJSON1)
		_, err = consul.NewConfigEntry(ctx, "web", &consul.ConfigEntryArgs{
			Kind:       pulumi.String("service-defaults"),
			ConfigJson: pulumi.String(json1),
		})
		if err != nil {
			return err
		}
		tmpJSON2, err := json.Marshal(map[string]interface{}{
			"Protocol": "http",
		})
		if err != nil {
			return err
		}
		json2 := string(tmpJSON2)
		_, err = consul.NewConfigEntry(ctx, "admin", &consul.ConfigEntryArgs{
			Kind:       pulumi.String("service-defaults"),
			ConfigJson: pulumi.String(json2),
		})
		if err != nil {
			return err
		}
		tmpJSON3, err := json.Marshal(map[string]interface{}{
			"DefaultSubset": "v1",
			"Subsets": map[string]interface{}{
				"v1": map[string]interface{}{
					"Filter": "Service.Meta.version == v1",
				},
				"v2": map[string]interface{}{
					"Filter": "Service.Meta.version == v2",
				},
			},
		})
		if err != nil {
			return err
		}
		json3 := string(tmpJSON3)
		_, err = consul.NewConfigEntry(ctx, "serviceResolver", &consul.ConfigEntryArgs{
			Kind:       pulumi.String("service-resolver"),
			ConfigJson: pulumi.String(json3),
		})
		if err != nil {
			return err
		}
		tmpJSON4, err := json.Marshal(map[string]interface{}{
			"Splits": []map[string]interface{}{
				map[string]interface{}{
					"Weight":        90,
					"ServiceSubset": "v1",
				},
				map[string]interface{}{
					"Weight":        10,
					"ServiceSubset": "v2",
				},
			},
		})
		if err != nil {
			return err
		}
		json4 := string(tmpJSON4)
		_, err = consul.NewConfigEntry(ctx, "serviceSplitter", &consul.ConfigEntryArgs{
			Kind:       pulumi.String("service-splitter"),
			ConfigJson: pulumi.String(json4),
		})
		if err != nil {
			return err
		}
		tmpJSON5, err := json.Marshal(map[string]interface{}{
			"Routes": []map[string]interface{}{
				map[string]interface{}{
					"Match": map[string]interface{}{
						"HTTP": map[string]interface{}{
							"PathPrefix": "/admin",
						},
					},
					"Destination": map[string]interface{}{
						"Service": "admin",
					},
				},
			},
		})
		if err != nil {
			return err
		}
		json5 := string(tmpJSON5)
		_, err = consul.NewConfigEntry(ctx, "serviceRouter", &consul.ConfigEntryArgs{
			Kind:       pulumi.String("service-router"),
			ConfigJson: pulumi.String(json5),
		})
		if err != nil {
			return err
		}
		tmpJSON6, err := json.Marshal(map[string]interface{}{
			"TLS": map[string]interface{}{
				"Enabled": true,
			},
			"Listeners": []map[string]interface{}{
				map[string]interface{}{
					"Port":     8000,
					"Protocol": "http",
					"Services": []map[string]interface{}{
						map[string]interface{}{
							"Name": "*",
						},
					},
				},
			},
		})
		if err != nil {
			return err
		}
		json6 := string(tmpJSON6)
		_, err = consul.NewConfigEntry(ctx, "ingressGateway", &consul.ConfigEntryArgs{
			Kind:       pulumi.String("ingress-gateway"),
			ConfigJson: pulumi.String(json6),
		})
		if err != nil {
			return err
		}
		tmpJSON7, err := json.Marshal(map[string]interface{}{
			"Services": []map[string]interface{}{
				map[string]interface{}{
					"Name": "billing",
				},
			},
		})
		if err != nil {
			return err
		}
		json7 := string(tmpJSON7)
		_, err = consul.NewConfigEntry(ctx, "terminatingGateway", &consul.ConfigEntryArgs{
			Kind:       pulumi.String("terminating-gateway"),
			ConfigJson: pulumi.String(json7),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetConfigEntry

func GetConfigEntry(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ConfigEntryState, opts ...pulumi.ResourceOption) (*ConfigEntry, error)

GetConfigEntry gets an existing ConfigEntry resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewConfigEntry

func NewConfigEntry(ctx *pulumi.Context,
	name string, args *ConfigEntryArgs, opts ...pulumi.ResourceOption) (*ConfigEntry, error)

NewConfigEntry registers a new resource with the given unique name, arguments, and options.

type ConfigEntryArgs

type ConfigEntryArgs struct {
	// An arbitrary map of configuration values.
	ConfigJson pulumi.StringPtrInput
	// The kind of configuration entry to register.
	Kind pulumi.StringInput
	// The name of the configuration entry being registred.
	Name pulumi.StringPtrInput
}

The set of arguments for constructing a ConfigEntry resource.

func (ConfigEntryArgs) ElementType

func (ConfigEntryArgs) ElementType() reflect.Type

type ConfigEntryState

type ConfigEntryState struct {
	// An arbitrary map of configuration values.
	ConfigJson pulumi.StringPtrInput
	// The kind of configuration entry to register.
	Kind pulumi.StringPtrInput
	// The name of the configuration entry being registred.
	Name pulumi.StringPtrInput
}

func (ConfigEntryState) ElementType

func (ConfigEntryState) ElementType() reflect.Type

type GetAclAuthMethodNamespaceRule added in v2.3.0

type GetAclAuthMethodNamespaceRule struct {
	BindNamespace string `pulumi:"bindNamespace"`
	Selector      string `pulumi:"selector"`
}

type GetAclAuthMethodNamespaceRuleArgs added in v2.3.0

type GetAclAuthMethodNamespaceRuleArgs struct {
	BindNamespace pulumi.StringInput `pulumi:"bindNamespace"`
	Selector      pulumi.StringInput `pulumi:"selector"`
}

func (GetAclAuthMethodNamespaceRuleArgs) ElementType added in v2.3.0

func (GetAclAuthMethodNamespaceRuleArgs) ToGetAclAuthMethodNamespaceRuleOutput added in v2.3.0

func (i GetAclAuthMethodNamespaceRuleArgs) ToGetAclAuthMethodNamespaceRuleOutput() GetAclAuthMethodNamespaceRuleOutput

func (GetAclAuthMethodNamespaceRuleArgs) ToGetAclAuthMethodNamespaceRuleOutputWithContext added in v2.3.0

func (i GetAclAuthMethodNamespaceRuleArgs) ToGetAclAuthMethodNamespaceRuleOutputWithContext(ctx context.Context) GetAclAuthMethodNamespaceRuleOutput

type GetAclAuthMethodNamespaceRuleArray added in v2.3.0

type GetAclAuthMethodNamespaceRuleArray []GetAclAuthMethodNamespaceRuleInput

func (GetAclAuthMethodNamespaceRuleArray) ElementType added in v2.3.0

func (GetAclAuthMethodNamespaceRuleArray) ToGetAclAuthMethodNamespaceRuleArrayOutput added in v2.3.0

func (i GetAclAuthMethodNamespaceRuleArray) ToGetAclAuthMethodNamespaceRuleArrayOutput() GetAclAuthMethodNamespaceRuleArrayOutput

func (GetAclAuthMethodNamespaceRuleArray) ToGetAclAuthMethodNamespaceRuleArrayOutputWithContext added in v2.3.0

func (i GetAclAuthMethodNamespaceRuleArray) ToGetAclAuthMethodNamespaceRuleArrayOutputWithContext(ctx context.Context) GetAclAuthMethodNamespaceRuleArrayOutput

type GetAclAuthMethodNamespaceRuleArrayInput added in v2.3.0

type GetAclAuthMethodNamespaceRuleArrayInput interface {
	pulumi.Input

	ToGetAclAuthMethodNamespaceRuleArrayOutput() GetAclAuthMethodNamespaceRuleArrayOutput
	ToGetAclAuthMethodNamespaceRuleArrayOutputWithContext(context.Context) GetAclAuthMethodNamespaceRuleArrayOutput
}

GetAclAuthMethodNamespaceRuleArrayInput is an input type that accepts GetAclAuthMethodNamespaceRuleArray and GetAclAuthMethodNamespaceRuleArrayOutput values. You can construct a concrete instance of `GetAclAuthMethodNamespaceRuleArrayInput` via:

GetAclAuthMethodNamespaceRuleArray{ GetAclAuthMethodNamespaceRuleArgs{...} }

type GetAclAuthMethodNamespaceRuleArrayOutput added in v2.3.0

type GetAclAuthMethodNamespaceRuleArrayOutput struct{ *pulumi.OutputState }

func (GetAclAuthMethodNamespaceRuleArrayOutput) ElementType added in v2.3.0

func (GetAclAuthMethodNamespaceRuleArrayOutput) Index added in v2.3.0

func (GetAclAuthMethodNamespaceRuleArrayOutput) ToGetAclAuthMethodNamespaceRuleArrayOutput added in v2.3.0

func (o GetAclAuthMethodNamespaceRuleArrayOutput) ToGetAclAuthMethodNamespaceRuleArrayOutput() GetAclAuthMethodNamespaceRuleArrayOutput

func (GetAclAuthMethodNamespaceRuleArrayOutput) ToGetAclAuthMethodNamespaceRuleArrayOutputWithContext added in v2.3.0

func (o GetAclAuthMethodNamespaceRuleArrayOutput) ToGetAclAuthMethodNamespaceRuleArrayOutputWithContext(ctx context.Context) GetAclAuthMethodNamespaceRuleArrayOutput

type GetAclAuthMethodNamespaceRuleInput added in v2.3.0

type GetAclAuthMethodNamespaceRuleInput interface {
	pulumi.Input

	ToGetAclAuthMethodNamespaceRuleOutput() GetAclAuthMethodNamespaceRuleOutput
	ToGetAclAuthMethodNamespaceRuleOutputWithContext(context.Context) GetAclAuthMethodNamespaceRuleOutput
}

GetAclAuthMethodNamespaceRuleInput is an input type that accepts GetAclAuthMethodNamespaceRuleArgs and GetAclAuthMethodNamespaceRuleOutput values. You can construct a concrete instance of `GetAclAuthMethodNamespaceRuleInput` via:

GetAclAuthMethodNamespaceRuleArgs{...}

type GetAclAuthMethodNamespaceRuleOutput added in v2.3.0

type GetAclAuthMethodNamespaceRuleOutput struct{ *pulumi.OutputState }

func (GetAclAuthMethodNamespaceRuleOutput) BindNamespace added in v2.3.0

func (GetAclAuthMethodNamespaceRuleOutput) ElementType added in v2.3.0

func (GetAclAuthMethodNamespaceRuleOutput) Selector added in v2.3.0

func (GetAclAuthMethodNamespaceRuleOutput) ToGetAclAuthMethodNamespaceRuleOutput added in v2.3.0

func (o GetAclAuthMethodNamespaceRuleOutput) ToGetAclAuthMethodNamespaceRuleOutput() GetAclAuthMethodNamespaceRuleOutput

func (GetAclAuthMethodNamespaceRuleOutput) ToGetAclAuthMethodNamespaceRuleOutputWithContext added in v2.3.0

func (o GetAclAuthMethodNamespaceRuleOutput) ToGetAclAuthMethodNamespaceRuleOutputWithContext(ctx context.Context) GetAclAuthMethodNamespaceRuleOutput

type GetAclRolePolicy

type GetAclRolePolicy struct {
	Id string `pulumi:"id"`
	// The name of the ACL Role.
	Name string `pulumi:"name"`
}

type GetAclRolePolicyArgs

type GetAclRolePolicyArgs struct {
	Id pulumi.StringInput `pulumi:"id"`
	// The name of the ACL Role.
	Name pulumi.StringInput `pulumi:"name"`
}

func (GetAclRolePolicyArgs) ElementType

func (GetAclRolePolicyArgs) ElementType() reflect.Type

func (GetAclRolePolicyArgs) ToGetAclRolePolicyOutput

func (i GetAclRolePolicyArgs) ToGetAclRolePolicyOutput() GetAclRolePolicyOutput

func (GetAclRolePolicyArgs) ToGetAclRolePolicyOutputWithContext

func (i GetAclRolePolicyArgs) ToGetAclRolePolicyOutputWithContext(ctx context.Context) GetAclRolePolicyOutput

type GetAclRolePolicyArray

type GetAclRolePolicyArray []GetAclRolePolicyInput

func (GetAclRolePolicyArray) ElementType

func (GetAclRolePolicyArray) ElementType() reflect.Type

func (GetAclRolePolicyArray) ToGetAclRolePolicyArrayOutput

func (i GetAclRolePolicyArray) ToGetAclRolePolicyArrayOutput() GetAclRolePolicyArrayOutput

func (GetAclRolePolicyArray) ToGetAclRolePolicyArrayOutputWithContext

func (i GetAclRolePolicyArray) ToGetAclRolePolicyArrayOutputWithContext(ctx context.Context) GetAclRolePolicyArrayOutput

type GetAclRolePolicyArrayInput

type GetAclRolePolicyArrayInput interface {
	pulumi.Input

	ToGetAclRolePolicyArrayOutput() GetAclRolePolicyArrayOutput
	ToGetAclRolePolicyArrayOutputWithContext(context.Context) GetAclRolePolicyArrayOutput
}

GetAclRolePolicyArrayInput is an input type that accepts GetAclRolePolicyArray and GetAclRolePolicyArrayOutput values. You can construct a concrete instance of `GetAclRolePolicyArrayInput` via:

GetAclRolePolicyArray{ GetAclRolePolicyArgs{...} }

type GetAclRolePolicyArrayOutput

type GetAclRolePolicyArrayOutput struct{ *pulumi.OutputState }

func (GetAclRolePolicyArrayOutput) ElementType

func (GetAclRolePolicyArrayOutput) Index

func (GetAclRolePolicyArrayOutput) ToGetAclRolePolicyArrayOutput

func (o GetAclRolePolicyArrayOutput) ToGetAclRolePolicyArrayOutput() GetAclRolePolicyArrayOutput

func (GetAclRolePolicyArrayOutput) ToGetAclRolePolicyArrayOutputWithContext

func (o GetAclRolePolicyArrayOutput) ToGetAclRolePolicyArrayOutputWithContext(ctx context.Context) GetAclRolePolicyArrayOutput

type GetAclRolePolicyInput

type GetAclRolePolicyInput interface {
	pulumi.Input

	ToGetAclRolePolicyOutput() GetAclRolePolicyOutput
	ToGetAclRolePolicyOutputWithContext(context.Context) GetAclRolePolicyOutput
}

GetAclRolePolicyInput is an input type that accepts GetAclRolePolicyArgs and GetAclRolePolicyOutput values. You can construct a concrete instance of `GetAclRolePolicyInput` via:

GetAclRolePolicyArgs{...}

type GetAclRolePolicyOutput

type GetAclRolePolicyOutput struct{ *pulumi.OutputState }

func (GetAclRolePolicyOutput) ElementType

func (GetAclRolePolicyOutput) ElementType() reflect.Type

func (GetAclRolePolicyOutput) Id

func (GetAclRolePolicyOutput) Name

The name of the ACL Role.

func (GetAclRolePolicyOutput) ToGetAclRolePolicyOutput

func (o GetAclRolePolicyOutput) ToGetAclRolePolicyOutput() GetAclRolePolicyOutput

func (GetAclRolePolicyOutput) ToGetAclRolePolicyOutputWithContext

func (o GetAclRolePolicyOutput) ToGetAclRolePolicyOutputWithContext(ctx context.Context) GetAclRolePolicyOutput

type GetAclRoleServiceIdentity

type GetAclRoleServiceIdentity struct {
	Datacenters []string `pulumi:"datacenters"`
	ServiceName *string  `pulumi:"serviceName"`
}

type GetAclRoleServiceIdentityArgs

type GetAclRoleServiceIdentityArgs struct {
	Datacenters pulumi.StringArrayInput `pulumi:"datacenters"`
	ServiceName pulumi.StringPtrInput   `pulumi:"serviceName"`
}

func (GetAclRoleServiceIdentityArgs) ElementType

func (GetAclRoleServiceIdentityArgs) ToGetAclRoleServiceIdentityOutput

func (i GetAclRoleServiceIdentityArgs) ToGetAclRoleServiceIdentityOutput() GetAclRoleServiceIdentityOutput

func (GetAclRoleServiceIdentityArgs) ToGetAclRoleServiceIdentityOutputWithContext

func (i GetAclRoleServiceIdentityArgs) ToGetAclRoleServiceIdentityOutputWithContext(ctx context.Context) GetAclRoleServiceIdentityOutput

type GetAclRoleServiceIdentityArray

type GetAclRoleServiceIdentityArray []GetAclRoleServiceIdentityInput

func (GetAclRoleServiceIdentityArray) ElementType

func (GetAclRoleServiceIdentityArray) ToGetAclRoleServiceIdentityArrayOutput

func (i GetAclRoleServiceIdentityArray) ToGetAclRoleServiceIdentityArrayOutput() GetAclRoleServiceIdentityArrayOutput

func (GetAclRoleServiceIdentityArray) ToGetAclRoleServiceIdentityArrayOutputWithContext

func (i GetAclRoleServiceIdentityArray) ToGetAclRoleServiceIdentityArrayOutputWithContext(ctx context.Context) GetAclRoleServiceIdentityArrayOutput

type GetAclRoleServiceIdentityArrayInput

type GetAclRoleServiceIdentityArrayInput interface {
	pulumi.Input

	ToGetAclRoleServiceIdentityArrayOutput() GetAclRoleServiceIdentityArrayOutput
	ToGetAclRoleServiceIdentityArrayOutputWithContext(context.Context) GetAclRoleServiceIdentityArrayOutput
}

GetAclRoleServiceIdentityArrayInput is an input type that accepts GetAclRoleServiceIdentityArray and GetAclRoleServiceIdentityArrayOutput values. You can construct a concrete instance of `GetAclRoleServiceIdentityArrayInput` via:

GetAclRoleServiceIdentityArray{ GetAclRoleServiceIdentityArgs{...} }

type GetAclRoleServiceIdentityArrayOutput

type GetAclRoleServiceIdentityArrayOutput struct{ *pulumi.OutputState }

func (GetAclRoleServiceIdentityArrayOutput) ElementType

func (GetAclRoleServiceIdentityArrayOutput) Index

func (GetAclRoleServiceIdentityArrayOutput) ToGetAclRoleServiceIdentityArrayOutput

func (o GetAclRoleServiceIdentityArrayOutput) ToGetAclRoleServiceIdentityArrayOutput() GetAclRoleServiceIdentityArrayOutput

func (GetAclRoleServiceIdentityArrayOutput) ToGetAclRoleServiceIdentityArrayOutputWithContext

func (o GetAclRoleServiceIdentityArrayOutput) ToGetAclRoleServiceIdentityArrayOutputWithContext(ctx context.Context) GetAclRoleServiceIdentityArrayOutput

type GetAclRoleServiceIdentityInput

type GetAclRoleServiceIdentityInput interface {
	pulumi.Input

	ToGetAclRoleServiceIdentityOutput() GetAclRoleServiceIdentityOutput
	ToGetAclRoleServiceIdentityOutputWithContext(context.Context) GetAclRoleServiceIdentityOutput
}

GetAclRoleServiceIdentityInput is an input type that accepts GetAclRoleServiceIdentityArgs and GetAclRoleServiceIdentityOutput values. You can construct a concrete instance of `GetAclRoleServiceIdentityInput` via:

GetAclRoleServiceIdentityArgs{...}

type GetAclRoleServiceIdentityOutput

type GetAclRoleServiceIdentityOutput struct{ *pulumi.OutputState }

func (GetAclRoleServiceIdentityOutput) Datacenters

func (GetAclRoleServiceIdentityOutput) ElementType

func (GetAclRoleServiceIdentityOutput) ServiceName

func (GetAclRoleServiceIdentityOutput) ToGetAclRoleServiceIdentityOutput

func (o GetAclRoleServiceIdentityOutput) ToGetAclRoleServiceIdentityOutput() GetAclRoleServiceIdentityOutput

func (GetAclRoleServiceIdentityOutput) ToGetAclRoleServiceIdentityOutputWithContext

func (o GetAclRoleServiceIdentityOutput) ToGetAclRoleServiceIdentityOutputWithContext(ctx context.Context) GetAclRoleServiceIdentityOutput

type GetAclTokenPolicy

type GetAclTokenPolicy struct {
	Id   string `pulumi:"id"`
	Name string `pulumi:"name"`
}

type GetAclTokenPolicyArgs

type GetAclTokenPolicyArgs struct {
	Id   pulumi.StringInput `pulumi:"id"`
	Name pulumi.StringInput `pulumi:"name"`
}

func (GetAclTokenPolicyArgs) ElementType

func (GetAclTokenPolicyArgs) ElementType() reflect.Type

func (GetAclTokenPolicyArgs) ToGetAclTokenPolicyOutput

func (i GetAclTokenPolicyArgs) ToGetAclTokenPolicyOutput() GetAclTokenPolicyOutput

func (GetAclTokenPolicyArgs) ToGetAclTokenPolicyOutputWithContext

func (i GetAclTokenPolicyArgs) ToGetAclTokenPolicyOutputWithContext(ctx context.Context) GetAclTokenPolicyOutput

type GetAclTokenPolicyArray

type GetAclTokenPolicyArray []GetAclTokenPolicyInput

func (GetAclTokenPolicyArray) ElementType

func (GetAclTokenPolicyArray) ElementType() reflect.Type

func (GetAclTokenPolicyArray) ToGetAclTokenPolicyArrayOutput

func (i GetAclTokenPolicyArray) ToGetAclTokenPolicyArrayOutput() GetAclTokenPolicyArrayOutput

func (GetAclTokenPolicyArray) ToGetAclTokenPolicyArrayOutputWithContext

func (i GetAclTokenPolicyArray) ToGetAclTokenPolicyArrayOutputWithContext(ctx context.Context) GetAclTokenPolicyArrayOutput

type GetAclTokenPolicyArrayInput

type GetAclTokenPolicyArrayInput interface {
	pulumi.Input

	ToGetAclTokenPolicyArrayOutput() GetAclTokenPolicyArrayOutput
	ToGetAclTokenPolicyArrayOutputWithContext(context.Context) GetAclTokenPolicyArrayOutput
}

GetAclTokenPolicyArrayInput is an input type that accepts GetAclTokenPolicyArray and GetAclTokenPolicyArrayOutput values. You can construct a concrete instance of `GetAclTokenPolicyArrayInput` via:

GetAclTokenPolicyArray{ GetAclTokenPolicyArgs{...} }

type GetAclTokenPolicyArrayOutput

type GetAclTokenPolicyArrayOutput struct{ *pulumi.OutputState }

func (GetAclTokenPolicyArrayOutput) ElementType

func (GetAclTokenPolicyArrayOutput) Index

func (GetAclTokenPolicyArrayOutput) ToGetAclTokenPolicyArrayOutput

func (o GetAclTokenPolicyArrayOutput) ToGetAclTokenPolicyArrayOutput() GetAclTokenPolicyArrayOutput

func (GetAclTokenPolicyArrayOutput) ToGetAclTokenPolicyArrayOutputWithContext

func (o GetAclTokenPolicyArrayOutput) ToGetAclTokenPolicyArrayOutputWithContext(ctx context.Context) GetAclTokenPolicyArrayOutput

type GetAclTokenPolicyInput

type GetAclTokenPolicyInput interface {
	pulumi.Input

	ToGetAclTokenPolicyOutput() GetAclTokenPolicyOutput
	ToGetAclTokenPolicyOutputWithContext(context.Context) GetAclTokenPolicyOutput
}

GetAclTokenPolicyInput is an input type that accepts GetAclTokenPolicyArgs and GetAclTokenPolicyOutput values. You can construct a concrete instance of `GetAclTokenPolicyInput` via:

GetAclTokenPolicyArgs{...}

type GetAclTokenPolicyOutput

type GetAclTokenPolicyOutput struct{ *pulumi.OutputState }

func (GetAclTokenPolicyOutput) ElementType

func (GetAclTokenPolicyOutput) ElementType() reflect.Type

func (GetAclTokenPolicyOutput) Id

func (GetAclTokenPolicyOutput) Name

func (GetAclTokenPolicyOutput) ToGetAclTokenPolicyOutput

func (o GetAclTokenPolicyOutput) ToGetAclTokenPolicyOutput() GetAclTokenPolicyOutput

func (GetAclTokenPolicyOutput) ToGetAclTokenPolicyOutputWithContext

func (o GetAclTokenPolicyOutput) ToGetAclTokenPolicyOutputWithContext(ctx context.Context) GetAclTokenPolicyOutput

type GetAclTokenSecretIdArgs

type GetAclTokenSecretIdArgs struct {
	// The accessor ID of the ACL token.
	AccessorId string  `pulumi:"accessorId"`
	PgpKey     *string `pulumi:"pgpKey"`
}

A collection of arguments for invoking getAclTokenSecretId.

type GetAclTokenSecretIdResult

type GetAclTokenSecretIdResult struct {
	AccessorId        string `pulumi:"accessorId"`
	EncryptedSecretId string `pulumi:"encryptedSecretId"`
	// The provider-assigned unique ID for this managed resource.
	Id     string  `pulumi:"id"`
	PgpKey *string `pulumi:"pgpKey"`
	// The secret ID of the ACL token if `pgpKey` has not been set.
	SecretId string `pulumi:"secretId"`
}

A collection of values returned by getAclTokenSecretId.

type GetAgentConfigResult

type GetAgentConfigResult struct {
	// The datacenter the agent is running in
	Datacenter string `pulumi:"datacenter"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The ID of the node the agent is running on
	NodeId string `pulumi:"nodeId"`
	// The name of the node the agent is running on
	NodeName string `pulumi:"nodeName"`
	// The first 9 characters of the VCS revision of the build of Consul that is running
	Revision string `pulumi:"revision"`
	// Boolean if the agent is a server or not
	Server bool `pulumi:"server"`
	// The version of the build of Consul that is running
	Version string `pulumi:"version"`
}

A collection of values returned by getAgentConfig.

func GetAgentConfig

func GetAgentConfig(ctx *pulumi.Context, opts ...pulumi.InvokeOption) (*GetAgentConfigResult, error)

> **Note:** The `getAgentConfig` resource differs from [`getAgentSelf`](https://www.terraform.io/docs/providers/consul/d/agent_self.html), providing less information but utilizing stable APIs. `getAgentSelf` will be deprecated in a future release.

The `getAgentConfig` data source returns [configuration data](https://www.consul.io/api/agent.html#read-configuration) from the agent specified in the `provider`.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-consul/sdk/v2/go/consul"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		remoteAgent, err := consul.GetAgentConfig(ctx, nil, nil)
		if err != nil {
			return err
		}
		ctx.Export("consulVersion", remoteAgent.Version)
		return nil
	})
}

```

type GetAgentSelfResult

type GetAgentSelfResult struct {
	AclDatacenter              string            `pulumi:"aclDatacenter"`
	AclDefaultPolicy           string            `pulumi:"aclDefaultPolicy"`
	AclDisabledTtl             string            `pulumi:"aclDisabledTtl"`
	AclDownPolicy              string            `pulumi:"aclDownPolicy"`
	AclEnforce08Semantics      bool              `pulumi:"aclEnforce08Semantics"`
	AclTtl                     string            `pulumi:"aclTtl"`
	Addresses                  map[string]string `pulumi:"addresses"`
	AdvertiseAddr              string            `pulumi:"advertiseAddr"`
	AdvertiseAddrWan           string            `pulumi:"advertiseAddrWan"`
	AdvertiseAddrs             map[string]string `pulumi:"advertiseAddrs"`
	AtlasJoin                  bool              `pulumi:"atlasJoin"`
	BindAddr                   string            `pulumi:"bindAddr"`
	BootstrapExpect            int               `pulumi:"bootstrapExpect"`
	BootstrapMode              bool              `pulumi:"bootstrapMode"`
	CheckDeregisterIntervalMin string            `pulumi:"checkDeregisterIntervalMin"`
	CheckReapInterval          string            `pulumi:"checkReapInterval"`
	CheckUpdateInterval        string            `pulumi:"checkUpdateInterval"`
	ClientAddr                 string            `pulumi:"clientAddr"`
	DataDir                    string            `pulumi:"dataDir"`
	Datacenter                 string            `pulumi:"datacenter"`
	DevMode                    bool              `pulumi:"devMode"`
	// A map of DNS configuration attributes.  See below for details on the
	// contents of the `dns` attribute.
	// * [`dnsRecursors`](https://www.consul.io/docs/agent/options.html#recursors) - A
	//   list of all DNS recursors.
	// * [`dataDir`](https://www.consul.io/docs/agent/options.html#_data_dir)
	// * [`datacenter`](https://www.consul.io/docs/agent/options.html#_datacenter)
	// * [`devMode`](https://www.consul.io/docs/agent/options.html#_dev)
	// * [`domain`](https://www.consul.io/docs/agent/options.html#_domain)
	// * [`enableAnonymousSignature`](https://www.consul.io/docs/agent/options.html#disable_anonymous_signature)
	// * `enableCoordinates`
	// * [`enableDebug`](https://www.consul.io/docs/agent/options.html#enable_debug)
	// * [`enableRemoteExec`](https://www.consul.io/docs/agent/options.html#disable_remote_exec)
	// * [`enableSyslog`](https://www.consul.io/docs/agent/options.html#_syslog)
	// * [`enableUi`](https://www.consul.io/docs/agent/options.html#_ui)
	// * [`enableUpdateCheck`](https://www.consul.io/docs/agent/options.html#disable_update_check)
	// * [`id`](https://www.consul.io/docs/agent/options.html#_node_id)
	// * [`leaveOnInt`](https://www.consul.io/docs/agent/options.html#skip_leave_on_interrupt)
	// * [`leaveOnTerm`](https://www.consul.io/docs/agent/options.html#leave_on_terminate)
	// * [`logLevel`](https://www.consul.io/docs/agent/options.html#_log_level)
	// * [`name`](https://www.consul.io/docs/agent/options.html#_node)
	// * [`performance`](https://www.consul.io/docs/agent/options.html#performance)
	// * [`pidFile`](https://www.consul.io/docs/agent/options.html#_pid_file)
	// * [`ports`](https://www.consul.io/docs/agent/options.html#ports)
	// * [`protocolVersion`](https://www.consul.io/docs/agent/options.html#_protocol)
	// * [`reconnectTimeoutLan`](https://www.consul.io/docs/agent/options.html#reconnect_timeout)
	// * [`reconnectTimeoutWan`](https://www.consul.io/docs/agent/options.html#reconnect_timeout_wan)
	// * [`rejoinAfterLeave`](https://www.consul.io/docs/agent/options.html#_rejoin)
	// * [`retryJoin`](https://www.consul.io/docs/agent/options.html#retry_join)
	// * [`retryJoinEc2`](https://www.consul.io/docs/agent/options.html#retry_join_ec2) -
	//   A map of EC2 retry attributes.  See below for details on the available
	//   information.
	// * [`retryJoinGce`](https://www.consul.io/docs/agent/options.html#retry_join_gce) -
	//   A map of GCE retry attributes.  See below for details on the available
	//   information.
	// * [`retryJoinWan`](https://www.consul.io/docs/agent/options.html#_retry_join_wan)
	// * [`retryMaxAttempts`](https://www.consul.io/docs/agent/options.html#_retry_max)
	// * [`retryMaxAttemptsWan`](https://www.consul.io/docs/agent/options.html#_retry_max_wan)
	// * [`serfLanBindAddr`](https://www.consul.io/docs/agent/options.html#_serf_lan_bind)
	// * [`serfWanBindAddr`](https://www.consul.io/docs/agent/options.html#_serf_wan_bind)
	// * [`serverMode`](https://www.consul.io/docs/agent/options.html#_server)
	// * [`serverName`](https://www.consul.io/docs/agent/options.html#server_name)
	// * [`sessionTtlMin`](https://www.consul.io/docs/agent/options.html#session_ttl_min)
	// * [`startJoin`](https://www.consul.io/docs/agent/options.html#start_join)
	// * [`startJoinWan`](https://www.consul.io/docs/agent/options.html#start_join_wan)
	// * [`syslogFacility`](https://www.consul.io/docs/agent/options.html#syslog_facility)
	// * [`tlsCaFile`](https://www.consul.io/docs/agent/options.html#ca_file)
	// * [`tlsCertFile`](https://www.consul.io/docs/agent/options.html#cert_file)
	// * [`tlsKeyFile`](https://www.consul.io/docs/agent/options.html#key_file)
	// * [`tlsMinVersion`](https://www.consul.io/docs/agent/options.html#tls_min_version)
	// * [`tlsVerifyIncoming`](https://www.consul.io/docs/agent/options.html#verify_incoming)
	// * [`tlsVerifyOutgoing`](https://www.consul.io/docs/agent/options.html#verify_outgoing)
	// * [`tlsVerifyServerHostname`](https://www.consul.io/docs/agent/options.html#verify_server_hostname)
	// * [`taggedAddresses`](https://www.consul.io/docs/agent/options.html#translate_wan_addrs)
	// * [`telemetry`](https://www.consul.io/docs/agent/options.html#telemetry) - A map
	//   of telemetry configuration.
	// * [`translateWanAddrs`](https://www.consul.io/docs/agent/options.html#translate_wan_addrs)
	// * [`uiDir`](https://www.consul.io/docs/agent/options.html#ui_dir)
	// * [`unixSockets`](https://www.consul.io/docs/agent/options.html#unix_sockets)
	Dns                      map[string]string `pulumi:"dns"`
	DnsRecursors             []string          `pulumi:"dnsRecursors"`
	Domain                   string            `pulumi:"domain"`
	EnableAnonymousSignature bool              `pulumi:"enableAnonymousSignature"`
	EnableCoordinates        bool              `pulumi:"enableCoordinates"`
	EnableDebug              bool              `pulumi:"enableDebug"`
	EnableRemoteExec         bool              `pulumi:"enableRemoteExec"`
	EnableSyslog             bool              `pulumi:"enableSyslog"`
	EnableUi                 bool              `pulumi:"enableUi"`
	EnableUpdateCheck        bool              `pulumi:"enableUpdateCheck"`
	Id                       string            `pulumi:"id"`
	LeaveOnInt               bool              `pulumi:"leaveOnInt"`
	LeaveOnTerm              bool              `pulumi:"leaveOnTerm"`
	LogLevel                 string            `pulumi:"logLevel"`
	Name                     string            `pulumi:"name"`
	Performance              map[string]string `pulumi:"performance"`
	PidFile                  string            `pulumi:"pidFile"`
	Ports                    map[string]int    `pulumi:"ports"`
	ProtocolVersion          int               `pulumi:"protocolVersion"`
	ReconnectTimeoutLan      string            `pulumi:"reconnectTimeoutLan"`
	ReconnectTimeoutWan      string            `pulumi:"reconnectTimeoutWan"`
	RejoinAfterLeave         bool              `pulumi:"rejoinAfterLeave"`
	RetryJoinEc2             map[string]string `pulumi:"retryJoinEc2"`
	RetryJoinGce             map[string]string `pulumi:"retryJoinGce"`
	RetryJoinWans            []string          `pulumi:"retryJoinWans"`
	RetryJoins               []string          `pulumi:"retryJoins"`
	RetryMaxAttempts         int               `pulumi:"retryMaxAttempts"`
	RetryMaxAttemptsWan      int               `pulumi:"retryMaxAttemptsWan"`
	SerfLanBindAddr          string            `pulumi:"serfLanBindAddr"`
	SerfWanBindAddr          string            `pulumi:"serfWanBindAddr"`
	ServerMode               bool              `pulumi:"serverMode"`
	ServerName               string            `pulumi:"serverName"`
	SessionTtlMin            string            `pulumi:"sessionTtlMin"`
	StartJoinWans            []string          `pulumi:"startJoinWans"`
	StartJoins               []string          `pulumi:"startJoins"`
	SyslogFacility           string            `pulumi:"syslogFacility"`
	TaggedAddresses          map[string]string `pulumi:"taggedAddresses"`
	Telemetry                map[string]string `pulumi:"telemetry"`
	TlsCaFile                string            `pulumi:"tlsCaFile"`
	TlsCertFile              string            `pulumi:"tlsCertFile"`
	TlsKeyFile               string            `pulumi:"tlsKeyFile"`
	TlsMinVersion            string            `pulumi:"tlsMinVersion"`
	TlsVerifyIncoming        bool              `pulumi:"tlsVerifyIncoming"`
	TlsVerifyOutgoing        bool              `pulumi:"tlsVerifyOutgoing"`
	TlsVerifyServerHostname  bool              `pulumi:"tlsVerifyServerHostname"`
	TranslateWanAddrs        bool              `pulumi:"translateWanAddrs"`
	UiDir                    string            `pulumi:"uiDir"`
	UnixSockets              map[string]string `pulumi:"unixSockets"`
	// The version of the Consul agent.
	// * `versionPrerelease`
	// * `versionRevision`
	Version           string `pulumi:"version"`
	VersionPrerelease string `pulumi:"versionPrerelease"`
	VersionRevision   string `pulumi:"versionRevision"`
}

A collection of values returned by getAgentSelf.

func GetAgentSelf

func GetAgentSelf(ctx *pulumi.Context, opts ...pulumi.InvokeOption) (*GetAgentSelfResult, error)

> **Warning:** The `getAgentSelf` resource has been deprecated and will be removed from a future release of the provider. Read the [upgrade instructions](https://www.terraform.io/docs/providers/consul/guides/upgrading.html#deprecation-of-consul_agent_self) for more information.

The `getAgentSelf` data source returns [configuration and status data](https://www.consul.io/docs/agent/http/agent.html#agent_self) from the agent specified in the `provider`.

type GetAutopilotHealthArgs

type GetAutopilotHealthArgs struct {
	// The datacenter to use. This overrides the agent's
	// default datacenter and the datacenter in the provider setup.
	Datacenter *string `pulumi:"datacenter"`
}

A collection of arguments for invoking getAutopilotHealth.

type GetAutopilotHealthResult

type GetAutopilotHealthResult struct {
	Datacenter *string `pulumi:"datacenter"`
	// The number of redundant healthy servers that could fail
	// without causing an outage
	FailureTolerance int `pulumi:"failureTolerance"`
	// Whether the server is healthy according to the current Autopilot
	// configuration
	Healthy bool `pulumi:"healthy"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of server health information. See below for details on the
	// available information.
	Servers []GetAutopilotHealthServer `pulumi:"servers"`
}

A collection of values returned by getAutopilotHealth.

func GetAutopilotHealth

func GetAutopilotHealth(ctx *pulumi.Context, args *GetAutopilotHealthArgs, opts ...pulumi.InvokeOption) (*GetAutopilotHealthResult, error)

The `getAutopilotHealth` data source returns [autopilot health information](https://www.consul.io/api/operator/autopilot.html#read-health) about the current Consul cluster.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-consul/sdk/v2/go/consul"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		read, err := consul.GetAutopilotHealth(ctx, nil, nil)
		if err != nil {
			return err
		}
		ctx.Export("health", read.Healthy)
		return nil
	})
}

```

type GetAutopilotHealthServer

type GetAutopilotHealthServer struct {
	// The address of the server
	Address string `pulumi:"address"`
	// Whether the server is healthy according to the current Autopilot
	// configuration
	Healthy bool `pulumi:"healthy"`
	// The Raft ID of the server
	Id string `pulumi:"id"`
	// The time elapsed since the server's last contact with
	// the leader
	LastContact string `pulumi:"lastContact"`
	// The index of the server's last committed Raft log entry
	LastIndex int `pulumi:"lastIndex"`
	// The server's last known Raft leader term
	LastTerm int `pulumi:"lastTerm"`
	// Whether the server is currently leader
	Leader bool `pulumi:"leader"`
	// The node name of the server
	Name string `pulumi:"name"`
	// The status of the SerfHealth check of the server
	SerfStatus string `pulumi:"serfStatus"`
	// The time this server has been in its current “Healthy“
	// state
	StableSince string `pulumi:"stableSince"`
	// The Consul version of the server
	Version string `pulumi:"version"`
	// Whether the server is a voting member of the Raft cluster
	Voter bool `pulumi:"voter"`
}

type GetAutopilotHealthServerArgs

type GetAutopilotHealthServerArgs struct {
	// The address of the server
	Address pulumi.StringInput `pulumi:"address"`
	// Whether the server is healthy according to the current Autopilot
	// configuration
	Healthy pulumi.BoolInput `pulumi:"healthy"`
	// The Raft ID of the server
	Id pulumi.StringInput `pulumi:"id"`
	// The time elapsed since the server's last contact with
	// the leader
	LastContact pulumi.StringInput `pulumi:"lastContact"`
	// The index of the server's last committed Raft log entry
	LastIndex pulumi.IntInput `pulumi:"lastIndex"`
	// The server's last known Raft leader term
	LastTerm pulumi.IntInput `pulumi:"lastTerm"`
	// Whether the server is currently leader
	Leader pulumi.BoolInput `pulumi:"leader"`
	// The node name of the server
	Name pulumi.StringInput `pulumi:"name"`
	// The status of the SerfHealth check of the server
	SerfStatus pulumi.StringInput `pulumi:"serfStatus"`
	// The time this server has been in its current “Healthy“
	// state
	StableSince pulumi.StringInput `pulumi:"stableSince"`
	// The Consul version of the server
	Version pulumi.StringInput `pulumi:"version"`
	// Whether the server is a voting member of the Raft cluster
	Voter pulumi.BoolInput `pulumi:"voter"`
}

func (GetAutopilotHealthServerArgs) ElementType

func (GetAutopilotHealthServerArgs) ToGetAutopilotHealthServerOutput

func (i GetAutopilotHealthServerArgs) ToGetAutopilotHealthServerOutput() GetAutopilotHealthServerOutput

func (GetAutopilotHealthServerArgs) ToGetAutopilotHealthServerOutputWithContext

func (i GetAutopilotHealthServerArgs) ToGetAutopilotHealthServerOutputWithContext(ctx context.Context) GetAutopilotHealthServerOutput

type GetAutopilotHealthServerArray

type GetAutopilotHealthServerArray []GetAutopilotHealthServerInput

func (GetAutopilotHealthServerArray) ElementType

func (GetAutopilotHealthServerArray) ToGetAutopilotHealthServerArrayOutput

func (i GetAutopilotHealthServerArray) ToGetAutopilotHealthServerArrayOutput() GetAutopilotHealthServerArrayOutput

func (GetAutopilotHealthServerArray) ToGetAutopilotHealthServerArrayOutputWithContext

func (i GetAutopilotHealthServerArray) ToGetAutopilotHealthServerArrayOutputWithContext(ctx context.Context) GetAutopilotHealthServerArrayOutput

type GetAutopilotHealthServerArrayInput

type GetAutopilotHealthServerArrayInput interface {
	pulumi.Input

	ToGetAutopilotHealthServerArrayOutput() GetAutopilotHealthServerArrayOutput
	ToGetAutopilotHealthServerArrayOutputWithContext(context.Context) GetAutopilotHealthServerArrayOutput
}

GetAutopilotHealthServerArrayInput is an input type that accepts GetAutopilotHealthServerArray and GetAutopilotHealthServerArrayOutput values. You can construct a concrete instance of `GetAutopilotHealthServerArrayInput` via:

GetAutopilotHealthServerArray{ GetAutopilotHealthServerArgs{...} }

type GetAutopilotHealthServerArrayOutput

type GetAutopilotHealthServerArrayOutput struct{ *pulumi.OutputState }

func (GetAutopilotHealthServerArrayOutput) ElementType

func (GetAutopilotHealthServerArrayOutput) Index

func (GetAutopilotHealthServerArrayOutput) ToGetAutopilotHealthServerArrayOutput

func (o GetAutopilotHealthServerArrayOutput) ToGetAutopilotHealthServerArrayOutput() GetAutopilotHealthServerArrayOutput

func (GetAutopilotHealthServerArrayOutput) ToGetAutopilotHealthServerArrayOutputWithContext

func (o GetAutopilotHealthServerArrayOutput) ToGetAutopilotHealthServerArrayOutputWithContext(ctx context.Context) GetAutopilotHealthServerArrayOutput

type GetAutopilotHealthServerInput

type GetAutopilotHealthServerInput interface {
	pulumi.Input

	ToGetAutopilotHealthServerOutput() GetAutopilotHealthServerOutput
	ToGetAutopilotHealthServerOutputWithContext(context.Context) GetAutopilotHealthServerOutput
}

GetAutopilotHealthServerInput is an input type that accepts GetAutopilotHealthServerArgs and GetAutopilotHealthServerOutput values. You can construct a concrete instance of `GetAutopilotHealthServerInput` via:

GetAutopilotHealthServerArgs{...}

type GetAutopilotHealthServerOutput

type GetAutopilotHealthServerOutput struct{ *pulumi.OutputState }

func (GetAutopilotHealthServerOutput) Address

The address of the server

func (GetAutopilotHealthServerOutput) ElementType

func (GetAutopilotHealthServerOutput) Healthy

Whether the server is healthy according to the current Autopilot configuration

func (GetAutopilotHealthServerOutput) Id

The Raft ID of the server

func (GetAutopilotHealthServerOutput) LastContact

The time elapsed since the server's last contact with the leader

func (GetAutopilotHealthServerOutput) LastIndex

The index of the server's last committed Raft log entry

func (GetAutopilotHealthServerOutput) LastTerm

The server's last known Raft leader term

func (GetAutopilotHealthServerOutput) Leader

Whether the server is currently leader

func (GetAutopilotHealthServerOutput) Name

The node name of the server

func (GetAutopilotHealthServerOutput) SerfStatus

The status of the SerfHealth check of the server

func (GetAutopilotHealthServerOutput) StableSince

The time this server has been in its current “Healthy“ state

func (GetAutopilotHealthServerOutput) ToGetAutopilotHealthServerOutput

func (o GetAutopilotHealthServerOutput) ToGetAutopilotHealthServerOutput() GetAutopilotHealthServerOutput

func (GetAutopilotHealthServerOutput) ToGetAutopilotHealthServerOutputWithContext

func (o GetAutopilotHealthServerOutput) ToGetAutopilotHealthServerOutputWithContext(ctx context.Context) GetAutopilotHealthServerOutput

func (GetAutopilotHealthServerOutput) Version

The Consul version of the server

func (GetAutopilotHealthServerOutput) Voter

Whether the server is a voting member of the Raft cluster

type GetCatalogNodesArgs

type GetCatalogNodesArgs struct {
	QueryOptions []GetCatalogNodesQueryOption `pulumi:"queryOptions"`
}

A collection of arguments for invoking getCatalogNodes.

type GetCatalogNodesNode

type GetCatalogNodesNode struct {
	Address         string            `pulumi:"address"`
	Id              string            `pulumi:"id"`
	Meta            map[string]string `pulumi:"meta"`
	Name            string            `pulumi:"name"`
	TaggedAddresses map[string]string `pulumi:"taggedAddresses"`
}

type GetCatalogNodesNodeArgs

type GetCatalogNodesNodeArgs struct {
	Address         pulumi.StringInput    `pulumi:"address"`
	Id              pulumi.StringInput    `pulumi:"id"`
	Meta            pulumi.StringMapInput `pulumi:"meta"`
	Name            pulumi.StringInput    `pulumi:"name"`
	TaggedAddresses pulumi.StringMapInput `pulumi:"taggedAddresses"`
}

func (GetCatalogNodesNodeArgs) ElementType

func (GetCatalogNodesNodeArgs) ElementType() reflect.Type

func (GetCatalogNodesNodeArgs) ToGetCatalogNodesNodeOutput

func (i GetCatalogNodesNodeArgs) ToGetCatalogNodesNodeOutput() GetCatalogNodesNodeOutput

func (GetCatalogNodesNodeArgs) ToGetCatalogNodesNodeOutputWithContext

func (i GetCatalogNodesNodeArgs) ToGetCatalogNodesNodeOutputWithContext(ctx context.Context) GetCatalogNodesNodeOutput

type GetCatalogNodesNodeArray

type GetCatalogNodesNodeArray []GetCatalogNodesNodeInput

func (GetCatalogNodesNodeArray) ElementType

func (GetCatalogNodesNodeArray) ElementType() reflect.Type

func (GetCatalogNodesNodeArray) ToGetCatalogNodesNodeArrayOutput

func (i GetCatalogNodesNodeArray) ToGetCatalogNodesNodeArrayOutput() GetCatalogNodesNodeArrayOutput

func (GetCatalogNodesNodeArray) ToGetCatalogNodesNodeArrayOutputWithContext

func (i GetCatalogNodesNodeArray) ToGetCatalogNodesNodeArrayOutputWithContext(ctx context.Context) GetCatalogNodesNodeArrayOutput

type GetCatalogNodesNodeArrayInput

type GetCatalogNodesNodeArrayInput interface {
	pulumi.Input

	ToGetCatalogNodesNodeArrayOutput() GetCatalogNodesNodeArrayOutput
	ToGetCatalogNodesNodeArrayOutputWithContext(context.Context) GetCatalogNodesNodeArrayOutput
}

GetCatalogNodesNodeArrayInput is an input type that accepts GetCatalogNodesNodeArray and GetCatalogNodesNodeArrayOutput values. You can construct a concrete instance of `GetCatalogNodesNodeArrayInput` via:

GetCatalogNodesNodeArray{ GetCatalogNodesNodeArgs{...} }

type GetCatalogNodesNodeArrayOutput

type GetCatalogNodesNodeArrayOutput struct{ *pulumi.OutputState }

func (GetCatalogNodesNodeArrayOutput) ElementType

func (GetCatalogNodesNodeArrayOutput) Index

func (GetCatalogNodesNodeArrayOutput) ToGetCatalogNodesNodeArrayOutput

func (o GetCatalogNodesNodeArrayOutput) ToGetCatalogNodesNodeArrayOutput() GetCatalogNodesNodeArrayOutput

func (GetCatalogNodesNodeArrayOutput) ToGetCatalogNodesNodeArrayOutputWithContext

func (o GetCatalogNodesNodeArrayOutput) ToGetCatalogNodesNodeArrayOutputWithContext(ctx context.Context) GetCatalogNodesNodeArrayOutput

type GetCatalogNodesNodeInput

type GetCatalogNodesNodeInput interface {
	pulumi.Input

	ToGetCatalogNodesNodeOutput() GetCatalogNodesNodeOutput
	ToGetCatalogNodesNodeOutputWithContext(context.Context) GetCatalogNodesNodeOutput
}

GetCatalogNodesNodeInput is an input type that accepts GetCatalogNodesNodeArgs and GetCatalogNodesNodeOutput values. You can construct a concrete instance of `GetCatalogNodesNodeInput` via:

GetCatalogNodesNodeArgs{...}

type GetCatalogNodesNodeOutput

type GetCatalogNodesNodeOutput struct{ *pulumi.OutputState }

func (GetCatalogNodesNodeOutput) Address

func (GetCatalogNodesNodeOutput) ElementType

func (GetCatalogNodesNodeOutput) ElementType() reflect.Type

func (GetCatalogNodesNodeOutput) Id

func (GetCatalogNodesNodeOutput) Meta

func (GetCatalogNodesNodeOutput) Name

func (GetCatalogNodesNodeOutput) TaggedAddresses

func (o GetCatalogNodesNodeOutput) TaggedAddresses() pulumi.StringMapOutput

func (GetCatalogNodesNodeOutput) ToGetCatalogNodesNodeOutput

func (o GetCatalogNodesNodeOutput) ToGetCatalogNodesNodeOutput() GetCatalogNodesNodeOutput

func (GetCatalogNodesNodeOutput) ToGetCatalogNodesNodeOutputWithContext

func (o GetCatalogNodesNodeOutput) ToGetCatalogNodesNodeOutputWithContext(ctx context.Context) GetCatalogNodesNodeOutput

type GetCatalogNodesQueryOption

type GetCatalogNodesQueryOption struct {
	AllowStale        *bool             `pulumi:"allowStale"`
	Datacenter        *string           `pulumi:"datacenter"`
	Near              *string           `pulumi:"near"`
	NodeMeta          map[string]string `pulumi:"nodeMeta"`
	RequireConsistent *bool             `pulumi:"requireConsistent"`
	Token             *string           `pulumi:"token"`
	WaitIndex         *int              `pulumi:"waitIndex"`
	WaitTime          *string           `pulumi:"waitTime"`
}

type GetCatalogNodesQueryOptionArgs

type GetCatalogNodesQueryOptionArgs struct {
	AllowStale        pulumi.BoolPtrInput   `pulumi:"allowStale"`
	Datacenter        pulumi.StringPtrInput `pulumi:"datacenter"`
	Near              pulumi.StringPtrInput `pulumi:"near"`
	NodeMeta          pulumi.StringMapInput `pulumi:"nodeMeta"`
	RequireConsistent pulumi.BoolPtrInput   `pulumi:"requireConsistent"`
	Token             pulumi.StringPtrInput `pulumi:"token"`
	WaitIndex         pulumi.IntPtrInput    `pulumi:"waitIndex"`
	WaitTime          pulumi.StringPtrInput `pulumi:"waitTime"`
}

func (GetCatalogNodesQueryOptionArgs) ElementType

func (GetCatalogNodesQueryOptionArgs) ToGetCatalogNodesQueryOptionOutput

func (i GetCatalogNodesQueryOptionArgs) ToGetCatalogNodesQueryOptionOutput() GetCatalogNodesQueryOptionOutput

func (GetCatalogNodesQueryOptionArgs) ToGetCatalogNodesQueryOptionOutputWithContext

func (i GetCatalogNodesQueryOptionArgs) ToGetCatalogNodesQueryOptionOutputWithContext(ctx context.Context) GetCatalogNodesQueryOptionOutput

type GetCatalogNodesQueryOptionArray

type GetCatalogNodesQueryOptionArray []GetCatalogNodesQueryOptionInput

func (GetCatalogNodesQueryOptionArray) ElementType

func (GetCatalogNodesQueryOptionArray) ToGetCatalogNodesQueryOptionArrayOutput

func (i GetCatalogNodesQueryOptionArray) ToGetCatalogNodesQueryOptionArrayOutput() GetCatalogNodesQueryOptionArrayOutput

func (GetCatalogNodesQueryOptionArray) ToGetCatalogNodesQueryOptionArrayOutputWithContext

func (i GetCatalogNodesQueryOptionArray) ToGetCatalogNodesQueryOptionArrayOutputWithContext(ctx context.Context) GetCatalogNodesQueryOptionArrayOutput

type GetCatalogNodesQueryOptionArrayInput

type GetCatalogNodesQueryOptionArrayInput interface {
	pulumi.Input

	ToGetCatalogNodesQueryOptionArrayOutput() GetCatalogNodesQueryOptionArrayOutput
	ToGetCatalogNodesQueryOptionArrayOutputWithContext(context.Context) GetCatalogNodesQueryOptionArrayOutput
}

GetCatalogNodesQueryOptionArrayInput is an input type that accepts GetCatalogNodesQueryOptionArray and GetCatalogNodesQueryOptionArrayOutput values. You can construct a concrete instance of `GetCatalogNodesQueryOptionArrayInput` via:

GetCatalogNodesQueryOptionArray{ GetCatalogNodesQueryOptionArgs{...} }

type GetCatalogNodesQueryOptionArrayOutput

type GetCatalogNodesQueryOptionArrayOutput struct{ *pulumi.OutputState }

func (GetCatalogNodesQueryOptionArrayOutput) ElementType

func (GetCatalogNodesQueryOptionArrayOutput) Index

func (GetCatalogNodesQueryOptionArrayOutput) ToGetCatalogNodesQueryOptionArrayOutput

func (o GetCatalogNodesQueryOptionArrayOutput) ToGetCatalogNodesQueryOptionArrayOutput() GetCatalogNodesQueryOptionArrayOutput

func (GetCatalogNodesQueryOptionArrayOutput) ToGetCatalogNodesQueryOptionArrayOutputWithContext

func (o GetCatalogNodesQueryOptionArrayOutput) ToGetCatalogNodesQueryOptionArrayOutputWithContext(ctx context.Context) GetCatalogNodesQueryOptionArrayOutput

type GetCatalogNodesQueryOptionInput

type GetCatalogNodesQueryOptionInput interface {
	pulumi.Input

	ToGetCatalogNodesQueryOptionOutput() GetCatalogNodesQueryOptionOutput
	ToGetCatalogNodesQueryOptionOutputWithContext(context.Context) GetCatalogNodesQueryOptionOutput
}

GetCatalogNodesQueryOptionInput is an input type that accepts GetCatalogNodesQueryOptionArgs and GetCatalogNodesQueryOptionOutput values. You can construct a concrete instance of `GetCatalogNodesQueryOptionInput` via:

GetCatalogNodesQueryOptionArgs{...}

type GetCatalogNodesQueryOptionOutput

type GetCatalogNodesQueryOptionOutput struct{ *pulumi.OutputState }

func (GetCatalogNodesQueryOptionOutput) AllowStale

func (GetCatalogNodesQueryOptionOutput) Datacenter

func (GetCatalogNodesQueryOptionOutput) ElementType

func (GetCatalogNodesQueryOptionOutput) Near

func (GetCatalogNodesQueryOptionOutput) NodeMeta

func (GetCatalogNodesQueryOptionOutput) RequireConsistent

func (GetCatalogNodesQueryOptionOutput) ToGetCatalogNodesQueryOptionOutput

func (o GetCatalogNodesQueryOptionOutput) ToGetCatalogNodesQueryOptionOutput() GetCatalogNodesQueryOptionOutput

func (GetCatalogNodesQueryOptionOutput) ToGetCatalogNodesQueryOptionOutputWithContext

func (o GetCatalogNodesQueryOptionOutput) ToGetCatalogNodesQueryOptionOutputWithContext(ctx context.Context) GetCatalogNodesQueryOptionOutput

func (GetCatalogNodesQueryOptionOutput) Token

func (GetCatalogNodesQueryOptionOutput) WaitIndex

func (GetCatalogNodesQueryOptionOutput) WaitTime

type GetCatalogNodesResult

type GetCatalogNodesResult struct {
	Datacenter string `pulumi:"datacenter"`
	// The provider-assigned unique ID for this managed resource.
	Id           string                       `pulumi:"id"`
	NodeIds      []string                     `pulumi:"nodeIds"`
	NodeNames    []string                     `pulumi:"nodeNames"`
	Nodes        []GetCatalogNodesNode        `pulumi:"nodes"`
	QueryOptions []GetCatalogNodesQueryOption `pulumi:"queryOptions"`
}

A collection of values returned by getCatalogNodes.

func GetCatalogNodes

func GetCatalogNodes(ctx *pulumi.Context, args *GetCatalogNodesArgs, opts ...pulumi.InvokeOption) (*GetCatalogNodesResult, error)

type GetCatalogServiceArgs

type GetCatalogServiceArgs struct {
	Datacenter   *string                        `pulumi:"datacenter"`
	Filter       *string                        `pulumi:"filter"`
	Name         string                         `pulumi:"name"`
	QueryOptions []GetCatalogServiceQueryOption `pulumi:"queryOptions"`
	Tag          *string                        `pulumi:"tag"`
}

A collection of arguments for invoking getCatalogService.

type GetCatalogServiceQueryOption

type GetCatalogServiceQueryOption struct {
	AllowStale        *bool             `pulumi:"allowStale"`
	Datacenter        *string           `pulumi:"datacenter"`
	Namespace         *string           `pulumi:"namespace"`
	Near              *string           `pulumi:"near"`
	NodeMeta          map[string]string `pulumi:"nodeMeta"`
	RequireConsistent *bool             `pulumi:"requireConsistent"`
	Token             *string           `pulumi:"token"`
	WaitIndex         *int              `pulumi:"waitIndex"`
	WaitTime          *string           `pulumi:"waitTime"`
}

type GetCatalogServiceQueryOptionArgs

type GetCatalogServiceQueryOptionArgs struct {
	AllowStale        pulumi.BoolPtrInput   `pulumi:"allowStale"`
	Datacenter        pulumi.StringPtrInput `pulumi:"datacenter"`
	Namespace         pulumi.StringPtrInput `pulumi:"namespace"`
	Near              pulumi.StringPtrInput `pulumi:"near"`
	NodeMeta          pulumi.StringMapInput `pulumi:"nodeMeta"`
	RequireConsistent pulumi.BoolPtrInput   `pulumi:"requireConsistent"`
	Token             pulumi.StringPtrInput `pulumi:"token"`
	WaitIndex         pulumi.IntPtrInput    `pulumi:"waitIndex"`
	WaitTime          pulumi.StringPtrInput `pulumi:"waitTime"`
}

func (GetCatalogServiceQueryOptionArgs) ElementType

func (GetCatalogServiceQueryOptionArgs) ToGetCatalogServiceQueryOptionOutput

func (i GetCatalogServiceQueryOptionArgs) ToGetCatalogServiceQueryOptionOutput() GetCatalogServiceQueryOptionOutput

func (GetCatalogServiceQueryOptionArgs) ToGetCatalogServiceQueryOptionOutputWithContext

func (i GetCatalogServiceQueryOptionArgs) ToGetCatalogServiceQueryOptionOutputWithContext(ctx context.Context) GetCatalogServiceQueryOptionOutput

type GetCatalogServiceQueryOptionArray

type GetCatalogServiceQueryOptionArray []GetCatalogServiceQueryOptionInput

func (GetCatalogServiceQueryOptionArray) ElementType

func (GetCatalogServiceQueryOptionArray) ToGetCatalogServiceQueryOptionArrayOutput

func (i GetCatalogServiceQueryOptionArray) ToGetCatalogServiceQueryOptionArrayOutput() GetCatalogServiceQueryOptionArrayOutput

func (GetCatalogServiceQueryOptionArray) ToGetCatalogServiceQueryOptionArrayOutputWithContext

func (i GetCatalogServiceQueryOptionArray) ToGetCatalogServiceQueryOptionArrayOutputWithContext(ctx context.Context) GetCatalogServiceQueryOptionArrayOutput

type GetCatalogServiceQueryOptionArrayInput

type GetCatalogServiceQueryOptionArrayInput interface {
	pulumi.Input

	ToGetCatalogServiceQueryOptionArrayOutput() GetCatalogServiceQueryOptionArrayOutput
	ToGetCatalogServiceQueryOptionArrayOutputWithContext(context.Context) GetCatalogServiceQueryOptionArrayOutput
}

GetCatalogServiceQueryOptionArrayInput is an input type that accepts GetCatalogServiceQueryOptionArray and GetCatalogServiceQueryOptionArrayOutput values. You can construct a concrete instance of `GetCatalogServiceQueryOptionArrayInput` via:

GetCatalogServiceQueryOptionArray{ GetCatalogServiceQueryOptionArgs{...} }

type GetCatalogServiceQueryOptionArrayOutput

type GetCatalogServiceQueryOptionArrayOutput struct{ *pulumi.OutputState }

func (GetCatalogServiceQueryOptionArrayOutput) ElementType

func (GetCatalogServiceQueryOptionArrayOutput) Index

func (GetCatalogServiceQueryOptionArrayOutput) ToGetCatalogServiceQueryOptionArrayOutput

func (o GetCatalogServiceQueryOptionArrayOutput) ToGetCatalogServiceQueryOptionArrayOutput() GetCatalogServiceQueryOptionArrayOutput

func (GetCatalogServiceQueryOptionArrayOutput) ToGetCatalogServiceQueryOptionArrayOutputWithContext

func (o GetCatalogServiceQueryOptionArrayOutput) ToGetCatalogServiceQueryOptionArrayOutputWithContext(ctx context.Context) GetCatalogServiceQueryOptionArrayOutput

type GetCatalogServiceQueryOptionInput

type GetCatalogServiceQueryOptionInput interface {
	pulumi.Input

	ToGetCatalogServiceQueryOptionOutput() GetCatalogServiceQueryOptionOutput
	ToGetCatalogServiceQueryOptionOutputWithContext(context.Context) GetCatalogServiceQueryOptionOutput
}

GetCatalogServiceQueryOptionInput is an input type that accepts GetCatalogServiceQueryOptionArgs and GetCatalogServiceQueryOptionOutput values. You can construct a concrete instance of `GetCatalogServiceQueryOptionInput` via:

GetCatalogServiceQueryOptionArgs{...}

type GetCatalogServiceQueryOptionOutput

type GetCatalogServiceQueryOptionOutput struct{ *pulumi.OutputState }

func (GetCatalogServiceQueryOptionOutput) AllowStale

func (GetCatalogServiceQueryOptionOutput) Datacenter

func (GetCatalogServiceQueryOptionOutput) ElementType

func (GetCatalogServiceQueryOptionOutput) Namespace

func (GetCatalogServiceQueryOptionOutput) Near

func (GetCatalogServiceQueryOptionOutput) NodeMeta

func (GetCatalogServiceQueryOptionOutput) RequireConsistent

func (GetCatalogServiceQueryOptionOutput) ToGetCatalogServiceQueryOptionOutput

func (o GetCatalogServiceQueryOptionOutput) ToGetCatalogServiceQueryOptionOutput() GetCatalogServiceQueryOptionOutput

func (GetCatalogServiceQueryOptionOutput) ToGetCatalogServiceQueryOptionOutputWithContext

func (o GetCatalogServiceQueryOptionOutput) ToGetCatalogServiceQueryOptionOutputWithContext(ctx context.Context) GetCatalogServiceQueryOptionOutput

func (GetCatalogServiceQueryOptionOutput) Token

func (GetCatalogServiceQueryOptionOutput) WaitIndex

func (GetCatalogServiceQueryOptionOutput) WaitTime

type GetCatalogServiceResult

type GetCatalogServiceResult struct {
	Datacenter *string `pulumi:"datacenter"`
	Filter     *string `pulumi:"filter"`
	// The provider-assigned unique ID for this managed resource.
	Id           string                         `pulumi:"id"`
	Name         string                         `pulumi:"name"`
	QueryOptions []GetCatalogServiceQueryOption `pulumi:"queryOptions"`
	Services     []GetCatalogServiceService     `pulumi:"services"`
	Tag          *string                        `pulumi:"tag"`
}

A collection of values returned by getCatalogService.

type GetCatalogServiceService

type GetCatalogServiceService struct {
	Address           string            `pulumi:"address"`
	CreateIndex       string            `pulumi:"createIndex"`
	EnableTagOverride string            `pulumi:"enableTagOverride"`
	Id                string            `pulumi:"id"`
	Meta              map[string]string `pulumi:"meta"`
	ModifyIndex       string            `pulumi:"modifyIndex"`
	Name              string            `pulumi:"name"`
	NodeAddress       string            `pulumi:"nodeAddress"`
	NodeId            string            `pulumi:"nodeId"`
	NodeMeta          map[string]string `pulumi:"nodeMeta"`
	NodeName          string            `pulumi:"nodeName"`
	Port              string            `pulumi:"port"`
	TaggedAddresses   map[string]string `pulumi:"taggedAddresses"`
	Tags              []string          `pulumi:"tags"`
}

type GetCatalogServiceServiceArgs

type GetCatalogServiceServiceArgs struct {
	Address           pulumi.StringInput      `pulumi:"address"`
	CreateIndex       pulumi.StringInput      `pulumi:"createIndex"`
	EnableTagOverride pulumi.StringInput      `pulumi:"enableTagOverride"`
	Id                pulumi.StringInput      `pulumi:"id"`
	Meta              pulumi.StringMapInput   `pulumi:"meta"`
	ModifyIndex       pulumi.StringInput      `pulumi:"modifyIndex"`
	Name              pulumi.StringInput      `pulumi:"name"`
	NodeAddress       pulumi.StringInput      `pulumi:"nodeAddress"`
	NodeId            pulumi.StringInput      `pulumi:"nodeId"`
	NodeMeta          pulumi.StringMapInput   `pulumi:"nodeMeta"`
	NodeName          pulumi.StringInput      `pulumi:"nodeName"`
	Port              pulumi.StringInput      `pulumi:"port"`
	TaggedAddresses   pulumi.StringMapInput   `pulumi:"taggedAddresses"`
	Tags              pulumi.StringArrayInput `pulumi:"tags"`
}

func (GetCatalogServiceServiceArgs) ElementType

func (GetCatalogServiceServiceArgs) ToGetCatalogServiceServiceOutput

func (i GetCatalogServiceServiceArgs) ToGetCatalogServiceServiceOutput() GetCatalogServiceServiceOutput

func (GetCatalogServiceServiceArgs) ToGetCatalogServiceServiceOutputWithContext

func (i GetCatalogServiceServiceArgs) ToGetCatalogServiceServiceOutputWithContext(ctx context.Context) GetCatalogServiceServiceOutput

type GetCatalogServiceServiceArray

type GetCatalogServiceServiceArray []GetCatalogServiceServiceInput

func (GetCatalogServiceServiceArray) ElementType

func (GetCatalogServiceServiceArray) ToGetCatalogServiceServiceArrayOutput

func (i GetCatalogServiceServiceArray) ToGetCatalogServiceServiceArrayOutput() GetCatalogServiceServiceArrayOutput

func (GetCatalogServiceServiceArray) ToGetCatalogServiceServiceArrayOutputWithContext

func (i GetCatalogServiceServiceArray) ToGetCatalogServiceServiceArrayOutputWithContext(ctx context.Context) GetCatalogServiceServiceArrayOutput

type GetCatalogServiceServiceArrayInput

type GetCatalogServiceServiceArrayInput interface {
	pulumi.Input

	ToGetCatalogServiceServiceArrayOutput() GetCatalogServiceServiceArrayOutput
	ToGetCatalogServiceServiceArrayOutputWithContext(context.Context) GetCatalogServiceServiceArrayOutput
}

GetCatalogServiceServiceArrayInput is an input type that accepts GetCatalogServiceServiceArray and GetCatalogServiceServiceArrayOutput values. You can construct a concrete instance of `GetCatalogServiceServiceArrayInput` via:

GetCatalogServiceServiceArray{ GetCatalogServiceServiceArgs{...} }

type GetCatalogServiceServiceArrayOutput

type GetCatalogServiceServiceArrayOutput struct{ *pulumi.OutputState }

func (GetCatalogServiceServiceArrayOutput) ElementType

func (GetCatalogServiceServiceArrayOutput) Index

func (GetCatalogServiceServiceArrayOutput) ToGetCatalogServiceServiceArrayOutput

func (o GetCatalogServiceServiceArrayOutput) ToGetCatalogServiceServiceArrayOutput() GetCatalogServiceServiceArrayOutput

func (GetCatalogServiceServiceArrayOutput) ToGetCatalogServiceServiceArrayOutputWithContext

func (o GetCatalogServiceServiceArrayOutput) ToGetCatalogServiceServiceArrayOutputWithContext(ctx context.Context) GetCatalogServiceServiceArrayOutput

type GetCatalogServiceServiceInput

type GetCatalogServiceServiceInput interface {
	pulumi.Input

	ToGetCatalogServiceServiceOutput() GetCatalogServiceServiceOutput
	ToGetCatalogServiceServiceOutputWithContext(context.Context) GetCatalogServiceServiceOutput
}

GetCatalogServiceServiceInput is an input type that accepts GetCatalogServiceServiceArgs and GetCatalogServiceServiceOutput values. You can construct a concrete instance of `GetCatalogServiceServiceInput` via:

GetCatalogServiceServiceArgs{...}

type GetCatalogServiceServiceOutput

type GetCatalogServiceServiceOutput struct{ *pulumi.OutputState }

func (GetCatalogServiceServiceOutput) Address

func (GetCatalogServiceServiceOutput) CreateIndex

func (GetCatalogServiceServiceOutput) ElementType

func (GetCatalogServiceServiceOutput) EnableTagOverride

func (o GetCatalogServiceServiceOutput) EnableTagOverride() pulumi.StringOutput

func (GetCatalogServiceServiceOutput) Id

func (GetCatalogServiceServiceOutput) Meta

func (GetCatalogServiceServiceOutput) ModifyIndex

func (GetCatalogServiceServiceOutput) Name

func (GetCatalogServiceServiceOutput) NodeAddress

func (GetCatalogServiceServiceOutput) NodeId

func (GetCatalogServiceServiceOutput) NodeMeta

func (GetCatalogServiceServiceOutput) NodeName

func (GetCatalogServiceServiceOutput) Port

func (GetCatalogServiceServiceOutput) TaggedAddresses

func (GetCatalogServiceServiceOutput) Tags

func (GetCatalogServiceServiceOutput) ToGetCatalogServiceServiceOutput

func (o GetCatalogServiceServiceOutput) ToGetCatalogServiceServiceOutput() GetCatalogServiceServiceOutput

func (GetCatalogServiceServiceOutput) ToGetCatalogServiceServiceOutputWithContext

func (o GetCatalogServiceServiceOutput) ToGetCatalogServiceServiceOutputWithContext(ctx context.Context) GetCatalogServiceServiceOutput

type GetCatalogServicesArgs

type GetCatalogServicesArgs struct {
	QueryOptions []GetCatalogServicesQueryOption `pulumi:"queryOptions"`
}

A collection of arguments for invoking getCatalogServices.

type GetCatalogServicesQueryOption

type GetCatalogServicesQueryOption struct {
	AllowStale        *bool             `pulumi:"allowStale"`
	Datacenter        *string           `pulumi:"datacenter"`
	Namespace         *string           `pulumi:"namespace"`
	Near              *string           `pulumi:"near"`
	NodeMeta          map[string]string `pulumi:"nodeMeta"`
	RequireConsistent *bool             `pulumi:"requireConsistent"`
	Token             *string           `pulumi:"token"`
	WaitIndex         *int              `pulumi:"waitIndex"`
	WaitTime          *string           `pulumi:"waitTime"`
}

type GetCatalogServicesQueryOptionArgs

type GetCatalogServicesQueryOptionArgs struct {
	AllowStale        pulumi.BoolPtrInput   `pulumi:"allowStale"`
	Datacenter        pulumi.StringPtrInput `pulumi:"datacenter"`
	Namespace         pulumi.StringPtrInput `pulumi:"namespace"`
	Near              pulumi.StringPtrInput `pulumi:"near"`
	NodeMeta          pulumi.StringMapInput `pulumi:"nodeMeta"`
	RequireConsistent pulumi.BoolPtrInput   `pulumi:"requireConsistent"`
	Token             pulumi.StringPtrInput `pulumi:"token"`
	WaitIndex         pulumi.IntPtrInput    `pulumi:"waitIndex"`
	WaitTime          pulumi.StringPtrInput `pulumi:"waitTime"`
}

func (GetCatalogServicesQueryOptionArgs) ElementType

func (GetCatalogServicesQueryOptionArgs) ToGetCatalogServicesQueryOptionOutput

func (i GetCatalogServicesQueryOptionArgs) ToGetCatalogServicesQueryOptionOutput() GetCatalogServicesQueryOptionOutput

func (GetCatalogServicesQueryOptionArgs) ToGetCatalogServicesQueryOptionOutputWithContext

func (i GetCatalogServicesQueryOptionArgs) ToGetCatalogServicesQueryOptionOutputWithContext(ctx context.Context) GetCatalogServicesQueryOptionOutput

type GetCatalogServicesQueryOptionArray

type GetCatalogServicesQueryOptionArray []GetCatalogServicesQueryOptionInput

func (GetCatalogServicesQueryOptionArray) ElementType

func (GetCatalogServicesQueryOptionArray) ToGetCatalogServicesQueryOptionArrayOutput

func (i GetCatalogServicesQueryOptionArray) ToGetCatalogServicesQueryOptionArrayOutput() GetCatalogServicesQueryOptionArrayOutput

func (GetCatalogServicesQueryOptionArray) ToGetCatalogServicesQueryOptionArrayOutputWithContext

func (i GetCatalogServicesQueryOptionArray) ToGetCatalogServicesQueryOptionArrayOutputWithContext(ctx context.Context) GetCatalogServicesQueryOptionArrayOutput

type GetCatalogServicesQueryOptionArrayInput

type GetCatalogServicesQueryOptionArrayInput interface {
	pulumi.Input

	ToGetCatalogServicesQueryOptionArrayOutput() GetCatalogServicesQueryOptionArrayOutput
	ToGetCatalogServicesQueryOptionArrayOutputWithContext(context.Context) GetCatalogServicesQueryOptionArrayOutput
}

GetCatalogServicesQueryOptionArrayInput is an input type that accepts GetCatalogServicesQueryOptionArray and GetCatalogServicesQueryOptionArrayOutput values. You can construct a concrete instance of `GetCatalogServicesQueryOptionArrayInput` via:

GetCatalogServicesQueryOptionArray{ GetCatalogServicesQueryOptionArgs{...} }

type GetCatalogServicesQueryOptionArrayOutput

type GetCatalogServicesQueryOptionArrayOutput struct{ *pulumi.OutputState }

func (GetCatalogServicesQueryOptionArrayOutput) ElementType

func (GetCatalogServicesQueryOptionArrayOutput) Index

func (GetCatalogServicesQueryOptionArrayOutput) ToGetCatalogServicesQueryOptionArrayOutput

func (o GetCatalogServicesQueryOptionArrayOutput) ToGetCatalogServicesQueryOptionArrayOutput() GetCatalogServicesQueryOptionArrayOutput

func (GetCatalogServicesQueryOptionArrayOutput) ToGetCatalogServicesQueryOptionArrayOutputWithContext

func (o GetCatalogServicesQueryOptionArrayOutput) ToGetCatalogServicesQueryOptionArrayOutputWithContext(ctx context.Context) GetCatalogServicesQueryOptionArrayOutput

type GetCatalogServicesQueryOptionInput

type GetCatalogServicesQueryOptionInput interface {
	pulumi.Input

	ToGetCatalogServicesQueryOptionOutput() GetCatalogServicesQueryOptionOutput
	ToGetCatalogServicesQueryOptionOutputWithContext(context.Context) GetCatalogServicesQueryOptionOutput
}

GetCatalogServicesQueryOptionInput is an input type that accepts GetCatalogServicesQueryOptionArgs and GetCatalogServicesQueryOptionOutput values. You can construct a concrete instance of `GetCatalogServicesQueryOptionInput` via:

GetCatalogServicesQueryOptionArgs{...}

type GetCatalogServicesQueryOptionOutput

type GetCatalogServicesQueryOptionOutput struct{ *pulumi.OutputState }

func (GetCatalogServicesQueryOptionOutput) AllowStale

func (GetCatalogServicesQueryOptionOutput) Datacenter

func (GetCatalogServicesQueryOptionOutput) ElementType

func (GetCatalogServicesQueryOptionOutput) Namespace

func (GetCatalogServicesQueryOptionOutput) Near

func (GetCatalogServicesQueryOptionOutput) NodeMeta

func (GetCatalogServicesQueryOptionOutput) RequireConsistent

func (GetCatalogServicesQueryOptionOutput) ToGetCatalogServicesQueryOptionOutput

func (o GetCatalogServicesQueryOptionOutput) ToGetCatalogServicesQueryOptionOutput() GetCatalogServicesQueryOptionOutput

func (GetCatalogServicesQueryOptionOutput) ToGetCatalogServicesQueryOptionOutputWithContext

func (o GetCatalogServicesQueryOptionOutput) ToGetCatalogServicesQueryOptionOutputWithContext(ctx context.Context) GetCatalogServicesQueryOptionOutput

func (GetCatalogServicesQueryOptionOutput) Token

func (GetCatalogServicesQueryOptionOutput) WaitIndex

func (GetCatalogServicesQueryOptionOutput) WaitTime

type GetCatalogServicesResult

type GetCatalogServicesResult struct {
	Datacenter string `pulumi:"datacenter"`
	// The provider-assigned unique ID for this managed resource.
	Id           string                          `pulumi:"id"`
	Names        []string                        `pulumi:"names"`
	QueryOptions []GetCatalogServicesQueryOption `pulumi:"queryOptions"`
	Services     map[string]string               `pulumi:"services"`
}

A collection of values returned by getCatalogServices.

type GetKeyPrefixSubkeyCollection

type GetKeyPrefixSubkeyCollection struct {
	// This is the default value to set for `var.<name>`
	// if the key does not exist in Consul. Defaults to an empty string.
	Default *string `pulumi:"default"`
	// This is the name of the key. This value of the
	// key is exposed as `var.<name>`. This is not the path of the subkey
	// in Consul.
	Name string `pulumi:"name"`
	// This is the subkey path in Consul (which will be appended
	// to the given `pathPrefix`) to construct the full key that will be used
	// to read the value.
	Path string `pulumi:"path"`
}

type GetKeyPrefixSubkeyCollectionArgs

type GetKeyPrefixSubkeyCollectionArgs struct {
	// This is the default value to set for `var.<name>`
	// if the key does not exist in Consul. Defaults to an empty string.
	Default pulumi.StringPtrInput `pulumi:"default"`
	// This is the name of the key. This value of the
	// key is exposed as `var.<name>`. This is not the path of the subkey
	// in Consul.
	Name pulumi.StringInput `pulumi:"name"`
	// This is the subkey path in Consul (which will be appended
	// to the given `pathPrefix`) to construct the full key that will be used
	// to read the value.
	Path pulumi.StringInput `pulumi:"path"`
}

func (GetKeyPrefixSubkeyCollectionArgs) ElementType

func (GetKeyPrefixSubkeyCollectionArgs) ToGetKeyPrefixSubkeyCollectionOutput

func (i GetKeyPrefixSubkeyCollectionArgs) ToGetKeyPrefixSubkeyCollectionOutput() GetKeyPrefixSubkeyCollectionOutput

func (GetKeyPrefixSubkeyCollectionArgs) ToGetKeyPrefixSubkeyCollectionOutputWithContext

func (i GetKeyPrefixSubkeyCollectionArgs) ToGetKeyPrefixSubkeyCollectionOutputWithContext(ctx context.Context) GetKeyPrefixSubkeyCollectionOutput

type GetKeyPrefixSubkeyCollectionArray

type GetKeyPrefixSubkeyCollectionArray []GetKeyPrefixSubkeyCollectionInput

func (GetKeyPrefixSubkeyCollectionArray) ElementType

func (GetKeyPrefixSubkeyCollectionArray) ToGetKeyPrefixSubkeyCollectionArrayOutput

func (i GetKeyPrefixSubkeyCollectionArray) ToGetKeyPrefixSubkeyCollectionArrayOutput() GetKeyPrefixSubkeyCollectionArrayOutput

func (GetKeyPrefixSubkeyCollectionArray) ToGetKeyPrefixSubkeyCollectionArrayOutputWithContext

func (i GetKeyPrefixSubkeyCollectionArray) ToGetKeyPrefixSubkeyCollectionArrayOutputWithContext(ctx context.Context) GetKeyPrefixSubkeyCollectionArrayOutput

type GetKeyPrefixSubkeyCollectionArrayInput

type GetKeyPrefixSubkeyCollectionArrayInput interface {
	pulumi.Input

	ToGetKeyPrefixSubkeyCollectionArrayOutput() GetKeyPrefixSubkeyCollectionArrayOutput
	ToGetKeyPrefixSubkeyCollectionArrayOutputWithContext(context.Context) GetKeyPrefixSubkeyCollectionArrayOutput
}

GetKeyPrefixSubkeyCollectionArrayInput is an input type that accepts GetKeyPrefixSubkeyCollectionArray and GetKeyPrefixSubkeyCollectionArrayOutput values. You can construct a concrete instance of `GetKeyPrefixSubkeyCollectionArrayInput` via:

GetKeyPrefixSubkeyCollectionArray{ GetKeyPrefixSubkeyCollectionArgs{...} }

type GetKeyPrefixSubkeyCollectionArrayOutput

type GetKeyPrefixSubkeyCollectionArrayOutput struct{ *pulumi.OutputState }

func (GetKeyPrefixSubkeyCollectionArrayOutput) ElementType

func (GetKeyPrefixSubkeyCollectionArrayOutput) Index

func (GetKeyPrefixSubkeyCollectionArrayOutput) ToGetKeyPrefixSubkeyCollectionArrayOutput

func (o GetKeyPrefixSubkeyCollectionArrayOutput) ToGetKeyPrefixSubkeyCollectionArrayOutput() GetKeyPrefixSubkeyCollectionArrayOutput

func (GetKeyPrefixSubkeyCollectionArrayOutput) ToGetKeyPrefixSubkeyCollectionArrayOutputWithContext

func (o GetKeyPrefixSubkeyCollectionArrayOutput) ToGetKeyPrefixSubkeyCollectionArrayOutputWithContext(ctx context.Context) GetKeyPrefixSubkeyCollectionArrayOutput

type GetKeyPrefixSubkeyCollectionInput

type GetKeyPrefixSubkeyCollectionInput interface {
	pulumi.Input

	ToGetKeyPrefixSubkeyCollectionOutput() GetKeyPrefixSubkeyCollectionOutput
	ToGetKeyPrefixSubkeyCollectionOutputWithContext(context.Context) GetKeyPrefixSubkeyCollectionOutput
}

GetKeyPrefixSubkeyCollectionInput is an input type that accepts GetKeyPrefixSubkeyCollectionArgs and GetKeyPrefixSubkeyCollectionOutput values. You can construct a concrete instance of `GetKeyPrefixSubkeyCollectionInput` via:

GetKeyPrefixSubkeyCollectionArgs{...}

type GetKeyPrefixSubkeyCollectionOutput

type GetKeyPrefixSubkeyCollectionOutput struct{ *pulumi.OutputState }

func (GetKeyPrefixSubkeyCollectionOutput) Default

This is the default value to set for `var.<name>` if the key does not exist in Consul. Defaults to an empty string.

func (GetKeyPrefixSubkeyCollectionOutput) ElementType

func (GetKeyPrefixSubkeyCollectionOutput) Name

This is the name of the key. This value of the key is exposed as `var.<name>`. This is not the path of the subkey in Consul.

func (GetKeyPrefixSubkeyCollectionOutput) Path

This is the subkey path in Consul (which will be appended to the given `pathPrefix`) to construct the full key that will be used to read the value.

func (GetKeyPrefixSubkeyCollectionOutput) ToGetKeyPrefixSubkeyCollectionOutput

func (o GetKeyPrefixSubkeyCollectionOutput) ToGetKeyPrefixSubkeyCollectionOutput() GetKeyPrefixSubkeyCollectionOutput

func (GetKeyPrefixSubkeyCollectionOutput) ToGetKeyPrefixSubkeyCollectionOutputWithContext

func (o GetKeyPrefixSubkeyCollectionOutput) ToGetKeyPrefixSubkeyCollectionOutputWithContext(ctx context.Context) GetKeyPrefixSubkeyCollectionOutput

type GetKeysKey

type GetKeysKey struct {
	// This is the default value to set for `var.<name>`
	// if the key does not exist in Consul. Defaults to an empty string.
	Default *string `pulumi:"default"`
	// This is the name of the key. This value of the
	// key is exposed as `var.<name>`. This is not the path of the key
	// in Consul.
	Name string `pulumi:"name"`
	// This is the path in Consul that should be read
	// or written to.
	Path string `pulumi:"path"`
}

type GetKeysKeyArgs

type GetKeysKeyArgs struct {
	// This is the default value to set for `var.<name>`
	// if the key does not exist in Consul. Defaults to an empty string.
	Default pulumi.StringPtrInput `pulumi:"default"`
	// This is the name of the key. This value of the
	// key is exposed as `var.<name>`. This is not the path of the key
	// in Consul.
	Name pulumi.StringInput `pulumi:"name"`
	// This is the path in Consul that should be read
	// or written to.
	Path pulumi.StringInput `pulumi:"path"`
}

func (GetKeysKeyArgs) ElementType

func (GetKeysKeyArgs) ElementType() reflect.Type

func (GetKeysKeyArgs) ToGetKeysKeyOutput

func (i GetKeysKeyArgs) ToGetKeysKeyOutput() GetKeysKeyOutput

func (GetKeysKeyArgs) ToGetKeysKeyOutputWithContext

func (i GetKeysKeyArgs) ToGetKeysKeyOutputWithContext(ctx context.Context) GetKeysKeyOutput

type GetKeysKeyArray

type GetKeysKeyArray []GetKeysKeyInput

func (GetKeysKeyArray) ElementType

func (GetKeysKeyArray) ElementType() reflect.Type

func (GetKeysKeyArray) ToGetKeysKeyArrayOutput

func (i GetKeysKeyArray) ToGetKeysKeyArrayOutput() GetKeysKeyArrayOutput

func (GetKeysKeyArray) ToGetKeysKeyArrayOutputWithContext

func (i GetKeysKeyArray) ToGetKeysKeyArrayOutputWithContext(ctx context.Context) GetKeysKeyArrayOutput

type GetKeysKeyArrayInput

type GetKeysKeyArrayInput interface {
	pulumi.Input

	ToGetKeysKeyArrayOutput() GetKeysKeyArrayOutput
	ToGetKeysKeyArrayOutputWithContext(context.Context) GetKeysKeyArrayOutput
}

GetKeysKeyArrayInput is an input type that accepts GetKeysKeyArray and GetKeysKeyArrayOutput values. You can construct a concrete instance of `GetKeysKeyArrayInput` via:

GetKeysKeyArray{ GetKeysKeyArgs{...} }

type GetKeysKeyArrayOutput

type GetKeysKeyArrayOutput struct{ *pulumi.OutputState }

func (GetKeysKeyArrayOutput) ElementType

func (GetKeysKeyArrayOutput) ElementType() reflect.Type

func (GetKeysKeyArrayOutput) Index

func (GetKeysKeyArrayOutput) ToGetKeysKeyArrayOutput

func (o GetKeysKeyArrayOutput) ToGetKeysKeyArrayOutput() GetKeysKeyArrayOutput

func (GetKeysKeyArrayOutput) ToGetKeysKeyArrayOutputWithContext

func (o GetKeysKeyArrayOutput) ToGetKeysKeyArrayOutputWithContext(ctx context.Context) GetKeysKeyArrayOutput

type GetKeysKeyInput

type GetKeysKeyInput interface {
	pulumi.Input

	ToGetKeysKeyOutput() GetKeysKeyOutput
	ToGetKeysKeyOutputWithContext(context.Context) GetKeysKeyOutput
}

GetKeysKeyInput is an input type that accepts GetKeysKeyArgs and GetKeysKeyOutput values. You can construct a concrete instance of `GetKeysKeyInput` via:

GetKeysKeyArgs{...}

type GetKeysKeyOutput

type GetKeysKeyOutput struct{ *pulumi.OutputState }

func (GetKeysKeyOutput) Default

This is the default value to set for `var.<name>` if the key does not exist in Consul. Defaults to an empty string.

func (GetKeysKeyOutput) ElementType

func (GetKeysKeyOutput) ElementType() reflect.Type

func (GetKeysKeyOutput) Name

This is the name of the key. This value of the key is exposed as `var.<name>`. This is not the path of the key in Consul.

func (GetKeysKeyOutput) Path

This is the path in Consul that should be read or written to.

func (GetKeysKeyOutput) ToGetKeysKeyOutput

func (o GetKeysKeyOutput) ToGetKeysKeyOutput() GetKeysKeyOutput

func (GetKeysKeyOutput) ToGetKeysKeyOutputWithContext

func (o GetKeysKeyOutput) ToGetKeysKeyOutputWithContext(ctx context.Context) GetKeysKeyOutput

type GetNetworkAreaMembersArgs added in v2.2.0

type GetNetworkAreaMembersArgs struct {
	// The datacenter to use. This overrides the
	// agent's default datacenter and the datacenter in the provider setup.
	Datacenter *string `pulumi:"datacenter"`
	// The ACL token to use. This overrides the
	// token that the agent provides by default.
	Token *string `pulumi:"token"`
	// The UUID of the area to list.
	Uuid string `pulumi:"uuid"`
}

A collection of arguments for invoking getNetworkAreaMembers.

type GetNetworkAreaMembersMember added in v2.2.0

type GetNetworkAreaMembersMember struct {
	// The IP address of the server.
	Address string `pulumi:"address"`
	// The Consul version running on the node.
	Build string `pulumi:"build"`
	// The datacenter to use. This overrides the
	// agent's default datacenter and the datacenter in the provider setup.
	Datacenter string `pulumi:"datacenter"`
	// The node ID of the server.
	Id string `pulumi:"id"`
	// The node name of the server, with its datacenter appended.
	Name string `pulumi:"name"`
	// The server RPC port the node.
	Port int `pulumi:"port"`
	// The protocol version being spoken by the node.
	Protocol int `pulumi:"protocol"`
	// Role is always `"server"` since only Consul servers can participate
	// in network areas.
	Role string `pulumi:"role"`
	// An estimated network round trip time from the server answering the
	// query to the given server, in nanoseconds. This is computed using network
	// coordinates.
	Rtt int `pulumi:"rtt"`
	// The current health status of the node, as determined by the
	// network area distributed failure detector. This will be `"alive"`, `"leaving"`,
	// or `"failed"`. A `"failed"` status means that other servers are not able to
	// probe this server over its server RPC interface.
	Status string `pulumi:"status"`
}

type GetNetworkAreaMembersMemberArgs added in v2.2.0

type GetNetworkAreaMembersMemberArgs struct {
	// The IP address of the server.
	Address pulumi.StringInput `pulumi:"address"`
	// The Consul version running on the node.
	Build pulumi.StringInput `pulumi:"build"`
	// The datacenter to use. This overrides the
	// agent's default datacenter and the datacenter in the provider setup.
	Datacenter pulumi.StringInput `pulumi:"datacenter"`
	// The node ID of the server.
	Id pulumi.StringInput `pulumi:"id"`
	// The node name of the server, with its datacenter appended.
	Name pulumi.StringInput `pulumi:"name"`
	// The server RPC port the node.
	Port pulumi.IntInput `pulumi:"port"`
	// The protocol version being spoken by the node.
	Protocol pulumi.IntInput `pulumi:"protocol"`
	// Role is always `"server"` since only Consul servers can participate
	// in network areas.
	Role pulumi.StringInput `pulumi:"role"`
	// An estimated network round trip time from the server answering the
	// query to the given server, in nanoseconds. This is computed using network
	// coordinates.
	Rtt pulumi.IntInput `pulumi:"rtt"`
	// The current health status of the node, as determined by the
	// network area distributed failure detector. This will be `"alive"`, `"leaving"`,
	// or `"failed"`. A `"failed"` status means that other servers are not able to
	// probe this server over its server RPC interface.
	Status pulumi.StringInput `pulumi:"status"`
}

func (GetNetworkAreaMembersMemberArgs) ElementType added in v2.2.0

func (GetNetworkAreaMembersMemberArgs) ToGetNetworkAreaMembersMemberOutput added in v2.2.0

func (i GetNetworkAreaMembersMemberArgs) ToGetNetworkAreaMembersMemberOutput() GetNetworkAreaMembersMemberOutput

func (GetNetworkAreaMembersMemberArgs) ToGetNetworkAreaMembersMemberOutputWithContext added in v2.2.0

func (i GetNetworkAreaMembersMemberArgs) ToGetNetworkAreaMembersMemberOutputWithContext(ctx context.Context) GetNetworkAreaMembersMemberOutput

type GetNetworkAreaMembersMemberArray added in v2.2.0

type GetNetworkAreaMembersMemberArray []GetNetworkAreaMembersMemberInput

func (GetNetworkAreaMembersMemberArray) ElementType added in v2.2.0

func (GetNetworkAreaMembersMemberArray) ToGetNetworkAreaMembersMemberArrayOutput added in v2.2.0

func (i GetNetworkAreaMembersMemberArray) ToGetNetworkAreaMembersMemberArrayOutput() GetNetworkAreaMembersMemberArrayOutput

func (GetNetworkAreaMembersMemberArray) ToGetNetworkAreaMembersMemberArrayOutputWithContext added in v2.2.0

func (i GetNetworkAreaMembersMemberArray) ToGetNetworkAreaMembersMemberArrayOutputWithContext(ctx context.Context) GetNetworkAreaMembersMemberArrayOutput

type GetNetworkAreaMembersMemberArrayInput added in v2.2.0

type GetNetworkAreaMembersMemberArrayInput interface {
	pulumi.Input

	ToGetNetworkAreaMembersMemberArrayOutput() GetNetworkAreaMembersMemberArrayOutput
	ToGetNetworkAreaMembersMemberArrayOutputWithContext(context.Context) GetNetworkAreaMembersMemberArrayOutput
}

GetNetworkAreaMembersMemberArrayInput is an input type that accepts GetNetworkAreaMembersMemberArray and GetNetworkAreaMembersMemberArrayOutput values. You can construct a concrete instance of `GetNetworkAreaMembersMemberArrayInput` via:

GetNetworkAreaMembersMemberArray{ GetNetworkAreaMembersMemberArgs{...} }

type GetNetworkAreaMembersMemberArrayOutput added in v2.2.0

type GetNetworkAreaMembersMemberArrayOutput struct{ *pulumi.OutputState }

func (GetNetworkAreaMembersMemberArrayOutput) ElementType added in v2.2.0

func (GetNetworkAreaMembersMemberArrayOutput) Index added in v2.2.0

func (GetNetworkAreaMembersMemberArrayOutput) ToGetNetworkAreaMembersMemberArrayOutput added in v2.2.0

func (o GetNetworkAreaMembersMemberArrayOutput) ToGetNetworkAreaMembersMemberArrayOutput() GetNetworkAreaMembersMemberArrayOutput

func (GetNetworkAreaMembersMemberArrayOutput) ToGetNetworkAreaMembersMemberArrayOutputWithContext added in v2.2.0

func (o GetNetworkAreaMembersMemberArrayOutput) ToGetNetworkAreaMembersMemberArrayOutputWithContext(ctx context.Context) GetNetworkAreaMembersMemberArrayOutput

type GetNetworkAreaMembersMemberInput added in v2.2.0

type GetNetworkAreaMembersMemberInput interface {
	pulumi.Input

	ToGetNetworkAreaMembersMemberOutput() GetNetworkAreaMembersMemberOutput
	ToGetNetworkAreaMembersMemberOutputWithContext(context.Context) GetNetworkAreaMembersMemberOutput
}

GetNetworkAreaMembersMemberInput is an input type that accepts GetNetworkAreaMembersMemberArgs and GetNetworkAreaMembersMemberOutput values. You can construct a concrete instance of `GetNetworkAreaMembersMemberInput` via:

GetNetworkAreaMembersMemberArgs{...}

type GetNetworkAreaMembersMemberOutput added in v2.2.0

type GetNetworkAreaMembersMemberOutput struct{ *pulumi.OutputState }

func (GetNetworkAreaMembersMemberOutput) Address added in v2.2.0

The IP address of the server.

func (GetNetworkAreaMembersMemberOutput) Build added in v2.2.0

The Consul version running on the node.

func (GetNetworkAreaMembersMemberOutput) Datacenter added in v2.2.0

The datacenter to use. This overrides the agent's default datacenter and the datacenter in the provider setup.

func (GetNetworkAreaMembersMemberOutput) ElementType added in v2.2.0

func (GetNetworkAreaMembersMemberOutput) Id added in v2.2.0

The node ID of the server.

func (GetNetworkAreaMembersMemberOutput) Name added in v2.2.0

The node name of the server, with its datacenter appended.

func (GetNetworkAreaMembersMemberOutput) Port added in v2.2.0

The server RPC port the node.

func (GetNetworkAreaMembersMemberOutput) Protocol added in v2.2.0

The protocol version being spoken by the node.

func (GetNetworkAreaMembersMemberOutput) Role added in v2.2.0

Role is always `"server"` since only Consul servers can participate in network areas.

func (GetNetworkAreaMembersMemberOutput) Rtt added in v2.2.0

An estimated network round trip time from the server answering the query to the given server, in nanoseconds. This is computed using network coordinates.

func (GetNetworkAreaMembersMemberOutput) Status added in v2.2.0

The current health status of the node, as determined by the network area distributed failure detector. This will be `"alive"`, `"leaving"`, or `"failed"`. A `"failed"` status means that other servers are not able to probe this server over its server RPC interface.

func (GetNetworkAreaMembersMemberOutput) ToGetNetworkAreaMembersMemberOutput added in v2.2.0

func (o GetNetworkAreaMembersMemberOutput) ToGetNetworkAreaMembersMemberOutput() GetNetworkAreaMembersMemberOutput

func (GetNetworkAreaMembersMemberOutput) ToGetNetworkAreaMembersMemberOutputWithContext added in v2.2.0

func (o GetNetworkAreaMembersMemberOutput) ToGetNetworkAreaMembersMemberOutputWithContext(ctx context.Context) GetNetworkAreaMembersMemberOutput

type GetNetworkAreaMembersResult added in v2.2.0

type GetNetworkAreaMembersResult struct {
	// The node's Consul datacenter.
	Datacenter string `pulumi:"datacenter"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The list of Consul servers in this network area
	Members []GetNetworkAreaMembersMember `pulumi:"members"`
	Token   *string                       `pulumi:"token"`
	// The UUID of the Network Area being queried.
	Uuid string `pulumi:"uuid"`
}

A collection of values returned by getNetworkAreaMembers.

func GetNetworkAreaMembers added in v2.2.0

func GetNetworkAreaMembers(ctx *pulumi.Context, args *GetNetworkAreaMembersArgs, opts ...pulumi.InvokeOption) (*GetNetworkAreaMembersResult, error)

> **NOTE:** This feature requires [Consul Enterprise](https://www.consul.io/docs/enterprise/index.html).

The `getNetworkAreaMembers` data source provides a list of the Consul servers present in a specific network area.

type GetNetworkSegmentsArgs added in v2.2.0

type GetNetworkSegmentsArgs struct {
	// The datacenter to use. This overrides the
	// agent's default datacenter and the datacenter in the provider setup.
	Datacenter *string `pulumi:"datacenter"`
	// The ACL token to use. This overrides the
	// token that the agent provides by default.
	Token *string `pulumi:"token"`
}

A collection of arguments for invoking getNetworkSegments.

type GetNetworkSegmentsResult added in v2.2.0

type GetNetworkSegmentsResult struct {
	// The datacenter the segments are being read from.
	Datacenter string `pulumi:"datacenter"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The list of network segments.
	Segments []string `pulumi:"segments"`
	Token    *string  `pulumi:"token"`
}

A collection of values returned by getNetworkSegments.

func GetNetworkSegments added in v2.2.0

func GetNetworkSegments(ctx *pulumi.Context, args *GetNetworkSegmentsArgs, opts ...pulumi.InvokeOption) (*GetNetworkSegmentsResult, error)

> **NOTE:** This feature requires [Consul Enterprise](https://www.consul.io/docs/enterprise/index.html).

The `consulNetworkSegment` data source can be used to retrieve the network segments defined in the configuration.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-consul/sdk/v2/go/consul"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		segmentsNetworkSegments, err := consul.GetNetworkSegments(ctx, nil, nil)
		if err != nil {
			return err
		}
		ctx.Export("segments", segmentsNetworkSegments.Segments)
		return nil
	})
}

```

type GetNodesArgs

type GetNodesArgs struct {
	// See below.
	QueryOptions []GetNodesQueryOption `pulumi:"queryOptions"`
}

A collection of arguments for invoking getNodes.

type GetNodesNode

type GetNodesNode struct {
	Address string `pulumi:"address"`
	// The Node ID of the Consul agent.
	// * [`meta`](https://www.consul.io/docs/agent/http/catalog.html#Meta) - Node meta
	//   data tag information, if any.
	// * [`name`](https://www.consul.io/docs/agent/http/catalog.html#Node) - The name
	//   of the Consul node.
	// * [`address`](https://www.consul.io/docs/agent/http/catalog.html#Address) - The
	//   IP address the node is advertising to the Consul cluster.
	// * [`taggedAddresses`](https://www.consul.io/docs/agent/http/catalog.html#TaggedAddresses) -
	//   List of explicit LAN and WAN IP addresses for the agent.
	Id              string            `pulumi:"id"`
	Meta            map[string]string `pulumi:"meta"`
	Name            string            `pulumi:"name"`
	TaggedAddresses map[string]string `pulumi:"taggedAddresses"`
}

type GetNodesNodeArgs

type GetNodesNodeArgs struct {
	Address pulumi.StringInput `pulumi:"address"`
	// The Node ID of the Consul agent.
	// * [`meta`](https://www.consul.io/docs/agent/http/catalog.html#Meta) - Node meta
	//   data tag information, if any.
	// * [`name`](https://www.consul.io/docs/agent/http/catalog.html#Node) - The name
	//   of the Consul node.
	// * [`address`](https://www.consul.io/docs/agent/http/catalog.html#Address) - The
	//   IP address the node is advertising to the Consul cluster.
	// * [`taggedAddresses`](https://www.consul.io/docs/agent/http/catalog.html#TaggedAddresses) -
	//   List of explicit LAN and WAN IP addresses for the agent.
	Id              pulumi.StringInput    `pulumi:"id"`
	Meta            pulumi.StringMapInput `pulumi:"meta"`
	Name            pulumi.StringInput    `pulumi:"name"`
	TaggedAddresses pulumi.StringMapInput `pulumi:"taggedAddresses"`
}

func (GetNodesNodeArgs) ElementType

func (GetNodesNodeArgs) ElementType() reflect.Type

func (GetNodesNodeArgs) ToGetNodesNodeOutput

func (i GetNodesNodeArgs) ToGetNodesNodeOutput() GetNodesNodeOutput

func (GetNodesNodeArgs) ToGetNodesNodeOutputWithContext

func (i GetNodesNodeArgs) ToGetNodesNodeOutputWithContext(ctx context.Context) GetNodesNodeOutput

type GetNodesNodeArray

type GetNodesNodeArray []GetNodesNodeInput

func (GetNodesNodeArray) ElementType

func (GetNodesNodeArray) ElementType() reflect.Type

func (GetNodesNodeArray) ToGetNodesNodeArrayOutput

func (i GetNodesNodeArray) ToGetNodesNodeArrayOutput() GetNodesNodeArrayOutput

func (GetNodesNodeArray) ToGetNodesNodeArrayOutputWithContext

func (i GetNodesNodeArray) ToGetNodesNodeArrayOutputWithContext(ctx context.Context) GetNodesNodeArrayOutput

type GetNodesNodeArrayInput

type GetNodesNodeArrayInput interface {
	pulumi.Input

	ToGetNodesNodeArrayOutput() GetNodesNodeArrayOutput
	ToGetNodesNodeArrayOutputWithContext(context.Context) GetNodesNodeArrayOutput
}

GetNodesNodeArrayInput is an input type that accepts GetNodesNodeArray and GetNodesNodeArrayOutput values. You can construct a concrete instance of `GetNodesNodeArrayInput` via:

GetNodesNodeArray{ GetNodesNodeArgs{...} }

type GetNodesNodeArrayOutput

type GetNodesNodeArrayOutput struct{ *pulumi.OutputState }

func (GetNodesNodeArrayOutput) ElementType

func (GetNodesNodeArrayOutput) ElementType() reflect.Type

func (GetNodesNodeArrayOutput) Index

func (GetNodesNodeArrayOutput) ToGetNodesNodeArrayOutput

func (o GetNodesNodeArrayOutput) ToGetNodesNodeArrayOutput() GetNodesNodeArrayOutput

func (GetNodesNodeArrayOutput) ToGetNodesNodeArrayOutputWithContext

func (o GetNodesNodeArrayOutput) ToGetNodesNodeArrayOutputWithContext(ctx context.Context) GetNodesNodeArrayOutput

type GetNodesNodeInput

type GetNodesNodeInput interface {
	pulumi.Input

	ToGetNodesNodeOutput() GetNodesNodeOutput
	ToGetNodesNodeOutputWithContext(context.Context) GetNodesNodeOutput
}

GetNodesNodeInput is an input type that accepts GetNodesNodeArgs and GetNodesNodeOutput values. You can construct a concrete instance of `GetNodesNodeInput` via:

GetNodesNodeArgs{...}

type GetNodesNodeOutput

type GetNodesNodeOutput struct{ *pulumi.OutputState }

func (GetNodesNodeOutput) Address

func (GetNodesNodeOutput) ElementType

func (GetNodesNodeOutput) ElementType() reflect.Type

func (GetNodesNodeOutput) Id

The Node ID of the Consul agent.

func (GetNodesNodeOutput) Meta

func (GetNodesNodeOutput) Name

func (GetNodesNodeOutput) TaggedAddresses

func (o GetNodesNodeOutput) TaggedAddresses() pulumi.StringMapOutput

func (GetNodesNodeOutput) ToGetNodesNodeOutput

func (o GetNodesNodeOutput) ToGetNodesNodeOutput() GetNodesNodeOutput

func (GetNodesNodeOutput) ToGetNodesNodeOutputWithContext

func (o GetNodesNodeOutput) ToGetNodesNodeOutputWithContext(ctx context.Context) GetNodesNodeOutput

type GetNodesQueryOption

type GetNodesQueryOption struct {
	// When `true`, the default, allow responses from
	// Consul servers that are followers.
	AllowStale *bool `pulumi:"allowStale"`
	// The Consul datacenter to query.  Defaults to the
	// same value found in `queryOptions` parameter specified below, or if that is
	// empty, the `datacenter` value found in the Consul agent that this provider is
	// configured to talk to then the datacenter in the provider setup.
	Datacenter *string           `pulumi:"datacenter"`
	Near       *string           `pulumi:"near"`
	NodeMeta   map[string]string `pulumi:"nodeMeta"`
	// When `true` force the client to perform a
	// read on at least quorum servers and verify the result is the same.  Defaults
	// to `false`.
	RequireConsistent *bool `pulumi:"requireConsistent"`
	// Specify the Consul ACL token to use when performing the
	// request.  This defaults to the same API token configured by the `consul`
	// provider but may be overriden if necessary.
	Token *string `pulumi:"token"`
	// Index number used to enable blocking quereis.
	WaitIndex *int `pulumi:"waitIndex"`
	// Max time the client should wait for a blocking query
	// to return.
	WaitTime *string `pulumi:"waitTime"`
}

type GetNodesQueryOptionArgs

type GetNodesQueryOptionArgs struct {
	// When `true`, the default, allow responses from
	// Consul servers that are followers.
	AllowStale pulumi.BoolPtrInput `pulumi:"allowStale"`
	// The Consul datacenter to query.  Defaults to the
	// same value found in `queryOptions` parameter specified below, or if that is
	// empty, the `datacenter` value found in the Consul agent that this provider is
	// configured to talk to then the datacenter in the provider setup.
	Datacenter pulumi.StringPtrInput `pulumi:"datacenter"`
	Near       pulumi.StringPtrInput `pulumi:"near"`
	NodeMeta   pulumi.StringMapInput `pulumi:"nodeMeta"`
	// When `true` force the client to perform a
	// read on at least quorum servers and verify the result is the same.  Defaults
	// to `false`.
	RequireConsistent pulumi.BoolPtrInput `pulumi:"requireConsistent"`
	// Specify the Consul ACL token to use when performing the
	// request.  This defaults to the same API token configured by the `consul`
	// provider but may be overriden if necessary.
	Token pulumi.StringPtrInput `pulumi:"token"`
	// Index number used to enable blocking quereis.
	WaitIndex pulumi.IntPtrInput `pulumi:"waitIndex"`
	// Max time the client should wait for a blocking query
	// to return.
	WaitTime pulumi.StringPtrInput `pulumi:"waitTime"`
}

func (GetNodesQueryOptionArgs) ElementType

func (GetNodesQueryOptionArgs) ElementType() reflect.Type

func (GetNodesQueryOptionArgs) ToGetNodesQueryOptionOutput

func (i GetNodesQueryOptionArgs) ToGetNodesQueryOptionOutput() GetNodesQueryOptionOutput

func (GetNodesQueryOptionArgs) ToGetNodesQueryOptionOutputWithContext

func (i GetNodesQueryOptionArgs) ToGetNodesQueryOptionOutputWithContext(ctx context.Context) GetNodesQueryOptionOutput

type GetNodesQueryOptionArray

type GetNodesQueryOptionArray []GetNodesQueryOptionInput

func (GetNodesQueryOptionArray) ElementType

func (GetNodesQueryOptionArray) ElementType() reflect.Type

func (GetNodesQueryOptionArray) ToGetNodesQueryOptionArrayOutput

func (i GetNodesQueryOptionArray) ToGetNodesQueryOptionArrayOutput() GetNodesQueryOptionArrayOutput

func (GetNodesQueryOptionArray) ToGetNodesQueryOptionArrayOutputWithContext

func (i GetNodesQueryOptionArray) ToGetNodesQueryOptionArrayOutputWithContext(ctx context.Context) GetNodesQueryOptionArrayOutput

type GetNodesQueryOptionArrayInput

type GetNodesQueryOptionArrayInput interface {
	pulumi.Input

	ToGetNodesQueryOptionArrayOutput() GetNodesQueryOptionArrayOutput
	ToGetNodesQueryOptionArrayOutputWithContext(context.Context) GetNodesQueryOptionArrayOutput
}

GetNodesQueryOptionArrayInput is an input type that accepts GetNodesQueryOptionArray and GetNodesQueryOptionArrayOutput values. You can construct a concrete instance of `GetNodesQueryOptionArrayInput` via:

GetNodesQueryOptionArray{ GetNodesQueryOptionArgs{...} }

type GetNodesQueryOptionArrayOutput

type GetNodesQueryOptionArrayOutput struct{ *pulumi.OutputState }

func (GetNodesQueryOptionArrayOutput) ElementType

func (GetNodesQueryOptionArrayOutput) Index

func (GetNodesQueryOptionArrayOutput) ToGetNodesQueryOptionArrayOutput

func (o GetNodesQueryOptionArrayOutput) ToGetNodesQueryOptionArrayOutput() GetNodesQueryOptionArrayOutput

func (GetNodesQueryOptionArrayOutput) ToGetNodesQueryOptionArrayOutputWithContext

func (o GetNodesQueryOptionArrayOutput) ToGetNodesQueryOptionArrayOutputWithContext(ctx context.Context) GetNodesQueryOptionArrayOutput

type GetNodesQueryOptionInput

type GetNodesQueryOptionInput interface {
	pulumi.Input

	ToGetNodesQueryOptionOutput() GetNodesQueryOptionOutput
	ToGetNodesQueryOptionOutputWithContext(context.Context) GetNodesQueryOptionOutput
}

GetNodesQueryOptionInput is an input type that accepts GetNodesQueryOptionArgs and GetNodesQueryOptionOutput values. You can construct a concrete instance of `GetNodesQueryOptionInput` via:

GetNodesQueryOptionArgs{...}

type GetNodesQueryOptionOutput

type GetNodesQueryOptionOutput struct{ *pulumi.OutputState }

func (GetNodesQueryOptionOutput) AllowStale

When `true`, the default, allow responses from Consul servers that are followers.

func (GetNodesQueryOptionOutput) Datacenter

The Consul datacenter to query. Defaults to the same value found in `queryOptions` parameter specified below, or if that is empty, the `datacenter` value found in the Consul agent that this provider is configured to talk to then the datacenter in the provider setup.

func (GetNodesQueryOptionOutput) ElementType

func (GetNodesQueryOptionOutput) ElementType() reflect.Type

func (GetNodesQueryOptionOutput) Near

func (GetNodesQueryOptionOutput) NodeMeta

func (GetNodesQueryOptionOutput) RequireConsistent

func (o GetNodesQueryOptionOutput) RequireConsistent() pulumi.BoolPtrOutput

When `true` force the client to perform a read on at least quorum servers and verify the result is the same. Defaults to `false`.

func (GetNodesQueryOptionOutput) ToGetNodesQueryOptionOutput

func (o GetNodesQueryOptionOutput) ToGetNodesQueryOptionOutput() GetNodesQueryOptionOutput

func (GetNodesQueryOptionOutput) ToGetNodesQueryOptionOutputWithContext

func (o GetNodesQueryOptionOutput) ToGetNodesQueryOptionOutputWithContext(ctx context.Context) GetNodesQueryOptionOutput

func (GetNodesQueryOptionOutput) Token

Specify the Consul ACL token to use when performing the request. This defaults to the same API token configured by the `consul` provider but may be overriden if necessary.

func (GetNodesQueryOptionOutput) WaitIndex

Index number used to enable blocking quereis.

func (GetNodesQueryOptionOutput) WaitTime

Max time the client should wait for a blocking query to return.

type GetNodesResult

type GetNodesResult struct {
	// The datacenter the keys are being read from to.
	Datacenter string `pulumi:"datacenter"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of the Consul node IDs.
	NodeIds []string `pulumi:"nodeIds"`
	// A list of the Consul node names.
	NodeNames []string `pulumi:"nodeNames"`
	// A list of nodes and details about each Consul agent.  The list of
	// per-node attributes is detailed below.
	Nodes        []GetNodesNode        `pulumi:"nodes"`
	QueryOptions []GetNodesQueryOption `pulumi:"queryOptions"`
}

A collection of values returned by getNodes.

func GetNodes

func GetNodes(ctx *pulumi.Context, args *GetNodesArgs, opts ...pulumi.InvokeOption) (*GetNodesResult, error)

The `getNodes` data source returns a list of Consul nodes that have been registered with the Consul cluster in a given datacenter. By specifying a different datacenter in the `queryOptions` it is possible to retrieve a list of nodes from a different WAN-attached Consul datacenter.

type GetServiceHealthArgs

type GetServiceHealthArgs struct {
	// The Consul datacenter to query.
	Datacenter *string `pulumi:"datacenter"`
	// A filter expression to refine the list of results, see
	// https://www.consul.io/api-docs/features/filtering and https://www.consul.io/api-docs/health#filtering-2.
	Filter *string `pulumi:"filter"`
	// The service name to select.
	Name string `pulumi:"name"`
	// Specifies a node name to sort the node list in ascending order
	// based on the estimated round trip time from that node.
	Near *string `pulumi:"near"`
	// Filter the results to nodes with the specified key/value
	// pairs.
	NodeMeta map[string]string `pulumi:"nodeMeta"`
	// Whether to return only nodes with all checks in the
	// passing state. Defaults to `true`.
	Passing *bool `pulumi:"passing"`
	// A single tag that can be used to filter the list to return
	// based on a single matching tag.
	Tag     *string `pulumi:"tag"`
	WaitFor *string `pulumi:"waitFor"`
}

A collection of arguments for invoking getServiceHealth.

type GetServiceHealthResult

type GetServiceHealthResult struct {
	// The datacenter in which the node is running.
	// * [`taggedAddresses`](https://www.consul.io/docs/agent/http/catalog.html#TaggedAddresses) -
	//   List of explicit LAN and WAN IP addresses for the agent.
	Datacenter *string `pulumi:"datacenter"`
	Filter     *string `pulumi:"filter"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The name of this health-check.
	Name string `pulumi:"name"`
	// The node to which the result must be sorted to.
	Near *string `pulumi:"near"`
	// The list of metadata to filter the nodes.
	NodeMeta map[string]string `pulumi:"nodeMeta"`
	// Whether to return only nodes with all checks in the
	// passing state.
	Passing *bool `pulumi:"passing"`
	// A list of entries and details about each endpoint advertising a
	// service.  Each element in the list has three attributes: `node`, `service` and
	// `checks`.  The list of the attributes of each one is detailed below.
	Results []GetServiceHealthResultType `pulumi:"results"`
	// The name of the tag used to filter the list.
	Tag     *string `pulumi:"tag"`
	WaitFor *string `pulumi:"waitFor"`
}

A collection of values returned by getServiceHealth.

func GetServiceHealth

func GetServiceHealth(ctx *pulumi.Context, args *GetServiceHealthArgs, opts ...pulumi.InvokeOption) (*GetServiceHealthResult, error)

`getServiceHealth` can be used to get the list of the instances that are currently healthy, according to their associated health-checks. The result includes the list of service instances, the node associated to each instance and its health-checks.

This resource is likely to change as frequently as the health-checks are being updated, you should expect different results in a frequent basis.

type GetServiceHealthResultCheck

type GetServiceHealthResultCheck struct {
	// The ID of this health-check.
	Id string `pulumi:"id"`
	// The service name to select.
	Name string `pulumi:"name"`
	// The name of the node associated with this health-check.
	Node string `pulumi:"node"`
	// A human readable description of the current state of the health-check.
	Notes string `pulumi:"notes"`
	// The output of the health-check.
	Output string `pulumi:"output"`
	// The ID of the service associated to this health-check.
	ServiceId string `pulumi:"serviceId"`
	// The name of the service associated with this health-check.
	ServiceName string `pulumi:"serviceName"`
	// The list of tags associated with this health-check.
	ServiceTags []string `pulumi:"serviceTags"`
	// The status of this health-check.
	Status string `pulumi:"status"`
}

type GetServiceHealthResultCheckArgs

type GetServiceHealthResultCheckArgs struct {
	// The ID of this health-check.
	Id pulumi.StringInput `pulumi:"id"`
	// The service name to select.
	Name pulumi.StringInput `pulumi:"name"`
	// The name of the node associated with this health-check.
	Node pulumi.StringInput `pulumi:"node"`
	// A human readable description of the current state of the health-check.
	Notes pulumi.StringInput `pulumi:"notes"`
	// The output of the health-check.
	Output pulumi.StringInput `pulumi:"output"`
	// The ID of the service associated to this health-check.
	ServiceId pulumi.StringInput `pulumi:"serviceId"`
	// The name of the service associated with this health-check.
	ServiceName pulumi.StringInput `pulumi:"serviceName"`
	// The list of tags associated with this health-check.
	ServiceTags pulumi.StringArrayInput `pulumi:"serviceTags"`
	// The status of this health-check.
	Status pulumi.StringInput `pulumi:"status"`
}

func (GetServiceHealthResultCheckArgs) ElementType

func (GetServiceHealthResultCheckArgs) ToGetServiceHealthResultCheckOutput

func (i GetServiceHealthResultCheckArgs) ToGetServiceHealthResultCheckOutput() GetServiceHealthResultCheckOutput

func (GetServiceHealthResultCheckArgs) ToGetServiceHealthResultCheckOutputWithContext

func (i GetServiceHealthResultCheckArgs) ToGetServiceHealthResultCheckOutputWithContext(ctx context.Context) GetServiceHealthResultCheckOutput

type GetServiceHealthResultCheckArray

type GetServiceHealthResultCheckArray []GetServiceHealthResultCheckInput

func (GetServiceHealthResultCheckArray) ElementType

func (GetServiceHealthResultCheckArray) ToGetServiceHealthResultCheckArrayOutput

func (i GetServiceHealthResultCheckArray) ToGetServiceHealthResultCheckArrayOutput() GetServiceHealthResultCheckArrayOutput

func (GetServiceHealthResultCheckArray) ToGetServiceHealthResultCheckArrayOutputWithContext

func (i GetServiceHealthResultCheckArray) ToGetServiceHealthResultCheckArrayOutputWithContext(ctx context.Context) GetServiceHealthResultCheckArrayOutput

type GetServiceHealthResultCheckArrayInput

type GetServiceHealthResultCheckArrayInput interface {
	pulumi.Input

	ToGetServiceHealthResultCheckArrayOutput() GetServiceHealthResultCheckArrayOutput
	ToGetServiceHealthResultCheckArrayOutputWithContext(context.Context) GetServiceHealthResultCheckArrayOutput
}

GetServiceHealthResultCheckArrayInput is an input type that accepts GetServiceHealthResultCheckArray and GetServiceHealthResultCheckArrayOutput values. You can construct a concrete instance of `GetServiceHealthResultCheckArrayInput` via:

GetServiceHealthResultCheckArray{ GetServiceHealthResultCheckArgs{...} }

type GetServiceHealthResultCheckArrayOutput

type GetServiceHealthResultCheckArrayOutput struct{ *pulumi.OutputState }

func (GetServiceHealthResultCheckArrayOutput) ElementType

func (GetServiceHealthResultCheckArrayOutput) Index

func (GetServiceHealthResultCheckArrayOutput) ToGetServiceHealthResultCheckArrayOutput

func (o GetServiceHealthResultCheckArrayOutput) ToGetServiceHealthResultCheckArrayOutput() GetServiceHealthResultCheckArrayOutput

func (GetServiceHealthResultCheckArrayOutput) ToGetServiceHealthResultCheckArrayOutputWithContext

func (o GetServiceHealthResultCheckArrayOutput) ToGetServiceHealthResultCheckArrayOutputWithContext(ctx context.Context) GetServiceHealthResultCheckArrayOutput

type GetServiceHealthResultCheckInput

type GetServiceHealthResultCheckInput interface {
	pulumi.Input

	ToGetServiceHealthResultCheckOutput() GetServiceHealthResultCheckOutput
	ToGetServiceHealthResultCheckOutputWithContext(context.Context) GetServiceHealthResultCheckOutput
}

GetServiceHealthResultCheckInput is an input type that accepts GetServiceHealthResultCheckArgs and GetServiceHealthResultCheckOutput values. You can construct a concrete instance of `GetServiceHealthResultCheckInput` via:

GetServiceHealthResultCheckArgs{...}

type GetServiceHealthResultCheckOutput

type GetServiceHealthResultCheckOutput struct{ *pulumi.OutputState }

func (GetServiceHealthResultCheckOutput) ElementType

func (GetServiceHealthResultCheckOutput) Id

The ID of this health-check.

func (GetServiceHealthResultCheckOutput) Name

The service name to select.

func (GetServiceHealthResultCheckOutput) Node

The name of the node associated with this health-check.

func (GetServiceHealthResultCheckOutput) Notes

A human readable description of the current state of the health-check.

func (GetServiceHealthResultCheckOutput) Output

The output of the health-check.

func (GetServiceHealthResultCheckOutput) ServiceId

The ID of the service associated to this health-check.

func (GetServiceHealthResultCheckOutput) ServiceName

The name of the service associated with this health-check.

func (GetServiceHealthResultCheckOutput) ServiceTags

The list of tags associated with this health-check.

func (GetServiceHealthResultCheckOutput) Status

The status of this health-check.

func (GetServiceHealthResultCheckOutput) ToGetServiceHealthResultCheckOutput

func (o GetServiceHealthResultCheckOutput) ToGetServiceHealthResultCheckOutput() GetServiceHealthResultCheckOutput

func (GetServiceHealthResultCheckOutput) ToGetServiceHealthResultCheckOutputWithContext

func (o GetServiceHealthResultCheckOutput) ToGetServiceHealthResultCheckOutputWithContext(ctx context.Context) GetServiceHealthResultCheckOutput

type GetServiceHealthResultNode

type GetServiceHealthResultNode struct {
	// The address of this instance.
	Address string `pulumi:"address"`
	// The Consul datacenter to query.
	Datacenter string `pulumi:"datacenter"`
	// The ID of this health-check.
	Id string `pulumi:"id"`
	// Service metadata tag information, if any.
	Meta map[string]string `pulumi:"meta"`
	// The service name to select.
	Name            string            `pulumi:"name"`
	TaggedAddresses map[string]string `pulumi:"taggedAddresses"`
}

type GetServiceHealthResultNodeArgs

type GetServiceHealthResultNodeArgs struct {
	// The address of this instance.
	Address pulumi.StringInput `pulumi:"address"`
	// The Consul datacenter to query.
	Datacenter pulumi.StringInput `pulumi:"datacenter"`
	// The ID of this health-check.
	Id pulumi.StringInput `pulumi:"id"`
	// Service metadata tag information, if any.
	Meta pulumi.StringMapInput `pulumi:"meta"`
	// The service name to select.
	Name            pulumi.StringInput    `pulumi:"name"`
	TaggedAddresses pulumi.StringMapInput `pulumi:"taggedAddresses"`
}

func (GetServiceHealthResultNodeArgs) ElementType

func (GetServiceHealthResultNodeArgs) ToGetServiceHealthResultNodeOutput

func (i GetServiceHealthResultNodeArgs) ToGetServiceHealthResultNodeOutput() GetServiceHealthResultNodeOutput

func (GetServiceHealthResultNodeArgs) ToGetServiceHealthResultNodeOutputWithContext

func (i GetServiceHealthResultNodeArgs) ToGetServiceHealthResultNodeOutputWithContext(ctx context.Context) GetServiceHealthResultNodeOutput

type GetServiceHealthResultNodeArray added in v2.3.0

type GetServiceHealthResultNodeArray []GetServiceHealthResultNodeInput

func (GetServiceHealthResultNodeArray) ElementType added in v2.3.0

func (GetServiceHealthResultNodeArray) ToGetServiceHealthResultNodeArrayOutput added in v2.3.0

func (i GetServiceHealthResultNodeArray) ToGetServiceHealthResultNodeArrayOutput() GetServiceHealthResultNodeArrayOutput

func (GetServiceHealthResultNodeArray) ToGetServiceHealthResultNodeArrayOutputWithContext added in v2.3.0

func (i GetServiceHealthResultNodeArray) ToGetServiceHealthResultNodeArrayOutputWithContext(ctx context.Context) GetServiceHealthResultNodeArrayOutput

type GetServiceHealthResultNodeArrayInput added in v2.3.0

type GetServiceHealthResultNodeArrayInput interface {
	pulumi.Input

	ToGetServiceHealthResultNodeArrayOutput() GetServiceHealthResultNodeArrayOutput
	ToGetServiceHealthResultNodeArrayOutputWithContext(context.Context) GetServiceHealthResultNodeArrayOutput
}

GetServiceHealthResultNodeArrayInput is an input type that accepts GetServiceHealthResultNodeArray and GetServiceHealthResultNodeArrayOutput values. You can construct a concrete instance of `GetServiceHealthResultNodeArrayInput` via:

GetServiceHealthResultNodeArray{ GetServiceHealthResultNodeArgs{...} }

type GetServiceHealthResultNodeArrayOutput added in v2.3.0

type GetServiceHealthResultNodeArrayOutput struct{ *pulumi.OutputState }

func (GetServiceHealthResultNodeArrayOutput) ElementType added in v2.3.0

func (GetServiceHealthResultNodeArrayOutput) Index added in v2.3.0

func (GetServiceHealthResultNodeArrayOutput) ToGetServiceHealthResultNodeArrayOutput added in v2.3.0

func (o GetServiceHealthResultNodeArrayOutput) ToGetServiceHealthResultNodeArrayOutput() GetServiceHealthResultNodeArrayOutput

func (GetServiceHealthResultNodeArrayOutput) ToGetServiceHealthResultNodeArrayOutputWithContext added in v2.3.0

func (o GetServiceHealthResultNodeArrayOutput) ToGetServiceHealthResultNodeArrayOutputWithContext(ctx context.Context) GetServiceHealthResultNodeArrayOutput

type GetServiceHealthResultNodeInput

type GetServiceHealthResultNodeInput interface {
	pulumi.Input

	ToGetServiceHealthResultNodeOutput() GetServiceHealthResultNodeOutput
	ToGetServiceHealthResultNodeOutputWithContext(context.Context) GetServiceHealthResultNodeOutput
}

GetServiceHealthResultNodeInput is an input type that accepts GetServiceHealthResultNodeArgs and GetServiceHealthResultNodeOutput values. You can construct a concrete instance of `GetServiceHealthResultNodeInput` via:

GetServiceHealthResultNodeArgs{...}

type GetServiceHealthResultNodeOutput

type GetServiceHealthResultNodeOutput struct{ *pulumi.OutputState }

func (GetServiceHealthResultNodeOutput) Address

The address of this instance.

func (GetServiceHealthResultNodeOutput) Datacenter

The Consul datacenter to query.

func (GetServiceHealthResultNodeOutput) ElementType

func (GetServiceHealthResultNodeOutput) Id

The ID of this health-check.

func (GetServiceHealthResultNodeOutput) Meta

Service metadata tag information, if any.

func (GetServiceHealthResultNodeOutput) Name

The service name to select.

func (GetServiceHealthResultNodeOutput) TaggedAddresses

func (GetServiceHealthResultNodeOutput) ToGetServiceHealthResultNodeOutput

func (o GetServiceHealthResultNodeOutput) ToGetServiceHealthResultNodeOutput() GetServiceHealthResultNodeOutput

func (GetServiceHealthResultNodeOutput) ToGetServiceHealthResultNodeOutputWithContext

func (o GetServiceHealthResultNodeOutput) ToGetServiceHealthResultNodeOutputWithContext(ctx context.Context) GetServiceHealthResultNodeOutput

type GetServiceHealthResultService

type GetServiceHealthResultService struct {
	// The address of this instance.
	Address string `pulumi:"address"`
	// The ID of this health-check.
	Id string `pulumi:"id"`
	// Service metadata tag information, if any.
	Meta map[string]string `pulumi:"meta"`
	// The service name to select.
	Name string `pulumi:"name"`
	// The port of this instance.
	Port int `pulumi:"port"`
	// The list of tags associated with this instance.
	Tags []string `pulumi:"tags"`
}

type GetServiceHealthResultServiceArgs

type GetServiceHealthResultServiceArgs struct {
	// The address of this instance.
	Address pulumi.StringInput `pulumi:"address"`
	// The ID of this health-check.
	Id pulumi.StringInput `pulumi:"id"`
	// Service metadata tag information, if any.
	Meta pulumi.StringMapInput `pulumi:"meta"`
	// The service name to select.
	Name pulumi.StringInput `pulumi:"name"`
	// The port of this instance.
	Port pulumi.IntInput `pulumi:"port"`
	// The list of tags associated with this instance.
	Tags pulumi.StringArrayInput `pulumi:"tags"`
}

func (GetServiceHealthResultServiceArgs) ElementType

func (GetServiceHealthResultServiceArgs) ToGetServiceHealthResultServiceOutput

func (i GetServiceHealthResultServiceArgs) ToGetServiceHealthResultServiceOutput() GetServiceHealthResultServiceOutput

func (GetServiceHealthResultServiceArgs) ToGetServiceHealthResultServiceOutputWithContext

func (i GetServiceHealthResultServiceArgs) ToGetServiceHealthResultServiceOutputWithContext(ctx context.Context) GetServiceHealthResultServiceOutput

type GetServiceHealthResultServiceArray added in v2.3.0

type GetServiceHealthResultServiceArray []GetServiceHealthResultServiceInput

func (GetServiceHealthResultServiceArray) ElementType added in v2.3.0

func (GetServiceHealthResultServiceArray) ToGetServiceHealthResultServiceArrayOutput added in v2.3.0

func (i GetServiceHealthResultServiceArray) ToGetServiceHealthResultServiceArrayOutput() GetServiceHealthResultServiceArrayOutput

func (GetServiceHealthResultServiceArray) ToGetServiceHealthResultServiceArrayOutputWithContext added in v2.3.0

func (i GetServiceHealthResultServiceArray) ToGetServiceHealthResultServiceArrayOutputWithContext(ctx context.Context) GetServiceHealthResultServiceArrayOutput

type GetServiceHealthResultServiceArrayInput added in v2.3.0

type GetServiceHealthResultServiceArrayInput interface {
	pulumi.Input

	ToGetServiceHealthResultServiceArrayOutput() GetServiceHealthResultServiceArrayOutput
	ToGetServiceHealthResultServiceArrayOutputWithContext(context.Context) GetServiceHealthResultServiceArrayOutput
}

GetServiceHealthResultServiceArrayInput is an input type that accepts GetServiceHealthResultServiceArray and GetServiceHealthResultServiceArrayOutput values. You can construct a concrete instance of `GetServiceHealthResultServiceArrayInput` via:

GetServiceHealthResultServiceArray{ GetServiceHealthResultServiceArgs{...} }

type GetServiceHealthResultServiceArrayOutput added in v2.3.0

type GetServiceHealthResultServiceArrayOutput struct{ *pulumi.OutputState }

func (GetServiceHealthResultServiceArrayOutput) ElementType added in v2.3.0

func (GetServiceHealthResultServiceArrayOutput) Index added in v2.3.0

func (GetServiceHealthResultServiceArrayOutput) ToGetServiceHealthResultServiceArrayOutput added in v2.3.0

func (o GetServiceHealthResultServiceArrayOutput) ToGetServiceHealthResultServiceArrayOutput() GetServiceHealthResultServiceArrayOutput

func (GetServiceHealthResultServiceArrayOutput) ToGetServiceHealthResultServiceArrayOutputWithContext added in v2.3.0

func (o GetServiceHealthResultServiceArrayOutput) ToGetServiceHealthResultServiceArrayOutputWithContext(ctx context.Context) GetServiceHealthResultServiceArrayOutput

type GetServiceHealthResultServiceInput

type GetServiceHealthResultServiceInput interface {
	pulumi.Input

	ToGetServiceHealthResultServiceOutput() GetServiceHealthResultServiceOutput
	ToGetServiceHealthResultServiceOutputWithContext(context.Context) GetServiceHealthResultServiceOutput
}

GetServiceHealthResultServiceInput is an input type that accepts GetServiceHealthResultServiceArgs and GetServiceHealthResultServiceOutput values. You can construct a concrete instance of `GetServiceHealthResultServiceInput` via:

GetServiceHealthResultServiceArgs{...}

type GetServiceHealthResultServiceOutput

type GetServiceHealthResultServiceOutput struct{ *pulumi.OutputState }

func (GetServiceHealthResultServiceOutput) Address

The address of this instance.

func (GetServiceHealthResultServiceOutput) ElementType

func (GetServiceHealthResultServiceOutput) Id

The ID of this health-check.

func (GetServiceHealthResultServiceOutput) Meta

Service metadata tag information, if any.

func (GetServiceHealthResultServiceOutput) Name

The service name to select.

func (GetServiceHealthResultServiceOutput) Port

The port of this instance.

func (GetServiceHealthResultServiceOutput) Tags

The list of tags associated with this instance.

func (GetServiceHealthResultServiceOutput) ToGetServiceHealthResultServiceOutput

func (o GetServiceHealthResultServiceOutput) ToGetServiceHealthResultServiceOutput() GetServiceHealthResultServiceOutput

func (GetServiceHealthResultServiceOutput) ToGetServiceHealthResultServiceOutputWithContext

func (o GetServiceHealthResultServiceOutput) ToGetServiceHealthResultServiceOutputWithContext(ctx context.Context) GetServiceHealthResultServiceOutput

type GetServiceHealthResultType

type GetServiceHealthResultType struct {
	Checks []GetServiceHealthResultCheck `pulumi:"checks"`
	// The name of the node associated with this health-check.
	Nodes    []GetServiceHealthResultNode    `pulumi:"nodes"`
	Services []GetServiceHealthResultService `pulumi:"services"`
}

type GetServiceHealthResultTypeArgs

type GetServiceHealthResultTypeArgs struct {
	Checks GetServiceHealthResultCheckArrayInput `pulumi:"checks"`
	// The name of the node associated with this health-check.
	Nodes    GetServiceHealthResultNodeArrayInput    `pulumi:"nodes"`
	Services GetServiceHealthResultServiceArrayInput `pulumi:"services"`
}

func (GetServiceHealthResultTypeArgs) ElementType

func (GetServiceHealthResultTypeArgs) ToGetServiceHealthResultTypeOutput

func (i GetServiceHealthResultTypeArgs) ToGetServiceHealthResultTypeOutput() GetServiceHealthResultTypeOutput

func (GetServiceHealthResultTypeArgs) ToGetServiceHealthResultTypeOutputWithContext

func (i GetServiceHealthResultTypeArgs) ToGetServiceHealthResultTypeOutputWithContext(ctx context.Context) GetServiceHealthResultTypeOutput

type GetServiceHealthResultTypeArray

type GetServiceHealthResultTypeArray []GetServiceHealthResultTypeInput

func (GetServiceHealthResultTypeArray) ElementType

func (GetServiceHealthResultTypeArray) ToGetServiceHealthResultTypeArrayOutput

func (i GetServiceHealthResultTypeArray) ToGetServiceHealthResultTypeArrayOutput() GetServiceHealthResultTypeArrayOutput

func (GetServiceHealthResultTypeArray) ToGetServiceHealthResultTypeArrayOutputWithContext

func (i GetServiceHealthResultTypeArray) ToGetServiceHealthResultTypeArrayOutputWithContext(ctx context.Context) GetServiceHealthResultTypeArrayOutput

type GetServiceHealthResultTypeArrayInput

type GetServiceHealthResultTypeArrayInput interface {
	pulumi.Input

	ToGetServiceHealthResultTypeArrayOutput() GetServiceHealthResultTypeArrayOutput
	ToGetServiceHealthResultTypeArrayOutputWithContext(context.Context) GetServiceHealthResultTypeArrayOutput
}

GetServiceHealthResultTypeArrayInput is an input type that accepts GetServiceHealthResultTypeArray and GetServiceHealthResultTypeArrayOutput values. You can construct a concrete instance of `GetServiceHealthResultTypeArrayInput` via:

GetServiceHealthResultTypeArray{ GetServiceHealthResultTypeArgs{...} }

type GetServiceHealthResultTypeArrayOutput

type GetServiceHealthResultTypeArrayOutput struct{ *pulumi.OutputState }

func (GetServiceHealthResultTypeArrayOutput) ElementType

func (GetServiceHealthResultTypeArrayOutput) Index

func (GetServiceHealthResultTypeArrayOutput) ToGetServiceHealthResultTypeArrayOutput

func (o GetServiceHealthResultTypeArrayOutput) ToGetServiceHealthResultTypeArrayOutput() GetServiceHealthResultTypeArrayOutput

func (GetServiceHealthResultTypeArrayOutput) ToGetServiceHealthResultTypeArrayOutputWithContext

func (o GetServiceHealthResultTypeArrayOutput) ToGetServiceHealthResultTypeArrayOutputWithContext(ctx context.Context) GetServiceHealthResultTypeArrayOutput

type GetServiceHealthResultTypeInput

type GetServiceHealthResultTypeInput interface {
	pulumi.Input

	ToGetServiceHealthResultTypeOutput() GetServiceHealthResultTypeOutput
	ToGetServiceHealthResultTypeOutputWithContext(context.Context) GetServiceHealthResultTypeOutput
}

GetServiceHealthResultTypeInput is an input type that accepts GetServiceHealthResultTypeArgs and GetServiceHealthResultTypeOutput values. You can construct a concrete instance of `GetServiceHealthResultTypeInput` via:

GetServiceHealthResultTypeArgs{...}

type GetServiceHealthResultTypeOutput

type GetServiceHealthResultTypeOutput struct{ *pulumi.OutputState }

func (GetServiceHealthResultTypeOutput) Checks

func (GetServiceHealthResultTypeOutput) ElementType

func (GetServiceHealthResultTypeOutput) Nodes added in v2.3.0

The name of the node associated with this health-check.

func (GetServiceHealthResultTypeOutput) Services added in v2.3.0

func (GetServiceHealthResultTypeOutput) ToGetServiceHealthResultTypeOutput

func (o GetServiceHealthResultTypeOutput) ToGetServiceHealthResultTypeOutput() GetServiceHealthResultTypeOutput

func (GetServiceHealthResultTypeOutput) ToGetServiceHealthResultTypeOutputWithContext

func (o GetServiceHealthResultTypeOutput) ToGetServiceHealthResultTypeOutputWithContext(ctx context.Context) GetServiceHealthResultTypeOutput

type GetServiceQueryOption

type GetServiceQueryOption struct {
	// When `true`, the default, allow responses from
	// Consul servers that are followers.
	AllowStale *bool `pulumi:"allowStale"`
	// The Consul datacenter to query.  Defaults to the
	// same value found in `queryOptions` parameter specified below, or if that is
	// empty, the `datacenter` value found in the Consul agent that this provider is
	// configured to talk to.
	Datacenter *string `pulumi:"datacenter"`
	// The namespace to lookup the service.
	Namespace *string           `pulumi:"namespace"`
	Near      *string           `pulumi:"near"`
	NodeMeta  map[string]string `pulumi:"nodeMeta"`
	// When `true` force the client to perform a
	// read on at least quorum servers and verify the result is the same.  Defaults
	// to `false`.
	RequireConsistent *bool `pulumi:"requireConsistent"`
	// Specify the Consul ACL token to use when performing the
	// request.  This defaults to the same API token configured by the `consul`
	// provider but may be overriden if necessary.
	Token *string `pulumi:"token"`
	// Index number used to enable blocking quereis.
	WaitIndex *int `pulumi:"waitIndex"`
	// Max time the client should wait for a blocking query
	// to return.
	WaitTime *string `pulumi:"waitTime"`
}

type GetServiceQueryOptionArgs

type GetServiceQueryOptionArgs struct {
	// When `true`, the default, allow responses from
	// Consul servers that are followers.
	AllowStale pulumi.BoolPtrInput `pulumi:"allowStale"`
	// The Consul datacenter to query.  Defaults to the
	// same value found in `queryOptions` parameter specified below, or if that is
	// empty, the `datacenter` value found in the Consul agent that this provider is
	// configured to talk to.
	Datacenter pulumi.StringPtrInput `pulumi:"datacenter"`
	// The namespace to lookup the service.
	Namespace pulumi.StringPtrInput `pulumi:"namespace"`
	Near      pulumi.StringPtrInput `pulumi:"near"`
	NodeMeta  pulumi.StringMapInput `pulumi:"nodeMeta"`
	// When `true` force the client to perform a
	// read on at least quorum servers and verify the result is the same.  Defaults
	// to `false`.
	RequireConsistent pulumi.BoolPtrInput `pulumi:"requireConsistent"`
	// Specify the Consul ACL token to use when performing the
	// request.  This defaults to the same API token configured by the `consul`
	// provider but may be overriden if necessary.
	Token pulumi.StringPtrInput `pulumi:"token"`
	// Index number used to enable blocking quereis.
	WaitIndex pulumi.IntPtrInput `pulumi:"waitIndex"`
	// Max time the client should wait for a blocking query
	// to return.
	WaitTime pulumi.StringPtrInput `pulumi:"waitTime"`
}

func (GetServiceQueryOptionArgs) ElementType

func (GetServiceQueryOptionArgs) ElementType() reflect.Type

func (GetServiceQueryOptionArgs) ToGetServiceQueryOptionOutput

func (i GetServiceQueryOptionArgs) ToGetServiceQueryOptionOutput() GetServiceQueryOptionOutput

func (GetServiceQueryOptionArgs) ToGetServiceQueryOptionOutputWithContext

func (i GetServiceQueryOptionArgs) ToGetServiceQueryOptionOutputWithContext(ctx context.Context) GetServiceQueryOptionOutput

type GetServiceQueryOptionArray

type GetServiceQueryOptionArray []GetServiceQueryOptionInput

func (GetServiceQueryOptionArray) ElementType

func (GetServiceQueryOptionArray) ElementType() reflect.Type

func (GetServiceQueryOptionArray) ToGetServiceQueryOptionArrayOutput

func (i GetServiceQueryOptionArray) ToGetServiceQueryOptionArrayOutput() GetServiceQueryOptionArrayOutput

func (GetServiceQueryOptionArray) ToGetServiceQueryOptionArrayOutputWithContext

func (i GetServiceQueryOptionArray) ToGetServiceQueryOptionArrayOutputWithContext(ctx context.Context) GetServiceQueryOptionArrayOutput

type GetServiceQueryOptionArrayInput

type GetServiceQueryOptionArrayInput interface {
	pulumi.Input

	ToGetServiceQueryOptionArrayOutput() GetServiceQueryOptionArrayOutput
	ToGetServiceQueryOptionArrayOutputWithContext(context.Context) GetServiceQueryOptionArrayOutput
}

GetServiceQueryOptionArrayInput is an input type that accepts GetServiceQueryOptionArray and GetServiceQueryOptionArrayOutput values. You can construct a concrete instance of `GetServiceQueryOptionArrayInput` via:

GetServiceQueryOptionArray{ GetServiceQueryOptionArgs{...} }

type GetServiceQueryOptionArrayOutput

type GetServiceQueryOptionArrayOutput struct{ *pulumi.OutputState }

func (GetServiceQueryOptionArrayOutput) ElementType

func (GetServiceQueryOptionArrayOutput) Index

func (GetServiceQueryOptionArrayOutput) ToGetServiceQueryOptionArrayOutput

func (o GetServiceQueryOptionArrayOutput) ToGetServiceQueryOptionArrayOutput() GetServiceQueryOptionArrayOutput

func (GetServiceQueryOptionArrayOutput) ToGetServiceQueryOptionArrayOutputWithContext

func (o GetServiceQueryOptionArrayOutput) ToGetServiceQueryOptionArrayOutputWithContext(ctx context.Context) GetServiceQueryOptionArrayOutput

type GetServiceQueryOptionInput

type GetServiceQueryOptionInput interface {
	pulumi.Input

	ToGetServiceQueryOptionOutput() GetServiceQueryOptionOutput
	ToGetServiceQueryOptionOutputWithContext(context.Context) GetServiceQueryOptionOutput
}

GetServiceQueryOptionInput is an input type that accepts GetServiceQueryOptionArgs and GetServiceQueryOptionOutput values. You can construct a concrete instance of `GetServiceQueryOptionInput` via:

GetServiceQueryOptionArgs{...}

type GetServiceQueryOptionOutput

type GetServiceQueryOptionOutput struct{ *pulumi.OutputState }

func (GetServiceQueryOptionOutput) AllowStale

When `true`, the default, allow responses from Consul servers that are followers.

func (GetServiceQueryOptionOutput) Datacenter

The Consul datacenter to query. Defaults to the same value found in `queryOptions` parameter specified below, or if that is empty, the `datacenter` value found in the Consul agent that this provider is configured to talk to.

func (GetServiceQueryOptionOutput) ElementType

func (GetServiceQueryOptionOutput) Namespace

The namespace to lookup the service.

func (GetServiceQueryOptionOutput) Near

func (GetServiceQueryOptionOutput) NodeMeta

func (GetServiceQueryOptionOutput) RequireConsistent

func (o GetServiceQueryOptionOutput) RequireConsistent() pulumi.BoolPtrOutput

When `true` force the client to perform a read on at least quorum servers and verify the result is the same. Defaults to `false`.

func (GetServiceQueryOptionOutput) ToGetServiceQueryOptionOutput

func (o GetServiceQueryOptionOutput) ToGetServiceQueryOptionOutput() GetServiceQueryOptionOutput

func (GetServiceQueryOptionOutput) ToGetServiceQueryOptionOutputWithContext

func (o GetServiceQueryOptionOutput) ToGetServiceQueryOptionOutputWithContext(ctx context.Context) GetServiceQueryOptionOutput

func (GetServiceQueryOptionOutput) Token

Specify the Consul ACL token to use when performing the request. This defaults to the same API token configured by the `consul` provider but may be overriden if necessary.

func (GetServiceQueryOptionOutput) WaitIndex

Index number used to enable blocking quereis.

func (GetServiceQueryOptionOutput) WaitTime

Max time the client should wait for a blocking query to return.

type GetServiceService

type GetServiceService struct {
	Address           string            `pulumi:"address"`
	CreateIndex       string            `pulumi:"createIndex"`
	EnableTagOverride string            `pulumi:"enableTagOverride"`
	Id                string            `pulumi:"id"`
	Meta              map[string]string `pulumi:"meta"`
	ModifyIndex       string            `pulumi:"modifyIndex"`
	// The service name to select.
	Name        string `pulumi:"name"`
	NodeAddress string `pulumi:"nodeAddress"`
	// The Node ID of the Consul agent advertising the service.
	// * [`nodeMeta`](https://www.consul.io/docs/agent/http/catalog.html#Meta) - Node
	//   meta data tag information, if any.
	// * [`nodeName`](https://www.consul.io/docs/agent/http/catalog.html#Node) - The
	//   name of the Consul node.
	// * [`address`](https://www.consul.io/docs/agent/http/catalog.html#ServiceAddress) -
	//   The IP address of the service.  If the `ServiceAddress` in the Consul catalog
	//   is empty, this value is automatically populated with the `nodeAddress` (the
	//   `Address` in the Consul Catalog).
	// * [`enableTagOverride`](https://www.consul.io/docs/agent/http/catalog.html#ServiceEnableTagOverride) -
	//   Whether service tags can be overridden on this service.
	// * [`id`](https://www.consul.io/docs/agent/http/catalog.html#ServiceID) - A
	//   unique service instance identifier.
	// * [`name`](https://www.consul.io/docs/agent/http/catalog.html#ServiceName) - The
	//   name of the service.
	// * [`port`](https://www.consul.io/docs/agent/http/catalog.html#ServicePort) -
	//   Port number of the service.
	// * [`taggedAddresses`](https://www.consul.io/docs/agent/http/catalog.html#TaggedAddresses) -
	//   List of explicit LAN and WAN IP addresses for the agent.
	// * [`tags`](https://www.consul.io/docs/agent/http/catalog.html#ServiceTags) -
	//   List of tags for the service.
	// * [`meta`](https://www.consul.io/docs/agent/http/catalog.html#Meta) - Service meta
	//   data tag information, if any.
	NodeId          string            `pulumi:"nodeId"`
	NodeMeta        map[string]string `pulumi:"nodeMeta"`
	NodeName        string            `pulumi:"nodeName"`
	Port            string            `pulumi:"port"`
	TaggedAddresses map[string]string `pulumi:"taggedAddresses"`
	Tags            []string          `pulumi:"tags"`
}

type GetServiceServiceArgs

type GetServiceServiceArgs struct {
	Address           pulumi.StringInput    `pulumi:"address"`
	CreateIndex       pulumi.StringInput    `pulumi:"createIndex"`
	EnableTagOverride pulumi.StringInput    `pulumi:"enableTagOverride"`
	Id                pulumi.StringInput    `pulumi:"id"`
	Meta              pulumi.StringMapInput `pulumi:"meta"`
	ModifyIndex       pulumi.StringInput    `pulumi:"modifyIndex"`
	// The service name to select.
	Name        pulumi.StringInput `pulumi:"name"`
	NodeAddress pulumi.StringInput `pulumi:"nodeAddress"`
	// The Node ID of the Consul agent advertising the service.
	// * [`nodeMeta`](https://www.consul.io/docs/agent/http/catalog.html#Meta) - Node
	//   meta data tag information, if any.
	// * [`nodeName`](https://www.consul.io/docs/agent/http/catalog.html#Node) - The
	//   name of the Consul node.
	// * [`address`](https://www.consul.io/docs/agent/http/catalog.html#ServiceAddress) -
	//   The IP address of the service.  If the `ServiceAddress` in the Consul catalog
	//   is empty, this value is automatically populated with the `nodeAddress` (the
	//   `Address` in the Consul Catalog).
	// * [`enableTagOverride`](https://www.consul.io/docs/agent/http/catalog.html#ServiceEnableTagOverride) -
	//   Whether service tags can be overridden on this service.
	// * [`id`](https://www.consul.io/docs/agent/http/catalog.html#ServiceID) - A
	//   unique service instance identifier.
	// * [`name`](https://www.consul.io/docs/agent/http/catalog.html#ServiceName) - The
	//   name of the service.
	// * [`port`](https://www.consul.io/docs/agent/http/catalog.html#ServicePort) -
	//   Port number of the service.
	// * [`taggedAddresses`](https://www.consul.io/docs/agent/http/catalog.html#TaggedAddresses) -
	//   List of explicit LAN and WAN IP addresses for the agent.
	// * [`tags`](https://www.consul.io/docs/agent/http/catalog.html#ServiceTags) -
	//   List of tags for the service.
	// * [`meta`](https://www.consul.io/docs/agent/http/catalog.html#Meta) - Service meta
	//   data tag information, if any.
	NodeId          pulumi.StringInput      `pulumi:"nodeId"`
	NodeMeta        pulumi.StringMapInput   `pulumi:"nodeMeta"`
	NodeName        pulumi.StringInput      `pulumi:"nodeName"`
	Port            pulumi.StringInput      `pulumi:"port"`
	TaggedAddresses pulumi.StringMapInput   `pulumi:"taggedAddresses"`
	Tags            pulumi.StringArrayInput `pulumi:"tags"`
}

func (GetServiceServiceArgs) ElementType

func (GetServiceServiceArgs) ElementType() reflect.Type

func (GetServiceServiceArgs) ToGetServiceServiceOutput

func (i GetServiceServiceArgs) ToGetServiceServiceOutput() GetServiceServiceOutput

func (GetServiceServiceArgs) ToGetServiceServiceOutputWithContext

func (i GetServiceServiceArgs) ToGetServiceServiceOutputWithContext(ctx context.Context) GetServiceServiceOutput

type GetServiceServiceArray

type GetServiceServiceArray []GetServiceServiceInput

func (GetServiceServiceArray) ElementType

func (GetServiceServiceArray) ElementType() reflect.Type

func (GetServiceServiceArray) ToGetServiceServiceArrayOutput

func (i GetServiceServiceArray) ToGetServiceServiceArrayOutput() GetServiceServiceArrayOutput

func (GetServiceServiceArray) ToGetServiceServiceArrayOutputWithContext

func (i GetServiceServiceArray) ToGetServiceServiceArrayOutputWithContext(ctx context.Context) GetServiceServiceArrayOutput

type GetServiceServiceArrayInput

type GetServiceServiceArrayInput interface {
	pulumi.Input

	ToGetServiceServiceArrayOutput() GetServiceServiceArrayOutput
	ToGetServiceServiceArrayOutputWithContext(context.Context) GetServiceServiceArrayOutput
}

GetServiceServiceArrayInput is an input type that accepts GetServiceServiceArray and GetServiceServiceArrayOutput values. You can construct a concrete instance of `GetServiceServiceArrayInput` via:

GetServiceServiceArray{ GetServiceServiceArgs{...} }

type GetServiceServiceArrayOutput

type GetServiceServiceArrayOutput struct{ *pulumi.OutputState }

func (GetServiceServiceArrayOutput) ElementType

func (GetServiceServiceArrayOutput) Index

func (GetServiceServiceArrayOutput) ToGetServiceServiceArrayOutput

func (o GetServiceServiceArrayOutput) ToGetServiceServiceArrayOutput() GetServiceServiceArrayOutput

func (GetServiceServiceArrayOutput) ToGetServiceServiceArrayOutputWithContext

func (o GetServiceServiceArrayOutput) ToGetServiceServiceArrayOutputWithContext(ctx context.Context) GetServiceServiceArrayOutput

type GetServiceServiceInput

type GetServiceServiceInput interface {
	pulumi.Input

	ToGetServiceServiceOutput() GetServiceServiceOutput
	ToGetServiceServiceOutputWithContext(context.Context) GetServiceServiceOutput
}

GetServiceServiceInput is an input type that accepts GetServiceServiceArgs and GetServiceServiceOutput values. You can construct a concrete instance of `GetServiceServiceInput` via:

GetServiceServiceArgs{...}

type GetServiceServiceOutput

type GetServiceServiceOutput struct{ *pulumi.OutputState }

func (GetServiceServiceOutput) Address

func (GetServiceServiceOutput) CreateIndex

func (GetServiceServiceOutput) ElementType

func (GetServiceServiceOutput) ElementType() reflect.Type

func (GetServiceServiceOutput) EnableTagOverride

func (o GetServiceServiceOutput) EnableTagOverride() pulumi.StringOutput

func (GetServiceServiceOutput) Id

func (GetServiceServiceOutput) Meta

func (GetServiceServiceOutput) ModifyIndex

func (GetServiceServiceOutput) Name

The service name to select.

func (GetServiceServiceOutput) NodeAddress

func (GetServiceServiceOutput) NodeId

The Node ID of the Consul agent advertising the service.

func (GetServiceServiceOutput) NodeMeta

func (GetServiceServiceOutput) NodeName

func (GetServiceServiceOutput) Port

func (GetServiceServiceOutput) TaggedAddresses

func (o GetServiceServiceOutput) TaggedAddresses() pulumi.StringMapOutput

func (GetServiceServiceOutput) Tags

func (GetServiceServiceOutput) ToGetServiceServiceOutput

func (o GetServiceServiceOutput) ToGetServiceServiceOutput() GetServiceServiceOutput

func (GetServiceServiceOutput) ToGetServiceServiceOutputWithContext

func (o GetServiceServiceOutput) ToGetServiceServiceOutputWithContext(ctx context.Context) GetServiceServiceOutput

type GetServicesArgs

type GetServicesArgs struct {
	// See below.
	QueryOptions []GetServicesQueryOption `pulumi:"queryOptions"`
}

A collection of arguments for invoking getServices.

type GetServicesQueryOption

type GetServicesQueryOption struct {
	// When `true`, the default, allow responses from
	// Consul servers that are followers.
	AllowStale *bool `pulumi:"allowStale"`
	// The Consul datacenter to query.  Defaults to the
	// same value found in `queryOptions` parameter specified below, or if that is
	// empty, the `datacenter` value found in the Consul agent that this provider is
	// configured to talk to.
	Datacenter *string `pulumi:"datacenter"`
	// The namespace to lookup the services.
	Namespace *string           `pulumi:"namespace"`
	Near      *string           `pulumi:"near"`
	NodeMeta  map[string]string `pulumi:"nodeMeta"`
	// When `true` force the client to perform a
	// read on at least quorum servers and verify the result is the same.  Defaults
	// to `false`.
	RequireConsistent *bool `pulumi:"requireConsistent"`
	// Specify the Consul ACL token to use when performing the
	// request.  This defaults to the same API token configured by the `consul`
	// provider but may be overriden if necessary.
	Token *string `pulumi:"token"`
	// Index number used to enable blocking quereis.
	WaitIndex *int `pulumi:"waitIndex"`
	// Max time the client should wait for a blocking query
	// to return.
	WaitTime *string `pulumi:"waitTime"`
}

type GetServicesQueryOptionArgs

type GetServicesQueryOptionArgs struct {
	// When `true`, the default, allow responses from
	// Consul servers that are followers.
	AllowStale pulumi.BoolPtrInput `pulumi:"allowStale"`
	// The Consul datacenter to query.  Defaults to the
	// same value found in `queryOptions` parameter specified below, or if that is
	// empty, the `datacenter` value found in the Consul agent that this provider is
	// configured to talk to.
	Datacenter pulumi.StringPtrInput `pulumi:"datacenter"`
	// The namespace to lookup the services.
	Namespace pulumi.StringPtrInput `pulumi:"namespace"`
	Near      pulumi.StringPtrInput `pulumi:"near"`
	NodeMeta  pulumi.StringMapInput `pulumi:"nodeMeta"`
	// When `true` force the client to perform a
	// read on at least quorum servers and verify the result is the same.  Defaults
	// to `false`.
	RequireConsistent pulumi.BoolPtrInput `pulumi:"requireConsistent"`
	// Specify the Consul ACL token to use when performing the
	// request.  This defaults to the same API token configured by the `consul`
	// provider but may be overriden if necessary.
	Token pulumi.StringPtrInput `pulumi:"token"`
	// Index number used to enable blocking quereis.
	WaitIndex pulumi.IntPtrInput `pulumi:"waitIndex"`
	// Max time the client should wait for a blocking query
	// to return.
	WaitTime pulumi.StringPtrInput `pulumi:"waitTime"`
}

func (GetServicesQueryOptionArgs) ElementType

func (GetServicesQueryOptionArgs) ElementType() reflect.Type

func (GetServicesQueryOptionArgs) ToGetServicesQueryOptionOutput

func (i GetServicesQueryOptionArgs) ToGetServicesQueryOptionOutput() GetServicesQueryOptionOutput

func (GetServicesQueryOptionArgs) ToGetServicesQueryOptionOutputWithContext

func (i GetServicesQueryOptionArgs) ToGetServicesQueryOptionOutputWithContext(ctx context.Context) GetServicesQueryOptionOutput

type GetServicesQueryOptionArray

type GetServicesQueryOptionArray []GetServicesQueryOptionInput

func (GetServicesQueryOptionArray) ElementType

func (GetServicesQueryOptionArray) ToGetServicesQueryOptionArrayOutput

func (i GetServicesQueryOptionArray) ToGetServicesQueryOptionArrayOutput() GetServicesQueryOptionArrayOutput

func (GetServicesQueryOptionArray) ToGetServicesQueryOptionArrayOutputWithContext

func (i GetServicesQueryOptionArray) ToGetServicesQueryOptionArrayOutputWithContext(ctx context.Context) GetServicesQueryOptionArrayOutput

type GetServicesQueryOptionArrayInput

type GetServicesQueryOptionArrayInput interface {
	pulumi.Input

	ToGetServicesQueryOptionArrayOutput() GetServicesQueryOptionArrayOutput
	ToGetServicesQueryOptionArrayOutputWithContext(context.Context) GetServicesQueryOptionArrayOutput
}

GetServicesQueryOptionArrayInput is an input type that accepts GetServicesQueryOptionArray and GetServicesQueryOptionArrayOutput values. You can construct a concrete instance of `GetServicesQueryOptionArrayInput` via:

GetServicesQueryOptionArray{ GetServicesQueryOptionArgs{...} }

type GetServicesQueryOptionArrayOutput

type GetServicesQueryOptionArrayOutput struct{ *pulumi.OutputState }

func (GetServicesQueryOptionArrayOutput) ElementType

func (GetServicesQueryOptionArrayOutput) Index

func (GetServicesQueryOptionArrayOutput) ToGetServicesQueryOptionArrayOutput

func (o GetServicesQueryOptionArrayOutput) ToGetServicesQueryOptionArrayOutput() GetServicesQueryOptionArrayOutput

func (GetServicesQueryOptionArrayOutput) ToGetServicesQueryOptionArrayOutputWithContext

func (o GetServicesQueryOptionArrayOutput) ToGetServicesQueryOptionArrayOutputWithContext(ctx context.Context) GetServicesQueryOptionArrayOutput

type GetServicesQueryOptionInput

type GetServicesQueryOptionInput interface {
	pulumi.Input

	ToGetServicesQueryOptionOutput() GetServicesQueryOptionOutput
	ToGetServicesQueryOptionOutputWithContext(context.Context) GetServicesQueryOptionOutput
}

GetServicesQueryOptionInput is an input type that accepts GetServicesQueryOptionArgs and GetServicesQueryOptionOutput values. You can construct a concrete instance of `GetServicesQueryOptionInput` via:

GetServicesQueryOptionArgs{...}

type GetServicesQueryOptionOutput

type GetServicesQueryOptionOutput struct{ *pulumi.OutputState }

func (GetServicesQueryOptionOutput) AllowStale

When `true`, the default, allow responses from Consul servers that are followers.

func (GetServicesQueryOptionOutput) Datacenter

The Consul datacenter to query. Defaults to the same value found in `queryOptions` parameter specified below, or if that is empty, the `datacenter` value found in the Consul agent that this provider is configured to talk to.

func (GetServicesQueryOptionOutput) ElementType

func (GetServicesQueryOptionOutput) Namespace

The namespace to lookup the services.

func (GetServicesQueryOptionOutput) Near

func (GetServicesQueryOptionOutput) NodeMeta

func (GetServicesQueryOptionOutput) RequireConsistent

func (o GetServicesQueryOptionOutput) RequireConsistent() pulumi.BoolPtrOutput

When `true` force the client to perform a read on at least quorum servers and verify the result is the same. Defaults to `false`.

func (GetServicesQueryOptionOutput) ToGetServicesQueryOptionOutput

func (o GetServicesQueryOptionOutput) ToGetServicesQueryOptionOutput() GetServicesQueryOptionOutput

func (GetServicesQueryOptionOutput) ToGetServicesQueryOptionOutputWithContext

func (o GetServicesQueryOptionOutput) ToGetServicesQueryOptionOutputWithContext(ctx context.Context) GetServicesQueryOptionOutput

func (GetServicesQueryOptionOutput) Token

Specify the Consul ACL token to use when performing the request. This defaults to the same API token configured by the `consul` provider but may be overriden if necessary.

func (GetServicesQueryOptionOutput) WaitIndex

Index number used to enable blocking quereis.

func (GetServicesQueryOptionOutput) WaitTime

Max time the client should wait for a blocking query to return.

type GetServicesResult

type GetServicesResult struct {
	// The datacenter the keys are being read from to.
	Datacenter string `pulumi:"datacenter"`
	// The provider-assigned unique ID for this managed resource.
	Id           string                   `pulumi:"id"`
	Names        []string                 `pulumi:"names"`
	QueryOptions []GetServicesQueryOption `pulumi:"queryOptions"`
	Services     map[string]string        `pulumi:"services"`
}

A collection of values returned by getServices.

func GetServices

func GetServices(ctx *pulumi.Context, args *GetServicesArgs, opts ...pulumi.InvokeOption) (*GetServicesResult, error)

The `getServices` data source returns a list of Consul services that have been registered with the Consul cluster in a given datacenter. By specifying a different datacenter in the `queryOptions` it is possible to retrieve a list of services from a different WAN-attached Consul datacenter.

This data source is different from the `Service` (singular) data source, which provides a detailed response about a specific Consul service.

type Intention

type Intention struct {
	pulumi.CustomResourceState

	// The intention action. Must be one of `allow` or `deny`.
	Action pulumi.StringOutput `pulumi:"action"`
	// Optional description that can be used by Consul
	// tooling, but is not used internally.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// The name of the destination service for the intention. This
	// service does not have to exist.
	DestinationName pulumi.StringOutput `pulumi:"destinationName"`
	// The destination
	// namespace of the intention.
	DestinationNamespace pulumi.StringPtrOutput `pulumi:"destinationNamespace"`
	// Key/value pairs that are opaque to Consul and are associated
	// with the intention.
	Meta pulumi.StringMapOutput `pulumi:"meta"`
	// The name of the source service for the intention. This
	// service does not have to exist.
	SourceName pulumi.StringOutput `pulumi:"sourceName"`
	// The source namespace of the
	// intention.
	SourceNamespace pulumi.StringPtrOutput `pulumi:"sourceNamespace"`
}

[Intentions](https://www.consul.io/docs/connect/intentions.html) are used to define rules for which services may connect to one another when using [Consul Connect](https://www.consul.io/docs/connect/index.html).

It is appropriate to either reference existing services or specify non-existent services that will be created in the future when creating intentions. This resource can be used in conjunction with the `Service` datasource when referencing services registered on nodes that have a running Consul agent.

## Example Usage

Create a simplest intention with static service names:

```go package main

import (

"github.com/pulumi/pulumi-consul/sdk/v2/go/consul"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := consul.NewIntention(ctx, "database", &consul.IntentionArgs{
			Action:          pulumi.String("allow"),
			DestinationName: pulumi.String("db"),
			SourceName:      pulumi.String("api"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

Referencing a known service via a datasource:

```go package main

import (

"github.com/pulumi/pulumi-consul/sdk/v2/go/consul"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := consul.NewIntention(ctx, "database", &consul.IntentionArgs{
			Action:          pulumi.String("allow"),
			DestinationName: pulumi.String(consul_service.Pg.Name),
			SourceName:      pulumi.String("api"),
		})
		if err != nil {
			return err
		}
		_, err = consul.LookupService(ctx, &consul.LookupServiceArgs{
			Name: "postgresql",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetIntention

func GetIntention(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *IntentionState, opts ...pulumi.ResourceOption) (*Intention, error)

GetIntention gets an existing Intention resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewIntention

func NewIntention(ctx *pulumi.Context,
	name string, args *IntentionArgs, opts ...pulumi.ResourceOption) (*Intention, error)

NewIntention registers a new resource with the given unique name, arguments, and options.

type IntentionArgs

type IntentionArgs struct {
	// The intention action. Must be one of `allow` or `deny`.
	Action pulumi.StringInput
	// Optional description that can be used by Consul
	// tooling, but is not used internally.
	Description pulumi.StringPtrInput
	// The name of the destination service for the intention. This
	// service does not have to exist.
	DestinationName pulumi.StringInput
	// The destination
	// namespace of the intention.
	DestinationNamespace pulumi.StringPtrInput
	// Key/value pairs that are opaque to Consul and are associated
	// with the intention.
	Meta pulumi.StringMapInput
	// The name of the source service for the intention. This
	// service does not have to exist.
	SourceName pulumi.StringInput
	// The source namespace of the
	// intention.
	SourceNamespace pulumi.StringPtrInput
}

The set of arguments for constructing a Intention resource.

func (IntentionArgs) ElementType

func (IntentionArgs) ElementType() reflect.Type

type IntentionState

type IntentionState struct {
	// The intention action. Must be one of `allow` or `deny`.
	Action pulumi.StringPtrInput
	// Optional description that can be used by Consul
	// tooling, but is not used internally.
	Description pulumi.StringPtrInput
	// The name of the destination service for the intention. This
	// service does not have to exist.
	DestinationName pulumi.StringPtrInput
	// The destination
	// namespace of the intention.
	DestinationNamespace pulumi.StringPtrInput
	// Key/value pairs that are opaque to Consul and are associated
	// with the intention.
	Meta pulumi.StringMapInput
	// The name of the source service for the intention. This
	// service does not have to exist.
	SourceName pulumi.StringPtrInput
	// The source namespace of the
	// intention.
	SourceNamespace pulumi.StringPtrInput
}

func (IntentionState) ElementType

func (IntentionState) ElementType() reflect.Type

type KeyPrefix

type KeyPrefix struct {
	pulumi.CustomResourceState

	// The datacenter to use. This overrides the
	// agent's default datacenter and the datacenter in the provider setup.
	Datacenter pulumi.StringOutput `pulumi:"datacenter"`
	// The namespace to create the keys within.
	Namespace pulumi.StringPtrOutput `pulumi:"namespace"`
	// Specifies the common prefix shared by all keys
	// that will be managed by this resource instance. In most cases this will
	// end with a slash, to manage a "folder" of keys.
	PathPrefix pulumi.StringOutput `pulumi:"pathPrefix"`
	// A subkey to add. Supported values documented below.
	// Multiple blocks supported.
	SubkeyCollection KeyPrefixSubkeyCollectionArrayOutput `pulumi:"subkeyCollection"`
	// A mapping from subkey name (which will be appended
	// to the given `pathPrefix`) to the value that should be stored at that key.
	// Use slashes, as shown in the above example, to create "sub-folders" under
	// the given path prefix.
	Subkeys pulumi.StringMapOutput `pulumi:"subkeys"`
	// The ACL token to use. This overrides the
	// token that the agent provides by default.
	Token pulumi.StringPtrOutput `pulumi:"token"`
}

func GetKeyPrefix

func GetKeyPrefix(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *KeyPrefixState, opts ...pulumi.ResourceOption) (*KeyPrefix, error)

GetKeyPrefix gets an existing KeyPrefix resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewKeyPrefix

func NewKeyPrefix(ctx *pulumi.Context,
	name string, args *KeyPrefixArgs, opts ...pulumi.ResourceOption) (*KeyPrefix, error)

NewKeyPrefix registers a new resource with the given unique name, arguments, and options.

type KeyPrefixArgs

type KeyPrefixArgs struct {
	// The datacenter to use. This overrides the
	// agent's default datacenter and the datacenter in the provider setup.
	Datacenter pulumi.StringPtrInput
	// The namespace to create the keys within.
	Namespace pulumi.StringPtrInput
	// Specifies the common prefix shared by all keys
	// that will be managed by this resource instance. In most cases this will
	// end with a slash, to manage a "folder" of keys.
	PathPrefix pulumi.StringInput
	// A subkey to add. Supported values documented below.
	// Multiple blocks supported.
	SubkeyCollection KeyPrefixSubkeyCollectionArrayInput
	// A mapping from subkey name (which will be appended
	// to the given `pathPrefix`) to the value that should be stored at that key.
	// Use slashes, as shown in the above example, to create "sub-folders" under
	// the given path prefix.
	Subkeys pulumi.StringMapInput
	// The ACL token to use. This overrides the
	// token that the agent provides by default.
	Token pulumi.StringPtrInput
}

The set of arguments for constructing a KeyPrefix resource.

func (KeyPrefixArgs) ElementType

func (KeyPrefixArgs) ElementType() reflect.Type

type KeyPrefixState

type KeyPrefixState struct {
	// The datacenter to use. This overrides the
	// agent's default datacenter and the datacenter in the provider setup.
	Datacenter pulumi.StringPtrInput
	// The namespace to create the keys within.
	Namespace pulumi.StringPtrInput
	// Specifies the common prefix shared by all keys
	// that will be managed by this resource instance. In most cases this will
	// end with a slash, to manage a "folder" of keys.
	PathPrefix pulumi.StringPtrInput
	// A subkey to add. Supported values documented below.
	// Multiple blocks supported.
	SubkeyCollection KeyPrefixSubkeyCollectionArrayInput
	// A mapping from subkey name (which will be appended
	// to the given `pathPrefix`) to the value that should be stored at that key.
	// Use slashes, as shown in the above example, to create "sub-folders" under
	// the given path prefix.
	Subkeys pulumi.StringMapInput
	// The ACL token to use. This overrides the
	// token that the agent provides by default.
	Token pulumi.StringPtrInput
}

func (KeyPrefixState) ElementType

func (KeyPrefixState) ElementType() reflect.Type

type KeyPrefixSubkeyCollection

type KeyPrefixSubkeyCollection struct {
	// An [unsigned integer value](https://www.consul.io/api/kv.html#flags-1)
	// to attach to the key (defaults to 0).
	Flags *int `pulumi:"flags"`
	// This is the path (which will be appended to the given
	// `pathPrefix`) in Consul that should be written to.
	Path string `pulumi:"path"`
	// The value to write to the given path.
	Value string `pulumi:"value"`
}

type KeyPrefixSubkeyCollectionArgs

type KeyPrefixSubkeyCollectionArgs struct {
	// An [unsigned integer value](https://www.consul.io/api/kv.html#flags-1)
	// to attach to the key (defaults to 0).
	Flags pulumi.IntPtrInput `pulumi:"flags"`
	// This is the path (which will be appended to the given
	// `pathPrefix`) in Consul that should be written to.
	Path pulumi.StringInput `pulumi:"path"`
	// The value to write to the given path.
	Value pulumi.StringInput `pulumi:"value"`
}

func (KeyPrefixSubkeyCollectionArgs) ElementType

func (KeyPrefixSubkeyCollectionArgs) ToKeyPrefixSubkeyCollectionOutput

func (i KeyPrefixSubkeyCollectionArgs) ToKeyPrefixSubkeyCollectionOutput() KeyPrefixSubkeyCollectionOutput

func (KeyPrefixSubkeyCollectionArgs) ToKeyPrefixSubkeyCollectionOutputWithContext

func (i KeyPrefixSubkeyCollectionArgs) ToKeyPrefixSubkeyCollectionOutputWithContext(ctx context.Context) KeyPrefixSubkeyCollectionOutput

type KeyPrefixSubkeyCollectionArray

type KeyPrefixSubkeyCollectionArray []KeyPrefixSubkeyCollectionInput

func (KeyPrefixSubkeyCollectionArray) ElementType

func (KeyPrefixSubkeyCollectionArray) ToKeyPrefixSubkeyCollectionArrayOutput

func (i KeyPrefixSubkeyCollectionArray) ToKeyPrefixSubkeyCollectionArrayOutput() KeyPrefixSubkeyCollectionArrayOutput

func (KeyPrefixSubkeyCollectionArray) ToKeyPrefixSubkeyCollectionArrayOutputWithContext

func (i KeyPrefixSubkeyCollectionArray) ToKeyPrefixSubkeyCollectionArrayOutputWithContext(ctx context.Context) KeyPrefixSubkeyCollectionArrayOutput

type KeyPrefixSubkeyCollectionArrayInput

type KeyPrefixSubkeyCollectionArrayInput interface {
	pulumi.Input

	ToKeyPrefixSubkeyCollectionArrayOutput() KeyPrefixSubkeyCollectionArrayOutput
	ToKeyPrefixSubkeyCollectionArrayOutputWithContext(context.Context) KeyPrefixSubkeyCollectionArrayOutput
}

KeyPrefixSubkeyCollectionArrayInput is an input type that accepts KeyPrefixSubkeyCollectionArray and KeyPrefixSubkeyCollectionArrayOutput values. You can construct a concrete instance of `KeyPrefixSubkeyCollectionArrayInput` via:

KeyPrefixSubkeyCollectionArray{ KeyPrefixSubkeyCollectionArgs{...} }

type KeyPrefixSubkeyCollectionArrayOutput

type KeyPrefixSubkeyCollectionArrayOutput struct{ *pulumi.OutputState }

func (KeyPrefixSubkeyCollectionArrayOutput) ElementType

func (KeyPrefixSubkeyCollectionArrayOutput) Index

func (KeyPrefixSubkeyCollectionArrayOutput) ToKeyPrefixSubkeyCollectionArrayOutput

func (o KeyPrefixSubkeyCollectionArrayOutput) ToKeyPrefixSubkeyCollectionArrayOutput() KeyPrefixSubkeyCollectionArrayOutput

func (KeyPrefixSubkeyCollectionArrayOutput) ToKeyPrefixSubkeyCollectionArrayOutputWithContext

func (o KeyPrefixSubkeyCollectionArrayOutput) ToKeyPrefixSubkeyCollectionArrayOutputWithContext(ctx context.Context) KeyPrefixSubkeyCollectionArrayOutput

type KeyPrefixSubkeyCollectionInput

type KeyPrefixSubkeyCollectionInput interface {
	pulumi.Input

	ToKeyPrefixSubkeyCollectionOutput() KeyPrefixSubkeyCollectionOutput
	ToKeyPrefixSubkeyCollectionOutputWithContext(context.Context) KeyPrefixSubkeyCollectionOutput
}

KeyPrefixSubkeyCollectionInput is an input type that accepts KeyPrefixSubkeyCollectionArgs and KeyPrefixSubkeyCollectionOutput values. You can construct a concrete instance of `KeyPrefixSubkeyCollectionInput` via:

KeyPrefixSubkeyCollectionArgs{...}

type KeyPrefixSubkeyCollectionOutput

type KeyPrefixSubkeyCollectionOutput struct{ *pulumi.OutputState }

func (KeyPrefixSubkeyCollectionOutput) ElementType

func (KeyPrefixSubkeyCollectionOutput) Flags

An [unsigned integer value](https://www.consul.io/api/kv.html#flags-1) to attach to the key (defaults to 0).

func (KeyPrefixSubkeyCollectionOutput) Path

This is the path (which will be appended to the given `pathPrefix`) in Consul that should be written to.

func (KeyPrefixSubkeyCollectionOutput) ToKeyPrefixSubkeyCollectionOutput

func (o KeyPrefixSubkeyCollectionOutput) ToKeyPrefixSubkeyCollectionOutput() KeyPrefixSubkeyCollectionOutput

func (KeyPrefixSubkeyCollectionOutput) ToKeyPrefixSubkeyCollectionOutputWithContext

func (o KeyPrefixSubkeyCollectionOutput) ToKeyPrefixSubkeyCollectionOutputWithContext(ctx context.Context) KeyPrefixSubkeyCollectionOutput

func (KeyPrefixSubkeyCollectionOutput) Value

The value to write to the given path.

type Keys

type Keys struct {
	pulumi.CustomResourceState

	// The datacenter to use. This overrides the
	// agent's default datacenter and the datacenter in the provider setup.
	Datacenter pulumi.StringOutput `pulumi:"datacenter"`
	// Specifies a key in Consul to be written.
	// Supported values documented below.
	Keys KeysKeyArrayOutput `pulumi:"keys"`
	// The namespace to create the keys within.
	Namespace pulumi.StringPtrOutput `pulumi:"namespace"`
	// The ACL token to use. This overrides the
	// token that the agent provides by default.
	Token pulumi.StringPtrOutput `pulumi:"token"`
	Var   pulumi.StringMapOutput `pulumi:"var"`
}

func GetKeys

func GetKeys(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *KeysState, opts ...pulumi.ResourceOption) (*Keys, error)

GetKeys gets an existing Keys resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewKeys

func NewKeys(ctx *pulumi.Context,
	name string, args *KeysArgs, opts ...pulumi.ResourceOption) (*Keys, error)

NewKeys registers a new resource with the given unique name, arguments, and options.

type KeysArgs

type KeysArgs struct {
	// The datacenter to use. This overrides the
	// agent's default datacenter and the datacenter in the provider setup.
	Datacenter pulumi.StringPtrInput
	// Specifies a key in Consul to be written.
	// Supported values documented below.
	Keys KeysKeyArrayInput
	// The namespace to create the keys within.
	Namespace pulumi.StringPtrInput
	// The ACL token to use. This overrides the
	// token that the agent provides by default.
	Token pulumi.StringPtrInput
}

The set of arguments for constructing a Keys resource.

func (KeysArgs) ElementType

func (KeysArgs) ElementType() reflect.Type

type KeysKey

type KeysKey struct {
	Default *string `pulumi:"default"`
	// If true, then the key will be deleted when
	// either its configuration block is removed from the configuration or
	// the entire resource is destroyed. Otherwise, it will be left in Consul.
	// Defaults to false.
	Delete *bool `pulumi:"delete"`
	// An [unsigned integer value](https://www.consul.io/api/kv.html#flags-1)
	// to attach to the key (defaults to 0).
	Flags *int `pulumi:"flags"`
	// Deprecated: Using consul_keys resource to *read* is deprecated; please use consul_keys data source instead
	Name *string `pulumi:"name"`
	// This is the path in Consul that should be written to.
	Path string `pulumi:"path"`
	// The value to write to the given path.
	Value *string `pulumi:"value"`
}

type KeysKeyArgs

type KeysKeyArgs struct {
	Default pulumi.StringPtrInput `pulumi:"default"`
	// If true, then the key will be deleted when
	// either its configuration block is removed from the configuration or
	// the entire resource is destroyed. Otherwise, it will be left in Consul.
	// Defaults to false.
	Delete pulumi.BoolPtrInput `pulumi:"delete"`
	// An [unsigned integer value](https://www.consul.io/api/kv.html#flags-1)
	// to attach to the key (defaults to 0).
	Flags pulumi.IntPtrInput `pulumi:"flags"`
	// Deprecated: Using consul_keys resource to *read* is deprecated; please use consul_keys data source instead
	Name pulumi.StringPtrInput `pulumi:"name"`
	// This is the path in Consul that should be written to.
	Path pulumi.StringInput `pulumi:"path"`
	// The value to write to the given path.
	Value pulumi.StringPtrInput `pulumi:"value"`
}

func (KeysKeyArgs) ElementType

func (KeysKeyArgs) ElementType() reflect.Type

func (KeysKeyArgs) ToKeysKeyOutput

func (i KeysKeyArgs) ToKeysKeyOutput() KeysKeyOutput

func (KeysKeyArgs) ToKeysKeyOutputWithContext

func (i KeysKeyArgs) ToKeysKeyOutputWithContext(ctx context.Context) KeysKeyOutput

type KeysKeyArray

type KeysKeyArray []KeysKeyInput

func (KeysKeyArray) ElementType

func (KeysKeyArray) ElementType() reflect.Type

func (KeysKeyArray) ToKeysKeyArrayOutput

func (i KeysKeyArray) ToKeysKeyArrayOutput() KeysKeyArrayOutput

func (KeysKeyArray) ToKeysKeyArrayOutputWithContext

func (i KeysKeyArray) ToKeysKeyArrayOutputWithContext(ctx context.Context) KeysKeyArrayOutput

type KeysKeyArrayInput

type KeysKeyArrayInput interface {
	pulumi.Input

	ToKeysKeyArrayOutput() KeysKeyArrayOutput
	ToKeysKeyArrayOutputWithContext(context.Context) KeysKeyArrayOutput
}

KeysKeyArrayInput is an input type that accepts KeysKeyArray and KeysKeyArrayOutput values. You can construct a concrete instance of `KeysKeyArrayInput` via:

KeysKeyArray{ KeysKeyArgs{...} }

type KeysKeyArrayOutput

type KeysKeyArrayOutput struct{ *pulumi.OutputState }

func (KeysKeyArrayOutput) ElementType

func (KeysKeyArrayOutput) ElementType() reflect.Type

func (KeysKeyArrayOutput) Index

func (KeysKeyArrayOutput) ToKeysKeyArrayOutput

func (o KeysKeyArrayOutput) ToKeysKeyArrayOutput() KeysKeyArrayOutput

func (KeysKeyArrayOutput) ToKeysKeyArrayOutputWithContext

func (o KeysKeyArrayOutput) ToKeysKeyArrayOutputWithContext(ctx context.Context) KeysKeyArrayOutput

type KeysKeyInput

type KeysKeyInput interface {
	pulumi.Input

	ToKeysKeyOutput() KeysKeyOutput
	ToKeysKeyOutputWithContext(context.Context) KeysKeyOutput
}

KeysKeyInput is an input type that accepts KeysKeyArgs and KeysKeyOutput values. You can construct a concrete instance of `KeysKeyInput` via:

KeysKeyArgs{...}

type KeysKeyOutput

type KeysKeyOutput struct{ *pulumi.OutputState }

func (KeysKeyOutput) Default

func (o KeysKeyOutput) Default() pulumi.StringPtrOutput

func (KeysKeyOutput) Delete

func (o KeysKeyOutput) Delete() pulumi.BoolPtrOutput

If true, then the key will be deleted when either its configuration block is removed from the configuration or the entire resource is destroyed. Otherwise, it will be left in Consul. Defaults to false.

func (KeysKeyOutput) ElementType

func (KeysKeyOutput) ElementType() reflect.Type

func (KeysKeyOutput) Flags

func (o KeysKeyOutput) Flags() pulumi.IntPtrOutput

An [unsigned integer value](https://www.consul.io/api/kv.html#flags-1) to attach to the key (defaults to 0).

func (KeysKeyOutput) Name deprecated

Deprecated: Using consul_keys resource to *read* is deprecated; please use consul_keys data source instead

func (KeysKeyOutput) Path

This is the path in Consul that should be written to.

func (KeysKeyOutput) ToKeysKeyOutput

func (o KeysKeyOutput) ToKeysKeyOutput() KeysKeyOutput

func (KeysKeyOutput) ToKeysKeyOutputWithContext

func (o KeysKeyOutput) ToKeysKeyOutputWithContext(ctx context.Context) KeysKeyOutput

func (KeysKeyOutput) Value

The value to write to the given path.

type KeysState

type KeysState struct {
	// The datacenter to use. This overrides the
	// agent's default datacenter and the datacenter in the provider setup.
	Datacenter pulumi.StringPtrInput
	// Specifies a key in Consul to be written.
	// Supported values documented below.
	Keys KeysKeyArrayInput
	// The namespace to create the keys within.
	Namespace pulumi.StringPtrInput
	// The ACL token to use. This overrides the
	// token that the agent provides by default.
	Token pulumi.StringPtrInput
	Var   pulumi.StringMapInput
}

func (KeysState) ElementType

func (KeysState) ElementType() reflect.Type

type License added in v2.2.0

type License struct {
	pulumi.CustomResourceState

	// The ID of the customer the license is attached to.
	CustomerId pulumi.StringOutput `pulumi:"customerId"`
	// The datacenter to use. This overrides the
	// agent's default datacenter and the datacenter in the provider setup.
	Datacenter pulumi.StringPtrOutput `pulumi:"datacenter"`
	// The expiration time of the license.
	ExpirationTime pulumi.StringOutput `pulumi:"expirationTime"`
	// The features for which the license is valid.
	Features pulumi.StringArrayOutput `pulumi:"features"`
	// The metadata attached to the license.
	Flags pulumi.StringMapOutput `pulumi:"flags"`
	// The ID of the current installation.
	InstallationId pulumi.StringOutput `pulumi:"installationId"`
	// The date the license was issued.
	IssueTime pulumi.StringOutput `pulumi:"issueTime"`
	// The Consul license to use.
	License pulumi.StringOutput `pulumi:"license"`
	// The ID of the license used.
	LicenseId pulumi.StringOutput `pulumi:"licenseId"`
	// The product for which the license is valid.
	Product pulumi.StringOutput `pulumi:"product"`
	// The start time of the license.
	StartTime pulumi.StringOutput `pulumi:"startTime"`
	// Whether the license is valid.
	Valid pulumi.BoolOutput `pulumi:"valid"`
	// A list of warning messages regarding the license validity.
	Warnings pulumi.StringArrayOutput `pulumi:"warnings"`
}

> **NOTE:** This feature requires [Consul Enterprise](https://www.consul.io/docs/enterprise/index.html).

The `License` resource provides datacenter-level management of the Consul Enterprise license. If ACLs are enabled then a token with operator privileges may be required in order to use this command.

func GetLicense added in v2.2.0

func GetLicense(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *LicenseState, opts ...pulumi.ResourceOption) (*License, error)

GetLicense gets an existing License resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewLicense added in v2.2.0

func NewLicense(ctx *pulumi.Context,
	name string, args *LicenseArgs, opts ...pulumi.ResourceOption) (*License, error)

NewLicense registers a new resource with the given unique name, arguments, and options.

type LicenseArgs added in v2.2.0

type LicenseArgs struct {
	// The datacenter to use. This overrides the
	// agent's default datacenter and the datacenter in the provider setup.
	Datacenter pulumi.StringPtrInput
	// The Consul license to use.
	License pulumi.StringInput
}

The set of arguments for constructing a License resource.

func (LicenseArgs) ElementType added in v2.2.0

func (LicenseArgs) ElementType() reflect.Type

type LicenseState added in v2.2.0

type LicenseState struct {
	// The ID of the customer the license is attached to.
	CustomerId pulumi.StringPtrInput
	// The datacenter to use. This overrides the
	// agent's default datacenter and the datacenter in the provider setup.
	Datacenter pulumi.StringPtrInput
	// The expiration time of the license.
	ExpirationTime pulumi.StringPtrInput
	// The features for which the license is valid.
	Features pulumi.StringArrayInput
	// The metadata attached to the license.
	Flags pulumi.StringMapInput
	// The ID of the current installation.
	InstallationId pulumi.StringPtrInput
	// The date the license was issued.
	IssueTime pulumi.StringPtrInput
	// The Consul license to use.
	License pulumi.StringPtrInput
	// The ID of the license used.
	LicenseId pulumi.StringPtrInput
	// The product for which the license is valid.
	Product pulumi.StringPtrInput
	// The start time of the license.
	StartTime pulumi.StringPtrInput
	// Whether the license is valid.
	Valid pulumi.BoolPtrInput
	// A list of warning messages regarding the license validity.
	Warnings pulumi.StringArrayInput
}

func (LicenseState) ElementType added in v2.2.0

func (LicenseState) ElementType() reflect.Type

type LookupAclAuthMethodArgs

type LookupAclAuthMethodArgs struct {
	// The name of the ACL Auth Method.
	Name string `pulumi:"name"`
	// The namespace to lookup the auth method.
	Namespace *string `pulumi:"namespace"`
}

A collection of arguments for invoking getAclAuthMethod.

type LookupAclAuthMethodResult

type LookupAclAuthMethodResult struct {
	// The configuration options of the ACL Auth Method. This attribute is
	// deprecated and will be removed in a future version. If the configuration is
	// too complex to be represented as a map of strings, it will be blank.
	// `configJson` should be used instead.
	//
	// Deprecated: The config attribute is deprecated, please use config_json instead.
	Config map[string]string `pulumi:"config"`
	// The configuration options of the ACL Auth Method.
	ConfigJson string `pulumi:"configJson"`
	// The description of the ACL Auth Method.
	Description string `pulumi:"description"`
	// An optional name to use instead of the name attribute when
	// displaying information about this auth method.
	DisplayName string `pulumi:"displayName"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The maximum life of any token created by this auth method.
	MaxTokenTtl string  `pulumi:"maxTokenTtl"`
	Name        string  `pulumi:"name"`
	Namespace   *string `pulumi:"namespace"`
	// (Enterprise Only) A set of rules that control which
	// namespace tokens created via this auth method will be created within
	NamespaceRules []GetAclAuthMethodNamespaceRule `pulumi:"namespaceRules"`
	// The kind of token that this auth method produces. This can
	// be either 'local' or 'global'.
	TokenLocality string `pulumi:"tokenLocality"`
	// The type of the ACL Auth Method.
	Type string `pulumi:"type"`
}

A collection of values returned by getAclAuthMethod.

func LookupAclAuthMethod

func LookupAclAuthMethod(ctx *pulumi.Context, args *LookupAclAuthMethodArgs, opts ...pulumi.InvokeOption) (*LookupAclAuthMethodResult, error)

The `AclAuthMethod` data source returns the information related to a [Consul Auth Method](https://www.consul.io/docs/acl/acl-auth-methods.html).

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-consul/sdk/v2/go/consul"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		test, err := consul.LookupAclAuthMethod(ctx, &consul.LookupAclAuthMethodArgs{
			Name: "minikube",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("consulAclAuthMethod", test.Config)
		return nil
	})
}

```

type LookupAclPolicyArgs

type LookupAclPolicyArgs struct {
	// The datacenters associated with the ACL Policy.
	Datacenters []string `pulumi:"datacenters"`
	// The description of the ACL Policy.
	Description *string `pulumi:"description"`
	// The name of the ACL Policy.
	Name string `pulumi:"name"`
	// The namespace to lookup the policy.
	Namespace *string `pulumi:"namespace"`
	// The rules associated with the ACL Policy.
	Rules *string `pulumi:"rules"`
}

A collection of arguments for invoking getAclPolicy.

type LookupAclPolicyResult

type LookupAclPolicyResult struct {
	// The datacenters associated with the ACL Policy.
	Datacenters []string `pulumi:"datacenters"`
	// The description of the ACL Policy.
	Description *string `pulumi:"description"`
	// The provider-assigned unique ID for this managed resource.
	Id        string  `pulumi:"id"`
	Name      string  `pulumi:"name"`
	Namespace *string `pulumi:"namespace"`
	// The rules associated with the ACL Policy.
	Rules *string `pulumi:"rules"`
}

A collection of values returned by getAclPolicy.

func LookupAclPolicy

func LookupAclPolicy(ctx *pulumi.Context, args *LookupAclPolicyArgs, opts ...pulumi.InvokeOption) (*LookupAclPolicyResult, error)

The `AclPolicy` data source returns the information related to a [Consul ACL Policy](https://www.consul.io/docs/acl/acl-system.html#acl-policies).

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-consul/sdk/v2/go/consul"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		agent, err := consul.LookupAclPolicy(ctx, &consul.LookupAclPolicyArgs{
			Name: "agent",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("consulAclPolicy", agent.Rules)
		return nil
	})
}

```

type LookupAclRoleArgs

type LookupAclRoleArgs struct {
	// The description of the ACL Role.
	Description *string `pulumi:"description"`
	// The name of the ACL Role.
	Name string `pulumi:"name"`
	// The namespace to lookup the role.
	Namespace *string `pulumi:"namespace"`
	// The list of policies associated with the ACL Role. Each entry has
	// an `id` and a `name` attribute.
	Policies []GetAclRolePolicy `pulumi:"policies"`
	// The list of service identities associated with the ACL
	// Role. Each entry has a `serviceName` attribute and a list of `datacenters`.
	ServiceIdentities []GetAclRoleServiceIdentity `pulumi:"serviceIdentities"`
}

A collection of arguments for invoking getAclRole.

type LookupAclRoleResult

type LookupAclRoleResult struct {
	// The description of the ACL Role.
	Description *string `pulumi:"description"`
	// The provider-assigned unique ID for this managed resource.
	Id        string  `pulumi:"id"`
	Name      string  `pulumi:"name"`
	Namespace *string `pulumi:"namespace"`
	// The list of policies associated with the ACL Role. Each entry has
	// an `id` and a `name` attribute.
	Policies []GetAclRolePolicy `pulumi:"policies"`
	// The list of service identities associated with the ACL
	// Role. Each entry has a `serviceName` attribute and a list of `datacenters`.
	ServiceIdentities []GetAclRoleServiceIdentity `pulumi:"serviceIdentities"`
}

A collection of values returned by getAclRole.

func LookupAclRole

func LookupAclRole(ctx *pulumi.Context, args *LookupAclRoleArgs, opts ...pulumi.InvokeOption) (*LookupAclRoleResult, error)

The `AclRole` data source returns the information related to a [Consul ACL Role](https://www.consul.io/api/acl/roles.html).

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-consul/sdk/v2/go/consul"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		test, err := consul.LookupAclRole(ctx, &consul.LookupAclRoleArgs{
			Name: "example-role",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("consulAclRole", test.Id)
		return nil
	})
}

```

type LookupAclTokenArgs

type LookupAclTokenArgs struct {
	// The accessor ID of the ACL token.
	AccessorId string `pulumi:"accessorId"`
	// The description of the ACL token.
	Description *string `pulumi:"description"`
	// Whether the ACL token is local to the datacenter it was created within.
	Local *bool `pulumi:"local"`
	// The namespace to lookup the ACL token.
	Namespace *string `pulumi:"namespace"`
	// A list of policies associated with the ACL token. Each entry has
	// an `id` and a `name` attribute.
	Policies []GetAclTokenPolicy `pulumi:"policies"`
}

A collection of arguments for invoking getAclToken.

type LookupAclTokenResult

type LookupAclTokenResult struct {
	AccessorId string `pulumi:"accessorId"`
	// The description of the ACL token.
	Description *string `pulumi:"description"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// Whether the ACL token is local to the datacenter it was created within.
	Local     *bool   `pulumi:"local"`
	Namespace *string `pulumi:"namespace"`
	// A list of policies associated with the ACL token. Each entry has
	// an `id` and a `name` attribute.
	Policies []GetAclTokenPolicy `pulumi:"policies"`
}

A collection of values returned by getAclToken.

func LookupAclToken

func LookupAclToken(ctx *pulumi.Context, args *LookupAclTokenArgs, opts ...pulumi.InvokeOption) (*LookupAclTokenResult, error)

The `AclToken` data source returns the information related to the `AclToken` resource with the exception of its secret ID.

If you want to get the secret ID associated with a token, use the [`getAclTokenSecretId` data source](https://www.terraform.io/docs/providers/consul/d/acl_token_secret_id.html).

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-consul/sdk/v2/go/consul"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		test, err := consul.LookupAclToken(ctx, &consul.LookupAclTokenArgs{
			AccessorId: "00000000-0000-0000-0000-000000000002",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("consulAclPolicies", test.Policies)
		return nil
	})
}

```

type LookupKeyPrefixArgs

type LookupKeyPrefixArgs struct {
	// The datacenter to use. This overrides the
	// agent's default datacenter and the datacenter in the provider setup.
	Datacenter *string `pulumi:"datacenter"`
	// The namespace to create the keys within.
	Namespace *string `pulumi:"namespace"`
	// Specifies the common prefix shared by all keys
	// that will be read by this data source instance. In most cases, this will
	// end with a slash to read a "folder" of subkeys.
	PathPrefix string `pulumi:"pathPrefix"`
	// Specifies a subkey in Consul to be read. Supported
	// values documented below. Multiple blocks supported.
	SubkeyCollection []GetKeyPrefixSubkeyCollection `pulumi:"subkeyCollection"`
	// The ACL token to use. This overrides the
	// token that the agent provides by default.
	Token *string `pulumi:"token"`
}

A collection of arguments for invoking getKeyPrefix.

type LookupKeyPrefixResult

type LookupKeyPrefixResult struct {
	// The datacenter the keys are being read from.
	Datacenter string `pulumi:"datacenter"`
	// The provider-assigned unique ID for this managed resource.
	Id        string  `pulumi:"id"`
	Namespace *string `pulumi:"namespace"`
	// the common prefix shared by all keys being read.
	// * `var.<name>` - For each name given, the corresponding attribute
	//   has the value of the key.
	PathPrefix       string                         `pulumi:"pathPrefix"`
	SubkeyCollection []GetKeyPrefixSubkeyCollection `pulumi:"subkeyCollection"`
	// A map of the subkeys and values is set if no `subkey`
	// block is provided.
	Subkeys map[string]string `pulumi:"subkeys"`
	Token   *string           `pulumi:"token"`
	Var     map[string]string `pulumi:"var"`
}

A collection of values returned by getKeyPrefix.

func LookupKeyPrefix

func LookupKeyPrefix(ctx *pulumi.Context, args *LookupKeyPrefixArgs, opts ...pulumi.InvokeOption) (*LookupKeyPrefixResult, error)

type LookupKeysArgs

type LookupKeysArgs struct {
	// The datacenter to use. This overrides the
	// agent's default datacenter and the datacenter in the provider setup.
	Datacenter *string `pulumi:"datacenter"`
	// Specifies a key in Consul to be read. Supported
	// values documented below. Multiple blocks supported.
	Keys []GetKeysKey `pulumi:"keys"`
	// The namespace to lookup the keys.
	Namespace *string `pulumi:"namespace"`
	// The ACL token to use. This overrides the
	// token that the agent provides by default.
	Token *string `pulumi:"token"`
}

A collection of arguments for invoking getKeys.

type LookupKeysResult

type LookupKeysResult struct {
	// The datacenter the keys are being read from.
	// * `var.<name>` - For each name given, the corresponding attribute
	//   has the value of the key.
	Datacenter string `pulumi:"datacenter"`
	// The provider-assigned unique ID for this managed resource.
	Id        string            `pulumi:"id"`
	Keys      []GetKeysKey      `pulumi:"keys"`
	Namespace *string           `pulumi:"namespace"`
	Token     *string           `pulumi:"token"`
	Var       map[string]string `pulumi:"var"`
}

A collection of values returned by getKeys.

func LookupKeys

func LookupKeys(ctx *pulumi.Context, args *LookupKeysArgs, opts ...pulumi.InvokeOption) (*LookupKeysResult, error)

The `Keys` resource reads values from the Consul key/value store. This is a powerful way dynamically set values in templates.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/ec2"
"github.com/pulumi/pulumi-consul/sdk/v2/go/consul"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		opt0 := "nyc1"
		opt1 := "abcd"
		appKeys, err := consul.LookupKeys(ctx, &consul.LookupKeysArgs{
			Datacenter: &opt0,
			Keys: []consul.GetKeysKey{
				consul.GetKeysKey{
					Default: "ami-1234",
					Name:    "ami",
					Path:    "service/app/launch_ami",
				},
			},
			Token: &opt1,
		}, nil)
		if err != nil {
			return err
		}
		_, err = ec2.NewInstance(ctx, "appInstance", &ec2.InstanceArgs{
			Ami: pulumi.String(appKeys.Var.Ami),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

type LookupServiceArgs

type LookupServiceArgs struct {
	// The Consul datacenter to query.  Defaults to the
	// same value found in `queryOptions` parameter specified below, or if that is
	// empty, the `datacenter` value found in the Consul agent that this provider is
	// configured to talk to.
	Datacenter *string `pulumi:"datacenter"`
	// A filter expression to refine the query, see https://www.consul.io/api-docs/features/filtering
	// and https://www.consul.io/api-docs/catalog#filtering-1.
	Filter *string `pulumi:"filter"`
	// The service name to select.
	Name string `pulumi:"name"`
	// See below.
	QueryOptions []GetServiceQueryOption `pulumi:"queryOptions"`
	// A single tag that can be used to filter the list of nodes
	// to return based on a single matching tag..
	Tag *string `pulumi:"tag"`
}

A collection of arguments for invoking getService.

type LookupServiceResult

type LookupServiceResult struct {
	// The datacenter the keys are being read from to.
	Datacenter *string `pulumi:"datacenter"`
	Filter     *string `pulumi:"filter"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The name of the service
	Name         string                  `pulumi:"name"`
	QueryOptions []GetServiceQueryOption `pulumi:"queryOptions"`
	// A list of nodes and details about each endpoint advertising a
	// service.  Each element in the list is a map of attributes that correspond to
	// each individual node.  The list of per-node attributes is detailed below.
	Services []GetServiceService `pulumi:"services"`
	// The name of the tag used to filter the list of nodes in `service`.
	Tag *string `pulumi:"tag"`
}

A collection of values returned by getService.

func LookupService

func LookupService(ctx *pulumi.Context, args *LookupServiceArgs, opts ...pulumi.InvokeOption) (*LookupServiceResult, error)

`Service` provides details about a specific Consul service in a given datacenter. The results include a list of nodes advertising the specified service, the node's IP address, port number, node ID, etc. By specifying a different datacenter in the `queryOptions` it is possible to retrieve a list of services from a different WAN-attached Consul datacenter.

This data source is different from the `getServices` (plural) data source, which provides a summary of the current Consul services.

type Namespace added in v2.2.0

type Namespace struct {
	pulumi.CustomResourceState

	// Free form namespace description.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// Specifies arbitrary KV metadata to associate with the
	// namespace.
	Meta pulumi.StringMapOutput `pulumi:"meta"`
	// The namespace name.
	Name pulumi.StringOutput `pulumi:"name"`
	// The list of default policies that should be
	// applied to all tokens created in this namespace.
	PolicyDefaults pulumi.StringArrayOutput `pulumi:"policyDefaults"`
	// The list of default roles that should be applied
	// to all tokens created in this namespace.
	RoleDefaults pulumi.StringArrayOutput `pulumi:"roleDefaults"`
}

> **NOTE:** This feature requires Consul Enterprise.

The `Namespace` resource provides isolated [Consul Enterprise Namespaces](https://www.consul.io/docs/enterprise/namespaces/index.html).

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-consul/sdk/v2/go/consul"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := consul.NewNamespace(ctx, "production", &consul.NamespaceArgs{
			Description: pulumi.String("Production namespace"),
			Meta: pulumi.StringMap{
				"foo": pulumi.String("bar"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetNamespace added in v2.2.0

func GetNamespace(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *NamespaceState, opts ...pulumi.ResourceOption) (*Namespace, error)

GetNamespace gets an existing Namespace resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewNamespace added in v2.2.0

func NewNamespace(ctx *pulumi.Context,
	name string, args *NamespaceArgs, opts ...pulumi.ResourceOption) (*Namespace, error)

NewNamespace registers a new resource with the given unique name, arguments, and options.

type NamespaceArgs added in v2.2.0

type NamespaceArgs struct {
	// Free form namespace description.
	Description pulumi.StringPtrInput
	// Specifies arbitrary KV metadata to associate with the
	// namespace.
	Meta pulumi.StringMapInput
	// The namespace name.
	Name pulumi.StringPtrInput
	// The list of default policies that should be
	// applied to all tokens created in this namespace.
	PolicyDefaults pulumi.StringArrayInput
	// The list of default roles that should be applied
	// to all tokens created in this namespace.
	RoleDefaults pulumi.StringArrayInput
}

The set of arguments for constructing a Namespace resource.

func (NamespaceArgs) ElementType added in v2.2.0

func (NamespaceArgs) ElementType() reflect.Type

type NamespaceState added in v2.2.0

type NamespaceState struct {
	// Free form namespace description.
	Description pulumi.StringPtrInput
	// Specifies arbitrary KV metadata to associate with the
	// namespace.
	Meta pulumi.StringMapInput
	// The namespace name.
	Name pulumi.StringPtrInput
	// The list of default policies that should be
	// applied to all tokens created in this namespace.
	PolicyDefaults pulumi.StringArrayInput
	// The list of default roles that should be applied
	// to all tokens created in this namespace.
	RoleDefaults pulumi.StringArrayInput
}

func (NamespaceState) ElementType added in v2.2.0

func (NamespaceState) ElementType() reflect.Type

type NetworkArea added in v2.2.0

type NetworkArea struct {
	pulumi.CustomResourceState

	// The datacenter to use. This overrides the
	// agent's default datacenter and the datacenter in the provider setup.
	Datacenter pulumi.StringOutput `pulumi:"datacenter"`
	// The name of the Consul datacenter that will be
	// joined to form the area.
	PeerDatacenter pulumi.StringOutput `pulumi:"peerDatacenter"`
	// Specifies a list of Consul servers to attempt to
	// join. Servers can be given as `IP`, `IP:port`, `hostname`, or `hostname:port`.
	RetryJoins pulumi.StringArrayOutput `pulumi:"retryJoins"`
	// The ACL token to use. This overrides the
	// token that the agent provides by default.
	Token pulumi.StringPtrOutput `pulumi:"token"`
	// Specifies whether gossip over this area should be
	// encrypted with TLS if possible. Defaults to `false`.
	UseTls pulumi.BoolPtrOutput `pulumi:"useTls"`
}

> **NOTE:** This feature requires [Consul Enterprise](https://www.consul.io/docs/enterprise/index.html).

The `NetworkArea` resource manages a relationship between servers in two different Consul datacenters.

Unlike Consul's WAN feature, network areas use just the server RPC port for communication, and relationships can be made between independent pairs of datacenters, so not all servers need to be fully connected. This allows for complex topologies among Consul datacenters like hub/spoke and more general trees.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-consul/sdk/v2/go/consul"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := consul.NewNetworkArea(ctx, "dc2", &consul.NetworkAreaArgs{
			PeerDatacenter: pulumi.String("dc2"),
			RetryJoins: pulumi.StringArray{
				pulumi.String("1.2.3.4"),
			},
			UseTls: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetNetworkArea added in v2.2.0

func GetNetworkArea(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *NetworkAreaState, opts ...pulumi.ResourceOption) (*NetworkArea, error)

GetNetworkArea gets an existing NetworkArea resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewNetworkArea added in v2.2.0

func NewNetworkArea(ctx *pulumi.Context,
	name string, args *NetworkAreaArgs, opts ...pulumi.ResourceOption) (*NetworkArea, error)

NewNetworkArea registers a new resource with the given unique name, arguments, and options.

type NetworkAreaArgs added in v2.2.0

type NetworkAreaArgs struct {
	// The datacenter to use. This overrides the
	// agent's default datacenter and the datacenter in the provider setup.
	Datacenter pulumi.StringPtrInput
	// The name of the Consul datacenter that will be
	// joined to form the area.
	PeerDatacenter pulumi.StringInput
	// Specifies a list of Consul servers to attempt to
	// join. Servers can be given as `IP`, `IP:port`, `hostname`, or `hostname:port`.
	RetryJoins pulumi.StringArrayInput
	// The ACL token to use. This overrides the
	// token that the agent provides by default.
	Token pulumi.StringPtrInput
	// Specifies whether gossip over this area should be
	// encrypted with TLS if possible. Defaults to `false`.
	UseTls pulumi.BoolPtrInput
}

The set of arguments for constructing a NetworkArea resource.

func (NetworkAreaArgs) ElementType added in v2.2.0

func (NetworkAreaArgs) ElementType() reflect.Type

type NetworkAreaState added in v2.2.0

type NetworkAreaState struct {
	// The datacenter to use. This overrides the
	// agent's default datacenter and the datacenter in the provider setup.
	Datacenter pulumi.StringPtrInput
	// The name of the Consul datacenter that will be
	// joined to form the area.
	PeerDatacenter pulumi.StringPtrInput
	// Specifies a list of Consul servers to attempt to
	// join. Servers can be given as `IP`, `IP:port`, `hostname`, or `hostname:port`.
	RetryJoins pulumi.StringArrayInput
	// The ACL token to use. This overrides the
	// token that the agent provides by default.
	Token pulumi.StringPtrInput
	// Specifies whether gossip over this area should be
	// encrypted with TLS if possible. Defaults to `false`.
	UseTls pulumi.BoolPtrInput
}

func (NetworkAreaState) ElementType added in v2.2.0

func (NetworkAreaState) ElementType() reflect.Type

type Node

type Node struct {
	pulumi.CustomResourceState

	// The address of the node being added to,
	// or referenced in the catalog.
	Address pulumi.StringOutput `pulumi:"address"`
	// The datacenter to use. This overrides the agent's
	// default datacenter and the datacenter in the provider setup.
	Datacenter pulumi.StringOutput `pulumi:"datacenter"`
	// Key/value pairs that are associated with the node.
	Meta pulumi.StringMapOutput `pulumi:"meta"`
	// The name of the node being added to, or
	// referenced in the catalog.
	Name  pulumi.StringOutput    `pulumi:"name"`
	Token pulumi.StringPtrOutput `pulumi:"token"`
}

Provides access to Node data in Consul. This can be used to define a node. Currently, defining health checks is not supported.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-consul/sdk/v2/go/consul"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := consul.NewNode(ctx, "foobar", &consul.NodeArgs{
			Address: pulumi.String("192.168.10.10"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetNode

func GetNode(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *NodeState, opts ...pulumi.ResourceOption) (*Node, error)

GetNode gets an existing Node resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewNode

func NewNode(ctx *pulumi.Context,
	name string, args *NodeArgs, opts ...pulumi.ResourceOption) (*Node, error)

NewNode registers a new resource with the given unique name, arguments, and options.

type NodeArgs

type NodeArgs struct {
	// The address of the node being added to,
	// or referenced in the catalog.
	Address pulumi.StringInput
	// The datacenter to use. This overrides the agent's
	// default datacenter and the datacenter in the provider setup.
	Datacenter pulumi.StringPtrInput
	// Key/value pairs that are associated with the node.
	Meta pulumi.StringMapInput
	// The name of the node being added to, or
	// referenced in the catalog.
	Name  pulumi.StringPtrInput
	Token pulumi.StringPtrInput
}

The set of arguments for constructing a Node resource.

func (NodeArgs) ElementType

func (NodeArgs) ElementType() reflect.Type

type NodeState

type NodeState struct {
	// The address of the node being added to,
	// or referenced in the catalog.
	Address pulumi.StringPtrInput
	// The datacenter to use. This overrides the agent's
	// default datacenter and the datacenter in the provider setup.
	Datacenter pulumi.StringPtrInput
	// Key/value pairs that are associated with the node.
	Meta pulumi.StringMapInput
	// The name of the node being added to, or
	// referenced in the catalog.
	Name  pulumi.StringPtrInput
	Token pulumi.StringPtrInput
}

func (NodeState) ElementType

func (NodeState) ElementType() reflect.Type

type PreparedQuery

type PreparedQuery struct {
	pulumi.CustomResourceState

	// When `true` the prepared query will return connect
	// proxy services for a queried service.  Conditions such as `tags` in the
	// prepared query will be matched against the proxy service. Defaults to false.
	Connect pulumi.BoolPtrOutput `pulumi:"connect"`
	// The datacenter to use. This overrides the
	// agent's default datacenter and the datacenter in the provider setup.
	Datacenter pulumi.StringPtrOutput `pulumi:"datacenter"`
	// Settings for controlling the DNS response details.
	Dns PreparedQueryDnsPtrOutput `pulumi:"dns"`
	// Options for controlling behavior when no healthy
	// nodes are available in the local DC.
	Failover PreparedQueryFailoverPtrOutput `pulumi:"failover"`
	// Specifies a list of check IDs that should be
	// ignored when filtering unhealthy instances. This is mostly useful in an
	// emergency or as a temporary measure when a health check is found to be
	// unreliable. Being able to ignore it in centrally-defined queries can be
	// simpler than de-registering the check as an interim solution until the check
	// can be fixed.
	IgnoreCheckIds pulumi.StringArrayOutput `pulumi:"ignoreCheckIds"`
	// The name of the prepared query. Used to identify
	// the prepared query during requests. Can be specified as an empty string
	// to configure the query as a catch-all.
	Name pulumi.StringOutput `pulumi:"name"`
	// Allows specifying the name of a node to sort results
	// near using Consul's distance sorting and network coordinates. The magic
	// `_agent` value can be used to always sort nearest the node servicing the
	// request.
	Near pulumi.StringPtrOutput `pulumi:"near"`
	// Specifies a list of user-defined key/value pairs that
	// will be used for filtering the query results to nodes with the given metadata
	// values present.
	NodeMeta pulumi.StringMapOutput `pulumi:"nodeMeta"`
	// When `true`, the prepared query will only
	// return nodes with passing health checks in the result.
	OnlyPassing pulumi.BoolPtrOutput `pulumi:"onlyPassing"`
	// The name of the service to query.
	Service pulumi.StringOutput `pulumi:"service"`
	// Specifies a list of user-defined key/value pairs
	// that will be used for filtering the query results to services with the given
	// metadata values present.
	ServiceMeta pulumi.StringMapOutput `pulumi:"serviceMeta"`
	// The name of the Consul session to tie this query's
	// lifetime to.  This is an advanced parameter that should not be used without a
	// complete understanding of Consul sessions and the implications of their use
	// (it is recommended to leave this blank in nearly all cases).  If this
	// parameter is omitted the query will not expire.
	Session pulumi.StringPtrOutput `pulumi:"session"`
	// The ACL token to store with the prepared
	// query. This token will be used by default whenever the query is executed.
	StoredToken pulumi.StringPtrOutput `pulumi:"storedToken"`
	// The list of required and/or disallowed tags.  If a tag is
	// in this list it must be present.  If the tag is preceded with a "!" then it is
	// disallowed.
	Tags pulumi.StringArrayOutput `pulumi:"tags"`
	// Query templating options. This is used to make a
	// single prepared query respond to many different requests.
	Template PreparedQueryTemplatePtrOutput `pulumi:"template"`
	// The ACL token to use when saving the prepared query.
	// This overrides the token that the agent provides by default.
	Token pulumi.StringPtrOutput `pulumi:"token"`
}

func GetPreparedQuery

func GetPreparedQuery(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *PreparedQueryState, opts ...pulumi.ResourceOption) (*PreparedQuery, error)

GetPreparedQuery gets an existing PreparedQuery resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewPreparedQuery

func NewPreparedQuery(ctx *pulumi.Context,
	name string, args *PreparedQueryArgs, opts ...pulumi.ResourceOption) (*PreparedQuery, error)

NewPreparedQuery registers a new resource with the given unique name, arguments, and options.

type PreparedQueryArgs

type PreparedQueryArgs struct {
	// When `true` the prepared query will return connect
	// proxy services for a queried service.  Conditions such as `tags` in the
	// prepared query will be matched against the proxy service. Defaults to false.
	Connect pulumi.BoolPtrInput
	// The datacenter to use. This overrides the
	// agent's default datacenter and the datacenter in the provider setup.
	Datacenter pulumi.StringPtrInput
	// Settings for controlling the DNS response details.
	Dns PreparedQueryDnsPtrInput
	// Options for controlling behavior when no healthy
	// nodes are available in the local DC.
	Failover PreparedQueryFailoverPtrInput
	// Specifies a list of check IDs that should be
	// ignored when filtering unhealthy instances. This is mostly useful in an
	// emergency or as a temporary measure when a health check is found to be
	// unreliable. Being able to ignore it in centrally-defined queries can be
	// simpler than de-registering the check as an interim solution until the check
	// can be fixed.
	IgnoreCheckIds pulumi.StringArrayInput
	// The name of the prepared query. Used to identify
	// the prepared query during requests. Can be specified as an empty string
	// to configure the query as a catch-all.
	Name pulumi.StringPtrInput
	// Allows specifying the name of a node to sort results
	// near using Consul's distance sorting and network coordinates. The magic
	// `_agent` value can be used to always sort nearest the node servicing the
	// request.
	Near pulumi.StringPtrInput
	// Specifies a list of user-defined key/value pairs that
	// will be used for filtering the query results to nodes with the given metadata
	// values present.
	NodeMeta pulumi.StringMapInput
	// When `true`, the prepared query will only
	// return nodes with passing health checks in the result.
	OnlyPassing pulumi.BoolPtrInput
	// The name of the service to query.
	Service pulumi.StringInput
	// Specifies a list of user-defined key/value pairs
	// that will be used for filtering the query results to services with the given
	// metadata values present.
	ServiceMeta pulumi.StringMapInput
	// The name of the Consul session to tie this query's
	// lifetime to.  This is an advanced parameter that should not be used without a
	// complete understanding of Consul sessions and the implications of their use
	// (it is recommended to leave this blank in nearly all cases).  If this
	// parameter is omitted the query will not expire.
	Session pulumi.StringPtrInput
	// The ACL token to store with the prepared
	// query. This token will be used by default whenever the query is executed.
	StoredToken pulumi.StringPtrInput
	// The list of required and/or disallowed tags.  If a tag is
	// in this list it must be present.  If the tag is preceded with a "!" then it is
	// disallowed.
	Tags pulumi.StringArrayInput
	// Query templating options. This is used to make a
	// single prepared query respond to many different requests.
	Template PreparedQueryTemplatePtrInput
	// The ACL token to use when saving the prepared query.
	// This overrides the token that the agent provides by default.
	Token pulumi.StringPtrInput
}

The set of arguments for constructing a PreparedQuery resource.

func (PreparedQueryArgs) ElementType

func (PreparedQueryArgs) ElementType() reflect.Type

type PreparedQueryDns

type PreparedQueryDns struct {
	// The TTL to send when returning DNS results.
	Ttl *string `pulumi:"ttl"`
}

type PreparedQueryDnsArgs

type PreparedQueryDnsArgs struct {
	// The TTL to send when returning DNS results.
	Ttl pulumi.StringPtrInput `pulumi:"ttl"`
}

func (PreparedQueryDnsArgs) ElementType

func (PreparedQueryDnsArgs) ElementType() reflect.Type

func (PreparedQueryDnsArgs) ToPreparedQueryDnsOutput

func (i PreparedQueryDnsArgs) ToPreparedQueryDnsOutput() PreparedQueryDnsOutput

func (PreparedQueryDnsArgs) ToPreparedQueryDnsOutputWithContext

func (i PreparedQueryDnsArgs) ToPreparedQueryDnsOutputWithContext(ctx context.Context) PreparedQueryDnsOutput

func (PreparedQueryDnsArgs) ToPreparedQueryDnsPtrOutput

func (i PreparedQueryDnsArgs) ToPreparedQueryDnsPtrOutput() PreparedQueryDnsPtrOutput

func (PreparedQueryDnsArgs) ToPreparedQueryDnsPtrOutputWithContext

func (i PreparedQueryDnsArgs) ToPreparedQueryDnsPtrOutputWithContext(ctx context.Context) PreparedQueryDnsPtrOutput

type PreparedQueryDnsInput

type PreparedQueryDnsInput interface {
	pulumi.Input

	ToPreparedQueryDnsOutput() PreparedQueryDnsOutput
	ToPreparedQueryDnsOutputWithContext(context.Context) PreparedQueryDnsOutput
}

PreparedQueryDnsInput is an input type that accepts PreparedQueryDnsArgs and PreparedQueryDnsOutput values. You can construct a concrete instance of `PreparedQueryDnsInput` via:

PreparedQueryDnsArgs{...}

type PreparedQueryDnsOutput

type PreparedQueryDnsOutput struct{ *pulumi.OutputState }

func (PreparedQueryDnsOutput) ElementType

func (PreparedQueryDnsOutput) ElementType() reflect.Type

func (PreparedQueryDnsOutput) ToPreparedQueryDnsOutput

func (o PreparedQueryDnsOutput) ToPreparedQueryDnsOutput() PreparedQueryDnsOutput

func (PreparedQueryDnsOutput) ToPreparedQueryDnsOutputWithContext

func (o PreparedQueryDnsOutput) ToPreparedQueryDnsOutputWithContext(ctx context.Context) PreparedQueryDnsOutput

func (PreparedQueryDnsOutput) ToPreparedQueryDnsPtrOutput

func (o PreparedQueryDnsOutput) ToPreparedQueryDnsPtrOutput() PreparedQueryDnsPtrOutput

func (PreparedQueryDnsOutput) ToPreparedQueryDnsPtrOutputWithContext

func (o PreparedQueryDnsOutput) ToPreparedQueryDnsPtrOutputWithContext(ctx context.Context) PreparedQueryDnsPtrOutput

func (PreparedQueryDnsOutput) Ttl

The TTL to send when returning DNS results.

type PreparedQueryDnsPtrInput

type PreparedQueryDnsPtrInput interface {
	pulumi.Input

	ToPreparedQueryDnsPtrOutput() PreparedQueryDnsPtrOutput
	ToPreparedQueryDnsPtrOutputWithContext(context.Context) PreparedQueryDnsPtrOutput
}

PreparedQueryDnsPtrInput is an input type that accepts PreparedQueryDnsArgs, PreparedQueryDnsPtr and PreparedQueryDnsPtrOutput values. You can construct a concrete instance of `PreparedQueryDnsPtrInput` via:

        PreparedQueryDnsArgs{...}

or:

        nil

type PreparedQueryDnsPtrOutput

type PreparedQueryDnsPtrOutput struct{ *pulumi.OutputState }

func (PreparedQueryDnsPtrOutput) Elem

func (PreparedQueryDnsPtrOutput) ElementType

func (PreparedQueryDnsPtrOutput) ElementType() reflect.Type

func (PreparedQueryDnsPtrOutput) ToPreparedQueryDnsPtrOutput

func (o PreparedQueryDnsPtrOutput) ToPreparedQueryDnsPtrOutput() PreparedQueryDnsPtrOutput

func (PreparedQueryDnsPtrOutput) ToPreparedQueryDnsPtrOutputWithContext

func (o PreparedQueryDnsPtrOutput) ToPreparedQueryDnsPtrOutputWithContext(ctx context.Context) PreparedQueryDnsPtrOutput

func (PreparedQueryDnsPtrOutput) Ttl

The TTL to send when returning DNS results.

type PreparedQueryFailover

type PreparedQueryFailover struct {
	// Remote datacenters to return results from.
	Datacenters []string `pulumi:"datacenters"`
	// Return results from this many datacenters,
	// sorted in ascending order of estimated RTT.
	NearestN *int `pulumi:"nearestN"`
}

type PreparedQueryFailoverArgs

type PreparedQueryFailoverArgs struct {
	// Remote datacenters to return results from.
	Datacenters pulumi.StringArrayInput `pulumi:"datacenters"`
	// Return results from this many datacenters,
	// sorted in ascending order of estimated RTT.
	NearestN pulumi.IntPtrInput `pulumi:"nearestN"`
}

func (PreparedQueryFailoverArgs) ElementType

func (PreparedQueryFailoverArgs) ElementType() reflect.Type

func (PreparedQueryFailoverArgs) ToPreparedQueryFailoverOutput

func (i PreparedQueryFailoverArgs) ToPreparedQueryFailoverOutput() PreparedQueryFailoverOutput

func (PreparedQueryFailoverArgs) ToPreparedQueryFailoverOutputWithContext

func (i PreparedQueryFailoverArgs) ToPreparedQueryFailoverOutputWithContext(ctx context.Context) PreparedQueryFailoverOutput

func (PreparedQueryFailoverArgs) ToPreparedQueryFailoverPtrOutput

func (i PreparedQueryFailoverArgs) ToPreparedQueryFailoverPtrOutput() PreparedQueryFailoverPtrOutput

func (PreparedQueryFailoverArgs) ToPreparedQueryFailoverPtrOutputWithContext

func (i PreparedQueryFailoverArgs) ToPreparedQueryFailoverPtrOutputWithContext(ctx context.Context) PreparedQueryFailoverPtrOutput

type PreparedQueryFailoverInput

type PreparedQueryFailoverInput interface {
	pulumi.Input

	ToPreparedQueryFailoverOutput() PreparedQueryFailoverOutput
	ToPreparedQueryFailoverOutputWithContext(context.Context) PreparedQueryFailoverOutput
}

PreparedQueryFailoverInput is an input type that accepts PreparedQueryFailoverArgs and PreparedQueryFailoverOutput values. You can construct a concrete instance of `PreparedQueryFailoverInput` via:

PreparedQueryFailoverArgs{...}

type PreparedQueryFailoverOutput

type PreparedQueryFailoverOutput struct{ *pulumi.OutputState }

func (PreparedQueryFailoverOutput) Datacenters

Remote datacenters to return results from.

func (PreparedQueryFailoverOutput) ElementType

func (PreparedQueryFailoverOutput) NearestN

Return results from this many datacenters, sorted in ascending order of estimated RTT.

func (PreparedQueryFailoverOutput) ToPreparedQueryFailoverOutput

func (o PreparedQueryFailoverOutput) ToPreparedQueryFailoverOutput() PreparedQueryFailoverOutput

func (PreparedQueryFailoverOutput) ToPreparedQueryFailoverOutputWithContext

func (o PreparedQueryFailoverOutput) ToPreparedQueryFailoverOutputWithContext(ctx context.Context) PreparedQueryFailoverOutput

func (PreparedQueryFailoverOutput) ToPreparedQueryFailoverPtrOutput

func (o PreparedQueryFailoverOutput) ToPreparedQueryFailoverPtrOutput() PreparedQueryFailoverPtrOutput

func (PreparedQueryFailoverOutput) ToPreparedQueryFailoverPtrOutputWithContext

func (o PreparedQueryFailoverOutput) ToPreparedQueryFailoverPtrOutputWithContext(ctx context.Context) PreparedQueryFailoverPtrOutput

type PreparedQueryFailoverPtrInput

type PreparedQueryFailoverPtrInput interface {
	pulumi.Input

	ToPreparedQueryFailoverPtrOutput() PreparedQueryFailoverPtrOutput
	ToPreparedQueryFailoverPtrOutputWithContext(context.Context) PreparedQueryFailoverPtrOutput
}

PreparedQueryFailoverPtrInput is an input type that accepts PreparedQueryFailoverArgs, PreparedQueryFailoverPtr and PreparedQueryFailoverPtrOutput values. You can construct a concrete instance of `PreparedQueryFailoverPtrInput` via:

        PreparedQueryFailoverArgs{...}

or:

        nil

type PreparedQueryFailoverPtrOutput

type PreparedQueryFailoverPtrOutput struct{ *pulumi.OutputState }

func (PreparedQueryFailoverPtrOutput) Datacenters

Remote datacenters to return results from.

func (PreparedQueryFailoverPtrOutput) Elem

func (PreparedQueryFailoverPtrOutput) ElementType

func (PreparedQueryFailoverPtrOutput) NearestN

Return results from this many datacenters, sorted in ascending order of estimated RTT.

func (PreparedQueryFailoverPtrOutput) ToPreparedQueryFailoverPtrOutput

func (o PreparedQueryFailoverPtrOutput) ToPreparedQueryFailoverPtrOutput() PreparedQueryFailoverPtrOutput

func (PreparedQueryFailoverPtrOutput) ToPreparedQueryFailoverPtrOutputWithContext

func (o PreparedQueryFailoverPtrOutput) ToPreparedQueryFailoverPtrOutputWithContext(ctx context.Context) PreparedQueryFailoverPtrOutput

type PreparedQueryState

type PreparedQueryState struct {
	// When `true` the prepared query will return connect
	// proxy services for a queried service.  Conditions such as `tags` in the
	// prepared query will be matched against the proxy service. Defaults to false.
	Connect pulumi.BoolPtrInput
	// The datacenter to use. This overrides the
	// agent's default datacenter and the datacenter in the provider setup.
	Datacenter pulumi.StringPtrInput
	// Settings for controlling the DNS response details.
	Dns PreparedQueryDnsPtrInput
	// Options for controlling behavior when no healthy
	// nodes are available in the local DC.
	Failover PreparedQueryFailoverPtrInput
	// Specifies a list of check IDs that should be
	// ignored when filtering unhealthy instances. This is mostly useful in an
	// emergency or as a temporary measure when a health check is found to be
	// unreliable. Being able to ignore it in centrally-defined queries can be
	// simpler than de-registering the check as an interim solution until the check
	// can be fixed.
	IgnoreCheckIds pulumi.StringArrayInput
	// The name of the prepared query. Used to identify
	// the prepared query during requests. Can be specified as an empty string
	// to configure the query as a catch-all.
	Name pulumi.StringPtrInput
	// Allows specifying the name of a node to sort results
	// near using Consul's distance sorting and network coordinates. The magic
	// `_agent` value can be used to always sort nearest the node servicing the
	// request.
	Near pulumi.StringPtrInput
	// Specifies a list of user-defined key/value pairs that
	// will be used for filtering the query results to nodes with the given metadata
	// values present.
	NodeMeta pulumi.StringMapInput
	// When `true`, the prepared query will only
	// return nodes with passing health checks in the result.
	OnlyPassing pulumi.BoolPtrInput
	// The name of the service to query.
	Service pulumi.StringPtrInput
	// Specifies a list of user-defined key/value pairs
	// that will be used for filtering the query results to services with the given
	// metadata values present.
	ServiceMeta pulumi.StringMapInput
	// The name of the Consul session to tie this query's
	// lifetime to.  This is an advanced parameter that should not be used without a
	// complete understanding of Consul sessions and the implications of their use
	// (it is recommended to leave this blank in nearly all cases).  If this
	// parameter is omitted the query will not expire.
	Session pulumi.StringPtrInput
	// The ACL token to store with the prepared
	// query. This token will be used by default whenever the query is executed.
	StoredToken pulumi.StringPtrInput
	// The list of required and/or disallowed tags.  If a tag is
	// in this list it must be present.  If the tag is preceded with a "!" then it is
	// disallowed.
	Tags pulumi.StringArrayInput
	// Query templating options. This is used to make a
	// single prepared query respond to many different requests.
	Template PreparedQueryTemplatePtrInput
	// The ACL token to use when saving the prepared query.
	// This overrides the token that the agent provides by default.
	Token pulumi.StringPtrInput
}

func (PreparedQueryState) ElementType

func (PreparedQueryState) ElementType() reflect.Type

type PreparedQueryTemplate

type PreparedQueryTemplate struct {
	// The regular expression to match with. When using
	// `namePrefixMatch`, this regex is applied against the query name.
	Regexp string `pulumi:"regexp"`
	// The type of template matching to perform. Currently
	// only `namePrefixMatch` is supported.
	Type string `pulumi:"type"`
}

type PreparedQueryTemplateArgs

type PreparedQueryTemplateArgs struct {
	// The regular expression to match with. When using
	// `namePrefixMatch`, this regex is applied against the query name.
	Regexp pulumi.StringInput `pulumi:"regexp"`
	// The type of template matching to perform. Currently
	// only `namePrefixMatch` is supported.
	Type pulumi.StringInput `pulumi:"type"`
}

func (PreparedQueryTemplateArgs) ElementType

func (PreparedQueryTemplateArgs) ElementType() reflect.Type

func (PreparedQueryTemplateArgs) ToPreparedQueryTemplateOutput

func (i PreparedQueryTemplateArgs) ToPreparedQueryTemplateOutput() PreparedQueryTemplateOutput

func (PreparedQueryTemplateArgs) ToPreparedQueryTemplateOutputWithContext

func (i PreparedQueryTemplateArgs) ToPreparedQueryTemplateOutputWithContext(ctx context.Context) PreparedQueryTemplateOutput

func (PreparedQueryTemplateArgs) ToPreparedQueryTemplatePtrOutput

func (i PreparedQueryTemplateArgs) ToPreparedQueryTemplatePtrOutput() PreparedQueryTemplatePtrOutput

func (PreparedQueryTemplateArgs) ToPreparedQueryTemplatePtrOutputWithContext

func (i PreparedQueryTemplateArgs) ToPreparedQueryTemplatePtrOutputWithContext(ctx context.Context) PreparedQueryTemplatePtrOutput

type PreparedQueryTemplateInput

type PreparedQueryTemplateInput interface {
	pulumi.Input

	ToPreparedQueryTemplateOutput() PreparedQueryTemplateOutput
	ToPreparedQueryTemplateOutputWithContext(context.Context) PreparedQueryTemplateOutput
}

PreparedQueryTemplateInput is an input type that accepts PreparedQueryTemplateArgs and PreparedQueryTemplateOutput values. You can construct a concrete instance of `PreparedQueryTemplateInput` via:

PreparedQueryTemplateArgs{...}

type PreparedQueryTemplateOutput

type PreparedQueryTemplateOutput struct{ *pulumi.OutputState }

func (PreparedQueryTemplateOutput) ElementType

func (PreparedQueryTemplateOutput) Regexp

The regular expression to match with. When using `namePrefixMatch`, this regex is applied against the query name.

func (PreparedQueryTemplateOutput) ToPreparedQueryTemplateOutput

func (o PreparedQueryTemplateOutput) ToPreparedQueryTemplateOutput() PreparedQueryTemplateOutput

func (PreparedQueryTemplateOutput) ToPreparedQueryTemplateOutputWithContext

func (o PreparedQueryTemplateOutput) ToPreparedQueryTemplateOutputWithContext(ctx context.Context) PreparedQueryTemplateOutput

func (PreparedQueryTemplateOutput) ToPreparedQueryTemplatePtrOutput

func (o PreparedQueryTemplateOutput) ToPreparedQueryTemplatePtrOutput() PreparedQueryTemplatePtrOutput

func (PreparedQueryTemplateOutput) ToPreparedQueryTemplatePtrOutputWithContext

func (o PreparedQueryTemplateOutput) ToPreparedQueryTemplatePtrOutputWithContext(ctx context.Context) PreparedQueryTemplatePtrOutput

func (PreparedQueryTemplateOutput) Type

The type of template matching to perform. Currently only `namePrefixMatch` is supported.

type PreparedQueryTemplatePtrInput

type PreparedQueryTemplatePtrInput interface {
	pulumi.Input

	ToPreparedQueryTemplatePtrOutput() PreparedQueryTemplatePtrOutput
	ToPreparedQueryTemplatePtrOutputWithContext(context.Context) PreparedQueryTemplatePtrOutput
}

PreparedQueryTemplatePtrInput is an input type that accepts PreparedQueryTemplateArgs, PreparedQueryTemplatePtr and PreparedQueryTemplatePtrOutput values. You can construct a concrete instance of `PreparedQueryTemplatePtrInput` via:

        PreparedQueryTemplateArgs{...}

or:

        nil

type PreparedQueryTemplatePtrOutput

type PreparedQueryTemplatePtrOutput struct{ *pulumi.OutputState }

func (PreparedQueryTemplatePtrOutput) Elem

func (PreparedQueryTemplatePtrOutput) ElementType

func (PreparedQueryTemplatePtrOutput) Regexp

The regular expression to match with. When using `namePrefixMatch`, this regex is applied against the query name.

func (PreparedQueryTemplatePtrOutput) ToPreparedQueryTemplatePtrOutput

func (o PreparedQueryTemplatePtrOutput) ToPreparedQueryTemplatePtrOutput() PreparedQueryTemplatePtrOutput

func (PreparedQueryTemplatePtrOutput) ToPreparedQueryTemplatePtrOutputWithContext

func (o PreparedQueryTemplatePtrOutput) ToPreparedQueryTemplatePtrOutputWithContext(ctx context.Context) PreparedQueryTemplatePtrOutput

func (PreparedQueryTemplatePtrOutput) Type

The type of template matching to perform. Currently only `namePrefixMatch` is supported.

type Provider

type Provider struct {
	pulumi.ProviderResourceState
}

The provider type for the consul package. By default, resources use package-wide configuration settings, however an explicit `Provider` instance may be created and passed during resource construction to achieve fine-grained programmatic control over provider settings. See the [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.

func NewProvider

func NewProvider(ctx *pulumi.Context,
	name string, args *ProviderArgs, opts ...pulumi.ResourceOption) (*Provider, error)

NewProvider registers a new resource with the given unique name, arguments, and options.

type ProviderArgs

type ProviderArgs struct {
	Address       pulumi.StringPtrInput
	CaFile        pulumi.StringPtrInput
	CaPath        pulumi.StringPtrInput
	CertFile      pulumi.StringPtrInput
	Datacenter    pulumi.StringPtrInput
	HttpAuth      pulumi.StringPtrInput
	InsecureHttps pulumi.BoolPtrInput
	KeyFile       pulumi.StringPtrInput
	Namespace     pulumi.StringPtrInput
	Scheme        pulumi.StringPtrInput
	Token         pulumi.StringPtrInput
}

The set of arguments for constructing a Provider resource.

func (ProviderArgs) ElementType

func (ProviderArgs) ElementType() reflect.Type

type Service

type Service struct {
	pulumi.CustomResourceState

	// The address of the service. Defaults to the
	// address of the node.
	Address pulumi.StringOutput     `pulumi:"address"`
	Checks  ServiceCheckArrayOutput `pulumi:"checks"`
	// The datacenter to use. This overrides the
	// agent's default datacenter and the datacenter in the provider setup.
	Datacenter pulumi.StringOutput `pulumi:"datacenter"`
	// Specifies to disable the
	// anti-entropy feature for this service's tags. Defaults to `false`.
	EnableTagOverride pulumi.BoolPtrOutput `pulumi:"enableTagOverride"`
	// Deprecated: The external field has been deprecated and does nothing.
	External pulumi.BoolPtrOutput `pulumi:"external"`
	// A map of arbitrary KV metadata linked to the service
	// instance.
	Meta pulumi.StringMapOutput `pulumi:"meta"`
	// The name of the health-check.
	Name pulumi.StringOutput `pulumi:"name"`
	// The namespace to create the service within.
	Namespace pulumi.StringPtrOutput `pulumi:"namespace"`
	// The name of the node the to register the service on.
	Node pulumi.StringOutput `pulumi:"node"`
	// The port of the service.
	Port pulumi.IntPtrOutput `pulumi:"port"`
	// - If the service ID is not provided, it will be defaulted to the value
	//   of the `name` attribute.
	ServiceId pulumi.StringOutput `pulumi:"serviceId"`
	// A list of values that are opaque to Consul,
	// but can be used to distinguish between services or nodes.
	Tags pulumi.StringArrayOutput `pulumi:"tags"`
}

A high-level resource for creating a Service in Consul in the Consul catalog. This is appropriate for registering [external services](https://www.consul.io/docs/guides/external.html) and can be used to create services addressable by Consul that cannot be registered with a [local agent](https://www.consul.io/docs/agent/basics.html).

If the Consul agent is running on the node where this service is registered, it is not recommended to use this resource.

## Example Usage

Creating a new node with the service:

```go package main

import (

"github.com/pulumi/pulumi-consul/sdk/v2/go/consul"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		compute, err := consul.NewNode(ctx, "compute", &consul.NodeArgs{
			Address: pulumi.String("www.google.com"),
		})
		if err != nil {
			return err
		}
		_, err = consul.NewService(ctx, "google", &consul.ServiceArgs{
			Node: compute.Name,
			Port: pulumi.Int(80),
			Tags: pulumi.StringArray{
				pulumi.String("tag0"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

Utilizing an existing known node:

```go package main

import (

"github.com/pulumi/pulumi-consul/sdk/v2/go/consul"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := consul.NewService(ctx, "google", &consul.ServiceArgs{
			Node: pulumi.String("google"),
			Port: pulumi.Int(443),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

Register a health-check:

```go package main

import (

"github.com/pulumi/pulumi-consul/sdk/v2/go/consul"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := consul.NewService(ctx, "redis", &consul.ServiceArgs{
			Checks: consul.ServiceCheckArray{
				&consul.ServiceCheckArgs{
					CheckId:                        pulumi.String("service:redis1"),
					DeregisterCriticalServiceAfter: pulumi.String("30s"),
					Headers: consul.ServiceCheckHeaderArray{
						&consul.ServiceCheckHeaderArgs{
							Name: pulumi.String("foo"),
							Value: pulumi.StringArray{
								pulumi.String("test"),
							},
						},
						&consul.ServiceCheckHeaderArgs{
							Name: pulumi.String("bar"),
							Value: pulumi.StringArray{
								pulumi.String("test"),
							},
						},
					},
					Http:          pulumi.String("https://www.hashicorptest.com"),
					Interval:      pulumi.String("5s"),
					Method:        pulumi.String("PUT"),
					Name:          pulumi.String("Redis health check"),
					Status:        pulumi.String("passing"),
					Timeout:       pulumi.String("1s"),
					TlsSkipVerify: pulumi.Bool(false),
				},
			},
			Node: pulumi.String("redis"),
			Port: pulumi.Int(6379),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetService

func GetService(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ServiceState, opts ...pulumi.ResourceOption) (*Service, error)

GetService gets an existing Service resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewService

func NewService(ctx *pulumi.Context,
	name string, args *ServiceArgs, opts ...pulumi.ResourceOption) (*Service, error)

NewService registers a new resource with the given unique name, arguments, and options.

type ServiceArgs

type ServiceArgs struct {
	// The address of the service. Defaults to the
	// address of the node.
	Address pulumi.StringPtrInput
	Checks  ServiceCheckArrayInput
	// The datacenter to use. This overrides the
	// agent's default datacenter and the datacenter in the provider setup.
	Datacenter pulumi.StringPtrInput
	// Specifies to disable the
	// anti-entropy feature for this service's tags. Defaults to `false`.
	EnableTagOverride pulumi.BoolPtrInput
	// Deprecated: The external field has been deprecated and does nothing.
	External pulumi.BoolPtrInput
	// A map of arbitrary KV metadata linked to the service
	// instance.
	Meta pulumi.StringMapInput
	// The name of the health-check.
	Name pulumi.StringPtrInput
	// The namespace to create the service within.
	Namespace pulumi.StringPtrInput
	// The name of the node the to register the service on.
	Node pulumi.StringInput
	// The port of the service.
	Port pulumi.IntPtrInput
	// - If the service ID is not provided, it will be defaulted to the value
	//   of the `name` attribute.
	ServiceId pulumi.StringPtrInput
	// A list of values that are opaque to Consul,
	// but can be used to distinguish between services or nodes.
	Tags pulumi.StringArrayInput
}

The set of arguments for constructing a Service resource.

func (ServiceArgs) ElementType

func (ServiceArgs) ElementType() reflect.Type

type ServiceCheck

type ServiceCheck struct {
	// An ID, *unique per agent*. Will default to *name*
	// if not set.
	CheckId string `pulumi:"checkId"`
	// The time after which
	// the service is automatically deregistered when in the `critical` state.
	// Defaults to `30s`.
	DeregisterCriticalServiceAfter *string `pulumi:"deregisterCriticalServiceAfter"`
	// The headers to send for an HTTP check.
	// The attributes of each header is given below.
	Headers []ServiceCheckHeader `pulumi:"headers"`
	// The HTTP endpoint to call for an HTTP check.
	Http *string `pulumi:"http"`
	// The interval to wait between each health-check
	// invocation.
	Interval string `pulumi:"interval"`
	// The method to use for HTTP health-checks. Defaults
	// to `GET`.
	Method *string `pulumi:"method"`
	// The name of the health-check.
	Name string `pulumi:"name"`
	// An opaque field meant to hold human readable text.
	Notes *string `pulumi:"notes"`
	// The initial health-check status.
	Status *string `pulumi:"status"`
	// The TCP address and port to connect to for a TCP check.
	Tcp *string `pulumi:"tcp"`
	// The timeout value for HTTP checks.
	Timeout string `pulumi:"timeout"`
	// Whether to deactivate certificate
	// verification for HTTP health-checks. Defaults to `false`.
	TlsSkipVerify *bool `pulumi:"tlsSkipVerify"`
}

type ServiceCheckArgs

type ServiceCheckArgs struct {
	// An ID, *unique per agent*. Will default to *name*
	// if not set.
	CheckId pulumi.StringInput `pulumi:"checkId"`
	// The time after which
	// the service is automatically deregistered when in the `critical` state.
	// Defaults to `30s`.
	DeregisterCriticalServiceAfter pulumi.StringPtrInput `pulumi:"deregisterCriticalServiceAfter"`
	// The headers to send for an HTTP check.
	// The attributes of each header is given below.
	Headers ServiceCheckHeaderArrayInput `pulumi:"headers"`
	// The HTTP endpoint to call for an HTTP check.
	Http pulumi.StringPtrInput `pulumi:"http"`
	// The interval to wait between each health-check
	// invocation.
	Interval pulumi.StringInput `pulumi:"interval"`
	// The method to use for HTTP health-checks. Defaults
	// to `GET`.
	Method pulumi.StringPtrInput `pulumi:"method"`
	// The name of the health-check.
	Name pulumi.StringInput `pulumi:"name"`
	// An opaque field meant to hold human readable text.
	Notes pulumi.StringPtrInput `pulumi:"notes"`
	// The initial health-check status.
	Status pulumi.StringPtrInput `pulumi:"status"`
	// The TCP address and port to connect to for a TCP check.
	Tcp pulumi.StringPtrInput `pulumi:"tcp"`
	// The timeout value for HTTP checks.
	Timeout pulumi.StringInput `pulumi:"timeout"`
	// Whether to deactivate certificate
	// verification for HTTP health-checks. Defaults to `false`.
	TlsSkipVerify pulumi.BoolPtrInput `pulumi:"tlsSkipVerify"`
}

func (ServiceCheckArgs) ElementType

func (ServiceCheckArgs) ElementType() reflect.Type

func (ServiceCheckArgs) ToServiceCheckOutput

func (i ServiceCheckArgs) ToServiceCheckOutput() ServiceCheckOutput

func (ServiceCheckArgs) ToServiceCheckOutputWithContext

func (i ServiceCheckArgs) ToServiceCheckOutputWithContext(ctx context.Context) ServiceCheckOutput

type ServiceCheckArray

type ServiceCheckArray []ServiceCheckInput

func (ServiceCheckArray) ElementType

func (ServiceCheckArray) ElementType() reflect.Type

func (ServiceCheckArray) ToServiceCheckArrayOutput

func (i ServiceCheckArray) ToServiceCheckArrayOutput() ServiceCheckArrayOutput

func (ServiceCheckArray) ToServiceCheckArrayOutputWithContext

func (i ServiceCheckArray) ToServiceCheckArrayOutputWithContext(ctx context.Context) ServiceCheckArrayOutput

type ServiceCheckArrayInput

type ServiceCheckArrayInput interface {
	pulumi.Input

	ToServiceCheckArrayOutput() ServiceCheckArrayOutput
	ToServiceCheckArrayOutputWithContext(context.Context) ServiceCheckArrayOutput
}

ServiceCheckArrayInput is an input type that accepts ServiceCheckArray and ServiceCheckArrayOutput values. You can construct a concrete instance of `ServiceCheckArrayInput` via:

ServiceCheckArray{ ServiceCheckArgs{...} }

type ServiceCheckArrayOutput

type ServiceCheckArrayOutput struct{ *pulumi.OutputState }

func (ServiceCheckArrayOutput) ElementType

func (ServiceCheckArrayOutput) ElementType() reflect.Type

func (ServiceCheckArrayOutput) Index

func (ServiceCheckArrayOutput) ToServiceCheckArrayOutput

func (o ServiceCheckArrayOutput) ToServiceCheckArrayOutput() ServiceCheckArrayOutput

func (ServiceCheckArrayOutput) ToServiceCheckArrayOutputWithContext

func (o ServiceCheckArrayOutput) ToServiceCheckArrayOutputWithContext(ctx context.Context) ServiceCheckArrayOutput

type ServiceCheckHeader

type ServiceCheckHeader struct {
	// The name of the header.
	Name string `pulumi:"name"`
	// The header's list of values.
	Values []string `pulumi:"values"`
}

type ServiceCheckHeaderArgs

type ServiceCheckHeaderArgs struct {
	// The name of the header.
	Name pulumi.StringInput `pulumi:"name"`
	// The header's list of values.
	Values pulumi.StringArrayInput `pulumi:"values"`
}

func (ServiceCheckHeaderArgs) ElementType

func (ServiceCheckHeaderArgs) ElementType() reflect.Type

func (ServiceCheckHeaderArgs) ToServiceCheckHeaderOutput

func (i ServiceCheckHeaderArgs) ToServiceCheckHeaderOutput() ServiceCheckHeaderOutput

func (ServiceCheckHeaderArgs) ToServiceCheckHeaderOutputWithContext

func (i ServiceCheckHeaderArgs) ToServiceCheckHeaderOutputWithContext(ctx context.Context) ServiceCheckHeaderOutput

type ServiceCheckHeaderArray

type ServiceCheckHeaderArray []ServiceCheckHeaderInput

func (ServiceCheckHeaderArray) ElementType

func (ServiceCheckHeaderArray) ElementType() reflect.Type

func (ServiceCheckHeaderArray) ToServiceCheckHeaderArrayOutput

func (i ServiceCheckHeaderArray) ToServiceCheckHeaderArrayOutput() ServiceCheckHeaderArrayOutput

func (ServiceCheckHeaderArray) ToServiceCheckHeaderArrayOutputWithContext

func (i ServiceCheckHeaderArray) ToServiceCheckHeaderArrayOutputWithContext(ctx context.Context) ServiceCheckHeaderArrayOutput

type ServiceCheckHeaderArrayInput

type ServiceCheckHeaderArrayInput interface {
	pulumi.Input

	ToServiceCheckHeaderArrayOutput() ServiceCheckHeaderArrayOutput
	ToServiceCheckHeaderArrayOutputWithContext(context.Context) ServiceCheckHeaderArrayOutput
}

ServiceCheckHeaderArrayInput is an input type that accepts ServiceCheckHeaderArray and ServiceCheckHeaderArrayOutput values. You can construct a concrete instance of `ServiceCheckHeaderArrayInput` via:

ServiceCheckHeaderArray{ ServiceCheckHeaderArgs{...} }

type ServiceCheckHeaderArrayOutput

type ServiceCheckHeaderArrayOutput struct{ *pulumi.OutputState }

func (ServiceCheckHeaderArrayOutput) ElementType

func (ServiceCheckHeaderArrayOutput) Index

func (ServiceCheckHeaderArrayOutput) ToServiceCheckHeaderArrayOutput

func (o ServiceCheckHeaderArrayOutput) ToServiceCheckHeaderArrayOutput() ServiceCheckHeaderArrayOutput

func (ServiceCheckHeaderArrayOutput) ToServiceCheckHeaderArrayOutputWithContext

func (o ServiceCheckHeaderArrayOutput) ToServiceCheckHeaderArrayOutputWithContext(ctx context.Context) ServiceCheckHeaderArrayOutput

type ServiceCheckHeaderInput

type ServiceCheckHeaderInput interface {
	pulumi.Input

	ToServiceCheckHeaderOutput() ServiceCheckHeaderOutput
	ToServiceCheckHeaderOutputWithContext(context.Context) ServiceCheckHeaderOutput
}

ServiceCheckHeaderInput is an input type that accepts ServiceCheckHeaderArgs and ServiceCheckHeaderOutput values. You can construct a concrete instance of `ServiceCheckHeaderInput` via:

ServiceCheckHeaderArgs{...}

type ServiceCheckHeaderOutput

type ServiceCheckHeaderOutput struct{ *pulumi.OutputState }

func (ServiceCheckHeaderOutput) ElementType

func (ServiceCheckHeaderOutput) ElementType() reflect.Type

func (ServiceCheckHeaderOutput) Name

The name of the header.

func (ServiceCheckHeaderOutput) ToServiceCheckHeaderOutput

func (o ServiceCheckHeaderOutput) ToServiceCheckHeaderOutput() ServiceCheckHeaderOutput

func (ServiceCheckHeaderOutput) ToServiceCheckHeaderOutputWithContext

func (o ServiceCheckHeaderOutput) ToServiceCheckHeaderOutputWithContext(ctx context.Context) ServiceCheckHeaderOutput

func (ServiceCheckHeaderOutput) Values

The header's list of values.

type ServiceCheckInput

type ServiceCheckInput interface {
	pulumi.Input

	ToServiceCheckOutput() ServiceCheckOutput
	ToServiceCheckOutputWithContext(context.Context) ServiceCheckOutput
}

ServiceCheckInput is an input type that accepts ServiceCheckArgs and ServiceCheckOutput values. You can construct a concrete instance of `ServiceCheckInput` via:

ServiceCheckArgs{...}

type ServiceCheckOutput

type ServiceCheckOutput struct{ *pulumi.OutputState }

func (ServiceCheckOutput) CheckId

An ID, *unique per agent*. Will default to *name* if not set.

func (ServiceCheckOutput) DeregisterCriticalServiceAfter

func (o ServiceCheckOutput) DeregisterCriticalServiceAfter() pulumi.StringPtrOutput

The time after which the service is automatically deregistered when in the `critical` state. Defaults to `30s`.

func (ServiceCheckOutput) ElementType

func (ServiceCheckOutput) ElementType() reflect.Type

func (ServiceCheckOutput) Headers

The headers to send for an HTTP check. The attributes of each header is given below.

func (ServiceCheckOutput) Http

The HTTP endpoint to call for an HTTP check.

func (ServiceCheckOutput) Interval

func (o ServiceCheckOutput) Interval() pulumi.StringOutput

The interval to wait between each health-check invocation.

func (ServiceCheckOutput) Method

The method to use for HTTP health-checks. Defaults to `GET`.

func (ServiceCheckOutput) Name

The name of the health-check.

func (ServiceCheckOutput) Notes

An opaque field meant to hold human readable text.

func (ServiceCheckOutput) Status

The initial health-check status.

func (ServiceCheckOutput) Tcp

The TCP address and port to connect to for a TCP check.

func (ServiceCheckOutput) Timeout

The timeout value for HTTP checks.

func (ServiceCheckOutput) TlsSkipVerify

func (o ServiceCheckOutput) TlsSkipVerify() pulumi.BoolPtrOutput

Whether to deactivate certificate verification for HTTP health-checks. Defaults to `false`.

func (ServiceCheckOutput) ToServiceCheckOutput

func (o ServiceCheckOutput) ToServiceCheckOutput() ServiceCheckOutput

func (ServiceCheckOutput) ToServiceCheckOutputWithContext

func (o ServiceCheckOutput) ToServiceCheckOutputWithContext(ctx context.Context) ServiceCheckOutput

type ServiceState

type ServiceState struct {
	// The address of the service. Defaults to the
	// address of the node.
	Address pulumi.StringPtrInput
	Checks  ServiceCheckArrayInput
	// The datacenter to use. This overrides the
	// agent's default datacenter and the datacenter in the provider setup.
	Datacenter pulumi.StringPtrInput
	// Specifies to disable the
	// anti-entropy feature for this service's tags. Defaults to `false`.
	EnableTagOverride pulumi.BoolPtrInput
	// Deprecated: The external field has been deprecated and does nothing.
	External pulumi.BoolPtrInput
	// A map of arbitrary KV metadata linked to the service
	// instance.
	Meta pulumi.StringMapInput
	// The name of the health-check.
	Name pulumi.StringPtrInput
	// The namespace to create the service within.
	Namespace pulumi.StringPtrInput
	// The name of the node the to register the service on.
	Node pulumi.StringPtrInput
	// The port of the service.
	Port pulumi.IntPtrInput
	// - If the service ID is not provided, it will be defaulted to the value
	//   of the `name` attribute.
	ServiceId pulumi.StringPtrInput
	// A list of values that are opaque to Consul,
	// but can be used to distinguish between services or nodes.
	Tags pulumi.StringArrayInput
}

func (ServiceState) ElementType

func (ServiceState) ElementType() reflect.Type

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL