Documentation
¶
Index ¶
- type AclPolicy
- type AclPolicyArgs
- type AclPolicyState
- type AclToken
- type AclTokenArgs
- type AclTokenState
- type AgentService
- type AgentServiceArgs
- type AgentServiceState
- type AutopilotConfig
- func (r *AutopilotConfig) CleanupDeadServers() *pulumi.BoolOutput
- func (r *AutopilotConfig) Datacenter() *pulumi.StringOutput
- func (r *AutopilotConfig) DisableUpgradeMigration() *pulumi.BoolOutput
- func (r *AutopilotConfig) ID() *pulumi.IDOutput
- func (r *AutopilotConfig) LastContactThreshold() *pulumi.StringOutput
- func (r *AutopilotConfig) MaxTrailingLogs() *pulumi.IntOutput
- func (r *AutopilotConfig) RedundancyZoneTag() *pulumi.StringOutput
- func (r *AutopilotConfig) ServerStabilizationTime() *pulumi.StringOutput
- func (r *AutopilotConfig) URN() *pulumi.URNOutput
- func (r *AutopilotConfig) UpgradeVersionTag() *pulumi.StringOutput
- type AutopilotConfigArgs
- type AutopilotConfigState
- type CatalogEntry
- func (r *CatalogEntry) Address() *pulumi.StringOutput
- func (r *CatalogEntry) Datacenter() *pulumi.StringOutput
- func (r *CatalogEntry) ID() *pulumi.IDOutput
- func (r *CatalogEntry) Node() *pulumi.StringOutput
- func (r *CatalogEntry) Services() *pulumi.ArrayOutput
- func (r *CatalogEntry) Token() *pulumi.StringOutput
- func (r *CatalogEntry) URN() *pulumi.URNOutput
- type CatalogEntryArgs
- type CatalogEntryState
- type GetAgentConfigResult
- type GetAutopilotHealthArgs
- type GetAutopilotHealthResult
- type GetKeyPrefixArgs
- type GetKeyPrefixResult
- type GetKeysArgs
- type GetKeysResult
- type GetNodesArgs
- type GetNodesResult
- type GetServiceArgs
- type GetServiceHealthArgs
- type GetServiceHealthResult
- type GetServiceResult
- type GetServicesArgs
- type GetServicesResult
- type Intention
- func (r *Intention) Action() *pulumi.StringOutput
- func (r *Intention) Description() *pulumi.StringOutput
- func (r *Intention) DestinationName() *pulumi.StringOutput
- func (r *Intention) ID() *pulumi.IDOutput
- func (r *Intention) Meta() *pulumi.MapOutput
- func (r *Intention) SourceName() *pulumi.StringOutput
- func (r *Intention) URN() *pulumi.URNOutput
- type IntentionArgs
- type IntentionState
- type KeyPrefix
- func (r *KeyPrefix) Datacenter() *pulumi.StringOutput
- func (r *KeyPrefix) ID() *pulumi.IDOutput
- func (r *KeyPrefix) PathPrefix() *pulumi.StringOutput
- func (r *KeyPrefix) Subkeys() *pulumi.ArrayOutput
- func (r *KeyPrefix) SubkeysCollection() *pulumi.MapOutput
- func (r *KeyPrefix) Token() *pulumi.StringOutput
- func (r *KeyPrefix) URN() *pulumi.URNOutput
- type KeyPrefixArgs
- type KeyPrefixState
- type Keys
- type KeysArgs
- type KeysState
- type Node
- type NodeArgs
- type NodeState
- type PreparedQuery
- func (r *PreparedQuery) Connect() *pulumi.BoolOutput
- func (r *PreparedQuery) Datacenter() *pulumi.StringOutput
- func (r *PreparedQuery) Dns() *pulumi.Output
- func (r *PreparedQuery) Failover() *pulumi.Output
- func (r *PreparedQuery) ID() *pulumi.IDOutput
- func (r *PreparedQuery) Name() *pulumi.StringOutput
- func (r *PreparedQuery) Near() *pulumi.StringOutput
- func (r *PreparedQuery) OnlyPassing() *pulumi.BoolOutput
- func (r *PreparedQuery) Service() *pulumi.StringOutput
- func (r *PreparedQuery) Session() *pulumi.StringOutput
- func (r *PreparedQuery) StoredToken() *pulumi.StringOutput
- func (r *PreparedQuery) Tags() *pulumi.ArrayOutput
- func (r *PreparedQuery) Template() *pulumi.Output
- func (r *PreparedQuery) Token() *pulumi.StringOutput
- func (r *PreparedQuery) URN() *pulumi.URNOutput
- type PreparedQueryArgs
- type PreparedQueryState
- type Service
- func (r *Service) Address() *pulumi.StringOutput
- func (r *Service) Checks() *pulumi.ArrayOutput
- func (r *Service) Datacenter() *pulumi.StringOutput
- func (r *Service) External() *pulumi.BoolOutput
- func (r *Service) ID() *pulumi.IDOutput
- func (r *Service) Name() *pulumi.StringOutput
- func (r *Service) Node() *pulumi.StringOutput
- func (r *Service) Port() *pulumi.IntOutput
- func (r *Service) ServiceId() *pulumi.StringOutput
- func (r *Service) Tags() *pulumi.ArrayOutput
- func (r *Service) URN() *pulumi.URNOutput
- type ServiceArgs
- type ServiceState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AclPolicy ¶
type AclPolicy struct {
// contains filtered or unexported fields
}
The `.AclPolicy` resource writes an ACL policy into Consul.
> This content is derived from https://github.com/terraform-providers/terraform-provider-consul/blob/master/website/docs/r/acl_policy.html.markdown.
func GetAclPolicy ¶
func GetAclPolicy(ctx *pulumi.Context, name string, id pulumi.ID, state *AclPolicyState, opts ...pulumi.ResourceOpt) (*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.ResourceOpt) (*AclPolicy, error)
NewAclPolicy registers a new resource with the given unique name, arguments, and options.
func (*AclPolicy) Datacenters ¶
func (r *AclPolicy) Datacenters() *pulumi.ArrayOutput
The datacenters of the policy.
func (*AclPolicy) Description ¶
func (r *AclPolicy) Description() *pulumi.StringOutput
The description of the policy.
type AclPolicyArgs ¶
type AclPolicyArgs struct { // The datacenters of the policy. Datacenters interface{} // The description of the policy. Description interface{} // The name of the policy. Name interface{} // The rules of the policy. Rules interface{} }
The set of arguments for constructing a AclPolicy resource.
type AclPolicyState ¶
type AclPolicyState struct { // The datacenters of the policy. Datacenters interface{} // The description of the policy. Description interface{} // The name of the policy. Name interface{} // The rules of the policy. Rules interface{} }
Input properties used for looking up and filtering AclPolicy resources.
type AclToken ¶
type AclToken struct {
// contains filtered or unexported fields
}
The `.AclToken` resource writes an ACL token into Consul.
> This content is derived from https://github.com/terraform-providers/terraform-provider-consul/blob/master/website/docs/r/acl_token.html.markdown.
func GetAclToken ¶
func GetAclToken(ctx *pulumi.Context, name string, id pulumi.ID, state *AclTokenState, opts ...pulumi.ResourceOpt) (*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.ResourceOpt) (*AclToken, error)
NewAclToken registers a new resource with the given unique name, arguments, and options.
func (*AclToken) Description ¶
func (r *AclToken) Description() *pulumi.StringOutput
The description of the token.
func (*AclToken) Local ¶
func (r *AclToken) Local() *pulumi.BoolOutput
The flag to set the token local to the current datacenter.
func (*AclToken) Policies ¶
func (r *AclToken) Policies() *pulumi.ArrayOutput
The list of policies attached to the token.
type AclTokenArgs ¶
type AclTokenArgs struct { // The description of the token. Description interface{} // The flag to set the token local to the current datacenter. Local interface{} // The list of policies attached to the token. Policies interface{} }
The set of arguments for constructing a AclToken resource.
type AclTokenState ¶
type AclTokenState struct { // The description of the token. Description interface{} // The flag to set the token local to the current datacenter. Local interface{} // The list of policies attached to the token. Policies interface{} }
Input properties used for looking up and filtering AclToken resources.
type AgentService ¶
type AgentService struct {
// contains filtered or unexported fields
}
!> 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/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.
> This content is derived from https://github.com/terraform-providers/terraform-provider-consul/blob/master/website/docs/r/agent_service.html.markdown.
func GetAgentService ¶
func GetAgentService(ctx *pulumi.Context, name string, id pulumi.ID, state *AgentServiceState, opts ...pulumi.ResourceOpt) (*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.ResourceOpt) (*AgentService, error)
NewAgentService registers a new resource with the given unique name, arguments, and options.
func (*AgentService) Address ¶
func (r *AgentService) Address() *pulumi.StringOutput
The address of the service. Defaults to the address of the agent.
func (*AgentService) ID ¶
func (r *AgentService) ID() *pulumi.IDOutput
ID is this resource's unique identifier assigned by its provider.
func (*AgentService) Name ¶
func (r *AgentService) Name() *pulumi.StringOutput
The name of the service.
func (*AgentService) Port ¶
func (r *AgentService) Port() *pulumi.IntOutput
The port of the service.
func (*AgentService) Tags ¶
func (r *AgentService) Tags() *pulumi.ArrayOutput
A list of values that are opaque to Consul, but can be used to distinguish between services or nodes.
func (*AgentService) URN ¶
func (r *AgentService) URN() *pulumi.URNOutput
URN is this resource's unique name assigned by Pulumi.
type AgentServiceArgs ¶
type AgentServiceArgs struct { // The address of the service. Defaults to the // address of the agent. Address interface{} // The name of the service. Name interface{} // The port of the service. Port interface{} // A list of values that are opaque to Consul, // but can be used to distinguish between services or nodes. Tags interface{} }
The set of arguments for constructing a AgentService resource.
type AgentServiceState ¶
type AgentServiceState struct { // The address of the service. Defaults to the // address of the agent. Address interface{} // The name of the service. Name interface{} // The port of the service. Port interface{} // A list of values that are opaque to Consul, // but can be used to distinguish between services or nodes. Tags interface{} }
Input properties used for looking up and filtering AgentService resources.
type AutopilotConfig ¶
type AutopilotConfig struct {
// contains filtered or unexported fields
}
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.
> This content is derived from https://github.com/terraform-providers/terraform-provider-consul/blob/master/website/docs/r/autopilot_config.html.markdown.
func GetAutopilotConfig ¶
func GetAutopilotConfig(ctx *pulumi.Context, name string, id pulumi.ID, state *AutopilotConfigState, opts ...pulumi.ResourceOpt) (*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.ResourceOpt) (*AutopilotConfig, error)
NewAutopilotConfig registers a new resource with the given unique name, arguments, and options.
func (*AutopilotConfig) CleanupDeadServers ¶
func (r *AutopilotConfig) CleanupDeadServers() *pulumi.BoolOutput
Whether to remove failing servers when a replacement comes online. Defaults to true.
func (*AutopilotConfig) Datacenter ¶
func (r *AutopilotConfig) Datacenter() *pulumi.StringOutput
The datacenter to use. This overrides the agent's default datacenter and the datacenter in the provider setup.
func (*AutopilotConfig) DisableUpgradeMigration ¶
func (r *AutopilotConfig) DisableUpgradeMigration() *pulumi.BoolOutput
Whether to disable [upgrade migrations](https://www.consul.io/docs/guides/autopilot.html#redundancy-zones). Defaults to false.
func (*AutopilotConfig) ID ¶
func (r *AutopilotConfig) ID() *pulumi.IDOutput
ID is this resource's unique identifier assigned by its provider.
func (*AutopilotConfig) LastContactThreshold ¶
func (r *AutopilotConfig) LastContactThreshold() *pulumi.StringOutput
The time after which a server is considered as unhealthy and will be removed. Defaults to `"200ms"`.
func (*AutopilotConfig) MaxTrailingLogs ¶
func (r *AutopilotConfig) MaxTrailingLogs() *pulumi.IntOutput
The maximum number of Raft log entries a server can trail the leader. Defaults to 250.
func (*AutopilotConfig) RedundancyZoneTag ¶
func (r *AutopilotConfig) RedundancyZoneTag() *pulumi.StringOutput
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.
func (*AutopilotConfig) ServerStabilizationTime ¶
func (r *AutopilotConfig) ServerStabilizationTime() *pulumi.StringOutput
The period to wait for a server to be healthy and stable before being promoted to a full, voting member. Defaults to `"10s"`.
func (*AutopilotConfig) URN ¶
func (r *AutopilotConfig) URN() *pulumi.URNOutput
URN is this resource's unique name assigned by Pulumi.
func (*AutopilotConfig) UpgradeVersionTag ¶
func (r *AutopilotConfig) UpgradeVersionTag() *pulumi.StringOutput
The tag to override the version information used during a migration. Defaults to an empty string.
type AutopilotConfigArgs ¶
type AutopilotConfigArgs struct { // Whether to remove failing servers when a // replacement comes online. Defaults to true. CleanupDeadServers interface{} // The datacenter to use. This overrides the agent's // default datacenter and the datacenter in the provider setup. Datacenter interface{} // Whether to disable [upgrade migrations](https://www.consul.io/docs/guides/autopilot.html#redundancy-zones). // Defaults to false. DisableUpgradeMigration interface{} // The time after which a server is // considered as unhealthy and will be removed. Defaults to `"200ms"`. LastContactThreshold interface{} // The maximum number of Raft log entries a // server can trail the leader. Defaults to 250. MaxTrailingLogs interface{} // 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 interface{} // The period to wait for a server to be // healthy and stable before being promoted to a full, voting member. Defaults to // `"10s"`. ServerStabilizationTime interface{} // The tag to override the version information // used during a migration. Defaults to an empty string. UpgradeVersionTag interface{} }
The set of arguments for constructing a AutopilotConfig resource.
type AutopilotConfigState ¶
type AutopilotConfigState struct { // Whether to remove failing servers when a // replacement comes online. Defaults to true. CleanupDeadServers interface{} // The datacenter to use. This overrides the agent's // default datacenter and the datacenter in the provider setup. Datacenter interface{} // Whether to disable [upgrade migrations](https://www.consul.io/docs/guides/autopilot.html#redundancy-zones). // Defaults to false. DisableUpgradeMigration interface{} // The time after which a server is // considered as unhealthy and will be removed. Defaults to `"200ms"`. LastContactThreshold interface{} // The maximum number of Raft log entries a // server can trail the leader. Defaults to 250. MaxTrailingLogs interface{} // 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 interface{} // The period to wait for a server to be // healthy and stable before being promoted to a full, voting member. Defaults to // `"10s"`. ServerStabilizationTime interface{} // The tag to override the version information // used during a migration. Defaults to an empty string. UpgradeVersionTag interface{} }
Input properties used for looking up and filtering AutopilotConfig resources.
type CatalogEntry ¶
type CatalogEntry struct {
// contains filtered or unexported fields
}
!> 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/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.
> This content is derived from https://github.com/terraform-providers/terraform-provider-consul/blob/master/website/docs/r/catalog_entry.html.markdown.
func GetCatalogEntry ¶
func GetCatalogEntry(ctx *pulumi.Context, name string, id pulumi.ID, state *CatalogEntryState, opts ...pulumi.ResourceOpt) (*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.ResourceOpt) (*CatalogEntry, error)
NewCatalogEntry registers a new resource with the given unique name, arguments, and options.
func (*CatalogEntry) Address ¶
func (r *CatalogEntry) Address() *pulumi.StringOutput
The address of the node being added to, or referenced in the catalog.
func (*CatalogEntry) Datacenter ¶
func (r *CatalogEntry) Datacenter() *pulumi.StringOutput
The datacenter to use. This overrides the agent's default datacenter and the datacenter in the provider setup.
func (*CatalogEntry) ID ¶
func (r *CatalogEntry) ID() *pulumi.IDOutput
ID is this resource's unique identifier assigned by its provider.
func (*CatalogEntry) Node ¶
func (r *CatalogEntry) Node() *pulumi.StringOutput
The name of the node being added to, or referenced in the catalog.
func (*CatalogEntry) Services ¶
func (r *CatalogEntry) Services() *pulumi.ArrayOutput
A service to optionally associated with the node. Supported values are documented below.
func (*CatalogEntry) URN ¶
func (r *CatalogEntry) URN() *pulumi.URNOutput
URN is this resource's unique name assigned by Pulumi.
type CatalogEntryArgs ¶
type CatalogEntryArgs struct { // The address of the node being added to, // or referenced in the catalog. Address interface{} // The datacenter to use. This overrides the // agent's default datacenter and the datacenter in the provider setup. Datacenter interface{} // The name of the node being added to, or // referenced in the catalog. Node interface{} // A service to optionally associated with // the node. Supported values are documented below. Services interface{} // ACL token. Token interface{} }
The set of arguments for constructing a CatalogEntry resource.
type CatalogEntryState ¶
type CatalogEntryState struct { // The address of the node being added to, // or referenced in the catalog. Address interface{} // The datacenter to use. This overrides the // agent's default datacenter and the datacenter in the provider setup. Datacenter interface{} // The name of the node being added to, or // referenced in the catalog. Node interface{} // A service to optionally associated with // the node. Supported values are documented below. Services interface{} // ACL token. Token interface{} }
Input properties used for looking up and filtering CatalogEntry resources.
type GetAgentConfigResult ¶
type GetAgentConfigResult struct { // The datacenter the agent is running in Datacenter interface{} // The ID of the node the agent is running on NodeId interface{} // The name of the node the agent is running on NodeName interface{} // The first 9 characters of the VCS revision of the build of Consul that is running Revision interface{} // Boolean if the agent is a server or not Server interface{} // The version of the build of Consul that is running Version interface{} // id is the provider-assigned unique ID for this managed resource. Id interface{} }
A collection of values returned by getAgentConfig.
func LookupAgentConfig ¶
func LookupAgentConfig(ctx *pulumi.Context) (*GetAgentConfigResult, error)
> **Note:** The `.getAgentConfig` resource differs from [`consulAgentSelf`](https://www.terraform.io/docs/providers/consul/d/agent_self.html), providing less information but utilizing stable APIs. `consulAgentSelf` 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`.
> This content is derived from https://github.com/terraform-providers/terraform-provider-consul/blob/master/website/docs/d/agent_config.html.markdown.
type GetAutopilotHealthArgs ¶
type GetAutopilotHealthArgs struct { // The datacenter to use. This overrides the agent's // default datacenter and the datacenter in the provider setup. Datacenter interface{} }
A collection of arguments for invoking getAutopilotHealth.
type GetAutopilotHealthResult ¶
type GetAutopilotHealthResult struct { Datacenter interface{} // The number of redundant healthy servers that could fail // without causing an outage FailureTolerance interface{} // Whether the server is healthy according to the current Autopilot // configuration Healthy interface{} // A list of server health information. See below for details on the // available information. Servers interface{} // id is the provider-assigned unique ID for this managed resource. Id interface{} }
A collection of values returned by getAutopilotHealth.
func LookupAutopilotHealth ¶
func LookupAutopilotHealth(ctx *pulumi.Context, args *GetAutopilotHealthArgs) (*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.
> This content is derived from https://github.com/terraform-providers/terraform-provider-consul/blob/master/website/docs/d/autopilot_health.html.markdown.
type GetKeyPrefixArgs ¶
type GetKeyPrefixArgs struct { // The datacenter to use. This overrides the // agent's default datacenter and the datacenter in the provider setup. Datacenter interface{} // 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 interface{} // Specifies a subkey in Consul to be read. Supported // values documented below. Multiple blocks supported. Subkeys interface{} // The ACL token to use. This overrides the // token that the agent provides by default. Token interface{} }
A collection of arguments for invoking getKeyPrefix.
type GetKeyPrefixResult ¶
type GetKeyPrefixResult struct { // The datacenter the keys are being read from. Datacenter interface{} // 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 interface{} Subkeys interface{} // A map of the subkeys and values is set if no `subkey` // block is provided. SubkeysCollection interface{} Token interface{} Var interface{} // id is the provider-assigned unique ID for this managed resource. Id interface{} }
A collection of values returned by getKeyPrefix.
func LookupKeyPrefix ¶
func LookupKeyPrefix(ctx *pulumi.Context, args *GetKeyPrefixArgs) (*GetKeyPrefixResult, error)
> This content is derived from https://github.com/terraform-providers/terraform-provider-consul/blob/master/website/docs/d/key_prefix.html.markdown.
type GetKeysArgs ¶
type GetKeysArgs struct { // The datacenter to use. This overrides the // agent's default datacenter and the datacenter in the provider setup. Datacenter interface{} // Specifies a key in Consul to be read. Supported // values documented below. Multiple blocks supported. Keys interface{} // The ACL token to use. This overrides the // token that the agent provides by default. Token interface{} }
A collection of arguments for invoking getKeys.
type GetKeysResult ¶
type GetKeysResult 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 interface{} Keys interface{} Token interface{} Var interface{} // id is the provider-assigned unique ID for this managed resource. Id interface{} }
A collection of values returned by getKeys.
func LookupKeys ¶
func LookupKeys(ctx *pulumi.Context, args *GetKeysArgs) (*GetKeysResult, error)
The `.Keys` resource reads values from the Consul key/value store. This is a powerful way dynamically set values in templates.
> This content is derived from https://github.com/terraform-providers/terraform-provider-consul/blob/master/website/docs/d/keys.html.markdown.
type GetNodesArgs ¶
type GetNodesArgs struct {
// See below.
QueryOptions interface{}
}
A collection of arguments for invoking getNodes.
type GetNodesResult ¶
type GetNodesResult struct { // The datacenter the keys are being read from to. Datacenter interface{} // A list of the Consul node IDs. NodeIds interface{} // A list of the Consul node names. NodeNames interface{} // A list of nodes and details about each Consul agent. The list of // per-node attributes is detailed below. Nodes interface{} QueryOptions interface{} // id is the provider-assigned unique ID for this managed resource. Id interface{} }
A collection of values returned by getNodes.
func LookupNodes ¶
func LookupNodes(ctx *pulumi.Context, args *GetNodesArgs) (*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.
> This content is derived from https://github.com/terraform-providers/terraform-provider-consul/blob/master/website/docs/d/nodes.html.markdown.
type GetServiceArgs ¶
type GetServiceArgs 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 interface{} // The service name to select. Name interface{} // See below. QueryOptions interface{} // A single tag that can be used to filter the list of nodes // to return based on a single matching tag.. Tag interface{} }
A collection of arguments for invoking getService.
type GetServiceHealthArgs ¶
type GetServiceHealthArgs struct { // The Consul datacenter to query. Datacenter interface{} // The service name to select. Name interface{} // Specifies a node name to sort the node list in ascending order // based on the estimated round trip time from that node. Near interface{} // Filter the results to nodes with the specified key/value // pairs. NodeMeta interface{} // Whether to return only nodes with all checks in the // passing state. Defaults to `true`. Passing interface{} // A single tag that can be used to filter the list to return // based on a single matching tag. Tag interface{} WaitFor interface{} }
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 interface{} // The name of this health-check. Name interface{} // The node to which the result must be sorted to. Near interface{} // The list of metadata to filter the nodes. NodeMeta interface{} // Whether to return only nodes with all checks in the // passing state. Passing interface{} // 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 interface{} // The name of the tag used to filter the list. Tag interface{} WaitFor interface{} // id is the provider-assigned unique ID for this managed resource. Id interface{} }
A collection of values returned by getServiceHealth.
func LookupServiceHealth ¶
func LookupServiceHealth(ctx *pulumi.Context, args *GetServiceHealthArgs) (*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.
> This content is derived from https://github.com/terraform-providers/terraform-provider-consul/blob/master/website/docs/d/service_health.html.markdown.
type GetServiceResult ¶
type GetServiceResult struct { // The datacenter the keys are being read from to. Datacenter interface{} // The name of the service Name interface{} QueryOptions interface{} // 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 interface{} // The name of the tag used to filter the list of nodes in `service`. Tag interface{} // id is the provider-assigned unique ID for this managed resource. Id interface{} }
A collection of values returned by getService.
func LookupService ¶
func LookupService(ctx *pulumi.Context, args *GetServiceArgs) (*GetServiceResult, 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.
> This content is derived from https://github.com/terraform-providers/terraform-provider-consul/blob/master/website/docs/d/service.html.markdown.
type GetServicesArgs ¶
type GetServicesArgs struct {
// See below.
QueryOptions interface{}
}
A collection of arguments for invoking getServices.
type GetServicesResult ¶
type GetServicesResult struct { // The datacenter the keys are being read from to. Datacenter interface{} Names interface{} QueryOptions interface{} Services interface{} // id is the provider-assigned unique ID for this managed resource. Id interface{} }
A collection of values returned by getServices.
func LookupServices ¶
func LookupServices(ctx *pulumi.Context, args *GetServicesArgs) (*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.
> This content is derived from https://github.com/terraform-providers/terraform-provider-consul/blob/master/website/docs/d/services.html.markdown.
type Intention ¶
type Intention struct {
// contains filtered or unexported fields
}
[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.
> This content is derived from https://github.com/terraform-providers/terraform-provider-consul/blob/master/website/docs/r/intention.html.markdown.
func GetIntention ¶
func GetIntention(ctx *pulumi.Context, name string, id pulumi.ID, state *IntentionState, opts ...pulumi.ResourceOpt) (*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.ResourceOpt) (*Intention, error)
NewIntention registers a new resource with the given unique name, arguments, and options.
func (*Intention) Action ¶
func (r *Intention) Action() *pulumi.StringOutput
The intention action. Must be one of `allow` or `deny`.
func (*Intention) Description ¶
func (r *Intention) Description() *pulumi.StringOutput
Optional description that can be used by Consul tooling, but is not used internally.
func (*Intention) DestinationName ¶
func (r *Intention) DestinationName() *pulumi.StringOutput
The name of the destination service for the intention. This service does not have to exist.
func (*Intention) Meta ¶
Key/value pairs that are opaque to Consul and are associated with the intention.
func (*Intention) SourceName ¶
func (r *Intention) SourceName() *pulumi.StringOutput
The name of the source service for the intention. This service does not have to exist.
type IntentionArgs ¶
type IntentionArgs struct { // The intention action. Must be one of `allow` or `deny`. Action interface{} // Optional description that can be used by Consul // tooling, but is not used internally. Description interface{} // The name of the destination service for the intention. This // service does not have to exist. DestinationName interface{} // Key/value pairs that are opaque to Consul and are associated // with the intention. Meta interface{} // The name of the source service for the intention. This // service does not have to exist. SourceName interface{} }
The set of arguments for constructing a Intention resource.
type IntentionState ¶
type IntentionState struct { // The intention action. Must be one of `allow` or `deny`. Action interface{} // Optional description that can be used by Consul // tooling, but is not used internally. Description interface{} // The name of the destination service for the intention. This // service does not have to exist. DestinationName interface{} // Key/value pairs that are opaque to Consul and are associated // with the intention. Meta interface{} // The name of the source service for the intention. This // service does not have to exist. SourceName interface{} }
Input properties used for looking up and filtering Intention resources.
type KeyPrefix ¶
type KeyPrefix struct {
// contains filtered or unexported fields
}
> This content is derived from https://github.com/terraform-providers/terraform-provider-consul/blob/master/website/docs/r/key_prefix.html.markdown.
func GetKeyPrefix ¶
func GetKeyPrefix(ctx *pulumi.Context, name string, id pulumi.ID, state *KeyPrefixState, opts ...pulumi.ResourceOpt) (*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.ResourceOpt) (*KeyPrefix, error)
NewKeyPrefix registers a new resource with the given unique name, arguments, and options.
func (*KeyPrefix) Datacenter ¶
func (r *KeyPrefix) Datacenter() *pulumi.StringOutput
The datacenter to use. This overrides the agent's default datacenter and the datacenter in the provider setup.
func (*KeyPrefix) PathPrefix ¶
func (r *KeyPrefix) PathPrefix() *pulumi.StringOutput
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.
func (*KeyPrefix) Subkeys ¶
func (r *KeyPrefix) Subkeys() *pulumi.ArrayOutput
A subkey to add. Supported values documented below. Multiple blocks supported.
func (*KeyPrefix) SubkeysCollection ¶
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.
func (*KeyPrefix) Token ¶
func (r *KeyPrefix) Token() *pulumi.StringOutput
The ACL token to use. This overrides the token that the agent provides by default.
type KeyPrefixArgs ¶
type KeyPrefixArgs struct { // The datacenter to use. This overrides the // agent's default datacenter and the datacenter in the provider setup. Datacenter interface{} // 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 interface{} // A subkey to add. Supported values documented below. // Multiple blocks supported. Subkeys interface{} // 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. SubkeysCollection interface{} // The ACL token to use. This overrides the // token that the agent provides by default. Token interface{} }
The set of arguments for constructing a KeyPrefix resource.
type KeyPrefixState ¶
type KeyPrefixState struct { // The datacenter to use. This overrides the // agent's default datacenter and the datacenter in the provider setup. Datacenter interface{} // 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 interface{} // A subkey to add. Supported values documented below. // Multiple blocks supported. Subkeys interface{} // 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. SubkeysCollection interface{} // The ACL token to use. This overrides the // token that the agent provides by default. Token interface{} }
Input properties used for looking up and filtering KeyPrefix resources.
type Keys ¶
type Keys struct {
// contains filtered or unexported fields
}
> This content is derived from https://github.com/terraform-providers/terraform-provider-consul/blob/master/website/docs/r/keys.html.markdown.
func GetKeys ¶
func GetKeys(ctx *pulumi.Context, name string, id pulumi.ID, state *KeysState, opts ...pulumi.ResourceOpt) (*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.ResourceOpt) (*Keys, error)
NewKeys registers a new resource with the given unique name, arguments, and options.
func (*Keys) Datacenter ¶
func (r *Keys) Datacenter() *pulumi.StringOutput
The datacenter to use. This overrides the agent's default datacenter and the datacenter in the provider setup.
func (*Keys) Keys ¶
func (r *Keys) Keys() *pulumi.ArrayOutput
Specifies a key in Consul to be written. Supported values documented below.
func (*Keys) Token ¶
func (r *Keys) Token() *pulumi.StringOutput
The ACL token to use. This overrides the token that the agent provides by default.
type KeysArgs ¶
type KeysArgs struct { // The datacenter to use. This overrides the // agent's default datacenter and the datacenter in the provider setup. Datacenter interface{} // Specifies a key in Consul to be written. // Supported values documented below. Keys interface{} // The ACL token to use. This overrides the // token that the agent provides by default. Token interface{} }
The set of arguments for constructing a Keys resource.
type KeysState ¶
type KeysState struct { // The datacenter to use. This overrides the // agent's default datacenter and the datacenter in the provider setup. Datacenter interface{} // Specifies a key in Consul to be written. // Supported values documented below. Keys interface{} // The ACL token to use. This overrides the // token that the agent provides by default. Token interface{} Var interface{} }
Input properties used for looking up and filtering Keys resources.
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
Provides access to Node data in Consul. This can be used to define a node. Currently, defining health checks is not supported.
> This content is derived from https://github.com/terraform-providers/terraform-provider-consul/blob/master/website/docs/r/node.html.markdown.
func GetNode ¶
func GetNode(ctx *pulumi.Context, name string, id pulumi.ID, state *NodeState, opts ...pulumi.ResourceOpt) (*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.ResourceOpt) (*Node, error)
NewNode registers a new resource with the given unique name, arguments, and options.
func (*Node) Address ¶
func (r *Node) Address() *pulumi.StringOutput
The address of the node being added to, or referenced in the catalog.
func (*Node) Datacenter ¶
func (r *Node) Datacenter() *pulumi.StringOutput
The datacenter to use. This overrides the agent's default datacenter and the datacenter in the provider setup.
func (*Node) Name ¶
func (r *Node) Name() *pulumi.StringOutput
The name of the node being added to, or referenced in the catalog.
func (*Node) Token ¶
func (r *Node) Token() *pulumi.StringOutput
type NodeArgs ¶
type NodeArgs struct { // The address of the node being added to, // or referenced in the catalog. Address interface{} // The datacenter to use. This overrides the agent's // default datacenter and the datacenter in the provider setup. Datacenter interface{} // Key/value pairs that are associated with the node. Meta interface{} // The name of the node being added to, or // referenced in the catalog. Name interface{} Token interface{} }
The set of arguments for constructing a Node resource.
type NodeState ¶
type NodeState struct { // The address of the node being added to, // or referenced in the catalog. Address interface{} // The datacenter to use. This overrides the agent's // default datacenter and the datacenter in the provider setup. Datacenter interface{} // Key/value pairs that are associated with the node. Meta interface{} // The name of the node being added to, or // referenced in the catalog. Name interface{} Token interface{} }
Input properties used for looking up and filtering Node resources.
type PreparedQuery ¶
type PreparedQuery struct {
// contains filtered or unexported fields
}
> This content is derived from https://github.com/terraform-providers/terraform-provider-consul/blob/master/website/docs/r/prepared_query.html.markdown.
func GetPreparedQuery ¶
func GetPreparedQuery(ctx *pulumi.Context, name string, id pulumi.ID, state *PreparedQueryState, opts ...pulumi.ResourceOpt) (*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.ResourceOpt) (*PreparedQuery, error)
NewPreparedQuery registers a new resource with the given unique name, arguments, and options.
func (*PreparedQuery) Connect ¶
func (r *PreparedQuery) Connect() *pulumi.BoolOutput
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.
func (*PreparedQuery) Datacenter ¶
func (r *PreparedQuery) Datacenter() *pulumi.StringOutput
The datacenter to use. This overrides the agent's default datacenter and the datacenter in the provider setup.
func (*PreparedQuery) Dns ¶
func (r *PreparedQuery) Dns() *pulumi.Output
Settings for controlling the DNS response details.
func (*PreparedQuery) Failover ¶
func (r *PreparedQuery) Failover() *pulumi.Output
Options for controlling behavior when no healthy nodes are available in the local DC.
func (*PreparedQuery) ID ¶
func (r *PreparedQuery) ID() *pulumi.IDOutput
ID is this resource's unique identifier assigned by its provider.
func (*PreparedQuery) Name ¶
func (r *PreparedQuery) Name() *pulumi.StringOutput
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.
func (*PreparedQuery) Near ¶
func (r *PreparedQuery) Near() *pulumi.StringOutput
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.
func (*PreparedQuery) OnlyPassing ¶
func (r *PreparedQuery) OnlyPassing() *pulumi.BoolOutput
When `true`, the prepared query will only return nodes with passing health checks in the result.
func (*PreparedQuery) Service ¶
func (r *PreparedQuery) Service() *pulumi.StringOutput
The name of the service to query.
func (*PreparedQuery) Session ¶
func (r *PreparedQuery) Session() *pulumi.StringOutput
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.
func (*PreparedQuery) StoredToken ¶
func (r *PreparedQuery) StoredToken() *pulumi.StringOutput
The ACL token to store with the prepared query. This token will be used by default whenever the query is executed.
func (*PreparedQuery) Tags ¶
func (r *PreparedQuery) Tags() *pulumi.ArrayOutput
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.
func (*PreparedQuery) Template ¶
func (r *PreparedQuery) Template() *pulumi.Output
Query templating options. This is used to make a single prepared query respond to many different requests.
func (*PreparedQuery) Token ¶
func (r *PreparedQuery) Token() *pulumi.StringOutput
The ACL token to use when saving the prepared query. This overrides the token that the agent provides by default.
func (*PreparedQuery) URN ¶
func (r *PreparedQuery) URN() *pulumi.URNOutput
URN is this resource's unique name assigned by Pulumi.
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 interface{} // The datacenter to use. This overrides the // agent's default datacenter and the datacenter in the provider setup. Datacenter interface{} // Settings for controlling the DNS response details. Dns interface{} // Options for controlling behavior when no healthy // nodes are available in the local DC. Failover interface{} // 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 interface{} // 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 interface{} // When `true`, the prepared query will only // return nodes with passing health checks in the result. OnlyPassing interface{} // The name of the service to query. Service interface{} // 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 interface{} // The ACL token to store with the prepared // query. This token will be used by default whenever the query is executed. StoredToken interface{} // 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 interface{} // Query templating options. This is used to make a // single prepared query respond to many different requests. Template interface{} // The ACL token to use when saving the prepared query. // This overrides the token that the agent provides by default. Token interface{} }
The set of arguments for constructing a PreparedQuery resource.
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 interface{} // The datacenter to use. This overrides the // agent's default datacenter and the datacenter in the provider setup. Datacenter interface{} // Settings for controlling the DNS response details. Dns interface{} // Options for controlling behavior when no healthy // nodes are available in the local DC. Failover interface{} // 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 interface{} // 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 interface{} // When `true`, the prepared query will only // return nodes with passing health checks in the result. OnlyPassing interface{} // The name of the service to query. Service interface{} // 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 interface{} // The ACL token to store with the prepared // query. This token will be used by default whenever the query is executed. StoredToken interface{} // 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 interface{} // Query templating options. This is used to make a // single prepared query respond to many different requests. Template interface{} // The ACL token to use when saving the prepared query. // This overrides the token that the agent provides by default. Token interface{} }
Input properties used for looking up and filtering PreparedQuery resources.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
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.
> This content is derived from https://github.com/terraform-providers/terraform-provider-consul/blob/master/website/docs/r/service.html.markdown.
func GetService ¶
func GetService(ctx *pulumi.Context, name string, id pulumi.ID, state *ServiceState, opts ...pulumi.ResourceOpt) (*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.ResourceOpt) (*Service, error)
NewService registers a new resource with the given unique name, arguments, and options.
func (*Service) Address ¶
func (r *Service) Address() *pulumi.StringOutput
The address of the service. Defaults to the address of the node.
func (*Service) Checks ¶
func (r *Service) Checks() *pulumi.ArrayOutput
func (*Service) Datacenter ¶
func (r *Service) Datacenter() *pulumi.StringOutput
The datacenter to use. This overrides the agent's default datacenter and the datacenter in the provider setup.
func (*Service) External ¶
func (r *Service) External() *pulumi.BoolOutput
func (*Service) Node ¶
func (r *Service) Node() *pulumi.StringOutput
The name of the node the to register the service on.
func (*Service) ServiceId ¶
func (r *Service) ServiceId() *pulumi.StringOutput
The ID of the service.
func (*Service) Tags ¶
func (r *Service) Tags() *pulumi.ArrayOutput
A list of values that are opaque to Consul, but can be used to distinguish between services or nodes.
type ServiceArgs ¶
type ServiceArgs struct { // The address of the service. Defaults to the // address of the node. Address interface{} Checks interface{} // The datacenter to use. This overrides the // agent's default datacenter and the datacenter in the provider setup. Datacenter interface{} External interface{} // The name of the header. Name interface{} // The name of the node the to register the service on. Node interface{} // The port of the service. Port interface{} // The ID of the service. ServiceId interface{} // A list of values that are opaque to Consul, // but can be used to distinguish between services or nodes. Tags interface{} }
The set of arguments for constructing a Service resource.
type ServiceState ¶
type ServiceState struct { // The address of the service. Defaults to the // address of the node. Address interface{} Checks interface{} // The datacenter to use. This overrides the // agent's default datacenter and the datacenter in the provider setup. Datacenter interface{} External interface{} // The name of the header. Name interface{} // The name of the node the to register the service on. Node interface{} // The port of the service. Port interface{} // The ID of the service. ServiceId interface{} // A list of values that are opaque to Consul, // but can be used to distinguish between services or nodes. Tags interface{} }
Input properties used for looking up and filtering Service resources.