pulumi-consul 3.13.0a1749706342__py3-none-any.whl → 3.14.0a1768432677__py3-none-any.whl

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 (71) hide show
  1. pulumi_consul/__init__.py +1 -1
  2. pulumi_consul/_inputs.py +1604 -1605
  3. pulumi_consul/acl_auth_method.py +174 -175
  4. pulumi_consul/acl_binding_rule.py +123 -124
  5. pulumi_consul/acl_policy.py +107 -108
  6. pulumi_consul/acl_role.py +95 -96
  7. pulumi_consul/acl_role_policy_attachment.py +35 -36
  8. pulumi_consul/acl_token.py +154 -155
  9. pulumi_consul/acl_token_policy_attachment.py +35 -36
  10. pulumi_consul/acl_token_role_attachment.py +35 -36
  11. pulumi_consul/admin_partition.py +82 -36
  12. pulumi_consul/agent_service.py +69 -70
  13. pulumi_consul/autopilot_config.py +137 -138
  14. pulumi_consul/catalog_entry.py +114 -73
  15. pulumi_consul/certificate_authority.py +44 -45
  16. pulumi_consul/config/__init__.py +1 -1
  17. pulumi_consul/config/__init__.pyi +6 -12
  18. pulumi_consul/config/outputs.py +24 -25
  19. pulumi_consul/config/vars.py +22 -28
  20. pulumi_consul/config_entry.py +86 -87
  21. pulumi_consul/config_entry_service_defaults.py +275 -224
  22. pulumi_consul/config_entry_service_intentions.py +75 -76
  23. pulumi_consul/config_entry_service_resolver.py +132 -133
  24. pulumi_consul/config_entry_service_router.py +72 -73
  25. pulumi_consul/config_entry_service_splitter.py +72 -73
  26. pulumi_consul/config_entry_v2_exported_services.py +137 -138
  27. pulumi_consul/get_acl_auth_method.py +36 -37
  28. pulumi_consul/get_acl_policy.py +27 -28
  29. pulumi_consul/get_acl_role.py +27 -28
  30. pulumi_consul/get_acl_token.py +32 -33
  31. pulumi_consul/get_acl_token_secret_id.py +29 -30
  32. pulumi_consul/get_agent_config.py +15 -16
  33. pulumi_consul/get_agent_self.py +149 -146
  34. pulumi_consul/get_autopilot_health.py +14 -15
  35. pulumi_consul/get_catalog_nodes.py +45 -12
  36. pulumi_consul/get_catalog_service.py +27 -28
  37. pulumi_consul/get_catalog_services.py +12 -13
  38. pulumi_consul/get_config_entry.py +29 -30
  39. pulumi_consul/get_config_entry_v2_exported_services.py +51 -52
  40. pulumi_consul/get_datacenters.py +73 -6
  41. pulumi_consul/get_key_prefix.py +38 -39
  42. pulumi_consul/get_keys.py +36 -37
  43. pulumi_consul/get_network_area_members.py +22 -23
  44. pulumi_consul/get_network_segments.py +17 -18
  45. pulumi_consul/get_nodes.py +45 -12
  46. pulumi_consul/get_peering.py +25 -26
  47. pulumi_consul/get_peerings.py +8 -9
  48. pulumi_consul/get_service.py +27 -28
  49. pulumi_consul/get_service_health.py +54 -51
  50. pulumi_consul/get_services.py +12 -13
  51. pulumi_consul/intention.py +137 -138
  52. pulumi_consul/key_prefix.py +106 -107
  53. pulumi_consul/keys.py +79 -80
  54. pulumi_consul/license.py +125 -126
  55. pulumi_consul/namespace.py +103 -104
  56. pulumi_consul/namespace_policy_attachment.py +35 -36
  57. pulumi_consul/namespace_role_attachment.py +35 -36
  58. pulumi_consul/network_area.py +86 -87
  59. pulumi_consul/node.py +99 -100
  60. pulumi_consul/outputs.py +1464 -1465
  61. pulumi_consul/peering.py +107 -108
  62. pulumi_consul/peering_token.py +74 -75
  63. pulumi_consul/prepared_query.py +231 -232
  64. pulumi_consul/provider.py +150 -169
  65. pulumi_consul/pulumi-plugin.json +1 -1
  66. pulumi_consul/service.py +251 -205
  67. {pulumi_consul-3.13.0a1749706342.dist-info → pulumi_consul-3.14.0a1768432677.dist-info}/METADATA +1 -1
  68. pulumi_consul-3.14.0a1768432677.dist-info/RECORD +72 -0
  69. pulumi_consul-3.13.0a1749706342.dist-info/RECORD +0 -72
  70. {pulumi_consul-3.13.0a1749706342.dist-info → pulumi_consul-3.14.0a1768432677.dist-info}/WHEEL +0 -0
  71. {pulumi_consul-3.13.0a1749706342.dist-info → pulumi_consul-3.14.0a1768432677.dist-info}/top_level.txt +0 -0
@@ -2,8 +2,7 @@
2
2
  # *** WARNING: this file was generated by pulumi-language-python. ***
3
3
  # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
 
5
- import builtins
6
- import copy
5
+ import builtins as _builtins
7
6
  import warnings
8
7
  import sys
9
8
  import pulumi
@@ -22,40 +21,40 @@ __all__ = ['PreparedQueryArgs', 'PreparedQuery']
22
21
  @pulumi.input_type
23
22
  class PreparedQueryArgs:
24
23
  def __init__(__self__, *,
25
- service: pulumi.Input[builtins.str],
26
- connect: Optional[pulumi.Input[builtins.bool]] = None,
27
- datacenter: Optional[pulumi.Input[builtins.str]] = None,
24
+ service: pulumi.Input[_builtins.str],
25
+ connect: Optional[pulumi.Input[_builtins.bool]] = None,
26
+ datacenter: Optional[pulumi.Input[_builtins.str]] = None,
28
27
  dns: Optional[pulumi.Input['PreparedQueryDnsArgs']] = None,
29
28
  failover: Optional[pulumi.Input['PreparedQueryFailoverArgs']] = None,
30
- ignore_check_ids: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
31
- name: Optional[pulumi.Input[builtins.str]] = None,
32
- near: Optional[pulumi.Input[builtins.str]] = None,
33
- node_meta: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]] = None,
34
- only_passing: Optional[pulumi.Input[builtins.bool]] = None,
35
- service_meta: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]] = None,
36
- session: Optional[pulumi.Input[builtins.str]] = None,
37
- stored_token: Optional[pulumi.Input[builtins.str]] = None,
38
- tags: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
29
+ ignore_check_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
30
+ name: Optional[pulumi.Input[_builtins.str]] = None,
31
+ near: Optional[pulumi.Input[_builtins.str]] = None,
32
+ node_meta: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
33
+ only_passing: Optional[pulumi.Input[_builtins.bool]] = None,
34
+ service_meta: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
35
+ session: Optional[pulumi.Input[_builtins.str]] = None,
36
+ stored_token: Optional[pulumi.Input[_builtins.str]] = None,
37
+ tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
39
38
  template: Optional[pulumi.Input['PreparedQueryTemplateArgs']] = None,
40
- token: Optional[pulumi.Input[builtins.str]] = None):
39
+ token: Optional[pulumi.Input[_builtins.str]] = None):
41
40
  """
42
41
  The set of arguments for constructing a PreparedQuery resource.
43
- :param pulumi.Input[builtins.str] service: The name of the service to query
44
- :param pulumi.Input[builtins.bool] connect: 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.
45
- :param pulumi.Input[builtins.str] datacenter: The datacenter to use. This overrides the agent's default datacenter and the datacenter in the provider setup.
42
+ :param pulumi.Input[_builtins.str] service: The name of the service to query
43
+ :param pulumi.Input[_builtins.bool] connect: 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.
44
+ :param pulumi.Input[_builtins.str] datacenter: The datacenter to use. This overrides the agent's default datacenter and the datacenter in the provider setup.
46
45
  :param pulumi.Input['PreparedQueryDnsArgs'] dns: Settings for controlling the DNS response details.
47
46
  :param pulumi.Input['PreparedQueryFailoverArgs'] failover: Options for controlling behavior when no healthy nodes are available in the local DC.
48
- :param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] ignore_check_ids: 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.
49
- :param pulumi.Input[builtins.str] name: 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.
50
- :param pulumi.Input[builtins.str] near: 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.
51
- :param pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]] node_meta: 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.
52
- :param pulumi.Input[builtins.bool] only_passing: When `true`, the prepared query will only return nodes with passing health checks in the result.
53
- :param pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]] service_meta: 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.
54
- :param pulumi.Input[builtins.str] session: 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.
55
- :param pulumi.Input[builtins.str] stored_token: The ACL token to store with the prepared query. This token will be used by default whenever the query is executed.
56
- :param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] tags: 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.
47
+ :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] ignore_check_ids: 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.
48
+ :param pulumi.Input[_builtins.str] name: 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.
49
+ :param pulumi.Input[_builtins.str] near: 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.
50
+ :param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] node_meta: 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.
51
+ :param pulumi.Input[_builtins.bool] only_passing: When `true`, the prepared query will only return nodes with passing health checks in the result.
52
+ :param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] service_meta: 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.
53
+ :param pulumi.Input[_builtins.str] session: 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.
54
+ :param pulumi.Input[_builtins.str] stored_token: The ACL token to store with the prepared query. This token will be used by default whenever the query is executed.
55
+ :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: 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.
57
56
  :param pulumi.Input['PreparedQueryTemplateArgs'] template: Query templating options. This is used to make a single prepared query respond to many different requests
58
- :param pulumi.Input[builtins.str] token: The ACL token to use when saving the prepared query. This overrides the token that the agent provides by default.
57
+ :param pulumi.Input[_builtins.str] token: The ACL token to use when saving the prepared query. This overrides the token that the agent provides by default.
59
58
  """
60
59
  pulumi.set(__self__, "service", service)
61
60
  if connect is not None:
@@ -94,43 +93,43 @@ Please use the token argument in the provider configuration""")
94
93
  if token is not None:
95
94
  pulumi.set(__self__, "token", token)
96
95
 
97
- @property
96
+ @_builtins.property
98
97
  @pulumi.getter
99
- def service(self) -> pulumi.Input[builtins.str]:
98
+ def service(self) -> pulumi.Input[_builtins.str]:
100
99
  """
101
100
  The name of the service to query
102
101
  """
103
102
  return pulumi.get(self, "service")
104
103
 
105
104
  @service.setter
106
- def service(self, value: pulumi.Input[builtins.str]):
105
+ def service(self, value: pulumi.Input[_builtins.str]):
107
106
  pulumi.set(self, "service", value)
108
107
 
109
- @property
108
+ @_builtins.property
110
109
  @pulumi.getter
111
- def connect(self) -> Optional[pulumi.Input[builtins.bool]]:
110
+ def connect(self) -> Optional[pulumi.Input[_builtins.bool]]:
112
111
  """
113
112
  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.
114
113
  """
115
114
  return pulumi.get(self, "connect")
116
115
 
117
116
  @connect.setter
118
- def connect(self, value: Optional[pulumi.Input[builtins.bool]]):
117
+ def connect(self, value: Optional[pulumi.Input[_builtins.bool]]):
119
118
  pulumi.set(self, "connect", value)
120
119
 
121
- @property
120
+ @_builtins.property
122
121
  @pulumi.getter
123
- def datacenter(self) -> Optional[pulumi.Input[builtins.str]]:
122
+ def datacenter(self) -> Optional[pulumi.Input[_builtins.str]]:
124
123
  """
125
124
  The datacenter to use. This overrides the agent's default datacenter and the datacenter in the provider setup.
126
125
  """
127
126
  return pulumi.get(self, "datacenter")
128
127
 
129
128
  @datacenter.setter
130
- def datacenter(self, value: Optional[pulumi.Input[builtins.str]]):
129
+ def datacenter(self, value: Optional[pulumi.Input[_builtins.str]]):
131
130
  pulumi.set(self, "datacenter", value)
132
131
 
133
- @property
132
+ @_builtins.property
134
133
  @pulumi.getter
135
134
  def dns(self) -> Optional[pulumi.Input['PreparedQueryDnsArgs']]:
136
135
  """
@@ -142,7 +141,7 @@ Please use the token argument in the provider configuration""")
142
141
  def dns(self, value: Optional[pulumi.Input['PreparedQueryDnsArgs']]):
143
142
  pulumi.set(self, "dns", value)
144
143
 
145
- @property
144
+ @_builtins.property
146
145
  @pulumi.getter
147
146
  def failover(self) -> Optional[pulumi.Input['PreparedQueryFailoverArgs']]:
148
147
  """
@@ -154,115 +153,115 @@ Please use the token argument in the provider configuration""")
154
153
  def failover(self, value: Optional[pulumi.Input['PreparedQueryFailoverArgs']]):
155
154
  pulumi.set(self, "failover", value)
156
155
 
157
- @property
156
+ @_builtins.property
158
157
  @pulumi.getter(name="ignoreCheckIds")
159
- def ignore_check_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]:
158
+ def ignore_check_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
160
159
  """
161
160
  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.
162
161
  """
163
162
  return pulumi.get(self, "ignore_check_ids")
164
163
 
165
164
  @ignore_check_ids.setter
166
- def ignore_check_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]):
165
+ def ignore_check_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
167
166
  pulumi.set(self, "ignore_check_ids", value)
168
167
 
169
- @property
168
+ @_builtins.property
170
169
  @pulumi.getter
171
- def name(self) -> Optional[pulumi.Input[builtins.str]]:
170
+ def name(self) -> Optional[pulumi.Input[_builtins.str]]:
172
171
  """
173
172
  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.
174
173
  """
175
174
  return pulumi.get(self, "name")
176
175
 
177
176
  @name.setter
178
- def name(self, value: Optional[pulumi.Input[builtins.str]]):
177
+ def name(self, value: Optional[pulumi.Input[_builtins.str]]):
179
178
  pulumi.set(self, "name", value)
180
179
 
181
- @property
180
+ @_builtins.property
182
181
  @pulumi.getter
183
- def near(self) -> Optional[pulumi.Input[builtins.str]]:
182
+ def near(self) -> Optional[pulumi.Input[_builtins.str]]:
184
183
  """
185
184
  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.
186
185
  """
187
186
  return pulumi.get(self, "near")
188
187
 
189
188
  @near.setter
190
- def near(self, value: Optional[pulumi.Input[builtins.str]]):
189
+ def near(self, value: Optional[pulumi.Input[_builtins.str]]):
191
190
  pulumi.set(self, "near", value)
192
191
 
193
- @property
192
+ @_builtins.property
194
193
  @pulumi.getter(name="nodeMeta")
195
- def node_meta(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]]:
194
+ def node_meta(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]:
196
195
  """
197
196
  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.
198
197
  """
199
198
  return pulumi.get(self, "node_meta")
200
199
 
201
200
  @node_meta.setter
202
- def node_meta(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]]):
201
+ def node_meta(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]):
203
202
  pulumi.set(self, "node_meta", value)
204
203
 
205
- @property
204
+ @_builtins.property
206
205
  @pulumi.getter(name="onlyPassing")
207
- def only_passing(self) -> Optional[pulumi.Input[builtins.bool]]:
206
+ def only_passing(self) -> Optional[pulumi.Input[_builtins.bool]]:
208
207
  """
209
208
  When `true`, the prepared query will only return nodes with passing health checks in the result.
210
209
  """
211
210
  return pulumi.get(self, "only_passing")
212
211
 
213
212
  @only_passing.setter
214
- def only_passing(self, value: Optional[pulumi.Input[builtins.bool]]):
213
+ def only_passing(self, value: Optional[pulumi.Input[_builtins.bool]]):
215
214
  pulumi.set(self, "only_passing", value)
216
215
 
217
- @property
216
+ @_builtins.property
218
217
  @pulumi.getter(name="serviceMeta")
219
- def service_meta(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]]:
218
+ def service_meta(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]:
220
219
  """
221
220
  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.
222
221
  """
223
222
  return pulumi.get(self, "service_meta")
224
223
 
225
224
  @service_meta.setter
226
- def service_meta(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]]):
225
+ def service_meta(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]):
227
226
  pulumi.set(self, "service_meta", value)
228
227
 
229
- @property
228
+ @_builtins.property
230
229
  @pulumi.getter
231
- def session(self) -> Optional[pulumi.Input[builtins.str]]:
230
+ def session(self) -> Optional[pulumi.Input[_builtins.str]]:
232
231
  """
233
232
  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.
234
233
  """
235
234
  return pulumi.get(self, "session")
236
235
 
237
236
  @session.setter
238
- def session(self, value: Optional[pulumi.Input[builtins.str]]):
237
+ def session(self, value: Optional[pulumi.Input[_builtins.str]]):
239
238
  pulumi.set(self, "session", value)
240
239
 
241
- @property
240
+ @_builtins.property
242
241
  @pulumi.getter(name="storedToken")
243
- def stored_token(self) -> Optional[pulumi.Input[builtins.str]]:
242
+ def stored_token(self) -> Optional[pulumi.Input[_builtins.str]]:
244
243
  """
245
244
  The ACL token to store with the prepared query. This token will be used by default whenever the query is executed.
246
245
  """
247
246
  return pulumi.get(self, "stored_token")
248
247
 
249
248
  @stored_token.setter
250
- def stored_token(self, value: Optional[pulumi.Input[builtins.str]]):
249
+ def stored_token(self, value: Optional[pulumi.Input[_builtins.str]]):
251
250
  pulumi.set(self, "stored_token", value)
252
251
 
253
- @property
252
+ @_builtins.property
254
253
  @pulumi.getter
255
- def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]:
254
+ def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
256
255
  """
257
256
  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.
258
257
  """
259
258
  return pulumi.get(self, "tags")
260
259
 
261
260
  @tags.setter
262
- def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]):
261
+ def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
263
262
  pulumi.set(self, "tags", value)
264
263
 
265
- @property
264
+ @_builtins.property
266
265
  @pulumi.getter
267
266
  def template(self) -> Optional[pulumi.Input['PreparedQueryTemplateArgs']]:
268
267
  """
@@ -274,58 +273,58 @@ Please use the token argument in the provider configuration""")
274
273
  def template(self, value: Optional[pulumi.Input['PreparedQueryTemplateArgs']]):
275
274
  pulumi.set(self, "template", value)
276
275
 
277
- @property
276
+ @_builtins.property
278
277
  @pulumi.getter
279
278
  @_utilities.deprecated("""The token argument has been deprecated and will be removed in a future release.
280
279
  Please use the token argument in the provider configuration""")
281
- def token(self) -> Optional[pulumi.Input[builtins.str]]:
280
+ def token(self) -> Optional[pulumi.Input[_builtins.str]]:
282
281
  """
283
282
  The ACL token to use when saving the prepared query. This overrides the token that the agent provides by default.
284
283
  """
285
284
  return pulumi.get(self, "token")
286
285
 
287
286
  @token.setter
288
- def token(self, value: Optional[pulumi.Input[builtins.str]]):
287
+ def token(self, value: Optional[pulumi.Input[_builtins.str]]):
289
288
  pulumi.set(self, "token", value)
290
289
 
291
290
 
292
291
  @pulumi.input_type
293
292
  class _PreparedQueryState:
294
293
  def __init__(__self__, *,
295
- connect: Optional[pulumi.Input[builtins.bool]] = None,
296
- datacenter: Optional[pulumi.Input[builtins.str]] = None,
294
+ connect: Optional[pulumi.Input[_builtins.bool]] = None,
295
+ datacenter: Optional[pulumi.Input[_builtins.str]] = None,
297
296
  dns: Optional[pulumi.Input['PreparedQueryDnsArgs']] = None,
298
297
  failover: Optional[pulumi.Input['PreparedQueryFailoverArgs']] = None,
299
- ignore_check_ids: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
300
- name: Optional[pulumi.Input[builtins.str]] = None,
301
- near: Optional[pulumi.Input[builtins.str]] = None,
302
- node_meta: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]] = None,
303
- only_passing: Optional[pulumi.Input[builtins.bool]] = None,
304
- service: Optional[pulumi.Input[builtins.str]] = None,
305
- service_meta: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]] = None,
306
- session: Optional[pulumi.Input[builtins.str]] = None,
307
- stored_token: Optional[pulumi.Input[builtins.str]] = None,
308
- tags: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
298
+ ignore_check_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
299
+ name: Optional[pulumi.Input[_builtins.str]] = None,
300
+ near: Optional[pulumi.Input[_builtins.str]] = None,
301
+ node_meta: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
302
+ only_passing: Optional[pulumi.Input[_builtins.bool]] = None,
303
+ service: Optional[pulumi.Input[_builtins.str]] = None,
304
+ service_meta: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
305
+ session: Optional[pulumi.Input[_builtins.str]] = None,
306
+ stored_token: Optional[pulumi.Input[_builtins.str]] = None,
307
+ tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
309
308
  template: Optional[pulumi.Input['PreparedQueryTemplateArgs']] = None,
310
- token: Optional[pulumi.Input[builtins.str]] = None):
309
+ token: Optional[pulumi.Input[_builtins.str]] = None):
311
310
  """
312
311
  Input properties used for looking up and filtering PreparedQuery resources.
313
- :param pulumi.Input[builtins.bool] connect: 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.
314
- :param pulumi.Input[builtins.str] datacenter: The datacenter to use. This overrides the agent's default datacenter and the datacenter in the provider setup.
312
+ :param pulumi.Input[_builtins.bool] connect: 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.
313
+ :param pulumi.Input[_builtins.str] datacenter: The datacenter to use. This overrides the agent's default datacenter and the datacenter in the provider setup.
315
314
  :param pulumi.Input['PreparedQueryDnsArgs'] dns: Settings for controlling the DNS response details.
316
315
  :param pulumi.Input['PreparedQueryFailoverArgs'] failover: Options for controlling behavior when no healthy nodes are available in the local DC.
317
- :param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] ignore_check_ids: 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.
318
- :param pulumi.Input[builtins.str] name: 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.
319
- :param pulumi.Input[builtins.str] near: 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.
320
- :param pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]] node_meta: 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.
321
- :param pulumi.Input[builtins.bool] only_passing: When `true`, the prepared query will only return nodes with passing health checks in the result.
322
- :param pulumi.Input[builtins.str] service: The name of the service to query
323
- :param pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]] service_meta: 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.
324
- :param pulumi.Input[builtins.str] session: 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.
325
- :param pulumi.Input[builtins.str] stored_token: The ACL token to store with the prepared query. This token will be used by default whenever the query is executed.
326
- :param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] tags: 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.
316
+ :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] ignore_check_ids: 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.
317
+ :param pulumi.Input[_builtins.str] name: 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.
318
+ :param pulumi.Input[_builtins.str] near: 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.
319
+ :param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] node_meta: 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.
320
+ :param pulumi.Input[_builtins.bool] only_passing: When `true`, the prepared query will only return nodes with passing health checks in the result.
321
+ :param pulumi.Input[_builtins.str] service: The name of the service to query
322
+ :param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] service_meta: 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.
323
+ :param pulumi.Input[_builtins.str] session: 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.
324
+ :param pulumi.Input[_builtins.str] stored_token: The ACL token to store with the prepared query. This token will be used by default whenever the query is executed.
325
+ :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: 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.
327
326
  :param pulumi.Input['PreparedQueryTemplateArgs'] template: Query templating options. This is used to make a single prepared query respond to many different requests
328
- :param pulumi.Input[builtins.str] token: The ACL token to use when saving the prepared query. This overrides the token that the agent provides by default.
327
+ :param pulumi.Input[_builtins.str] token: The ACL token to use when saving the prepared query. This overrides the token that the agent provides by default.
329
328
  """
330
329
  if connect is not None:
331
330
  pulumi.set(__self__, "connect", connect)
@@ -365,31 +364,31 @@ Please use the token argument in the provider configuration""")
365
364
  if token is not None:
366
365
  pulumi.set(__self__, "token", token)
367
366
 
368
- @property
367
+ @_builtins.property
369
368
  @pulumi.getter
370
- def connect(self) -> Optional[pulumi.Input[builtins.bool]]:
369
+ def connect(self) -> Optional[pulumi.Input[_builtins.bool]]:
371
370
  """
372
371
  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.
373
372
  """
374
373
  return pulumi.get(self, "connect")
375
374
 
376
375
  @connect.setter
377
- def connect(self, value: Optional[pulumi.Input[builtins.bool]]):
376
+ def connect(self, value: Optional[pulumi.Input[_builtins.bool]]):
378
377
  pulumi.set(self, "connect", value)
379
378
 
380
- @property
379
+ @_builtins.property
381
380
  @pulumi.getter
382
- def datacenter(self) -> Optional[pulumi.Input[builtins.str]]:
381
+ def datacenter(self) -> Optional[pulumi.Input[_builtins.str]]:
383
382
  """
384
383
  The datacenter to use. This overrides the agent's default datacenter and the datacenter in the provider setup.
385
384
  """
386
385
  return pulumi.get(self, "datacenter")
387
386
 
388
387
  @datacenter.setter
389
- def datacenter(self, value: Optional[pulumi.Input[builtins.str]]):
388
+ def datacenter(self, value: Optional[pulumi.Input[_builtins.str]]):
390
389
  pulumi.set(self, "datacenter", value)
391
390
 
392
- @property
391
+ @_builtins.property
393
392
  @pulumi.getter
394
393
  def dns(self) -> Optional[pulumi.Input['PreparedQueryDnsArgs']]:
395
394
  """
@@ -401,7 +400,7 @@ Please use the token argument in the provider configuration""")
401
400
  def dns(self, value: Optional[pulumi.Input['PreparedQueryDnsArgs']]):
402
401
  pulumi.set(self, "dns", value)
403
402
 
404
- @property
403
+ @_builtins.property
405
404
  @pulumi.getter
406
405
  def failover(self) -> Optional[pulumi.Input['PreparedQueryFailoverArgs']]:
407
406
  """
@@ -413,127 +412,127 @@ Please use the token argument in the provider configuration""")
413
412
  def failover(self, value: Optional[pulumi.Input['PreparedQueryFailoverArgs']]):
414
413
  pulumi.set(self, "failover", value)
415
414
 
416
- @property
415
+ @_builtins.property
417
416
  @pulumi.getter(name="ignoreCheckIds")
418
- def ignore_check_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]:
417
+ def ignore_check_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
419
418
  """
420
419
  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.
421
420
  """
422
421
  return pulumi.get(self, "ignore_check_ids")
423
422
 
424
423
  @ignore_check_ids.setter
425
- def ignore_check_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]):
424
+ def ignore_check_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
426
425
  pulumi.set(self, "ignore_check_ids", value)
427
426
 
428
- @property
427
+ @_builtins.property
429
428
  @pulumi.getter
430
- def name(self) -> Optional[pulumi.Input[builtins.str]]:
429
+ def name(self) -> Optional[pulumi.Input[_builtins.str]]:
431
430
  """
432
431
  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.
433
432
  """
434
433
  return pulumi.get(self, "name")
435
434
 
436
435
  @name.setter
437
- def name(self, value: Optional[pulumi.Input[builtins.str]]):
436
+ def name(self, value: Optional[pulumi.Input[_builtins.str]]):
438
437
  pulumi.set(self, "name", value)
439
438
 
440
- @property
439
+ @_builtins.property
441
440
  @pulumi.getter
442
- def near(self) -> Optional[pulumi.Input[builtins.str]]:
441
+ def near(self) -> Optional[pulumi.Input[_builtins.str]]:
443
442
  """
444
443
  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.
445
444
  """
446
445
  return pulumi.get(self, "near")
447
446
 
448
447
  @near.setter
449
- def near(self, value: Optional[pulumi.Input[builtins.str]]):
448
+ def near(self, value: Optional[pulumi.Input[_builtins.str]]):
450
449
  pulumi.set(self, "near", value)
451
450
 
452
- @property
451
+ @_builtins.property
453
452
  @pulumi.getter(name="nodeMeta")
454
- def node_meta(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]]:
453
+ def node_meta(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]:
455
454
  """
456
455
  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.
457
456
  """
458
457
  return pulumi.get(self, "node_meta")
459
458
 
460
459
  @node_meta.setter
461
- def node_meta(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]]):
460
+ def node_meta(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]):
462
461
  pulumi.set(self, "node_meta", value)
463
462
 
464
- @property
463
+ @_builtins.property
465
464
  @pulumi.getter(name="onlyPassing")
466
- def only_passing(self) -> Optional[pulumi.Input[builtins.bool]]:
465
+ def only_passing(self) -> Optional[pulumi.Input[_builtins.bool]]:
467
466
  """
468
467
  When `true`, the prepared query will only return nodes with passing health checks in the result.
469
468
  """
470
469
  return pulumi.get(self, "only_passing")
471
470
 
472
471
  @only_passing.setter
473
- def only_passing(self, value: Optional[pulumi.Input[builtins.bool]]):
472
+ def only_passing(self, value: Optional[pulumi.Input[_builtins.bool]]):
474
473
  pulumi.set(self, "only_passing", value)
475
474
 
476
- @property
475
+ @_builtins.property
477
476
  @pulumi.getter
478
- def service(self) -> Optional[pulumi.Input[builtins.str]]:
477
+ def service(self) -> Optional[pulumi.Input[_builtins.str]]:
479
478
  """
480
479
  The name of the service to query
481
480
  """
482
481
  return pulumi.get(self, "service")
483
482
 
484
483
  @service.setter
485
- def service(self, value: Optional[pulumi.Input[builtins.str]]):
484
+ def service(self, value: Optional[pulumi.Input[_builtins.str]]):
486
485
  pulumi.set(self, "service", value)
487
486
 
488
- @property
487
+ @_builtins.property
489
488
  @pulumi.getter(name="serviceMeta")
490
- def service_meta(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]]:
489
+ def service_meta(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]:
491
490
  """
492
491
  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.
493
492
  """
494
493
  return pulumi.get(self, "service_meta")
495
494
 
496
495
  @service_meta.setter
497
- def service_meta(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]]):
496
+ def service_meta(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]):
498
497
  pulumi.set(self, "service_meta", value)
499
498
 
500
- @property
499
+ @_builtins.property
501
500
  @pulumi.getter
502
- def session(self) -> Optional[pulumi.Input[builtins.str]]:
501
+ def session(self) -> Optional[pulumi.Input[_builtins.str]]:
503
502
  """
504
503
  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.
505
504
  """
506
505
  return pulumi.get(self, "session")
507
506
 
508
507
  @session.setter
509
- def session(self, value: Optional[pulumi.Input[builtins.str]]):
508
+ def session(self, value: Optional[pulumi.Input[_builtins.str]]):
510
509
  pulumi.set(self, "session", value)
511
510
 
512
- @property
511
+ @_builtins.property
513
512
  @pulumi.getter(name="storedToken")
514
- def stored_token(self) -> Optional[pulumi.Input[builtins.str]]:
513
+ def stored_token(self) -> Optional[pulumi.Input[_builtins.str]]:
515
514
  """
516
515
  The ACL token to store with the prepared query. This token will be used by default whenever the query is executed.
517
516
  """
518
517
  return pulumi.get(self, "stored_token")
519
518
 
520
519
  @stored_token.setter
521
- def stored_token(self, value: Optional[pulumi.Input[builtins.str]]):
520
+ def stored_token(self, value: Optional[pulumi.Input[_builtins.str]]):
522
521
  pulumi.set(self, "stored_token", value)
523
522
 
524
- @property
523
+ @_builtins.property
525
524
  @pulumi.getter
526
- def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]:
525
+ def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
527
526
  """
528
527
  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.
529
528
  """
530
529
  return pulumi.get(self, "tags")
531
530
 
532
531
  @tags.setter
533
- def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]):
532
+ def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
534
533
  pulumi.set(self, "tags", value)
535
534
 
536
- @property
535
+ @_builtins.property
537
536
  @pulumi.getter
538
537
  def template(self) -> Optional[pulumi.Input['PreparedQueryTemplateArgs']]:
539
538
  """
@@ -545,18 +544,18 @@ Please use the token argument in the provider configuration""")
545
544
  def template(self, value: Optional[pulumi.Input['PreparedQueryTemplateArgs']]):
546
545
  pulumi.set(self, "template", value)
547
546
 
548
- @property
547
+ @_builtins.property
549
548
  @pulumi.getter
550
549
  @_utilities.deprecated("""The token argument has been deprecated and will be removed in a future release.
551
550
  Please use the token argument in the provider configuration""")
552
- def token(self) -> Optional[pulumi.Input[builtins.str]]:
551
+ def token(self) -> Optional[pulumi.Input[_builtins.str]]:
553
552
  """
554
553
  The ACL token to use when saving the prepared query. This overrides the token that the agent provides by default.
555
554
  """
556
555
  return pulumi.get(self, "token")
557
556
 
558
557
  @token.setter
559
- def token(self, value: Optional[pulumi.Input[builtins.str]]):
558
+ def token(self, value: Optional[pulumi.Input[_builtins.str]]):
560
559
  pulumi.set(self, "token", value)
561
560
 
562
561
 
@@ -566,22 +565,22 @@ class PreparedQuery(pulumi.CustomResource):
566
565
  def __init__(__self__,
567
566
  resource_name: str,
568
567
  opts: Optional[pulumi.ResourceOptions] = None,
569
- connect: Optional[pulumi.Input[builtins.bool]] = None,
570
- datacenter: Optional[pulumi.Input[builtins.str]] = None,
568
+ connect: Optional[pulumi.Input[_builtins.bool]] = None,
569
+ datacenter: Optional[pulumi.Input[_builtins.str]] = None,
571
570
  dns: Optional[pulumi.Input[Union['PreparedQueryDnsArgs', 'PreparedQueryDnsArgsDict']]] = None,
572
571
  failover: Optional[pulumi.Input[Union['PreparedQueryFailoverArgs', 'PreparedQueryFailoverArgsDict']]] = None,
573
- ignore_check_ids: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
574
- name: Optional[pulumi.Input[builtins.str]] = None,
575
- near: Optional[pulumi.Input[builtins.str]] = None,
576
- node_meta: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]] = None,
577
- only_passing: Optional[pulumi.Input[builtins.bool]] = None,
578
- service: Optional[pulumi.Input[builtins.str]] = None,
579
- service_meta: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]] = None,
580
- session: Optional[pulumi.Input[builtins.str]] = None,
581
- stored_token: Optional[pulumi.Input[builtins.str]] = None,
582
- tags: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
572
+ ignore_check_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
573
+ name: Optional[pulumi.Input[_builtins.str]] = None,
574
+ near: Optional[pulumi.Input[_builtins.str]] = None,
575
+ node_meta: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
576
+ only_passing: Optional[pulumi.Input[_builtins.bool]] = None,
577
+ service: Optional[pulumi.Input[_builtins.str]] = None,
578
+ service_meta: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
579
+ session: Optional[pulumi.Input[_builtins.str]] = None,
580
+ stored_token: Optional[pulumi.Input[_builtins.str]] = None,
581
+ tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
583
582
  template: Optional[pulumi.Input[Union['PreparedQueryTemplateArgs', 'PreparedQueryTemplateArgsDict']]] = None,
584
- token: Optional[pulumi.Input[builtins.str]] = None,
583
+ token: Optional[pulumi.Input[_builtins.str]] = None,
585
584
  __props__=None):
586
585
  """
587
586
  ## Example Usage
@@ -653,22 +652,22 @@ class PreparedQuery(pulumi.CustomResource):
653
652
 
654
653
  :param str resource_name: The name of the resource.
655
654
  :param pulumi.ResourceOptions opts: Options for the resource.
656
- :param pulumi.Input[builtins.bool] connect: 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.
657
- :param pulumi.Input[builtins.str] datacenter: The datacenter to use. This overrides the agent's default datacenter and the datacenter in the provider setup.
655
+ :param pulumi.Input[_builtins.bool] connect: 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.
656
+ :param pulumi.Input[_builtins.str] datacenter: The datacenter to use. This overrides the agent's default datacenter and the datacenter in the provider setup.
658
657
  :param pulumi.Input[Union['PreparedQueryDnsArgs', 'PreparedQueryDnsArgsDict']] dns: Settings for controlling the DNS response details.
659
658
  :param pulumi.Input[Union['PreparedQueryFailoverArgs', 'PreparedQueryFailoverArgsDict']] failover: Options for controlling behavior when no healthy nodes are available in the local DC.
660
- :param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] ignore_check_ids: 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.
661
- :param pulumi.Input[builtins.str] name: 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.
662
- :param pulumi.Input[builtins.str] near: 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.
663
- :param pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]] node_meta: 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.
664
- :param pulumi.Input[builtins.bool] only_passing: When `true`, the prepared query will only return nodes with passing health checks in the result.
665
- :param pulumi.Input[builtins.str] service: The name of the service to query
666
- :param pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]] service_meta: 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.
667
- :param pulumi.Input[builtins.str] session: 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.
668
- :param pulumi.Input[builtins.str] stored_token: The ACL token to store with the prepared query. This token will be used by default whenever the query is executed.
669
- :param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] tags: 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.
659
+ :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] ignore_check_ids: 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.
660
+ :param pulumi.Input[_builtins.str] name: 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.
661
+ :param pulumi.Input[_builtins.str] near: 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.
662
+ :param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] node_meta: 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.
663
+ :param pulumi.Input[_builtins.bool] only_passing: When `true`, the prepared query will only return nodes with passing health checks in the result.
664
+ :param pulumi.Input[_builtins.str] service: The name of the service to query
665
+ :param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] service_meta: 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.
666
+ :param pulumi.Input[_builtins.str] session: 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.
667
+ :param pulumi.Input[_builtins.str] stored_token: The ACL token to store with the prepared query. This token will be used by default whenever the query is executed.
668
+ :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: 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.
670
669
  :param pulumi.Input[Union['PreparedQueryTemplateArgs', 'PreparedQueryTemplateArgsDict']] template: Query templating options. This is used to make a single prepared query respond to many different requests
671
- :param pulumi.Input[builtins.str] token: The ACL token to use when saving the prepared query. This overrides the token that the agent provides by default.
670
+ :param pulumi.Input[_builtins.str] token: The ACL token to use when saving the prepared query. This overrides the token that the agent provides by default.
672
671
  """
673
672
  ...
674
673
  @overload
@@ -759,22 +758,22 @@ class PreparedQuery(pulumi.CustomResource):
759
758
  def _internal_init(__self__,
760
759
  resource_name: str,
761
760
  opts: Optional[pulumi.ResourceOptions] = None,
762
- connect: Optional[pulumi.Input[builtins.bool]] = None,
763
- datacenter: Optional[pulumi.Input[builtins.str]] = None,
761
+ connect: Optional[pulumi.Input[_builtins.bool]] = None,
762
+ datacenter: Optional[pulumi.Input[_builtins.str]] = None,
764
763
  dns: Optional[pulumi.Input[Union['PreparedQueryDnsArgs', 'PreparedQueryDnsArgsDict']]] = None,
765
764
  failover: Optional[pulumi.Input[Union['PreparedQueryFailoverArgs', 'PreparedQueryFailoverArgsDict']]] = None,
766
- ignore_check_ids: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
767
- name: Optional[pulumi.Input[builtins.str]] = None,
768
- near: Optional[pulumi.Input[builtins.str]] = None,
769
- node_meta: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]] = None,
770
- only_passing: Optional[pulumi.Input[builtins.bool]] = None,
771
- service: Optional[pulumi.Input[builtins.str]] = None,
772
- service_meta: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]] = None,
773
- session: Optional[pulumi.Input[builtins.str]] = None,
774
- stored_token: Optional[pulumi.Input[builtins.str]] = None,
775
- tags: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
765
+ ignore_check_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
766
+ name: Optional[pulumi.Input[_builtins.str]] = None,
767
+ near: Optional[pulumi.Input[_builtins.str]] = None,
768
+ node_meta: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
769
+ only_passing: Optional[pulumi.Input[_builtins.bool]] = None,
770
+ service: Optional[pulumi.Input[_builtins.str]] = None,
771
+ service_meta: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
772
+ session: Optional[pulumi.Input[_builtins.str]] = None,
773
+ stored_token: Optional[pulumi.Input[_builtins.str]] = None,
774
+ tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
776
775
  template: Optional[pulumi.Input[Union['PreparedQueryTemplateArgs', 'PreparedQueryTemplateArgsDict']]] = None,
777
- token: Optional[pulumi.Input[builtins.str]] = None,
776
+ token: Optional[pulumi.Input[_builtins.str]] = None,
778
777
  __props__=None):
779
778
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
780
779
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -814,22 +813,22 @@ class PreparedQuery(pulumi.CustomResource):
814
813
  def get(resource_name: str,
815
814
  id: pulumi.Input[str],
816
815
  opts: Optional[pulumi.ResourceOptions] = None,
817
- connect: Optional[pulumi.Input[builtins.bool]] = None,
818
- datacenter: Optional[pulumi.Input[builtins.str]] = None,
816
+ connect: Optional[pulumi.Input[_builtins.bool]] = None,
817
+ datacenter: Optional[pulumi.Input[_builtins.str]] = None,
819
818
  dns: Optional[pulumi.Input[Union['PreparedQueryDnsArgs', 'PreparedQueryDnsArgsDict']]] = None,
820
819
  failover: Optional[pulumi.Input[Union['PreparedQueryFailoverArgs', 'PreparedQueryFailoverArgsDict']]] = None,
821
- ignore_check_ids: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
822
- name: Optional[pulumi.Input[builtins.str]] = None,
823
- near: Optional[pulumi.Input[builtins.str]] = None,
824
- node_meta: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]] = None,
825
- only_passing: Optional[pulumi.Input[builtins.bool]] = None,
826
- service: Optional[pulumi.Input[builtins.str]] = None,
827
- service_meta: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]] = None,
828
- session: Optional[pulumi.Input[builtins.str]] = None,
829
- stored_token: Optional[pulumi.Input[builtins.str]] = None,
830
- tags: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
820
+ ignore_check_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
821
+ name: Optional[pulumi.Input[_builtins.str]] = None,
822
+ near: Optional[pulumi.Input[_builtins.str]] = None,
823
+ node_meta: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
824
+ only_passing: Optional[pulumi.Input[_builtins.bool]] = None,
825
+ service: Optional[pulumi.Input[_builtins.str]] = None,
826
+ service_meta: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
827
+ session: Optional[pulumi.Input[_builtins.str]] = None,
828
+ stored_token: Optional[pulumi.Input[_builtins.str]] = None,
829
+ tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
831
830
  template: Optional[pulumi.Input[Union['PreparedQueryTemplateArgs', 'PreparedQueryTemplateArgsDict']]] = None,
832
- token: Optional[pulumi.Input[builtins.str]] = None) -> 'PreparedQuery':
831
+ token: Optional[pulumi.Input[_builtins.str]] = None) -> 'PreparedQuery':
833
832
  """
834
833
  Get an existing PreparedQuery resource's state with the given name, id, and optional extra
835
834
  properties used to qualify the lookup.
@@ -837,22 +836,22 @@ class PreparedQuery(pulumi.CustomResource):
837
836
  :param str resource_name: The unique name of the resulting resource.
838
837
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
839
838
  :param pulumi.ResourceOptions opts: Options for the resource.
840
- :param pulumi.Input[builtins.bool] connect: 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.
841
- :param pulumi.Input[builtins.str] datacenter: The datacenter to use. This overrides the agent's default datacenter and the datacenter in the provider setup.
839
+ :param pulumi.Input[_builtins.bool] connect: 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.
840
+ :param pulumi.Input[_builtins.str] datacenter: The datacenter to use. This overrides the agent's default datacenter and the datacenter in the provider setup.
842
841
  :param pulumi.Input[Union['PreparedQueryDnsArgs', 'PreparedQueryDnsArgsDict']] dns: Settings for controlling the DNS response details.
843
842
  :param pulumi.Input[Union['PreparedQueryFailoverArgs', 'PreparedQueryFailoverArgsDict']] failover: Options for controlling behavior when no healthy nodes are available in the local DC.
844
- :param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] ignore_check_ids: 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.
845
- :param pulumi.Input[builtins.str] name: 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.
846
- :param pulumi.Input[builtins.str] near: 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.
847
- :param pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]] node_meta: 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.
848
- :param pulumi.Input[builtins.bool] only_passing: When `true`, the prepared query will only return nodes with passing health checks in the result.
849
- :param pulumi.Input[builtins.str] service: The name of the service to query
850
- :param pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]] service_meta: 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.
851
- :param pulumi.Input[builtins.str] session: 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.
852
- :param pulumi.Input[builtins.str] stored_token: The ACL token to store with the prepared query. This token will be used by default whenever the query is executed.
853
- :param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] tags: 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.
843
+ :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] ignore_check_ids: 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.
844
+ :param pulumi.Input[_builtins.str] name: 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.
845
+ :param pulumi.Input[_builtins.str] near: 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.
846
+ :param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] node_meta: 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.
847
+ :param pulumi.Input[_builtins.bool] only_passing: When `true`, the prepared query will only return nodes with passing health checks in the result.
848
+ :param pulumi.Input[_builtins.str] service: The name of the service to query
849
+ :param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] service_meta: 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.
850
+ :param pulumi.Input[_builtins.str] session: 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.
851
+ :param pulumi.Input[_builtins.str] stored_token: The ACL token to store with the prepared query. This token will be used by default whenever the query is executed.
852
+ :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: 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.
854
853
  :param pulumi.Input[Union['PreparedQueryTemplateArgs', 'PreparedQueryTemplateArgsDict']] template: Query templating options. This is used to make a single prepared query respond to many different requests
855
- :param pulumi.Input[builtins.str] token: The ACL token to use when saving the prepared query. This overrides the token that the agent provides by default.
854
+ :param pulumi.Input[_builtins.str] token: The ACL token to use when saving the prepared query. This overrides the token that the agent provides by default.
856
855
  """
857
856
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
858
857
 
@@ -876,23 +875,23 @@ class PreparedQuery(pulumi.CustomResource):
876
875
  __props__.__dict__["token"] = token
877
876
  return PreparedQuery(resource_name, opts=opts, __props__=__props__)
878
877
 
879
- @property
878
+ @_builtins.property
880
879
  @pulumi.getter
881
- def connect(self) -> pulumi.Output[Optional[builtins.bool]]:
880
+ def connect(self) -> pulumi.Output[Optional[_builtins.bool]]:
882
881
  """
883
882
  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.
884
883
  """
885
884
  return pulumi.get(self, "connect")
886
885
 
887
- @property
886
+ @_builtins.property
888
887
  @pulumi.getter
889
- def datacenter(self) -> pulumi.Output[Optional[builtins.str]]:
888
+ def datacenter(self) -> pulumi.Output[Optional[_builtins.str]]:
890
889
  """
891
890
  The datacenter to use. This overrides the agent's default datacenter and the datacenter in the provider setup.
892
891
  """
893
892
  return pulumi.get(self, "datacenter")
894
893
 
895
- @property
894
+ @_builtins.property
896
895
  @pulumi.getter
897
896
  def dns(self) -> pulumi.Output[Optional['outputs.PreparedQueryDns']]:
898
897
  """
@@ -900,7 +899,7 @@ class PreparedQuery(pulumi.CustomResource):
900
899
  """
901
900
  return pulumi.get(self, "dns")
902
901
 
903
- @property
902
+ @_builtins.property
904
903
  @pulumi.getter
905
904
  def failover(self) -> pulumi.Output[Optional['outputs.PreparedQueryFailover']]:
906
905
  """
@@ -908,87 +907,87 @@ class PreparedQuery(pulumi.CustomResource):
908
907
  """
909
908
  return pulumi.get(self, "failover")
910
909
 
911
- @property
910
+ @_builtins.property
912
911
  @pulumi.getter(name="ignoreCheckIds")
913
- def ignore_check_ids(self) -> pulumi.Output[Optional[Sequence[builtins.str]]]:
912
+ def ignore_check_ids(self) -> pulumi.Output[Optional[Sequence[_builtins.str]]]:
914
913
  """
915
914
  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.
916
915
  """
917
916
  return pulumi.get(self, "ignore_check_ids")
918
917
 
919
- @property
918
+ @_builtins.property
920
919
  @pulumi.getter
921
- def name(self) -> pulumi.Output[builtins.str]:
920
+ def name(self) -> pulumi.Output[_builtins.str]:
922
921
  """
923
922
  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.
924
923
  """
925
924
  return pulumi.get(self, "name")
926
925
 
927
- @property
926
+ @_builtins.property
928
927
  @pulumi.getter
929
- def near(self) -> pulumi.Output[Optional[builtins.str]]:
928
+ def near(self) -> pulumi.Output[Optional[_builtins.str]]:
930
929
  """
931
930
  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.
932
931
  """
933
932
  return pulumi.get(self, "near")
934
933
 
935
- @property
934
+ @_builtins.property
936
935
  @pulumi.getter(name="nodeMeta")
937
- def node_meta(self) -> pulumi.Output[Optional[Mapping[str, builtins.str]]]:
936
+ def node_meta(self) -> pulumi.Output[Optional[Mapping[str, _builtins.str]]]:
938
937
  """
939
938
  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.
940
939
  """
941
940
  return pulumi.get(self, "node_meta")
942
941
 
943
- @property
942
+ @_builtins.property
944
943
  @pulumi.getter(name="onlyPassing")
945
- def only_passing(self) -> pulumi.Output[Optional[builtins.bool]]:
944
+ def only_passing(self) -> pulumi.Output[Optional[_builtins.bool]]:
946
945
  """
947
946
  When `true`, the prepared query will only return nodes with passing health checks in the result.
948
947
  """
949
948
  return pulumi.get(self, "only_passing")
950
949
 
951
- @property
950
+ @_builtins.property
952
951
  @pulumi.getter
953
- def service(self) -> pulumi.Output[builtins.str]:
952
+ def service(self) -> pulumi.Output[_builtins.str]:
954
953
  """
955
954
  The name of the service to query
956
955
  """
957
956
  return pulumi.get(self, "service")
958
957
 
959
- @property
958
+ @_builtins.property
960
959
  @pulumi.getter(name="serviceMeta")
961
- def service_meta(self) -> pulumi.Output[Optional[Mapping[str, builtins.str]]]:
960
+ def service_meta(self) -> pulumi.Output[Optional[Mapping[str, _builtins.str]]]:
962
961
  """
963
962
  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.
964
963
  """
965
964
  return pulumi.get(self, "service_meta")
966
965
 
967
- @property
966
+ @_builtins.property
968
967
  @pulumi.getter
969
- def session(self) -> pulumi.Output[Optional[builtins.str]]:
968
+ def session(self) -> pulumi.Output[Optional[_builtins.str]]:
970
969
  """
971
970
  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.
972
971
  """
973
972
  return pulumi.get(self, "session")
974
973
 
975
- @property
974
+ @_builtins.property
976
975
  @pulumi.getter(name="storedToken")
977
- def stored_token(self) -> pulumi.Output[Optional[builtins.str]]:
976
+ def stored_token(self) -> pulumi.Output[Optional[_builtins.str]]:
978
977
  """
979
978
  The ACL token to store with the prepared query. This token will be used by default whenever the query is executed.
980
979
  """
981
980
  return pulumi.get(self, "stored_token")
982
981
 
983
- @property
982
+ @_builtins.property
984
983
  @pulumi.getter
985
- def tags(self) -> pulumi.Output[Optional[Sequence[builtins.str]]]:
984
+ def tags(self) -> pulumi.Output[Optional[Sequence[_builtins.str]]]:
986
985
  """
987
986
  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.
988
987
  """
989
988
  return pulumi.get(self, "tags")
990
989
 
991
- @property
990
+ @_builtins.property
992
991
  @pulumi.getter
993
992
  def template(self) -> pulumi.Output[Optional['outputs.PreparedQueryTemplate']]:
994
993
  """
@@ -996,11 +995,11 @@ class PreparedQuery(pulumi.CustomResource):
996
995
  """
997
996
  return pulumi.get(self, "template")
998
997
 
999
- @property
998
+ @_builtins.property
1000
999
  @pulumi.getter
1001
1000
  @_utilities.deprecated("""The token argument has been deprecated and will be removed in a future release.
1002
1001
  Please use the token argument in the provider configuration""")
1003
- def token(self) -> pulumi.Output[Optional[builtins.str]]:
1002
+ def token(self) -> pulumi.Output[Optional[_builtins.str]]:
1004
1003
  """
1005
1004
  The ACL token to use when saving the prepared query. This overrides the token that the agent provides by default.
1006
1005
  """