pulumi-consul 3.12.3a1734111860__py3-none-any.whl → 3.13.0a1723008442__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/_inputs.py +10 -1573
- pulumi_consul/_utilities.py +1 -1
- pulumi_consul/acl_auth_method.py +5 -10
- pulumi_consul/acl_binding_rule.py +5 -10
- pulumi_consul/acl_policy.py +0 -5
- pulumi_consul/acl_role.py +21 -26
- pulumi_consul/acl_role_policy_attachment.py +0 -5
- pulumi_consul/acl_token.py +15 -20
- pulumi_consul/acl_token_policy_attachment.py +0 -5
- pulumi_consul/acl_token_role_attachment.py +0 -5
- pulumi_consul/admin_partition.py +0 -5
- pulumi_consul/agent_service.py +0 -5
- pulumi_consul/autopilot_config.py +0 -5
- pulumi_consul/catalog_entry.py +5 -10
- pulumi_consul/certificate_authority.py +0 -5
- pulumi_consul/config/__init__.pyi +0 -5
- pulumi_consul/config/outputs.py +0 -5
- pulumi_consul/config/vars.py +0 -5
- pulumi_consul/config_entry.py +0 -5
- pulumi_consul/config_entry_service_defaults.py +30 -35
- pulumi_consul/config_entry_service_intentions.py +48 -53
- pulumi_consul/config_entry_service_resolver.py +60 -65
- pulumi_consul/config_entry_service_router.py +5 -10
- pulumi_consul/config_entry_service_splitter.py +75 -80
- pulumi_consul/config_entry_v2_exported_services.py +0 -5
- pulumi_consul/get_acl_auth_method.py +5 -25
- pulumi_consul/get_acl_policy.py +5 -20
- pulumi_consul/get_acl_role.py +5 -22
- pulumi_consul/get_acl_token.py +5 -25
- pulumi_consul/get_acl_token_secret_id.py +5 -21
- pulumi_consul/get_agent_config.py +5 -17
- pulumi_consul/get_agent_self.py +5 -82
- pulumi_consul/get_autopilot_health.py +5 -16
- pulumi_consul/get_catalog_nodes.py +9 -21
- pulumi_consul/get_catalog_service.py +9 -26
- pulumi_consul/get_catalog_services.py +15 -27
- pulumi_consul/get_config_entry.py +5 -20
- pulumi_consul/get_config_entry_v2_exported_services.py +5 -27
- pulumi_consul/get_datacenters.py +5 -12
- pulumi_consul/get_key_prefix.py +19 -39
- pulumi_consul/get_keys.py +19 -38
- pulumi_consul/get_network_area_members.py +5 -18
- pulumi_consul/get_network_segments.py +5 -16
- pulumi_consul/get_nodes.py +9 -21
- pulumi_consul/get_peering.py +5 -22
- pulumi_consul/get_peerings.py +5 -14
- pulumi_consul/get_service.py +9 -26
- pulumi_consul/get_service_health.py +5 -28
- pulumi_consul/get_services.py +15 -27
- pulumi_consul/intention.py +0 -5
- pulumi_consul/key_prefix.py +15 -20
- pulumi_consul/keys.py +13 -18
- pulumi_consul/license.py +0 -5
- pulumi_consul/namespace.py +0 -5
- pulumi_consul/namespace_policy_attachment.py +0 -5
- pulumi_consul/namespace_role_attachment.py +0 -5
- pulumi_consul/network_area.py +0 -5
- pulumi_consul/node.py +0 -5
- pulumi_consul/outputs.py +0 -5
- pulumi_consul/peering.py +0 -5
- pulumi_consul/peering_token.py +0 -5
- pulumi_consul/prepared_query.py +51 -56
- pulumi_consul/provider.py +6 -11
- pulumi_consul/pulumi-plugin.json +1 -1
- pulumi_consul/service.py +43 -48
- {pulumi_consul-3.12.3a1734111860.dist-info → pulumi_consul-3.13.0a1723008442.dist-info}/METADATA +5 -6
- pulumi_consul-3.13.0a1723008442.dist-info/RECORD +72 -0
- {pulumi_consul-3.12.3a1734111860.dist-info → pulumi_consul-3.13.0a1723008442.dist-info}/WHEEL +1 -1
- pulumi_consul-3.12.3a1734111860.dist-info/RECORD +0 -72
- {pulumi_consul-3.12.3a1734111860.dist-info → pulumi_consul-3.13.0a1723008442.dist-info}/top_level.txt +0 -0
|
@@ -4,14 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
-
import sys
|
|
8
7
|
import pulumi
|
|
9
8
|
import pulumi.runtime
|
|
10
9
|
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
10
|
from . import _utilities
|
|
16
11
|
from . import outputs
|
|
17
12
|
from ._inputs import *
|
|
@@ -203,7 +198,7 @@ class ConfigEntryServiceRouter(pulumi.CustomResource):
|
|
|
203
198
|
name: Optional[pulumi.Input[str]] = None,
|
|
204
199
|
namespace: Optional[pulumi.Input[str]] = None,
|
|
205
200
|
partition: Optional[pulumi.Input[str]] = None,
|
|
206
|
-
routes: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
201
|
+
routes: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ConfigEntryServiceRouterRouteArgs']]]]] = None,
|
|
207
202
|
__props__=None):
|
|
208
203
|
"""
|
|
209
204
|
## Example Usage
|
|
@@ -214,7 +209,7 @@ class ConfigEntryServiceRouter(pulumi.CustomResource):
|
|
|
214
209
|
:param pulumi.Input[str] name: Specifies a name for the configuration entry.
|
|
215
210
|
:param pulumi.Input[str] namespace: Specifies the namespace to apply the configuration entry.
|
|
216
211
|
:param pulumi.Input[str] partition: Specifies the admin partition to apply the configuration entry.
|
|
217
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
212
|
+
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ConfigEntryServiceRouterRouteArgs']]]] routes: Defines the possible routes for L7 requests.
|
|
218
213
|
"""
|
|
219
214
|
...
|
|
220
215
|
@overload
|
|
@@ -244,7 +239,7 @@ class ConfigEntryServiceRouter(pulumi.CustomResource):
|
|
|
244
239
|
name: Optional[pulumi.Input[str]] = None,
|
|
245
240
|
namespace: Optional[pulumi.Input[str]] = None,
|
|
246
241
|
partition: Optional[pulumi.Input[str]] = None,
|
|
247
|
-
routes: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
242
|
+
routes: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ConfigEntryServiceRouterRouteArgs']]]]] = None,
|
|
248
243
|
__props__=None):
|
|
249
244
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
250
245
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -273,7 +268,7 @@ class ConfigEntryServiceRouter(pulumi.CustomResource):
|
|
|
273
268
|
name: Optional[pulumi.Input[str]] = None,
|
|
274
269
|
namespace: Optional[pulumi.Input[str]] = None,
|
|
275
270
|
partition: Optional[pulumi.Input[str]] = None,
|
|
276
|
-
routes: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
271
|
+
routes: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ConfigEntryServiceRouterRouteArgs']]]]] = None) -> 'ConfigEntryServiceRouter':
|
|
277
272
|
"""
|
|
278
273
|
Get an existing ConfigEntryServiceRouter resource's state with the given name, id, and optional extra
|
|
279
274
|
properties used to qualify the lookup.
|
|
@@ -285,7 +280,7 @@ class ConfigEntryServiceRouter(pulumi.CustomResource):
|
|
|
285
280
|
:param pulumi.Input[str] name: Specifies a name for the configuration entry.
|
|
286
281
|
:param pulumi.Input[str] namespace: Specifies the namespace to apply the configuration entry.
|
|
287
282
|
:param pulumi.Input[str] partition: Specifies the admin partition to apply the configuration entry.
|
|
288
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
283
|
+
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ConfigEntryServiceRouterRouteArgs']]]] routes: Defines the possible routes for L7 requests.
|
|
289
284
|
"""
|
|
290
285
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
291
286
|
|
|
@@ -4,14 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
-
import sys
|
|
8
7
|
import pulumi
|
|
9
8
|
import pulumi.runtime
|
|
10
9
|
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
10
|
from . import _utilities
|
|
16
11
|
from . import outputs
|
|
17
12
|
from ._inputs import *
|
|
@@ -202,7 +197,7 @@ class ConfigEntryServiceSplitter(pulumi.CustomResource):
|
|
|
202
197
|
name: Optional[pulumi.Input[str]] = None,
|
|
203
198
|
namespace: Optional[pulumi.Input[str]] = None,
|
|
204
199
|
partition: Optional[pulumi.Input[str]] = None,
|
|
205
|
-
splits: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
200
|
+
splits: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ConfigEntryServiceSplitterSplitArgs']]]]] = None,
|
|
206
201
|
__props__=None):
|
|
207
202
|
"""
|
|
208
203
|
## Example Usage
|
|
@@ -225,14 +220,14 @@ class ConfigEntryServiceSplitter(pulumi.CustomResource):
|
|
|
225
220
|
name="service-resolver",
|
|
226
221
|
default_subset="v1",
|
|
227
222
|
subsets=[
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
223
|
+
consul.ConfigEntryServiceResolverSubsetArgs(
|
|
224
|
+
name="v1",
|
|
225
|
+
filter="Service.Meta.version == v1",
|
|
226
|
+
),
|
|
227
|
+
consul.ConfigEntryServiceResolverSubsetArgs(
|
|
228
|
+
name="v2",
|
|
229
|
+
filter="Service.Meta.version == v2",
|
|
230
|
+
),
|
|
236
231
|
])
|
|
237
232
|
foo = consul.ConfigEntryServiceSplitter("foo",
|
|
238
233
|
name=service_resolver.name,
|
|
@@ -240,41 +235,41 @@ class ConfigEntryServiceSplitter(pulumi.CustomResource):
|
|
|
240
235
|
"key": "value",
|
|
241
236
|
},
|
|
242
237
|
splits=[
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
238
|
+
consul.ConfigEntryServiceSplitterSplitArgs(
|
|
239
|
+
weight=80,
|
|
240
|
+
service="web",
|
|
241
|
+
service_subset="v1",
|
|
242
|
+
request_headers=consul.ConfigEntryServiceSplitterSplitRequestHeadersArgs(
|
|
243
|
+
set={
|
|
249
244
|
"x-web-version": "from-v1",
|
|
250
245
|
},
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
246
|
+
),
|
|
247
|
+
response_headers=consul.ConfigEntryServiceSplitterSplitResponseHeadersArgs(
|
|
248
|
+
set={
|
|
254
249
|
"x-web-version": "to-v1",
|
|
255
250
|
},
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
251
|
+
),
|
|
252
|
+
),
|
|
253
|
+
consul.ConfigEntryServiceSplitterSplitArgs(
|
|
254
|
+
weight=10,
|
|
255
|
+
service="web",
|
|
256
|
+
service_subset="v2",
|
|
257
|
+
request_headers=consul.ConfigEntryServiceSplitterSplitRequestHeadersArgs(
|
|
258
|
+
set={
|
|
264
259
|
"x-web-version": "from-v2",
|
|
265
260
|
},
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
261
|
+
),
|
|
262
|
+
response_headers=consul.ConfigEntryServiceSplitterSplitResponseHeadersArgs(
|
|
263
|
+
set={
|
|
269
264
|
"x-web-version": "to-v2",
|
|
270
265
|
},
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
266
|
+
),
|
|
267
|
+
),
|
|
268
|
+
consul.ConfigEntryServiceSplitterSplitArgs(
|
|
269
|
+
weight=10,
|
|
270
|
+
service="web",
|
|
271
|
+
service_subset="v2",
|
|
272
|
+
),
|
|
278
273
|
])
|
|
279
274
|
```
|
|
280
275
|
|
|
@@ -290,7 +285,7 @@ class ConfigEntryServiceSplitter(pulumi.CustomResource):
|
|
|
290
285
|
:param pulumi.Input[str] name: Specifies a name for the configuration entry.
|
|
291
286
|
:param pulumi.Input[str] namespace: Specifies the namespace to apply the configuration entry.
|
|
292
287
|
:param pulumi.Input[str] partition: Specifies the admin partition to apply the configuration entry.
|
|
293
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
288
|
+
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ConfigEntryServiceSplitterSplitArgs']]]] splits: Defines how much traffic to send to sets of service instances during a traffic split.
|
|
294
289
|
"""
|
|
295
290
|
...
|
|
296
291
|
@overload
|
|
@@ -319,14 +314,14 @@ class ConfigEntryServiceSplitter(pulumi.CustomResource):
|
|
|
319
314
|
name="service-resolver",
|
|
320
315
|
default_subset="v1",
|
|
321
316
|
subsets=[
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
317
|
+
consul.ConfigEntryServiceResolverSubsetArgs(
|
|
318
|
+
name="v1",
|
|
319
|
+
filter="Service.Meta.version == v1",
|
|
320
|
+
),
|
|
321
|
+
consul.ConfigEntryServiceResolverSubsetArgs(
|
|
322
|
+
name="v2",
|
|
323
|
+
filter="Service.Meta.version == v2",
|
|
324
|
+
),
|
|
330
325
|
])
|
|
331
326
|
foo = consul.ConfigEntryServiceSplitter("foo",
|
|
332
327
|
name=service_resolver.name,
|
|
@@ -334,41 +329,41 @@ class ConfigEntryServiceSplitter(pulumi.CustomResource):
|
|
|
334
329
|
"key": "value",
|
|
335
330
|
},
|
|
336
331
|
splits=[
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
332
|
+
consul.ConfigEntryServiceSplitterSplitArgs(
|
|
333
|
+
weight=80,
|
|
334
|
+
service="web",
|
|
335
|
+
service_subset="v1",
|
|
336
|
+
request_headers=consul.ConfigEntryServiceSplitterSplitRequestHeadersArgs(
|
|
337
|
+
set={
|
|
343
338
|
"x-web-version": "from-v1",
|
|
344
339
|
},
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
340
|
+
),
|
|
341
|
+
response_headers=consul.ConfigEntryServiceSplitterSplitResponseHeadersArgs(
|
|
342
|
+
set={
|
|
348
343
|
"x-web-version": "to-v1",
|
|
349
344
|
},
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
345
|
+
),
|
|
346
|
+
),
|
|
347
|
+
consul.ConfigEntryServiceSplitterSplitArgs(
|
|
348
|
+
weight=10,
|
|
349
|
+
service="web",
|
|
350
|
+
service_subset="v2",
|
|
351
|
+
request_headers=consul.ConfigEntryServiceSplitterSplitRequestHeadersArgs(
|
|
352
|
+
set={
|
|
358
353
|
"x-web-version": "from-v2",
|
|
359
354
|
},
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
355
|
+
),
|
|
356
|
+
response_headers=consul.ConfigEntryServiceSplitterSplitResponseHeadersArgs(
|
|
357
|
+
set={
|
|
363
358
|
"x-web-version": "to-v2",
|
|
364
359
|
},
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
360
|
+
),
|
|
361
|
+
),
|
|
362
|
+
consul.ConfigEntryServiceSplitterSplitArgs(
|
|
363
|
+
weight=10,
|
|
364
|
+
service="web",
|
|
365
|
+
service_subset="v2",
|
|
366
|
+
),
|
|
372
367
|
])
|
|
373
368
|
```
|
|
374
369
|
|
|
@@ -397,7 +392,7 @@ class ConfigEntryServiceSplitter(pulumi.CustomResource):
|
|
|
397
392
|
name: Optional[pulumi.Input[str]] = None,
|
|
398
393
|
namespace: Optional[pulumi.Input[str]] = None,
|
|
399
394
|
partition: Optional[pulumi.Input[str]] = None,
|
|
400
|
-
splits: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
395
|
+
splits: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ConfigEntryServiceSplitterSplitArgs']]]]] = None,
|
|
401
396
|
__props__=None):
|
|
402
397
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
403
398
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -428,7 +423,7 @@ class ConfigEntryServiceSplitter(pulumi.CustomResource):
|
|
|
428
423
|
name: Optional[pulumi.Input[str]] = None,
|
|
429
424
|
namespace: Optional[pulumi.Input[str]] = None,
|
|
430
425
|
partition: Optional[pulumi.Input[str]] = None,
|
|
431
|
-
splits: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
426
|
+
splits: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ConfigEntryServiceSplitterSplitArgs']]]]] = None) -> 'ConfigEntryServiceSplitter':
|
|
432
427
|
"""
|
|
433
428
|
Get an existing ConfigEntryServiceSplitter resource's state with the given name, id, and optional extra
|
|
434
429
|
properties used to qualify the lookup.
|
|
@@ -440,7 +435,7 @@ class ConfigEntryServiceSplitter(pulumi.CustomResource):
|
|
|
440
435
|
:param pulumi.Input[str] name: Specifies a name for the configuration entry.
|
|
441
436
|
:param pulumi.Input[str] namespace: Specifies the namespace to apply the configuration entry.
|
|
442
437
|
:param pulumi.Input[str] partition: Specifies the admin partition to apply the configuration entry.
|
|
443
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
438
|
+
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ConfigEntryServiceSplitterSplitArgs']]]] splits: Defines how much traffic to send to sets of service instances during a traffic split.
|
|
444
439
|
"""
|
|
445
440
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
446
441
|
|
|
@@ -4,14 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
-
import sys
|
|
8
7
|
import pulumi
|
|
9
8
|
import pulumi.runtime
|
|
10
9
|
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
10
|
from . import _utilities
|
|
16
11
|
|
|
17
12
|
__all__ = ['ConfigEntryV2ExportedServicesArgs', 'ConfigEntryV2ExportedServices']
|
|
@@ -4,14 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
-
import sys
|
|
8
7
|
import pulumi
|
|
9
8
|
import pulumi.runtime
|
|
10
9
|
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
10
|
from . import _utilities
|
|
16
11
|
from . import outputs
|
|
17
12
|
|
|
@@ -223,10 +218,13 @@ def get_acl_auth_method(name: Optional[str] = None,
|
|
|
223
218
|
partition=pulumi.get(__ret__, 'partition'),
|
|
224
219
|
token_locality=pulumi.get(__ret__, 'token_locality'),
|
|
225
220
|
type=pulumi.get(__ret__, 'type'))
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
@_utilities.lift_output_func(get_acl_auth_method)
|
|
226
224
|
def get_acl_auth_method_output(name: Optional[pulumi.Input[str]] = None,
|
|
227
225
|
namespace: Optional[pulumi.Input[Optional[str]]] = None,
|
|
228
226
|
partition: Optional[pulumi.Input[Optional[str]]] = None,
|
|
229
|
-
opts: Optional[
|
|
227
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetAclAuthMethodResult]:
|
|
230
228
|
"""
|
|
231
229
|
The `AclAuthMethod` data source returns the information related to a
|
|
232
230
|
[Consul Auth Method](https://www.consul.io/docs/acl/acl-auth-methods.html).
|
|
@@ -246,22 +244,4 @@ def get_acl_auth_method_output(name: Optional[pulumi.Input[str]] = None,
|
|
|
246
244
|
:param str namespace: The namespace to lookup the auth method.
|
|
247
245
|
:param str partition: The partition to lookup the auth method.
|
|
248
246
|
"""
|
|
249
|
-
|
|
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')))
|
|
247
|
+
...
|
pulumi_consul/get_acl_policy.py
CHANGED
|
@@ -4,14 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
-
import sys
|
|
8
7
|
import pulumi
|
|
9
8
|
import pulumi.runtime
|
|
10
9
|
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
10
|
from . import _utilities
|
|
16
11
|
|
|
17
12
|
__all__ = [
|
|
@@ -150,10 +145,13 @@ def get_acl_policy(name: Optional[str] = None,
|
|
|
150
145
|
namespace=pulumi.get(__ret__, 'namespace'),
|
|
151
146
|
partition=pulumi.get(__ret__, 'partition'),
|
|
152
147
|
rules=pulumi.get(__ret__, 'rules'))
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
@_utilities.lift_output_func(get_acl_policy)
|
|
153
151
|
def get_acl_policy_output(name: Optional[pulumi.Input[str]] = None,
|
|
154
152
|
namespace: Optional[pulumi.Input[Optional[str]]] = None,
|
|
155
153
|
partition: Optional[pulumi.Input[Optional[str]]] = None,
|
|
156
|
-
opts: Optional[
|
|
154
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetAclPolicyResult]:
|
|
157
155
|
"""
|
|
158
156
|
The `AclPolicy` data source returns the information related to a
|
|
159
157
|
[Consul ACL Policy](https://www.consul.io/docs/acl/acl-system.html#acl-policies).
|
|
@@ -173,17 +171,4 @@ def get_acl_policy_output(name: Optional[pulumi.Input[str]] = None,
|
|
|
173
171
|
:param str namespace: The namespace to lookup the policy.
|
|
174
172
|
:param str partition: The partition to lookup the policy.
|
|
175
173
|
"""
|
|
176
|
-
|
|
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')))
|
|
174
|
+
...
|
pulumi_consul/get_acl_role.py
CHANGED
|
@@ -4,14 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
-
import sys
|
|
8
7
|
import pulumi
|
|
9
8
|
import pulumi.runtime
|
|
10
9
|
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
10
|
from . import _utilities
|
|
16
11
|
from . import outputs
|
|
17
12
|
|
|
@@ -185,10 +180,13 @@ def get_acl_role(name: Optional[str] = None,
|
|
|
185
180
|
policies=pulumi.get(__ret__, 'policies'),
|
|
186
181
|
service_identities=pulumi.get(__ret__, 'service_identities'),
|
|
187
182
|
templated_policies=pulumi.get(__ret__, 'templated_policies'))
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
@_utilities.lift_output_func(get_acl_role)
|
|
188
186
|
def get_acl_role_output(name: Optional[pulumi.Input[str]] = None,
|
|
189
187
|
namespace: Optional[pulumi.Input[Optional[str]]] = None,
|
|
190
188
|
partition: Optional[pulumi.Input[Optional[str]]] = None,
|
|
191
|
-
opts: Optional[
|
|
189
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetAclRoleResult]:
|
|
192
190
|
"""
|
|
193
191
|
The `AclRole` data source returns the information related to a [Consul ACL Role](https://www.consul.io/api/acl/roles.html).
|
|
194
192
|
|
|
@@ -207,19 +205,4 @@ def get_acl_role_output(name: Optional[pulumi.Input[str]] = None,
|
|
|
207
205
|
:param str namespace: The namespace to lookup the role.
|
|
208
206
|
:param str partition: The partition to lookup the role.
|
|
209
207
|
"""
|
|
210
|
-
|
|
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')))
|
|
208
|
+
...
|
pulumi_consul/get_acl_token.py
CHANGED
|
@@ -4,14 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
-
import sys
|
|
8
7
|
import pulumi
|
|
9
8
|
import pulumi.runtime
|
|
10
9
|
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
10
|
from . import _utilities
|
|
16
11
|
from . import outputs
|
|
17
12
|
|
|
@@ -226,10 +221,13 @@ def get_acl_token(accessor_id: Optional[str] = None,
|
|
|
226
221
|
roles=pulumi.get(__ret__, 'roles'),
|
|
227
222
|
service_identities=pulumi.get(__ret__, 'service_identities'),
|
|
228
223
|
templated_policies=pulumi.get(__ret__, 'templated_policies'))
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
@_utilities.lift_output_func(get_acl_token)
|
|
229
227
|
def get_acl_token_output(accessor_id: Optional[pulumi.Input[str]] = None,
|
|
230
228
|
namespace: Optional[pulumi.Input[Optional[str]]] = None,
|
|
231
229
|
partition: Optional[pulumi.Input[Optional[str]]] = None,
|
|
232
|
-
opts: Optional[
|
|
230
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetAclTokenResult]:
|
|
233
231
|
"""
|
|
234
232
|
The `AclToken` data source returns the information related to the `AclToken` resource with the exception of its secret ID.
|
|
235
233
|
|
|
@@ -250,22 +248,4 @@ def get_acl_token_output(accessor_id: Optional[pulumi.Input[str]] = None,
|
|
|
250
248
|
:param str namespace: The namespace to lookup the ACL token.
|
|
251
249
|
:param str partition: The partition to lookup the ACL token.
|
|
252
250
|
"""
|
|
253
|
-
|
|
254
|
-
__args__['accessorId'] = accessor_id
|
|
255
|
-
__args__['namespace'] = namespace
|
|
256
|
-
__args__['partition'] = partition
|
|
257
|
-
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
258
|
-
__ret__ = pulumi.runtime.invoke_output('consul:index/getAclToken:getAclToken', __args__, opts=opts, typ=GetAclTokenResult)
|
|
259
|
-
return __ret__.apply(lambda __response__: GetAclTokenResult(
|
|
260
|
-
accessor_id=pulumi.get(__response__, 'accessor_id'),
|
|
261
|
-
description=pulumi.get(__response__, 'description'),
|
|
262
|
-
expiration_time=pulumi.get(__response__, 'expiration_time'),
|
|
263
|
-
id=pulumi.get(__response__, 'id'),
|
|
264
|
-
local=pulumi.get(__response__, 'local'),
|
|
265
|
-
namespace=pulumi.get(__response__, 'namespace'),
|
|
266
|
-
node_identities=pulumi.get(__response__, 'node_identities'),
|
|
267
|
-
partition=pulumi.get(__response__, 'partition'),
|
|
268
|
-
policies=pulumi.get(__response__, 'policies'),
|
|
269
|
-
roles=pulumi.get(__response__, 'roles'),
|
|
270
|
-
service_identities=pulumi.get(__response__, 'service_identities'),
|
|
271
|
-
templated_policies=pulumi.get(__response__, 'templated_policies')))
|
|
251
|
+
...
|
|
@@ -4,14 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
-
import sys
|
|
8
7
|
import pulumi
|
|
9
8
|
import pulumi.runtime
|
|
10
9
|
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
10
|
from . import _utilities
|
|
16
11
|
|
|
17
12
|
__all__ = [
|
|
@@ -152,11 +147,14 @@ def get_acl_token_secret_id(accessor_id: Optional[str] = None,
|
|
|
152
147
|
partition=pulumi.get(__ret__, 'partition'),
|
|
153
148
|
pgp_key=pulumi.get(__ret__, 'pgp_key'),
|
|
154
149
|
secret_id=pulumi.get(__ret__, 'secret_id'))
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
@_utilities.lift_output_func(get_acl_token_secret_id)
|
|
155
153
|
def get_acl_token_secret_id_output(accessor_id: Optional[pulumi.Input[str]] = None,
|
|
156
154
|
namespace: Optional[pulumi.Input[Optional[str]]] = None,
|
|
157
155
|
partition: Optional[pulumi.Input[Optional[str]]] = None,
|
|
158
156
|
pgp_key: Optional[pulumi.Input[Optional[str]]] = None,
|
|
159
|
-
opts: Optional[
|
|
157
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetAclTokenSecretIdResult]:
|
|
160
158
|
"""
|
|
161
159
|
## Example Usage
|
|
162
160
|
|
|
@@ -182,18 +180,4 @@ def get_acl_token_secret_id_output(accessor_id: Optional[pulumi.Input[str]] = No
|
|
|
182
180
|
:param str namespace: The namespace to lookup the token.
|
|
183
181
|
:param str partition: The partition to lookup the token.
|
|
184
182
|
"""
|
|
185
|
-
|
|
186
|
-
__args__['accessorId'] = accessor_id
|
|
187
|
-
__args__['namespace'] = namespace
|
|
188
|
-
__args__['partition'] = partition
|
|
189
|
-
__args__['pgpKey'] = pgp_key
|
|
190
|
-
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
191
|
-
__ret__ = pulumi.runtime.invoke_output('consul:index/getAclTokenSecretId:getAclTokenSecretId', __args__, opts=opts, typ=GetAclTokenSecretIdResult)
|
|
192
|
-
return __ret__.apply(lambda __response__: GetAclTokenSecretIdResult(
|
|
193
|
-
accessor_id=pulumi.get(__response__, 'accessor_id'),
|
|
194
|
-
encrypted_secret_id=pulumi.get(__response__, 'encrypted_secret_id'),
|
|
195
|
-
id=pulumi.get(__response__, 'id'),
|
|
196
|
-
namespace=pulumi.get(__response__, 'namespace'),
|
|
197
|
-
partition=pulumi.get(__response__, 'partition'),
|
|
198
|
-
pgp_key=pulumi.get(__response__, 'pgp_key'),
|
|
199
|
-
secret_id=pulumi.get(__response__, 'secret_id')))
|
|
183
|
+
...
|
|
@@ -4,14 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
-
import sys
|
|
8
7
|
import pulumi
|
|
9
8
|
import pulumi.runtime
|
|
10
9
|
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
10
|
from . import _utilities
|
|
16
11
|
|
|
17
12
|
__all__ = [
|
|
@@ -153,7 +148,10 @@ def get_agent_config(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGe
|
|
|
153
148
|
revision=pulumi.get(__ret__, 'revision'),
|
|
154
149
|
server=pulumi.get(__ret__, 'server'),
|
|
155
150
|
version=pulumi.get(__ret__, 'version'))
|
|
156
|
-
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
@_utilities.lift_output_func(get_agent_config)
|
|
154
|
+
def get_agent_config_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetAgentConfigResult]:
|
|
157
155
|
"""
|
|
158
156
|
> **Note:** The `get_agent_config` resource differs from [`get_agent_self`](https://www.terraform.io/docs/providers/consul/d/agent_self.html),
|
|
159
157
|
providing less information but utilizing stable APIs. `get_agent_self` will be
|
|
@@ -173,14 +171,4 @@ def get_agent_config_output(opts: Optional[Union[pulumi.InvokeOptions, pulumi.In
|
|
|
173
171
|
pulumi.export("consulVersion", remote_agent.version)
|
|
174
172
|
```
|
|
175
173
|
"""
|
|
176
|
-
|
|
177
|
-
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
178
|
-
__ret__ = pulumi.runtime.invoke_output('consul:index/getAgentConfig:getAgentConfig', __args__, opts=opts, typ=GetAgentConfigResult)
|
|
179
|
-
return __ret__.apply(lambda __response__: GetAgentConfigResult(
|
|
180
|
-
datacenter=pulumi.get(__response__, 'datacenter'),
|
|
181
|
-
id=pulumi.get(__response__, 'id'),
|
|
182
|
-
node_id=pulumi.get(__response__, 'node_id'),
|
|
183
|
-
node_name=pulumi.get(__response__, 'node_name'),
|
|
184
|
-
revision=pulumi.get(__response__, 'revision'),
|
|
185
|
-
server=pulumi.get(__response__, 'server'),
|
|
186
|
-
version=pulumi.get(__response__, 'version')))
|
|
174
|
+
...
|