pulumi-consul 3.12.0a1710156214__py3-none-any.whl → 3.13.0a1736849276__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 +1592 -31
- pulumi_consul/_utilities.py +41 -5
- pulumi_consul/acl_auth_method.py +17 -22
- pulumi_consul/acl_binding_rule.py +12 -9
- pulumi_consul/acl_policy.py +7 -6
- pulumi_consul/acl_role.py +37 -32
- pulumi_consul/acl_role_policy_attachment.py +13 -10
- pulumi_consul/acl_token.py +34 -29
- pulumi_consul/acl_token_policy_attachment.py +5 -0
- pulumi_consul/acl_token_role_attachment.py +5 -0
- pulumi_consul/admin_partition.py +11 -6
- pulumi_consul/agent_service.py +7 -4
- pulumi_consul/autopilot_config.py +5 -4
- pulumi_consul/catalog_entry.py +16 -66
- pulumi_consul/certificate_authority.py +8 -49
- pulumi_consul/config/__init__.pyi +5 -0
- pulumi_consul/config/outputs.py +5 -0
- pulumi_consul/config/vars.py +5 -0
- pulumi_consul/config_entry.py +57 -46
- pulumi_consul/config_entry_service_defaults.py +54 -49
- pulumi_consul/config_entry_service_intentions.py +80 -75
- pulumi_consul/config_entry_service_resolver.py +94 -91
- pulumi_consul/config_entry_service_router.py +31 -66
- pulumi_consul/config_entry_service_splitter.py +102 -95
- pulumi_consul/config_entry_v2_exported_services.py +479 -0
- pulumi_consul/get_acl_auth_method.py +26 -12
- pulumi_consul/get_acl_policy.py +20 -9
- pulumi_consul/get_acl_role.py +24 -9
- pulumi_consul/get_acl_token.py +25 -9
- pulumi_consul/get_acl_token_secret_id.py +29 -15
- pulumi_consul/get_agent_config.py +17 -9
- pulumi_consul/get_agent_self.py +82 -5
- pulumi_consul/get_autopilot_health.py +16 -9
- pulumi_consul/get_catalog_nodes.py +21 -9
- pulumi_consul/get_catalog_service.py +56 -13
- pulumi_consul/get_catalog_services.py +53 -9
- pulumi_consul/get_config_entry.py +20 -5
- pulumi_consul/get_config_entry_v2_exported_services.py +232 -0
- pulumi_consul/get_datacenters.py +12 -5
- pulumi_consul/get_key_prefix.py +55 -46
- pulumi_consul/get_keys.py +44 -34
- pulumi_consul/get_network_area_members.py +26 -20
- pulumi_consul/get_network_segments.py +22 -18
- pulumi_consul/get_nodes.py +21 -9
- pulumi_consul/get_peering.py +22 -9
- pulumi_consul/get_peerings.py +14 -9
- pulumi_consul/get_service.py +56 -13
- pulumi_consul/get_service_health.py +28 -5
- pulumi_consul/get_services.py +53 -9
- pulumi_consul/intention.py +15 -18
- pulumi_consul/key_prefix.py +42 -50
- pulumi_consul/keys.py +26 -34
- pulumi_consul/license.py +9 -6
- pulumi_consul/namespace.py +7 -4
- pulumi_consul/namespace_policy_attachment.py +5 -0
- pulumi_consul/namespace_role_attachment.py +5 -0
- pulumi_consul/network_area.py +11 -19
- pulumi_consul/node.py +17 -21
- pulumi_consul/outputs.py +30 -27
- pulumi_consul/peering.py +13 -22
- pulumi_consul/peering_token.py +55 -15
- pulumi_consul/prepared_query.py +99 -103
- pulumi_consul/provider.py +11 -6
- pulumi_consul/pulumi-plugin.json +2 -1
- pulumi_consul/service.py +90 -29
- {pulumi_consul-3.12.0a1710156214.dist-info → pulumi_consul-3.13.0a1736849276.dist-info}/METADATA +7 -6
- pulumi_consul-3.13.0a1736849276.dist-info/RECORD +72 -0
- {pulumi_consul-3.12.0a1710156214.dist-info → pulumi_consul-3.13.0a1736849276.dist-info}/WHEEL +1 -1
- pulumi_consul-3.12.0a1710156214.dist-info/RECORD +0 -70
- {pulumi_consul-3.12.0a1710156214.dist-info → pulumi_consul-3.13.0a1736849276.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,479 @@
|
|
|
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 sys
|
|
8
|
+
import pulumi
|
|
9
|
+
import pulumi.runtime
|
|
10
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
|
+
from . import _utilities
|
|
16
|
+
|
|
17
|
+
__all__ = ['ConfigEntryV2ExportedServicesArgs', 'ConfigEntryV2ExportedServices']
|
|
18
|
+
|
|
19
|
+
@pulumi.input_type
|
|
20
|
+
class ConfigEntryV2ExportedServicesArgs:
|
|
21
|
+
def __init__(__self__, *,
|
|
22
|
+
kind: pulumi.Input[str],
|
|
23
|
+
partition: pulumi.Input[str],
|
|
24
|
+
name: Optional[pulumi.Input[str]] = None,
|
|
25
|
+
namespace: Optional[pulumi.Input[str]] = None,
|
|
26
|
+
partition_consumers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
27
|
+
peer_consumers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
28
|
+
sameness_group_consumers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
29
|
+
services: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
|
|
30
|
+
"""
|
|
31
|
+
The set of arguments for constructing a ConfigEntryV2ExportedServices resource.
|
|
32
|
+
:param pulumi.Input[str] kind: The kind of exported services config (ExportedServices, NamespaceExportedServices, PartitionExportedServices).
|
|
33
|
+
:param pulumi.Input[str] partition: The partition the config entry is associated with.
|
|
34
|
+
:param pulumi.Input[str] name: The name of the config entry to read.
|
|
35
|
+
:param pulumi.Input[str] namespace: The namespace the config entry is associated with.
|
|
36
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] partition_consumers: The exported service partition consumers.
|
|
37
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] peer_consumers: The exported service peer consumers.
|
|
38
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] sameness_group_consumers: The exported service sameness group consumers.
|
|
39
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] services: The exported services.
|
|
40
|
+
"""
|
|
41
|
+
pulumi.set(__self__, "kind", kind)
|
|
42
|
+
pulumi.set(__self__, "partition", partition)
|
|
43
|
+
if name is not None:
|
|
44
|
+
pulumi.set(__self__, "name", name)
|
|
45
|
+
if namespace is not None:
|
|
46
|
+
pulumi.set(__self__, "namespace", namespace)
|
|
47
|
+
if partition_consumers is not None:
|
|
48
|
+
pulumi.set(__self__, "partition_consumers", partition_consumers)
|
|
49
|
+
if peer_consumers is not None:
|
|
50
|
+
pulumi.set(__self__, "peer_consumers", peer_consumers)
|
|
51
|
+
if sameness_group_consumers is not None:
|
|
52
|
+
pulumi.set(__self__, "sameness_group_consumers", sameness_group_consumers)
|
|
53
|
+
if services is not None:
|
|
54
|
+
pulumi.set(__self__, "services", services)
|
|
55
|
+
|
|
56
|
+
@property
|
|
57
|
+
@pulumi.getter
|
|
58
|
+
def kind(self) -> pulumi.Input[str]:
|
|
59
|
+
"""
|
|
60
|
+
The kind of exported services config (ExportedServices, NamespaceExportedServices, PartitionExportedServices).
|
|
61
|
+
"""
|
|
62
|
+
return pulumi.get(self, "kind")
|
|
63
|
+
|
|
64
|
+
@kind.setter
|
|
65
|
+
def kind(self, value: pulumi.Input[str]):
|
|
66
|
+
pulumi.set(self, "kind", value)
|
|
67
|
+
|
|
68
|
+
@property
|
|
69
|
+
@pulumi.getter
|
|
70
|
+
def partition(self) -> pulumi.Input[str]:
|
|
71
|
+
"""
|
|
72
|
+
The partition the config entry is associated with.
|
|
73
|
+
"""
|
|
74
|
+
return pulumi.get(self, "partition")
|
|
75
|
+
|
|
76
|
+
@partition.setter
|
|
77
|
+
def partition(self, value: pulumi.Input[str]):
|
|
78
|
+
pulumi.set(self, "partition", value)
|
|
79
|
+
|
|
80
|
+
@property
|
|
81
|
+
@pulumi.getter
|
|
82
|
+
def name(self) -> Optional[pulumi.Input[str]]:
|
|
83
|
+
"""
|
|
84
|
+
The name of the config entry to read.
|
|
85
|
+
"""
|
|
86
|
+
return pulumi.get(self, "name")
|
|
87
|
+
|
|
88
|
+
@name.setter
|
|
89
|
+
def name(self, value: Optional[pulumi.Input[str]]):
|
|
90
|
+
pulumi.set(self, "name", value)
|
|
91
|
+
|
|
92
|
+
@property
|
|
93
|
+
@pulumi.getter
|
|
94
|
+
def namespace(self) -> Optional[pulumi.Input[str]]:
|
|
95
|
+
"""
|
|
96
|
+
The namespace the config entry is associated with.
|
|
97
|
+
"""
|
|
98
|
+
return pulumi.get(self, "namespace")
|
|
99
|
+
|
|
100
|
+
@namespace.setter
|
|
101
|
+
def namespace(self, value: Optional[pulumi.Input[str]]):
|
|
102
|
+
pulumi.set(self, "namespace", value)
|
|
103
|
+
|
|
104
|
+
@property
|
|
105
|
+
@pulumi.getter(name="partitionConsumers")
|
|
106
|
+
def partition_consumers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
107
|
+
"""
|
|
108
|
+
The exported service partition consumers.
|
|
109
|
+
"""
|
|
110
|
+
return pulumi.get(self, "partition_consumers")
|
|
111
|
+
|
|
112
|
+
@partition_consumers.setter
|
|
113
|
+
def partition_consumers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
114
|
+
pulumi.set(self, "partition_consumers", value)
|
|
115
|
+
|
|
116
|
+
@property
|
|
117
|
+
@pulumi.getter(name="peerConsumers")
|
|
118
|
+
def peer_consumers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
119
|
+
"""
|
|
120
|
+
The exported service peer consumers.
|
|
121
|
+
"""
|
|
122
|
+
return pulumi.get(self, "peer_consumers")
|
|
123
|
+
|
|
124
|
+
@peer_consumers.setter
|
|
125
|
+
def peer_consumers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
126
|
+
pulumi.set(self, "peer_consumers", value)
|
|
127
|
+
|
|
128
|
+
@property
|
|
129
|
+
@pulumi.getter(name="samenessGroupConsumers")
|
|
130
|
+
def sameness_group_consumers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
131
|
+
"""
|
|
132
|
+
The exported service sameness group consumers.
|
|
133
|
+
"""
|
|
134
|
+
return pulumi.get(self, "sameness_group_consumers")
|
|
135
|
+
|
|
136
|
+
@sameness_group_consumers.setter
|
|
137
|
+
def sameness_group_consumers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
138
|
+
pulumi.set(self, "sameness_group_consumers", value)
|
|
139
|
+
|
|
140
|
+
@property
|
|
141
|
+
@pulumi.getter
|
|
142
|
+
def services(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
143
|
+
"""
|
|
144
|
+
The exported services.
|
|
145
|
+
"""
|
|
146
|
+
return pulumi.get(self, "services")
|
|
147
|
+
|
|
148
|
+
@services.setter
|
|
149
|
+
def services(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
150
|
+
pulumi.set(self, "services", value)
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
@pulumi.input_type
|
|
154
|
+
class _ConfigEntryV2ExportedServicesState:
|
|
155
|
+
def __init__(__self__, *,
|
|
156
|
+
kind: Optional[pulumi.Input[str]] = None,
|
|
157
|
+
name: Optional[pulumi.Input[str]] = None,
|
|
158
|
+
namespace: Optional[pulumi.Input[str]] = None,
|
|
159
|
+
partition: Optional[pulumi.Input[str]] = None,
|
|
160
|
+
partition_consumers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
161
|
+
peer_consumers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
162
|
+
sameness_group_consumers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
163
|
+
services: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
|
|
164
|
+
"""
|
|
165
|
+
Input properties used for looking up and filtering ConfigEntryV2ExportedServices resources.
|
|
166
|
+
:param pulumi.Input[str] kind: The kind of exported services config (ExportedServices, NamespaceExportedServices, PartitionExportedServices).
|
|
167
|
+
:param pulumi.Input[str] name: The name of the config entry to read.
|
|
168
|
+
:param pulumi.Input[str] namespace: The namespace the config entry is associated with.
|
|
169
|
+
:param pulumi.Input[str] partition: The partition the config entry is associated with.
|
|
170
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] partition_consumers: The exported service partition consumers.
|
|
171
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] peer_consumers: The exported service peer consumers.
|
|
172
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] sameness_group_consumers: The exported service sameness group consumers.
|
|
173
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] services: The exported services.
|
|
174
|
+
"""
|
|
175
|
+
if kind is not None:
|
|
176
|
+
pulumi.set(__self__, "kind", kind)
|
|
177
|
+
if name is not None:
|
|
178
|
+
pulumi.set(__self__, "name", name)
|
|
179
|
+
if namespace is not None:
|
|
180
|
+
pulumi.set(__self__, "namespace", namespace)
|
|
181
|
+
if partition is not None:
|
|
182
|
+
pulumi.set(__self__, "partition", partition)
|
|
183
|
+
if partition_consumers is not None:
|
|
184
|
+
pulumi.set(__self__, "partition_consumers", partition_consumers)
|
|
185
|
+
if peer_consumers is not None:
|
|
186
|
+
pulumi.set(__self__, "peer_consumers", peer_consumers)
|
|
187
|
+
if sameness_group_consumers is not None:
|
|
188
|
+
pulumi.set(__self__, "sameness_group_consumers", sameness_group_consumers)
|
|
189
|
+
if services is not None:
|
|
190
|
+
pulumi.set(__self__, "services", services)
|
|
191
|
+
|
|
192
|
+
@property
|
|
193
|
+
@pulumi.getter
|
|
194
|
+
def kind(self) -> Optional[pulumi.Input[str]]:
|
|
195
|
+
"""
|
|
196
|
+
The kind of exported services config (ExportedServices, NamespaceExportedServices, PartitionExportedServices).
|
|
197
|
+
"""
|
|
198
|
+
return pulumi.get(self, "kind")
|
|
199
|
+
|
|
200
|
+
@kind.setter
|
|
201
|
+
def kind(self, value: Optional[pulumi.Input[str]]):
|
|
202
|
+
pulumi.set(self, "kind", value)
|
|
203
|
+
|
|
204
|
+
@property
|
|
205
|
+
@pulumi.getter
|
|
206
|
+
def name(self) -> Optional[pulumi.Input[str]]:
|
|
207
|
+
"""
|
|
208
|
+
The name of the config entry to read.
|
|
209
|
+
"""
|
|
210
|
+
return pulumi.get(self, "name")
|
|
211
|
+
|
|
212
|
+
@name.setter
|
|
213
|
+
def name(self, value: Optional[pulumi.Input[str]]):
|
|
214
|
+
pulumi.set(self, "name", value)
|
|
215
|
+
|
|
216
|
+
@property
|
|
217
|
+
@pulumi.getter
|
|
218
|
+
def namespace(self) -> Optional[pulumi.Input[str]]:
|
|
219
|
+
"""
|
|
220
|
+
The namespace the config entry is associated with.
|
|
221
|
+
"""
|
|
222
|
+
return pulumi.get(self, "namespace")
|
|
223
|
+
|
|
224
|
+
@namespace.setter
|
|
225
|
+
def namespace(self, value: Optional[pulumi.Input[str]]):
|
|
226
|
+
pulumi.set(self, "namespace", value)
|
|
227
|
+
|
|
228
|
+
@property
|
|
229
|
+
@pulumi.getter
|
|
230
|
+
def partition(self) -> Optional[pulumi.Input[str]]:
|
|
231
|
+
"""
|
|
232
|
+
The partition the config entry is associated with.
|
|
233
|
+
"""
|
|
234
|
+
return pulumi.get(self, "partition")
|
|
235
|
+
|
|
236
|
+
@partition.setter
|
|
237
|
+
def partition(self, value: Optional[pulumi.Input[str]]):
|
|
238
|
+
pulumi.set(self, "partition", value)
|
|
239
|
+
|
|
240
|
+
@property
|
|
241
|
+
@pulumi.getter(name="partitionConsumers")
|
|
242
|
+
def partition_consumers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
243
|
+
"""
|
|
244
|
+
The exported service partition consumers.
|
|
245
|
+
"""
|
|
246
|
+
return pulumi.get(self, "partition_consumers")
|
|
247
|
+
|
|
248
|
+
@partition_consumers.setter
|
|
249
|
+
def partition_consumers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
250
|
+
pulumi.set(self, "partition_consumers", value)
|
|
251
|
+
|
|
252
|
+
@property
|
|
253
|
+
@pulumi.getter(name="peerConsumers")
|
|
254
|
+
def peer_consumers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
255
|
+
"""
|
|
256
|
+
The exported service peer consumers.
|
|
257
|
+
"""
|
|
258
|
+
return pulumi.get(self, "peer_consumers")
|
|
259
|
+
|
|
260
|
+
@peer_consumers.setter
|
|
261
|
+
def peer_consumers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
262
|
+
pulumi.set(self, "peer_consumers", value)
|
|
263
|
+
|
|
264
|
+
@property
|
|
265
|
+
@pulumi.getter(name="samenessGroupConsumers")
|
|
266
|
+
def sameness_group_consumers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
267
|
+
"""
|
|
268
|
+
The exported service sameness group consumers.
|
|
269
|
+
"""
|
|
270
|
+
return pulumi.get(self, "sameness_group_consumers")
|
|
271
|
+
|
|
272
|
+
@sameness_group_consumers.setter
|
|
273
|
+
def sameness_group_consumers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
274
|
+
pulumi.set(self, "sameness_group_consumers", value)
|
|
275
|
+
|
|
276
|
+
@property
|
|
277
|
+
@pulumi.getter
|
|
278
|
+
def services(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
279
|
+
"""
|
|
280
|
+
The exported services.
|
|
281
|
+
"""
|
|
282
|
+
return pulumi.get(self, "services")
|
|
283
|
+
|
|
284
|
+
@services.setter
|
|
285
|
+
def services(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
286
|
+
pulumi.set(self, "services", value)
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
class ConfigEntryV2ExportedServices(pulumi.CustomResource):
|
|
290
|
+
@overload
|
|
291
|
+
def __init__(__self__,
|
|
292
|
+
resource_name: str,
|
|
293
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
294
|
+
kind: Optional[pulumi.Input[str]] = None,
|
|
295
|
+
name: Optional[pulumi.Input[str]] = None,
|
|
296
|
+
namespace: Optional[pulumi.Input[str]] = None,
|
|
297
|
+
partition: Optional[pulumi.Input[str]] = None,
|
|
298
|
+
partition_consumers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
299
|
+
peer_consumers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
300
|
+
sameness_group_consumers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
301
|
+
services: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
302
|
+
__props__=None):
|
|
303
|
+
"""
|
|
304
|
+
Create a ConfigEntryV2ExportedServices resource with the given unique name, props, and options.
|
|
305
|
+
:param str resource_name: The name of the resource.
|
|
306
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
307
|
+
:param pulumi.Input[str] kind: The kind of exported services config (ExportedServices, NamespaceExportedServices, PartitionExportedServices).
|
|
308
|
+
:param pulumi.Input[str] name: The name of the config entry to read.
|
|
309
|
+
:param pulumi.Input[str] namespace: The namespace the config entry is associated with.
|
|
310
|
+
:param pulumi.Input[str] partition: The partition the config entry is associated with.
|
|
311
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] partition_consumers: The exported service partition consumers.
|
|
312
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] peer_consumers: The exported service peer consumers.
|
|
313
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] sameness_group_consumers: The exported service sameness group consumers.
|
|
314
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] services: The exported services.
|
|
315
|
+
"""
|
|
316
|
+
...
|
|
317
|
+
@overload
|
|
318
|
+
def __init__(__self__,
|
|
319
|
+
resource_name: str,
|
|
320
|
+
args: ConfigEntryV2ExportedServicesArgs,
|
|
321
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
322
|
+
"""
|
|
323
|
+
Create a ConfigEntryV2ExportedServices resource with the given unique name, props, and options.
|
|
324
|
+
:param str resource_name: The name of the resource.
|
|
325
|
+
:param ConfigEntryV2ExportedServicesArgs args: The arguments to use to populate this resource's properties.
|
|
326
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
327
|
+
"""
|
|
328
|
+
...
|
|
329
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
330
|
+
resource_args, opts = _utilities.get_resource_args_opts(ConfigEntryV2ExportedServicesArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
331
|
+
if resource_args is not None:
|
|
332
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
333
|
+
else:
|
|
334
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
335
|
+
|
|
336
|
+
def _internal_init(__self__,
|
|
337
|
+
resource_name: str,
|
|
338
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
339
|
+
kind: Optional[pulumi.Input[str]] = None,
|
|
340
|
+
name: Optional[pulumi.Input[str]] = None,
|
|
341
|
+
namespace: Optional[pulumi.Input[str]] = None,
|
|
342
|
+
partition: Optional[pulumi.Input[str]] = None,
|
|
343
|
+
partition_consumers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
344
|
+
peer_consumers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
345
|
+
sameness_group_consumers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
346
|
+
services: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
347
|
+
__props__=None):
|
|
348
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
349
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
350
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
351
|
+
if opts.id is None:
|
|
352
|
+
if __props__ is not None:
|
|
353
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
354
|
+
__props__ = ConfigEntryV2ExportedServicesArgs.__new__(ConfigEntryV2ExportedServicesArgs)
|
|
355
|
+
|
|
356
|
+
if kind is None and not opts.urn:
|
|
357
|
+
raise TypeError("Missing required property 'kind'")
|
|
358
|
+
__props__.__dict__["kind"] = kind
|
|
359
|
+
__props__.__dict__["name"] = name
|
|
360
|
+
__props__.__dict__["namespace"] = namespace
|
|
361
|
+
if partition is None and not opts.urn:
|
|
362
|
+
raise TypeError("Missing required property 'partition'")
|
|
363
|
+
__props__.__dict__["partition"] = partition
|
|
364
|
+
__props__.__dict__["partition_consumers"] = partition_consumers
|
|
365
|
+
__props__.__dict__["peer_consumers"] = peer_consumers
|
|
366
|
+
__props__.__dict__["sameness_group_consumers"] = sameness_group_consumers
|
|
367
|
+
__props__.__dict__["services"] = services
|
|
368
|
+
super(ConfigEntryV2ExportedServices, __self__).__init__(
|
|
369
|
+
'consul:index/configEntryV2ExportedServices:ConfigEntryV2ExportedServices',
|
|
370
|
+
resource_name,
|
|
371
|
+
__props__,
|
|
372
|
+
opts)
|
|
373
|
+
|
|
374
|
+
@staticmethod
|
|
375
|
+
def get(resource_name: str,
|
|
376
|
+
id: pulumi.Input[str],
|
|
377
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
378
|
+
kind: Optional[pulumi.Input[str]] = None,
|
|
379
|
+
name: Optional[pulumi.Input[str]] = None,
|
|
380
|
+
namespace: Optional[pulumi.Input[str]] = None,
|
|
381
|
+
partition: Optional[pulumi.Input[str]] = None,
|
|
382
|
+
partition_consumers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
383
|
+
peer_consumers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
384
|
+
sameness_group_consumers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
385
|
+
services: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None) -> 'ConfigEntryV2ExportedServices':
|
|
386
|
+
"""
|
|
387
|
+
Get an existing ConfigEntryV2ExportedServices resource's state with the given name, id, and optional extra
|
|
388
|
+
properties used to qualify the lookup.
|
|
389
|
+
|
|
390
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
391
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
392
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
393
|
+
:param pulumi.Input[str] kind: The kind of exported services config (ExportedServices, NamespaceExportedServices, PartitionExportedServices).
|
|
394
|
+
:param pulumi.Input[str] name: The name of the config entry to read.
|
|
395
|
+
:param pulumi.Input[str] namespace: The namespace the config entry is associated with.
|
|
396
|
+
:param pulumi.Input[str] partition: The partition the config entry is associated with.
|
|
397
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] partition_consumers: The exported service partition consumers.
|
|
398
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] peer_consumers: The exported service peer consumers.
|
|
399
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] sameness_group_consumers: The exported service sameness group consumers.
|
|
400
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] services: The exported services.
|
|
401
|
+
"""
|
|
402
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
403
|
+
|
|
404
|
+
__props__ = _ConfigEntryV2ExportedServicesState.__new__(_ConfigEntryV2ExportedServicesState)
|
|
405
|
+
|
|
406
|
+
__props__.__dict__["kind"] = kind
|
|
407
|
+
__props__.__dict__["name"] = name
|
|
408
|
+
__props__.__dict__["namespace"] = namespace
|
|
409
|
+
__props__.__dict__["partition"] = partition
|
|
410
|
+
__props__.__dict__["partition_consumers"] = partition_consumers
|
|
411
|
+
__props__.__dict__["peer_consumers"] = peer_consumers
|
|
412
|
+
__props__.__dict__["sameness_group_consumers"] = sameness_group_consumers
|
|
413
|
+
__props__.__dict__["services"] = services
|
|
414
|
+
return ConfigEntryV2ExportedServices(resource_name, opts=opts, __props__=__props__)
|
|
415
|
+
|
|
416
|
+
@property
|
|
417
|
+
@pulumi.getter
|
|
418
|
+
def kind(self) -> pulumi.Output[str]:
|
|
419
|
+
"""
|
|
420
|
+
The kind of exported services config (ExportedServices, NamespaceExportedServices, PartitionExportedServices).
|
|
421
|
+
"""
|
|
422
|
+
return pulumi.get(self, "kind")
|
|
423
|
+
|
|
424
|
+
@property
|
|
425
|
+
@pulumi.getter
|
|
426
|
+
def name(self) -> pulumi.Output[str]:
|
|
427
|
+
"""
|
|
428
|
+
The name of the config entry to read.
|
|
429
|
+
"""
|
|
430
|
+
return pulumi.get(self, "name")
|
|
431
|
+
|
|
432
|
+
@property
|
|
433
|
+
@pulumi.getter
|
|
434
|
+
def namespace(self) -> pulumi.Output[Optional[str]]:
|
|
435
|
+
"""
|
|
436
|
+
The namespace the config entry is associated with.
|
|
437
|
+
"""
|
|
438
|
+
return pulumi.get(self, "namespace")
|
|
439
|
+
|
|
440
|
+
@property
|
|
441
|
+
@pulumi.getter
|
|
442
|
+
def partition(self) -> pulumi.Output[str]:
|
|
443
|
+
"""
|
|
444
|
+
The partition the config entry is associated with.
|
|
445
|
+
"""
|
|
446
|
+
return pulumi.get(self, "partition")
|
|
447
|
+
|
|
448
|
+
@property
|
|
449
|
+
@pulumi.getter(name="partitionConsumers")
|
|
450
|
+
def partition_consumers(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
|
451
|
+
"""
|
|
452
|
+
The exported service partition consumers.
|
|
453
|
+
"""
|
|
454
|
+
return pulumi.get(self, "partition_consumers")
|
|
455
|
+
|
|
456
|
+
@property
|
|
457
|
+
@pulumi.getter(name="peerConsumers")
|
|
458
|
+
def peer_consumers(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
|
459
|
+
"""
|
|
460
|
+
The exported service peer consumers.
|
|
461
|
+
"""
|
|
462
|
+
return pulumi.get(self, "peer_consumers")
|
|
463
|
+
|
|
464
|
+
@property
|
|
465
|
+
@pulumi.getter(name="samenessGroupConsumers")
|
|
466
|
+
def sameness_group_consumers(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
|
467
|
+
"""
|
|
468
|
+
The exported service sameness group consumers.
|
|
469
|
+
"""
|
|
470
|
+
return pulumi.get(self, "sameness_group_consumers")
|
|
471
|
+
|
|
472
|
+
@property
|
|
473
|
+
@pulumi.getter
|
|
474
|
+
def services(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
|
475
|
+
"""
|
|
476
|
+
The exported services.
|
|
477
|
+
"""
|
|
478
|
+
return pulumi.get(self, "services")
|
|
479
|
+
|
|
@@ -4,9 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
10
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
10
15
|
from . import _utilities
|
|
11
16
|
from . import outputs
|
|
12
17
|
|
|
@@ -62,6 +67,7 @@ class GetAclAuthMethodResult:
|
|
|
62
67
|
|
|
63
68
|
@property
|
|
64
69
|
@pulumi.getter
|
|
70
|
+
@_utilities.deprecated("""The config attribute is deprecated, please use config_json instead.""")
|
|
65
71
|
def config(self) -> Mapping[str, str]:
|
|
66
72
|
"""
|
|
67
73
|
The configuration options of the ACL Auth Method. This attribute is
|
|
@@ -69,9 +75,6 @@ class GetAclAuthMethodResult:
|
|
|
69
75
|
too complex to be represented as a map of strings, it will be blank.
|
|
70
76
|
`config_json` should be used instead.
|
|
71
77
|
"""
|
|
72
|
-
warnings.warn("""The config attribute is deprecated, please use config_json instead.""", DeprecationWarning)
|
|
73
|
-
pulumi.log.warn("""config is deprecated: The config attribute is deprecated, please use config_json instead.""")
|
|
74
|
-
|
|
75
78
|
return pulumi.get(self, "config")
|
|
76
79
|
|
|
77
80
|
@property
|
|
@@ -187,7 +190,6 @@ def get_acl_auth_method(name: Optional[str] = None,
|
|
|
187
190
|
|
|
188
191
|
## Example Usage
|
|
189
192
|
|
|
190
|
-
<!--Start PulumiCodeChooser -->
|
|
191
193
|
```python
|
|
192
194
|
import pulumi
|
|
193
195
|
import pulumi_consul as consul
|
|
@@ -195,7 +197,6 @@ def get_acl_auth_method(name: Optional[str] = None,
|
|
|
195
197
|
test = consul.get_acl_auth_method(name="minikube")
|
|
196
198
|
pulumi.export("consulAclAuthMethod", test.config)
|
|
197
199
|
```
|
|
198
|
-
<!--End PulumiCodeChooser -->
|
|
199
200
|
|
|
200
201
|
|
|
201
202
|
:param str name: The name of the ACL Auth Method.
|
|
@@ -222,20 +223,16 @@ def get_acl_auth_method(name: Optional[str] = None,
|
|
|
222
223
|
partition=pulumi.get(__ret__, 'partition'),
|
|
223
224
|
token_locality=pulumi.get(__ret__, 'token_locality'),
|
|
224
225
|
type=pulumi.get(__ret__, 'type'))
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
@_utilities.lift_output_func(get_acl_auth_method)
|
|
228
226
|
def get_acl_auth_method_output(name: Optional[pulumi.Input[str]] = None,
|
|
229
227
|
namespace: Optional[pulumi.Input[Optional[str]]] = None,
|
|
230
228
|
partition: Optional[pulumi.Input[Optional[str]]] = None,
|
|
231
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetAclAuthMethodResult]:
|
|
229
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetAclAuthMethodResult]:
|
|
232
230
|
"""
|
|
233
231
|
The `AclAuthMethod` data source returns the information related to a
|
|
234
232
|
[Consul Auth Method](https://www.consul.io/docs/acl/acl-auth-methods.html).
|
|
235
233
|
|
|
236
234
|
## Example Usage
|
|
237
235
|
|
|
238
|
-
<!--Start PulumiCodeChooser -->
|
|
239
236
|
```python
|
|
240
237
|
import pulumi
|
|
241
238
|
import pulumi_consul as consul
|
|
@@ -243,11 +240,28 @@ def get_acl_auth_method_output(name: Optional[pulumi.Input[str]] = None,
|
|
|
243
240
|
test = consul.get_acl_auth_method(name="minikube")
|
|
244
241
|
pulumi.export("consulAclAuthMethod", test.config)
|
|
245
242
|
```
|
|
246
|
-
<!--End PulumiCodeChooser -->
|
|
247
243
|
|
|
248
244
|
|
|
249
245
|
:param str name: The name of the ACL Auth Method.
|
|
250
246
|
:param str namespace: The namespace to lookup the auth method.
|
|
251
247
|
:param str partition: The partition to lookup the auth method.
|
|
252
248
|
"""
|
|
253
|
-
|
|
249
|
+
__args__ = dict()
|
|
250
|
+
__args__['name'] = name
|
|
251
|
+
__args__['namespace'] = namespace
|
|
252
|
+
__args__['partition'] = partition
|
|
253
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
254
|
+
__ret__ = pulumi.runtime.invoke_output('consul:index/getAclAuthMethod:getAclAuthMethod', __args__, opts=opts, typ=GetAclAuthMethodResult)
|
|
255
|
+
return __ret__.apply(lambda __response__: GetAclAuthMethodResult(
|
|
256
|
+
config=pulumi.get(__response__, 'config'),
|
|
257
|
+
config_json=pulumi.get(__response__, 'config_json'),
|
|
258
|
+
description=pulumi.get(__response__, 'description'),
|
|
259
|
+
display_name=pulumi.get(__response__, 'display_name'),
|
|
260
|
+
id=pulumi.get(__response__, 'id'),
|
|
261
|
+
max_token_ttl=pulumi.get(__response__, 'max_token_ttl'),
|
|
262
|
+
name=pulumi.get(__response__, 'name'),
|
|
263
|
+
namespace=pulumi.get(__response__, 'namespace'),
|
|
264
|
+
namespace_rules=pulumi.get(__response__, 'namespace_rules'),
|
|
265
|
+
partition=pulumi.get(__response__, 'partition'),
|
|
266
|
+
token_locality=pulumi.get(__response__, 'token_locality'),
|
|
267
|
+
type=pulumi.get(__response__, 'type')))
|
pulumi_consul/get_acl_policy.py
CHANGED
|
@@ -4,9 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
10
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
10
15
|
from . import _utilities
|
|
11
16
|
|
|
12
17
|
__all__ = [
|
|
@@ -117,7 +122,6 @@ def get_acl_policy(name: Optional[str] = None,
|
|
|
117
122
|
|
|
118
123
|
## Example Usage
|
|
119
124
|
|
|
120
|
-
<!--Start PulumiCodeChooser -->
|
|
121
125
|
```python
|
|
122
126
|
import pulumi
|
|
123
127
|
import pulumi_consul as consul
|
|
@@ -125,7 +129,6 @@ def get_acl_policy(name: Optional[str] = None,
|
|
|
125
129
|
agent = consul.get_acl_policy(name="agent")
|
|
126
130
|
pulumi.export("consulAclPolicy", agent.rules)
|
|
127
131
|
```
|
|
128
|
-
<!--End PulumiCodeChooser -->
|
|
129
132
|
|
|
130
133
|
|
|
131
134
|
:param str name: The name of the ACL Policy.
|
|
@@ -147,20 +150,16 @@ def get_acl_policy(name: Optional[str] = None,
|
|
|
147
150
|
namespace=pulumi.get(__ret__, 'namespace'),
|
|
148
151
|
partition=pulumi.get(__ret__, 'partition'),
|
|
149
152
|
rules=pulumi.get(__ret__, 'rules'))
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
@_utilities.lift_output_func(get_acl_policy)
|
|
153
153
|
def get_acl_policy_output(name: Optional[pulumi.Input[str]] = None,
|
|
154
154
|
namespace: Optional[pulumi.Input[Optional[str]]] = None,
|
|
155
155
|
partition: Optional[pulumi.Input[Optional[str]]] = None,
|
|
156
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetAclPolicyResult]:
|
|
156
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetAclPolicyResult]:
|
|
157
157
|
"""
|
|
158
158
|
The `AclPolicy` data source returns the information related to a
|
|
159
159
|
[Consul ACL Policy](https://www.consul.io/docs/acl/acl-system.html#acl-policies).
|
|
160
160
|
|
|
161
161
|
## Example Usage
|
|
162
162
|
|
|
163
|
-
<!--Start PulumiCodeChooser -->
|
|
164
163
|
```python
|
|
165
164
|
import pulumi
|
|
166
165
|
import pulumi_consul as consul
|
|
@@ -168,11 +167,23 @@ def get_acl_policy_output(name: Optional[pulumi.Input[str]] = None,
|
|
|
168
167
|
agent = consul.get_acl_policy(name="agent")
|
|
169
168
|
pulumi.export("consulAclPolicy", agent.rules)
|
|
170
169
|
```
|
|
171
|
-
<!--End PulumiCodeChooser -->
|
|
172
170
|
|
|
173
171
|
|
|
174
172
|
:param str name: The name of the ACL Policy.
|
|
175
173
|
:param str namespace: The namespace to lookup the policy.
|
|
176
174
|
:param str partition: The partition to lookup the policy.
|
|
177
175
|
"""
|
|
178
|
-
|
|
176
|
+
__args__ = dict()
|
|
177
|
+
__args__['name'] = name
|
|
178
|
+
__args__['namespace'] = namespace
|
|
179
|
+
__args__['partition'] = partition
|
|
180
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
181
|
+
__ret__ = pulumi.runtime.invoke_output('consul:index/getAclPolicy:getAclPolicy', __args__, opts=opts, typ=GetAclPolicyResult)
|
|
182
|
+
return __ret__.apply(lambda __response__: GetAclPolicyResult(
|
|
183
|
+
datacenters=pulumi.get(__response__, 'datacenters'),
|
|
184
|
+
description=pulumi.get(__response__, 'description'),
|
|
185
|
+
id=pulumi.get(__response__, 'id'),
|
|
186
|
+
name=pulumi.get(__response__, 'name'),
|
|
187
|
+
namespace=pulumi.get(__response__, 'namespace'),
|
|
188
|
+
partition=pulumi.get(__response__, 'partition'),
|
|
189
|
+
rules=pulumi.get(__response__, 'rules')))
|