@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.
Files changed (137) hide show
  1. package/aclAuthMethod.d.ts +2 -1
  2. package/aclAuthMethod.js.map +1 -1
  3. package/aclBindingRule.d.ts +1 -0
  4. package/aclBindingRule.js +1 -0
  5. package/aclBindingRule.js.map +1 -1
  6. package/aclPolicy.d.ts +1 -0
  7. package/aclPolicy.js +1 -0
  8. package/aclPolicy.js.map +1 -1
  9. package/aclRole.d.ts +2 -1
  10. package/aclRole.js.map +1 -1
  11. package/aclToken.d.ts +5 -5
  12. package/aclToken.js +3 -4
  13. package/aclToken.js.map +1 -1
  14. package/adminPartition.d.ts +1 -3
  15. package/adminPartition.js +1 -3
  16. package/adminPartition.js.map +1 -1
  17. package/catalogEntry.d.ts +2 -1
  18. package/catalogEntry.js +3 -1
  19. package/catalogEntry.js.map +1 -1
  20. package/certificateAuthority.d.ts +24 -55
  21. package/certificateAuthority.js +3 -53
  22. package/certificateAuthority.js.map +1 -1
  23. package/config/vars.d.ts +50 -2
  24. package/config/vars.js +6 -0
  25. package/config/vars.js.map +1 -1
  26. package/configEntry.d.ts +45 -2
  27. package/configEntry.js +45 -2
  28. package/configEntry.js.map +1 -1
  29. package/getAclAuthMethod.d.ts +17 -1
  30. package/getAclAuthMethod.js +18 -5
  31. package/getAclAuthMethod.js.map +1 -1
  32. package/getAclPolicy.d.ts +16 -0
  33. package/getAclPolicy.js +18 -5
  34. package/getAclPolicy.js.map +1 -1
  35. package/getAclRole.d.ts +17 -1
  36. package/getAclRole.js +18 -5
  37. package/getAclRole.js.map +1 -1
  38. package/getAclToken.d.ts +23 -5
  39. package/getAclToken.js +24 -9
  40. package/getAclToken.js.map +1 -1
  41. package/getAclTokenSecretId.d.ts +23 -0
  42. package/getAclTokenSecretId.js +25 -5
  43. package/getAclTokenSecretId.js.map +1 -1
  44. package/getAgentConfig.d.ts +2 -3
  45. package/getAgentConfig.js +3 -7
  46. package/getAgentConfig.js.map +1 -1
  47. package/getAgentSelf.d.ts +25 -9
  48. package/getAgentSelf.js +1 -4
  49. package/getAgentSelf.js.map +1 -1
  50. package/getAutopilotHealth.d.ts +18 -4
  51. package/getAutopilotHealth.js +19 -8
  52. package/getAutopilotHealth.js.map +1 -1
  53. package/getCatalogNodes.d.ts +35 -1
  54. package/getCatalogNodes.js +17 -5
  55. package/getCatalogNodes.js.map +1 -1
  56. package/getCatalogService.d.ts +78 -1
  57. package/getCatalogService.js +25 -5
  58. package/getCatalogService.js.map +1 -1
  59. package/getCatalogServices.d.ts +37 -1
  60. package/getCatalogServices.js +23 -5
  61. package/getCatalogServices.js.map +1 -1
  62. package/getConfigEntry.d.ts +39 -0
  63. package/getConfigEntry.js +2 -5
  64. package/getConfigEntry.js.map +1 -1
  65. package/getDatacenters.js +1 -4
  66. package/getDatacenters.js.map +1 -1
  67. package/getKeyPrefix.d.ts +45 -15
  68. package/getKeyPrefix.js +45 -19
  69. package/getKeyPrefix.js.map +1 -1
  70. package/getKeys.d.ts +30 -8
  71. package/getKeys.js +30 -12
  72. package/getKeys.js.map +1 -1
  73. package/getNetworkAreaMembers.d.ts +24 -1
  74. package/getNetworkAreaMembers.js +25 -5
  75. package/getNetworkAreaMembers.js.map +1 -1
  76. package/getNetworkSegments.d.ts +16 -0
  77. package/getNetworkSegments.js +18 -5
  78. package/getNetworkSegments.js.map +1 -1
  79. package/getNodes.d.ts +8 -1
  80. package/getNodes.js +8 -5
  81. package/getNodes.js.map +1 -1
  82. package/getPeering.d.ts +14 -2
  83. package/getPeering.js +16 -7
  84. package/getPeering.js.map +1 -1
  85. package/getPeerings.d.ts +12 -2
  86. package/getPeerings.js +13 -6
  87. package/getPeerings.js.map +1 -1
  88. package/getService.d.ts +12 -1
  89. package/getService.js +12 -5
  90. package/getService.js.map +1 -1
  91. package/getServiceHealth.d.ts +10 -14
  92. package/getServiceHealth.js +11 -18
  93. package/getServiceHealth.js.map +1 -1
  94. package/getServices.d.ts +11 -1
  95. package/getServices.js +11 -5
  96. package/getServices.js.map +1 -1
  97. package/index.d.ts +147 -50
  98. package/index.js +149 -121
  99. package/index.js.map +1 -1
  100. package/intention.d.ts +3 -3
  101. package/intention.js +3 -3
  102. package/keyPrefix.d.ts +10 -10
  103. package/keyPrefix.js +11 -10
  104. package/keyPrefix.js.map +1 -1
  105. package/keys.d.ts +3 -3
  106. package/keys.js +4 -3
  107. package/keys.js.map +1 -1
  108. package/license.d.ts +1 -1
  109. package/license.js +4 -2
  110. package/license.js.map +1 -1
  111. package/networkArea.js +3 -1
  112. package/networkArea.js.map +1 -1
  113. package/node.d.ts +1 -3
  114. package/node.js +4 -4
  115. package/node.js.map +1 -1
  116. package/package.json +4 -3
  117. package/package.json.bak +2 -1
  118. package/peering.d.ts +6 -12
  119. package/peering.js +3 -1
  120. package/peering.js.map +1 -1
  121. package/peeringToken.d.ts +7 -15
  122. package/peeringToken.js +3 -3
  123. package/peeringToken.js.map +1 -1
  124. package/preparedQuery.d.ts +47 -132
  125. package/preparedQuery.js +3 -3
  126. package/preparedQuery.js.map +1 -1
  127. package/provider.d.ts +89 -2
  128. package/provider.js +6 -3
  129. package/provider.js.map +1 -1
  130. package/service.d.ts +11 -67
  131. package/service.js +0 -63
  132. package/service.js.map +1 -1
  133. package/types/index.js.map +1 -1
  134. package/types/input.d.ts +294 -100
  135. package/types/output.d.ts +156 -7
  136. package/utilities.js +13 -1
  137. package/utilities.js.map +1 -1
@@ -1,5 +1,5 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
- import { output as outputs } from "./types";
2
+ import * as outputs from "./types/output";
3
3
  /**
4
4
  * The `consul.getAutopilotHealth` data source returns
5
5
  * [autopilot health information](https://www.consul.io/api/operator/autopilot.html#read-health)
@@ -11,9 +11,8 @@ import { output as outputs } from "./types";
11
11
  * import * as pulumi from "@pulumi/pulumi";
12
12
  * import * as consul from "@pulumi/consul";
13
13
  *
14
- * const read = pulumi.output(consul.getAutopilotHealth());
15
- *
16
- * export const health = read.healthy;
14
+ * const read = consul.getAutopilotHealth({});
15
+ * export const health = read.then(read => read.healthy);
17
16
  * ```
18
17
  */
19
18
  export declare function getAutopilotHealth(args?: GetAutopilotHealthArgs, opts?: pulumi.InvokeOptions): Promise<GetAutopilotHealthResult>;
@@ -52,6 +51,21 @@ export interface GetAutopilotHealthResult {
52
51
  */
53
52
  readonly servers: outputs.GetAutopilotHealthServer[];
54
53
  }
54
+ /**
55
+ * The `consul.getAutopilotHealth` data source returns
56
+ * [autopilot health information](https://www.consul.io/api/operator/autopilot.html#read-health)
57
+ * about the current Consul cluster.
58
+ *
59
+ * ## Example Usage
60
+ *
61
+ * ```typescript
62
+ * import * as pulumi from "@pulumi/pulumi";
63
+ * import * as consul from "@pulumi/consul";
64
+ *
65
+ * const read = consul.getAutopilotHealth({});
66
+ * export const health = read.then(read => read.healthy);
67
+ * ```
68
+ */
55
69
  export declare function getAutopilotHealthOutput(args?: GetAutopilotHealthOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetAutopilotHealthResult>;
56
70
  /**
57
71
  * A collection of arguments for invoking getAutopilotHealth.
@@ -16,24 +16,35 @@ const utilities = require("./utilities");
16
16
  * import * as pulumi from "@pulumi/pulumi";
17
17
  * import * as consul from "@pulumi/consul";
18
18
  *
19
- * const read = pulumi.output(consul.getAutopilotHealth());
20
- *
21
- * export const health = read.healthy;
19
+ * const read = consul.getAutopilotHealth({});
20
+ * export const health = read.then(read => read.healthy);
22
21
  * ```
23
22
  */
24
23
  function getAutopilotHealth(args, opts) {
25
24
  args = args || {};
26
- if (!opts) {
27
- opts = {};
28
- }
29
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
25
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
30
26
  return pulumi.runtime.invoke("consul:index/getAutopilotHealth:getAutopilotHealth", {
31
27
  "datacenter": args.datacenter,
32
28
  }, opts);
33
29
  }
34
30
  exports.getAutopilotHealth = getAutopilotHealth;
31
+ /**
32
+ * The `consul.getAutopilotHealth` data source returns
33
+ * [autopilot health information](https://www.consul.io/api/operator/autopilot.html#read-health)
34
+ * about the current Consul cluster.
35
+ *
36
+ * ## Example Usage
37
+ *
38
+ * ```typescript
39
+ * import * as pulumi from "@pulumi/pulumi";
40
+ * import * as consul from "@pulumi/consul";
41
+ *
42
+ * const read = consul.getAutopilotHealth({});
43
+ * export const health = read.then(read => read.healthy);
44
+ * ```
45
+ */
35
46
  function getAutopilotHealthOutput(args, opts) {
36
- return pulumi.output(args).apply(a => getAutopilotHealth(a, opts));
47
+ return pulumi.output(args).apply((a) => getAutopilotHealth(a, opts));
37
48
  }
38
49
  exports.getAutopilotHealthOutput = getAutopilotHealthOutput;
39
50
  //# sourceMappingURL=getAutopilotHealth.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getAutopilotHealth.js","sourceRoot":"","sources":["../getAutopilotHealth.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,kBAAkB,CAAC,IAA6B,EAAE,IAA2B;IACzF,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,oDAAoD,EAAE;QAC/E,YAAY,EAAE,IAAI,CAAC,UAAU;KAChC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAVD,gDAUC;AAuCD,SAAgB,wBAAwB,CAAC,IAAmC,EAAE,IAA2B;IACrG,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,kBAAkB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACtE,CAAC;AAFD,4DAEC"}
1
+ {"version":3,"file":"getAutopilotHealth.js","sourceRoot":"","sources":["../getAutopilotHealth.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;GAcG;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;KAChC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,gDAOC;AAsCD;;;;;;;;;;;;;;GAcG;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"}
@@ -1,30 +1,64 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
- import { input as inputs, output as outputs } from "./types";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
4
+ /**
5
+ * The `consul.getNodes` data source returns a list of Consul nodes that have
6
+ * been registered with the Consul cluster in a given datacenter. By specifying a
7
+ * different datacenter in the `queryOptions` it is possible to retrieve a list of
8
+ * nodes from a different WAN-attached Consul datacenter.
9
+ */
10
+ /** @deprecated getCatalogNodes has been deprecated in favor of getNodes */
3
11
  export declare function getCatalogNodes(args?: GetCatalogNodesArgs, opts?: pulumi.InvokeOptions): Promise<GetCatalogNodesResult>;
4
12
  /**
5
13
  * A collection of arguments for invoking getCatalogNodes.
6
14
  */
7
15
  export interface GetCatalogNodesArgs {
16
+ /**
17
+ * See below.
18
+ */
8
19
  queryOptions?: inputs.GetCatalogNodesQueryOption[];
9
20
  }
10
21
  /**
11
22
  * A collection of values returned by getCatalogNodes.
12
23
  */
13
24
  export interface GetCatalogNodesResult {
25
+ /**
26
+ * The datacenter the keys are being read from to.
27
+ */
14
28
  readonly datacenter: string;
15
29
  /**
16
30
  * The provider-assigned unique ID for this managed resource.
17
31
  */
18
32
  readonly id: string;
33
+ /**
34
+ * A list of the Consul node IDs.
35
+ */
19
36
  readonly nodeIds: string[];
37
+ /**
38
+ * A list of the Consul node names.
39
+ */
20
40
  readonly nodeNames: string[];
41
+ /**
42
+ * A list of nodes and details about each Consul agent. The list of
43
+ * per-node attributes is detailed below.
44
+ */
21
45
  readonly nodes: outputs.GetCatalogNodesNode[];
22
46
  readonly queryOptions?: outputs.GetCatalogNodesQueryOption[];
23
47
  }
48
+ /**
49
+ * The `consul.getNodes` data source returns a list of Consul nodes that have
50
+ * been registered with the Consul cluster in a given datacenter. By specifying a
51
+ * different datacenter in the `queryOptions` it is possible to retrieve a list of
52
+ * nodes from a different WAN-attached Consul datacenter.
53
+ */
54
+ /** @deprecated getCatalogNodes has been deprecated in favor of getNodes */
24
55
  export declare function getCatalogNodesOutput(args?: GetCatalogNodesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetCatalogNodesResult>;
25
56
  /**
26
57
  * A collection of arguments for invoking getCatalogNodes.
27
58
  */
28
59
  export interface GetCatalogNodesOutputArgs {
60
+ /**
61
+ * See below.
62
+ */
29
63
  queryOptions?: pulumi.Input<pulumi.Input<inputs.GetCatalogNodesQueryOptionArgs>[]>;
30
64
  }
@@ -5,19 +5,31 @@ Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.getCatalogNodesOutput = exports.getCatalogNodes = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
+ /**
9
+ * The `consul.getNodes` data source returns a list of Consul nodes that have
10
+ * been registered with the Consul cluster in a given datacenter. By specifying a
11
+ * different datacenter in the `queryOptions` it is possible to retrieve a list of
12
+ * nodes from a different WAN-attached Consul datacenter.
13
+ */
14
+ /** @deprecated getCatalogNodes has been deprecated in favor of getNodes */
8
15
  function getCatalogNodes(args, opts) {
16
+ pulumi.log.warn("getCatalogNodes is deprecated: getCatalogNodes has been deprecated in favor of getNodes");
9
17
  args = args || {};
10
- if (!opts) {
11
- opts = {};
12
- }
13
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
18
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
14
19
  return pulumi.runtime.invoke("consul:index/getCatalogNodes:getCatalogNodes", {
15
20
  "queryOptions": args.queryOptions,
16
21
  }, opts);
17
22
  }
18
23
  exports.getCatalogNodes = getCatalogNodes;
24
+ /**
25
+ * The `consul.getNodes` data source returns a list of Consul nodes that have
26
+ * been registered with the Consul cluster in a given datacenter. By specifying a
27
+ * different datacenter in the `queryOptions` it is possible to retrieve a list of
28
+ * nodes from a different WAN-attached Consul datacenter.
29
+ */
30
+ /** @deprecated getCatalogNodes has been deprecated in favor of getNodes */
19
31
  function getCatalogNodesOutput(args, opts) {
20
- return pulumi.output(args).apply(a => getCatalogNodes(a, opts));
32
+ return pulumi.output(args).apply((a) => getCatalogNodes(a, opts));
21
33
  }
22
34
  exports.getCatalogNodesOutput = getCatalogNodesOutput;
23
35
  //# sourceMappingURL=getCatalogNodes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getCatalogNodes.js","sourceRoot":"","sources":["../getCatalogNodes.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC,SAAgB,eAAe,CAAC,IAA0B,EAAE,IAA2B;IACnF,IAAI,GAAG,IAAI,IAAI,EAAE,C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,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,eAAe,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC1E,CAAC;AAFD,sDAEC"}
@@ -1,39 +1,116 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
- import { input as inputs, output as outputs } from "./types";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
4
+ /**
5
+ * `consul.Service` provides details about a specific Consul service in a
6
+ * given datacenter. The results include a list of nodes advertising the specified
7
+ * service, the node's IP address, port number, node ID, etc. By specifying a
8
+ * different datacenter in the `queryOptions` it is possible to retrieve a list of
9
+ * services from a different WAN-attached Consul datacenter.
10
+ *
11
+ * This data source is different from the `consul.getServices` (plural) data
12
+ * source, which provides a summary of the current Consul services.
13
+ */
14
+ /** @deprecated getCatalogService has been deprecated in favor of getService */
3
15
  export declare function getCatalogService(args: GetCatalogServiceArgs, opts?: pulumi.InvokeOptions): Promise<GetCatalogServiceResult>;
4
16
  /**
5
17
  * A collection of arguments for invoking getCatalogService.
6
18
  */
7
19
  export interface GetCatalogServiceArgs {
20
+ /**
21
+ * The Consul datacenter to query. Defaults to the
22
+ * same value found in `queryOptions` parameter specified below, or if that is
23
+ * empty, the `datacenter` value found in the Consul agent that this provider is
24
+ * configured to talk to.
25
+ */
8
26
  datacenter?: string;
27
+ /**
28
+ * A filter expression to refine the query, see https://www.consul.io/api-docs/features/filtering
29
+ * and https://www.consul.io/api-docs/catalog#filtering-1.
30
+ */
9
31
  filter?: string;
32
+ /**
33
+ * The service name to select.
34
+ */
10
35
  name: string;
36
+ /**
37
+ * See below.
38
+ */
11
39
  queryOptions?: inputs.GetCatalogServiceQueryOption[];
40
+ /**
41
+ * A single tag that can be used to filter the list of nodes
42
+ * to return based on a single matching tag..
43
+ */
12
44
  tag?: string;
13
45
  }
14
46
  /**
15
47
  * A collection of values returned by getCatalogService.
16
48
  */
17
49
  export interface GetCatalogServiceResult {
50
+ /**
51
+ * The datacenter the keys are being read from to.
52
+ */
18
53
  readonly datacenter?: string;
19
54
  readonly filter?: string;
20
55
  /**
21
56
  * The provider-assigned unique ID for this managed resource.
22
57
  */
23
58
  readonly id: string;
59
+ /**
60
+ * The name of the service
61
+ */
24
62
  readonly name: string;
25
63
  readonly queryOptions?: outputs.GetCatalogServiceQueryOption[];
64
+ /**
65
+ * A list of nodes and details about each endpoint advertising a
66
+ * service. Each element in the list is a map of attributes that correspond to
67
+ * each individual node. The list of per-node attributes is detailed below.
68
+ */
26
69
  readonly services: outputs.GetCatalogServiceService[];
70
+ /**
71
+ * The name of the tag used to filter the list of nodes in `service`.
72
+ */
27
73
  readonly tag?: string;
28
74
  }
75
+ /**
76
+ * `consul.Service` provides details about a specific Consul service in a
77
+ * given datacenter. The results include a list of nodes advertising the specified
78
+ * service, the node's IP address, port number, node ID, etc. By specifying a
79
+ * different datacenter in the `queryOptions` it is possible to retrieve a list of
80
+ * services from a different WAN-attached Consul datacenter.
81
+ *
82
+ * This data source is different from the `consul.getServices` (plural) data
83
+ * source, which provides a summary of the current Consul services.
84
+ */
85
+ /** @deprecated getCatalogService has been deprecated in favor of getService */
29
86
  export declare function getCatalogServiceOutput(args: GetCatalogServiceOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetCatalogServiceResult>;
30
87
  /**
31
88
  * A collection of arguments for invoking getCatalogService.
32
89
  */
33
90
  export interface GetCatalogServiceOutputArgs {
91
+ /**
92
+ * The Consul datacenter to query. Defaults to the
93
+ * same value found in `queryOptions` parameter specified below, or if that is
94
+ * empty, the `datacenter` value found in the Consul agent that this provider is
95
+ * configured to talk to.
96
+ */
34
97
  datacenter?: pulumi.Input<string>;
98
+ /**
99
+ * A filter expression to refine the query, see https://www.consul.io/api-docs/features/filtering
100
+ * and https://www.consul.io/api-docs/catalog#filtering-1.
101
+ */
35
102
  filter?: pulumi.Input<string>;
103
+ /**
104
+ * The service name to select.
105
+ */
36
106
  name: pulumi.Input<string>;
107
+ /**
108
+ * See below.
109
+ */
37
110
  queryOptions?: pulumi.Input<pulumi.Input<inputs.GetCatalogServiceQueryOptionArgs>[]>;
111
+ /**
112
+ * A single tag that can be used to filter the list of nodes
113
+ * to return based on a single matching tag..
114
+ */
38
115
  tag?: pulumi.Input<string>;
39
116
  }
@@ -5,11 +5,20 @@ Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.getCatalogServiceOutput = exports.getCatalogService = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
+ /**
9
+ * `consul.Service` provides details about a specific Consul service in a
10
+ * given datacenter. The results include a list of nodes advertising the specified
11
+ * service, the node's IP address, port number, node ID, etc. By specifying a
12
+ * different datacenter in the `queryOptions` it is possible to retrieve a list of
13
+ * services from a different WAN-attached Consul datacenter.
14
+ *
15
+ * This data source is different from the `consul.getServices` (plural) data
16
+ * source, which provides a summary of the current Consul services.
17
+ */
18
+ /** @deprecated getCatalogService has been deprecated in favor of getService */
8
19
  function getCatalogService(args, opts) {
9
- if (!opts) {
10
- opts = {};
11
- }
12
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
20
+ pulumi.log.warn("getCatalogService is deprecated: getCatalogService has been deprecated in favor of getService");
21
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
13
22
  return pulumi.runtime.invoke("consul:index/getCatalogService:getCatalogService", {
14
23
  "datacenter": args.datacenter,
15
24
  "filter": args.filter,
@@ -19,8 +28,19 @@ function getCatalogService(args, opts) {
19
28
  }, opts);
20
29
  }
21
30
  exports.getCatalogService = getCatalogService;
31
+ /**
32
+ * `consul.Service` provides details about a specific Consul service in a
33
+ * given datacenter. The results include a list of nodes advertising the specified
34
+ * service, the node's IP address, port number, node ID, etc. By specifying a
35
+ * different datacenter in the `queryOptions` it is possible to retrieve a list of
36
+ * services from a different WAN-attached Consul datacenter.
37
+ *
38
+ * This data source is different from the `consul.getServices` (plural) data
39
+ * source, which provides a summary of the current Consul services.
40
+ */
41
+ /** @deprecated getCatalogService has been deprecated in favor of getService */
22
42
  function getCatalogServiceOutput(args, opts) {
23
- return pulumi.output(args).apply(a => getCatalogService(a, opts));
43
+ return pulumi.output(args).apply((a) => getCatalogService(a, opts));
24
44
  }
25
45
  exports.getCatalogServiceOutput = getCatalogServiceOutput;
26
46
  //# sourceMappingURL=getCatalogService.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getCatalogService.js","sourceRoot":"","sources":["../getCatalogService.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC,SAAgB,iBAAiB,CAAC,IAA2B,EAAE,IAA2B;IACtF,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,kDAAkD,EAAE;QAC7E,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,cAAc,EAAE,IAAI,CAAC,YAAY;QACjC,KAAK,EAAE,IAAI,CAAC,GAAG;KAClB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAbD,8CAaC;AA6BD,SAAgB,uBAAuB,CAAC,IAAiC,EAAE,IAA2B;IAClG,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,iBAAiB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACrE,CAAC;AAFD,0DAEC"}
1
+ {"version":3,"file":"getCatalogService.js","sourceRoot":"","sources":["../getCatalogService.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;GASG;AACH,+EAA+E;AAC/E,SAAgB,iBAAiB,CAAC,IAA2B,EAAE,IAA2B;IACtF,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,+FAA+F,CAAC,CAAA;IAEhH,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,kDAAkD,EAAE;QAC7E,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,cAAc,EAAE,IAAI,CAAC,YAAY;QACjC,KAAK,EAAE,IAAI,CAAC,GAAG;KAClB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAXD,8CAWC;AA8DD;;;;;;;;;GASG;AACH,+EAA+E;AAC/E,SAAgB,uBAAuB,CAAC,IAAiC,EAAE,IAA2B;IAClG,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,iBAAiB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC5E,CAAC;AAFD,0DAEC"}
@@ -1,16 +1,33 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
- import { input as inputs, output as outputs } from "./types";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
4
+ /**
5
+ * The `consul.getServices` data source returns a list of Consul services that
6
+ * have been registered with the Consul cluster in a given datacenter. By
7
+ * specifying a different datacenter in the `queryOptions` it is possible to
8
+ * retrieve a list of services from a different WAN-attached Consul datacenter.
9
+ *
10
+ * This data source is different from the `consul.Service` (singular) data
11
+ * source, which provides a detailed response about a specific Consul service.
12
+ */
13
+ /** @deprecated getCatalogServices has been deprecated in favor of getServices */
3
14
  export declare function getCatalogServices(args?: GetCatalogServicesArgs, opts?: pulumi.InvokeOptions): Promise<GetCatalogServicesResult>;
4
15
  /**
5
16
  * A collection of arguments for invoking getCatalogServices.
6
17
  */
7
18
  export interface GetCatalogServicesArgs {
19
+ /**
20
+ * See below.
21
+ */
8
22
  queryOptions?: inputs.GetCatalogServicesQueryOption[];
9
23
  }
10
24
  /**
11
25
  * A collection of values returned by getCatalogServices.
12
26
  */
13
27
  export interface GetCatalogServicesResult {
28
+ /**
29
+ * The datacenter the keys are being read from to.
30
+ */
14
31
  readonly datacenter: string;
15
32
  /**
16
33
  * The provider-assigned unique ID for this managed resource.
@@ -21,14 +38,33 @@ export interface GetCatalogServicesResult {
21
38
  readonly services: {
22
39
  [key: string]: string;
23
40
  };
41
+ /**
42
+ * A map of the tags found for each service. If more than one service
43
+ * shares the same tag, unique service names will be joined by whitespace (this
44
+ * is the inverse of `services` and can be used to lookup the services that match
45
+ * a single tag).
46
+ */
24
47
  readonly tags: {
25
48
  [key: string]: string;
26
49
  };
27
50
  }
51
+ /**
52
+ * The `consul.getServices` data source returns a list of Consul services that
53
+ * have been registered with the Consul cluster in a given datacenter. By
54
+ * specifying a different datacenter in the `queryOptions` it is possible to
55
+ * retrieve a list of services from a different WAN-attached Consul datacenter.
56
+ *
57
+ * This data source is different from the `consul.Service` (singular) data
58
+ * source, which provides a detailed response about a specific Consul service.
59
+ */
60
+ /** @deprecated getCatalogServices has been deprecated in favor of getServices */
28
61
  export declare function getCatalogServicesOutput(args?: GetCatalogServicesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetCatalogServicesResult>;
29
62
  /**
30
63
  * A collection of arguments for invoking getCatalogServices.
31
64
  */
32
65
  export interface GetCatalogServicesOutputArgs {
66
+ /**
67
+ * See below.
68
+ */
33
69
  queryOptions?: pulumi.Input<pulumi.Input<inputs.GetCatalogServicesQueryOptionArgs>[]>;
34
70
  }
@@ -5,19 +5,37 @@ Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.getCatalogServicesOutput = exports.getCatalogServices = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
+ /**
9
+ * The `consul.getServices` data source returns a list of Consul services that
10
+ * have been registered with the Consul cluster in a given datacenter. By
11
+ * specifying a different datacenter in the `queryOptions` it is possible to
12
+ * retrieve a list of services from a different WAN-attached Consul datacenter.
13
+ *
14
+ * This data source is different from the `consul.Service` (singular) data
15
+ * source, which provides a detailed response about a specific Consul service.
16
+ */
17
+ /** @deprecated getCatalogServices has been deprecated in favor of getServices */
8
18
  function getCatalogServices(args, opts) {
19
+ pulumi.log.warn("getCatalogServices is deprecated: getCatalogServices has been deprecated in favor of getServices");
9
20
  args = args || {};
10
- if (!opts) {
11
- opts = {};
12
- }
13
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
21
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
14
22
  return pulumi.runtime.invoke("consul:index/getCatalogServices:getCatalogServices", {
15
23
  "queryOptions": args.queryOptions,
16
24
  }, opts);
17
25
  }
18
26
  exports.getCatalogServices = getCatalogServices;
27
+ /**
28
+ * The `consul.getServices` data source returns a list of Consul services that
29
+ * have been registered with the Consul cluster in a given datacenter. By
30
+ * specifying a different datacenter in the `queryOptions` it is possible to
31
+ * retrieve a list of services from a different WAN-attached Consul datacenter.
32
+ *
33
+ * This data source is different from the `consul.Service` (singular) data
34
+ * source, which provides a detailed response about a specific Consul service.
35
+ */
36
+ /** @deprecated getCatalogServices has been deprecated in favor of getServices */
19
37
  function getCatalogServicesOutput(args, opts) {
20
- return pulumi.output(args).apply(a => getCatalogServices(a, opts));
38
+ return pulumi.output(args).apply((a) => getCatalogServices(a, opts));
21
39
  }
22
40
  exports.getCatalogServicesOutput = getCatalogServicesOutput;
23
41
  //# sourceMappingURL=getCatalogServices.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getCatalogServices.js","sourceRoot":"","sources":["../getCatalogServices.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAA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DAQC;AAmCD;;;;;;;;GAQG;AACH,iFAAiF;AACjF,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"}
@@ -4,23 +4,50 @@ export declare function getConfigEntry(args: GetConfigEntryArgs, opts?: pulumi.I
4
4
  * A collection of arguments for invoking getConfigEntry.
5
5
  */
6
6
  export interface GetConfigEntryArgs {
7
+ /**
8
+ * The kind of config entry to read.
9
+ */
7
10
  kind: string;
11
+ /**
12
+ * The name of the config entry to read.
13
+ */
8
14
  name: string;
15
+ /**
16
+ * The namespace the config entry is associated with.
17
+ */
9
18
  namespace?: string;
19
+ /**
20
+ * The partition the config entry is associated with.
21
+ */
10
22
  partition?: string;
11
23
  }
12
24
  /**
13
25
  * A collection of values returned by getConfigEntry.
14
26
  */
15
27
  export interface GetConfigEntryResult {
28
+ /**
29
+ * The configuration of the config entry.
30
+ */
16
31
  readonly configJson: string;
17
32
  /**
18
33
  * The provider-assigned unique ID for this managed resource.
19
34
  */
20
35
  readonly id: string;
36
+ /**
37
+ * The kind of config entry to read.
38
+ */
21
39
  readonly kind: string;
40
+ /**
41
+ * The name of the config entry to read.
42
+ */
22
43
  readonly name: string;
44
+ /**
45
+ * The namespace the config entry is associated with.
46
+ */
23
47
  readonly namespace?: string;
48
+ /**
49
+ * The partition the config entry is associated with.
50
+ */
24
51
  readonly partition?: string;
25
52
  }
26
53
  export declare function getConfigEntryOutput(args: GetConfigEntryOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetConfigEntryResult>;
@@ -28,8 +55,20 @@ export declare function getConfigEntryOutput(args: GetConfigEntryOutputArgs, opt
28
55
  * A collection of arguments for invoking getConfigEntry.
29
56
  */
30
57
  export interface GetConfigEntryOutputArgs {
58
+ /**
59
+ * The kind of config entry to read.
60
+ */
31
61
  kind: pulumi.Input<string>;
62
+ /**
63
+ * The name of the config entry to read.
64
+ */
32
65
  name: pulumi.Input<string>;
66
+ /**
67
+ * The namespace the config entry is associated with.
68
+ */
33
69
  namespace?: pulumi.Input<string>;
70
+ /**
71
+ * The partition the config entry is associated with.
72
+ */
34
73
  partition?: pulumi.Input<string>;
35
74
  }
package/getConfigEntry.js CHANGED
@@ -6,10 +6,7 @@ exports.getConfigEntryOutput = exports.getConfigEntry = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  function getConfigEntry(args, opts) {
9
- if (!opts) {
10
- opts = {};
11
- }
12
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
9
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
13
10
  return pulumi.runtime.invoke("consul:index/getConfigEntry:getConfigEntry", {
14
11
  "kind": args.kind,
15
12
  "name": args.name,
@@ -19,7 +16,7 @@ function getConfigEntry(args, opts) {
19
16
  }
20
17
  exports.getConfigEntry = getConfigEntry;
21
18
  function getConfigEntryOutput(args, opts) {
22
- return pulumi.output(args).apply(a => getConfigEntry(a, opts));
19
+ return pulumi.output(args).apply((a) => getConfigEntry(a, opts));
23
20
  }
24
21
  exports.getConfigEntryOutput = getConfigEntryOutput;
25
22
  //# sourceMappingURL=getConfigEntry.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getConfigEntry.js","sourceRoot":"","sources":["../getConfigEntry.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,SAAgB,cAAc,CAAC,IAAwB,EAAE,IAA2B;IAChF,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;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AC;AAFD,oDAEC"}
package/getDatacenters.js CHANGED
@@ -10,10 +10,7 @@ const utilities = require("./utilities");
10
10
  * datacenters.
11
11
  */
12
12
  function getDatacenters(opts) {
13
- if (!opts) {
14
- opts = {};
15
- }
16
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
13
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
17
14
  return pulumi.runtime.invoke("consul:index/getDatacenters:getDatacenters", {}, opts);
18
15
  }
19
16
  exports.getDatacenters = getDatacenters;
@@ -1 +1 @@
1
- {"version":3,"file":"getDatacenters.js","sourceRoot":"","sources":["../getDatacenters.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;GAGG;AACH,SAAgB,cAAc,CAAC,IAA2B;IACtD,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,4CAA4C,EAAE,EAC1E,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,wCAQC"}
1
+ {"version":3,"file":"getDatacenters.js","sourceRoot":"","sources":["../getDatacenters.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;GAGG;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"}