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