pulumi-consul 3.12.0a1721971430__py3-none-any.whl → 3.12.0a1722856947__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 +10 -0
- pulumi_consul/_inputs.py +2 -2
- pulumi_consul/config_entry_v2_exported_services.py +474 -0
- pulumi_consul/get_config_entry_v2_exported_services.py +210 -0
- pulumi_consul/outputs.py +2 -2
- pulumi_consul/peering_token.py +50 -11
- pulumi_consul/pulumi-plugin.json +1 -1
- {pulumi_consul-3.12.0a1721971430.dist-info → pulumi_consul-3.12.0a1722856947.dist-info}/METADATA +1 -1
- {pulumi_consul-3.12.0a1721971430.dist-info → pulumi_consul-3.12.0a1722856947.dist-info}/RECORD +11 -9
- {pulumi_consul-3.12.0a1721971430.dist-info → pulumi_consul-3.12.0a1722856947.dist-info}/WHEEL +1 -1
- {pulumi_consul-3.12.0a1721971430.dist-info → pulumi_consul-3.12.0a1722856947.dist-info}/top_level.txt +0 -0
pulumi_consul/__init__.py
CHANGED
|
@@ -24,6 +24,7 @@ from .config_entry_service_intentions import *
|
|
|
24
24
|
from .config_entry_service_resolver import *
|
|
25
25
|
from .config_entry_service_router import *
|
|
26
26
|
from .config_entry_service_splitter import *
|
|
27
|
+
from .config_entry_v2_exported_services import *
|
|
27
28
|
from .get_acl_auth_method import *
|
|
28
29
|
from .get_acl_policy import *
|
|
29
30
|
from .get_acl_role import *
|
|
@@ -36,6 +37,7 @@ from .get_catalog_nodes import *
|
|
|
36
37
|
from .get_catalog_service import *
|
|
37
38
|
from .get_catalog_services import *
|
|
38
39
|
from .get_config_entry import *
|
|
40
|
+
from .get_config_entry_v2_exported_services import *
|
|
39
41
|
from .get_datacenters import *
|
|
40
42
|
from .get_key_prefix import *
|
|
41
43
|
from .get_keys import *
|
|
@@ -226,6 +228,14 @@ _utilities.register(
|
|
|
226
228
|
"consul:index/configEntryServiceSplitter:ConfigEntryServiceSplitter": "ConfigEntryServiceSplitter"
|
|
227
229
|
}
|
|
228
230
|
},
|
|
231
|
+
{
|
|
232
|
+
"pkg": "consul",
|
|
233
|
+
"mod": "index/configEntryV2ExportedServices",
|
|
234
|
+
"fqn": "pulumi_consul",
|
|
235
|
+
"classes": {
|
|
236
|
+
"consul:index/configEntryV2ExportedServices:ConfigEntryV2ExportedServices": "ConfigEntryV2ExportedServices"
|
|
237
|
+
}
|
|
238
|
+
},
|
|
229
239
|
{
|
|
230
240
|
"pkg": "consul",
|
|
231
241
|
"mod": "index/intention",
|
pulumi_consul/_inputs.py
CHANGED
|
@@ -3920,7 +3920,7 @@ class ServiceCheckArgs:
|
|
|
3920
3920
|
:param pulumi.Input[str] interval: The interval to wait between each health-check invocation.
|
|
3921
3921
|
:param pulumi.Input[str] name: The name of the health-check.
|
|
3922
3922
|
:param pulumi.Input[str] timeout: Specifies a timeout for outgoing connections in the case of a HTTP or TCP check.
|
|
3923
|
-
:param pulumi.Input[str] deregister_critical_service_after: The time after which the service is automatically deregistered when in the `critical` state. Defaults to `30s`.
|
|
3923
|
+
:param pulumi.Input[str] deregister_critical_service_after: The time after which the service is automatically deregistered when in the `critical` state. Defaults to `30s`. Setting to `0` will disable.
|
|
3924
3924
|
:param pulumi.Input[Sequence[pulumi.Input['ServiceCheckHeaderArgs']]] headers: The headers to send for an HTTP check. The attributes of each header is given below.
|
|
3925
3925
|
:param pulumi.Input[str] http: The HTTP endpoint to call for an HTTP check.
|
|
3926
3926
|
:param pulumi.Input[str] method: The method to use for HTTP health-checks. Defaults to `GET`.
|
|
@@ -4002,7 +4002,7 @@ class ServiceCheckArgs:
|
|
|
4002
4002
|
@pulumi.getter(name="deregisterCriticalServiceAfter")
|
|
4003
4003
|
def deregister_critical_service_after(self) -> Optional[pulumi.Input[str]]:
|
|
4004
4004
|
"""
|
|
4005
|
-
The time after which the service is automatically deregistered when in the `critical` state. Defaults to `30s`.
|
|
4005
|
+
The time after which the service is automatically deregistered when in the `critical` state. Defaults to `30s`. Setting to `0` will disable.
|
|
4006
4006
|
"""
|
|
4007
4007
|
return pulumi.get(self, "deregister_critical_service_after")
|
|
4008
4008
|
|
|
@@ -0,0 +1,474 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import copy
|
|
6
|
+
import warnings
|
|
7
|
+
import pulumi
|
|
8
|
+
import pulumi.runtime
|
|
9
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
10
|
+
from . import _utilities
|
|
11
|
+
|
|
12
|
+
__all__ = ['ConfigEntryV2ExportedServicesArgs', 'ConfigEntryV2ExportedServices']
|
|
13
|
+
|
|
14
|
+
@pulumi.input_type
|
|
15
|
+
class ConfigEntryV2ExportedServicesArgs:
|
|
16
|
+
def __init__(__self__, *,
|
|
17
|
+
kind: pulumi.Input[str],
|
|
18
|
+
partition: pulumi.Input[str],
|
|
19
|
+
name: Optional[pulumi.Input[str]] = None,
|
|
20
|
+
namespace: Optional[pulumi.Input[str]] = None,
|
|
21
|
+
partition_consumers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
22
|
+
peer_consumers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
23
|
+
sameness_group_consumers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
24
|
+
services: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
|
|
25
|
+
"""
|
|
26
|
+
The set of arguments for constructing a ConfigEntryV2ExportedServices resource.
|
|
27
|
+
:param pulumi.Input[str] kind: The kind of exported services config (ExportedServices, NamespaceExportedServices, PartitionExportedServices).
|
|
28
|
+
:param pulumi.Input[str] partition: The partition the config entry is associated with.
|
|
29
|
+
:param pulumi.Input[str] name: The name of the config entry to read.
|
|
30
|
+
:param pulumi.Input[str] namespace: The namespace the config entry is associated with.
|
|
31
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] partition_consumers: The exported service partition consumers.
|
|
32
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] peer_consumers: The exported service peer consumers.
|
|
33
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] sameness_group_consumers: The exported service sameness group consumers.
|
|
34
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] services: The exported services.
|
|
35
|
+
"""
|
|
36
|
+
pulumi.set(__self__, "kind", kind)
|
|
37
|
+
pulumi.set(__self__, "partition", partition)
|
|
38
|
+
if name is not None:
|
|
39
|
+
pulumi.set(__self__, "name", name)
|
|
40
|
+
if namespace is not None:
|
|
41
|
+
pulumi.set(__self__, "namespace", namespace)
|
|
42
|
+
if partition_consumers is not None:
|
|
43
|
+
pulumi.set(__self__, "partition_consumers", partition_consumers)
|
|
44
|
+
if peer_consumers is not None:
|
|
45
|
+
pulumi.set(__self__, "peer_consumers", peer_consumers)
|
|
46
|
+
if sameness_group_consumers is not None:
|
|
47
|
+
pulumi.set(__self__, "sameness_group_consumers", sameness_group_consumers)
|
|
48
|
+
if services is not None:
|
|
49
|
+
pulumi.set(__self__, "services", services)
|
|
50
|
+
|
|
51
|
+
@property
|
|
52
|
+
@pulumi.getter
|
|
53
|
+
def kind(self) -> pulumi.Input[str]:
|
|
54
|
+
"""
|
|
55
|
+
The kind of exported services config (ExportedServices, NamespaceExportedServices, PartitionExportedServices).
|
|
56
|
+
"""
|
|
57
|
+
return pulumi.get(self, "kind")
|
|
58
|
+
|
|
59
|
+
@kind.setter
|
|
60
|
+
def kind(self, value: pulumi.Input[str]):
|
|
61
|
+
pulumi.set(self, "kind", value)
|
|
62
|
+
|
|
63
|
+
@property
|
|
64
|
+
@pulumi.getter
|
|
65
|
+
def partition(self) -> pulumi.Input[str]:
|
|
66
|
+
"""
|
|
67
|
+
The partition the config entry is associated with.
|
|
68
|
+
"""
|
|
69
|
+
return pulumi.get(self, "partition")
|
|
70
|
+
|
|
71
|
+
@partition.setter
|
|
72
|
+
def partition(self, value: pulumi.Input[str]):
|
|
73
|
+
pulumi.set(self, "partition", value)
|
|
74
|
+
|
|
75
|
+
@property
|
|
76
|
+
@pulumi.getter
|
|
77
|
+
def name(self) -> Optional[pulumi.Input[str]]:
|
|
78
|
+
"""
|
|
79
|
+
The name of the config entry to read.
|
|
80
|
+
"""
|
|
81
|
+
return pulumi.get(self, "name")
|
|
82
|
+
|
|
83
|
+
@name.setter
|
|
84
|
+
def name(self, value: Optional[pulumi.Input[str]]):
|
|
85
|
+
pulumi.set(self, "name", value)
|
|
86
|
+
|
|
87
|
+
@property
|
|
88
|
+
@pulumi.getter
|
|
89
|
+
def namespace(self) -> Optional[pulumi.Input[str]]:
|
|
90
|
+
"""
|
|
91
|
+
The namespace the config entry is associated with.
|
|
92
|
+
"""
|
|
93
|
+
return pulumi.get(self, "namespace")
|
|
94
|
+
|
|
95
|
+
@namespace.setter
|
|
96
|
+
def namespace(self, value: Optional[pulumi.Input[str]]):
|
|
97
|
+
pulumi.set(self, "namespace", value)
|
|
98
|
+
|
|
99
|
+
@property
|
|
100
|
+
@pulumi.getter(name="partitionConsumers")
|
|
101
|
+
def partition_consumers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
102
|
+
"""
|
|
103
|
+
The exported service partition consumers.
|
|
104
|
+
"""
|
|
105
|
+
return pulumi.get(self, "partition_consumers")
|
|
106
|
+
|
|
107
|
+
@partition_consumers.setter
|
|
108
|
+
def partition_consumers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
109
|
+
pulumi.set(self, "partition_consumers", value)
|
|
110
|
+
|
|
111
|
+
@property
|
|
112
|
+
@pulumi.getter(name="peerConsumers")
|
|
113
|
+
def peer_consumers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
114
|
+
"""
|
|
115
|
+
The exported service peer consumers.
|
|
116
|
+
"""
|
|
117
|
+
return pulumi.get(self, "peer_consumers")
|
|
118
|
+
|
|
119
|
+
@peer_consumers.setter
|
|
120
|
+
def peer_consumers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
121
|
+
pulumi.set(self, "peer_consumers", value)
|
|
122
|
+
|
|
123
|
+
@property
|
|
124
|
+
@pulumi.getter(name="samenessGroupConsumers")
|
|
125
|
+
def sameness_group_consumers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
126
|
+
"""
|
|
127
|
+
The exported service sameness group consumers.
|
|
128
|
+
"""
|
|
129
|
+
return pulumi.get(self, "sameness_group_consumers")
|
|
130
|
+
|
|
131
|
+
@sameness_group_consumers.setter
|
|
132
|
+
def sameness_group_consumers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
133
|
+
pulumi.set(self, "sameness_group_consumers", value)
|
|
134
|
+
|
|
135
|
+
@property
|
|
136
|
+
@pulumi.getter
|
|
137
|
+
def services(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
138
|
+
"""
|
|
139
|
+
The exported services.
|
|
140
|
+
"""
|
|
141
|
+
return pulumi.get(self, "services")
|
|
142
|
+
|
|
143
|
+
@services.setter
|
|
144
|
+
def services(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
145
|
+
pulumi.set(self, "services", value)
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
@pulumi.input_type
|
|
149
|
+
class _ConfigEntryV2ExportedServicesState:
|
|
150
|
+
def __init__(__self__, *,
|
|
151
|
+
kind: Optional[pulumi.Input[str]] = None,
|
|
152
|
+
name: Optional[pulumi.Input[str]] = None,
|
|
153
|
+
namespace: Optional[pulumi.Input[str]] = None,
|
|
154
|
+
partition: Optional[pulumi.Input[str]] = None,
|
|
155
|
+
partition_consumers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
156
|
+
peer_consumers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
157
|
+
sameness_group_consumers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
158
|
+
services: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
|
|
159
|
+
"""
|
|
160
|
+
Input properties used for looking up and filtering ConfigEntryV2ExportedServices resources.
|
|
161
|
+
:param pulumi.Input[str] kind: The kind of exported services config (ExportedServices, NamespaceExportedServices, PartitionExportedServices).
|
|
162
|
+
:param pulumi.Input[str] name: The name of the config entry to read.
|
|
163
|
+
:param pulumi.Input[str] namespace: The namespace the config entry is associated with.
|
|
164
|
+
:param pulumi.Input[str] partition: The partition the config entry is associated with.
|
|
165
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] partition_consumers: The exported service partition consumers.
|
|
166
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] peer_consumers: The exported service peer consumers.
|
|
167
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] sameness_group_consumers: The exported service sameness group consumers.
|
|
168
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] services: The exported services.
|
|
169
|
+
"""
|
|
170
|
+
if kind is not None:
|
|
171
|
+
pulumi.set(__self__, "kind", kind)
|
|
172
|
+
if name is not None:
|
|
173
|
+
pulumi.set(__self__, "name", name)
|
|
174
|
+
if namespace is not None:
|
|
175
|
+
pulumi.set(__self__, "namespace", namespace)
|
|
176
|
+
if partition is not None:
|
|
177
|
+
pulumi.set(__self__, "partition", partition)
|
|
178
|
+
if partition_consumers is not None:
|
|
179
|
+
pulumi.set(__self__, "partition_consumers", partition_consumers)
|
|
180
|
+
if peer_consumers is not None:
|
|
181
|
+
pulumi.set(__self__, "peer_consumers", peer_consumers)
|
|
182
|
+
if sameness_group_consumers is not None:
|
|
183
|
+
pulumi.set(__self__, "sameness_group_consumers", sameness_group_consumers)
|
|
184
|
+
if services is not None:
|
|
185
|
+
pulumi.set(__self__, "services", services)
|
|
186
|
+
|
|
187
|
+
@property
|
|
188
|
+
@pulumi.getter
|
|
189
|
+
def kind(self) -> Optional[pulumi.Input[str]]:
|
|
190
|
+
"""
|
|
191
|
+
The kind of exported services config (ExportedServices, NamespaceExportedServices, PartitionExportedServices).
|
|
192
|
+
"""
|
|
193
|
+
return pulumi.get(self, "kind")
|
|
194
|
+
|
|
195
|
+
@kind.setter
|
|
196
|
+
def kind(self, value: Optional[pulumi.Input[str]]):
|
|
197
|
+
pulumi.set(self, "kind", value)
|
|
198
|
+
|
|
199
|
+
@property
|
|
200
|
+
@pulumi.getter
|
|
201
|
+
def name(self) -> Optional[pulumi.Input[str]]:
|
|
202
|
+
"""
|
|
203
|
+
The name of the config entry to read.
|
|
204
|
+
"""
|
|
205
|
+
return pulumi.get(self, "name")
|
|
206
|
+
|
|
207
|
+
@name.setter
|
|
208
|
+
def name(self, value: Optional[pulumi.Input[str]]):
|
|
209
|
+
pulumi.set(self, "name", value)
|
|
210
|
+
|
|
211
|
+
@property
|
|
212
|
+
@pulumi.getter
|
|
213
|
+
def namespace(self) -> Optional[pulumi.Input[str]]:
|
|
214
|
+
"""
|
|
215
|
+
The namespace the config entry is associated with.
|
|
216
|
+
"""
|
|
217
|
+
return pulumi.get(self, "namespace")
|
|
218
|
+
|
|
219
|
+
@namespace.setter
|
|
220
|
+
def namespace(self, value: Optional[pulumi.Input[str]]):
|
|
221
|
+
pulumi.set(self, "namespace", value)
|
|
222
|
+
|
|
223
|
+
@property
|
|
224
|
+
@pulumi.getter
|
|
225
|
+
def partition(self) -> Optional[pulumi.Input[str]]:
|
|
226
|
+
"""
|
|
227
|
+
The partition the config entry is associated with.
|
|
228
|
+
"""
|
|
229
|
+
return pulumi.get(self, "partition")
|
|
230
|
+
|
|
231
|
+
@partition.setter
|
|
232
|
+
def partition(self, value: Optional[pulumi.Input[str]]):
|
|
233
|
+
pulumi.set(self, "partition", value)
|
|
234
|
+
|
|
235
|
+
@property
|
|
236
|
+
@pulumi.getter(name="partitionConsumers")
|
|
237
|
+
def partition_consumers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
238
|
+
"""
|
|
239
|
+
The exported service partition consumers.
|
|
240
|
+
"""
|
|
241
|
+
return pulumi.get(self, "partition_consumers")
|
|
242
|
+
|
|
243
|
+
@partition_consumers.setter
|
|
244
|
+
def partition_consumers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
245
|
+
pulumi.set(self, "partition_consumers", value)
|
|
246
|
+
|
|
247
|
+
@property
|
|
248
|
+
@pulumi.getter(name="peerConsumers")
|
|
249
|
+
def peer_consumers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
250
|
+
"""
|
|
251
|
+
The exported service peer consumers.
|
|
252
|
+
"""
|
|
253
|
+
return pulumi.get(self, "peer_consumers")
|
|
254
|
+
|
|
255
|
+
@peer_consumers.setter
|
|
256
|
+
def peer_consumers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
257
|
+
pulumi.set(self, "peer_consumers", value)
|
|
258
|
+
|
|
259
|
+
@property
|
|
260
|
+
@pulumi.getter(name="samenessGroupConsumers")
|
|
261
|
+
def sameness_group_consumers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
262
|
+
"""
|
|
263
|
+
The exported service sameness group consumers.
|
|
264
|
+
"""
|
|
265
|
+
return pulumi.get(self, "sameness_group_consumers")
|
|
266
|
+
|
|
267
|
+
@sameness_group_consumers.setter
|
|
268
|
+
def sameness_group_consumers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
269
|
+
pulumi.set(self, "sameness_group_consumers", value)
|
|
270
|
+
|
|
271
|
+
@property
|
|
272
|
+
@pulumi.getter
|
|
273
|
+
def services(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
274
|
+
"""
|
|
275
|
+
The exported services.
|
|
276
|
+
"""
|
|
277
|
+
return pulumi.get(self, "services")
|
|
278
|
+
|
|
279
|
+
@services.setter
|
|
280
|
+
def services(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
281
|
+
pulumi.set(self, "services", value)
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
class ConfigEntryV2ExportedServices(pulumi.CustomResource):
|
|
285
|
+
@overload
|
|
286
|
+
def __init__(__self__,
|
|
287
|
+
resource_name: str,
|
|
288
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
289
|
+
kind: Optional[pulumi.Input[str]] = None,
|
|
290
|
+
name: Optional[pulumi.Input[str]] = None,
|
|
291
|
+
namespace: Optional[pulumi.Input[str]] = None,
|
|
292
|
+
partition: Optional[pulumi.Input[str]] = None,
|
|
293
|
+
partition_consumers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
294
|
+
peer_consumers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
295
|
+
sameness_group_consumers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
296
|
+
services: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
297
|
+
__props__=None):
|
|
298
|
+
"""
|
|
299
|
+
Create a ConfigEntryV2ExportedServices resource with the given unique name, props, and options.
|
|
300
|
+
:param str resource_name: The name of the resource.
|
|
301
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
302
|
+
:param pulumi.Input[str] kind: The kind of exported services config (ExportedServices, NamespaceExportedServices, PartitionExportedServices).
|
|
303
|
+
:param pulumi.Input[str] name: The name of the config entry to read.
|
|
304
|
+
:param pulumi.Input[str] namespace: The namespace the config entry is associated with.
|
|
305
|
+
:param pulumi.Input[str] partition: The partition the config entry is associated with.
|
|
306
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] partition_consumers: The exported service partition consumers.
|
|
307
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] peer_consumers: The exported service peer consumers.
|
|
308
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] sameness_group_consumers: The exported service sameness group consumers.
|
|
309
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] services: The exported services.
|
|
310
|
+
"""
|
|
311
|
+
...
|
|
312
|
+
@overload
|
|
313
|
+
def __init__(__self__,
|
|
314
|
+
resource_name: str,
|
|
315
|
+
args: ConfigEntryV2ExportedServicesArgs,
|
|
316
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
317
|
+
"""
|
|
318
|
+
Create a ConfigEntryV2ExportedServices resource with the given unique name, props, and options.
|
|
319
|
+
:param str resource_name: The name of the resource.
|
|
320
|
+
:param ConfigEntryV2ExportedServicesArgs args: The arguments to use to populate this resource's properties.
|
|
321
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
322
|
+
"""
|
|
323
|
+
...
|
|
324
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
325
|
+
resource_args, opts = _utilities.get_resource_args_opts(ConfigEntryV2ExportedServicesArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
326
|
+
if resource_args is not None:
|
|
327
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
328
|
+
else:
|
|
329
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
330
|
+
|
|
331
|
+
def _internal_init(__self__,
|
|
332
|
+
resource_name: str,
|
|
333
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
334
|
+
kind: Optional[pulumi.Input[str]] = None,
|
|
335
|
+
name: Optional[pulumi.Input[str]] = None,
|
|
336
|
+
namespace: Optional[pulumi.Input[str]] = None,
|
|
337
|
+
partition: Optional[pulumi.Input[str]] = None,
|
|
338
|
+
partition_consumers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
339
|
+
peer_consumers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
340
|
+
sameness_group_consumers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
341
|
+
services: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
342
|
+
__props__=None):
|
|
343
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
344
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
345
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
346
|
+
if opts.id is None:
|
|
347
|
+
if __props__ is not None:
|
|
348
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
349
|
+
__props__ = ConfigEntryV2ExportedServicesArgs.__new__(ConfigEntryV2ExportedServicesArgs)
|
|
350
|
+
|
|
351
|
+
if kind is None and not opts.urn:
|
|
352
|
+
raise TypeError("Missing required property 'kind'")
|
|
353
|
+
__props__.__dict__["kind"] = kind
|
|
354
|
+
__props__.__dict__["name"] = name
|
|
355
|
+
__props__.__dict__["namespace"] = namespace
|
|
356
|
+
if partition is None and not opts.urn:
|
|
357
|
+
raise TypeError("Missing required property 'partition'")
|
|
358
|
+
__props__.__dict__["partition"] = partition
|
|
359
|
+
__props__.__dict__["partition_consumers"] = partition_consumers
|
|
360
|
+
__props__.__dict__["peer_consumers"] = peer_consumers
|
|
361
|
+
__props__.__dict__["sameness_group_consumers"] = sameness_group_consumers
|
|
362
|
+
__props__.__dict__["services"] = services
|
|
363
|
+
super(ConfigEntryV2ExportedServices, __self__).__init__(
|
|
364
|
+
'consul:index/configEntryV2ExportedServices:ConfigEntryV2ExportedServices',
|
|
365
|
+
resource_name,
|
|
366
|
+
__props__,
|
|
367
|
+
opts)
|
|
368
|
+
|
|
369
|
+
@staticmethod
|
|
370
|
+
def get(resource_name: str,
|
|
371
|
+
id: pulumi.Input[str],
|
|
372
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
373
|
+
kind: Optional[pulumi.Input[str]] = None,
|
|
374
|
+
name: Optional[pulumi.Input[str]] = None,
|
|
375
|
+
namespace: Optional[pulumi.Input[str]] = None,
|
|
376
|
+
partition: Optional[pulumi.Input[str]] = None,
|
|
377
|
+
partition_consumers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
378
|
+
peer_consumers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
379
|
+
sameness_group_consumers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
380
|
+
services: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None) -> 'ConfigEntryV2ExportedServices':
|
|
381
|
+
"""
|
|
382
|
+
Get an existing ConfigEntryV2ExportedServices resource's state with the given name, id, and optional extra
|
|
383
|
+
properties used to qualify the lookup.
|
|
384
|
+
|
|
385
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
386
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
387
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
388
|
+
:param pulumi.Input[str] kind: The kind of exported services config (ExportedServices, NamespaceExportedServices, PartitionExportedServices).
|
|
389
|
+
:param pulumi.Input[str] name: The name of the config entry to read.
|
|
390
|
+
:param pulumi.Input[str] namespace: The namespace the config entry is associated with.
|
|
391
|
+
:param pulumi.Input[str] partition: The partition the config entry is associated with.
|
|
392
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] partition_consumers: The exported service partition consumers.
|
|
393
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] peer_consumers: The exported service peer consumers.
|
|
394
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] sameness_group_consumers: The exported service sameness group consumers.
|
|
395
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] services: The exported services.
|
|
396
|
+
"""
|
|
397
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
398
|
+
|
|
399
|
+
__props__ = _ConfigEntryV2ExportedServicesState.__new__(_ConfigEntryV2ExportedServicesState)
|
|
400
|
+
|
|
401
|
+
__props__.__dict__["kind"] = kind
|
|
402
|
+
__props__.__dict__["name"] = name
|
|
403
|
+
__props__.__dict__["namespace"] = namespace
|
|
404
|
+
__props__.__dict__["partition"] = partition
|
|
405
|
+
__props__.__dict__["partition_consumers"] = partition_consumers
|
|
406
|
+
__props__.__dict__["peer_consumers"] = peer_consumers
|
|
407
|
+
__props__.__dict__["sameness_group_consumers"] = sameness_group_consumers
|
|
408
|
+
__props__.__dict__["services"] = services
|
|
409
|
+
return ConfigEntryV2ExportedServices(resource_name, opts=opts, __props__=__props__)
|
|
410
|
+
|
|
411
|
+
@property
|
|
412
|
+
@pulumi.getter
|
|
413
|
+
def kind(self) -> pulumi.Output[str]:
|
|
414
|
+
"""
|
|
415
|
+
The kind of exported services config (ExportedServices, NamespaceExportedServices, PartitionExportedServices).
|
|
416
|
+
"""
|
|
417
|
+
return pulumi.get(self, "kind")
|
|
418
|
+
|
|
419
|
+
@property
|
|
420
|
+
@pulumi.getter
|
|
421
|
+
def name(self) -> pulumi.Output[str]:
|
|
422
|
+
"""
|
|
423
|
+
The name of the config entry to read.
|
|
424
|
+
"""
|
|
425
|
+
return pulumi.get(self, "name")
|
|
426
|
+
|
|
427
|
+
@property
|
|
428
|
+
@pulumi.getter
|
|
429
|
+
def namespace(self) -> pulumi.Output[Optional[str]]:
|
|
430
|
+
"""
|
|
431
|
+
The namespace the config entry is associated with.
|
|
432
|
+
"""
|
|
433
|
+
return pulumi.get(self, "namespace")
|
|
434
|
+
|
|
435
|
+
@property
|
|
436
|
+
@pulumi.getter
|
|
437
|
+
def partition(self) -> pulumi.Output[str]:
|
|
438
|
+
"""
|
|
439
|
+
The partition the config entry is associated with.
|
|
440
|
+
"""
|
|
441
|
+
return pulumi.get(self, "partition")
|
|
442
|
+
|
|
443
|
+
@property
|
|
444
|
+
@pulumi.getter(name="partitionConsumers")
|
|
445
|
+
def partition_consumers(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
|
446
|
+
"""
|
|
447
|
+
The exported service partition consumers.
|
|
448
|
+
"""
|
|
449
|
+
return pulumi.get(self, "partition_consumers")
|
|
450
|
+
|
|
451
|
+
@property
|
|
452
|
+
@pulumi.getter(name="peerConsumers")
|
|
453
|
+
def peer_consumers(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
|
454
|
+
"""
|
|
455
|
+
The exported service peer consumers.
|
|
456
|
+
"""
|
|
457
|
+
return pulumi.get(self, "peer_consumers")
|
|
458
|
+
|
|
459
|
+
@property
|
|
460
|
+
@pulumi.getter(name="samenessGroupConsumers")
|
|
461
|
+
def sameness_group_consumers(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
|
462
|
+
"""
|
|
463
|
+
The exported service sameness group consumers.
|
|
464
|
+
"""
|
|
465
|
+
return pulumi.get(self, "sameness_group_consumers")
|
|
466
|
+
|
|
467
|
+
@property
|
|
468
|
+
@pulumi.getter
|
|
469
|
+
def services(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
|
470
|
+
"""
|
|
471
|
+
The exported services.
|
|
472
|
+
"""
|
|
473
|
+
return pulumi.get(self, "services")
|
|
474
|
+
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import copy
|
|
6
|
+
import warnings
|
|
7
|
+
import pulumi
|
|
8
|
+
import pulumi.runtime
|
|
9
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
10
|
+
from . import _utilities
|
|
11
|
+
|
|
12
|
+
__all__ = [
|
|
13
|
+
'GetConfigEntryV2ExportedServicesResult',
|
|
14
|
+
'AwaitableGetConfigEntryV2ExportedServicesResult',
|
|
15
|
+
'get_config_entry_v2_exported_services',
|
|
16
|
+
'get_config_entry_v2_exported_services_output',
|
|
17
|
+
]
|
|
18
|
+
|
|
19
|
+
@pulumi.output_type
|
|
20
|
+
class GetConfigEntryV2ExportedServicesResult:
|
|
21
|
+
"""
|
|
22
|
+
A collection of values returned by getConfigEntryV2ExportedServices.
|
|
23
|
+
"""
|
|
24
|
+
def __init__(__self__, id=None, kind=None, name=None, namespace=None, partition=None, partition_consumers=None, peer_consumers=None, sameness_group_consumers=None, services=None):
|
|
25
|
+
if id and not isinstance(id, str):
|
|
26
|
+
raise TypeError("Expected argument 'id' to be a str")
|
|
27
|
+
pulumi.set(__self__, "id", id)
|
|
28
|
+
if kind and not isinstance(kind, str):
|
|
29
|
+
raise TypeError("Expected argument 'kind' to be a str")
|
|
30
|
+
pulumi.set(__self__, "kind", kind)
|
|
31
|
+
if name and not isinstance(name, str):
|
|
32
|
+
raise TypeError("Expected argument 'name' to be a str")
|
|
33
|
+
pulumi.set(__self__, "name", name)
|
|
34
|
+
if namespace and not isinstance(namespace, str):
|
|
35
|
+
raise TypeError("Expected argument 'namespace' to be a str")
|
|
36
|
+
pulumi.set(__self__, "namespace", namespace)
|
|
37
|
+
if partition and not isinstance(partition, str):
|
|
38
|
+
raise TypeError("Expected argument 'partition' to be a str")
|
|
39
|
+
pulumi.set(__self__, "partition", partition)
|
|
40
|
+
if partition_consumers and not isinstance(partition_consumers, list):
|
|
41
|
+
raise TypeError("Expected argument 'partition_consumers' to be a list")
|
|
42
|
+
pulumi.set(__self__, "partition_consumers", partition_consumers)
|
|
43
|
+
if peer_consumers and not isinstance(peer_consumers, list):
|
|
44
|
+
raise TypeError("Expected argument 'peer_consumers' to be a list")
|
|
45
|
+
pulumi.set(__self__, "peer_consumers", peer_consumers)
|
|
46
|
+
if sameness_group_consumers and not isinstance(sameness_group_consumers, list):
|
|
47
|
+
raise TypeError("Expected argument 'sameness_group_consumers' to be a list")
|
|
48
|
+
pulumi.set(__self__, "sameness_group_consumers", sameness_group_consumers)
|
|
49
|
+
if services and not isinstance(services, list):
|
|
50
|
+
raise TypeError("Expected argument 'services' to be a list")
|
|
51
|
+
pulumi.set(__self__, "services", services)
|
|
52
|
+
|
|
53
|
+
@property
|
|
54
|
+
@pulumi.getter
|
|
55
|
+
def id(self) -> str:
|
|
56
|
+
"""
|
|
57
|
+
The provider-assigned unique ID for this managed resource.
|
|
58
|
+
"""
|
|
59
|
+
return pulumi.get(self, "id")
|
|
60
|
+
|
|
61
|
+
@property
|
|
62
|
+
@pulumi.getter
|
|
63
|
+
def kind(self) -> str:
|
|
64
|
+
"""
|
|
65
|
+
The kind of exported services config (ExportedServices, NamespaceExportedServices, PartitionExportedServices).
|
|
66
|
+
"""
|
|
67
|
+
return pulumi.get(self, "kind")
|
|
68
|
+
|
|
69
|
+
@property
|
|
70
|
+
@pulumi.getter
|
|
71
|
+
def name(self) -> str:
|
|
72
|
+
"""
|
|
73
|
+
The name of the config entry to read.
|
|
74
|
+
"""
|
|
75
|
+
return pulumi.get(self, "name")
|
|
76
|
+
|
|
77
|
+
@property
|
|
78
|
+
@pulumi.getter
|
|
79
|
+
def namespace(self) -> Optional[str]:
|
|
80
|
+
"""
|
|
81
|
+
The namespace the config entry is associated with.
|
|
82
|
+
"""
|
|
83
|
+
return pulumi.get(self, "namespace")
|
|
84
|
+
|
|
85
|
+
@property
|
|
86
|
+
@pulumi.getter
|
|
87
|
+
def partition(self) -> Optional[str]:
|
|
88
|
+
"""
|
|
89
|
+
The partition the config entry is associated with.
|
|
90
|
+
"""
|
|
91
|
+
return pulumi.get(self, "partition")
|
|
92
|
+
|
|
93
|
+
@property
|
|
94
|
+
@pulumi.getter(name="partitionConsumers")
|
|
95
|
+
def partition_consumers(self) -> Optional[Sequence[str]]:
|
|
96
|
+
"""
|
|
97
|
+
The exported service partition consumers.
|
|
98
|
+
"""
|
|
99
|
+
return pulumi.get(self, "partition_consumers")
|
|
100
|
+
|
|
101
|
+
@property
|
|
102
|
+
@pulumi.getter(name="peerConsumers")
|
|
103
|
+
def peer_consumers(self) -> Optional[Sequence[str]]:
|
|
104
|
+
"""
|
|
105
|
+
The exported service peer consumers.
|
|
106
|
+
"""
|
|
107
|
+
return pulumi.get(self, "peer_consumers")
|
|
108
|
+
|
|
109
|
+
@property
|
|
110
|
+
@pulumi.getter(name="samenessGroupConsumers")
|
|
111
|
+
def sameness_group_consumers(self) -> Optional[Sequence[str]]:
|
|
112
|
+
"""
|
|
113
|
+
The exported service sameness group consumers.
|
|
114
|
+
"""
|
|
115
|
+
return pulumi.get(self, "sameness_group_consumers")
|
|
116
|
+
|
|
117
|
+
@property
|
|
118
|
+
@pulumi.getter
|
|
119
|
+
def services(self) -> Optional[Sequence[str]]:
|
|
120
|
+
"""
|
|
121
|
+
The exported services.
|
|
122
|
+
"""
|
|
123
|
+
return pulumi.get(self, "services")
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
class AwaitableGetConfigEntryV2ExportedServicesResult(GetConfigEntryV2ExportedServicesResult):
|
|
127
|
+
# pylint: disable=using-constant-test
|
|
128
|
+
def __await__(self):
|
|
129
|
+
if False:
|
|
130
|
+
yield self
|
|
131
|
+
return GetConfigEntryV2ExportedServicesResult(
|
|
132
|
+
id=self.id,
|
|
133
|
+
kind=self.kind,
|
|
134
|
+
name=self.name,
|
|
135
|
+
namespace=self.namespace,
|
|
136
|
+
partition=self.partition,
|
|
137
|
+
partition_consumers=self.partition_consumers,
|
|
138
|
+
peer_consumers=self.peer_consumers,
|
|
139
|
+
sameness_group_consumers=self.sameness_group_consumers,
|
|
140
|
+
services=self.services)
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
def get_config_entry_v2_exported_services(kind: Optional[str] = None,
|
|
144
|
+
name: Optional[str] = None,
|
|
145
|
+
namespace: Optional[str] = None,
|
|
146
|
+
partition: Optional[str] = None,
|
|
147
|
+
partition_consumers: Optional[Sequence[str]] = None,
|
|
148
|
+
peer_consumers: Optional[Sequence[str]] = None,
|
|
149
|
+
sameness_group_consumers: Optional[Sequence[str]] = None,
|
|
150
|
+
services: Optional[Sequence[str]] = None,
|
|
151
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetConfigEntryV2ExportedServicesResult:
|
|
152
|
+
"""
|
|
153
|
+
Use this data source to access information about an existing resource.
|
|
154
|
+
|
|
155
|
+
:param str kind: The kind of exported services config (ExportedServices, NamespaceExportedServices, PartitionExportedServices).
|
|
156
|
+
:param str name: The name of the config entry to read.
|
|
157
|
+
:param str namespace: The namespace the config entry is associated with.
|
|
158
|
+
:param str partition: The partition the config entry is associated with.
|
|
159
|
+
:param Sequence[str] partition_consumers: The exported service partition consumers.
|
|
160
|
+
:param Sequence[str] peer_consumers: The exported service peer consumers.
|
|
161
|
+
:param Sequence[str] sameness_group_consumers: The exported service sameness group consumers.
|
|
162
|
+
:param Sequence[str] services: The exported services.
|
|
163
|
+
"""
|
|
164
|
+
__args__ = dict()
|
|
165
|
+
__args__['kind'] = kind
|
|
166
|
+
__args__['name'] = name
|
|
167
|
+
__args__['namespace'] = namespace
|
|
168
|
+
__args__['partition'] = partition
|
|
169
|
+
__args__['partitionConsumers'] = partition_consumers
|
|
170
|
+
__args__['peerConsumers'] = peer_consumers
|
|
171
|
+
__args__['samenessGroupConsumers'] = sameness_group_consumers
|
|
172
|
+
__args__['services'] = services
|
|
173
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
174
|
+
__ret__ = pulumi.runtime.invoke('consul:index/getConfigEntryV2ExportedServices:getConfigEntryV2ExportedServices', __args__, opts=opts, typ=GetConfigEntryV2ExportedServicesResult).value
|
|
175
|
+
|
|
176
|
+
return AwaitableGetConfigEntryV2ExportedServicesResult(
|
|
177
|
+
id=pulumi.get(__ret__, 'id'),
|
|
178
|
+
kind=pulumi.get(__ret__, 'kind'),
|
|
179
|
+
name=pulumi.get(__ret__, 'name'),
|
|
180
|
+
namespace=pulumi.get(__ret__, 'namespace'),
|
|
181
|
+
partition=pulumi.get(__ret__, 'partition'),
|
|
182
|
+
partition_consumers=pulumi.get(__ret__, 'partition_consumers'),
|
|
183
|
+
peer_consumers=pulumi.get(__ret__, 'peer_consumers'),
|
|
184
|
+
sameness_group_consumers=pulumi.get(__ret__, 'sameness_group_consumers'),
|
|
185
|
+
services=pulumi.get(__ret__, 'services'))
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
@_utilities.lift_output_func(get_config_entry_v2_exported_services)
|
|
189
|
+
def get_config_entry_v2_exported_services_output(kind: Optional[pulumi.Input[str]] = None,
|
|
190
|
+
name: Optional[pulumi.Input[str]] = None,
|
|
191
|
+
namespace: Optional[pulumi.Input[Optional[str]]] = None,
|
|
192
|
+
partition: Optional[pulumi.Input[Optional[str]]] = None,
|
|
193
|
+
partition_consumers: Optional[pulumi.Input[Optional[Sequence[str]]]] = None,
|
|
194
|
+
peer_consumers: Optional[pulumi.Input[Optional[Sequence[str]]]] = None,
|
|
195
|
+
sameness_group_consumers: Optional[pulumi.Input[Optional[Sequence[str]]]] = None,
|
|
196
|
+
services: Optional[pulumi.Input[Optional[Sequence[str]]]] = None,
|
|
197
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetConfigEntryV2ExportedServicesResult]:
|
|
198
|
+
"""
|
|
199
|
+
Use this data source to access information about an existing resource.
|
|
200
|
+
|
|
201
|
+
:param str kind: The kind of exported services config (ExportedServices, NamespaceExportedServices, PartitionExportedServices).
|
|
202
|
+
:param str name: The name of the config entry to read.
|
|
203
|
+
:param str namespace: The namespace the config entry is associated with.
|
|
204
|
+
:param str partition: The partition the config entry is associated with.
|
|
205
|
+
:param Sequence[str] partition_consumers: The exported service partition consumers.
|
|
206
|
+
:param Sequence[str] peer_consumers: The exported service peer consumers.
|
|
207
|
+
:param Sequence[str] sameness_group_consumers: The exported service sameness group consumers.
|
|
208
|
+
:param Sequence[str] services: The exported services.
|
|
209
|
+
"""
|
|
210
|
+
...
|
pulumi_consul/outputs.py
CHANGED
|
@@ -3637,7 +3637,7 @@ class ServiceCheck(dict):
|
|
|
3637
3637
|
:param str interval: The interval to wait between each health-check invocation.
|
|
3638
3638
|
:param str name: The name of the health-check.
|
|
3639
3639
|
:param str timeout: Specifies a timeout for outgoing connections in the case of a HTTP or TCP check.
|
|
3640
|
-
:param str deregister_critical_service_after: The time after which the service is automatically deregistered when in the `critical` state. Defaults to `30s`.
|
|
3640
|
+
:param str deregister_critical_service_after: The time after which the service is automatically deregistered when in the `critical` state. Defaults to `30s`. Setting to `0` will disable.
|
|
3641
3641
|
:param Sequence['ServiceCheckHeaderArgs'] headers: The headers to send for an HTTP check. The attributes of each header is given below.
|
|
3642
3642
|
:param str http: The HTTP endpoint to call for an HTTP check.
|
|
3643
3643
|
:param str method: The method to use for HTTP health-checks. Defaults to `GET`.
|
|
@@ -3703,7 +3703,7 @@ class ServiceCheck(dict):
|
|
|
3703
3703
|
@pulumi.getter(name="deregisterCriticalServiceAfter")
|
|
3704
3704
|
def deregister_critical_service_after(self) -> Optional[str]:
|
|
3705
3705
|
"""
|
|
3706
|
-
The time after which the service is automatically deregistered when in the `critical` state. Defaults to `30s`.
|
|
3706
|
+
The time after which the service is automatically deregistered when in the `critical` state. Defaults to `30s`. Setting to `0` will disable.
|
|
3707
3707
|
"""
|
|
3708
3708
|
return pulumi.get(self, "deregister_critical_service_after")
|
|
3709
3709
|
|
pulumi_consul/peering_token.py
CHANGED
|
@@ -16,17 +16,21 @@ class PeeringTokenArgs:
|
|
|
16
16
|
def __init__(__self__, *,
|
|
17
17
|
peer_name: pulumi.Input[str],
|
|
18
18
|
meta: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
19
|
-
partition: Optional[pulumi.Input[str]] = None
|
|
19
|
+
partition: Optional[pulumi.Input[str]] = None,
|
|
20
|
+
server_external_addresses: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
|
|
20
21
|
"""
|
|
21
22
|
The set of arguments for constructing a PeeringToken resource.
|
|
22
23
|
:param pulumi.Input[str] peer_name: The name assigned to the peer cluster. The `peer_name` is used to reference the peer cluster in service discovery queries and configuration entries such as `service-intentions`. This field must be a valid DNS hostname label.
|
|
23
24
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] meta: Specifies KV metadata to associate with the peering. This parameter is not required and does not directly impact the cluster peering process.
|
|
25
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] server_external_addresses: The addresses for the cluster that generates the peering token. Addresses take the form {host or IP}:port. You can specify one or more load balancers or external IPs that route external traffic to this cluster's Consul servers.
|
|
24
26
|
"""
|
|
25
27
|
pulumi.set(__self__, "peer_name", peer_name)
|
|
26
28
|
if meta is not None:
|
|
27
29
|
pulumi.set(__self__, "meta", meta)
|
|
28
30
|
if partition is not None:
|
|
29
31
|
pulumi.set(__self__, "partition", partition)
|
|
32
|
+
if server_external_addresses is not None:
|
|
33
|
+
pulumi.set(__self__, "server_external_addresses", server_external_addresses)
|
|
30
34
|
|
|
31
35
|
@property
|
|
32
36
|
@pulumi.getter(name="peerName")
|
|
@@ -61,6 +65,18 @@ class PeeringTokenArgs:
|
|
|
61
65
|
def partition(self, value: Optional[pulumi.Input[str]]):
|
|
62
66
|
pulumi.set(self, "partition", value)
|
|
63
67
|
|
|
68
|
+
@property
|
|
69
|
+
@pulumi.getter(name="serverExternalAddresses")
|
|
70
|
+
def server_external_addresses(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
71
|
+
"""
|
|
72
|
+
The addresses for the cluster that generates the peering token. Addresses take the form {host or IP}:port. You can specify one or more load balancers or external IPs that route external traffic to this cluster's Consul servers.
|
|
73
|
+
"""
|
|
74
|
+
return pulumi.get(self, "server_external_addresses")
|
|
75
|
+
|
|
76
|
+
@server_external_addresses.setter
|
|
77
|
+
def server_external_addresses(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
78
|
+
pulumi.set(self, "server_external_addresses", value)
|
|
79
|
+
|
|
64
80
|
|
|
65
81
|
@pulumi.input_type
|
|
66
82
|
class _PeeringTokenState:
|
|
@@ -68,12 +84,14 @@ class _PeeringTokenState:
|
|
|
68
84
|
meta: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
69
85
|
partition: Optional[pulumi.Input[str]] = None,
|
|
70
86
|
peer_name: Optional[pulumi.Input[str]] = None,
|
|
71
|
-
peering_token: Optional[pulumi.Input[str]] = None
|
|
87
|
+
peering_token: Optional[pulumi.Input[str]] = None,
|
|
88
|
+
server_external_addresses: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
|
|
72
89
|
"""
|
|
73
90
|
Input properties used for looking up and filtering PeeringToken resources.
|
|
74
91
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] meta: Specifies KV metadata to associate with the peering. This parameter is not required and does not directly impact the cluster peering process.
|
|
75
92
|
:param pulumi.Input[str] peer_name: The name assigned to the peer cluster. The `peer_name` is used to reference the peer cluster in service discovery queries and configuration entries such as `service-intentions`. This field must be a valid DNS hostname label.
|
|
76
93
|
:param pulumi.Input[str] peering_token: The generated peering token
|
|
94
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] server_external_addresses: The addresses for the cluster that generates the peering token. Addresses take the form {host or IP}:port. You can specify one or more load balancers or external IPs that route external traffic to this cluster's Consul servers.
|
|
77
95
|
"""
|
|
78
96
|
if meta is not None:
|
|
79
97
|
pulumi.set(__self__, "meta", meta)
|
|
@@ -83,6 +101,8 @@ class _PeeringTokenState:
|
|
|
83
101
|
pulumi.set(__self__, "peer_name", peer_name)
|
|
84
102
|
if peering_token is not None:
|
|
85
103
|
pulumi.set(__self__, "peering_token", peering_token)
|
|
104
|
+
if server_external_addresses is not None:
|
|
105
|
+
pulumi.set(__self__, "server_external_addresses", server_external_addresses)
|
|
86
106
|
|
|
87
107
|
@property
|
|
88
108
|
@pulumi.getter
|
|
@@ -129,6 +149,18 @@ class _PeeringTokenState:
|
|
|
129
149
|
def peering_token(self, value: Optional[pulumi.Input[str]]):
|
|
130
150
|
pulumi.set(self, "peering_token", value)
|
|
131
151
|
|
|
152
|
+
@property
|
|
153
|
+
@pulumi.getter(name="serverExternalAddresses")
|
|
154
|
+
def server_external_addresses(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
155
|
+
"""
|
|
156
|
+
The addresses for the cluster that generates the peering token. Addresses take the form {host or IP}:port. You can specify one or more load balancers or external IPs that route external traffic to this cluster's Consul servers.
|
|
157
|
+
"""
|
|
158
|
+
return pulumi.get(self, "server_external_addresses")
|
|
159
|
+
|
|
160
|
+
@server_external_addresses.setter
|
|
161
|
+
def server_external_addresses(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
162
|
+
pulumi.set(self, "server_external_addresses", value)
|
|
163
|
+
|
|
132
164
|
|
|
133
165
|
class PeeringToken(pulumi.CustomResource):
|
|
134
166
|
@overload
|
|
@@ -138,16 +170,13 @@ class PeeringToken(pulumi.CustomResource):
|
|
|
138
170
|
meta: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
139
171
|
partition: Optional[pulumi.Input[str]] = None,
|
|
140
172
|
peer_name: Optional[pulumi.Input[str]] = None,
|
|
173
|
+
server_external_addresses: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
141
174
|
__props__=None):
|
|
142
175
|
"""
|
|
143
176
|
[Cluster Peering](https://www.consul.io/docs/connect/cluster-peering) can be used to create connections between two or more independent clusters so that services deployed to different partitions or datacenters can communicate.
|
|
144
177
|
|
|
145
178
|
The `cluster_peering_token` resource can be used to generate a peering token that can later be used to establish a peering connection.
|
|
146
179
|
|
|
147
|
-
> **Cluster peering is currently in technical preview:** Functionality associated with cluster peering is subject to change. You should never use the technical preview release in secure environments or production scenarios. Features in technical preview may have performance issues, scaling issues, and limited support.
|
|
148
|
-
|
|
149
|
-
The functionality described here is available only in Consul version 1.13.0 and later.
|
|
150
|
-
|
|
151
180
|
## Example Usage
|
|
152
181
|
|
|
153
182
|
```python
|
|
@@ -161,6 +190,7 @@ class PeeringToken(pulumi.CustomResource):
|
|
|
161
190
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
162
191
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] meta: Specifies KV metadata to associate with the peering. This parameter is not required and does not directly impact the cluster peering process.
|
|
163
192
|
:param pulumi.Input[str] peer_name: The name assigned to the peer cluster. The `peer_name` is used to reference the peer cluster in service discovery queries and configuration entries such as `service-intentions`. This field must be a valid DNS hostname label.
|
|
193
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] server_external_addresses: The addresses for the cluster that generates the peering token. Addresses take the form {host or IP}:port. You can specify one or more load balancers or external IPs that route external traffic to this cluster's Consul servers.
|
|
164
194
|
"""
|
|
165
195
|
...
|
|
166
196
|
@overload
|
|
@@ -173,10 +203,6 @@ class PeeringToken(pulumi.CustomResource):
|
|
|
173
203
|
|
|
174
204
|
The `cluster_peering_token` resource can be used to generate a peering token that can later be used to establish a peering connection.
|
|
175
205
|
|
|
176
|
-
> **Cluster peering is currently in technical preview:** Functionality associated with cluster peering is subject to change. You should never use the technical preview release in secure environments or production scenarios. Features in technical preview may have performance issues, scaling issues, and limited support.
|
|
177
|
-
|
|
178
|
-
The functionality described here is available only in Consul version 1.13.0 and later.
|
|
179
|
-
|
|
180
206
|
## Example Usage
|
|
181
207
|
|
|
182
208
|
```python
|
|
@@ -204,6 +230,7 @@ class PeeringToken(pulumi.CustomResource):
|
|
|
204
230
|
meta: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
205
231
|
partition: Optional[pulumi.Input[str]] = None,
|
|
206
232
|
peer_name: Optional[pulumi.Input[str]] = None,
|
|
233
|
+
server_external_addresses: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
207
234
|
__props__=None):
|
|
208
235
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
209
236
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -218,6 +245,7 @@ class PeeringToken(pulumi.CustomResource):
|
|
|
218
245
|
if peer_name is None and not opts.urn:
|
|
219
246
|
raise TypeError("Missing required property 'peer_name'")
|
|
220
247
|
__props__.__dict__["peer_name"] = peer_name
|
|
248
|
+
__props__.__dict__["server_external_addresses"] = server_external_addresses
|
|
221
249
|
__props__.__dict__["peering_token"] = None
|
|
222
250
|
secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["peeringToken"])
|
|
223
251
|
opts = pulumi.ResourceOptions.merge(opts, secret_opts)
|
|
@@ -234,7 +262,8 @@ class PeeringToken(pulumi.CustomResource):
|
|
|
234
262
|
meta: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
235
263
|
partition: Optional[pulumi.Input[str]] = None,
|
|
236
264
|
peer_name: Optional[pulumi.Input[str]] = None,
|
|
237
|
-
peering_token: Optional[pulumi.Input[str]] = None
|
|
265
|
+
peering_token: Optional[pulumi.Input[str]] = None,
|
|
266
|
+
server_external_addresses: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None) -> 'PeeringToken':
|
|
238
267
|
"""
|
|
239
268
|
Get an existing PeeringToken resource's state with the given name, id, and optional extra
|
|
240
269
|
properties used to qualify the lookup.
|
|
@@ -245,6 +274,7 @@ class PeeringToken(pulumi.CustomResource):
|
|
|
245
274
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] meta: Specifies KV metadata to associate with the peering. This parameter is not required and does not directly impact the cluster peering process.
|
|
246
275
|
:param pulumi.Input[str] peer_name: The name assigned to the peer cluster. The `peer_name` is used to reference the peer cluster in service discovery queries and configuration entries such as `service-intentions`. This field must be a valid DNS hostname label.
|
|
247
276
|
:param pulumi.Input[str] peering_token: The generated peering token
|
|
277
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] server_external_addresses: The addresses for the cluster that generates the peering token. Addresses take the form {host or IP}:port. You can specify one or more load balancers or external IPs that route external traffic to this cluster's Consul servers.
|
|
248
278
|
"""
|
|
249
279
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
250
280
|
|
|
@@ -254,6 +284,7 @@ class PeeringToken(pulumi.CustomResource):
|
|
|
254
284
|
__props__.__dict__["partition"] = partition
|
|
255
285
|
__props__.__dict__["peer_name"] = peer_name
|
|
256
286
|
__props__.__dict__["peering_token"] = peering_token
|
|
287
|
+
__props__.__dict__["server_external_addresses"] = server_external_addresses
|
|
257
288
|
return PeeringToken(resource_name, opts=opts, __props__=__props__)
|
|
258
289
|
|
|
259
290
|
@property
|
|
@@ -285,3 +316,11 @@ class PeeringToken(pulumi.CustomResource):
|
|
|
285
316
|
"""
|
|
286
317
|
return pulumi.get(self, "peering_token")
|
|
287
318
|
|
|
319
|
+
@property
|
|
320
|
+
@pulumi.getter(name="serverExternalAddresses")
|
|
321
|
+
def server_external_addresses(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
|
322
|
+
"""
|
|
323
|
+
The addresses for the cluster that generates the peering token. Addresses take the form {host or IP}:port. You can specify one or more load balancers or external IPs that route external traffic to this cluster's Consul servers.
|
|
324
|
+
"""
|
|
325
|
+
return pulumi.get(self, "server_external_addresses")
|
|
326
|
+
|
pulumi_consul/pulumi-plugin.json
CHANGED
{pulumi_consul-3.12.0a1721971430.dist-info → pulumi_consul-3.12.0a1722856947.dist-info}/RECORD
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
pulumi_consul/__init__.py,sha256=
|
|
2
|
-
pulumi_consul/_inputs.py,sha256=
|
|
1
|
+
pulumi_consul/__init__.py,sha256=Pt7eaNDHQaFtqd8PvL3XabtrN5K7M-kUemQUZf2HUbE,8359
|
|
2
|
+
pulumi_consul/_inputs.py,sha256=HRrWfx_uaV0y52NOPPQZjQQnNtHw20w7LSRQdCW3_6Y,217015
|
|
3
3
|
pulumi_consul/_utilities.py,sha256=aNnnaO6zRha3FhNHonuabR4fJLWGXANtK5dlh1Mz95k,10506
|
|
4
4
|
pulumi_consul/acl_auth_method.py,sha256=nZQvvZT9v7-epDNtdBbGQuzZA_4ZRP8_QYGzXNkluFY,32468
|
|
5
5
|
pulumi_consul/acl_binding_rule.py,sha256=qoMrO-kFxOlCiYmtZRcaNkI6deNTNo7Cu6vM3Ll8nHo,22734
|
|
@@ -20,6 +20,7 @@ pulumi_consul/config_entry_service_intentions.py,sha256=ym6dvGNUvJboSrtvIHM4QE_y
|
|
|
20
20
|
pulumi_consul/config_entry_service_resolver.py,sha256=8pet5lVdnuMOkaDpJkQnQRqW1_N1-3_fTwsAfN41Ccs,35410
|
|
21
21
|
pulumi_consul/config_entry_service_router.py,sha256=ANW6NOgPxk2nyc5k3rXfEbHpnnNdU5JVsp1FhiUSNPA,14342
|
|
22
22
|
pulumi_consul/config_entry_service_splitter.py,sha256=Yj57zIzBC5l1LpVXVLNwK2UCHuhdjUciqHq6dzFOvD8,20220
|
|
23
|
+
pulumi_consul/config_entry_v2_exported_services.py,sha256=fzqOnQMR3Jk1gzx6GGHSRBMKpFAjk3XGArUfTdZ9Q6k,21469
|
|
23
24
|
pulumi_consul/get_acl_auth_method.py,sha256=3AGxnlKklWqtUynr8s2ThMkdCad5dUE2A1HJcudGSLU,9368
|
|
24
25
|
pulumi_consul/get_acl_policy.py,sha256=LFQlcq2jS7ptdGTWr9Dos9Wq64gqeTv8GNM4G88SNVU,5926
|
|
25
26
|
pulumi_consul/get_acl_role.py,sha256=Rcbne_FKhB2lNSQEj5P87n68uO9hjGRWDx-IJZC-x2o,7581
|
|
@@ -32,6 +33,7 @@ pulumi_consul/get_catalog_nodes.py,sha256=nZZIzVkm74PtG34IlKugBZnX3adeQyOSNmoZz_
|
|
|
32
33
|
pulumi_consul/get_catalog_service.py,sha256=yqx5jEJHt-lvAodRu-jgEOeSMr8PS_EqdzDQpvDM8oY,9233
|
|
33
34
|
pulumi_consul/get_catalog_services.py,sha256=gGR6oN9YncIZSrYY-duOTDChzj5ubje0wMrWVlSzEDE,7110
|
|
34
35
|
pulumi_consul/get_config_entry.py,sha256=8pHLWLT5RUVPiJj5zU2VV1xkGsT9JpLsmVwxeqbEpzE,5478
|
|
36
|
+
pulumi_consul/get_config_entry_v2_exported_services.py,sha256=Erle3cVbA2CE1ivD0Gg9A53mO4NnKmWt4wMbwCQW9GY,9807
|
|
35
37
|
pulumi_consul/get_datacenters.py,sha256=WNivbaPSVbCtwHtvdRjljUti1YWaOJtqxBBc-_7IFEc,2669
|
|
36
38
|
pulumi_consul/get_key_prefix.py,sha256=G3w3w-26fE_CH7EiJfBARWxSUs7WnyEGZGj7tMLmwOk,10303
|
|
37
39
|
pulumi_consul/get_keys.py,sha256=HepQZfh4rqOYwQFnZyCRLMufu3fsl89vnySJ5BEfkHM,9183
|
|
@@ -52,19 +54,19 @@ pulumi_consul/namespace_policy_attachment.py,sha256=0qlJ92SJLDdocHj8dmm0cd1LAqF-
|
|
|
52
54
|
pulumi_consul/namespace_role_attachment.py,sha256=-xlic3f_MQ7JN0i0aNPEvSD7pT8vzrM0fvlUB7KLOoY,8052
|
|
53
55
|
pulumi_consul/network_area.py,sha256=uXillh7ugCOe1VH8t2n1Bb01v8UzIw1j2z0BT4932H8,19052
|
|
54
56
|
pulumi_consul/node.py,sha256=EuyGxn_vJI8tyYBqL-b-3_kyT6PXPHv1xNFacpuLznE,17381
|
|
55
|
-
pulumi_consul/outputs.py,sha256=
|
|
57
|
+
pulumi_consul/outputs.py,sha256=EeFL7PvjA1O4mq2KadOeM88dxWc3U46RfMJrXaw3vPY,234693
|
|
56
58
|
pulumi_consul/peering.py,sha256=B2_vXke9-rZ2IiFiQRddhW8lDJex8PFtMFqzR5IR6Rc,20322
|
|
57
|
-
pulumi_consul/peering_token.py,sha256=
|
|
59
|
+
pulumi_consul/peering_token.py,sha256=3Yxj8DK832xp_qNF4nnKzCtHbijDMydZlQJr_3rGfYU,17266
|
|
58
60
|
pulumi_consul/prepared_query.py,sha256=JUfSgOBPZ0Jm-FM5pvF218rAkg6qRGy8VMssHoPmQpw,53529
|
|
59
61
|
pulumi_consul/provider.py,sha256=1xhCm2DWQ1CuCIy7sDnl_lzHDj4wtS2mc3OH7vQaToU,24679
|
|
60
|
-
pulumi_consul/pulumi-plugin.json,sha256=
|
|
62
|
+
pulumi_consul/pulumi-plugin.json,sha256=tc7ITPqYYi5hWgyV9jnhXfA60izMywCEt3kE3WV6O-g,83
|
|
61
63
|
pulumi_consul/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
62
64
|
pulumi_consul/service.py,sha256=lg7C9Q376BtnGIB4FUXvdCZFyo8uOLACc5DqlvyPvJ0,34285
|
|
63
65
|
pulumi_consul/config/__init__.py,sha256=cfY0smRZD3fDVc93ZIAxEl_IM2pynmXB52n3Ahzi030,285
|
|
64
66
|
pulumi_consul/config/__init__.pyi,sha256=Xr56VkEbCA8jXnSDMCxONcnilMpQdAHs6-imo_c-TBU,2587
|
|
65
67
|
pulumi_consul/config/outputs.py,sha256=gDtRkTfR9uCq26RXew73SpJWdrCejHeWHhoL5--_LW4,3384
|
|
66
68
|
pulumi_consul/config/vars.py,sha256=SXNUccmf6RtLkyaTd4mMknJtP2rlISHxMcq4PUHRgpg,4255
|
|
67
|
-
pulumi_consul-3.12.
|
|
68
|
-
pulumi_consul-3.12.
|
|
69
|
-
pulumi_consul-3.12.
|
|
70
|
-
pulumi_consul-3.12.
|
|
69
|
+
pulumi_consul-3.12.0a1722856947.dist-info/METADATA,sha256=YCEMbh2Iw5qcxQktTsKYjJS4uT4MhYaI7gZiPzM4mes,3944
|
|
70
|
+
pulumi_consul-3.12.0a1722856947.dist-info/WHEEL,sha256=R0nc6qTxuoLk7ShA2_Y-UWkN8ZdfDBG2B6Eqpz2WXbs,91
|
|
71
|
+
pulumi_consul-3.12.0a1722856947.dist-info/top_level.txt,sha256=SrKSXrIq8AWqnNKrd7pWSC691idGwXi9XMA-DTWwcfg,14
|
|
72
|
+
pulumi_consul-3.12.0a1722856947.dist-info/RECORD,,
|
|
File without changes
|