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.
- 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 -14
- pulumi_consul/acl_binding_rule.py +12 -5
- pulumi_consul/acl_policy.py +9 -4
- pulumi_consul/acl_role.py +39 -30
- pulumi_consul/acl_role_policy_attachment.py +15 -8
- pulumi_consul/acl_token.py +36 -27
- pulumi_consul/acl_token_policy_attachment.py +7 -2
- pulumi_consul/acl_token_role_attachment.py +11 -4
- pulumi_consul/admin_partition.py +13 -4
- pulumi_consul/agent_service.py +7 -0
- pulumi_consul/autopilot_config.py +5 -0
- pulumi_consul/catalog_entry.py +16 -62
- pulumi_consul/certificate_authority.py +10 -51
- 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 +75 -26
- pulumi_consul/config_entry_service_defaults.py +58 -51
- pulumi_consul/config_entry_service_intentions.py +80 -71
- pulumi_consul/config_entry_service_resolver.py +94 -87
- pulumi_consul/config_entry_service_router.py +31 -62
- pulumi_consul/config_entry_service_splitter.py +104 -93
- pulumi_consul/config_entry_v2_exported_services.py +479 -0
- pulumi_consul/get_acl_auth_method.py +26 -8
- pulumi_consul/get_acl_policy.py +20 -5
- pulumi_consul/get_acl_role.py +24 -5
- pulumi_consul/get_acl_token.py +25 -5
- pulumi_consul/get_acl_token_secret_id.py +29 -11
- pulumi_consul/get_agent_config.py +17 -5
- pulumi_consul/get_agent_self.py +82 -5
- pulumi_consul/get_autopilot_health.py +16 -5
- 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 -38
- pulumi_consul/get_keys.py +44 -30
- pulumi_consul/get_network_area_members.py +26 -16
- pulumi_consul/get_network_segments.py +22 -14
- pulumi_consul/get_nodes.py +21 -9
- pulumi_consul/get_peering.py +22 -5
- pulumi_consul/get_peerings.py +14 -5
- 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 +17 -12
- pulumi_consul/key_prefix.py +48 -50
- pulumi_consul/keys.py +26 -30
- pulumi_consul/license.py +9 -2
- pulumi_consul/namespace.py +13 -4
- pulumi_consul/namespace_policy_attachment.py +11 -4
- pulumi_consul/namespace_role_attachment.py +11 -4
- pulumi_consul/network_area.py +11 -15
- pulumi_consul/node.py +19 -19
- pulumi_consul/outputs.py +30 -27
- pulumi_consul/peering.py +13 -18
- pulumi_consul/peering_token.py +55 -11
- pulumi_consul/prepared_query.py +101 -101
- pulumi_consul/provider.py +11 -6
- pulumi_consul/pulumi-plugin.json +2 -1
- pulumi_consul/service.py +144 -19
- {pulumi_consul-3.12.0a1709360320.dist-info → pulumi_consul-3.13.0a1736832526.dist-info}/METADATA +7 -6
- pulumi_consul-3.13.0a1736832526.dist-info/RECORD +72 -0
- {pulumi_consul-3.12.0a1709360320.dist-info → pulumi_consul-3.13.0a1736832526.dist-info}/WHEEL +1 -1
- pulumi_consul-3.12.0a1709360320.dist-info/RECORD +0 -70
- {pulumi_consul-3.12.0a1709360320.dist-info → pulumi_consul-3.13.0a1736832526.dist-info}/top_level.txt +0 -0
pulumi_consul/intention.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__ = ['IntentionArgs', 'Intention']
|
|
@@ -346,9 +351,9 @@ class Intention(pulumi.CustomResource):
|
|
|
346
351
|
import pulumi_consul as consul
|
|
347
352
|
|
|
348
353
|
database = consul.Intention("database",
|
|
349
|
-
|
|
354
|
+
source_name="api",
|
|
350
355
|
destination_name="db",
|
|
351
|
-
|
|
356
|
+
action="allow")
|
|
352
357
|
```
|
|
353
358
|
|
|
354
359
|
Referencing a known service via a datasource:
|
|
@@ -358,9 +363,9 @@ class Intention(pulumi.CustomResource):
|
|
|
358
363
|
import pulumi_consul as consul
|
|
359
364
|
|
|
360
365
|
database = consul.Intention("database",
|
|
361
|
-
|
|
362
|
-
destination_name=
|
|
363
|
-
|
|
366
|
+
source_name="api",
|
|
367
|
+
destination_name=pg_consul_service["name"],
|
|
368
|
+
action="allow")
|
|
364
369
|
pg = consul.get_service(name="postgresql")
|
|
365
370
|
```
|
|
366
371
|
|
|
@@ -369,7 +374,7 @@ class Intention(pulumi.CustomResource):
|
|
|
369
374
|
`consul_intention` can be imported:
|
|
370
375
|
|
|
371
376
|
```sh
|
|
372
|
-
|
|
377
|
+
$ pulumi import consul:index/intention:Intention database 657a57d6-0d56-57e2-31cb-e9f1ed3c18dd
|
|
373
378
|
```
|
|
374
379
|
|
|
375
380
|
:param str resource_name: The name of the resource.
|
|
@@ -420,9 +425,9 @@ class Intention(pulumi.CustomResource):
|
|
|
420
425
|
import pulumi_consul as consul
|
|
421
426
|
|
|
422
427
|
database = consul.Intention("database",
|
|
423
|
-
|
|
428
|
+
source_name="api",
|
|
424
429
|
destination_name="db",
|
|
425
|
-
|
|
430
|
+
action="allow")
|
|
426
431
|
```
|
|
427
432
|
|
|
428
433
|
Referencing a known service via a datasource:
|
|
@@ -432,9 +437,9 @@ class Intention(pulumi.CustomResource):
|
|
|
432
437
|
import pulumi_consul as consul
|
|
433
438
|
|
|
434
439
|
database = consul.Intention("database",
|
|
435
|
-
|
|
436
|
-
destination_name=
|
|
437
|
-
|
|
440
|
+
source_name="api",
|
|
441
|
+
destination_name=pg_consul_service["name"],
|
|
442
|
+
action="allow")
|
|
438
443
|
pg = consul.get_service(name="postgresql")
|
|
439
444
|
```
|
|
440
445
|
|
|
@@ -443,7 +448,7 @@ class Intention(pulumi.CustomResource):
|
|
|
443
448
|
`consul_intention` can be imported:
|
|
444
449
|
|
|
445
450
|
```sh
|
|
446
|
-
|
|
451
|
+
$ pulumi import consul:index/intention:Intention database 657a57d6-0d56-57e2-31cb-e9f1ed3c18dd
|
|
447
452
|
```
|
|
448
453
|
|
|
449
454
|
:param str resource_name: The name of the resource.
|
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,7 +312,7 @@ 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):
|
|
@@ -324,31 +323,32 @@ class KeyPrefix(pulumi.CustomResource):
|
|
|
324
323
|
import pulumi
|
|
325
324
|
import pulumi_consul as consul
|
|
326
325
|
|
|
327
|
-
myapp_config = consul.KeyPrefix("
|
|
326
|
+
myapp_config = consul.KeyPrefix("myapp_config",
|
|
328
327
|
datacenter="nyc1",
|
|
328
|
+
token="abcd",
|
|
329
329
|
path_prefix="myapp/config/",
|
|
330
|
-
subkey_collection=[consul.KeyPrefixSubkeyCollectionArgs(
|
|
331
|
-
flags=2,
|
|
332
|
-
path="database/password",
|
|
333
|
-
value=aws_db_instance["app"]["password"],
|
|
334
|
-
)],
|
|
335
330
|
subkeys={
|
|
336
|
-
"
|
|
337
|
-
"
|
|
338
|
-
"database/
|
|
339
|
-
"database/
|
|
340
|
-
"
|
|
341
|
-
"
|
|
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"],
|
|
342
337
|
},
|
|
343
|
-
|
|
338
|
+
subkey_collection=[{
|
|
339
|
+
"path": "database/password",
|
|
340
|
+
"value": app["password"],
|
|
341
|
+
"flags": 2,
|
|
342
|
+
}])
|
|
344
343
|
```
|
|
345
344
|
|
|
346
345
|
## Import
|
|
347
346
|
|
|
348
|
-
`consul_key_prefix` can be imported. This is useful when the path already exists and
|
|
347
|
+
`consul_key_prefix` can be imported. This is useful when the path already exists and
|
|
348
|
+
you know all keys in path should be managed by Terraform.
|
|
349
349
|
|
|
350
350
|
```sh
|
|
351
|
-
|
|
351
|
+
$ pulumi import consul:index/keyPrefix:KeyPrefix myapp_config myapp/config/
|
|
352
352
|
```
|
|
353
353
|
|
|
354
354
|
:param str resource_name: The name of the resource.
|
|
@@ -360,7 +360,7 @@ class KeyPrefix(pulumi.CustomResource):
|
|
|
360
360
|
:param pulumi.Input[str] path_prefix: Specifies the common prefix shared by all keys
|
|
361
361
|
that will be managed by this resource instance. In most cases this will
|
|
362
362
|
end with a slash, to manage a "folder" of keys.
|
|
363
|
-
: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.
|
|
364
364
|
Multiple blocks supported.
|
|
365
365
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] subkeys: A mapping from subkey name (which will be appended
|
|
366
366
|
to the given `path_prefix`) to the value that should be stored at that key.
|
|
@@ -382,31 +382,32 @@ class KeyPrefix(pulumi.CustomResource):
|
|
|
382
382
|
import pulumi
|
|
383
383
|
import pulumi_consul as consul
|
|
384
384
|
|
|
385
|
-
myapp_config = consul.KeyPrefix("
|
|
385
|
+
myapp_config = consul.KeyPrefix("myapp_config",
|
|
386
386
|
datacenter="nyc1",
|
|
387
|
+
token="abcd",
|
|
387
388
|
path_prefix="myapp/config/",
|
|
388
|
-
subkey_collection=[consul.KeyPrefixSubkeyCollectionArgs(
|
|
389
|
-
flags=2,
|
|
390
|
-
path="database/password",
|
|
391
|
-
value=aws_db_instance["app"]["password"],
|
|
392
|
-
)],
|
|
393
389
|
subkeys={
|
|
394
|
-
"
|
|
395
|
-
"
|
|
396
|
-
"database/
|
|
397
|
-
"database/
|
|
398
|
-
"
|
|
399
|
-
"
|
|
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"],
|
|
400
396
|
},
|
|
401
|
-
|
|
397
|
+
subkey_collection=[{
|
|
398
|
+
"path": "database/password",
|
|
399
|
+
"value": app["password"],
|
|
400
|
+
"flags": 2,
|
|
401
|
+
}])
|
|
402
402
|
```
|
|
403
403
|
|
|
404
404
|
## Import
|
|
405
405
|
|
|
406
|
-
`consul_key_prefix` can be imported. This is useful when the path already exists and
|
|
406
|
+
`consul_key_prefix` can be imported. This is useful when the path already exists and
|
|
407
|
+
you know all keys in path should be managed by Terraform.
|
|
407
408
|
|
|
408
409
|
```sh
|
|
409
|
-
|
|
410
|
+
$ pulumi import consul:index/keyPrefix:KeyPrefix myapp_config myapp/config/
|
|
410
411
|
```
|
|
411
412
|
|
|
412
413
|
:param str resource_name: The name of the resource.
|
|
@@ -428,7 +429,7 @@ class KeyPrefix(pulumi.CustomResource):
|
|
|
428
429
|
namespace: Optional[pulumi.Input[str]] = None,
|
|
429
430
|
partition: Optional[pulumi.Input[str]] = None,
|
|
430
431
|
path_prefix: Optional[pulumi.Input[str]] = None,
|
|
431
|
-
subkey_collection: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
432
|
+
subkey_collection: Optional[pulumi.Input[Sequence[pulumi.Input[Union['KeyPrefixSubkeyCollectionArgs', 'KeyPrefixSubkeyCollectionArgsDict']]]]] = None,
|
|
432
433
|
subkeys: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
433
434
|
token: Optional[pulumi.Input[str]] = None,
|
|
434
435
|
__props__=None):
|
|
@@ -465,7 +466,7 @@ class KeyPrefix(pulumi.CustomResource):
|
|
|
465
466
|
namespace: Optional[pulumi.Input[str]] = None,
|
|
466
467
|
partition: Optional[pulumi.Input[str]] = None,
|
|
467
468
|
path_prefix: Optional[pulumi.Input[str]] = None,
|
|
468
|
-
subkey_collection: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
469
|
+
subkey_collection: Optional[pulumi.Input[Sequence[pulumi.Input[Union['KeyPrefixSubkeyCollectionArgs', 'KeyPrefixSubkeyCollectionArgsDict']]]]] = None,
|
|
469
470
|
subkeys: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
470
471
|
token: Optional[pulumi.Input[str]] = None) -> 'KeyPrefix':
|
|
471
472
|
"""
|
|
@@ -482,7 +483,7 @@ class KeyPrefix(pulumi.CustomResource):
|
|
|
482
483
|
:param pulumi.Input[str] path_prefix: Specifies the common prefix shared by all keys
|
|
483
484
|
that will be managed by this resource instance. In most cases this will
|
|
484
485
|
end with a slash, to manage a "folder" of keys.
|
|
485
|
-
: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.
|
|
486
487
|
Multiple blocks supported.
|
|
487
488
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] subkeys: A mapping from subkey name (which will be appended
|
|
488
489
|
to the given `path_prefix`) to the value that should be stored at that key.
|
|
@@ -561,15 +562,12 @@ class KeyPrefix(pulumi.CustomResource):
|
|
|
561
562
|
|
|
562
563
|
@property
|
|
563
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""")
|
|
564
567
|
def token(self) -> pulumi.Output[Optional[str]]:
|
|
565
568
|
"""
|
|
566
569
|
The ACL token to use. This overrides the
|
|
567
570
|
token that the agent provides by default.
|
|
568
571
|
"""
|
|
569
|
-
warnings.warn("""The token argument has been deprecated and will be removed in a future release.
|
|
570
|
-
Please use the token argument in the provider configuration""", DeprecationWarning)
|
|
571
|
-
pulumi.log.warn("""token is deprecated: The token argument has been deprecated and will be removed in a future release.
|
|
572
|
-
Please use the token argument in the provider configuration""")
|
|
573
|
-
|
|
574
572
|
return pulumi.get(self, "token")
|
|
575
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,
|
|
@@ -253,18 +252,18 @@ class Keys(pulumi.CustomResource):
|
|
|
253
252
|
|
|
254
253
|
app = consul.Keys("app",
|
|
255
254
|
datacenter="nyc1",
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
255
|
+
token="abcd",
|
|
256
|
+
keys=[{
|
|
257
|
+
"path": "service/app/elb_address",
|
|
258
|
+
"value": app_aws_elb["dnsName"],
|
|
259
|
+
}])
|
|
261
260
|
```
|
|
262
261
|
|
|
263
262
|
:param str resource_name: The name of the resource.
|
|
264
263
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
265
264
|
:param pulumi.Input[str] datacenter: The datacenter to use. This overrides the
|
|
266
265
|
agent's default datacenter and the datacenter in the provider setup.
|
|
267
|
-
: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.
|
|
268
267
|
Supported values documented below.
|
|
269
268
|
:param pulumi.Input[str] namespace: The namespace to create the keys within.
|
|
270
269
|
:param pulumi.Input[str] partition: The partition to create the keys within.
|
|
@@ -286,11 +285,11 @@ class Keys(pulumi.CustomResource):
|
|
|
286
285
|
|
|
287
286
|
app = consul.Keys("app",
|
|
288
287
|
datacenter="nyc1",
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
288
|
+
token="abcd",
|
|
289
|
+
keys=[{
|
|
290
|
+
"path": "service/app/elb_address",
|
|
291
|
+
"value": app_aws_elb["dnsName"],
|
|
292
|
+
}])
|
|
294
293
|
```
|
|
295
294
|
|
|
296
295
|
:param str resource_name: The name of the resource.
|
|
@@ -309,7 +308,7 @@ class Keys(pulumi.CustomResource):
|
|
|
309
308
|
resource_name: str,
|
|
310
309
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
311
310
|
datacenter: Optional[pulumi.Input[str]] = None,
|
|
312
|
-
keys: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
311
|
+
keys: Optional[pulumi.Input[Sequence[pulumi.Input[Union['KeysKeyArgs', 'KeysKeyArgsDict']]]]] = None,
|
|
313
312
|
namespace: Optional[pulumi.Input[str]] = None,
|
|
314
313
|
partition: Optional[pulumi.Input[str]] = None,
|
|
315
314
|
token: Optional[pulumi.Input[str]] = None,
|
|
@@ -341,7 +340,7 @@ class Keys(pulumi.CustomResource):
|
|
|
341
340
|
id: pulumi.Input[str],
|
|
342
341
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
343
342
|
datacenter: Optional[pulumi.Input[str]] = None,
|
|
344
|
-
keys: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
343
|
+
keys: Optional[pulumi.Input[Sequence[pulumi.Input[Union['KeysKeyArgs', 'KeysKeyArgsDict']]]]] = None,
|
|
345
344
|
namespace: Optional[pulumi.Input[str]] = None,
|
|
346
345
|
partition: Optional[pulumi.Input[str]] = None,
|
|
347
346
|
token: Optional[pulumi.Input[str]] = None,
|
|
@@ -355,7 +354,7 @@ class Keys(pulumi.CustomResource):
|
|
|
355
354
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
356
355
|
:param pulumi.Input[str] datacenter: The datacenter to use. This overrides the
|
|
357
356
|
agent's default datacenter and the datacenter in the provider setup.
|
|
358
|
-
: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.
|
|
359
358
|
Supported values documented below.
|
|
360
359
|
:param pulumi.Input[str] namespace: The namespace to create the keys within.
|
|
361
360
|
:param pulumi.Input[str] partition: The partition to create the keys within.
|
|
@@ -410,16 +409,13 @@ class Keys(pulumi.CustomResource):
|
|
|
410
409
|
|
|
411
410
|
@property
|
|
412
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""")
|
|
413
414
|
def token(self) -> pulumi.Output[Optional[str]]:
|
|
414
415
|
"""
|
|
415
416
|
The ACL token to use. This overrides the
|
|
416
417
|
token that the agent provides by default.
|
|
417
418
|
"""
|
|
418
|
-
warnings.warn("""The token argument has been deprecated and will be removed in a future release.
|
|
419
|
-
Please use the token argument in the provider configuration""", DeprecationWarning)
|
|
420
|
-
pulumi.log.warn("""token is deprecated: The token argument has been deprecated and will be removed in a future release.
|
|
421
|
-
Please use the token argument in the provider configuration""")
|
|
422
|
-
|
|
423
419
|
return pulumi.get(self, "token")
|
|
424
420
|
|
|
425
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']
|
|
@@ -274,8 +279,9 @@ class License(pulumi.CustomResource):
|
|
|
274
279
|
```python
|
|
275
280
|
import pulumi
|
|
276
281
|
import pulumi_consul as consul
|
|
282
|
+
import pulumi_std as std
|
|
277
283
|
|
|
278
|
-
license = consul.License("license", license=
|
|
284
|
+
license = consul.License("license", license=std.file(input="license.hclic").result)
|
|
279
285
|
```
|
|
280
286
|
|
|
281
287
|
:param str resource_name: The name of the resource.
|
|
@@ -302,8 +308,9 @@ class License(pulumi.CustomResource):
|
|
|
302
308
|
```python
|
|
303
309
|
import pulumi
|
|
304
310
|
import pulumi_consul as consul
|
|
311
|
+
import pulumi_std as std
|
|
305
312
|
|
|
306
|
-
license = consul.License("license", license=
|
|
313
|
+
license = consul.License("license", license=std.file(input="license.hclic").result)
|
|
307
314
|
```
|
|
308
315
|
|
|
309
316
|
:param str resource_name: The name of the resource.
|
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']
|
|
@@ -243,6 +248,7 @@ class Namespace(pulumi.CustomResource):
|
|
|
243
248
|
import pulumi_consul as consul
|
|
244
249
|
|
|
245
250
|
production = consul.Namespace("production",
|
|
251
|
+
name="production",
|
|
246
252
|
description="Production namespace",
|
|
247
253
|
meta={
|
|
248
254
|
"foo": "bar",
|
|
@@ -251,10 +257,11 @@ class Namespace(pulumi.CustomResource):
|
|
|
251
257
|
|
|
252
258
|
## Import
|
|
253
259
|
|
|
254
|
-
`consul_namespace` can be imported. This is useful to manage attributes of the
|
|
260
|
+
`consul_namespace` can be imported. This is useful to manage attributes of the
|
|
261
|
+
default namespace that is created automatically:
|
|
255
262
|
|
|
256
263
|
```sh
|
|
257
|
-
|
|
264
|
+
$ pulumi import consul:index/namespace:Namespace default default
|
|
258
265
|
```
|
|
259
266
|
|
|
260
267
|
:param str resource_name: The name of the resource.
|
|
@@ -284,6 +291,7 @@ class Namespace(pulumi.CustomResource):
|
|
|
284
291
|
import pulumi_consul as consul
|
|
285
292
|
|
|
286
293
|
production = consul.Namespace("production",
|
|
294
|
+
name="production",
|
|
287
295
|
description="Production namespace",
|
|
288
296
|
meta={
|
|
289
297
|
"foo": "bar",
|
|
@@ -292,10 +300,11 @@ class Namespace(pulumi.CustomResource):
|
|
|
292
300
|
|
|
293
301
|
## Import
|
|
294
302
|
|
|
295
|
-
`consul_namespace` can be imported. This is useful to manage attributes of the
|
|
303
|
+
`consul_namespace` can be imported. This is useful to manage attributes of the
|
|
304
|
+
default namespace that is created automatically:
|
|
296
305
|
|
|
297
306
|
```sh
|
|
298
|
-
|
|
307
|
+
$ pulumi import consul:index/namespace:Namespace default default
|
|
299
308
|
```
|
|
300
309
|
|
|
301
310
|
:param str resource_name: The name of the resource.
|
|
@@ -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']
|
|
@@ -100,10 +105,11 @@ class NamespacePolicyAttachment(pulumi.CustomResource):
|
|
|
100
105
|
"""
|
|
101
106
|
## Import
|
|
102
107
|
|
|
103
|
-
`consul_namespace_policy_attachment` can be imported. This is especially useful
|
|
108
|
+
`consul_namespace_policy_attachment` can be imported. This is especially useful
|
|
109
|
+
to manage the policies attached to the `default` namespace:
|
|
104
110
|
|
|
105
111
|
```sh
|
|
106
|
-
|
|
112
|
+
$ pulumi import consul:index/namespacePolicyAttachment:NamespacePolicyAttachment default default:policy_name
|
|
107
113
|
```
|
|
108
114
|
|
|
109
115
|
:param str resource_name: The name of the resource.
|
|
@@ -120,10 +126,11 @@ class NamespacePolicyAttachment(pulumi.CustomResource):
|
|
|
120
126
|
"""
|
|
121
127
|
## Import
|
|
122
128
|
|
|
123
|
-
`consul_namespace_policy_attachment` can be imported. This is especially useful
|
|
129
|
+
`consul_namespace_policy_attachment` can be imported. This is especially useful
|
|
130
|
+
to manage the policies attached to the `default` namespace:
|
|
124
131
|
|
|
125
132
|
```sh
|
|
126
|
-
|
|
133
|
+
$ pulumi import consul:index/namespacePolicyAttachment:NamespacePolicyAttachment default default:policy_name
|
|
127
134
|
```
|
|
128
135
|
|
|
129
136
|
:param str resource_name: The name of the resource.
|
|
@@ -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']
|
|
@@ -100,10 +105,11 @@ class NamespaceRoleAttachment(pulumi.CustomResource):
|
|
|
100
105
|
"""
|
|
101
106
|
## Import
|
|
102
107
|
|
|
103
|
-
`consul_namespace_role_attachment` can be imported. This is especially useful
|
|
108
|
+
`consul_namespace_role_attachment` can be imported. This is especially useful
|
|
109
|
+
to manage the policies attached to the `default` namespace:
|
|
104
110
|
|
|
105
111
|
```sh
|
|
106
|
-
|
|
112
|
+
$ pulumi import consul:index/namespaceRoleAttachment:NamespaceRoleAttachment default default:role_name
|
|
107
113
|
```
|
|
108
114
|
|
|
109
115
|
:param str resource_name: The name of the resource.
|
|
@@ -120,10 +126,11 @@ class NamespaceRoleAttachment(pulumi.CustomResource):
|
|
|
120
126
|
"""
|
|
121
127
|
## Import
|
|
122
128
|
|
|
123
|
-
`consul_namespace_role_attachment` can be imported. This is especially useful
|
|
129
|
+
`consul_namespace_role_attachment` can be imported. This is especially useful
|
|
130
|
+
to manage the policies attached to the `default` namespace:
|
|
124
131
|
|
|
125
132
|
```sh
|
|
126
|
-
|
|
133
|
+
$ pulumi import consul:index/namespaceRoleAttachment:NamespaceRoleAttachment default default:role_name
|
|
127
134
|
```
|
|
128
135
|
|
|
129
136
|
:param str resource_name: The name of the resource.
|