@pulumi/consul 3.3.0 → 3.5.0-alpha.1638552726
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/aclAuthMethod.js +23 -22
- package/aclAuthMethod.js.map +1 -1
- package/aclBindingRule.js +15 -14
- package/aclBindingRule.js.map +1 -1
- package/aclPolicy.js +13 -12
- package/aclPolicy.js.map +1 -1
- package/aclRole.d.ts +15 -6
- package/aclRole.js +15 -12
- package/aclRole.js.map +1 -1
- package/aclToken.d.ts +37 -0
- package/aclToken.js +21 -14
- package/aclToken.js.map +1 -1
- package/aclTokenPolicyAttachment.js +7 -6
- package/aclTokenPolicyAttachment.js.map +1 -1
- package/aclTokenRoleAttachment.js +7 -6
- package/aclTokenRoleAttachment.js.map +1 -1
- package/agentService.js +11 -10
- package/agentService.js.map +1 -1
- package/autopilotConfig.js +19 -18
- package/autopilotConfig.js.map +1 -1
- package/catalogEntry.js +13 -12
- package/catalogEntry.js.map +1 -1
- package/certificateAuthority.js +7 -6
- package/certificateAuthority.js.map +1 -1
- package/config/index.js +11 -4
- package/config/index.js.map +1 -1
- package/config/vars.d.ts +15 -15
- package/config/vars.js +91 -19
- package/config/vars.js.map +1 -1
- package/configEntry.d.ts +0 -180
- package/configEntry.js +11 -190
- package/configEntry.js.map +1 -1
- package/getAclAuthMethod.d.ts +14 -0
- package/getAclAuthMethod.js +5 -0
- package/getAclAuthMethod.js.map +1 -1
- package/getAclPolicy.d.ts +26 -0
- package/getAclPolicy.js +5 -0
- package/getAclPolicy.js.map +1 -1
- package/getAclRole.d.ts +30 -22
- package/getAclRole.js +5 -3
- package/getAclRole.js.map +1 -1
- package/getAclToken.d.ts +36 -20
- package/getAclToken.js +6 -4
- package/getAclToken.js.map +1 -1
- package/getAclTokenSecretId.d.ts +15 -0
- package/getAclTokenSecretId.js +5 -0
- package/getAclTokenSecretId.js.map +1 -1
- package/getAgentConfig.js +1 -0
- package/getAgentConfig.js.map +1 -1
- package/getAgentSelf.js +1 -0
- package/getAgentSelf.js.map +1 -1
- package/getAutopilotHealth.d.ts +11 -0
- package/getAutopilotHealth.js +5 -0
- package/getAutopilotHealth.js.map +1 -1
- package/getCatalogNodes.d.ts +7 -0
- package/getCatalogNodes.js +5 -0
- package/getCatalogNodes.js.map +1 -1
- package/getCatalogService.d.ts +11 -0
- package/getCatalogService.js +5 -0
- package/getCatalogService.js.map +1 -1
- package/getCatalogServices.d.ts +7 -0
- package/getCatalogServices.js +5 -0
- package/getCatalogServices.js.map +1 -1
- package/getKeyPrefix.d.ts +31 -0
- package/getKeyPrefix.js +5 -0
- package/getKeyPrefix.js.map +1 -1
- package/getKeys.d.ts +25 -0
- package/getKeys.js +5 -0
- package/getKeys.js.map +1 -1
- package/getNetworkAreaMembers.d.ts +24 -4
- package/getNetworkAreaMembers.js +9 -4
- package/getNetworkAreaMembers.js.map +1 -1
- package/getNetworkSegments.d.ts +16 -0
- package/getNetworkSegments.js +5 -0
- package/getNetworkSegments.js.map +1 -1
- package/getNodes.d.ts +10 -0
- package/getNodes.js +5 -0
- package/getNodes.js.map +1 -1
- package/getService.d.ts +31 -0
- package/getService.js +5 -0
- package/getService.js.map +1 -1
- package/getServiceHealth.d.ts +42 -0
- package/getServiceHealth.js +5 -0
- package/getServiceHealth.js.map +1 -1
- package/getServices.d.ts +10 -0
- package/getServices.js +5 -0
- package/getServices.js.map +1 -1
- package/index.js +54 -46
- package/index.js.map +1 -1
- package/intention.js +19 -18
- package/intention.js.map +1 -1
- package/keyPrefix.js +15 -14
- package/keyPrefix.js.map +1 -1
- package/keys.js +13 -12
- package/keys.js.map +1 -1
- package/license.js +27 -26
- package/license.js.map +1 -1
- package/namespace.js +13 -12
- package/namespace.js.map +1 -1
- package/namespacePolicyAttachment.js +7 -6
- package/namespacePolicyAttachment.js.map +1 -1
- package/namespaceRoleAttachment.js +7 -6
- package/namespaceRoleAttachment.js.map +1 -1
- package/networkArea.js +13 -12
- package/networkArea.js.map +1 -1
- package/node.js +13 -12
- package/node.js.map +1 -1
- package/package.json +4 -3
- package/package.json.bak +3 -2
- package/package.json.dev +4 -3
- package/preparedQuery.js +35 -34
- package/preparedQuery.js.map +1 -1
- package/provider.js +18 -17
- package/provider.js.map +1 -1
- package/service.js +27 -26
- package/service.js.map +1 -1
- package/types/index.js +1 -0
- package/types/index.js.map +1 -1
- package/types/input.d.ts +229 -14
- package/types/output.d.ts +46 -4
- package/utilities.js +1 -0
- package/utilities.js.map +1 -1
package/service.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.Service = void 0;
|
|
5
6
|
const pulumi = require("@pulumi/pulumi");
|
|
6
7
|
const utilities = require("./utilities");
|
|
7
8
|
/**
|
|
@@ -79,45 +80,45 @@ const utilities = require("./utilities");
|
|
|
79
80
|
*/
|
|
80
81
|
class Service extends pulumi.CustomResource {
|
|
81
82
|
constructor(name, argsOrState, opts) {
|
|
82
|
-
let
|
|
83
|
+
let resourceInputs = {};
|
|
83
84
|
opts = opts || {};
|
|
84
85
|
if (opts.id) {
|
|
85
86
|
const state = argsOrState;
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
87
|
+
resourceInputs["address"] = state ? state.address : undefined;
|
|
88
|
+
resourceInputs["checks"] = state ? state.checks : undefined;
|
|
89
|
+
resourceInputs["datacenter"] = state ? state.datacenter : undefined;
|
|
90
|
+
resourceInputs["enableTagOverride"] = state ? state.enableTagOverride : undefined;
|
|
91
|
+
resourceInputs["external"] = state ? state.external : undefined;
|
|
92
|
+
resourceInputs["meta"] = state ? state.meta : undefined;
|
|
93
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
94
|
+
resourceInputs["namespace"] = state ? state.namespace : undefined;
|
|
95
|
+
resourceInputs["node"] = state ? state.node : undefined;
|
|
96
|
+
resourceInputs["port"] = state ? state.port : undefined;
|
|
97
|
+
resourceInputs["serviceId"] = state ? state.serviceId : undefined;
|
|
98
|
+
resourceInputs["tags"] = state ? state.tags : undefined;
|
|
98
99
|
}
|
|
99
100
|
else {
|
|
100
101
|
const args = argsOrState;
|
|
101
102
|
if ((!args || args.node === undefined) && !opts.urn) {
|
|
102
103
|
throw new Error("Missing required property 'node'");
|
|
103
104
|
}
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
105
|
+
resourceInputs["address"] = args ? args.address : undefined;
|
|
106
|
+
resourceInputs["checks"] = args ? args.checks : undefined;
|
|
107
|
+
resourceInputs["datacenter"] = args ? args.datacenter : undefined;
|
|
108
|
+
resourceInputs["enableTagOverride"] = args ? args.enableTagOverride : undefined;
|
|
109
|
+
resourceInputs["external"] = args ? args.external : undefined;
|
|
110
|
+
resourceInputs["meta"] = args ? args.meta : undefined;
|
|
111
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
112
|
+
resourceInputs["namespace"] = args ? args.namespace : undefined;
|
|
113
|
+
resourceInputs["node"] = args ? args.node : undefined;
|
|
114
|
+
resourceInputs["port"] = args ? args.port : undefined;
|
|
115
|
+
resourceInputs["serviceId"] = args ? args.serviceId : undefined;
|
|
116
|
+
resourceInputs["tags"] = args ? args.tags : undefined;
|
|
116
117
|
}
|
|
117
118
|
if (!opts.version) {
|
|
118
119
|
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
119
120
|
}
|
|
120
|
-
super(Service.__pulumiType, name,
|
|
121
|
+
super(Service.__pulumiType, name, resourceInputs, opts);
|
|
121
122
|
}
|
|
122
123
|
/**
|
|
123
124
|
* Get an existing Service resource's state with the given name, ID, and optional extra
|
package/service.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.js","sourceRoot":"","sources":["../service.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF
|
|
1
|
+
{"version":3,"file":"service.js","sourceRoot":"","sources":["../service.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwEG;AACH,MAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;IAwF9C,YAAY,IAAY,EAAE,WAAwC,EAAE,IAAmC;QACnG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAuC,CAAC;YACtD,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,mBAAmB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAC,SAAS,CAAC;YAClF,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,SA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AAK,CAAC,OAAO,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC5D,CAAC;IA9HD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAoB,EAAE,IAAmC;QAClH,OAAO,IAAI,OAAO,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC9D,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,OAAO,CAAC,YAAY,CAAC;IACxD,CAAC;;AA1BL,0BAgIC;AAlHG,gBAAgB;AACO,oBAAY,GAAG,8BAA8B,CAAC"}
|
package/types/index.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.output = exports.input = void 0;
|
|
5
6
|
// Export sub-modules:
|
|
6
7
|
const input = require("./input");
|
|
7
8
|
exports.input = input;
|
package/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,sBAAsB;AACtB,iCAAiC;AAI7B,sBAAK;AAHT,mCAAmC;AAI/B,wBAAM"}
|
package/types/input.d.ts
CHANGED
|
@@ -13,6 +13,16 @@ export interface AclAuthMethodNamespaceRule {
|
|
|
13
13
|
*/
|
|
14
14
|
selector?: pulumi.Input<string>;
|
|
15
15
|
}
|
|
16
|
+
export interface AclRoleNodeIdentity {
|
|
17
|
+
/**
|
|
18
|
+
* The datacenter of the node.
|
|
19
|
+
*/
|
|
20
|
+
datacenter: pulumi.Input<string>;
|
|
21
|
+
/**
|
|
22
|
+
* The name of the node.
|
|
23
|
+
*/
|
|
24
|
+
nodeName: pulumi.Input<string>;
|
|
25
|
+
}
|
|
16
26
|
export interface AclRoleServiceIdentity {
|
|
17
27
|
/**
|
|
18
28
|
* The datacenters the effective policy is valid within.
|
|
@@ -23,6 +33,26 @@ export interface AclRoleServiceIdentity {
|
|
|
23
33
|
*/
|
|
24
34
|
serviceName: pulumi.Input<string>;
|
|
25
35
|
}
|
|
36
|
+
export interface AclTokenNodeIdentity {
|
|
37
|
+
/**
|
|
38
|
+
* The datacenter of the node.
|
|
39
|
+
*/
|
|
40
|
+
datacenter: pulumi.Input<string>;
|
|
41
|
+
/**
|
|
42
|
+
* The name of the node.
|
|
43
|
+
*/
|
|
44
|
+
nodeName: pulumi.Input<string>;
|
|
45
|
+
}
|
|
46
|
+
export interface AclTokenServiceIdentity {
|
|
47
|
+
/**
|
|
48
|
+
* The list of datacenters the policy is valid within.
|
|
49
|
+
*/
|
|
50
|
+
datacenters?: pulumi.Input<pulumi.Input<string>[]>;
|
|
51
|
+
/**
|
|
52
|
+
* The name of the service.
|
|
53
|
+
*/
|
|
54
|
+
serviceName: pulumi.Input<string>;
|
|
55
|
+
}
|
|
26
56
|
export interface CatalogEntryService {
|
|
27
57
|
/**
|
|
28
58
|
* The address of the service. Defaults to the
|
|
@@ -47,20 +77,17 @@ export interface CatalogEntryService {
|
|
|
47
77
|
*/
|
|
48
78
|
tags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
49
79
|
}
|
|
50
|
-
export interface
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
export interface GetAclTokenPolicy {
|
|
62
|
-
id?: string;
|
|
63
|
-
name?: string;
|
|
80
|
+
export interface GetCatalogNodesQueryOptionArgs {
|
|
81
|
+
allowStale?: pulumi.Input<boolean>;
|
|
82
|
+
datacenter?: pulumi.Input<string>;
|
|
83
|
+
near?: pulumi.Input<string>;
|
|
84
|
+
nodeMeta?: pulumi.Input<{
|
|
85
|
+
[key: string]: pulumi.Input<string>;
|
|
86
|
+
}>;
|
|
87
|
+
requireConsistent?: pulumi.Input<boolean>;
|
|
88
|
+
token?: pulumi.Input<string>;
|
|
89
|
+
waitIndex?: pulumi.Input<number>;
|
|
90
|
+
waitTime?: pulumi.Input<string>;
|
|
64
91
|
}
|
|
65
92
|
export interface GetCatalogNodesQueryOption {
|
|
66
93
|
allowStale?: boolean;
|
|
@@ -74,6 +101,19 @@ export interface GetCatalogNodesQueryOption {
|
|
|
74
101
|
waitIndex?: number;
|
|
75
102
|
waitTime?: string;
|
|
76
103
|
}
|
|
104
|
+
export interface GetCatalogServiceQueryOptionArgs {
|
|
105
|
+
allowStale?: pulumi.Input<boolean>;
|
|
106
|
+
datacenter?: pulumi.Input<string>;
|
|
107
|
+
namespace?: pulumi.Input<string>;
|
|
108
|
+
near?: pulumi.Input<string>;
|
|
109
|
+
nodeMeta?: pulumi.Input<{
|
|
110
|
+
[key: string]: pulumi.Input<string>;
|
|
111
|
+
}>;
|
|
112
|
+
requireConsistent?: pulumi.Input<boolean>;
|
|
113
|
+
token?: pulumi.Input<string>;
|
|
114
|
+
waitIndex?: pulumi.Input<number>;
|
|
115
|
+
waitTime?: pulumi.Input<string>;
|
|
116
|
+
}
|
|
77
117
|
export interface GetCatalogServiceQueryOption {
|
|
78
118
|
allowStale?: boolean;
|
|
79
119
|
datacenter?: string;
|
|
@@ -100,6 +140,38 @@ export interface GetCatalogServicesQueryOption {
|
|
|
100
140
|
waitIndex?: number;
|
|
101
141
|
waitTime?: string;
|
|
102
142
|
}
|
|
143
|
+
export interface GetCatalogServicesQueryOptionArgs {
|
|
144
|
+
allowStale?: pulumi.Input<boolean>;
|
|
145
|
+
datacenter?: pulumi.Input<string>;
|
|
146
|
+
namespace?: pulumi.Input<string>;
|
|
147
|
+
near?: pulumi.Input<string>;
|
|
148
|
+
nodeMeta?: pulumi.Input<{
|
|
149
|
+
[key: string]: pulumi.Input<string>;
|
|
150
|
+
}>;
|
|
151
|
+
requireConsistent?: pulumi.Input<boolean>;
|
|
152
|
+
token?: pulumi.Input<string>;
|
|
153
|
+
waitIndex?: pulumi.Input<number>;
|
|
154
|
+
waitTime?: pulumi.Input<string>;
|
|
155
|
+
}
|
|
156
|
+
export interface GetKeyPrefixSubkeyCollectionArgs {
|
|
157
|
+
/**
|
|
158
|
+
* This is the default value to set for `var.<name>`
|
|
159
|
+
* if the key does not exist in Consul. Defaults to an empty string.
|
|
160
|
+
*/
|
|
161
|
+
default?: pulumi.Input<string>;
|
|
162
|
+
/**
|
|
163
|
+
* This is the name of the key. This value of the
|
|
164
|
+
* key is exposed as `var.<name>`. This is not the path of the subkey
|
|
165
|
+
* in Consul.
|
|
166
|
+
*/
|
|
167
|
+
name: pulumi.Input<string>;
|
|
168
|
+
/**
|
|
169
|
+
* This is the subkey path in Consul (which will be appended
|
|
170
|
+
* to the given `pathPrefix`) to construct the full key that will be used
|
|
171
|
+
* to read the value.
|
|
172
|
+
*/
|
|
173
|
+
path: pulumi.Input<string>;
|
|
174
|
+
}
|
|
103
175
|
export interface GetKeyPrefixSubkeyCollection {
|
|
104
176
|
/**
|
|
105
177
|
* This is the default value to set for `var.<name>`
|
|
@@ -119,6 +191,24 @@ export interface GetKeyPrefixSubkeyCollection {
|
|
|
119
191
|
*/
|
|
120
192
|
path: string;
|
|
121
193
|
}
|
|
194
|
+
export interface GetKeysKeyArgs {
|
|
195
|
+
/**
|
|
196
|
+
* This is the default value to set for `var.<name>`
|
|
197
|
+
* if the key does not exist in Consul. Defaults to an empty string.
|
|
198
|
+
*/
|
|
199
|
+
default?: pulumi.Input<string>;
|
|
200
|
+
/**
|
|
201
|
+
* This is the name of the key. This value of the
|
|
202
|
+
* key is exposed as `var.<name>`. This is not the path of the key
|
|
203
|
+
* in Consul.
|
|
204
|
+
*/
|
|
205
|
+
name: pulumi.Input<string>;
|
|
206
|
+
/**
|
|
207
|
+
* This is the path in Consul that should be read
|
|
208
|
+
* or written to.
|
|
209
|
+
*/
|
|
210
|
+
path: pulumi.Input<string>;
|
|
211
|
+
}
|
|
122
212
|
export interface GetKeysKey {
|
|
123
213
|
/**
|
|
124
214
|
* This is the default value to set for `var.<name>`
|
|
@@ -137,6 +227,45 @@ export interface GetKeysKey {
|
|
|
137
227
|
*/
|
|
138
228
|
path: string;
|
|
139
229
|
}
|
|
230
|
+
export interface GetNodesQueryOptionArgs {
|
|
231
|
+
/**
|
|
232
|
+
* When `true`, the default, allow responses from
|
|
233
|
+
* Consul servers that are followers.
|
|
234
|
+
*/
|
|
235
|
+
allowStale?: pulumi.Input<boolean>;
|
|
236
|
+
/**
|
|
237
|
+
* The Consul datacenter to query. Defaults to the
|
|
238
|
+
* same value found in `queryOptions` parameter specified below, or if that is
|
|
239
|
+
* empty, the `datacenter` value found in the Consul agent that this provider is
|
|
240
|
+
* configured to talk to then the datacenter in the provider setup.
|
|
241
|
+
*/
|
|
242
|
+
datacenter?: pulumi.Input<string>;
|
|
243
|
+
near?: pulumi.Input<string>;
|
|
244
|
+
nodeMeta?: pulumi.Input<{
|
|
245
|
+
[key: string]: pulumi.Input<string>;
|
|
246
|
+
}>;
|
|
247
|
+
/**
|
|
248
|
+
* When `true` force the client to perform a
|
|
249
|
+
* read on at least quorum servers and verify the result is the same. Defaults
|
|
250
|
+
* to `false`.
|
|
251
|
+
*/
|
|
252
|
+
requireConsistent?: pulumi.Input<boolean>;
|
|
253
|
+
/**
|
|
254
|
+
* Specify the Consul ACL token to use when performing the
|
|
255
|
+
* request. This defaults to the same API token configured by the `consul`
|
|
256
|
+
* provider but may be overridden if necessary.
|
|
257
|
+
*/
|
|
258
|
+
token?: pulumi.Input<string>;
|
|
259
|
+
/**
|
|
260
|
+
* Index number used to enable blocking queries.
|
|
261
|
+
*/
|
|
262
|
+
waitIndex?: pulumi.Input<number>;
|
|
263
|
+
/**
|
|
264
|
+
* Max time the client should wait for a blocking query
|
|
265
|
+
* to return.
|
|
266
|
+
*/
|
|
267
|
+
waitTime?: pulumi.Input<string>;
|
|
268
|
+
}
|
|
140
269
|
export interface GetNodesQueryOption {
|
|
141
270
|
/**
|
|
142
271
|
* When `true`, the default, allow responses from
|
|
@@ -219,6 +348,92 @@ export interface GetServiceQueryOption {
|
|
|
219
348
|
*/
|
|
220
349
|
waitTime?: string;
|
|
221
350
|
}
|
|
351
|
+
export interface GetServiceQueryOptionArgs {
|
|
352
|
+
/**
|
|
353
|
+
* When `true`, the default, allow responses from
|
|
354
|
+
* Consul servers that are followers.
|
|
355
|
+
*/
|
|
356
|
+
allowStale?: pulumi.Input<boolean>;
|
|
357
|
+
/**
|
|
358
|
+
* The Consul datacenter to query. Defaults to the
|
|
359
|
+
* same value found in `queryOptions` parameter specified below, or if that is
|
|
360
|
+
* empty, the `datacenter` value found in the Consul agent that this provider is
|
|
361
|
+
* configured to talk to.
|
|
362
|
+
*/
|
|
363
|
+
datacenter?: pulumi.Input<string>;
|
|
364
|
+
/**
|
|
365
|
+
* The namespace to lookup the service.
|
|
366
|
+
*/
|
|
367
|
+
namespace?: pulumi.Input<string>;
|
|
368
|
+
near?: pulumi.Input<string>;
|
|
369
|
+
nodeMeta?: pulumi.Input<{
|
|
370
|
+
[key: string]: pulumi.Input<string>;
|
|
371
|
+
}>;
|
|
372
|
+
/**
|
|
373
|
+
* When `true` force the client to perform a
|
|
374
|
+
* read on at least quorum servers and verify the result is the same. Defaults
|
|
375
|
+
* to `false`.
|
|
376
|
+
*/
|
|
377
|
+
requireConsistent?: pulumi.Input<boolean>;
|
|
378
|
+
/**
|
|
379
|
+
* Specify the Consul ACL token to use when performing the
|
|
380
|
+
* request. This defaults to the same API token configured by the `consul`
|
|
381
|
+
* provider but may be overridden if necessary.
|
|
382
|
+
*/
|
|
383
|
+
token?: pulumi.Input<string>;
|
|
384
|
+
/**
|
|
385
|
+
* Index number used to enable blocking queries.
|
|
386
|
+
*/
|
|
387
|
+
waitIndex?: pulumi.Input<number>;
|
|
388
|
+
/**
|
|
389
|
+
* Max time the client should wait for a blocking query
|
|
390
|
+
* to return.
|
|
391
|
+
*/
|
|
392
|
+
waitTime?: pulumi.Input<string>;
|
|
393
|
+
}
|
|
394
|
+
export interface GetServicesQueryOptionArgs {
|
|
395
|
+
/**
|
|
396
|
+
* When `true`, the default, allow responses from
|
|
397
|
+
* Consul servers that are followers.
|
|
398
|
+
*/
|
|
399
|
+
allowStale?: pulumi.Input<boolean>;
|
|
400
|
+
/**
|
|
401
|
+
* The Consul datacenter to query. Defaults to the
|
|
402
|
+
* same value found in `queryOptions` parameter specified below, or if that is
|
|
403
|
+
* empty, the `datacenter` value found in the Consul agent that this provider is
|
|
404
|
+
* configured to talk to.
|
|
405
|
+
*/
|
|
406
|
+
datacenter?: pulumi.Input<string>;
|
|
407
|
+
/**
|
|
408
|
+
* The namespace to lookup the services.
|
|
409
|
+
*/
|
|
410
|
+
namespace?: pulumi.Input<string>;
|
|
411
|
+
near?: pulumi.Input<string>;
|
|
412
|
+
nodeMeta?: pulumi.Input<{
|
|
413
|
+
[key: string]: pulumi.Input<string>;
|
|
414
|
+
}>;
|
|
415
|
+
/**
|
|
416
|
+
* When `true` force the client to perform a
|
|
417
|
+
* read on at least quorum servers and verify the result is the same. Defaults
|
|
418
|
+
* to `false`.
|
|
419
|
+
*/
|
|
420
|
+
requireConsistent?: pulumi.Input<boolean>;
|
|
421
|
+
/**
|
|
422
|
+
* Specify the Consul ACL token to use when performing the
|
|
423
|
+
* request. This defaults to the same API token configured by the `consul`
|
|
424
|
+
* provider but may be overridden if necessary.
|
|
425
|
+
*/
|
|
426
|
+
token?: pulumi.Input<string>;
|
|
427
|
+
/**
|
|
428
|
+
* Index number used to enable blocking queries.
|
|
429
|
+
*/
|
|
430
|
+
waitIndex?: pulumi.Input<number>;
|
|
431
|
+
/**
|
|
432
|
+
* Max time the client should wait for a blocking query
|
|
433
|
+
* to return.
|
|
434
|
+
*/
|
|
435
|
+
waitTime?: pulumi.Input<string>;
|
|
436
|
+
}
|
|
222
437
|
export interface GetServicesQueryOption {
|
|
223
438
|
/**
|
|
224
439
|
* When `true`, the default, allow responses from
|
package/types/output.d.ts
CHANGED
|
@@ -12,6 +12,16 @@ export interface AclAuthMethodNamespaceRule {
|
|
|
12
12
|
*/
|
|
13
13
|
selector?: string;
|
|
14
14
|
}
|
|
15
|
+
export interface AclRoleNodeIdentity {
|
|
16
|
+
/**
|
|
17
|
+
* The datacenter of the node.
|
|
18
|
+
*/
|
|
19
|
+
datacenter: string;
|
|
20
|
+
/**
|
|
21
|
+
* The name of the node.
|
|
22
|
+
*/
|
|
23
|
+
nodeName: string;
|
|
24
|
+
}
|
|
15
25
|
export interface AclRoleServiceIdentity {
|
|
16
26
|
/**
|
|
17
27
|
* The datacenters the effective policy is valid within.
|
|
@@ -22,6 +32,26 @@ export interface AclRoleServiceIdentity {
|
|
|
22
32
|
*/
|
|
23
33
|
serviceName: string;
|
|
24
34
|
}
|
|
35
|
+
export interface AclTokenNodeIdentity {
|
|
36
|
+
/**
|
|
37
|
+
* The datacenter of the node.
|
|
38
|
+
*/
|
|
39
|
+
datacenter: string;
|
|
40
|
+
/**
|
|
41
|
+
* The name of the node.
|
|
42
|
+
*/
|
|
43
|
+
nodeName: string;
|
|
44
|
+
}
|
|
45
|
+
export interface AclTokenServiceIdentity {
|
|
46
|
+
/**
|
|
47
|
+
* The list of datacenters the policy is valid within.
|
|
48
|
+
*/
|
|
49
|
+
datacenters?: string[];
|
|
50
|
+
/**
|
|
51
|
+
* The name of the service.
|
|
52
|
+
*/
|
|
53
|
+
serviceName: string;
|
|
54
|
+
}
|
|
25
55
|
export interface CatalogEntryService {
|
|
26
56
|
/**
|
|
27
57
|
* The address of the service. Defaults to the
|
|
@@ -50,6 +80,10 @@ export interface GetAclAuthMethodNamespaceRule {
|
|
|
50
80
|
bindNamespace: string;
|
|
51
81
|
selector: string;
|
|
52
82
|
}
|
|
83
|
+
export interface GetAclRoleNodeIdentity {
|
|
84
|
+
datacenter: string;
|
|
85
|
+
nodeName: string;
|
|
86
|
+
}
|
|
53
87
|
export interface GetAclRolePolicy {
|
|
54
88
|
id: string;
|
|
55
89
|
/**
|
|
@@ -61,10 +95,22 @@ export interface GetAclRoleServiceIdentity {
|
|
|
61
95
|
datacenters?: string[];
|
|
62
96
|
serviceName?: string;
|
|
63
97
|
}
|
|
98
|
+
export interface GetAclTokenNodeIdentity {
|
|
99
|
+
datacenter: string;
|
|
100
|
+
nodeName: string;
|
|
101
|
+
}
|
|
64
102
|
export interface GetAclTokenPolicy {
|
|
65
103
|
id: string;
|
|
66
104
|
name: string;
|
|
67
105
|
}
|
|
106
|
+
export interface GetAclTokenRole {
|
|
107
|
+
id: string;
|
|
108
|
+
name: string;
|
|
109
|
+
}
|
|
110
|
+
export interface GetAclTokenServiceIdentity {
|
|
111
|
+
datacenters: string[];
|
|
112
|
+
serviceName: string;
|
|
113
|
+
}
|
|
68
114
|
export interface GetAutopilotHealthServer {
|
|
69
115
|
/**
|
|
70
116
|
* The address of the server
|
|
@@ -645,10 +691,6 @@ export interface PreparedQueryTemplate {
|
|
|
645
691
|
*/
|
|
646
692
|
type: string;
|
|
647
693
|
}
|
|
648
|
-
export interface ProviderHeader {
|
|
649
|
-
name?: string;
|
|
650
|
-
value?: string;
|
|
651
|
-
}
|
|
652
694
|
export interface ServiceCheck {
|
|
653
695
|
/**
|
|
654
696
|
* An ID, *unique per agent*. Will default to *name*
|
package/utilities.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.getVersion = exports.getEnvNumber = exports.getEnvBoolean = exports.getEnv = void 0;
|
|
5
6
|
function getEnv(...vars) {
|
|
6
7
|
for (const v of vars) {
|
|
7
8
|
const value = process.env[v];
|
package/utilities.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utilities.js","sourceRoot":"","sources":["../utilities.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF
|
|
1
|
+
{"version":3,"file":"utilities.js","sourceRoot":"","sources":["../utilities.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAGjF,SAAgB,MAAM,CAAC,GAAG,IAAc;IACpC,KAAK,MAAM,CAAC,IAAI,IAAI,EAAE;QAClB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QAC7B,IAAI,KAAK,EAAE;YACP,OAAO,KAAK,CAAC;SAChB;KACJ;IACD,OAAO,SAAS,CAAC;AACrB,CAAC;AARD,wBAQC;AAED,SAAgB,aAAa,CAAC,GAAG,IAAc;IAC3C,MAAM,CAAC,GAAG,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC;IAC1B,IAAI,CAAC,KAAK,SAAS,EAAE;QACjB,uGAAuG;QACvG,yDAAyD;QACzD,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,SAAS,EAAE;YAC1E,OAAO,IAAI,CAAC;SACf;QACD,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAA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