pulumi-consul 3.12.0a1709360320__py3-none-any.whl → 3.13.0a1736832526__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.

Files changed (71) hide show
  1. pulumi_consul/__init__.py +10 -0
  2. pulumi_consul/_inputs.py +1592 -31
  3. pulumi_consul/_utilities.py +41 -5
  4. pulumi_consul/acl_auth_method.py +17 -14
  5. pulumi_consul/acl_binding_rule.py +12 -5
  6. pulumi_consul/acl_policy.py +9 -4
  7. pulumi_consul/acl_role.py +39 -30
  8. pulumi_consul/acl_role_policy_attachment.py +15 -8
  9. pulumi_consul/acl_token.py +36 -27
  10. pulumi_consul/acl_token_policy_attachment.py +7 -2
  11. pulumi_consul/acl_token_role_attachment.py +11 -4
  12. pulumi_consul/admin_partition.py +13 -4
  13. pulumi_consul/agent_service.py +7 -0
  14. pulumi_consul/autopilot_config.py +5 -0
  15. pulumi_consul/catalog_entry.py +16 -62
  16. pulumi_consul/certificate_authority.py +10 -51
  17. pulumi_consul/config/__init__.pyi +5 -0
  18. pulumi_consul/config/outputs.py +5 -0
  19. pulumi_consul/config/vars.py +5 -0
  20. pulumi_consul/config_entry.py +75 -26
  21. pulumi_consul/config_entry_service_defaults.py +58 -51
  22. pulumi_consul/config_entry_service_intentions.py +80 -71
  23. pulumi_consul/config_entry_service_resolver.py +94 -87
  24. pulumi_consul/config_entry_service_router.py +31 -62
  25. pulumi_consul/config_entry_service_splitter.py +104 -93
  26. pulumi_consul/config_entry_v2_exported_services.py +479 -0
  27. pulumi_consul/get_acl_auth_method.py +26 -8
  28. pulumi_consul/get_acl_policy.py +20 -5
  29. pulumi_consul/get_acl_role.py +24 -5
  30. pulumi_consul/get_acl_token.py +25 -5
  31. pulumi_consul/get_acl_token_secret_id.py +29 -11
  32. pulumi_consul/get_agent_config.py +17 -5
  33. pulumi_consul/get_agent_self.py +82 -5
  34. pulumi_consul/get_autopilot_health.py +16 -5
  35. pulumi_consul/get_catalog_nodes.py +21 -9
  36. pulumi_consul/get_catalog_service.py +56 -13
  37. pulumi_consul/get_catalog_services.py +53 -9
  38. pulumi_consul/get_config_entry.py +20 -5
  39. pulumi_consul/get_config_entry_v2_exported_services.py +232 -0
  40. pulumi_consul/get_datacenters.py +12 -5
  41. pulumi_consul/get_key_prefix.py +55 -38
  42. pulumi_consul/get_keys.py +44 -30
  43. pulumi_consul/get_network_area_members.py +26 -16
  44. pulumi_consul/get_network_segments.py +22 -14
  45. pulumi_consul/get_nodes.py +21 -9
  46. pulumi_consul/get_peering.py +22 -5
  47. pulumi_consul/get_peerings.py +14 -5
  48. pulumi_consul/get_service.py +56 -13
  49. pulumi_consul/get_service_health.py +28 -5
  50. pulumi_consul/get_services.py +53 -9
  51. pulumi_consul/intention.py +17 -12
  52. pulumi_consul/key_prefix.py +48 -50
  53. pulumi_consul/keys.py +26 -30
  54. pulumi_consul/license.py +9 -2
  55. pulumi_consul/namespace.py +13 -4
  56. pulumi_consul/namespace_policy_attachment.py +11 -4
  57. pulumi_consul/namespace_role_attachment.py +11 -4
  58. pulumi_consul/network_area.py +11 -15
  59. pulumi_consul/node.py +19 -19
  60. pulumi_consul/outputs.py +30 -27
  61. pulumi_consul/peering.py +13 -18
  62. pulumi_consul/peering_token.py +55 -11
  63. pulumi_consul/prepared_query.py +101 -101
  64. pulumi_consul/provider.py +11 -6
  65. pulumi_consul/pulumi-plugin.json +2 -1
  66. pulumi_consul/service.py +144 -19
  67. {pulumi_consul-3.12.0a1709360320.dist-info → pulumi_consul-3.13.0a1736832526.dist-info}/METADATA +7 -6
  68. pulumi_consul-3.13.0a1736832526.dist-info/RECORD +72 -0
  69. {pulumi_consul-3.12.0a1709360320.dist-info → pulumi_consul-3.13.0a1736832526.dist-info}/WHEEL +1 -1
  70. pulumi_consul-3.12.0a1709360320.dist-info/RECORD +0 -70
  71. {pulumi_consul-3.12.0a1709360320.dist-info → pulumi_consul-3.13.0a1736832526.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
@@ -220,13 +223,10 @@ def get_acl_auth_method(name: Optional[str] = None,
220
223
  partition=pulumi.get(__ret__, 'partition'),
221
224
  token_locality=pulumi.get(__ret__, 'token_locality'),
222
225
  type=pulumi.get(__ret__, 'type'))
223
-
224
-
225
- @_utilities.lift_output_func(get_acl_auth_method)
226
226
  def get_acl_auth_method_output(name: Optional[pulumi.Input[str]] = None,
227
227
  namespace: Optional[pulumi.Input[Optional[str]]] = None,
228
228
  partition: Optional[pulumi.Input[Optional[str]]] = None,
229
- opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetAclAuthMethodResult]:
229
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetAclAuthMethodResult]:
230
230
  """
231
231
  The `AclAuthMethod` data source returns the information related to a
232
232
  [Consul Auth Method](https://www.consul.io/docs/acl/acl-auth-methods.html).
@@ -246,4 +246,22 @@ def get_acl_auth_method_output(name: Optional[pulumi.Input[str]] = None,
246
246
  :param str namespace: The namespace to lookup the auth method.
247
247
  :param str partition: The partition to lookup the auth method.
248
248
  """
249
- ...
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')))
@@ -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__ = [
@@ -145,13 +150,10 @@ def get_acl_policy(name: Optional[str] = None,
145
150
  namespace=pulumi.get(__ret__, 'namespace'),
146
151
  partition=pulumi.get(__ret__, 'partition'),
147
152
  rules=pulumi.get(__ret__, 'rules'))
148
-
149
-
150
- @_utilities.lift_output_func(get_acl_policy)
151
153
  def get_acl_policy_output(name: Optional[pulumi.Input[str]] = None,
152
154
  namespace: Optional[pulumi.Input[Optional[str]]] = None,
153
155
  partition: Optional[pulumi.Input[Optional[str]]] = None,
154
- opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetAclPolicyResult]:
156
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetAclPolicyResult]:
155
157
  """
156
158
  The `AclPolicy` data source returns the information related to a
157
159
  [Consul ACL Policy](https://www.consul.io/docs/acl/acl-system.html#acl-policies).
@@ -171,4 +173,17 @@ def get_acl_policy_output(name: Optional[pulumi.Input[str]] = None,
171
173
  :param str namespace: The namespace to lookup the policy.
172
174
  :param str partition: The partition to lookup the policy.
173
175
  """
174
- ...
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')))
@@ -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
 
@@ -159,6 +164,7 @@ def get_acl_role(name: Optional[str] = None,
159
164
  ```
160
165
 
161
166
 
167
+ :param str name: The name of the ACL Role.
162
168
  :param str namespace: The namespace to lookup the role.
163
169
  :param str partition: The partition to lookup the role.
164
170
  """
@@ -179,13 +185,10 @@ def get_acl_role(name: Optional[str] = None,
179
185
  policies=pulumi.get(__ret__, 'policies'),
180
186
  service_identities=pulumi.get(__ret__, 'service_identities'),
181
187
  templated_policies=pulumi.get(__ret__, 'templated_policies'))
182
-
183
-
184
- @_utilities.lift_output_func(get_acl_role)
185
188
  def get_acl_role_output(name: Optional[pulumi.Input[str]] = None,
186
189
  namespace: Optional[pulumi.Input[Optional[str]]] = None,
187
190
  partition: Optional[pulumi.Input[Optional[str]]] = None,
188
- opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetAclRoleResult]:
191
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetAclRoleResult]:
189
192
  """
190
193
  The `AclRole` data source returns the information related to a [Consul ACL Role](https://www.consul.io/api/acl/roles.html).
191
194
 
@@ -200,7 +203,23 @@ def get_acl_role_output(name: Optional[pulumi.Input[str]] = None,
200
203
  ```
201
204
 
202
205
 
206
+ :param str name: The name of the ACL Role.
203
207
  :param str namespace: The namespace to lookup the role.
204
208
  :param str partition: The partition to lookup the role.
205
209
  """
206
- ...
210
+ __args__ = dict()
211
+ __args__['name'] = name
212
+ __args__['namespace'] = namespace
213
+ __args__['partition'] = partition
214
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
215
+ __ret__ = pulumi.runtime.invoke_output('consul:index/getAclRole:getAclRole', __args__, opts=opts, typ=GetAclRoleResult)
216
+ return __ret__.apply(lambda __response__: GetAclRoleResult(
217
+ description=pulumi.get(__response__, 'description'),
218
+ id=pulumi.get(__response__, 'id'),
219
+ name=pulumi.get(__response__, 'name'),
220
+ namespace=pulumi.get(__response__, 'namespace'),
221
+ node_identities=pulumi.get(__response__, 'node_identities'),
222
+ partition=pulumi.get(__response__, 'partition'),
223
+ policies=pulumi.get(__response__, 'policies'),
224
+ service_identities=pulumi.get(__response__, 'service_identities'),
225
+ templated_policies=pulumi.get(__response__, 'templated_policies')))