@pulumi/consul 3.9.0-alpha.1687054376 → 3.9.0
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/aclAuthMethod.d.ts +2 -1
- package/aclAuthMethod.js.map +1 -1
- package/aclBindingRule.d.ts +1 -0
- package/aclBindingRule.js +1 -0
- package/aclBindingRule.js.map +1 -1
- package/aclPolicy.d.ts +1 -0
- package/aclPolicy.js +1 -0
- package/aclPolicy.js.map +1 -1
- package/aclRole.d.ts +2 -1
- package/aclRole.js.map +1 -1
- package/aclToken.d.ts +5 -5
- package/aclToken.js +3 -4
- package/aclToken.js.map +1 -1
- package/adminPartition.d.ts +1 -3
- package/adminPartition.js +1 -3
- package/adminPartition.js.map +1 -1
- package/catalogEntry.d.ts +2 -1
- package/catalogEntry.js +3 -1
- package/catalogEntry.js.map +1 -1
- package/certificateAuthority.d.ts +24 -55
- package/certificateAuthority.js +3 -53
- package/certificateAuthority.js.map +1 -1
- package/config/vars.d.ts +50 -2
- package/config/vars.js +6 -0
- package/config/vars.js.map +1 -1
- package/configEntry.d.ts +45 -2
- package/configEntry.js +45 -2
- package/configEntry.js.map +1 -1
- package/getAclAuthMethod.d.ts +17 -1
- package/getAclAuthMethod.js +18 -5
- package/getAclAuthMethod.js.map +1 -1
- package/getAclPolicy.d.ts +16 -0
- package/getAclPolicy.js +18 -5
- package/getAclPolicy.js.map +1 -1
- package/getAclRole.d.ts +17 -1
- package/getAclRole.js +18 -5
- package/getAclRole.js.map +1 -1
- package/getAclToken.d.ts +23 -5
- package/getAclToken.js +24 -9
- package/getAclToken.js.map +1 -1
- package/getAclTokenSecretId.d.ts +23 -0
- package/getAclTokenSecretId.js +25 -5
- package/getAclTokenSecretId.js.map +1 -1
- package/getAgentConfig.d.ts +2 -3
- package/getAgentConfig.js +3 -7
- package/getAgentConfig.js.map +1 -1
- package/getAgentSelf.d.ts +25 -9
- package/getAgentSelf.js +1 -4
- package/getAgentSelf.js.map +1 -1
- package/getAutopilotHealth.d.ts +18 -4
- package/getAutopilotHealth.js +19 -8
- package/getAutopilotHealth.js.map +1 -1
- package/getCatalogNodes.d.ts +35 -1
- package/getCatalogNodes.js +17 -5
- package/getCatalogNodes.js.map +1 -1
- package/getCatalogService.d.ts +78 -1
- package/getCatalogService.js +25 -5
- package/getCatalogService.js.map +1 -1
- package/getCatalogServices.d.ts +37 -1
- package/getCatalogServices.js +23 -5
- package/getCatalogServices.js.map +1 -1
- package/getConfigEntry.d.ts +39 -0
- package/getConfigEntry.js +2 -5
- package/getConfigEntry.js.map +1 -1
- package/getDatacenters.js +1 -4
- package/getDatacenters.js.map +1 -1
- package/getKeyPrefix.d.ts +45 -15
- package/getKeyPrefix.js +45 -19
- package/getKeyPrefix.js.map +1 -1
- package/getKeys.d.ts +30 -8
- package/getKeys.js +30 -12
- package/getKeys.js.map +1 -1
- package/getNetworkAreaMembers.d.ts +24 -1
- package/getNetworkAreaMembers.js +25 -5
- package/getNetworkAreaMembers.js.map +1 -1
- package/getNetworkSegments.d.ts +16 -0
- package/getNetworkSegments.js +18 -5
- package/getNetworkSegments.js.map +1 -1
- package/getNodes.d.ts +8 -1
- package/getNodes.js +8 -5
- package/getNodes.js.map +1 -1
- package/getPeering.d.ts +14 -2
- package/getPeering.js +16 -7
- package/getPeering.js.map +1 -1
- package/getPeerings.d.ts +12 -2
- package/getPeerings.js +13 -6
- package/getPeerings.js.map +1 -1
- package/getService.d.ts +12 -1
- package/getService.js +12 -5
- package/getService.js.map +1 -1
- package/getServiceHealth.d.ts +10 -14
- package/getServiceHealth.js +11 -18
- package/getServiceHealth.js.map +1 -1
- package/getServices.d.ts +11 -1
- package/getServices.js +11 -5
- package/getServices.js.map +1 -1
- package/index.d.ts +147 -50
- package/index.js +149 -121
- package/index.js.map +1 -1
- package/intention.d.ts +3 -3
- package/intention.js +3 -3
- package/keyPrefix.d.ts +10 -10
- package/keyPrefix.js +11 -10
- package/keyPrefix.js.map +1 -1
- package/keys.d.ts +3 -3
- package/keys.js +4 -3
- package/keys.js.map +1 -1
- package/license.d.ts +1 -1
- package/license.js +4 -2
- package/license.js.map +1 -1
- package/networkArea.js +3 -1
- package/networkArea.js.map +1 -1
- package/node.d.ts +1 -3
- package/node.js +4 -4
- package/node.js.map +1 -1
- package/package.json +4 -3
- package/package.json.bak +2 -1
- package/peering.d.ts +6 -12
- package/peering.js +3 -1
- package/peering.js.map +1 -1
- package/peeringToken.d.ts +7 -15
- package/peeringToken.js +3 -3
- package/peeringToken.js.map +1 -1
- package/preparedQuery.d.ts +47 -132
- package/preparedQuery.js +3 -3
- package/preparedQuery.js.map +1 -1
- package/provider.d.ts +89 -2
- package/provider.js +6 -3
- package/provider.js.map +1 -1
- package/service.d.ts +11 -67
- package/service.js +0 -63
- package/service.js.map +1 -1
- package/types/index.js.map +1 -1
- package/types/input.d.ts +294 -100
- package/types/output.d.ts +156 -7
- package/utilities.js +13 -1
- package/utilities.js.map +1 -1
package/configEntry.js
CHANGED
|
@@ -138,9 +138,24 @@ const utilities = require("./utilities");
|
|
|
138
138
|
* Protocol: "http",
|
|
139
139
|
* }),
|
|
140
140
|
* });
|
|
141
|
+
* const jwtProvider = new consul.ConfigEntry("jwtProvider", {
|
|
142
|
+
* kind: "jwt-provider",
|
|
143
|
+
* configJson: JSON.stringify({
|
|
144
|
+
* Issuer: "test-issuer",
|
|
145
|
+
* JSONWebKeySet: {
|
|
146
|
+
* Remote: {
|
|
147
|
+
* URI: "https://127.0.0.1:9091",
|
|
148
|
+
* FetchAsynchronously: true,
|
|
149
|
+
* },
|
|
150
|
+
* },
|
|
151
|
+
* Forwarding: {
|
|
152
|
+
* HeaderName: "test-token",
|
|
153
|
+
* },
|
|
154
|
+
* }),
|
|
155
|
+
* });
|
|
141
156
|
* const serviceIntentions = new consul.ConfigEntry("serviceIntentions", {
|
|
142
157
|
* kind: "service-intentions",
|
|
143
|
-
* configJson: JSON.stringify({
|
|
158
|
+
* configJson: jwtProvider.name.apply(name => JSON.stringify({
|
|
144
159
|
* Sources: [
|
|
145
160
|
* {
|
|
146
161
|
* Name: "contractor-webapp",
|
|
@@ -153,6 +168,11 @@ const utilities = require("./utilities");
|
|
|
153
168
|
* ],
|
|
154
169
|
* PathExact: "/healtz",
|
|
155
170
|
* },
|
|
171
|
+
* JWT: {
|
|
172
|
+
* Providers: [{
|
|
173
|
+
* Name: name,
|
|
174
|
+
* }],
|
|
175
|
+
* },
|
|
156
176
|
* }],
|
|
157
177
|
* Precedence: 9,
|
|
158
178
|
* Type: "consul",
|
|
@@ -177,7 +197,7 @@ const utilities = require("./utilities");
|
|
|
177
197
|
* Type: "consul",
|
|
178
198
|
* },
|
|
179
199
|
* ],
|
|
180
|
-
* }),
|
|
200
|
+
* })),
|
|
181
201
|
* });
|
|
182
202
|
* ```
|
|
183
203
|
* ### `exported-services` config entry
|
|
@@ -215,6 +235,29 @@ const utilities = require("./utilities");
|
|
|
215
235
|
* }),
|
|
216
236
|
* });
|
|
217
237
|
* ```
|
|
238
|
+
* ### `jwt-provider` config entry
|
|
239
|
+
*
|
|
240
|
+
* ```typescript
|
|
241
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
242
|
+
* import * as consul from "@pulumi/consul";
|
|
243
|
+
*
|
|
244
|
+
* const jwtProvider = new consul.ConfigEntry("jwtProvider", {
|
|
245
|
+
* kind: "jwt-provider",
|
|
246
|
+
* configJson: JSON.stringify({
|
|
247
|
+
* Issuer: "https://your.issuer.com",
|
|
248
|
+
* JSONWebKeySet: {
|
|
249
|
+
* Remote: {
|
|
250
|
+
* URI: "https://your-remote.jwks.com",
|
|
251
|
+
* FetchAsynchronously: true,
|
|
252
|
+
* CacheDuration: "10s",
|
|
253
|
+
* },
|
|
254
|
+
* },
|
|
255
|
+
* Forwarding: {
|
|
256
|
+
* HeaderName: "test-token",
|
|
257
|
+
* },
|
|
258
|
+
* }),
|
|
259
|
+
* });
|
|
260
|
+
* ```
|
|
218
261
|
*
|
|
219
262
|
* ## Import
|
|
220
263
|
*
|
package/configEntry.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configEntry.js","sourceRoot":"","sources":["../configEntry.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"configEntry.js","sourceRoot":"","sources":["../configEntry.ts"],"names":[],"mappings":"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"}
|
package/getAclAuthMethod.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
import
|
|
2
|
+
import * as outputs from "./types/output";
|
|
3
3
|
/**
|
|
4
4
|
* The `consul.AclAuthMethod` data source returns the information related to a
|
|
5
5
|
* [Consul Auth Method](https://www.consul.io/docs/acl/acl-auth-methods.html).
|
|
@@ -88,6 +88,22 @@ export interface GetAclAuthMethodResult {
|
|
|
88
88
|
*/
|
|
89
89
|
readonly type: string;
|
|
90
90
|
}
|
|
91
|
+
/**
|
|
92
|
+
* The `consul.AclAuthMethod` data source returns the information related to a
|
|
93
|
+
* [Consul Auth Method](https://www.consul.io/docs/acl/acl-auth-methods.html).
|
|
94
|
+
*
|
|
95
|
+
* ## Example Usage
|
|
96
|
+
*
|
|
97
|
+
* ```typescript
|
|
98
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
99
|
+
* import * as consul from "@pulumi/consul";
|
|
100
|
+
*
|
|
101
|
+
* const test = consul.getAclAuthMethod({
|
|
102
|
+
* name: "minikube",
|
|
103
|
+
* });
|
|
104
|
+
* export const consulAclAuthMethod = test.then(test => test.config);
|
|
105
|
+
* ```
|
|
106
|
+
*/
|
|
91
107
|
export declare function getAclAuthMethodOutput(args: GetAclAuthMethodOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetAclAuthMethodResult>;
|
|
92
108
|
/**
|
|
93
109
|
* A collection of arguments for invoking getAclAuthMethod.
|
package/getAclAuthMethod.js
CHANGED
|
@@ -22,10 +22,7 @@ const utilities = require("./utilities");
|
|
|
22
22
|
* ```
|
|
23
23
|
*/
|
|
24
24
|
function getAclAuthMethod(args, opts) {
|
|
25
|
-
|
|
26
|
-
opts = {};
|
|
27
|
-
}
|
|
28
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
25
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
29
26
|
return pulumi.runtime.invoke("consul:index/getAclAuthMethod:getAclAuthMethod", {
|
|
30
27
|
"name": args.name,
|
|
31
28
|
"namespace": args.namespace,
|
|
@@ -33,8 +30,24 @@ function getAclAuthMethod(args, opts) {
|
|
|
33
30
|
}, opts);
|
|
34
31
|
}
|
|
35
32
|
exports.getAclAuthMethod = getAclAuthMethod;
|
|
33
|
+
/**
|
|
34
|
+
* The `consul.AclAuthMethod` data source returns the information related to a
|
|
35
|
+
* [Consul Auth Method](https://www.consul.io/docs/acl/acl-auth-methods.html).
|
|
36
|
+
*
|
|
37
|
+
* ## Example Usage
|
|
38
|
+
*
|
|
39
|
+
* ```typescript
|
|
40
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
41
|
+
* import * as consul from "@pulumi/consul";
|
|
42
|
+
*
|
|
43
|
+
* const test = consul.getAclAuthMethod({
|
|
44
|
+
* name: "minikube",
|
|
45
|
+
* });
|
|
46
|
+
* export const consulAclAuthMethod = test.then(test => test.config);
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
36
49
|
function getAclAuthMethodOutput(args, opts) {
|
|
37
|
-
return pulumi.output(args).apply(a => getAclAuthMethod(a, opts));
|
|
50
|
+
return pulumi.output(args).apply((a) => getAclAuthMethod(a, opts));
|
|
38
51
|
}
|
|
39
52
|
exports.getAclAuthMethodOutput = getAclAuthMethodOutput;
|
|
40
53
|
//# sourceMappingURL=getAclAuthMethod.js.map
|
package/getAclAuthMethod.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAclAuthMethod.js","sourceRoot":"","sources":["../getAclAuthMethod.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;
|
|
1
|
+
{"version":3,"file":"getAclAuthMethod.js","sourceRoot":"","sources":["../getAclAuthMethod.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,gBAAgB,CAAC,IAA0B,EAAE,IAA2B;IAEpF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,gDAAgD,EAAE;QAC3E,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,WAAW,EAAE,IAAI,CAAC,SAAS;KAC9B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,4CAQC;AAwED;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,sBAAsB,CAAC,IAAgC,EAAE,IAA2B;IAChG,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,gBAAgB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC3E,CAAC;AAFD,wDAEC"}
|
package/getAclPolicy.d.ts
CHANGED
|
@@ -57,6 +57,22 @@ export interface GetAclPolicyResult {
|
|
|
57
57
|
*/
|
|
58
58
|
readonly rules: string;
|
|
59
59
|
}
|
|
60
|
+
/**
|
|
61
|
+
* The `consul.AclPolicy` data source returns the information related to a
|
|
62
|
+
* [Consul ACL Policy](https://www.consul.io/docs/acl/acl-system.html#acl-policies).
|
|
63
|
+
*
|
|
64
|
+
* ## Example Usage
|
|
65
|
+
*
|
|
66
|
+
* ```typescript
|
|
67
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
68
|
+
* import * as consul from "@pulumi/consul";
|
|
69
|
+
*
|
|
70
|
+
* const agent = consul.getAclPolicy({
|
|
71
|
+
* name: "agent",
|
|
72
|
+
* });
|
|
73
|
+
* export const consulAclPolicy = agent.then(agent => agent.rules);
|
|
74
|
+
* ```
|
|
75
|
+
*/
|
|
60
76
|
export declare function getAclPolicyOutput(args: GetAclPolicyOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetAclPolicyResult>;
|
|
61
77
|
/**
|
|
62
78
|
* A collection of arguments for invoking getAclPolicy.
|
package/getAclPolicy.js
CHANGED
|
@@ -22,10 +22,7 @@ const utilities = require("./utilities");
|
|
|
22
22
|
* ```
|
|
23
23
|
*/
|
|
24
24
|
function getAclPolicy(args, opts) {
|
|
25
|
-
|
|
26
|
-
opts = {};
|
|
27
|
-
}
|
|
28
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
25
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
29
26
|
return pulumi.runtime.invoke("consul:index/getAclPolicy:getAclPolicy", {
|
|
30
27
|
"name": args.name,
|
|
31
28
|
"namespace": args.namespace,
|
|
@@ -33,8 +30,24 @@ function getAclPolicy(args, opts) {
|
|
|
33
30
|
}, opts);
|
|
34
31
|
}
|
|
35
32
|
exports.getAclPolicy = getAclPolicy;
|
|
33
|
+
/**
|
|
34
|
+
* The `consul.AclPolicy` data source returns the information related to a
|
|
35
|
+
* [Consul ACL Policy](https://www.consul.io/docs/acl/acl-system.html#acl-policies).
|
|
36
|
+
*
|
|
37
|
+
* ## Example Usage
|
|
38
|
+
*
|
|
39
|
+
* ```typescript
|
|
40
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
41
|
+
* import * as consul from "@pulumi/consul";
|
|
42
|
+
*
|
|
43
|
+
* const agent = consul.getAclPolicy({
|
|
44
|
+
* name: "agent",
|
|
45
|
+
* });
|
|
46
|
+
* export const consulAclPolicy = agent.then(agent => agent.rules);
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
36
49
|
function getAclPolicyOutput(args, opts) {
|
|
37
|
-
return pulumi.output(args).apply(a => getAclPolicy(a, opts));
|
|
50
|
+
return pulumi.output(args).apply((a) => getAclPolicy(a, opts));
|
|
38
51
|
}
|
|
39
52
|
exports.getAclPolicyOutput = getAclPolicyOutput;
|
|
40
53
|
//# sourceMappingURL=getAclPolicy.js.map
|
package/getAclPolicy.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAclPolicy.js","sourceRoot":"","sources":["../getAclPolicy.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,YAAY,CAAC,IAAsB,EAAE,IAA2B;
|
|
1
|
+
{"version":3,"file":"getAclPolicy.js","sourceRoot":"","sources":["../getAclPolicy.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,YAAY,CAAC,IAAsB,EAAE,IAA2B;IAE5E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,wCAAwC,EAAE;QACnE,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,WAAW,EAAE,IAAI,CAAC,SAAS;KAC9B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,oCAQC;AA4CD;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,kBAAkB,CAAC,IAA4B,EAAE,IAA2B;IACxF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,YAAY,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACvE,CAAC;AAFD,gDAEC"}
|
package/getAclRole.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
import
|
|
2
|
+
import * as outputs from "./types/output";
|
|
3
3
|
/**
|
|
4
4
|
* The `consul.AclRole` data source returns the information related to a
|
|
5
5
|
* [Consul ACL Role](https://www.consul.io/api/acl/roles.html).
|
|
@@ -68,6 +68,22 @@ export interface GetAclRoleResult {
|
|
|
68
68
|
*/
|
|
69
69
|
readonly serviceIdentities: outputs.GetAclRoleServiceIdentity[];
|
|
70
70
|
}
|
|
71
|
+
/**
|
|
72
|
+
* The `consul.AclRole` data source returns the information related to a
|
|
73
|
+
* [Consul ACL Role](https://www.consul.io/api/acl/roles.html).
|
|
74
|
+
*
|
|
75
|
+
* ## Example Usage
|
|
76
|
+
*
|
|
77
|
+
* ```typescript
|
|
78
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
79
|
+
* import * as consul from "@pulumi/consul";
|
|
80
|
+
*
|
|
81
|
+
* const test = consul.getAclRole({
|
|
82
|
+
* name: "example-role",
|
|
83
|
+
* });
|
|
84
|
+
* export const consulAclRole = test.then(test => test.id);
|
|
85
|
+
* ```
|
|
86
|
+
*/
|
|
71
87
|
export declare function getAclRoleOutput(args: GetAclRoleOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetAclRoleResult>;
|
|
72
88
|
/**
|
|
73
89
|
* A collection of arguments for invoking getAclRole.
|
package/getAclRole.js
CHANGED
|
@@ -22,10 +22,7 @@ const utilities = require("./utilities");
|
|
|
22
22
|
* ```
|
|
23
23
|
*/
|
|
24
24
|
function getAclRole(args, opts) {
|
|
25
|
-
|
|
26
|
-
opts = {};
|
|
27
|
-
}
|
|
28
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
25
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
29
26
|
return pulumi.runtime.invoke("consul:index/getAclRole:getAclRole", {
|
|
30
27
|
"name": args.name,
|
|
31
28
|
"namespace": args.namespace,
|
|
@@ -33,8 +30,24 @@ function getAclRole(args, opts) {
|
|
|
33
30
|
}, opts);
|
|
34
31
|
}
|
|
35
32
|
exports.getAclRole = getAclRole;
|
|
33
|
+
/**
|
|
34
|
+
* The `consul.AclRole` data source returns the information related to a
|
|
35
|
+
* [Consul ACL Role](https://www.consul.io/api/acl/roles.html).
|
|
36
|
+
*
|
|
37
|
+
* ## Example Usage
|
|
38
|
+
*
|
|
39
|
+
* ```typescript
|
|
40
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
41
|
+
* import * as consul from "@pulumi/consul";
|
|
42
|
+
*
|
|
43
|
+
* const test = consul.getAclRole({
|
|
44
|
+
* name: "example-role",
|
|
45
|
+
* });
|
|
46
|
+
* export const consulAclRole = test.then(test => test.id);
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
36
49
|
function getAclRoleOutput(args, opts) {
|
|
37
|
-
return pulumi.output(args).apply(a => getAclRole(a, opts));
|
|
50
|
+
return pulumi.output(args).apply((a) => getAclRole(a, opts));
|
|
38
51
|
}
|
|
39
52
|
exports.getAclRoleOutput = getAclRoleOutput;
|
|
40
53
|
//# sourceMappingURL=getAclRole.js.map
|
package/getAclRole.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAclRole.js","sourceRoot":"","sources":["../getAclRole.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;
|
|
1
|
+
{"version":3,"file":"getAclRole.js","sourceRoot":"","sources":["../getAclRole.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,UAAU,CAAC,IAAoB,EAAE,IAA2B;IAExE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,oCAAoC,EAAE;QAC/D,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,WAAW,EAAE,IAAI,CAAC,SAAS;KAC9B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,gCAQC;AAsDD;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,gBAAgB,CAAC,IAA0B,EAAE,IAA2B;IACpF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,UAAU,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACrE,CAAC;AAFD,4CAEC"}
|
package/getAclToken.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
import
|
|
2
|
+
import * as outputs from "./types/output";
|
|
3
3
|
/**
|
|
4
4
|
* The `consul.AclToken` data source returns the information related to the
|
|
5
5
|
* `consul.AclToken` resource with the exception of its secret ID.
|
|
@@ -13,11 +13,10 @@ import { output as outputs } from "./types";
|
|
|
13
13
|
* import * as pulumi from "@pulumi/pulumi";
|
|
14
14
|
* import * as consul from "@pulumi/consul";
|
|
15
15
|
*
|
|
16
|
-
* const test =
|
|
16
|
+
* const test = consul.getAclToken({
|
|
17
17
|
* accessorId: "00000000-0000-0000-0000-000000000002",
|
|
18
|
-
* })
|
|
19
|
-
*
|
|
20
|
-
* export const consulAclPolicies = test.policies;
|
|
18
|
+
* });
|
|
19
|
+
* export const consulAclPolicies = test.then(test => test.policies);
|
|
21
20
|
* ```
|
|
22
21
|
*/
|
|
23
22
|
export declare function getAclToken(args: GetAclTokenArgs, opts?: pulumi.InvokeOptions): Promise<GetAclTokenResult>;
|
|
@@ -78,6 +77,25 @@ export interface GetAclTokenResult {
|
|
|
78
77
|
*/
|
|
79
78
|
readonly serviceIdentities: outputs.GetAclTokenServiceIdentity[];
|
|
80
79
|
}
|
|
80
|
+
/**
|
|
81
|
+
* The `consul.AclToken` data source returns the information related to the
|
|
82
|
+
* `consul.AclToken` resource with the exception of its secret ID.
|
|
83
|
+
*
|
|
84
|
+
* If you want to get the secret ID associated with a token, use the
|
|
85
|
+
* [`consul.getAclTokenSecretId` data source](https://www.terraform.io/docs/providers/consul/d/acl_token_secret_id.html).
|
|
86
|
+
*
|
|
87
|
+
* ## Example Usage
|
|
88
|
+
*
|
|
89
|
+
* ```typescript
|
|
90
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
91
|
+
* import * as consul from "@pulumi/consul";
|
|
92
|
+
*
|
|
93
|
+
* const test = consul.getAclToken({
|
|
94
|
+
* accessorId: "00000000-0000-0000-0000-000000000002",
|
|
95
|
+
* });
|
|
96
|
+
* export const consulAclPolicies = test.then(test => test.policies);
|
|
97
|
+
* ```
|
|
98
|
+
*/
|
|
81
99
|
export declare function getAclTokenOutput(args: GetAclTokenOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetAclTokenResult>;
|
|
82
100
|
/**
|
|
83
101
|
* A collection of arguments for invoking getAclToken.
|
package/getAclToken.js
CHANGED
|
@@ -18,18 +18,14 @@ const utilities = require("./utilities");
|
|
|
18
18
|
* import * as pulumi from "@pulumi/pulumi";
|
|
19
19
|
* import * as consul from "@pulumi/consul";
|
|
20
20
|
*
|
|
21
|
-
* const test =
|
|
21
|
+
* const test = consul.getAclToken({
|
|
22
22
|
* accessorId: "00000000-0000-0000-0000-000000000002",
|
|
23
|
-
* })
|
|
24
|
-
*
|
|
25
|
-
* export const consulAclPolicies = test.policies;
|
|
23
|
+
* });
|
|
24
|
+
* export const consulAclPolicies = test.then(test => test.policies);
|
|
26
25
|
* ```
|
|
27
26
|
*/
|
|
28
27
|
function getAclToken(args, opts) {
|
|
29
|
-
|
|
30
|
-
opts = {};
|
|
31
|
-
}
|
|
32
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
28
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
33
29
|
return pulumi.runtime.invoke("consul:index/getAclToken:getAclToken", {
|
|
34
30
|
"accessorId": args.accessorId,
|
|
35
31
|
"namespace": args.namespace,
|
|
@@ -37,8 +33,27 @@ function getAclToken(args, opts) {
|
|
|
37
33
|
}, opts);
|
|
38
34
|
}
|
|
39
35
|
exports.getAclToken = getAclToken;
|
|
36
|
+
/**
|
|
37
|
+
* The `consul.AclToken` data source returns the information related to the
|
|
38
|
+
* `consul.AclToken` resource with the exception of its secret ID.
|
|
39
|
+
*
|
|
40
|
+
* If you want to get the secret ID associated with a token, use the
|
|
41
|
+
* [`consul.getAclTokenSecretId` data source](https://www.terraform.io/docs/providers/consul/d/acl_token_secret_id.html).
|
|
42
|
+
*
|
|
43
|
+
* ## Example Usage
|
|
44
|
+
*
|
|
45
|
+
* ```typescript
|
|
46
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
47
|
+
* import * as consul from "@pulumi/consul";
|
|
48
|
+
*
|
|
49
|
+
* const test = consul.getAclToken({
|
|
50
|
+
* accessorId: "00000000-0000-0000-0000-000000000002",
|
|
51
|
+
* });
|
|
52
|
+
* export const consulAclPolicies = test.then(test => test.policies);
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
40
55
|
function getAclTokenOutput(args, opts) {
|
|
41
|
-
return pulumi.output(args).apply(a => getAclToken(a, opts));
|
|
56
|
+
return pulumi.output(args).apply((a) => getAclToken(a, opts));
|
|
42
57
|
}
|
|
43
58
|
exports.getAclTokenOutput = getAclTokenOutput;
|
|
44
59
|
//# sourceMappingURL=getAclToken.js.map
|
package/getAclToken.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAclToken.js","sourceRoot":"","sources":["../getAclToken.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;
|
|
1
|
+
{"version":3,"file":"getAclToken.js","sourceRoot":"","sources":["../getAclToken.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;GAkBG;AACH,SAAgB,WAAW,CAAC,IAAqB,EAAE,IAA2B;IAE1E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,sCAAsC,EAAE;QACjE,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,WAAW,EAAE,IAAI,CAAC,SAAS;KAC9B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,kCAQC;AA4DD;;;;;;;;;;;;;;;;;;GAkBG;AACH,SAAgB,iBAAiB,CAAC,IAA2B,EAAE,IAA2B;IACtF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,WAAW,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACtE,CAAC;AAFD,8CAEC"}
|
package/getAclTokenSecretId.d.ts
CHANGED
|
@@ -59,6 +59,29 @@ export interface GetAclTokenSecretIdResult {
|
|
|
59
59
|
*/
|
|
60
60
|
readonly secretId: string;
|
|
61
61
|
}
|
|
62
|
+
/**
|
|
63
|
+
* ## Example Usage
|
|
64
|
+
*
|
|
65
|
+
* ```typescript
|
|
66
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
67
|
+
* import * as consul from "@pulumi/consul";
|
|
68
|
+
*
|
|
69
|
+
* const testAclPolicy = new consul.AclPolicy("testAclPolicy", {
|
|
70
|
+
* rules: "node \"\" { policy = \"read\" }",
|
|
71
|
+
* datacenters: ["dc1"],
|
|
72
|
+
* });
|
|
73
|
+
* const testAclToken = new consul.AclToken("testAclToken", {
|
|
74
|
+
* description: "test",
|
|
75
|
+
* policies: [testAclPolicy.name],
|
|
76
|
+
* local: true,
|
|
77
|
+
* });
|
|
78
|
+
* const read = consul.getAclTokenSecretIdOutput({
|
|
79
|
+
* accessorId: testAclToken.id,
|
|
80
|
+
* pgpKey: "keybase:my_username",
|
|
81
|
+
* });
|
|
82
|
+
* export const consulAclTokenSecretId = read.apply(read => read.encryptedSecretId);
|
|
83
|
+
* ```
|
|
84
|
+
*/
|
|
62
85
|
export declare function getAclTokenSecretIdOutput(args: GetAclTokenSecretIdOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetAclTokenSecretIdResult>;
|
|
63
86
|
/**
|
|
64
87
|
* A collection of arguments for invoking getAclTokenSecretId.
|
package/getAclTokenSecretId.js
CHANGED
|
@@ -29,10 +29,7 @@ const utilities = require("./utilities");
|
|
|
29
29
|
* ```
|
|
30
30
|
*/
|
|
31
31
|
function getAclTokenSecretId(args, opts) {
|
|
32
|
-
|
|
33
|
-
opts = {};
|
|
34
|
-
}
|
|
35
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
32
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
36
33
|
return pulumi.runtime.invoke("consul:index/getAclTokenSecretId:getAclTokenSecretId", {
|
|
37
34
|
"accessorId": args.accessorId,
|
|
38
35
|
"namespace": args.namespace,
|
|
@@ -41,8 +38,31 @@ function getAclTokenSecretId(args, opts) {
|
|
|
41
38
|
}, opts);
|
|
42
39
|
}
|
|
43
40
|
exports.getAclTokenSecretId = getAclTokenSecretId;
|
|
41
|
+
/**
|
|
42
|
+
* ## Example Usage
|
|
43
|
+
*
|
|
44
|
+
* ```typescript
|
|
45
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
46
|
+
* import * as consul from "@pulumi/consul";
|
|
47
|
+
*
|
|
48
|
+
* const testAclPolicy = new consul.AclPolicy("testAclPolicy", {
|
|
49
|
+
* rules: "node \"\" { policy = \"read\" }",
|
|
50
|
+
* datacenters: ["dc1"],
|
|
51
|
+
* });
|
|
52
|
+
* const testAclToken = new consul.AclToken("testAclToken", {
|
|
53
|
+
* description: "test",
|
|
54
|
+
* policies: [testAclPolicy.name],
|
|
55
|
+
* local: true,
|
|
56
|
+
* });
|
|
57
|
+
* const read = consul.getAclTokenSecretIdOutput({
|
|
58
|
+
* accessorId: testAclToken.id,
|
|
59
|
+
* pgpKey: "keybase:my_username",
|
|
60
|
+
* });
|
|
61
|
+
* export const consulAclTokenSecretId = read.apply(read => read.encryptedSecretId);
|
|
62
|
+
* ```
|
|
63
|
+
*/
|
|
44
64
|
function getAclTokenSecretIdOutput(args, opts) {
|
|
45
|
-
return pulumi.output(args).apply(a => getAclTokenSecretId(a, opts));
|
|
65
|
+
return pulumi.output(args).apply((a) => getAclTokenSecretId(a, opts));
|
|
46
66
|
}
|
|
47
67
|
exports.getAclTokenSecretIdOutput = getAclTokenSecretIdOutput;
|
|
48
68
|
//# sourceMappingURL=getAclTokenSecretId.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAclTokenSecretId.js","sourceRoot":"","sources":["../getAclTokenSecretId.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,SAAgB,mBAAmB,CAAC,IAA6B,EAAE,IAA2B;
|
|
1
|
+
{"version":3,"file":"getAclTokenSecretId.js","sourceRoot":"","sources":["../getAclTokenSecretId.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,SAAgB,mBAAmB,CAAC,IAA6B,EAAE,IAA2B;IAE1F,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,sDAAsD,EAAE;QACjF,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AATD,kDASC;AAuCD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,SAAgB,yBAAyB,CAAC,IAAmC,EAAE,IAA2B;IACtG,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,mBAAmB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC9E,CAAC;AAFD,8DAEC"}
|
package/getAgentConfig.d.ts
CHANGED
|
@@ -14,9 +14,8 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
14
14
|
* import * as pulumi from "@pulumi/pulumi";
|
|
15
15
|
* import * as consul from "@pulumi/consul";
|
|
16
16
|
*
|
|
17
|
-
* const remoteAgent =
|
|
18
|
-
*
|
|
19
|
-
* export const consulVersion = remoteAgent.version;
|
|
17
|
+
* const remoteAgent = consul.getAgentConfig({});
|
|
18
|
+
* export const consulVersion = remoteAgent.then(remoteAgent => remoteAgent.version);
|
|
20
19
|
* ```
|
|
21
20
|
*/
|
|
22
21
|
export declare function getAgentConfig(opts?: pulumi.InvokeOptions): Promise<GetAgentConfigResult>;
|
package/getAgentConfig.js
CHANGED
|
@@ -20,16 +20,12 @@ const utilities = require("./utilities");
|
|
|
20
20
|
* import * as pulumi from "@pulumi/pulumi";
|
|
21
21
|
* import * as consul from "@pulumi/consul";
|
|
22
22
|
*
|
|
23
|
-
* const remoteAgent =
|
|
24
|
-
*
|
|
25
|
-
* export const consulVersion = remoteAgent.version;
|
|
23
|
+
* const remoteAgent = consul.getAgentConfig({});
|
|
24
|
+
* export const consulVersion = remoteAgent.then(remoteAgent => remoteAgent.version);
|
|
26
25
|
* ```
|
|
27
26
|
*/
|
|
28
27
|
function getAgentConfig(opts) {
|
|
29
|
-
|
|
30
|
-
opts = {};
|
|
31
|
-
}
|
|
32
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
28
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
33
29
|
return pulumi.runtime.invoke("consul:index/getAgentConfig:getAgentConfig", {}, opts);
|
|
34
30
|
}
|
|
35
31
|
exports.getAgentConfig = getAgentConfig;
|
package/getAgentConfig.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAgentConfig.js","sourceRoot":"","sources":["../getAgentConfig.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"getAgentConfig.js","sourceRoot":"","sources":["../getAgentConfig.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;GAkBG;AACH,SAAgB,cAAc,CAAC,IAA2B;IAEtD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,4CAA4C,EAAE,EAC1E,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,wCAKC"}
|
package/getAgentSelf.d.ts
CHANGED
|
@@ -14,6 +14,19 @@ export declare function getAgentSelf(opts?: pulumi.InvokeOptions): Promise<GetAg
|
|
|
14
14
|
export interface GetAgentSelfResult {
|
|
15
15
|
readonly aclDatacenter: string;
|
|
16
16
|
readonly aclDefaultPolicy: string;
|
|
17
|
+
/**
|
|
18
|
+
* * [`aclDownPolicy`](https://www.consul.io/docs/agent/options.html#acl_down_policy)
|
|
19
|
+
* * [`aclEnforce08Semantics`](https://www.consul.io/docs/agent/options.html#acl_enforce_version_8)
|
|
20
|
+
* * [`aclTtl`](https://www.consul.io/docs/agent/options.html#acl_ttl)
|
|
21
|
+
* * [`addresses`](https://www.consul.io/docs/agent/options.html#addresses)
|
|
22
|
+
* * [`advertiseAddr`](https://www.consul.io/docs/agent/options.html#_advertise)
|
|
23
|
+
* * [`advertiseAddrWan`](https://www.consul.io/docs/agent/options.html#_advertise-wan)
|
|
24
|
+
* * [`advertiseAddrs`](https://www.consul.io/docs/agent/options.html#advertise_addrs)
|
|
25
|
+
* * [`atlasJoin`](https://www.consul.io/docs/agent/options.html#_atlas_join)
|
|
26
|
+
* * [`bindAddr`](https://www.consul.io/docs/agent/options.html#_bind)
|
|
27
|
+
* * [`bootstrapExpect`](https://www.consul.io/docs/agent/options.html#_bootstrap_expect)
|
|
28
|
+
* * [`bootstrapMode`](https://www.consul.io/docs/agent/options.html#_bootstrap)
|
|
29
|
+
*/
|
|
17
30
|
readonly aclDisabledTtl: string;
|
|
18
31
|
readonly aclDownPolicy: string;
|
|
19
32
|
readonly aclEnforce08Semantics: boolean;
|
|
@@ -31,6 +44,10 @@ export interface GetAgentSelfResult {
|
|
|
31
44
|
readonly bootstrapExpect: number;
|
|
32
45
|
readonly bootstrapMode: boolean;
|
|
33
46
|
readonly checkDeregisterIntervalMin: string;
|
|
47
|
+
/**
|
|
48
|
+
* * [`checkUpdateInterval`](https://www.consul.io/docs/agent/options.html#check_update_interval)
|
|
49
|
+
* * [`clientAddr`](https://www.consul.io/docs/agent/options.html#_client)
|
|
50
|
+
*/
|
|
34
51
|
readonly checkReapInterval: string;
|
|
35
52
|
readonly checkUpdateInterval: string;
|
|
36
53
|
readonly clientAddr: string;
|
|
@@ -47,7 +64,14 @@ export interface GetAgentSelfResult {
|
|
|
47
64
|
* * [`devMode`](https://www.consul.io/docs/agent/options.html#_dev)
|
|
48
65
|
* * [`domain`](https://www.consul.io/docs/agent/options.html#_domain)
|
|
49
66
|
* * [`enableAnonymousSignature`](https://www.consul.io/docs/agent/options.html#disable_anonymous_signature)
|
|
50
|
-
|
|
67
|
+
*/
|
|
68
|
+
readonly dns: {
|
|
69
|
+
[key: string]: string;
|
|
70
|
+
};
|
|
71
|
+
readonly dnsRecursors: string[];
|
|
72
|
+
readonly domain: string;
|
|
73
|
+
readonly enableAnonymousSignature: boolean;
|
|
74
|
+
/**
|
|
51
75
|
* * [`enableDebug`](https://www.consul.io/docs/agent/options.html#enable_debug)
|
|
52
76
|
* * [`enableRemoteExec`](https://www.consul.io/docs/agent/options.html#disable_remote_exec)
|
|
53
77
|
* * [`enableSyslog`](https://www.consul.io/docs/agent/options.html#_syslog)
|
|
@@ -97,12 +121,6 @@ export interface GetAgentSelfResult {
|
|
|
97
121
|
* * [`uiDir`](https://www.consul.io/docs/agent/options.html#ui_dir)
|
|
98
122
|
* * [`unixSockets`](https://www.consul.io/docs/agent/options.html#unix_sockets)
|
|
99
123
|
*/
|
|
100
|
-
readonly dns: {
|
|
101
|
-
[key: string]: string;
|
|
102
|
-
};
|
|
103
|
-
readonly dnsRecursors: string[];
|
|
104
|
-
readonly domain: string;
|
|
105
|
-
readonly enableAnonymousSignature: boolean;
|
|
106
124
|
readonly enableCoordinates: boolean;
|
|
107
125
|
readonly enableDebug: boolean;
|
|
108
126
|
readonly enableRemoteExec: boolean;
|
|
@@ -163,8 +181,6 @@ export interface GetAgentSelfResult {
|
|
|
163
181
|
};
|
|
164
182
|
/**
|
|
165
183
|
* The version of the Consul agent.
|
|
166
|
-
* * `versionPrerelease`
|
|
167
|
-
* * `versionRevision`
|
|
168
184
|
*/
|
|
169
185
|
readonly version: string;
|
|
170
186
|
readonly versionPrerelease: string;
|
package/getAgentSelf.js
CHANGED
|
@@ -14,10 +14,7 @@ const utilities = require("./utilities");
|
|
|
14
14
|
* from the agent specified in the `provider`.
|
|
15
15
|
*/
|
|
16
16
|
function getAgentSelf(opts) {
|
|
17
|
-
|
|
18
|
-
opts = {};
|
|
19
|
-
}
|
|
20
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
17
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
21
18
|
return pulumi.runtime.invoke("consul:index/getAgentSelf:getAgentSelf", {}, opts);
|
|
22
19
|
}
|
|
23
20
|
exports.getAgentSelf = getAgentSelf;
|
package/getAgentSelf.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAgentSelf.js","sourceRoot":"","sources":["../getAgentSelf.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;GAOG;AACH,SAAgB,YAAY,CAAC,IAA2B;
|
|
1
|
+
{"version":3,"file":"getAgentSelf.js","sourceRoot":"","sources":["../getAgentSelf.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;GAOG;AACH,SAAgB,YAAY,CAAC,IAA2B;IAEpD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,wCAAwC,EAAE,EACtE,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,oCAKC"}
|