@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/getKeyPrefix.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
import
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
3
4
|
/**
|
|
4
5
|
* ## Example Usage
|
|
5
6
|
*
|
|
@@ -8,22 +9,18 @@ import { input as inputs, output as outputs } from "./types";
|
|
|
8
9
|
* import * as aws from "@pulumi/aws";
|
|
9
10
|
* import * as consul from "@pulumi/consul";
|
|
10
11
|
*
|
|
11
|
-
* const appKeyPrefix =
|
|
12
|
+
* const appKeyPrefix = consul.getKeyPrefix({
|
|
12
13
|
* datacenter: "nyc1",
|
|
13
|
-
* // Prefix to add to prepend to all of the subkey names below.
|
|
14
14
|
* pathPrefix: "myapp/config/",
|
|
15
|
-
* // Read the ami subkey
|
|
16
15
|
* subkeyCollection: [{
|
|
17
|
-
* default: "ami-1234",
|
|
16
|
+
* "default": "ami-1234",
|
|
18
17
|
* name: "ami",
|
|
19
18
|
* path: "app/launch_ami",
|
|
20
19
|
* }],
|
|
21
20
|
* token: "abcd",
|
|
22
|
-
* }));
|
|
23
|
-
* // Start our instance with the dynamic ami value
|
|
24
|
-
* const appInstance = new aws.ec2.Instance("app", {
|
|
25
|
-
* ami: appKeyPrefix.var.ami,
|
|
26
21
|
* });
|
|
22
|
+
* // Start our instance with the dynamic ami value
|
|
23
|
+
* const appInstance = new aws.ec2.Instance("appInstance", {ami: appKeyPrefix.then(appKeyPrefix => appKeyPrefix["var"]?.ami)});
|
|
27
24
|
* ```
|
|
28
25
|
*
|
|
29
26
|
* ```typescript
|
|
@@ -31,16 +28,13 @@ import { input as inputs, output as outputs } from "./types";
|
|
|
31
28
|
* import * as aws from "@pulumi/aws";
|
|
32
29
|
* import * as consul from "@pulumi/consul";
|
|
33
30
|
*
|
|
34
|
-
* const webKeyPrefix =
|
|
31
|
+
* const webKeyPrefix = consul.getKeyPrefix({
|
|
35
32
|
* datacenter: "nyc1",
|
|
36
|
-
* // Prefix to add to prepend to all of the subkey names below.
|
|
37
33
|
* pathPrefix: "myapp/config/",
|
|
38
34
|
* token: "efgh",
|
|
39
|
-
* }));
|
|
40
|
-
* // Start our instance with the dynamic ami value
|
|
41
|
-
* const webInstance = new aws.ec2.Instance("web", {
|
|
42
|
-
* ami: webKeyPrefix.apply(webKeyPrefix => webKeyPrefix.subkeys["app/launch_ami"]),
|
|
43
35
|
* });
|
|
36
|
+
* // Start our instance with the dynamic ami value
|
|
37
|
+
* const webInstance = new aws.ec2.Instance("webInstance", {ami: webKeyPrefix.then(webKeyPrefix => webKeyPrefix.subkeys?.["app/launch_ami"])});
|
|
44
38
|
* ```
|
|
45
39
|
*/
|
|
46
40
|
export declare function getKeyPrefix(args: GetKeyPrefixArgs, opts?: pulumi.InvokeOptions): Promise<GetKeyPrefixResult>;
|
|
@@ -118,6 +112,42 @@ Please use the token argument in the provider configuration
|
|
|
118
112
|
[key: string]: string;
|
|
119
113
|
};
|
|
120
114
|
}
|
|
115
|
+
/**
|
|
116
|
+
* ## Example Usage
|
|
117
|
+
*
|
|
118
|
+
* ```typescript
|
|
119
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
120
|
+
* import * as aws from "@pulumi/aws";
|
|
121
|
+
* import * as consul from "@pulumi/consul";
|
|
122
|
+
*
|
|
123
|
+
* const appKeyPrefix = consul.getKeyPrefix({
|
|
124
|
+
* datacenter: "nyc1",
|
|
125
|
+
* pathPrefix: "myapp/config/",
|
|
126
|
+
* subkeyCollection: [{
|
|
127
|
+
* "default": "ami-1234",
|
|
128
|
+
* name: "ami",
|
|
129
|
+
* path: "app/launch_ami",
|
|
130
|
+
* }],
|
|
131
|
+
* token: "abcd",
|
|
132
|
+
* });
|
|
133
|
+
* // Start our instance with the dynamic ami value
|
|
134
|
+
* const appInstance = new aws.ec2.Instance("appInstance", {ami: appKeyPrefix.then(appKeyPrefix => appKeyPrefix["var"]?.ami)});
|
|
135
|
+
* ```
|
|
136
|
+
*
|
|
137
|
+
* ```typescript
|
|
138
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
139
|
+
* import * as aws from "@pulumi/aws";
|
|
140
|
+
* import * as consul from "@pulumi/consul";
|
|
141
|
+
*
|
|
142
|
+
* const webKeyPrefix = consul.getKeyPrefix({
|
|
143
|
+
* datacenter: "nyc1",
|
|
144
|
+
* pathPrefix: "myapp/config/",
|
|
145
|
+
* token: "efgh",
|
|
146
|
+
* });
|
|
147
|
+
* // Start our instance with the dynamic ami value
|
|
148
|
+
* const webInstance = new aws.ec2.Instance("webInstance", {ami: webKeyPrefix.then(webKeyPrefix => webKeyPrefix.subkeys?.["app/launch_ami"])});
|
|
149
|
+
* ```
|
|
150
|
+
*/
|
|
121
151
|
export declare function getKeyPrefixOutput(args: GetKeyPrefixOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetKeyPrefixResult>;
|
|
122
152
|
/**
|
|
123
153
|
* A collection of arguments for invoking getKeyPrefix.
|
package/getKeyPrefix.js
CHANGED
|
@@ -13,22 +13,18 @@ const utilities = require("./utilities");
|
|
|
13
13
|
* import * as aws from "@pulumi/aws";
|
|
14
14
|
* import * as consul from "@pulumi/consul";
|
|
15
15
|
*
|
|
16
|
-
* const appKeyPrefix =
|
|
16
|
+
* const appKeyPrefix = consul.getKeyPrefix({
|
|
17
17
|
* datacenter: "nyc1",
|
|
18
|
-
* // Prefix to add to prepend to all of the subkey names below.
|
|
19
18
|
* pathPrefix: "myapp/config/",
|
|
20
|
-
* // Read the ami subkey
|
|
21
19
|
* subkeyCollection: [{
|
|
22
|
-
* default: "ami-1234",
|
|
20
|
+
* "default": "ami-1234",
|
|
23
21
|
* name: "ami",
|
|
24
22
|
* path: "app/launch_ami",
|
|
25
23
|
* }],
|
|
26
24
|
* token: "abcd",
|
|
27
|
-
* }));
|
|
28
|
-
* // Start our instance with the dynamic ami value
|
|
29
|
-
* const appInstance = new aws.ec2.Instance("app", {
|
|
30
|
-
* ami: appKeyPrefix.var.ami,
|
|
31
25
|
* });
|
|
26
|
+
* // Start our instance with the dynamic ami value
|
|
27
|
+
* const appInstance = new aws.ec2.Instance("appInstance", {ami: appKeyPrefix.then(appKeyPrefix => appKeyPrefix["var"]?.ami)});
|
|
32
28
|
* ```
|
|
33
29
|
*
|
|
34
30
|
* ```typescript
|
|
@@ -36,23 +32,17 @@ const utilities = require("./utilities");
|
|
|
36
32
|
* import * as aws from "@pulumi/aws";
|
|
37
33
|
* import * as consul from "@pulumi/consul";
|
|
38
34
|
*
|
|
39
|
-
* const webKeyPrefix =
|
|
35
|
+
* const webKeyPrefix = consul.getKeyPrefix({
|
|
40
36
|
* datacenter: "nyc1",
|
|
41
|
-
* // Prefix to add to prepend to all of the subkey names below.
|
|
42
37
|
* pathPrefix: "myapp/config/",
|
|
43
38
|
* token: "efgh",
|
|
44
|
-
* }));
|
|
45
|
-
* // Start our instance with the dynamic ami value
|
|
46
|
-
* const webInstance = new aws.ec2.Instance("web", {
|
|
47
|
-
* ami: webKeyPrefix.apply(webKeyPrefix => webKeyPrefix.subkeys["app/launch_ami"]),
|
|
48
39
|
* });
|
|
40
|
+
* // Start our instance with the dynamic ami value
|
|
41
|
+
* const webInstance = new aws.ec2.Instance("webInstance", {ami: webKeyPrefix.then(webKeyPrefix => webKeyPrefix.subkeys?.["app/launch_ami"])});
|
|
49
42
|
* ```
|
|
50
43
|
*/
|
|
51
44
|
function getKeyPrefix(args, opts) {
|
|
52
|
-
|
|
53
|
-
opts = {};
|
|
54
|
-
}
|
|
55
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
45
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
56
46
|
return pulumi.runtime.invoke("consul:index/getKeyPrefix:getKeyPrefix", {
|
|
57
47
|
"datacenter": args.datacenter,
|
|
58
48
|
"namespace": args.namespace,
|
|
@@ -63,8 +53,44 @@ function getKeyPrefix(args, opts) {
|
|
|
63
53
|
}, opts);
|
|
64
54
|
}
|
|
65
55
|
exports.getKeyPrefix = getKeyPrefix;
|
|
56
|
+
/**
|
|
57
|
+
* ## Example Usage
|
|
58
|
+
*
|
|
59
|
+
* ```typescript
|
|
60
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
61
|
+
* import * as aws from "@pulumi/aws";
|
|
62
|
+
* import * as consul from "@pulumi/consul";
|
|
63
|
+
*
|
|
64
|
+
* const appKeyPrefix = consul.getKeyPrefix({
|
|
65
|
+
* datacenter: "nyc1",
|
|
66
|
+
* pathPrefix: "myapp/config/",
|
|
67
|
+
* subkeyCollection: [{
|
|
68
|
+
* "default": "ami-1234",
|
|
69
|
+
* name: "ami",
|
|
70
|
+
* path: "app/launch_ami",
|
|
71
|
+
* }],
|
|
72
|
+
* token: "abcd",
|
|
73
|
+
* });
|
|
74
|
+
* // Start our instance with the dynamic ami value
|
|
75
|
+
* const appInstance = new aws.ec2.Instance("appInstance", {ami: appKeyPrefix.then(appKeyPrefix => appKeyPrefix["var"]?.ami)});
|
|
76
|
+
* ```
|
|
77
|
+
*
|
|
78
|
+
* ```typescript
|
|
79
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
80
|
+
* import * as aws from "@pulumi/aws";
|
|
81
|
+
* import * as consul from "@pulumi/consul";
|
|
82
|
+
*
|
|
83
|
+
* const webKeyPrefix = consul.getKeyPrefix({
|
|
84
|
+
* datacenter: "nyc1",
|
|
85
|
+
* pathPrefix: "myapp/config/",
|
|
86
|
+
* token: "efgh",
|
|
87
|
+
* });
|
|
88
|
+
* // Start our instance with the dynamic ami value
|
|
89
|
+
* const webInstance = new aws.ec2.Instance("webInstance", {ami: webKeyPrefix.then(webKeyPrefix => webKeyPrefix.subkeys?.["app/launch_ami"])});
|
|
90
|
+
* ```
|
|
91
|
+
*/
|
|
66
92
|
function getKeyPrefixOutput(args, opts) {
|
|
67
|
-
return pulumi.output(args).apply(a => getKeyPrefix(a, opts));
|
|
93
|
+
return pulumi.output(args).apply((a) => getKeyPrefix(a, opts));
|
|
68
94
|
}
|
|
69
95
|
exports.getKeyPrefixOutput = getKeyPrefixOutput;
|
|
70
96
|
//# sourceMappingURL=getKeyPrefix.js.map
|
package/getKeyPrefix.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getKeyPrefix.js","sourceRoot":"","sources":["../getKeyPrefix.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;
|
|
1
|
+
{"version":3,"file":"getKeyPrefix.js","sourceRoot":"","sources":["../getKeyPrefix.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;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,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,kBAAkB,EAAE,IAAI,CAAC,gBAAgB;QACzC,OAAO,EAAE,IAAI,CAAC,KAAK;KACtB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAXD,oCAWC;AAyED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;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/getKeys.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
import
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
3
4
|
/**
|
|
4
5
|
* The `consul.Keys` resource reads values from the Consul key/value store.
|
|
5
6
|
* This is a powerful way dynamically set values in templates.
|
|
@@ -11,20 +12,17 @@ import { input as inputs, output as outputs } from "./types";
|
|
|
11
12
|
* import * as aws from "@pulumi/aws";
|
|
12
13
|
* import * as consul from "@pulumi/consul";
|
|
13
14
|
*
|
|
14
|
-
* const appKeys =
|
|
15
|
+
* const appKeys = consul.getKeys({
|
|
15
16
|
* datacenter: "nyc1",
|
|
16
|
-
* // Read the launch AMI from Consul
|
|
17
17
|
* keys: [{
|
|
18
|
-
* default: "ami-1234",
|
|
18
|
+
* "default": "ami-1234",
|
|
19
19
|
* name: "ami",
|
|
20
20
|
* path: "service/app/launch_ami",
|
|
21
21
|
* }],
|
|
22
22
|
* token: "abcd",
|
|
23
|
-
* }));
|
|
24
|
-
* // Start our instance with the dynamic ami value
|
|
25
|
-
* const appInstance = new aws.ec2.Instance("app", {
|
|
26
|
-
* ami: appKeys.var.ami,
|
|
27
23
|
* });
|
|
24
|
+
* // Start our instance with the dynamic ami value
|
|
25
|
+
* const appInstance = new aws.ec2.Instance("appInstance", {ami: appKeys.then(appKeys => appKeys["var"]?.ami)});
|
|
28
26
|
* ```
|
|
29
27
|
*/
|
|
30
28
|
export declare function getKeys(args?: GetKeysArgs, opts?: pulumi.InvokeOptions): Promise<GetKeysResult>;
|
|
@@ -85,6 +83,30 @@ Please use the token argument in the provider configuration
|
|
|
85
83
|
[key: string]: string;
|
|
86
84
|
};
|
|
87
85
|
}
|
|
86
|
+
/**
|
|
87
|
+
* The `consul.Keys` resource reads values from the Consul key/value store.
|
|
88
|
+
* This is a powerful way dynamically set values in templates.
|
|
89
|
+
*
|
|
90
|
+
* ## Example Usage
|
|
91
|
+
*
|
|
92
|
+
* ```typescript
|
|
93
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
94
|
+
* import * as aws from "@pulumi/aws";
|
|
95
|
+
* import * as consul from "@pulumi/consul";
|
|
96
|
+
*
|
|
97
|
+
* const appKeys = consul.getKeys({
|
|
98
|
+
* datacenter: "nyc1",
|
|
99
|
+
* keys: [{
|
|
100
|
+
* "default": "ami-1234",
|
|
101
|
+
* name: "ami",
|
|
102
|
+
* path: "service/app/launch_ami",
|
|
103
|
+
* }],
|
|
104
|
+
* token: "abcd",
|
|
105
|
+
* });
|
|
106
|
+
* // Start our instance with the dynamic ami value
|
|
107
|
+
* const appInstance = new aws.ec2.Instance("appInstance", {ami: appKeys.then(appKeys => appKeys["var"]?.ami)});
|
|
108
|
+
* ```
|
|
109
|
+
*/
|
|
88
110
|
export declare function getKeysOutput(args?: GetKeysOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetKeysResult>;
|
|
89
111
|
/**
|
|
90
112
|
* A collection of arguments for invoking getKeys.
|
package/getKeys.js
CHANGED
|
@@ -16,28 +16,22 @@ const utilities = require("./utilities");
|
|
|
16
16
|
* import * as aws from "@pulumi/aws";
|
|
17
17
|
* import * as consul from "@pulumi/consul";
|
|
18
18
|
*
|
|
19
|
-
* const appKeys =
|
|
19
|
+
* const appKeys = consul.getKeys({
|
|
20
20
|
* datacenter: "nyc1",
|
|
21
|
-
* // Read the launch AMI from Consul
|
|
22
21
|
* keys: [{
|
|
23
|
-
* default: "ami-1234",
|
|
22
|
+
* "default": "ami-1234",
|
|
24
23
|
* name: "ami",
|
|
25
24
|
* path: "service/app/launch_ami",
|
|
26
25
|
* }],
|
|
27
26
|
* token: "abcd",
|
|
28
|
-
* }));
|
|
29
|
-
* // Start our instance with the dynamic ami value
|
|
30
|
-
* const appInstance = new aws.ec2.Instance("app", {
|
|
31
|
-
* ami: appKeys.var.ami,
|
|
32
27
|
* });
|
|
28
|
+
* // Start our instance with the dynamic ami value
|
|
29
|
+
* const appInstance = new aws.ec2.Instance("appInstance", {ami: appKeys.then(appKeys => appKeys["var"]?.ami)});
|
|
33
30
|
* ```
|
|
34
31
|
*/
|
|
35
32
|
function getKeys(args, opts) {
|
|
36
33
|
args = args || {};
|
|
37
|
-
|
|
38
|
-
opts = {};
|
|
39
|
-
}
|
|
40
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
34
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
41
35
|
return pulumi.runtime.invoke("consul:index/getKeys:getKeys", {
|
|
42
36
|
"datacenter": args.datacenter,
|
|
43
37
|
"keys": args.keys,
|
|
@@ -47,8 +41,32 @@ function getKeys(args, opts) {
|
|
|
47
41
|
}, opts);
|
|
48
42
|
}
|
|
49
43
|
exports.getKeys = getKeys;
|
|
44
|
+
/**
|
|
45
|
+
* The `consul.Keys` resource reads values from the Consul key/value store.
|
|
46
|
+
* This is a powerful way dynamically set values in templates.
|
|
47
|
+
*
|
|
48
|
+
* ## Example Usage
|
|
49
|
+
*
|
|
50
|
+
* ```typescript
|
|
51
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
52
|
+
* import * as aws from "@pulumi/aws";
|
|
53
|
+
* import * as consul from "@pulumi/consul";
|
|
54
|
+
*
|
|
55
|
+
* const appKeys = consul.getKeys({
|
|
56
|
+
* datacenter: "nyc1",
|
|
57
|
+
* keys: [{
|
|
58
|
+
* "default": "ami-1234",
|
|
59
|
+
* name: "ami",
|
|
60
|
+
* path: "service/app/launch_ami",
|
|
61
|
+
* }],
|
|
62
|
+
* token: "abcd",
|
|
63
|
+
* });
|
|
64
|
+
* // Start our instance with the dynamic ami value
|
|
65
|
+
* const appInstance = new aws.ec2.Instance("appInstance", {ami: appKeys.then(appKeys => appKeys["var"]?.ami)});
|
|
66
|
+
* ```
|
|
67
|
+
*/
|
|
50
68
|
function getKeysOutput(args, opts) {
|
|
51
|
-
return pulumi.output(args).apply(a => getKeys(a, opts));
|
|
69
|
+
return pulumi.output(args).apply((a) => getKeys(a, opts));
|
|
52
70
|
}
|
|
53
71
|
exports.getKeysOutput = getKeysOutput;
|
|
54
72
|
//# sourceMappingURL=getKeys.js.map
|
package/getKeys.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getKeys.js","sourceRoot":"","sources":["../getKeys.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;
|
|
1
|
+
{"version":3,"file":"getKeys.js","sourceRoot":"","sources":["../getKeys.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,SAAgB,OAAO,CAAC,IAAkB,EAAE,IAA2B;IACnE,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,8BAA8B,EAAE;QACzD,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,OAAO,EAAE,IAAI,CAAC,KAAK;KACtB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAXD,0BAWC;AA0DD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,SAAgB,aAAa,CAAC,IAAwB,EAAE,IAA2B;IAC/E,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAClE,CAAC;AAFD,sCAEC"}
|
|
@@ -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
|
* > **NOTE:** This feature requires [Consul Enterprise](https://www.consul.io/docs/enterprise/index.html).
|
|
5
5
|
*
|
|
@@ -72,6 +72,29 @@ Please use the token argument in the provider configuration
|
|
|
72
72
|
*/
|
|
73
73
|
readonly uuid: string;
|
|
74
74
|
}
|
|
75
|
+
/**
|
|
76
|
+
* > **NOTE:** This feature requires [Consul Enterprise](https://www.consul.io/docs/enterprise/index.html).
|
|
77
|
+
*
|
|
78
|
+
* The `consul.getNetworkAreaMembers` data source provides a list of the Consul
|
|
79
|
+
* servers present in a specific network area.
|
|
80
|
+
*
|
|
81
|
+
* ## Example Usage
|
|
82
|
+
*
|
|
83
|
+
* ```typescript
|
|
84
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
85
|
+
* import * as consul from "@pulumi/consul";
|
|
86
|
+
*
|
|
87
|
+
* const dc2NetworkArea = new consul.NetworkArea("dc2NetworkArea", {
|
|
88
|
+
* peerDatacenter: "dc2",
|
|
89
|
+
* retryJoins: ["1.2.3.4"],
|
|
90
|
+
* useTls: true,
|
|
91
|
+
* });
|
|
92
|
+
* const dc2NetworkAreaMembers = consul.getNetworkAreaMembersOutput({
|
|
93
|
+
* uuid: dc2NetworkArea.id,
|
|
94
|
+
* });
|
|
95
|
+
* export const members = dc2NetworkAreaMembers.apply(dc2NetworkAreaMembers => dc2NetworkAreaMembers.members);
|
|
96
|
+
* ```
|
|
97
|
+
*/
|
|
75
98
|
export declare function getNetworkAreaMembersOutput(args: GetNetworkAreaMembersOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetNetworkAreaMembersResult>;
|
|
76
99
|
/**
|
|
77
100
|
* A collection of arguments for invoking getNetworkAreaMembers.
|
package/getNetworkAreaMembers.js
CHANGED
|
@@ -29,10 +29,7 @@ const utilities = require("./utilities");
|
|
|
29
29
|
* ```
|
|
30
30
|
*/
|
|
31
31
|
function getNetworkAreaMembers(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/getNetworkAreaMembers:getNetworkAreaMembers", {
|
|
37
34
|
"datacenter": args.datacenter,
|
|
38
35
|
"token": args.token,
|
|
@@ -40,8 +37,31 @@ function getNetworkAreaMembers(args, opts) {
|
|
|
40
37
|
}, opts);
|
|
41
38
|
}
|
|
42
39
|
exports.getNetworkAreaMembers = getNetworkAreaMembers;
|
|
40
|
+
/**
|
|
41
|
+
* > **NOTE:** This feature requires [Consul Enterprise](https://www.consul.io/docs/enterprise/index.html).
|
|
42
|
+
*
|
|
43
|
+
* The `consul.getNetworkAreaMembers` data source provides a list of the Consul
|
|
44
|
+
* servers present in a specific network area.
|
|
45
|
+
*
|
|
46
|
+
* ## Example Usage
|
|
47
|
+
*
|
|
48
|
+
* ```typescript
|
|
49
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
50
|
+
* import * as consul from "@pulumi/consul";
|
|
51
|
+
*
|
|
52
|
+
* const dc2NetworkArea = new consul.NetworkArea("dc2NetworkArea", {
|
|
53
|
+
* peerDatacenter: "dc2",
|
|
54
|
+
* retryJoins: ["1.2.3.4"],
|
|
55
|
+
* useTls: true,
|
|
56
|
+
* });
|
|
57
|
+
* const dc2NetworkAreaMembers = consul.getNetworkAreaMembersOutput({
|
|
58
|
+
* uuid: dc2NetworkArea.id,
|
|
59
|
+
* });
|
|
60
|
+
* export const members = dc2NetworkAreaMembers.apply(dc2NetworkAreaMembers => dc2NetworkAreaMembers.members);
|
|
61
|
+
* ```
|
|
62
|
+
*/
|
|
43
63
|
function getNetworkAreaMembersOutput(args, opts) {
|
|
44
|
-
return pulumi.output(args).apply(a => getNetworkAreaMembers(a, opts));
|
|
64
|
+
return pulumi.output(args).apply((a) => getNetworkAreaMembers(a, opts));
|
|
45
65
|
}
|
|
46
66
|
exports.getNetworkAreaMembersOutput = getNetworkAreaMembersOutput;
|
|
47
67
|
//# sourceMappingURL=getNetworkAreaMembers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getNetworkAreaMembers.js","sourceRoot":"","sources":["../getNetworkAreaMembers.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;
|
|
1
|
+
{"version":3,"file":"getNetworkAreaMembers.js","sourceRoot":"","sources":["../getNetworkAreaMembers.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,SAAgB,qBAAqB,CAAC,IAA+B,EAAE,IAA2B;IAE9F,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,0DAA0D,EAAE;QACrF,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,sDAQC;AAmDD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,SAAgB,2BAA2B,CAAC,IAAqC,EAAE,IAA2B;IAC1G,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,qBAAqB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAChF,CAAC;AAFD,kEAEC"}
|
package/getNetworkSegments.d.ts
CHANGED
|
@@ -56,6 +56,22 @@ Please use the token argument in the provider configuration
|
|
|
56
56
|
*/
|
|
57
57
|
readonly token?: string;
|
|
58
58
|
}
|
|
59
|
+
/**
|
|
60
|
+
* > **NOTE:** This feature requires [Consul Enterprise](https://www.consul.io/docs/enterprise/index.html).
|
|
61
|
+
*
|
|
62
|
+
* The `consulNetworkSegment` data source can be used to retrieve the network
|
|
63
|
+
* segments defined in the configuration.
|
|
64
|
+
*
|
|
65
|
+
* ## Example Usage
|
|
66
|
+
*
|
|
67
|
+
* ```typescript
|
|
68
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
69
|
+
* import * as consul from "@pulumi/consul";
|
|
70
|
+
*
|
|
71
|
+
* const segmentsNetworkSegments = consul.getNetworkSegments({});
|
|
72
|
+
* export const segments = segmentsNetworkSegments.then(segmentsNetworkSegments => segmentsNetworkSegments.segments);
|
|
73
|
+
* ```
|
|
74
|
+
*/
|
|
59
75
|
export declare function getNetworkSegmentsOutput(args?: GetNetworkSegmentsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetNetworkSegmentsResult>;
|
|
60
76
|
/**
|
|
61
77
|
* A collection of arguments for invoking getNetworkSegments.
|
package/getNetworkSegments.js
CHANGED
|
@@ -23,18 +23,31 @@ const utilities = require("./utilities");
|
|
|
23
23
|
*/
|
|
24
24
|
function getNetworkSegments(args, opts) {
|
|
25
25
|
args = args || {};
|
|
26
|
-
|
|
27
|
-
opts = {};
|
|
28
|
-
}
|
|
29
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
26
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
30
27
|
return pulumi.runtime.invoke("consul:index/getNetworkSegments:getNetworkSegments", {
|
|
31
28
|
"datacenter": args.datacenter,
|
|
32
29
|
"token": args.token,
|
|
33
30
|
}, opts);
|
|
34
31
|
}
|
|
35
32
|
exports.getNetworkSegments = getNetworkSegments;
|
|
33
|
+
/**
|
|
34
|
+
* > **NOTE:** This feature requires [Consul Enterprise](https://www.consul.io/docs/enterprise/index.html).
|
|
35
|
+
*
|
|
36
|
+
* The `consulNetworkSegment` data source can be used to retrieve the network
|
|
37
|
+
* segments defined in the configuration.
|
|
38
|
+
*
|
|
39
|
+
* ## Example Usage
|
|
40
|
+
*
|
|
41
|
+
* ```typescript
|
|
42
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
43
|
+
* import * as consul from "@pulumi/consul";
|
|
44
|
+
*
|
|
45
|
+
* const segmentsNetworkSegments = consul.getNetworkSegments({});
|
|
46
|
+
* export const segments = segmentsNetworkSegments.then(segmentsNetworkSegments => segmentsNetworkSegments.segments);
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
36
49
|
function getNetworkSegmentsOutput(args, opts) {
|
|
37
|
-
return pulumi.output(args).apply(a => getNetworkSegments(a, opts));
|
|
50
|
+
return pulumi.output(args).apply((a) => getNetworkSegments(a, opts));
|
|
38
51
|
}
|
|
39
52
|
exports.getNetworkSegmentsOutput = getNetworkSegmentsOutput;
|
|
40
53
|
//# sourceMappingURL=getNetworkSegments.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getNetworkSegments.js","sourceRoot":"","sources":["../getNetworkSegments.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,kBAAkB,CAAC,IAA6B,EAAE,IAA2B;IACzF,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"getNetworkSegments.js","sourceRoot":"","sources":["../getNetworkSegments.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,kBAAkB,CAAC,IAA6B,EAAE,IAA2B;IACzF,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,oDAAoD,EAAE;QAC/E,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,OAAO,EAAE,IAAI,CAAC,KAAK;KACtB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,gDAQC;AA2CD;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,wBAAwB,CAAC,IAAmC,EAAE,IAA2B;IACrG,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,kBAAkB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC7E,CAAC;AAFD,4DAEC"}
|
package/getNodes.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
import
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
3
4
|
/**
|
|
4
5
|
* The `consul.getNodes` data source returns a list of Consul nodes that have
|
|
5
6
|
* been registered with the Consul cluster in a given datacenter. By specifying a
|
|
@@ -43,6 +44,12 @@ export interface GetNodesResult {
|
|
|
43
44
|
readonly nodes: outputs.GetNodesNode[];
|
|
44
45
|
readonly queryOptions?: outputs.GetNodesQueryOption[];
|
|
45
46
|
}
|
|
47
|
+
/**
|
|
48
|
+
* The `consul.getNodes` data source returns a list of Consul nodes that have
|
|
49
|
+
* been registered with the Consul cluster in a given datacenter. By specifying a
|
|
50
|
+
* different datacenter in the `queryOptions` it is possible to retrieve a list of
|
|
51
|
+
* nodes from a different WAN-attached Consul datacenter.
|
|
52
|
+
*/
|
|
46
53
|
export declare function getNodesOutput(args?: GetNodesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetNodesResult>;
|
|
47
54
|
/**
|
|
48
55
|
* A collection of arguments for invoking getNodes.
|
package/getNodes.js
CHANGED
|
@@ -13,17 +13,20 @@ const utilities = require("./utilities");
|
|
|
13
13
|
*/
|
|
14
14
|
function getNodes(args, opts) {
|
|
15
15
|
args = args || {};
|
|
16
|
-
|
|
17
|
-
opts = {};
|
|
18
|
-
}
|
|
19
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
16
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
20
17
|
return pulumi.runtime.invoke("consul:index/getNodes:getNodes", {
|
|
21
18
|
"queryOptions": args.queryOptions,
|
|
22
19
|
}, opts);
|
|
23
20
|
}
|
|
24
21
|
exports.getNodes = getNodes;
|
|
22
|
+
/**
|
|
23
|
+
* The `consul.getNodes` data source returns a list of Consul nodes that have
|
|
24
|
+
* been registered with the Consul cluster in a given datacenter. By specifying a
|
|
25
|
+
* different datacenter in the `queryOptions` it is possible to retrieve a list of
|
|
26
|
+
* nodes from a different WAN-attached Consul datacenter.
|
|
27
|
+
*/
|
|
25
28
|
function getNodesOutput(args, opts) {
|
|
26
|
-
return pulumi.output(args).apply(a => getNodes(a, opts));
|
|
29
|
+
return pulumi.output(args).apply((a) => getNodes(a, opts));
|
|
27
30
|
}
|
|
28
31
|
exports.getNodesOutput = getNodesOutput;
|
|
29
32
|
//# sourceMappingURL=getNodes.js.map
|
package/getNodes.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getNodes.js","sourceRoot":"","sources":["../getNodes.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;
|
|
1
|
+
{"version":3,"file":"getNodes.js","sourceRoot":"","sources":["../getNodes.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;GAKG;AACH,SAAgB,QAAQ,CAAC,IAAmB,EAAE,IAA2B;IACrE,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,gCAAgC,EAAE;QAC3D,cAAc,EAAE,IAAI,CAAC,YAAY;KACpC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,4BAOC;AAuCD;;;;;GAKG;AACH,SAAgB,cAAc,CAAC,IAAyB,EAAE,IAA2B;IACjF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACnE,CAAC;AAFD,wCAEC"}
|
package/getPeering.d.ts
CHANGED
|
@@ -6,9 +6,9 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
6
6
|
* import * as pulumi from "@pulumi/pulumi";
|
|
7
7
|
* import * as consul from "@pulumi/consul";
|
|
8
8
|
*
|
|
9
|
-
* const basic =
|
|
9
|
+
* const basic = consul.getPeering({
|
|
10
10
|
* peerName: "peered-cluster",
|
|
11
|
-
* })
|
|
11
|
+
* });
|
|
12
12
|
* ```
|
|
13
13
|
*/
|
|
14
14
|
export declare function getPeering(args: GetPeeringArgs, opts?: pulumi.InvokeOptions): Promise<GetPeeringResult>;
|
|
@@ -39,6 +39,18 @@ export interface GetPeeringResult {
|
|
|
39
39
|
readonly peerServerName: string;
|
|
40
40
|
readonly state: string;
|
|
41
41
|
}
|
|
42
|
+
/**
|
|
43
|
+
* ## Example Usage
|
|
44
|
+
*
|
|
45
|
+
* ```typescript
|
|
46
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
47
|
+
* import * as consul from "@pulumi/consul";
|
|
48
|
+
*
|
|
49
|
+
* const basic = consul.getPeering({
|
|
50
|
+
* peerName: "peered-cluster",
|
|
51
|
+
* });
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
42
54
|
export declare function getPeeringOutput(args: GetPeeringOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetPeeringResult>;
|
|
43
55
|
/**
|
|
44
56
|
* A collection of arguments for invoking getPeering.
|
package/getPeering.js
CHANGED
|
@@ -12,24 +12,33 @@ const utilities = require("./utilities");
|
|
|
12
12
|
* import * as pulumi from "@pulumi/pulumi";
|
|
13
13
|
* import * as consul from "@pulumi/consul";
|
|
14
14
|
*
|
|
15
|
-
* const basic =
|
|
15
|
+
* const basic = consul.getPeering({
|
|
16
16
|
* peerName: "peered-cluster",
|
|
17
|
-
* })
|
|
17
|
+
* });
|
|
18
18
|
* ```
|
|
19
19
|
*/
|
|
20
20
|
function getPeering(args, opts) {
|
|
21
|
-
|
|
22
|
-
opts = {};
|
|
23
|
-
}
|
|
24
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
21
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
25
22
|
return pulumi.runtime.invoke("consul:index/getPeering:getPeering", {
|
|
26
23
|
"partition": args.partition,
|
|
27
24
|
"peerName": args.peerName,
|
|
28
25
|
}, opts);
|
|
29
26
|
}
|
|
30
27
|
exports.getPeering = getPeering;
|
|
28
|
+
/**
|
|
29
|
+
* ## Example Usage
|
|
30
|
+
*
|
|
31
|
+
* ```typescript
|
|
32
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
33
|
+
* import * as consul from "@pulumi/consul";
|
|
34
|
+
*
|
|
35
|
+
* const basic = consul.getPeering({
|
|
36
|
+
* peerName: "peered-cluster",
|
|
37
|
+
* });
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
31
40
|
function getPeeringOutput(args, opts) {
|
|
32
|
-
return pulumi.output(args).apply(a => getPeering(a, opts));
|
|
41
|
+
return pulumi.output(args).apply((a) => getPeering(a, opts));
|
|
33
42
|
}
|
|
34
43
|
exports.getPeeringOutput = getPeeringOutput;
|
|
35
44
|
//# sourceMappingURL=getPeering.js.map
|
package/getPeering.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getPeering.js","sourceRoot":"","sources":["../getPeering.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;GAWG;AACH,SAAgB,UAAU,CAAC,IAAoB,EAAE,IAA2B;
|
|
1
|
+
{"version":3,"file":"getPeering.js","sourceRoot":"","sources":["../getPeering.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;GAWG;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,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,UAAU,EAAE,IAAI,CAAC,QAAQ;KAC5B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,gCAOC;AA4BD;;;;;;;;;;;GAWG;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"}
|