pulumi-consul 3.12.0a1709360320__py3-none-any.whl → 3.13.0a1736832526__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of pulumi-consul might be problematic. Click here for more details.

Files changed (71) hide show
  1. pulumi_consul/__init__.py +10 -0
  2. pulumi_consul/_inputs.py +1592 -31
  3. pulumi_consul/_utilities.py +41 -5
  4. pulumi_consul/acl_auth_method.py +17 -14
  5. pulumi_consul/acl_binding_rule.py +12 -5
  6. pulumi_consul/acl_policy.py +9 -4
  7. pulumi_consul/acl_role.py +39 -30
  8. pulumi_consul/acl_role_policy_attachment.py +15 -8
  9. pulumi_consul/acl_token.py +36 -27
  10. pulumi_consul/acl_token_policy_attachment.py +7 -2
  11. pulumi_consul/acl_token_role_attachment.py +11 -4
  12. pulumi_consul/admin_partition.py +13 -4
  13. pulumi_consul/agent_service.py +7 -0
  14. pulumi_consul/autopilot_config.py +5 -0
  15. pulumi_consul/catalog_entry.py +16 -62
  16. pulumi_consul/certificate_authority.py +10 -51
  17. pulumi_consul/config/__init__.pyi +5 -0
  18. pulumi_consul/config/outputs.py +5 -0
  19. pulumi_consul/config/vars.py +5 -0
  20. pulumi_consul/config_entry.py +75 -26
  21. pulumi_consul/config_entry_service_defaults.py +58 -51
  22. pulumi_consul/config_entry_service_intentions.py +80 -71
  23. pulumi_consul/config_entry_service_resolver.py +94 -87
  24. pulumi_consul/config_entry_service_router.py +31 -62
  25. pulumi_consul/config_entry_service_splitter.py +104 -93
  26. pulumi_consul/config_entry_v2_exported_services.py +479 -0
  27. pulumi_consul/get_acl_auth_method.py +26 -8
  28. pulumi_consul/get_acl_policy.py +20 -5
  29. pulumi_consul/get_acl_role.py +24 -5
  30. pulumi_consul/get_acl_token.py +25 -5
  31. pulumi_consul/get_acl_token_secret_id.py +29 -11
  32. pulumi_consul/get_agent_config.py +17 -5
  33. pulumi_consul/get_agent_self.py +82 -5
  34. pulumi_consul/get_autopilot_health.py +16 -5
  35. pulumi_consul/get_catalog_nodes.py +21 -9
  36. pulumi_consul/get_catalog_service.py +56 -13
  37. pulumi_consul/get_catalog_services.py +53 -9
  38. pulumi_consul/get_config_entry.py +20 -5
  39. pulumi_consul/get_config_entry_v2_exported_services.py +232 -0
  40. pulumi_consul/get_datacenters.py +12 -5
  41. pulumi_consul/get_key_prefix.py +55 -38
  42. pulumi_consul/get_keys.py +44 -30
  43. pulumi_consul/get_network_area_members.py +26 -16
  44. pulumi_consul/get_network_segments.py +22 -14
  45. pulumi_consul/get_nodes.py +21 -9
  46. pulumi_consul/get_peering.py +22 -5
  47. pulumi_consul/get_peerings.py +14 -5
  48. pulumi_consul/get_service.py +56 -13
  49. pulumi_consul/get_service_health.py +28 -5
  50. pulumi_consul/get_services.py +53 -9
  51. pulumi_consul/intention.py +17 -12
  52. pulumi_consul/key_prefix.py +48 -50
  53. pulumi_consul/keys.py +26 -30
  54. pulumi_consul/license.py +9 -2
  55. pulumi_consul/namespace.py +13 -4
  56. pulumi_consul/namespace_policy_attachment.py +11 -4
  57. pulumi_consul/namespace_role_attachment.py +11 -4
  58. pulumi_consul/network_area.py +11 -15
  59. pulumi_consul/node.py +19 -19
  60. pulumi_consul/outputs.py +30 -27
  61. pulumi_consul/peering.py +13 -18
  62. pulumi_consul/peering_token.py +55 -11
  63. pulumi_consul/prepared_query.py +101 -101
  64. pulumi_consul/provider.py +11 -6
  65. pulumi_consul/pulumi-plugin.json +2 -1
  66. pulumi_consul/service.py +144 -19
  67. {pulumi_consul-3.12.0a1709360320.dist-info → pulumi_consul-3.13.0a1736832526.dist-info}/METADATA +7 -6
  68. pulumi_consul-3.13.0a1736832526.dist-info/RECORD +72 -0
  69. {pulumi_consul-3.12.0a1709360320.dist-info → pulumi_consul-3.13.0a1736832526.dist-info}/WHEEL +1 -1
  70. pulumi_consul-3.12.0a1709360320.dist-info/RECORD +0 -70
  71. {pulumi_consul-3.12.0a1709360320.dist-info → pulumi_consul-3.13.0a1736832526.dist-info}/top_level.txt +0 -0
@@ -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 *
@@ -391,12 +396,12 @@ class AclToken(pulumi.CustomResource):
391
396
  expiration_time: Optional[pulumi.Input[str]] = None,
392
397
  local: Optional[pulumi.Input[bool]] = None,
393
398
  namespace: Optional[pulumi.Input[str]] = None,
394
- node_identities: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['AclTokenNodeIdentityArgs']]]]] = None,
399
+ node_identities: Optional[pulumi.Input[Sequence[pulumi.Input[Union['AclTokenNodeIdentityArgs', 'AclTokenNodeIdentityArgsDict']]]]] = None,
395
400
  partition: Optional[pulumi.Input[str]] = None,
396
401
  policies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
397
402
  roles: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
398
- service_identities: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['AclTokenServiceIdentityArgs']]]]] = None,
399
- templated_policies: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['AclTokenTemplatedPolicyArgs']]]]] = None,
403
+ service_identities: Optional[pulumi.Input[Sequence[pulumi.Input[Union['AclTokenServiceIdentityArgs', 'AclTokenServiceIdentityArgsDict']]]]] = None,
404
+ templated_policies: Optional[pulumi.Input[Sequence[pulumi.Input[Union['AclTokenTemplatedPolicyArgs', 'AclTokenTemplatedPolicyArgsDict']]]]] = None,
400
405
  __props__=None):
401
406
  """
402
407
  ## Example Usage
@@ -407,18 +412,20 @@ class AclToken(pulumi.CustomResource):
407
412
  import pulumi_random as random
408
413
 
409
414
  # Basic usage
410
- agent = consul.AclPolicy("agent", rules=\"\"\"node_prefix "" {
415
+ agent = consul.AclPolicy("agent",
416
+ name="agent",
417
+ rules=\"\"\"node_prefix "" {
411
418
  policy = "read"
412
419
  }
413
420
  \"\"\")
414
- test_acl_token = consul.AclToken("testAclToken",
421
+ test = consul.AclToken("test",
415
422
  description="my test token",
416
423
  policies=[agent.name],
417
424
  local=True)
418
425
  # Explicitly set the `accessor_id`
419
- test_random_uuid = random.RandomUuid("testRandomUuid")
420
- test_predefined_id = consul.AclToken("testPredefinedId",
421
- accessor_id=random_uuid["test_uuid"]["result"],
426
+ test_random_uuid = random.RandomUuid("test")
427
+ test_predefined_id = consul.AclToken("test_predefined_id",
428
+ accessor_id=test_uuid["result"],
422
429
  description="my test uuid token",
423
430
  policies=[agent.name],
424
431
  local=True)
@@ -427,7 +434,7 @@ class AclToken(pulumi.CustomResource):
427
434
  ## Import
428
435
 
429
436
  ```sh
430
- $ pulumi import consul:index/aclToken:AclToken anonymous 00000000-0000-0000-0000-000000000002
437
+ $ pulumi import consul:index/aclToken:AclToken anonymous 00000000-0000-0000-0000-000000000002
431
438
  ```
432
439
 
433
440
  ```sh
@@ -441,12 +448,12 @@ class AclToken(pulumi.CustomResource):
441
448
  :param pulumi.Input[str] expiration_time: If set this represents the point after which a token should be considered revoked and is eligible for destruction.
442
449
  :param pulumi.Input[bool] local: The flag to set the token local to the current datacenter.
443
450
  :param pulumi.Input[str] namespace: The namespace to create the token within.
444
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['AclTokenNodeIdentityArgs']]]] node_identities: The list of node identities that should be applied to the token.
451
+ :param pulumi.Input[Sequence[pulumi.Input[Union['AclTokenNodeIdentityArgs', 'AclTokenNodeIdentityArgsDict']]]] node_identities: The list of node identities that should be applied to the token.
445
452
  :param pulumi.Input[str] partition: The partition the ACL token is associated with.
446
453
  :param pulumi.Input[Sequence[pulumi.Input[str]]] policies: The list of policies attached to the token.
447
454
  :param pulumi.Input[Sequence[pulumi.Input[str]]] roles: The list of roles attached to the token.
448
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['AclTokenServiceIdentityArgs']]]] service_identities: The list of service identities that should be applied to the token.
449
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['AclTokenTemplatedPolicyArgs']]]] templated_policies: The list of templated policies that should be applied to the token.
455
+ :param pulumi.Input[Sequence[pulumi.Input[Union['AclTokenServiceIdentityArgs', 'AclTokenServiceIdentityArgsDict']]]] service_identities: The list of service identities that should be applied to the token.
456
+ :param pulumi.Input[Sequence[pulumi.Input[Union['AclTokenTemplatedPolicyArgs', 'AclTokenTemplatedPolicyArgsDict']]]] templated_policies: The list of templated policies that should be applied to the token.
450
457
  """
451
458
  ...
452
459
  @overload
@@ -463,18 +470,20 @@ class AclToken(pulumi.CustomResource):
463
470
  import pulumi_random as random
464
471
 
465
472
  # Basic usage
466
- agent = consul.AclPolicy("agent", rules=\"\"\"node_prefix "" {
473
+ agent = consul.AclPolicy("agent",
474
+ name="agent",
475
+ rules=\"\"\"node_prefix "" {
467
476
  policy = "read"
468
477
  }
469
478
  \"\"\")
470
- test_acl_token = consul.AclToken("testAclToken",
479
+ test = consul.AclToken("test",
471
480
  description="my test token",
472
481
  policies=[agent.name],
473
482
  local=True)
474
483
  # Explicitly set the `accessor_id`
475
- test_random_uuid = random.RandomUuid("testRandomUuid")
476
- test_predefined_id = consul.AclToken("testPredefinedId",
477
- accessor_id=random_uuid["test_uuid"]["result"],
484
+ test_random_uuid = random.RandomUuid("test")
485
+ test_predefined_id = consul.AclToken("test_predefined_id",
486
+ accessor_id=test_uuid["result"],
478
487
  description="my test uuid token",
479
488
  policies=[agent.name],
480
489
  local=True)
@@ -483,7 +492,7 @@ class AclToken(pulumi.CustomResource):
483
492
  ## Import
484
493
 
485
494
  ```sh
486
- $ pulumi import consul:index/aclToken:AclToken anonymous 00000000-0000-0000-0000-000000000002
495
+ $ pulumi import consul:index/aclToken:AclToken anonymous 00000000-0000-0000-0000-000000000002
487
496
  ```
488
497
 
489
498
  ```sh
@@ -510,12 +519,12 @@ class AclToken(pulumi.CustomResource):
510
519
  expiration_time: Optional[pulumi.Input[str]] = None,
511
520
  local: Optional[pulumi.Input[bool]] = None,
512
521
  namespace: Optional[pulumi.Input[str]] = None,
513
- node_identities: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['AclTokenNodeIdentityArgs']]]]] = None,
522
+ node_identities: Optional[pulumi.Input[Sequence[pulumi.Input[Union['AclTokenNodeIdentityArgs', 'AclTokenNodeIdentityArgsDict']]]]] = None,
514
523
  partition: Optional[pulumi.Input[str]] = None,
515
524
  policies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
516
525
  roles: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
517
- service_identities: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['AclTokenServiceIdentityArgs']]]]] = None,
518
- templated_policies: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['AclTokenTemplatedPolicyArgs']]]]] = None,
526
+ service_identities: Optional[pulumi.Input[Sequence[pulumi.Input[Union['AclTokenServiceIdentityArgs', 'AclTokenServiceIdentityArgsDict']]]]] = None,
527
+ templated_policies: Optional[pulumi.Input[Sequence[pulumi.Input[Union['AclTokenTemplatedPolicyArgs', 'AclTokenTemplatedPolicyArgsDict']]]]] = None,
519
528
  __props__=None):
520
529
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
521
530
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -551,12 +560,12 @@ class AclToken(pulumi.CustomResource):
551
560
  expiration_time: Optional[pulumi.Input[str]] = None,
552
561
  local: Optional[pulumi.Input[bool]] = None,
553
562
  namespace: Optional[pulumi.Input[str]] = None,
554
- node_identities: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['AclTokenNodeIdentityArgs']]]]] = None,
563
+ node_identities: Optional[pulumi.Input[Sequence[pulumi.Input[Union['AclTokenNodeIdentityArgs', 'AclTokenNodeIdentityArgsDict']]]]] = None,
555
564
  partition: Optional[pulumi.Input[str]] = None,
556
565
  policies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
557
566
  roles: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
558
- service_identities: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['AclTokenServiceIdentityArgs']]]]] = None,
559
- templated_policies: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['AclTokenTemplatedPolicyArgs']]]]] = None) -> 'AclToken':
567
+ service_identities: Optional[pulumi.Input[Sequence[pulumi.Input[Union['AclTokenServiceIdentityArgs', 'AclTokenServiceIdentityArgsDict']]]]] = None,
568
+ templated_policies: Optional[pulumi.Input[Sequence[pulumi.Input[Union['AclTokenTemplatedPolicyArgs', 'AclTokenTemplatedPolicyArgsDict']]]]] = None) -> 'AclToken':
560
569
  """
561
570
  Get an existing AclToken resource's state with the given name, id, and optional extra
562
571
  properties used to qualify the lookup.
@@ -569,12 +578,12 @@ class AclToken(pulumi.CustomResource):
569
578
  :param pulumi.Input[str] expiration_time: If set this represents the point after which a token should be considered revoked and is eligible for destruction.
570
579
  :param pulumi.Input[bool] local: The flag to set the token local to the current datacenter.
571
580
  :param pulumi.Input[str] namespace: The namespace to create the token within.
572
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['AclTokenNodeIdentityArgs']]]] node_identities: The list of node identities that should be applied to the token.
581
+ :param pulumi.Input[Sequence[pulumi.Input[Union['AclTokenNodeIdentityArgs', 'AclTokenNodeIdentityArgsDict']]]] node_identities: The list of node identities that should be applied to the token.
573
582
  :param pulumi.Input[str] partition: The partition the ACL token is associated with.
574
583
  :param pulumi.Input[Sequence[pulumi.Input[str]]] policies: The list of policies attached to the token.
575
584
  :param pulumi.Input[Sequence[pulumi.Input[str]]] roles: The list of roles attached to the token.
576
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['AclTokenServiceIdentityArgs']]]] service_identities: The list of service identities that should be applied to the token.
577
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['AclTokenTemplatedPolicyArgs']]]] templated_policies: The list of templated policies that should be applied to the token.
585
+ :param pulumi.Input[Sequence[pulumi.Input[Union['AclTokenServiceIdentityArgs', 'AclTokenServiceIdentityArgsDict']]]] service_identities: The list of service identities that should be applied to the token.
586
+ :param pulumi.Input[Sequence[pulumi.Input[Union['AclTokenTemplatedPolicyArgs', 'AclTokenTemplatedPolicyArgsDict']]]] templated_policies: The list of templated policies that should be applied to the token.
578
587
  """
579
588
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
580
589
 
@@ -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__ = ['AclTokenPolicyAttachmentArgs', 'AclTokenPolicyAttachment']
@@ -102,7 +107,7 @@ class AclTokenPolicyAttachment(pulumi.CustomResource):
102
107
 
103
108
  `consul_acl_token_policy_attachment` can be imported. This is especially useful to manage the
104
109
 
105
- policies attached to the anonymous and the master tokens with Terraform:
110
+ policies attached to the anonymous and the master tokens with Terraform:
106
111
 
107
112
  ```sh
108
113
  $ pulumi import consul:index/aclTokenPolicyAttachment:AclTokenPolicyAttachment anonymous 00000000-0000-0000-0000-000000000002:policy_name
@@ -128,7 +133,7 @@ class AclTokenPolicyAttachment(pulumi.CustomResource):
128
133
 
129
134
  `consul_acl_token_policy_attachment` can be imported. This is especially useful to manage the
130
135
 
131
- policies attached to the anonymous and the master tokens with Terraform:
136
+ policies attached to the anonymous and the master tokens with Terraform:
132
137
 
133
138
  ```sh
134
139
  $ pulumi import consul:index/aclTokenPolicyAttachment:AclTokenPolicyAttachment anonymous 00000000-0000-0000-0000-000000000002:policy_name
@@ -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__ = ['AclTokenRoleAttachmentArgs', 'AclTokenRoleAttachment']
@@ -100,10 +105,11 @@ class AclTokenRoleAttachment(pulumi.CustomResource):
100
105
  """
101
106
  ## Import
102
107
 
103
- `consul_acl_token_role_attachment` can be imported. This is especially useful to manage the policies attached to the anonymous and the master tokens with Terraform:
108
+ `consul_acl_token_role_attachment` can be imported. This is especially useful to manage the
109
+ policies attached to the anonymous and the master tokens with Terraform:
104
110
 
105
111
  ```sh
106
- $ pulumi import consul:index/aclTokenRoleAttachment:AclTokenRoleAttachment anonymous token_id:role_id
112
+ $ pulumi import consul:index/aclTokenRoleAttachment:AclTokenRoleAttachment anonymous token_id:role_id
107
113
  ```
108
114
 
109
115
  :param str resource_name: The name of the resource.
@@ -120,10 +126,11 @@ class AclTokenRoleAttachment(pulumi.CustomResource):
120
126
  """
121
127
  ## Import
122
128
 
123
- `consul_acl_token_role_attachment` can be imported. This is especially useful to manage the policies attached to the anonymous and the master tokens with Terraform:
129
+ `consul_acl_token_role_attachment` can be imported. This is especially useful to manage the
130
+ policies attached to the anonymous and the master tokens with Terraform:
124
131
 
125
132
  ```sh
126
- $ pulumi import consul:index/aclTokenRoleAttachment:AclTokenRoleAttachment anonymous token_id:role_id
133
+ $ pulumi import consul:index/aclTokenRoleAttachment:AclTokenRoleAttachment anonymous token_id:role_id
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__ = ['AdminPartitionArgs', 'AdminPartition']
@@ -110,7 +115,9 @@ class AdminPartition(pulumi.CustomResource):
110
115
  import pulumi
111
116
  import pulumi_consul as consul
112
117
 
113
- na_west = consul.AdminPartition("naWest", description="Partition for North America West")
118
+ na_west = consul.AdminPartition("na_west",
119
+ name="na-west",
120
+ description="Partition for North America West")
114
121
  ```
115
122
 
116
123
  ## Import
@@ -118,7 +125,7 @@ class AdminPartition(pulumi.CustomResource):
118
125
  `consul_admin_partition` can be imported:
119
126
 
120
127
  ```sh
121
- $ pulumi import consul:index/adminPartition:AdminPartition na_west na-west
128
+ $ pulumi import consul:index/adminPartition:AdminPartition na_west na-west
122
129
  ```
123
130
 
124
131
  :param str resource_name: The name of the resource.
@@ -143,7 +150,9 @@ class AdminPartition(pulumi.CustomResource):
143
150
  import pulumi
144
151
  import pulumi_consul as consul
145
152
 
146
- na_west = consul.AdminPartition("naWest", description="Partition for North America West")
153
+ na_west = consul.AdminPartition("na_west",
154
+ name="na-west",
155
+ description="Partition for North America West")
147
156
  ```
148
157
 
149
158
  ## Import
@@ -151,7 +160,7 @@ class AdminPartition(pulumi.CustomResource):
151
160
  `consul_admin_partition` can be imported:
152
161
 
153
162
  ```sh
154
- $ pulumi import consul:index/adminPartition:AdminPartition na_west na-west
163
+ $ pulumi import consul:index/adminPartition:AdminPartition na_west na-west
155
164
  ```
156
165
 
157
166
  :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__ = ['AgentServiceArgs', 'AgentService']
@@ -190,6 +195,7 @@ class AgentService(pulumi.CustomResource):
190
195
 
191
196
  app = consul.AgentService("app",
192
197
  address="www.google.com",
198
+ name="google",
193
199
  port=80,
194
200
  tags=[
195
201
  "tag0",
@@ -229,6 +235,7 @@ class AgentService(pulumi.CustomResource):
229
235
 
230
236
  app = consul.AgentService("app",
231
237
  address="www.google.com",
238
+ name="google",
232
239
  port=80,
233
240
  tags=[
234
241
  "tag0",
@@ -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__ = ['AutopilotConfigArgs', 'AutopilotConfig']
@@ -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 *
@@ -101,15 +106,12 @@ Please use the token argument in the provider configuration""")
101
106
 
102
107
  @property
103
108
  @pulumi.getter
109
+ @_utilities.deprecated("""The token argument has been deprecated and will be removed in a future release.
110
+ Please use the token argument in the provider configuration""")
104
111
  def token(self) -> Optional[pulumi.Input[str]]:
105
112
  """
106
113
  ACL token.
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,15 +209,12 @@ 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
  ACL token.
213
217
  """
214
- warnings.warn("""The token argument has been deprecated and will be removed in a future release.
215
- Please use the token argument in the provider configuration""", DeprecationWarning)
216
- pulumi.log.warn("""token is deprecated: The token argument has been deprecated and will be removed in a future release.
217
- Please use the token argument in the provider configuration""")
218
-
219
218
  return pulumi.get(self, "token")
220
219
 
221
220
  @token.setter
@@ -231,7 +230,7 @@ class CatalogEntry(pulumi.CustomResource):
231
230
  address: Optional[pulumi.Input[str]] = None,
232
231
  datacenter: Optional[pulumi.Input[str]] = None,
233
232
  node: Optional[pulumi.Input[str]] = None,
234
- services: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['CatalogEntryServiceArgs']]]]] = None,
233
+ services: Optional[pulumi.Input[Sequence[pulumi.Input[Union['CatalogEntryServiceArgs', 'CatalogEntryServiceArgsDict']]]]] = None,
235
234
  token: Optional[pulumi.Input[str]] = None,
236
235
  __props__=None):
237
236
  """
@@ -242,27 +241,6 @@ class CatalogEntry(pulumi.CustomResource):
242
241
  Registers a node or service with the [Consul Catalog](https://www.consul.io/docs/agent/http/catalog.html#catalog_register).
243
242
  Currently, defining health checks is not supported.
244
243
 
245
- ## Example Usage
246
-
247
- ```python
248
- import pulumi
249
- import pulumi_consul as consul
250
-
251
- app = consul.CatalogEntry("app",
252
- address="192.168.10.10",
253
- node="foobar",
254
- services=[consul.CatalogEntryServiceArgs(
255
- address="127.0.0.1",
256
- id="redis1",
257
- name="redis",
258
- port=8000,
259
- tags=[
260
- "master",
261
- "v1",
262
- ],
263
- )])
264
- ```
265
-
266
244
  :param str resource_name: The name of the resource.
267
245
  :param pulumi.ResourceOptions opts: Options for the resource.
268
246
  :param pulumi.Input[str] address: The address of the node being added to,
@@ -271,7 +249,7 @@ class CatalogEntry(pulumi.CustomResource):
271
249
  agent's default datacenter and the datacenter in the provider setup.
272
250
  :param pulumi.Input[str] node: The name of the node being added to, or
273
251
  referenced in the catalog.
274
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['CatalogEntryServiceArgs']]]] services: A service to optionally associated with
252
+ :param pulumi.Input[Sequence[pulumi.Input[Union['CatalogEntryServiceArgs', 'CatalogEntryServiceArgsDict']]]] services: A service to optionally associated with
275
253
  the node. Supported values are documented below.
276
254
  :param pulumi.Input[str] token: ACL token.
277
255
  """
@@ -289,27 +267,6 @@ class CatalogEntry(pulumi.CustomResource):
289
267
  Registers a node or service with the [Consul Catalog](https://www.consul.io/docs/agent/http/catalog.html#catalog_register).
290
268
  Currently, defining health checks is not supported.
291
269
 
292
- ## Example Usage
293
-
294
- ```python
295
- import pulumi
296
- import pulumi_consul as consul
297
-
298
- app = consul.CatalogEntry("app",
299
- address="192.168.10.10",
300
- node="foobar",
301
- services=[consul.CatalogEntryServiceArgs(
302
- address="127.0.0.1",
303
- id="redis1",
304
- name="redis",
305
- port=8000,
306
- tags=[
307
- "master",
308
- "v1",
309
- ],
310
- )])
311
- ```
312
-
313
270
  :param str resource_name: The name of the resource.
314
271
  :param CatalogEntryArgs args: The arguments to use to populate this resource's properties.
315
272
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -328,7 +285,7 @@ class CatalogEntry(pulumi.CustomResource):
328
285
  address: Optional[pulumi.Input[str]] = None,
329
286
  datacenter: Optional[pulumi.Input[str]] = None,
330
287
  node: Optional[pulumi.Input[str]] = None,
331
- services: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['CatalogEntryServiceArgs']]]]] = None,
288
+ services: Optional[pulumi.Input[Sequence[pulumi.Input[Union['CatalogEntryServiceArgs', 'CatalogEntryServiceArgsDict']]]]] = None,
332
289
  token: Optional[pulumi.Input[str]] = None,
333
290
  __props__=None):
334
291
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
@@ -363,7 +320,7 @@ class CatalogEntry(pulumi.CustomResource):
363
320
  address: Optional[pulumi.Input[str]] = None,
364
321
  datacenter: Optional[pulumi.Input[str]] = None,
365
322
  node: Optional[pulumi.Input[str]] = None,
366
- services: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['CatalogEntryServiceArgs']]]]] = None,
323
+ services: Optional[pulumi.Input[Sequence[pulumi.Input[Union['CatalogEntryServiceArgs', 'CatalogEntryServiceArgsDict']]]]] = None,
367
324
  token: Optional[pulumi.Input[str]] = None) -> 'CatalogEntry':
368
325
  """
369
326
  Get an existing CatalogEntry resource's state with the given name, id, and optional extra
@@ -378,7 +335,7 @@ class CatalogEntry(pulumi.CustomResource):
378
335
  agent's default datacenter and the datacenter in the provider setup.
379
336
  :param pulumi.Input[str] node: The name of the node being added to, or
380
337
  referenced in the catalog.
381
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['CatalogEntryServiceArgs']]]] services: A service to optionally associated with
338
+ :param pulumi.Input[Sequence[pulumi.Input[Union['CatalogEntryServiceArgs', 'CatalogEntryServiceArgsDict']]]] services: A service to optionally associated with
382
339
  the node. Supported values are documented below.
383
340
  :param pulumi.Input[str] token: ACL token.
384
341
  """
@@ -431,14 +388,11 @@ class CatalogEntry(pulumi.CustomResource):
431
388
 
432
389
  @property
433
390
  @pulumi.getter
391
+ @_utilities.deprecated("""The token argument has been deprecated and will be removed in a future release.
392
+ Please use the token argument in the provider configuration""")
434
393
  def token(self) -> pulumi.Output[Optional[str]]:
435
394
  """
436
395
  ACL token.
437
396
  """
438
- warnings.warn("""The token argument has been deprecated and will be removed in a future release.
439
- Please use the token argument in the provider configuration""", DeprecationWarning)
440
- pulumi.log.warn("""token is deprecated: The token argument has been deprecated and will be removed in a future release.
441
- Please use the token argument in the provider configuration""")
442
-
443
397
  return pulumi.get(self, "token")
444
398
 
@@ -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__ = ['CertificateAuthorityArgs', 'CertificateAuthority']
@@ -20,10 +25,6 @@ class CertificateAuthorityArgs:
20
25
  """
21
26
  The set of arguments for constructing a CertificateAuthority resource.
22
27
  :param pulumi.Input[str] connect_provider: Specifies the CA provider type to use.
23
- :param pulumi.Input[Mapping[str, pulumi.Input[str]]] config: The raw configuration to use for the chosen provider. For more information on configuring the Connect CA providers, see
24
- [Provider Config](https://developer.hashicorp.com/consul/docs/connect/ca).
25
- :param pulumi.Input[str] config_json: The raw configuration to use for the chosen provider. For more information on configuring the Connect CA providers, see
26
- [Provider Config](https://developer.hashicorp.com/consul/docs/connect/ca).
27
28
  """
28
29
  pulumi.set(__self__, "connect_provider", connect_provider)
29
30
  if config is not None:
@@ -48,14 +49,8 @@ class CertificateAuthorityArgs:
48
49
 
49
50
  @property
50
51
  @pulumi.getter
52
+ @_utilities.deprecated("""The config attribute is deprecated, please use config_json instead.""")
51
53
  def config(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
52
- """
53
- The raw configuration to use for the chosen provider. For more information on configuring the Connect CA providers, see
54
- [Provider Config](https://developer.hashicorp.com/consul/docs/connect/ca).
55
- """
56
- warnings.warn("""The config attribute is deprecated, please use config_json instead.""", DeprecationWarning)
57
- pulumi.log.warn("""config is deprecated: The config attribute is deprecated, please use config_json instead.""")
58
-
59
54
  return pulumi.get(self, "config")
60
55
 
61
56
  @config.setter
@@ -65,10 +60,6 @@ class CertificateAuthorityArgs:
65
60
  @property
66
61
  @pulumi.getter(name="configJson")
67
62
  def config_json(self) -> Optional[pulumi.Input[str]]:
68
- """
69
- The raw configuration to use for the chosen provider. For more information on configuring the Connect CA providers, see
70
- [Provider Config](https://developer.hashicorp.com/consul/docs/connect/ca).
71
- """
72
63
  return pulumi.get(self, "config_json")
73
64
 
74
65
  @config_json.setter
@@ -84,10 +75,6 @@ class _CertificateAuthorityState:
84
75
  connect_provider: Optional[pulumi.Input[str]] = None):
85
76
  """
86
77
  Input properties used for looking up and filtering CertificateAuthority resources.
87
- :param pulumi.Input[Mapping[str, pulumi.Input[str]]] config: The raw configuration to use for the chosen provider. For more information on configuring the Connect CA providers, see
88
- [Provider Config](https://developer.hashicorp.com/consul/docs/connect/ca).
89
- :param pulumi.Input[str] config_json: The raw configuration to use for the chosen provider. For more information on configuring the Connect CA providers, see
90
- [Provider Config](https://developer.hashicorp.com/consul/docs/connect/ca).
91
78
  :param pulumi.Input[str] connect_provider: Specifies the CA provider type to use.
92
79
  """
93
80
  if config is not None:
@@ -102,14 +89,8 @@ class _CertificateAuthorityState:
102
89
 
103
90
  @property
104
91
  @pulumi.getter
92
+ @_utilities.deprecated("""The config attribute is deprecated, please use config_json instead.""")
105
93
  def config(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
106
- """
107
- The raw configuration to use for the chosen provider. For more information on configuring the Connect CA providers, see
108
- [Provider Config](https://developer.hashicorp.com/consul/docs/connect/ca).
109
- """
110
- warnings.warn("""The config attribute is deprecated, please use config_json instead.""", DeprecationWarning)
111
- pulumi.log.warn("""config is deprecated: The config attribute is deprecated, please use config_json instead.""")
112
-
113
94
  return pulumi.get(self, "config")
114
95
 
115
96
  @config.setter
@@ -119,10 +100,6 @@ class _CertificateAuthorityState:
119
100
  @property
120
101
  @pulumi.getter(name="configJson")
121
102
  def config_json(self) -> Optional[pulumi.Input[str]]:
122
- """
123
- The raw configuration to use for the chosen provider. For more information on configuring the Connect CA providers, see
124
- [Provider Config](https://developer.hashicorp.com/consul/docs/connect/ca).
125
- """
126
103
  return pulumi.get(self, "config_json")
127
104
 
128
105
  @config_json.setter
@@ -159,15 +136,11 @@ class CertificateAuthority(pulumi.CustomResource):
159
136
  ## Import
160
137
 
161
138
  ```sh
162
- $ pulumi import consul:index/certificateAuthority:CertificateAuthority connect connect-ca
139
+ $ pulumi import consul:index/certificateAuthority:CertificateAuthority connect connect-ca
163
140
  ```
164
141
 
165
142
  :param str resource_name: The name of the resource.
166
143
  :param pulumi.ResourceOptions opts: Options for the resource.
167
- :param pulumi.Input[Mapping[str, pulumi.Input[str]]] config: The raw configuration to use for the chosen provider. For more information on configuring the Connect CA providers, see
168
- [Provider Config](https://developer.hashicorp.com/consul/docs/connect/ca).
169
- :param pulumi.Input[str] config_json: The raw configuration to use for the chosen provider. For more information on configuring the Connect CA providers, see
170
- [Provider Config](https://developer.hashicorp.com/consul/docs/connect/ca).
171
144
  :param pulumi.Input[str] connect_provider: Specifies the CA provider type to use.
172
145
  """
173
146
  ...
@@ -184,7 +157,7 @@ class CertificateAuthority(pulumi.CustomResource):
184
157
  ## Import
185
158
 
186
159
  ```sh
187
- $ pulumi import consul:index/certificateAuthority:CertificateAuthority connect connect-ca
160
+ $ pulumi import consul:index/certificateAuthority:CertificateAuthority connect connect-ca
188
161
  ```
189
162
 
190
163
  :param str resource_name: The name of the resource.
@@ -239,10 +212,6 @@ class CertificateAuthority(pulumi.CustomResource):
239
212
  :param str resource_name: The unique name of the resulting resource.
240
213
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
241
214
  :param pulumi.ResourceOptions opts: Options for the resource.
242
- :param pulumi.Input[Mapping[str, pulumi.Input[str]]] config: The raw configuration to use for the chosen provider. For more information on configuring the Connect CA providers, see
243
- [Provider Config](https://developer.hashicorp.com/consul/docs/connect/ca).
244
- :param pulumi.Input[str] config_json: The raw configuration to use for the chosen provider. For more information on configuring the Connect CA providers, see
245
- [Provider Config](https://developer.hashicorp.com/consul/docs/connect/ca).
246
215
  :param pulumi.Input[str] connect_provider: Specifies the CA provider type to use.
247
216
  """
248
217
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
@@ -256,23 +225,13 @@ class CertificateAuthority(pulumi.CustomResource):
256
225
 
257
226
  @property
258
227
  @pulumi.getter
228
+ @_utilities.deprecated("""The config attribute is deprecated, please use config_json instead.""")
259
229
  def config(self) -> pulumi.Output[Optional[Mapping[str, str]]]:
260
- """
261
- The raw configuration to use for the chosen provider. For more information on configuring the Connect CA providers, see
262
- [Provider Config](https://developer.hashicorp.com/consul/docs/connect/ca).
263
- """
264
- warnings.warn("""The config attribute is deprecated, please use config_json instead.""", DeprecationWarning)
265
- pulumi.log.warn("""config is deprecated: The config attribute is deprecated, please use config_json instead.""")
266
-
267
230
  return pulumi.get(self, "config")
268
231
 
269
232
  @property
270
233
  @pulumi.getter(name="configJson")
271
234
  def config_json(self) -> pulumi.Output[Optional[str]]:
272
- """
273
- The raw configuration to use for the chosen provider. For more information on configuring the Connect CA providers, see
274
- [Provider Config](https://developer.hashicorp.com/consul/docs/connect/ca).
275
- """
276
235
  return pulumi.get(self, "config_json")
277
236
 
278
237
  @property