@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,6 @@
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";
3
4
  /**
4
5
  * ## Example Usage
5
6
  *
@@ -64,8 +65,6 @@ import { input as inputs, output as outputs } from "./types";
64
65
  *
65
66
  * ## Import
66
67
  *
67
- * `consul_prepared_query` can be imported with the query's ID in the Consul HTTP API.
68
- *
69
68
  * ```sh
70
69
  * $ pulumi import consul:index/preparedQuery:PreparedQuery my_service 71ecfb82-717a-4258-b4b6-2fb75144d856
71
70
  * ```
@@ -87,14 +86,11 @@ export declare class PreparedQuery extends pulumi.CustomResource {
87
86
  */
88
87
  static isInstance(obj: any): obj is PreparedQuery;
89
88
  /**
90
- * When `true` the prepared query will return connect
91
- * proxy services for a queried service. Conditions such as `tags` in the
92
- * prepared query will be matched against the proxy service. Defaults to false.
89
+ * When `true` the prepared query will return connect proxy services for a queried service. Conditions such as `tags` in the prepared query will be matched against the proxy service. Defaults to false.
93
90
  */
94
91
  readonly connect: pulumi.Output<boolean | undefined>;
95
92
  /**
96
- * The datacenter to use. This overrides the
97
- * agent's default datacenter and the datacenter in the provider setup.
93
+ * The datacenter to use. This overrides the agent's default datacenter and the datacenter in the provider setup.
98
94
  */
99
95
  readonly datacenter: pulumi.Output<string | undefined>;
100
96
  /**
@@ -102,84 +98,59 @@ export declare class PreparedQuery extends pulumi.CustomResource {
102
98
  */
103
99
  readonly dns: pulumi.Output<outputs.PreparedQueryDns | undefined>;
104
100
  /**
105
- * Options for controlling behavior when no healthy
106
- * nodes are available in the local DC.
101
+ * Options for controlling behavior when no healthy nodes are available in the local DC.
107
102
  */
108
103
  readonly failover: pulumi.Output<outputs.PreparedQueryFailover | undefined>;
109
104
  /**
110
- * Specifies a list of check IDs that should be
111
- * ignored when filtering unhealthy instances. This is mostly useful in an
112
- * emergency or as a temporary measure when a health check is found to be
113
- * unreliable. Being able to ignore it in centrally-defined queries can be
114
- * simpler than de-registering the check as an interim solution until the check
115
- * can be fixed.
105
+ * Specifies a list of check IDs that should be ignored when filtering unhealthy instances. This is mostly useful in an emergency or as a temporary measure when a health check is found to be unreliable. Being able to ignore it in centrally-defined queries can be simpler than de-registering the check as an interim solution until the check can be fixed.
116
106
  */
117
107
  readonly ignoreCheckIds: pulumi.Output<string[] | undefined>;
118
108
  /**
119
- * The name of the prepared query. Used to identify
120
- * the prepared query during requests. Can be specified as an empty string
121
- * to configure the query as a catch-all.
109
+ * The name of the prepared query. Used to identify the prepared query during requests. Can be specified as an empty string to configure the query as a catch-all.
122
110
  */
123
111
  readonly name: pulumi.Output<string>;
124
112
  /**
125
- * Allows specifying the name of a node to sort results
126
- * near using Consul's distance sorting and network coordinates. The magic
127
- * `_agent` value can be used to always sort nearest the node servicing the
128
- * request.
113
+ * Allows specifying the name of a node to sort results near using Consul's distance sorting and network coordinates. The magic `_agent` value can be used to always sort nearest the node servicing the request.
129
114
  */
130
115
  readonly near: pulumi.Output<string | undefined>;
131
116
  /**
132
- * Specifies a list of user-defined key/value pairs that
133
- * will be used for filtering the query results to nodes with the given metadata
134
- * values present.
117
+ * Specifies a list of user-defined key/value pairs that will be used for filtering the query results to nodes with the given metadata values present.
135
118
  */
136
119
  readonly nodeMeta: pulumi.Output<{
137
120
  [key: string]: string;
138
121
  } | undefined>;
139
122
  /**
140
- * When `true`, the prepared query will only
141
- * return nodes with passing health checks in the result.
123
+ * When `true`, the prepared query will only return nodes with passing health checks in the result.
142
124
  */
143
125
  readonly onlyPassing: pulumi.Output<boolean | undefined>;
144
126
  /**
145
- * The name of the service to query.
127
+ * The name of the service to query
146
128
  */
147
129
  readonly service: pulumi.Output<string>;
148
130
  /**
149
- * Specifies a list of user-defined key/value pairs
150
- * that will be used for filtering the query results to services with the given
151
- * metadata values present.
131
+ * Specifies a list of user-defined key/value pairs that will be used for filtering the query results to services with the given metadata values present.
152
132
  */
153
133
  readonly serviceMeta: pulumi.Output<{
154
134
  [key: string]: string;
155
135
  } | undefined>;
156
136
  /**
157
- * The name of the Consul session to tie this query's
158
- * lifetime to. This is an advanced parameter that should not be used without a
159
- * complete understanding of Consul sessions and the implications of their use
160
- * (it is recommended to leave this blank in nearly all cases). If this
161
- * parameter is omitted the query will not expire.
137
+ * The name of the Consul session to tie this query's lifetime to. This is an advanced parameter that should not be used without a complete understanding of Consul sessions and the implications of their use (it is recommended to leave this blank in nearly all cases). If this parameter is omitted the query will not expire.
162
138
  */
163
139
  readonly session: pulumi.Output<string | undefined>;
164
140
  /**
165
- * The ACL token to store with the prepared
166
- * query. This token will be used by default whenever the query is executed.
141
+ * The ACL token to store with the prepared query. This token will be used by default whenever the query is executed.
167
142
  */
168
143
  readonly storedToken: pulumi.Output<string | undefined>;
169
144
  /**
170
- * The list of required and/or disallowed tags. If a tag is
171
- * in this list it must be present. If the tag is preceded with a "!" then it is
172
- * disallowed.
145
+ * The list of required and/or disallowed tags. If a tag is in this list it must be present. If the tag is preceded with a "!" then it is disallowed.
173
146
  */
174
147
  readonly tags: pulumi.Output<string[] | undefined>;
175
148
  /**
176
- * Query templating options. This is used to make a
177
- * single prepared query respond to many different requests.
149
+ * Query templating options. This is used to make a single prepared query respond to many different requests
178
150
  */
179
151
  readonly template: pulumi.Output<outputs.PreparedQueryTemplate | undefined>;
180
152
  /**
181
- * The ACL token to use when saving the prepared query.
182
- * This overrides the token that the agent provides by default.
153
+ * The ACL token to use when saving the prepared query. This overrides the token that the agent provides by default.
183
154
  *
184
155
  * @deprecated The token argument has been deprecated and will be removed in a future release.
185
156
  Please use the token argument in the provider configuration
@@ -199,14 +170,11 @@ Please use the token argument in the provider configuration
199
170
  */
200
171
  export interface PreparedQueryState {
201
172
  /**
202
- * When `true` the prepared query will return connect
203
- * proxy services for a queried service. Conditions such as `tags` in the
204
- * prepared query will be matched against the proxy service. Defaults to false.
173
+ * When `true` the prepared query will return connect proxy services for a queried service. Conditions such as `tags` in the prepared query will be matched against the proxy service. Defaults to false.
205
174
  */
206
175
  connect?: pulumi.Input<boolean>;
207
176
  /**
208
- * The datacenter to use. This overrides the
209
- * agent's default datacenter and the datacenter in the provider setup.
177
+ * The datacenter to use. This overrides the agent's default datacenter and the datacenter in the provider setup.
210
178
  */
211
179
  datacenter?: pulumi.Input<string>;
212
180
  /**
@@ -214,84 +182,59 @@ export interface PreparedQueryState {
214
182
  */
215
183
  dns?: pulumi.Input<inputs.PreparedQueryDns>;
216
184
  /**
217
- * Options for controlling behavior when no healthy
218
- * nodes are available in the local DC.
185
+ * Options for controlling behavior when no healthy nodes are available in the local DC.
219
186
  */
220
187
  failover?: pulumi.Input<inputs.PreparedQueryFailover>;
221
188
  /**
222
- * Specifies a list of check IDs that should be
223
- * ignored when filtering unhealthy instances. This is mostly useful in an
224
- * emergency or as a temporary measure when a health check is found to be
225
- * unreliable. Being able to ignore it in centrally-defined queries can be
226
- * simpler than de-registering the check as an interim solution until the check
227
- * can be fixed.
189
+ * Specifies a list of check IDs that should be ignored when filtering unhealthy instances. This is mostly useful in an emergency or as a temporary measure when a health check is found to be unreliable. Being able to ignore it in centrally-defined queries can be simpler than de-registering the check as an interim solution until the check can be fixed.
228
190
  */
229
191
  ignoreCheckIds?: pulumi.Input<pulumi.Input<string>[]>;
230
192
  /**
231
- * The name of the prepared query. Used to identify
232
- * the prepared query during requests. Can be specified as an empty string
233
- * to configure the query as a catch-all.
193
+ * The name of the prepared query. Used to identify the prepared query during requests. Can be specified as an empty string to configure the query as a catch-all.
234
194
  */
235
195
  name?: pulumi.Input<string>;
236
196
  /**
237
- * Allows specifying the name of a node to sort results
238
- * near using Consul's distance sorting and network coordinates. The magic
239
- * `_agent` value can be used to always sort nearest the node servicing the
240
- * request.
197
+ * Allows specifying the name of a node to sort results near using Consul's distance sorting and network coordinates. The magic `_agent` value can be used to always sort nearest the node servicing the request.
241
198
  */
242
199
  near?: pulumi.Input<string>;
243
200
  /**
244
- * Specifies a list of user-defined key/value pairs that
245
- * will be used for filtering the query results to nodes with the given metadata
246
- * values present.
201
+ * Specifies a list of user-defined key/value pairs that will be used for filtering the query results to nodes with the given metadata values present.
247
202
  */
248
203
  nodeMeta?: pulumi.Input<{
249
204
  [key: string]: pulumi.Input<string>;
250
205
  }>;
251
206
  /**
252
- * When `true`, the prepared query will only
253
- * return nodes with passing health checks in the result.
207
+ * When `true`, the prepared query will only return nodes with passing health checks in the result.
254
208
  */
255
209
  onlyPassing?: pulumi.Input<boolean>;
256
210
  /**
257
- * The name of the service to query.
211
+ * The name of the service to query
258
212
  */
259
213
  service?: pulumi.Input<string>;
260
214
  /**
261
- * Specifies a list of user-defined key/value pairs
262
- * that will be used for filtering the query results to services with the given
263
- * metadata values present.
215
+ * Specifies a list of user-defined key/value pairs that will be used for filtering the query results to services with the given metadata values present.
264
216
  */
265
217
  serviceMeta?: pulumi.Input<{
266
218
  [key: string]: pulumi.Input<string>;
267
219
  }>;
268
220
  /**
269
- * The name of the Consul session to tie this query's
270
- * lifetime to. This is an advanced parameter that should not be used without a
271
- * complete understanding of Consul sessions and the implications of their use
272
- * (it is recommended to leave this blank in nearly all cases). If this
273
- * parameter is omitted the query will not expire.
221
+ * The name of the Consul session to tie this query's lifetime to. This is an advanced parameter that should not be used without a complete understanding of Consul sessions and the implications of their use (it is recommended to leave this blank in nearly all cases). If this parameter is omitted the query will not expire.
274
222
  */
275
223
  session?: pulumi.Input<string>;
276
224
  /**
277
- * The ACL token to store with the prepared
278
- * query. This token will be used by default whenever the query is executed.
225
+ * The ACL token to store with the prepared query. This token will be used by default whenever the query is executed.
279
226
  */
280
227
  storedToken?: pulumi.Input<string>;
281
228
  /**
282
- * The list of required and/or disallowed tags. If a tag is
283
- * in this list it must be present. If the tag is preceded with a "!" then it is
284
- * disallowed.
229
+ * The list of required and/or disallowed tags. If a tag is in this list it must be present. If the tag is preceded with a "!" then it is disallowed.
285
230
  */
286
231
  tags?: pulumi.Input<pulumi.Input<string>[]>;
287
232
  /**
288
- * Query templating options. This is used to make a
289
- * single prepared query respond to many different requests.
233
+ * Query templating options. This is used to make a single prepared query respond to many different requests
290
234
  */
291
235
  template?: pulumi.Input<inputs.PreparedQueryTemplate>;
292
236
  /**
293
- * The ACL token to use when saving the prepared query.
294
- * This overrides the token that the agent provides by default.
237
+ * The ACL token to use when saving the prepared query. This overrides the token that the agent provides by default.
295
238
  *
296
239
  * @deprecated The token argument has been deprecated and will be removed in a future release.
297
240
  Please use the token argument in the provider configuration
@@ -303,14 +246,11 @@ Please use the token argument in the provider configuration
303
246
  */
304
247
  export interface PreparedQueryArgs {
305
248
  /**
306
- * When `true` the prepared query will return connect
307
- * proxy services for a queried service. Conditions such as `tags` in the
308
- * prepared query will be matched against the proxy service. Defaults to false.
249
+ * When `true` the prepared query will return connect proxy services for a queried service. Conditions such as `tags` in the prepared query will be matched against the proxy service. Defaults to false.
309
250
  */
310
251
  connect?: pulumi.Input<boolean>;
311
252
  /**
312
- * The datacenter to use. This overrides the
313
- * agent's default datacenter and the datacenter in the provider setup.
253
+ * The datacenter to use. This overrides the agent's default datacenter and the datacenter in the provider setup.
314
254
  */
315
255
  datacenter?: pulumi.Input<string>;
316
256
  /**
@@ -318,84 +258,59 @@ export interface PreparedQueryArgs {
318
258
  */
319
259
  dns?: pulumi.Input<inputs.PreparedQueryDns>;
320
260
  /**
321
- * Options for controlling behavior when no healthy
322
- * nodes are available in the local DC.
261
+ * Options for controlling behavior when no healthy nodes are available in the local DC.
323
262
  */
324
263
  failover?: pulumi.Input<inputs.PreparedQueryFailover>;
325
264
  /**
326
- * Specifies a list of check IDs that should be
327
- * ignored when filtering unhealthy instances. This is mostly useful in an
328
- * emergency or as a temporary measure when a health check is found to be
329
- * unreliable. Being able to ignore it in centrally-defined queries can be
330
- * simpler than de-registering the check as an interim solution until the check
331
- * can be fixed.
265
+ * Specifies a list of check IDs that should be ignored when filtering unhealthy instances. This is mostly useful in an emergency or as a temporary measure when a health check is found to be unreliable. Being able to ignore it in centrally-defined queries can be simpler than de-registering the check as an interim solution until the check can be fixed.
332
266
  */
333
267
  ignoreCheckIds?: pulumi.Input<pulumi.Input<string>[]>;
334
268
  /**
335
- * The name of the prepared query. Used to identify
336
- * the prepared query during requests. Can be specified as an empty string
337
- * to configure the query as a catch-all.
269
+ * The name of the prepared query. Used to identify the prepared query during requests. Can be specified as an empty string to configure the query as a catch-all.
338
270
  */
339
271
  name?: pulumi.Input<string>;
340
272
  /**
341
- * Allows specifying the name of a node to sort results
342
- * near using Consul's distance sorting and network coordinates. The magic
343
- * `_agent` value can be used to always sort nearest the node servicing the
344
- * request.
273
+ * Allows specifying the name of a node to sort results near using Consul's distance sorting and network coordinates. The magic `_agent` value can be used to always sort nearest the node servicing the request.
345
274
  */
346
275
  near?: pulumi.Input<string>;
347
276
  /**
348
- * Specifies a list of user-defined key/value pairs that
349
- * will be used for filtering the query results to nodes with the given metadata
350
- * values present.
277
+ * Specifies a list of user-defined key/value pairs that will be used for filtering the query results to nodes with the given metadata values present.
351
278
  */
352
279
  nodeMeta?: pulumi.Input<{
353
280
  [key: string]: pulumi.Input<string>;
354
281
  }>;
355
282
  /**
356
- * When `true`, the prepared query will only
357
- * return nodes with passing health checks in the result.
283
+ * When `true`, the prepared query will only return nodes with passing health checks in the result.
358
284
  */
359
285
  onlyPassing?: pulumi.Input<boolean>;
360
286
  /**
361
- * The name of the service to query.
287
+ * The name of the service to query
362
288
  */
363
289
  service: pulumi.Input<string>;
364
290
  /**
365
- * Specifies a list of user-defined key/value pairs
366
- * that will be used for filtering the query results to services with the given
367
- * metadata values present.
291
+ * Specifies a list of user-defined key/value pairs that will be used for filtering the query results to services with the given metadata values present.
368
292
  */
369
293
  serviceMeta?: pulumi.Input<{
370
294
  [key: string]: pulumi.Input<string>;
371
295
  }>;
372
296
  /**
373
- * The name of the Consul session to tie this query's
374
- * lifetime to. This is an advanced parameter that should not be used without a
375
- * complete understanding of Consul sessions and the implications of their use
376
- * (it is recommended to leave this blank in nearly all cases). If this
377
- * parameter is omitted the query will not expire.
297
+ * The name of the Consul session to tie this query's lifetime to. This is an advanced parameter that should not be used without a complete understanding of Consul sessions and the implications of their use (it is recommended to leave this blank in nearly all cases). If this parameter is omitted the query will not expire.
378
298
  */
379
299
  session?: pulumi.Input<string>;
380
300
  /**
381
- * The ACL token to store with the prepared
382
- * query. This token will be used by default whenever the query is executed.
301
+ * The ACL token to store with the prepared query. This token will be used by default whenever the query is executed.
383
302
  */
384
303
  storedToken?: pulumi.Input<string>;
385
304
  /**
386
- * The list of required and/or disallowed tags. If a tag is
387
- * in this list it must be present. If the tag is preceded with a "!" then it is
388
- * disallowed.
305
+ * The list of required and/or disallowed tags. If a tag is in this list it must be present. If the tag is preceded with a "!" then it is disallowed.
389
306
  */
390
307
  tags?: pulumi.Input<pulumi.Input<string>[]>;
391
308
  /**
392
- * Query templating options. This is used to make a
393
- * single prepared query respond to many different requests.
309
+ * Query templating options. This is used to make a single prepared query respond to many different requests
394
310
  */
395
311
  template?: pulumi.Input<inputs.PreparedQueryTemplate>;
396
312
  /**
397
- * The ACL token to use when saving the prepared query.
398
- * This overrides the token that the agent provides by default.
313
+ * The ACL token to use when saving the prepared query. This overrides the token that the agent provides by default.
399
314
  *
400
315
  * @deprecated The token argument has been deprecated and will be removed in a future release.
401
316
  Please use the token argument in the provider configuration
package/preparedQuery.js CHANGED
@@ -69,8 +69,6 @@ const utilities = require("./utilities");
69
69
  *
70
70
  * ## Import
71
71
  *
72
- * `consul_prepared_query` can be imported with the query's ID in the Consul HTTP API.
73
- *
74
72
  * ```sh
75
73
  * $ pulumi import consul:index/preparedQuery:PreparedQuery my_service 71ecfb82-717a-4258-b4b6-2fb75144d856
76
74
  * ```
@@ -140,9 +138,11 @@ class PreparedQuery extends pulumi.CustomResource {
140
138
  resourceInputs["storedToken"] = args ? args.storedToken : undefined;
141
139
  resourceInputs["tags"] = args ? args.tags : undefined;
142
140
  resourceInputs["template"] = args ? args.template : undefined;
143
- resourceInputs["token"] = args ? args.token : undefined;
141
+ resourceInputs["token"] = (args === null || args === void 0 ? void 0 : args.token) ? pulumi.secret(args.token) : undefined;
144
142
  }
145
143
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
144
+ const secretOpts = { additionalSecretOutputs: ["token"] };
145
+ opts = pulumi.mergeOptions(opts, secretOpts);
146
146
  super(PreparedQuery.__pulumiType, name, resourceInputs, opts);
147
147
  }
148
148
  }
@@ -1 +1 @@
1
- {"version":3,"file":"preparedQuery.js","sourceRoot":"","sources":["../preparedQuery.ts"],"names":[],"mappings":";A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GAAG,0CAA0C,CAAC"}
package/provider.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
- import { input as inputs } from "./types";
2
+ import * as inputs from "./types/input";
3
3
  /**
4
4
  * The provider type for the consul package. By default, resources use package-wide configuration
5
5
  * settings, however an explicit `Provider` instance may be created and passed during resource
@@ -12,18 +12,57 @@ export declare class Provider extends pulumi.ProviderResource {
12
12
  * when multiple copies of the Pulumi SDK have been loaded into the same process.
13
13
  */
14
14
  static isInstance(obj: any): obj is Provider;
15
+ /**
16
+ * The HTTP(S) API address of the agent to use. Defaults to "127.0.0.1:8500".
17
+ */
15
18
  readonly address: pulumi.Output<string | undefined>;
19
+ /**
20
+ * A path to a PEM-encoded certificate authority used to verify the remote agent's certificate.
21
+ */
16
22
  readonly caFile: pulumi.Output<string | undefined>;
23
+ /**
24
+ * A path to a directory of PEM-encoded certificate authority files to use to check the authenticity of client and server
25
+ * connections. Can also be specified with the `CONSUL_CAPATH` environment variable.
26
+ */
17
27
  readonly caPath: pulumi.Output<string | undefined>;
28
+ /**
29
+ * PEM-encoded certificate authority used to verify the remote agent's certificate.
30
+ */
18
31
  readonly caPem: pulumi.Output<string | undefined>;
32
+ /**
33
+ * A path to a PEM-encoded certificate provided to the remote agent; requires use of `key_file` or `key_pem`.
34
+ */
19
35
  readonly certFile: pulumi.Output<string | undefined>;
36
+ /**
37
+ * PEM-encoded certificate provided to the remote agent; requires use of `key_file` or `key_pem`.
38
+ */
20
39
  readonly certPem: pulumi.Output<string | undefined>;
40
+ /**
41
+ * The datacenter to use. Defaults to that of the agent.
42
+ */
21
43
  readonly datacenter: pulumi.Output<string | undefined>;
44
+ /**
45
+ * HTTP Basic Authentication credentials to be used when communicating with Consul, in the format of either `user` or
46
+ * `user:pass`. This may also be specified using the `CONSUL_HTTP_AUTH` environment variable.
47
+ */
22
48
  readonly httpAuth: pulumi.Output<string | undefined>;
49
+ /**
50
+ * A path to a PEM-encoded private key, required if `cert_file` or `cert_pem` is specified.
51
+ */
23
52
  readonly keyFile: pulumi.Output<string | undefined>;
53
+ /**
54
+ * PEM-encoded private key, required if `cert_file` or `cert_pem` is specified.
55
+ */
24
56
  readonly keyPem: pulumi.Output<string | undefined>;
25
57
  readonly namespace: pulumi.Output<string | undefined>;
58
+ /**
59
+ * The URL scheme of the agent to use ("http" or "https"). Defaults to "http".
60
+ */
26
61
  readonly scheme: pulumi.Output<string | undefined>;
62
+ /**
63
+ * The ACL token to use by default when making requests to the agent. Can also be specified with `CONSUL_HTTP_TOKEN` or
64
+ * `CONSUL_TOKEN` as an environment variable.
65
+ */
27
66
  readonly token: pulumi.Output<string | undefined>;
28
67
  /**
29
68
  * Create a Provider resource with the given unique name, arguments, and options.
@@ -38,22 +77,70 @@ export declare class Provider extends pulumi.ProviderResource {
38
77
  * The set of arguments for constructing a Provider resource.
39
78
  */
40
79
  export interface ProviderArgs {
80
+ /**
81
+ * The HTTP(S) API address of the agent to use. Defaults to "127.0.0.1:8500".
82
+ */
41
83
  address?: pulumi.Input<string>;
84
+ /**
85
+ * Authenticates to Consul using a JWT authentication method.
86
+ */
87
+ authJwt?: pulumi.Input<inputs.ProviderAuthJwt>;
88
+ /**
89
+ * A path to a PEM-encoded certificate authority used to verify the remote agent's certificate.
90
+ */
42
91
  caFile?: pulumi.Input<string>;
92
+ /**
93
+ * A path to a directory of PEM-encoded certificate authority files to use to check the authenticity of client and server
94
+ * connections. Can also be specified with the `CONSUL_CAPATH` environment variable.
95
+ */
43
96
  caPath?: pulumi.Input<string>;
97
+ /**
98
+ * PEM-encoded certificate authority used to verify the remote agent's certificate.
99
+ */
44
100
  caPem?: pulumi.Input<string>;
101
+ /**
102
+ * A path to a PEM-encoded certificate provided to the remote agent; requires use of `key_file` or `key_pem`.
103
+ */
45
104
  certFile?: pulumi.Input<string>;
105
+ /**
106
+ * PEM-encoded certificate provided to the remote agent; requires use of `key_file` or `key_pem`.
107
+ */
46
108
  certPem?: pulumi.Input<string>;
109
+ /**
110
+ * The datacenter to use. Defaults to that of the agent.
111
+ */
47
112
  datacenter?: pulumi.Input<string>;
48
113
  /**
49
- * Additional headers to send with each Consul request.
114
+ * A configuration block, described below, that provides additional headers to be sent along with all requests to the
115
+ * Consul server. This block can be specified multiple times.
50
116
  */
51
117
  headers?: pulumi.Input<pulumi.Input<inputs.ProviderHeader>[]>;
118
+ /**
119
+ * HTTP Basic Authentication credentials to be used when communicating with Consul, in the format of either `user` or
120
+ * `user:pass`. This may also be specified using the `CONSUL_HTTP_AUTH` environment variable.
121
+ */
52
122
  httpAuth?: pulumi.Input<string>;
123
+ /**
124
+ * Boolean value to disable SSL certificate verification; setting this value to true is not recommended for production use.
125
+ * Only use this with scheme set to "https".
126
+ */
53
127
  insecureHttps?: pulumi.Input<boolean>;
128
+ /**
129
+ * A path to a PEM-encoded private key, required if `cert_file` or `cert_pem` is specified.
130
+ */
54
131
  keyFile?: pulumi.Input<string>;
132
+ /**
133
+ * PEM-encoded private key, required if `cert_file` or `cert_pem` is specified.
134
+ */
55
135
  keyPem?: pulumi.Input<string>;
56
136
  namespace?: pulumi.Input<string>;
137
+ /**
138
+ * The URL scheme of the agent to use ("http" or "https"). Defaults to "http".
139
+ */
57
140
  scheme?: pulumi.Input<string>;
141
+ /**
142
+ * The ACL token to use by default when making requests to the agent. Can also be specified with `CONSUL_HTTP_TOKEN` or
143
+ * `CONSUL_TOKEN` as an environment variable.
144
+ */
58
145
  token?: pulumi.Input<string>;
59
146
  }
package/provider.js CHANGED
@@ -20,7 +20,7 @@ class Provider extends pulumi.ProviderResource {
20
20
  if (obj === undefined || obj === null) {
21
21
  return false;
22
22
  }
23
- return obj['__pulumiType'] === Provider.__pulumiType;
23
+ return obj['__pulumiType'] === "pulumi:providers:" + Provider.__pulumiType;
24
24
  }
25
25
  /**
26
26
  * Create a Provider resource with the given unique name, arguments, and options.
@@ -34,22 +34,25 @@ class Provider extends pulumi.ProviderResource {
34
34
  opts = opts || {};
35
35
  {
36
36
  resourceInputs["address"] = args ? args.address : undefined;
37
+ resourceInputs["authJwt"] = pulumi.output(args ? args.authJwt : undefined).apply(JSON.stringify);
37
38
  resourceInputs["caFile"] = args ? args.caFile : undefined;
38
39
  resourceInputs["caPath"] = args ? args.caPath : undefined;
39
40
  resourceInputs["caPem"] = args ? args.caPem : undefined;
40
41
  resourceInputs["certFile"] = args ? args.certFile : undefined;
41
42
  resourceInputs["certPem"] = args ? args.certPem : undefined;
42
43
  resourceInputs["datacenter"] = args ? args.datacenter : undefined;
43
- resourceInputs["headers"] = pulumi.output(args ? args.headers : undefined).apply(JSON.stringify);
44
+ resourceInputs["headers"] = pulumi.output((args === null || args === void 0 ? void 0 : args.headers) ? pulumi.secret(args.headers) : undefined).apply(JSON.stringify);
44
45
  resourceInputs["httpAuth"] = args ? args.httpAuth : undefined;
45
46
  resourceInputs["insecureHttps"] = pulumi.output(args ? args.insecureHttps : undefined).apply(JSON.stringify);
46
47
  resourceInputs["keyFile"] = args ? args.keyFile : undefined;
47
48
  resourceInputs["keyPem"] = args ? args.keyPem : undefined;
48
49
  resourceInputs["namespace"] = args ? args.namespace : undefined;
49
50
  resourceInputs["scheme"] = args ? args.scheme : undefined;
50
- resourceInputs["token"] = args ? args.token : undefined;
51
+ resourceInputs["token"] = (args === null || args === void 0 ? void 0 : args.token) ? pulumi.secret(args.token) : undefined;
51
52
  }
52
53
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
54
+ const secretOpts = { additionalSecretOutputs: ["token"] };
55
+ opts = pulumi.mergeOptions(opts, secretOpts);
53
56
  super(Provider.__pulumiType, name, resourceInputs, opts);
54
57
  }
55
58
  }
package/provider.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;GAKG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;I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