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
pulumi_consul/key_prefix.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
|
from . import outputs
|
|
12
17
|
from ._inputs import *
|
|
@@ -141,16 +146,13 @@ Please use the token argument in the provider configuration""")
|
|
|
141
146
|
|
|
142
147
|
@property
|
|
143
148
|
@pulumi.getter
|
|
149
|
+
@_utilities.deprecated("""The token argument has been deprecated and will be removed in a future release.
|
|
150
|
+
Please use the token argument in the provider configuration""")
|
|
144
151
|
def token(self) -> Optional[pulumi.Input[str]]:
|
|
145
152
|
"""
|
|
146
153
|
The ACL token to use. This overrides the
|
|
147
154
|
token that the agent provides by default.
|
|
148
155
|
"""
|
|
149
|
-
warnings.warn("""The token argument has been deprecated and will be removed in a future release.
|
|
150
|
-
Please use the token argument in the provider configuration""", DeprecationWarning)
|
|
151
|
-
pulumi.log.warn("""token is deprecated: The token argument has been deprecated and will be removed in a future release.
|
|
152
|
-
Please use the token argument in the provider configuration""")
|
|
153
|
-
|
|
154
156
|
return pulumi.get(self, "token")
|
|
155
157
|
|
|
156
158
|
@token.setter
|
|
@@ -287,16 +289,13 @@ Please use the token argument in the provider configuration""")
|
|
|
287
289
|
|
|
288
290
|
@property
|
|
289
291
|
@pulumi.getter
|
|
292
|
+
@_utilities.deprecated("""The token argument has been deprecated and will be removed in a future release.
|
|
293
|
+
Please use the token argument in the provider configuration""")
|
|
290
294
|
def token(self) -> Optional[pulumi.Input[str]]:
|
|
291
295
|
"""
|
|
292
296
|
The ACL token to use. This overrides the
|
|
293
297
|
token that the agent provides by default.
|
|
294
298
|
"""
|
|
295
|
-
warnings.warn("""The token argument has been deprecated and will be removed in a future release.
|
|
296
|
-
Please use the token argument in the provider configuration""", DeprecationWarning)
|
|
297
|
-
pulumi.log.warn("""token is deprecated: The token argument has been deprecated and will be removed in a future release.
|
|
298
|
-
Please use the token argument in the provider configuration""")
|
|
299
|
-
|
|
300
299
|
return pulumi.get(self, "token")
|
|
301
300
|
|
|
302
301
|
@token.setter
|
|
@@ -313,37 +312,35 @@ class KeyPrefix(pulumi.CustomResource):
|
|
|
313
312
|
namespace: Optional[pulumi.Input[str]] = None,
|
|
314
313
|
partition: Optional[pulumi.Input[str]] = None,
|
|
315
314
|
path_prefix: Optional[pulumi.Input[str]] = None,
|
|
316
|
-
subkey_collection: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
315
|
+
subkey_collection: Optional[pulumi.Input[Sequence[pulumi.Input[Union['KeyPrefixSubkeyCollectionArgs', 'KeyPrefixSubkeyCollectionArgsDict']]]]] = None,
|
|
317
316
|
subkeys: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
318
317
|
token: Optional[pulumi.Input[str]] = None,
|
|
319
318
|
__props__=None):
|
|
320
319
|
"""
|
|
321
320
|
## Example Usage
|
|
322
321
|
|
|
323
|
-
<!--Start PulumiCodeChooser -->
|
|
324
322
|
```python
|
|
325
323
|
import pulumi
|
|
326
324
|
import pulumi_consul as consul
|
|
327
325
|
|
|
328
|
-
myapp_config = consul.KeyPrefix("
|
|
326
|
+
myapp_config = consul.KeyPrefix("myapp_config",
|
|
329
327
|
datacenter="nyc1",
|
|
328
|
+
token="abcd",
|
|
330
329
|
path_prefix="myapp/config/",
|
|
331
|
-
subkey_collection=[consul.KeyPrefixSubkeyCollectionArgs(
|
|
332
|
-
flags=2,
|
|
333
|
-
path="database/password",
|
|
334
|
-
value=aws_db_instance["app"]["password"],
|
|
335
|
-
)],
|
|
336
330
|
subkeys={
|
|
337
|
-
"
|
|
338
|
-
"
|
|
339
|
-
"database/
|
|
340
|
-
"database/
|
|
341
|
-
"
|
|
342
|
-
"
|
|
331
|
+
"elb_cname": app_aws_elb["dnsName"],
|
|
332
|
+
"s3_bucket_name": app_aws_s3_bucket["bucket"],
|
|
333
|
+
"database/hostname": app["address"],
|
|
334
|
+
"database/port": app["port"],
|
|
335
|
+
"database/username": app["username"],
|
|
336
|
+
"database/name": app["name"],
|
|
343
337
|
},
|
|
344
|
-
|
|
338
|
+
subkey_collection=[{
|
|
339
|
+
"path": "database/password",
|
|
340
|
+
"value": app["password"],
|
|
341
|
+
"flags": 2,
|
|
342
|
+
}])
|
|
345
343
|
```
|
|
346
|
-
<!--End PulumiCodeChooser -->
|
|
347
344
|
|
|
348
345
|
## Import
|
|
349
346
|
|
|
@@ -363,7 +360,7 @@ class KeyPrefix(pulumi.CustomResource):
|
|
|
363
360
|
:param pulumi.Input[str] path_prefix: Specifies the common prefix shared by all keys
|
|
364
361
|
that will be managed by this resource instance. In most cases this will
|
|
365
362
|
end with a slash, to manage a "folder" of keys.
|
|
366
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
363
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['KeyPrefixSubkeyCollectionArgs', 'KeyPrefixSubkeyCollectionArgsDict']]]] subkey_collection: A subkey to add. Supported values documented below.
|
|
367
364
|
Multiple blocks supported.
|
|
368
365
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] subkeys: A mapping from subkey name (which will be appended
|
|
369
366
|
to the given `path_prefix`) to the value that should be stored at that key.
|
|
@@ -381,30 +378,28 @@ class KeyPrefix(pulumi.CustomResource):
|
|
|
381
378
|
"""
|
|
382
379
|
## Example Usage
|
|
383
380
|
|
|
384
|
-
<!--Start PulumiCodeChooser -->
|
|
385
381
|
```python
|
|
386
382
|
import pulumi
|
|
387
383
|
import pulumi_consul as consul
|
|
388
384
|
|
|
389
|
-
myapp_config = consul.KeyPrefix("
|
|
385
|
+
myapp_config = consul.KeyPrefix("myapp_config",
|
|
390
386
|
datacenter="nyc1",
|
|
387
|
+
token="abcd",
|
|
391
388
|
path_prefix="myapp/config/",
|
|
392
|
-
subkey_collection=[consul.KeyPrefixSubkeyCollectionArgs(
|
|
393
|
-
flags=2,
|
|
394
|
-
path="database/password",
|
|
395
|
-
value=aws_db_instance["app"]["password"],
|
|
396
|
-
)],
|
|
397
389
|
subkeys={
|
|
398
|
-
"
|
|
399
|
-
"
|
|
400
|
-
"database/
|
|
401
|
-
"database/
|
|
402
|
-
"
|
|
403
|
-
"
|
|
390
|
+
"elb_cname": app_aws_elb["dnsName"],
|
|
391
|
+
"s3_bucket_name": app_aws_s3_bucket["bucket"],
|
|
392
|
+
"database/hostname": app["address"],
|
|
393
|
+
"database/port": app["port"],
|
|
394
|
+
"database/username": app["username"],
|
|
395
|
+
"database/name": app["name"],
|
|
404
396
|
},
|
|
405
|
-
|
|
397
|
+
subkey_collection=[{
|
|
398
|
+
"path": "database/password",
|
|
399
|
+
"value": app["password"],
|
|
400
|
+
"flags": 2,
|
|
401
|
+
}])
|
|
406
402
|
```
|
|
407
|
-
<!--End PulumiCodeChooser -->
|
|
408
403
|
|
|
409
404
|
## Import
|
|
410
405
|
|
|
@@ -434,7 +429,7 @@ class KeyPrefix(pulumi.CustomResource):
|
|
|
434
429
|
namespace: Optional[pulumi.Input[str]] = None,
|
|
435
430
|
partition: Optional[pulumi.Input[str]] = None,
|
|
436
431
|
path_prefix: Optional[pulumi.Input[str]] = None,
|
|
437
|
-
subkey_collection: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
432
|
+
subkey_collection: Optional[pulumi.Input[Sequence[pulumi.Input[Union['KeyPrefixSubkeyCollectionArgs', 'KeyPrefixSubkeyCollectionArgsDict']]]]] = None,
|
|
438
433
|
subkeys: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
439
434
|
token: Optional[pulumi.Input[str]] = None,
|
|
440
435
|
__props__=None):
|
|
@@ -471,7 +466,7 @@ class KeyPrefix(pulumi.CustomResource):
|
|
|
471
466
|
namespace: Optional[pulumi.Input[str]] = None,
|
|
472
467
|
partition: Optional[pulumi.Input[str]] = None,
|
|
473
468
|
path_prefix: Optional[pulumi.Input[str]] = None,
|
|
474
|
-
subkey_collection: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
469
|
+
subkey_collection: Optional[pulumi.Input[Sequence[pulumi.Input[Union['KeyPrefixSubkeyCollectionArgs', 'KeyPrefixSubkeyCollectionArgsDict']]]]] = None,
|
|
475
470
|
subkeys: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
476
471
|
token: Optional[pulumi.Input[str]] = None) -> 'KeyPrefix':
|
|
477
472
|
"""
|
|
@@ -488,7 +483,7 @@ class KeyPrefix(pulumi.CustomResource):
|
|
|
488
483
|
:param pulumi.Input[str] path_prefix: Specifies the common prefix shared by all keys
|
|
489
484
|
that will be managed by this resource instance. In most cases this will
|
|
490
485
|
end with a slash, to manage a "folder" of keys.
|
|
491
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
486
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['KeyPrefixSubkeyCollectionArgs', 'KeyPrefixSubkeyCollectionArgsDict']]]] subkey_collection: A subkey to add. Supported values documented below.
|
|
492
487
|
Multiple blocks supported.
|
|
493
488
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] subkeys: A mapping from subkey name (which will be appended
|
|
494
489
|
to the given `path_prefix`) to the value that should be stored at that key.
|
|
@@ -567,15 +562,12 @@ class KeyPrefix(pulumi.CustomResource):
|
|
|
567
562
|
|
|
568
563
|
@property
|
|
569
564
|
@pulumi.getter
|
|
565
|
+
@_utilities.deprecated("""The token argument has been deprecated and will be removed in a future release.
|
|
566
|
+
Please use the token argument in the provider configuration""")
|
|
570
567
|
def token(self) -> pulumi.Output[Optional[str]]:
|
|
571
568
|
"""
|
|
572
569
|
The ACL token to use. This overrides the
|
|
573
570
|
token that the agent provides by default.
|
|
574
571
|
"""
|
|
575
|
-
warnings.warn("""The token argument has been deprecated and will be removed in a future release.
|
|
576
|
-
Please use the token argument in the provider configuration""", DeprecationWarning)
|
|
577
|
-
pulumi.log.warn("""token is deprecated: The token argument has been deprecated and will be removed in a future release.
|
|
578
|
-
Please use the token argument in the provider configuration""")
|
|
579
|
-
|
|
580
572
|
return pulumi.get(self, "token")
|
|
581
573
|
|
pulumi_consul/keys.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
|
from . import outputs
|
|
12
17
|
from ._inputs import *
|
|
@@ -100,16 +105,13 @@ Please use the token argument in the provider configuration""")
|
|
|
100
105
|
|
|
101
106
|
@property
|
|
102
107
|
@pulumi.getter
|
|
108
|
+
@_utilities.deprecated("""The token argument has been deprecated and will be removed in a future release.
|
|
109
|
+
Please use the token argument in the provider configuration""")
|
|
103
110
|
def token(self) -> Optional[pulumi.Input[str]]:
|
|
104
111
|
"""
|
|
105
112
|
The ACL token to use. This overrides the
|
|
106
113
|
token that the agent provides by default.
|
|
107
114
|
"""
|
|
108
|
-
warnings.warn("""The token argument has been deprecated and will be removed in a future release.
|
|
109
|
-
Please use the token argument in the provider configuration""", DeprecationWarning)
|
|
110
|
-
pulumi.log.warn("""token is deprecated: The token argument has been deprecated and will be removed in a future release.
|
|
111
|
-
Please use the token argument in the provider configuration""")
|
|
112
|
-
|
|
113
115
|
return pulumi.get(self, "token")
|
|
114
116
|
|
|
115
117
|
@token.setter
|
|
@@ -207,16 +209,13 @@ Please use the token argument in the provider configuration""")
|
|
|
207
209
|
|
|
208
210
|
@property
|
|
209
211
|
@pulumi.getter
|
|
212
|
+
@_utilities.deprecated("""The token argument has been deprecated and will be removed in a future release.
|
|
213
|
+
Please use the token argument in the provider configuration""")
|
|
210
214
|
def token(self) -> Optional[pulumi.Input[str]]:
|
|
211
215
|
"""
|
|
212
216
|
The ACL token to use. This overrides the
|
|
213
217
|
token that the agent provides by default.
|
|
214
218
|
"""
|
|
215
|
-
warnings.warn("""The token argument has been deprecated and will be removed in a future release.
|
|
216
|
-
Please use the token argument in the provider configuration""", DeprecationWarning)
|
|
217
|
-
pulumi.log.warn("""token is deprecated: The token argument has been deprecated and will be removed in a future release.
|
|
218
|
-
Please use the token argument in the provider configuration""")
|
|
219
|
-
|
|
220
219
|
return pulumi.get(self, "token")
|
|
221
220
|
|
|
222
221
|
@token.setter
|
|
@@ -239,7 +238,7 @@ class Keys(pulumi.CustomResource):
|
|
|
239
238
|
resource_name: str,
|
|
240
239
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
241
240
|
datacenter: Optional[pulumi.Input[str]] = None,
|
|
242
|
-
keys: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
241
|
+
keys: Optional[pulumi.Input[Sequence[pulumi.Input[Union['KeysKeyArgs', 'KeysKeyArgsDict']]]]] = None,
|
|
243
242
|
namespace: Optional[pulumi.Input[str]] = None,
|
|
244
243
|
partition: Optional[pulumi.Input[str]] = None,
|
|
245
244
|
token: Optional[pulumi.Input[str]] = None,
|
|
@@ -247,26 +246,24 @@ class Keys(pulumi.CustomResource):
|
|
|
247
246
|
"""
|
|
248
247
|
## Example Usage
|
|
249
248
|
|
|
250
|
-
<!--Start PulumiCodeChooser -->
|
|
251
249
|
```python
|
|
252
250
|
import pulumi
|
|
253
251
|
import pulumi_consul as consul
|
|
254
252
|
|
|
255
253
|
app = consul.Keys("app",
|
|
256
254
|
datacenter="nyc1",
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
255
|
+
token="abcd",
|
|
256
|
+
keys=[{
|
|
257
|
+
"path": "service/app/elb_address",
|
|
258
|
+
"value": app_aws_elb["dnsName"],
|
|
259
|
+
}])
|
|
262
260
|
```
|
|
263
|
-
<!--End PulumiCodeChooser -->
|
|
264
261
|
|
|
265
262
|
:param str resource_name: The name of the resource.
|
|
266
263
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
267
264
|
:param pulumi.Input[str] datacenter: The datacenter to use. This overrides the
|
|
268
265
|
agent's default datacenter and the datacenter in the provider setup.
|
|
269
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
266
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['KeysKeyArgs', 'KeysKeyArgsDict']]]] keys: Specifies a key in Consul to be written.
|
|
270
267
|
Supported values documented below.
|
|
271
268
|
:param pulumi.Input[str] namespace: The namespace to create the keys within.
|
|
272
269
|
:param pulumi.Input[str] partition: The partition to create the keys within.
|
|
@@ -282,20 +279,18 @@ class Keys(pulumi.CustomResource):
|
|
|
282
279
|
"""
|
|
283
280
|
## Example Usage
|
|
284
281
|
|
|
285
|
-
<!--Start PulumiCodeChooser -->
|
|
286
282
|
```python
|
|
287
283
|
import pulumi
|
|
288
284
|
import pulumi_consul as consul
|
|
289
285
|
|
|
290
286
|
app = consul.Keys("app",
|
|
291
287
|
datacenter="nyc1",
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
288
|
+
token="abcd",
|
|
289
|
+
keys=[{
|
|
290
|
+
"path": "service/app/elb_address",
|
|
291
|
+
"value": app_aws_elb["dnsName"],
|
|
292
|
+
}])
|
|
297
293
|
```
|
|
298
|
-
<!--End PulumiCodeChooser -->
|
|
299
294
|
|
|
300
295
|
:param str resource_name: The name of the resource.
|
|
301
296
|
:param KeysArgs args: The arguments to use to populate this resource's properties.
|
|
@@ -313,7 +308,7 @@ class Keys(pulumi.CustomResource):
|
|
|
313
308
|
resource_name: str,
|
|
314
309
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
315
310
|
datacenter: Optional[pulumi.Input[str]] = None,
|
|
316
|
-
keys: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
311
|
+
keys: Optional[pulumi.Input[Sequence[pulumi.Input[Union['KeysKeyArgs', 'KeysKeyArgsDict']]]]] = None,
|
|
317
312
|
namespace: Optional[pulumi.Input[str]] = None,
|
|
318
313
|
partition: Optional[pulumi.Input[str]] = None,
|
|
319
314
|
token: Optional[pulumi.Input[str]] = None,
|
|
@@ -345,7 +340,7 @@ class Keys(pulumi.CustomResource):
|
|
|
345
340
|
id: pulumi.Input[str],
|
|
346
341
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
347
342
|
datacenter: Optional[pulumi.Input[str]] = None,
|
|
348
|
-
keys: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
343
|
+
keys: Optional[pulumi.Input[Sequence[pulumi.Input[Union['KeysKeyArgs', 'KeysKeyArgsDict']]]]] = None,
|
|
349
344
|
namespace: Optional[pulumi.Input[str]] = None,
|
|
350
345
|
partition: Optional[pulumi.Input[str]] = None,
|
|
351
346
|
token: Optional[pulumi.Input[str]] = None,
|
|
@@ -359,7 +354,7 @@ class Keys(pulumi.CustomResource):
|
|
|
359
354
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
360
355
|
:param pulumi.Input[str] datacenter: The datacenter to use. This overrides the
|
|
361
356
|
agent's default datacenter and the datacenter in the provider setup.
|
|
362
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
357
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['KeysKeyArgs', 'KeysKeyArgsDict']]]] keys: Specifies a key in Consul to be written.
|
|
363
358
|
Supported values documented below.
|
|
364
359
|
:param pulumi.Input[str] namespace: The namespace to create the keys within.
|
|
365
360
|
:param pulumi.Input[str] partition: The partition to create the keys within.
|
|
@@ -414,16 +409,13 @@ class Keys(pulumi.CustomResource):
|
|
|
414
409
|
|
|
415
410
|
@property
|
|
416
411
|
@pulumi.getter
|
|
412
|
+
@_utilities.deprecated("""The token argument has been deprecated and will be removed in a future release.
|
|
413
|
+
Please use the token argument in the provider configuration""")
|
|
417
414
|
def token(self) -> pulumi.Output[Optional[str]]:
|
|
418
415
|
"""
|
|
419
416
|
The ACL token to use. This overrides the
|
|
420
417
|
token that the agent provides by default.
|
|
421
418
|
"""
|
|
422
|
-
warnings.warn("""The token argument has been deprecated and will be removed in a future release.
|
|
423
|
-
Please use the token argument in the provider configuration""", DeprecationWarning)
|
|
424
|
-
pulumi.log.warn("""token is deprecated: The token argument has been deprecated and will be removed in a future release.
|
|
425
|
-
Please use the token argument in the provider configuration""")
|
|
426
|
-
|
|
427
419
|
return pulumi.get(self, "token")
|
|
428
420
|
|
|
429
421
|
@property
|
pulumi_consul/license.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__ = ['LicenseArgs', 'License']
|
|
@@ -271,14 +276,13 @@ class License(pulumi.CustomResource):
|
|
|
271
276
|
|
|
272
277
|
## Example Usage
|
|
273
278
|
|
|
274
|
-
<!--Start PulumiCodeChooser -->
|
|
275
279
|
```python
|
|
276
280
|
import pulumi
|
|
277
281
|
import pulumi_consul as consul
|
|
282
|
+
import pulumi_std as std
|
|
278
283
|
|
|
279
|
-
license = consul.License("license", license=
|
|
284
|
+
license = consul.License("license", license=std.file(input="license.hclic").result)
|
|
280
285
|
```
|
|
281
|
-
<!--End PulumiCodeChooser -->
|
|
282
286
|
|
|
283
287
|
:param str resource_name: The name of the resource.
|
|
284
288
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
@@ -301,14 +305,13 @@ class License(pulumi.CustomResource):
|
|
|
301
305
|
|
|
302
306
|
## Example Usage
|
|
303
307
|
|
|
304
|
-
<!--Start PulumiCodeChooser -->
|
|
305
308
|
```python
|
|
306
309
|
import pulumi
|
|
307
310
|
import pulumi_consul as consul
|
|
311
|
+
import pulumi_std as std
|
|
308
312
|
|
|
309
|
-
license = consul.License("license", license=
|
|
313
|
+
license = consul.License("license", license=std.file(input="license.hclic").result)
|
|
310
314
|
```
|
|
311
|
-
<!--End PulumiCodeChooser -->
|
|
312
315
|
|
|
313
316
|
:param str resource_name: The name of the resource.
|
|
314
317
|
:param LicenseArgs args: The arguments to use to populate this resource's properties.
|
pulumi_consul/namespace.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__ = ['NamespaceArgs', 'Namespace']
|
|
@@ -238,18 +243,17 @@ class Namespace(pulumi.CustomResource):
|
|
|
238
243
|
|
|
239
244
|
## Example Usage
|
|
240
245
|
|
|
241
|
-
<!--Start PulumiCodeChooser -->
|
|
242
246
|
```python
|
|
243
247
|
import pulumi
|
|
244
248
|
import pulumi_consul as consul
|
|
245
249
|
|
|
246
250
|
production = consul.Namespace("production",
|
|
251
|
+
name="production",
|
|
247
252
|
description="Production namespace",
|
|
248
253
|
meta={
|
|
249
254
|
"foo": "bar",
|
|
250
255
|
})
|
|
251
256
|
```
|
|
252
|
-
<!--End PulumiCodeChooser -->
|
|
253
257
|
|
|
254
258
|
## Import
|
|
255
259
|
|
|
@@ -282,18 +286,17 @@ class Namespace(pulumi.CustomResource):
|
|
|
282
286
|
|
|
283
287
|
## Example Usage
|
|
284
288
|
|
|
285
|
-
<!--Start PulumiCodeChooser -->
|
|
286
289
|
```python
|
|
287
290
|
import pulumi
|
|
288
291
|
import pulumi_consul as consul
|
|
289
292
|
|
|
290
293
|
production = consul.Namespace("production",
|
|
294
|
+
name="production",
|
|
291
295
|
description="Production namespace",
|
|
292
296
|
meta={
|
|
293
297
|
"foo": "bar",
|
|
294
298
|
})
|
|
295
299
|
```
|
|
296
|
-
<!--End PulumiCodeChooser -->
|
|
297
300
|
|
|
298
301
|
## Import
|
|
299
302
|
|
|
@@ -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__ = ['NamespacePolicyAttachmentArgs', 'NamespacePolicyAttachment']
|
|
@@ -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__ = ['NamespaceRoleAttachmentArgs', 'NamespaceRoleAttachment']
|
pulumi_consul/network_area.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__ = ['NetworkAreaArgs', 'NetworkArea']
|
|
@@ -88,16 +93,13 @@ Please use the token argument in the provider configuration""")
|
|
|
88
93
|
|
|
89
94
|
@property
|
|
90
95
|
@pulumi.getter
|
|
96
|
+
@_utilities.deprecated("""The token argument has been deprecated and will be removed in a future release.
|
|
97
|
+
Please use the token argument in the provider configuration""")
|
|
91
98
|
def token(self) -> Optional[pulumi.Input[str]]:
|
|
92
99
|
"""
|
|
93
100
|
The ACL token to use. This overrides the
|
|
94
101
|
token that the agent provides by default.
|
|
95
102
|
"""
|
|
96
|
-
warnings.warn("""The token argument has been deprecated and will be removed in a future release.
|
|
97
|
-
Please use the token argument in the provider configuration""", DeprecationWarning)
|
|
98
|
-
pulumi.log.warn("""token is deprecated: The token argument has been deprecated and will be removed in a future release.
|
|
99
|
-
Please use the token argument in the provider configuration""")
|
|
100
|
-
|
|
101
103
|
return pulumi.get(self, "token")
|
|
102
104
|
|
|
103
105
|
@token.setter
|
|
@@ -196,16 +198,13 @@ Please use the token argument in the provider configuration""")
|
|
|
196
198
|
|
|
197
199
|
@property
|
|
198
200
|
@pulumi.getter
|
|
201
|
+
@_utilities.deprecated("""The token argument has been deprecated and will be removed in a future release.
|
|
202
|
+
Please use the token argument in the provider configuration""")
|
|
199
203
|
def token(self) -> Optional[pulumi.Input[str]]:
|
|
200
204
|
"""
|
|
201
205
|
The ACL token to use. This overrides the
|
|
202
206
|
token that the agent provides by default.
|
|
203
207
|
"""
|
|
204
|
-
warnings.warn("""The token argument has been deprecated and will be removed in a future release.
|
|
205
|
-
Please use the token argument in the provider configuration""", DeprecationWarning)
|
|
206
|
-
pulumi.log.warn("""token is deprecated: The token argument has been deprecated and will be removed in a future release.
|
|
207
|
-
Please use the token argument in the provider configuration""")
|
|
208
|
-
|
|
209
208
|
return pulumi.get(self, "token")
|
|
210
209
|
|
|
211
210
|
@token.setter
|
|
@@ -250,7 +249,6 @@ class NetworkArea(pulumi.CustomResource):
|
|
|
250
249
|
|
|
251
250
|
## Example Usage
|
|
252
251
|
|
|
253
|
-
<!--Start PulumiCodeChooser -->
|
|
254
252
|
```python
|
|
255
253
|
import pulumi
|
|
256
254
|
import pulumi_consul as consul
|
|
@@ -260,7 +258,6 @@ class NetworkArea(pulumi.CustomResource):
|
|
|
260
258
|
retry_joins=["1.2.3.4"],
|
|
261
259
|
use_tls=True)
|
|
262
260
|
```
|
|
263
|
-
<!--End PulumiCodeChooser -->
|
|
264
261
|
|
|
265
262
|
:param str resource_name: The name of the resource.
|
|
266
263
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
@@ -294,7 +291,6 @@ class NetworkArea(pulumi.CustomResource):
|
|
|
294
291
|
|
|
295
292
|
## Example Usage
|
|
296
293
|
|
|
297
|
-
<!--Start PulumiCodeChooser -->
|
|
298
294
|
```python
|
|
299
295
|
import pulumi
|
|
300
296
|
import pulumi_consul as consul
|
|
@@ -304,7 +300,6 @@ class NetworkArea(pulumi.CustomResource):
|
|
|
304
300
|
retry_joins=["1.2.3.4"],
|
|
305
301
|
use_tls=True)
|
|
306
302
|
```
|
|
307
|
-
<!--End PulumiCodeChooser -->
|
|
308
303
|
|
|
309
304
|
:param str resource_name: The name of the resource.
|
|
310
305
|
:param NetworkAreaArgs args: The arguments to use to populate this resource's properties.
|
|
@@ -417,16 +412,13 @@ class NetworkArea(pulumi.CustomResource):
|
|
|
417
412
|
|
|
418
413
|
@property
|
|
419
414
|
@pulumi.getter
|
|
415
|
+
@_utilities.deprecated("""The token argument has been deprecated and will be removed in a future release.
|
|
416
|
+
Please use the token argument in the provider configuration""")
|
|
420
417
|
def token(self) -> pulumi.Output[Optional[str]]:
|
|
421
418
|
"""
|
|
422
419
|
The ACL token to use. This overrides the
|
|
423
420
|
token that the agent provides by default.
|
|
424
421
|
"""
|
|
425
|
-
warnings.warn("""The token argument has been deprecated and will be removed in a future release.
|
|
426
|
-
Please use the token argument in the provider configuration""", DeprecationWarning)
|
|
427
|
-
pulumi.log.warn("""token is deprecated: The token argument has been deprecated and will be removed in a future release.
|
|
428
|
-
Please use the token argument in the provider configuration""")
|
|
429
|
-
|
|
430
422
|
return pulumi.get(self, "token")
|
|
431
423
|
|
|
432
424
|
@property
|