pulumi-consul 3.12.4a1739378040__py3-none-any.whl → 3.12.5a1745951760__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 +144 -140
- pulumi_consul/acl_binding_rule.py +102 -98
- pulumi_consul/acl_policy.py +88 -84
- pulumi_consul/acl_role.py +74 -70
- pulumi_consul/acl_role_policy_attachment.py +32 -28
- pulumi_consul/acl_token.py +116 -112
- pulumi_consul/acl_token_policy_attachment.py +32 -28
- pulumi_consul/acl_token_role_attachment.py +32 -28
- pulumi_consul/admin_partition.py +32 -28
- pulumi_consul/agent_service.py +60 -56
- pulumi_consul/autopilot_config.py +116 -112
- pulumi_consul/catalog_entry.py +60 -56
- pulumi_consul/certificate_authority.py +38 -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 +74 -70
- pulumi_consul/config_entry_service_defaults.py +172 -168
- pulumi_consul/config_entry_service_intentions.py +60 -56
- pulumi_consul/config_entry_service_resolver.py +102 -98
- pulumi_consul/config_entry_service_router.py +60 -56
- pulumi_consul/config_entry_service_splitter.py +60 -56
- pulumi_consul/config_entry_v2_exported_services.py +116 -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 +116 -112
- pulumi_consul/key_prefix.py +88 -84
- pulumi_consul/keys.py +65 -61
- pulumi_consul/license.py +102 -98
- pulumi_consul/namespace.py +88 -84
- pulumi_consul/namespace_policy_attachment.py +32 -28
- pulumi_consul/namespace_role_attachment.py +32 -28
- pulumi_consul/network_area.py +74 -70
- pulumi_consul/node.py +84 -80
- pulumi_consul/outputs.py +1054 -1053
- pulumi_consul/peering.py +86 -82
- pulumi_consul/peering_token.py +63 -59
- pulumi_consul/prepared_query.py +186 -182
- pulumi_consul/provider.py +113 -109
- pulumi_consul/pulumi-plugin.json +1 -1
- pulumi_consul/service.py +168 -164
- {pulumi_consul-3.12.4a1739378040.dist-info → pulumi_consul-3.12.5a1745951760.dist-info}/METADATA +2 -2
- pulumi_consul-3.12.5a1745951760.dist-info/RECORD +72 -0
- {pulumi_consul-3.12.4a1739378040.dist-info → pulumi_consul-3.12.5a1745951760.dist-info}/WHEEL +1 -1
- pulumi_consul-3.12.4a1739378040.dist-info/RECORD +0 -72
- {pulumi_consul-3.12.4a1739378040.dist-info → pulumi_consul-3.12.5a1745951760.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,38 +549,41 @@ 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
|
|
|
562
563
|
class PreparedQuery(pulumi.CustomResource):
|
|
564
|
+
|
|
565
|
+
pulumi_type = "consul:index/preparedQuery:PreparedQuery"
|
|
566
|
+
|
|
563
567
|
@overload
|
|
564
568
|
def __init__(__self__,
|
|
565
569
|
resource_name: str,
|
|
566
570
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
567
|
-
connect: Optional[pulumi.Input[bool]] = None,
|
|
568
|
-
datacenter: Optional[pulumi.Input[str]] = None,
|
|
571
|
+
connect: Optional[pulumi.Input[builtins.bool]] = None,
|
|
572
|
+
datacenter: Optional[pulumi.Input[builtins.str]] = None,
|
|
569
573
|
dns: Optional[pulumi.Input[Union['PreparedQueryDnsArgs', 'PreparedQueryDnsArgsDict']]] = None,
|
|
570
574
|
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,
|
|
575
|
+
ignore_check_ids: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
|
576
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
|
577
|
+
near: Optional[pulumi.Input[builtins.str]] = None,
|
|
578
|
+
node_meta: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]] = None,
|
|
579
|
+
only_passing: Optional[pulumi.Input[builtins.bool]] = None,
|
|
580
|
+
service: Optional[pulumi.Input[builtins.str]] = None,
|
|
581
|
+
service_meta: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]] = None,
|
|
582
|
+
session: Optional[pulumi.Input[builtins.str]] = None,
|
|
583
|
+
stored_token: Optional[pulumi.Input[builtins.str]] = None,
|
|
584
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
|
581
585
|
template: Optional[pulumi.Input[Union['PreparedQueryTemplateArgs', 'PreparedQueryTemplateArgsDict']]] = None,
|
|
582
|
-
token: Optional[pulumi.Input[str]] = None,
|
|
586
|
+
token: Optional[pulumi.Input[builtins.str]] = None,
|
|
583
587
|
__props__=None):
|
|
584
588
|
"""
|
|
585
589
|
## Example Usage
|
|
@@ -651,22 +655,22 @@ class PreparedQuery(pulumi.CustomResource):
|
|
|
651
655
|
|
|
652
656
|
:param str resource_name: The name of the resource.
|
|
653
657
|
: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.
|
|
658
|
+
: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.
|
|
659
|
+
: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
660
|
:param pulumi.Input[Union['PreparedQueryDnsArgs', 'PreparedQueryDnsArgsDict']] dns: Settings for controlling the DNS response details.
|
|
657
661
|
: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.
|
|
662
|
+
: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.
|
|
663
|
+
: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.
|
|
664
|
+
: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.
|
|
665
|
+
: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.
|
|
666
|
+
:param pulumi.Input[builtins.bool] only_passing: When `true`, the prepared query will only return nodes with passing health checks in the result.
|
|
667
|
+
:param pulumi.Input[builtins.str] service: The name of the service to query
|
|
668
|
+
: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.
|
|
669
|
+
: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.
|
|
670
|
+
: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.
|
|
671
|
+
: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
672
|
: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.
|
|
673
|
+
: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
674
|
"""
|
|
671
675
|
...
|
|
672
676
|
@overload
|
|
@@ -757,22 +761,22 @@ class PreparedQuery(pulumi.CustomResource):
|
|
|
757
761
|
def _internal_init(__self__,
|
|
758
762
|
resource_name: str,
|
|
759
763
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
760
|
-
connect: Optional[pulumi.Input[bool]] = None,
|
|
761
|
-
datacenter: Optional[pulumi.Input[str]] = None,
|
|
764
|
+
connect: Optional[pulumi.Input[builtins.bool]] = None,
|
|
765
|
+
datacenter: Optional[pulumi.Input[builtins.str]] = None,
|
|
762
766
|
dns: Optional[pulumi.Input[Union['PreparedQueryDnsArgs', 'PreparedQueryDnsArgsDict']]] = None,
|
|
763
767
|
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,
|
|
768
|
+
ignore_check_ids: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
|
769
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
|
770
|
+
near: Optional[pulumi.Input[builtins.str]] = None,
|
|
771
|
+
node_meta: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]] = None,
|
|
772
|
+
only_passing: Optional[pulumi.Input[builtins.bool]] = None,
|
|
773
|
+
service: Optional[pulumi.Input[builtins.str]] = None,
|
|
774
|
+
service_meta: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]] = None,
|
|
775
|
+
session: Optional[pulumi.Input[builtins.str]] = None,
|
|
776
|
+
stored_token: Optional[pulumi.Input[builtins.str]] = None,
|
|
777
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
|
774
778
|
template: Optional[pulumi.Input[Union['PreparedQueryTemplateArgs', 'PreparedQueryTemplateArgsDict']]] = None,
|
|
775
|
-
token: Optional[pulumi.Input[str]] = None,
|
|
779
|
+
token: Optional[pulumi.Input[builtins.str]] = None,
|
|
776
780
|
__props__=None):
|
|
777
781
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
778
782
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -812,22 +816,22 @@ class PreparedQuery(pulumi.CustomResource):
|
|
|
812
816
|
def get(resource_name: str,
|
|
813
817
|
id: pulumi.Input[str],
|
|
814
818
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
815
|
-
connect: Optional[pulumi.Input[bool]] = None,
|
|
816
|
-
datacenter: Optional[pulumi.Input[str]] = None,
|
|
819
|
+
connect: Optional[pulumi.Input[builtins.bool]] = None,
|
|
820
|
+
datacenter: Optional[pulumi.Input[builtins.str]] = None,
|
|
817
821
|
dns: Optional[pulumi.Input[Union['PreparedQueryDnsArgs', 'PreparedQueryDnsArgsDict']]] = None,
|
|
818
822
|
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,
|
|
823
|
+
ignore_check_ids: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
|
824
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
|
825
|
+
near: Optional[pulumi.Input[builtins.str]] = None,
|
|
826
|
+
node_meta: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]] = None,
|
|
827
|
+
only_passing: Optional[pulumi.Input[builtins.bool]] = None,
|
|
828
|
+
service: Optional[pulumi.Input[builtins.str]] = None,
|
|
829
|
+
service_meta: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]] = None,
|
|
830
|
+
session: Optional[pulumi.Input[builtins.str]] = None,
|
|
831
|
+
stored_token: Optional[pulumi.Input[builtins.str]] = None,
|
|
832
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
|
829
833
|
template: Optional[pulumi.Input[Union['PreparedQueryTemplateArgs', 'PreparedQueryTemplateArgsDict']]] = None,
|
|
830
|
-
token: Optional[pulumi.Input[str]] = None) -> 'PreparedQuery':
|
|
834
|
+
token: Optional[pulumi.Input[builtins.str]] = None) -> 'PreparedQuery':
|
|
831
835
|
"""
|
|
832
836
|
Get an existing PreparedQuery resource's state with the given name, id, and optional extra
|
|
833
837
|
properties used to qualify the lookup.
|
|
@@ -835,22 +839,22 @@ class PreparedQuery(pulumi.CustomResource):
|
|
|
835
839
|
:param str resource_name: The unique name of the resulting resource.
|
|
836
840
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
837
841
|
: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.
|
|
842
|
+
: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.
|
|
843
|
+
: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
844
|
:param pulumi.Input[Union['PreparedQueryDnsArgs', 'PreparedQueryDnsArgsDict']] dns: Settings for controlling the DNS response details.
|
|
841
845
|
: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.
|
|
846
|
+
: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.
|
|
847
|
+
: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.
|
|
848
|
+
: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.
|
|
849
|
+
: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.
|
|
850
|
+
:param pulumi.Input[builtins.bool] only_passing: When `true`, the prepared query will only return nodes with passing health checks in the result.
|
|
851
|
+
:param pulumi.Input[builtins.str] service: The name of the service to query
|
|
852
|
+
: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.
|
|
853
|
+
: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.
|
|
854
|
+
: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.
|
|
855
|
+
: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
856
|
: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.
|
|
857
|
+
: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
858
|
"""
|
|
855
859
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
856
860
|
|
|
@@ -876,7 +880,7 @@ class PreparedQuery(pulumi.CustomResource):
|
|
|
876
880
|
|
|
877
881
|
@property
|
|
878
882
|
@pulumi.getter
|
|
879
|
-
def connect(self) -> pulumi.Output[Optional[bool]]:
|
|
883
|
+
def connect(self) -> pulumi.Output[Optional[builtins.bool]]:
|
|
880
884
|
"""
|
|
881
885
|
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
886
|
"""
|
|
@@ -884,7 +888,7 @@ class PreparedQuery(pulumi.CustomResource):
|
|
|
884
888
|
|
|
885
889
|
@property
|
|
886
890
|
@pulumi.getter
|
|
887
|
-
def datacenter(self) -> pulumi.Output[Optional[str]]:
|
|
891
|
+
def datacenter(self) -> pulumi.Output[Optional[builtins.str]]:
|
|
888
892
|
"""
|
|
889
893
|
The datacenter to use. This overrides the agent's default datacenter and the datacenter in the provider setup.
|
|
890
894
|
"""
|
|
@@ -908,7 +912,7 @@ class PreparedQuery(pulumi.CustomResource):
|
|
|
908
912
|
|
|
909
913
|
@property
|
|
910
914
|
@pulumi.getter(name="ignoreCheckIds")
|
|
911
|
-
def ignore_check_ids(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
|
915
|
+
def ignore_check_ids(self) -> pulumi.Output[Optional[Sequence[builtins.str]]]:
|
|
912
916
|
"""
|
|
913
917
|
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
918
|
"""
|
|
@@ -916,7 +920,7 @@ class PreparedQuery(pulumi.CustomResource):
|
|
|
916
920
|
|
|
917
921
|
@property
|
|
918
922
|
@pulumi.getter
|
|
919
|
-
def name(self) -> pulumi.Output[str]:
|
|
923
|
+
def name(self) -> pulumi.Output[builtins.str]:
|
|
920
924
|
"""
|
|
921
925
|
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
926
|
"""
|
|
@@ -924,7 +928,7 @@ class PreparedQuery(pulumi.CustomResource):
|
|
|
924
928
|
|
|
925
929
|
@property
|
|
926
930
|
@pulumi.getter
|
|
927
|
-
def near(self) -> pulumi.Output[Optional[str]]:
|
|
931
|
+
def near(self) -> pulumi.Output[Optional[builtins.str]]:
|
|
928
932
|
"""
|
|
929
933
|
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
934
|
"""
|
|
@@ -932,7 +936,7 @@ class PreparedQuery(pulumi.CustomResource):
|
|
|
932
936
|
|
|
933
937
|
@property
|
|
934
938
|
@pulumi.getter(name="nodeMeta")
|
|
935
|
-
def node_meta(self) -> pulumi.Output[Optional[Mapping[str, str]]]:
|
|
939
|
+
def node_meta(self) -> pulumi.Output[Optional[Mapping[str, builtins.str]]]:
|
|
936
940
|
"""
|
|
937
941
|
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
942
|
"""
|
|
@@ -940,7 +944,7 @@ class PreparedQuery(pulumi.CustomResource):
|
|
|
940
944
|
|
|
941
945
|
@property
|
|
942
946
|
@pulumi.getter(name="onlyPassing")
|
|
943
|
-
def only_passing(self) -> pulumi.Output[Optional[bool]]:
|
|
947
|
+
def only_passing(self) -> pulumi.Output[Optional[builtins.bool]]:
|
|
944
948
|
"""
|
|
945
949
|
When `true`, the prepared query will only return nodes with passing health checks in the result.
|
|
946
950
|
"""
|
|
@@ -948,7 +952,7 @@ class PreparedQuery(pulumi.CustomResource):
|
|
|
948
952
|
|
|
949
953
|
@property
|
|
950
954
|
@pulumi.getter
|
|
951
|
-
def service(self) -> pulumi.Output[str]:
|
|
955
|
+
def service(self) -> pulumi.Output[builtins.str]:
|
|
952
956
|
"""
|
|
953
957
|
The name of the service to query
|
|
954
958
|
"""
|
|
@@ -956,7 +960,7 @@ class PreparedQuery(pulumi.CustomResource):
|
|
|
956
960
|
|
|
957
961
|
@property
|
|
958
962
|
@pulumi.getter(name="serviceMeta")
|
|
959
|
-
def service_meta(self) -> pulumi.Output[Optional[Mapping[str, str]]]:
|
|
963
|
+
def service_meta(self) -> pulumi.Output[Optional[Mapping[str, builtins.str]]]:
|
|
960
964
|
"""
|
|
961
965
|
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
966
|
"""
|
|
@@ -964,7 +968,7 @@ class PreparedQuery(pulumi.CustomResource):
|
|
|
964
968
|
|
|
965
969
|
@property
|
|
966
970
|
@pulumi.getter
|
|
967
|
-
def session(self) -> pulumi.Output[Optional[str]]:
|
|
971
|
+
def session(self) -> pulumi.Output[Optional[builtins.str]]:
|
|
968
972
|
"""
|
|
969
973
|
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
974
|
"""
|
|
@@ -972,7 +976,7 @@ class PreparedQuery(pulumi.CustomResource):
|
|
|
972
976
|
|
|
973
977
|
@property
|
|
974
978
|
@pulumi.getter(name="storedToken")
|
|
975
|
-
def stored_token(self) -> pulumi.Output[Optional[str]]:
|
|
979
|
+
def stored_token(self) -> pulumi.Output[Optional[builtins.str]]:
|
|
976
980
|
"""
|
|
977
981
|
The ACL token to store with the prepared query. This token will be used by default whenever the query is executed.
|
|
978
982
|
"""
|
|
@@ -980,7 +984,7 @@ class PreparedQuery(pulumi.CustomResource):
|
|
|
980
984
|
|
|
981
985
|
@property
|
|
982
986
|
@pulumi.getter
|
|
983
|
-
def tags(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
|
987
|
+
def tags(self) -> pulumi.Output[Optional[Sequence[builtins.str]]]:
|
|
984
988
|
"""
|
|
985
989
|
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
990
|
"""
|
|
@@ -998,7 +1002,7 @@ class PreparedQuery(pulumi.CustomResource):
|
|
|
998
1002
|
@pulumi.getter
|
|
999
1003
|
@_utilities.deprecated("""The token argument has been deprecated and will be removed in a future release.
|
|
1000
1004
|
Please use the token argument in the provider configuration""")
|
|
1001
|
-
def token(self) -> pulumi.Output[Optional[str]]:
|
|
1005
|
+
def token(self) -> pulumi.Output[Optional[builtins.str]]:
|
|
1002
1006
|
"""
|
|
1003
1007
|
The ACL token to use when saving the prepared query. This overrides the token that the agent provides by default.
|
|
1004
1008
|
"""
|