pulumi-consul 3.11.1__py3-none-any.whl → 3.11.3__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.
- pulumi_consul/_inputs.py +62 -26
- pulumi_consul/_utilities.py +2 -2
- pulumi_consul/acl_auth_method.py +4 -0
- pulumi_consul/acl_binding_rule.py +2 -0
- pulumi_consul/acl_policy.py +4 -4
- pulumi_consul/acl_role.py +13 -13
- pulumi_consul/acl_role_policy_attachment.py +10 -8
- pulumi_consul/acl_token.py +18 -14
- pulumi_consul/acl_token_policy_attachment.py +10 -6
- pulumi_consul/acl_token_role_attachment.py +6 -4
- pulumi_consul/admin_partition.py +8 -4
- pulumi_consul/agent_service.py +2 -0
- pulumi_consul/catalog_entry.py +0 -42
- pulumi_consul/certificate_authority.py +2 -28
- pulumi_consul/config/outputs.py +24 -0
- pulumi_consul/config_entry.py +76 -32
- pulumi_consul/config_entry_service_defaults.py +23 -23
- pulumi_consul/config_entry_service_intentions.py +27 -27
- pulumi_consul/config_entry_service_resolver.py +57 -59
- pulumi_consul/config_entry_service_router.py +21 -61
- pulumi_consul/config_entry_service_splitter.py +24 -22
- pulumi_consul/get_acl_role.py +2 -0
- pulumi_consul/get_acl_token_secret_id.py +8 -6
- pulumi_consul/get_catalog_service.py +30 -4
- pulumi_consul/get_catalog_services.py +32 -0
- pulumi_consul/get_key_prefix.py +18 -18
- pulumi_consul/get_keys.py +4 -6
- pulumi_consul/get_network_area_members.py +6 -6
- pulumi_consul/get_network_segments.py +4 -4
- pulumi_consul/get_service.py +30 -4
- pulumi_consul/get_services.py +32 -0
- pulumi_consul/intention.py +12 -12
- pulumi_consul/key_prefix.py +32 -30
- pulumi_consul/keys.py +6 -6
- pulumi_consul/license.py +4 -2
- pulumi_consul/namespace.py +8 -4
- pulumi_consul/namespace_policy_attachment.py +6 -4
- pulumi_consul/namespace_role_attachment.py +6 -4
- pulumi_consul/node.py +8 -4
- pulumi_consul/outputs.py +126 -24
- pulumi_consul/peering.py +8 -18
- pulumi_consul/prepared_query.py +65 -61
- pulumi_consul/pulumi-plugin.json +2 -1
- pulumi_consul/service.py +133 -7
- {pulumi_consul-3.11.1.dist-info → pulumi_consul-3.11.3.dist-info}/METADATA +2 -2
- pulumi_consul-3.11.3.dist-info/RECORD +70 -0
- {pulumi_consul-3.11.1.dist-info → pulumi_consul-3.11.3.dist-info}/WHEEL +1 -1
- pulumi_consul-3.11.1.dist-info/RECORD +0 -70
- {pulumi_consul-3.11.1.dist-info → pulumi_consul-3.11.3.dist-info}/top_level.txt +0 -0
pulumi_consul/acl_token.py
CHANGED
|
@@ -407,18 +407,20 @@ class AclToken(pulumi.CustomResource):
|
|
|
407
407
|
import pulumi_random as random
|
|
408
408
|
|
|
409
409
|
# Basic usage
|
|
410
|
-
agent = consul.AclPolicy("agent",
|
|
410
|
+
agent = consul.AclPolicy("agent",
|
|
411
|
+
name="agent",
|
|
412
|
+
rules=\"\"\"node_prefix "" {
|
|
411
413
|
policy = "read"
|
|
412
414
|
}
|
|
413
415
|
\"\"\")
|
|
414
|
-
|
|
416
|
+
test = consul.AclToken("test",
|
|
415
417
|
description="my test token",
|
|
416
418
|
policies=[agent.name],
|
|
417
419
|
local=True)
|
|
418
420
|
# Explicitly set the `accessor_id`
|
|
419
|
-
test_random_uuid = random.RandomUuid("
|
|
420
|
-
test_predefined_id = consul.AclToken("
|
|
421
|
-
accessor_id=
|
|
421
|
+
test_random_uuid = random.RandomUuid("test")
|
|
422
|
+
test_predefined_id = consul.AclToken("test_predefined_id",
|
|
423
|
+
accessor_id=test_uuid["result"],
|
|
422
424
|
description="my test uuid token",
|
|
423
425
|
policies=[agent.name],
|
|
424
426
|
local=True)
|
|
@@ -427,11 +429,11 @@ class AclToken(pulumi.CustomResource):
|
|
|
427
429
|
## Import
|
|
428
430
|
|
|
429
431
|
```sh
|
|
430
|
-
|
|
432
|
+
$ pulumi import consul:index/aclToken:AclToken anonymous 00000000-0000-0000-0000-000000000002
|
|
431
433
|
```
|
|
432
434
|
|
|
433
435
|
```sh
|
|
434
|
-
|
|
436
|
+
$ pulumi import consul:index/aclToken:AclToken master-token 624d94ca-bc5c-f960-4e83-0a609cf588be
|
|
435
437
|
```
|
|
436
438
|
|
|
437
439
|
:param str resource_name: The name of the resource.
|
|
@@ -463,18 +465,20 @@ class AclToken(pulumi.CustomResource):
|
|
|
463
465
|
import pulumi_random as random
|
|
464
466
|
|
|
465
467
|
# Basic usage
|
|
466
|
-
agent = consul.AclPolicy("agent",
|
|
468
|
+
agent = consul.AclPolicy("agent",
|
|
469
|
+
name="agent",
|
|
470
|
+
rules=\"\"\"node_prefix "" {
|
|
467
471
|
policy = "read"
|
|
468
472
|
}
|
|
469
473
|
\"\"\")
|
|
470
|
-
|
|
474
|
+
test = consul.AclToken("test",
|
|
471
475
|
description="my test token",
|
|
472
476
|
policies=[agent.name],
|
|
473
477
|
local=True)
|
|
474
478
|
# Explicitly set the `accessor_id`
|
|
475
|
-
test_random_uuid = random.RandomUuid("
|
|
476
|
-
test_predefined_id = consul.AclToken("
|
|
477
|
-
accessor_id=
|
|
479
|
+
test_random_uuid = random.RandomUuid("test")
|
|
480
|
+
test_predefined_id = consul.AclToken("test_predefined_id",
|
|
481
|
+
accessor_id=test_uuid["result"],
|
|
478
482
|
description="my test uuid token",
|
|
479
483
|
policies=[agent.name],
|
|
480
484
|
local=True)
|
|
@@ -483,11 +487,11 @@ class AclToken(pulumi.CustomResource):
|
|
|
483
487
|
## Import
|
|
484
488
|
|
|
485
489
|
```sh
|
|
486
|
-
|
|
490
|
+
$ pulumi import consul:index/aclToken:AclToken anonymous 00000000-0000-0000-0000-000000000002
|
|
487
491
|
```
|
|
488
492
|
|
|
489
493
|
```sh
|
|
490
|
-
|
|
494
|
+
$ pulumi import consul:index/aclToken:AclToken master-token 624d94ca-bc5c-f960-4e83-0a609cf588be
|
|
491
495
|
```
|
|
492
496
|
|
|
493
497
|
:param str resource_name: The name of the resource.
|
|
@@ -100,14 +100,16 @@ class AclTokenPolicyAttachment(pulumi.CustomResource):
|
|
|
100
100
|
"""
|
|
101
101
|
## Import
|
|
102
102
|
|
|
103
|
-
`consul_acl_token_policy_attachment` can be imported. This is especially useful to manage the
|
|
103
|
+
`consul_acl_token_policy_attachment` can be imported. This is especially useful to manage the
|
|
104
|
+
|
|
105
|
+
policies attached to the anonymous and the master tokens with Terraform:
|
|
104
106
|
|
|
105
107
|
```sh
|
|
106
|
-
|
|
108
|
+
$ pulumi import consul:index/aclTokenPolicyAttachment:AclTokenPolicyAttachment anonymous 00000000-0000-0000-0000-000000000002:policy_name
|
|
107
109
|
```
|
|
108
110
|
|
|
109
111
|
```sh
|
|
110
|
-
|
|
112
|
+
$ pulumi import consul:index/aclTokenPolicyAttachment:AclTokenPolicyAttachment master-token 624d94ca-bc5c-f960-4e83-0a609cf588be:policy_name
|
|
111
113
|
```
|
|
112
114
|
|
|
113
115
|
:param str resource_name: The name of the resource.
|
|
@@ -124,14 +126,16 @@ class AclTokenPolicyAttachment(pulumi.CustomResource):
|
|
|
124
126
|
"""
|
|
125
127
|
## Import
|
|
126
128
|
|
|
127
|
-
`consul_acl_token_policy_attachment` can be imported. This is especially useful to manage the
|
|
129
|
+
`consul_acl_token_policy_attachment` can be imported. This is especially useful to manage the
|
|
130
|
+
|
|
131
|
+
policies attached to the anonymous and the master tokens with Terraform:
|
|
128
132
|
|
|
129
133
|
```sh
|
|
130
|
-
|
|
134
|
+
$ pulumi import consul:index/aclTokenPolicyAttachment:AclTokenPolicyAttachment anonymous 00000000-0000-0000-0000-000000000002:policy_name
|
|
131
135
|
```
|
|
132
136
|
|
|
133
137
|
```sh
|
|
134
|
-
|
|
138
|
+
$ pulumi import consul:index/aclTokenPolicyAttachment:AclTokenPolicyAttachment master-token 624d94ca-bc5c-f960-4e83-0a609cf588be:policy_name
|
|
135
139
|
```
|
|
136
140
|
|
|
137
141
|
:param str resource_name: The name of the resource.
|
|
@@ -100,10 +100,11 @@ class AclTokenRoleAttachment(pulumi.CustomResource):
|
|
|
100
100
|
"""
|
|
101
101
|
## Import
|
|
102
102
|
|
|
103
|
-
`consul_acl_token_role_attachment` can be imported. This is especially useful to manage the
|
|
103
|
+
`consul_acl_token_role_attachment` can be imported. This is especially useful to manage the
|
|
104
|
+
policies attached to the anonymous and the master tokens with Terraform:
|
|
104
105
|
|
|
105
106
|
```sh
|
|
106
|
-
|
|
107
|
+
$ pulumi import consul:index/aclTokenRoleAttachment:AclTokenRoleAttachment anonymous token_id:role_id
|
|
107
108
|
```
|
|
108
109
|
|
|
109
110
|
:param str resource_name: The name of the resource.
|
|
@@ -120,10 +121,11 @@ class AclTokenRoleAttachment(pulumi.CustomResource):
|
|
|
120
121
|
"""
|
|
121
122
|
## Import
|
|
122
123
|
|
|
123
|
-
`consul_acl_token_role_attachment` can be imported. This is especially useful to manage the
|
|
124
|
+
`consul_acl_token_role_attachment` can be imported. This is especially useful to manage the
|
|
125
|
+
policies attached to the anonymous and the master tokens with Terraform:
|
|
124
126
|
|
|
125
127
|
```sh
|
|
126
|
-
|
|
128
|
+
$ pulumi import consul:index/aclTokenRoleAttachment:AclTokenRoleAttachment anonymous token_id:role_id
|
|
127
129
|
```
|
|
128
130
|
|
|
129
131
|
:param str resource_name: The name of the resource.
|
pulumi_consul/admin_partition.py
CHANGED
|
@@ -110,7 +110,9 @@ class AdminPartition(pulumi.CustomResource):
|
|
|
110
110
|
import pulumi
|
|
111
111
|
import pulumi_consul as consul
|
|
112
112
|
|
|
113
|
-
na_west = consul.AdminPartition("
|
|
113
|
+
na_west = consul.AdminPartition("na_west",
|
|
114
|
+
name="na-west",
|
|
115
|
+
description="Partition for North America West")
|
|
114
116
|
```
|
|
115
117
|
|
|
116
118
|
## Import
|
|
@@ -118,7 +120,7 @@ class AdminPartition(pulumi.CustomResource):
|
|
|
118
120
|
`consul_admin_partition` can be imported:
|
|
119
121
|
|
|
120
122
|
```sh
|
|
121
|
-
|
|
123
|
+
$ pulumi import consul:index/adminPartition:AdminPartition na_west na-west
|
|
122
124
|
```
|
|
123
125
|
|
|
124
126
|
:param str resource_name: The name of the resource.
|
|
@@ -143,7 +145,9 @@ class AdminPartition(pulumi.CustomResource):
|
|
|
143
145
|
import pulumi
|
|
144
146
|
import pulumi_consul as consul
|
|
145
147
|
|
|
146
|
-
na_west = consul.AdminPartition("
|
|
148
|
+
na_west = consul.AdminPartition("na_west",
|
|
149
|
+
name="na-west",
|
|
150
|
+
description="Partition for North America West")
|
|
147
151
|
```
|
|
148
152
|
|
|
149
153
|
## Import
|
|
@@ -151,7 +155,7 @@ class AdminPartition(pulumi.CustomResource):
|
|
|
151
155
|
`consul_admin_partition` can be imported:
|
|
152
156
|
|
|
153
157
|
```sh
|
|
154
|
-
|
|
158
|
+
$ pulumi import consul:index/adminPartition:AdminPartition na_west na-west
|
|
155
159
|
```
|
|
156
160
|
|
|
157
161
|
:param str resource_name: The name of the resource.
|
pulumi_consul/agent_service.py
CHANGED
|
@@ -190,6 +190,7 @@ class AgentService(pulumi.CustomResource):
|
|
|
190
190
|
|
|
191
191
|
app = consul.AgentService("app",
|
|
192
192
|
address="www.google.com",
|
|
193
|
+
name="google",
|
|
193
194
|
port=80,
|
|
194
195
|
tags=[
|
|
195
196
|
"tag0",
|
|
@@ -229,6 +230,7 @@ class AgentService(pulumi.CustomResource):
|
|
|
229
230
|
|
|
230
231
|
app = consul.AgentService("app",
|
|
231
232
|
address="www.google.com",
|
|
233
|
+
name="google",
|
|
232
234
|
port=80,
|
|
233
235
|
tags=[
|
|
234
236
|
"tag0",
|
pulumi_consul/catalog_entry.py
CHANGED
|
@@ -242,27 +242,6 @@ class CatalogEntry(pulumi.CustomResource):
|
|
|
242
242
|
Registers a node or service with the [Consul Catalog](https://www.consul.io/docs/agent/http/catalog.html#catalog_register).
|
|
243
243
|
Currently, defining health checks is not supported.
|
|
244
244
|
|
|
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
245
|
:param str resource_name: The name of the resource.
|
|
267
246
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
268
247
|
:param pulumi.Input[str] address: The address of the node being added to,
|
|
@@ -289,27 +268,6 @@ class CatalogEntry(pulumi.CustomResource):
|
|
|
289
268
|
Registers a node or service with the [Consul Catalog](https://www.consul.io/docs/agent/http/catalog.html#catalog_register).
|
|
290
269
|
Currently, defining health checks is not supported.
|
|
291
270
|
|
|
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
271
|
:param str resource_name: The name of the resource.
|
|
314
272
|
:param CatalogEntryArgs args: The arguments to use to populate this resource's properties.
|
|
315
273
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
@@ -20,8 +20,6 @@ class CertificateAuthorityArgs:
|
|
|
20
20
|
"""
|
|
21
21
|
The set of arguments for constructing a CertificateAuthority resource.
|
|
22
22
|
: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 [Provider Config](https://developer.hashicorp.com/consul/docs/connect/ca).
|
|
24
|
-
: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 [Provider Config](https://developer.hashicorp.com/consul/docs/connect/ca).
|
|
25
23
|
"""
|
|
26
24
|
pulumi.set(__self__, "connect_provider", connect_provider)
|
|
27
25
|
if config is not None:
|
|
@@ -47,9 +45,6 @@ class CertificateAuthorityArgs:
|
|
|
47
45
|
@property
|
|
48
46
|
@pulumi.getter
|
|
49
47
|
def config(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
|
50
|
-
"""
|
|
51
|
-
The raw configuration to use for the chosen provider. For more information on configuring the Connect CA providers, see [Provider Config](https://developer.hashicorp.com/consul/docs/connect/ca).
|
|
52
|
-
"""
|
|
53
48
|
warnings.warn("""The config attribute is deprecated, please use config_json instead.""", DeprecationWarning)
|
|
54
49
|
pulumi.log.warn("""config is deprecated: The config attribute is deprecated, please use config_json instead.""")
|
|
55
50
|
|
|
@@ -62,9 +57,6 @@ class CertificateAuthorityArgs:
|
|
|
62
57
|
@property
|
|
63
58
|
@pulumi.getter(name="configJson")
|
|
64
59
|
def config_json(self) -> Optional[pulumi.Input[str]]:
|
|
65
|
-
"""
|
|
66
|
-
The raw configuration to use for the chosen provider. For more information on configuring the Connect CA providers, see [Provider Config](https://developer.hashicorp.com/consul/docs/connect/ca).
|
|
67
|
-
"""
|
|
68
60
|
return pulumi.get(self, "config_json")
|
|
69
61
|
|
|
70
62
|
@config_json.setter
|
|
@@ -80,8 +72,6 @@ class _CertificateAuthorityState:
|
|
|
80
72
|
connect_provider: Optional[pulumi.Input[str]] = None):
|
|
81
73
|
"""
|
|
82
74
|
Input properties used for looking up and filtering CertificateAuthority resources.
|
|
83
|
-
: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 [Provider Config](https://developer.hashicorp.com/consul/docs/connect/ca).
|
|
84
|
-
: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 [Provider Config](https://developer.hashicorp.com/consul/docs/connect/ca).
|
|
85
75
|
:param pulumi.Input[str] connect_provider: Specifies the CA provider type to use.
|
|
86
76
|
"""
|
|
87
77
|
if config is not None:
|
|
@@ -97,9 +87,6 @@ class _CertificateAuthorityState:
|
|
|
97
87
|
@property
|
|
98
88
|
@pulumi.getter
|
|
99
89
|
def config(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
|
100
|
-
"""
|
|
101
|
-
The raw configuration to use for the chosen provider. For more information on configuring the Connect CA providers, see [Provider Config](https://developer.hashicorp.com/consul/docs/connect/ca).
|
|
102
|
-
"""
|
|
103
90
|
warnings.warn("""The config attribute is deprecated, please use config_json instead.""", DeprecationWarning)
|
|
104
91
|
pulumi.log.warn("""config is deprecated: The config attribute is deprecated, please use config_json instead.""")
|
|
105
92
|
|
|
@@ -112,9 +99,6 @@ class _CertificateAuthorityState:
|
|
|
112
99
|
@property
|
|
113
100
|
@pulumi.getter(name="configJson")
|
|
114
101
|
def config_json(self) -> Optional[pulumi.Input[str]]:
|
|
115
|
-
"""
|
|
116
|
-
The raw configuration to use for the chosen provider. For more information on configuring the Connect CA providers, see [Provider Config](https://developer.hashicorp.com/consul/docs/connect/ca).
|
|
117
|
-
"""
|
|
118
102
|
return pulumi.get(self, "config_json")
|
|
119
103
|
|
|
120
104
|
@config_json.setter
|
|
@@ -151,13 +135,11 @@ class CertificateAuthority(pulumi.CustomResource):
|
|
|
151
135
|
## Import
|
|
152
136
|
|
|
153
137
|
```sh
|
|
154
|
-
|
|
138
|
+
$ pulumi import consul:index/certificateAuthority:CertificateAuthority connect connect-ca
|
|
155
139
|
```
|
|
156
140
|
|
|
157
141
|
:param str resource_name: The name of the resource.
|
|
158
142
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
159
|
-
: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 [Provider Config](https://developer.hashicorp.com/consul/docs/connect/ca).
|
|
160
|
-
: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 [Provider Config](https://developer.hashicorp.com/consul/docs/connect/ca).
|
|
161
143
|
:param pulumi.Input[str] connect_provider: Specifies the CA provider type to use.
|
|
162
144
|
"""
|
|
163
145
|
...
|
|
@@ -174,7 +156,7 @@ class CertificateAuthority(pulumi.CustomResource):
|
|
|
174
156
|
## Import
|
|
175
157
|
|
|
176
158
|
```sh
|
|
177
|
-
|
|
159
|
+
$ pulumi import consul:index/certificateAuthority:CertificateAuthority connect connect-ca
|
|
178
160
|
```
|
|
179
161
|
|
|
180
162
|
:param str resource_name: The name of the resource.
|
|
@@ -229,8 +211,6 @@ class CertificateAuthority(pulumi.CustomResource):
|
|
|
229
211
|
:param str resource_name: The unique name of the resulting resource.
|
|
230
212
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
231
213
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
232
|
-
: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 [Provider Config](https://developer.hashicorp.com/consul/docs/connect/ca).
|
|
233
|
-
: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 [Provider Config](https://developer.hashicorp.com/consul/docs/connect/ca).
|
|
234
214
|
:param pulumi.Input[str] connect_provider: Specifies the CA provider type to use.
|
|
235
215
|
"""
|
|
236
216
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
@@ -245,9 +225,6 @@ class CertificateAuthority(pulumi.CustomResource):
|
|
|
245
225
|
@property
|
|
246
226
|
@pulumi.getter
|
|
247
227
|
def config(self) -> pulumi.Output[Optional[Mapping[str, str]]]:
|
|
248
|
-
"""
|
|
249
|
-
The raw configuration to use for the chosen provider. For more information on configuring the Connect CA providers, see [Provider Config](https://developer.hashicorp.com/consul/docs/connect/ca).
|
|
250
|
-
"""
|
|
251
228
|
warnings.warn("""The config attribute is deprecated, please use config_json instead.""", DeprecationWarning)
|
|
252
229
|
pulumi.log.warn("""config is deprecated: The config attribute is deprecated, please use config_json instead.""")
|
|
253
230
|
|
|
@@ -256,9 +233,6 @@ class CertificateAuthority(pulumi.CustomResource):
|
|
|
256
233
|
@property
|
|
257
234
|
@pulumi.getter(name="configJson")
|
|
258
235
|
def config_json(self) -> pulumi.Output[Optional[str]]:
|
|
259
|
-
"""
|
|
260
|
-
The raw configuration to use for the chosen provider. For more information on configuring the Connect CA providers, see [Provider Config](https://developer.hashicorp.com/consul/docs/connect/ca).
|
|
261
|
-
"""
|
|
262
236
|
return pulumi.get(self, "config_json")
|
|
263
237
|
|
|
264
238
|
@property
|
pulumi_consul/config/outputs.py
CHANGED
|
@@ -21,6 +21,11 @@ class AuthJwt(dict):
|
|
|
21
21
|
bearer_token: Optional[str] = None,
|
|
22
22
|
meta: Optional[Mapping[str, str]] = None,
|
|
23
23
|
use_terraform_cloud_workload_identity: Optional[bool] = None):
|
|
24
|
+
"""
|
|
25
|
+
:param str auth_method: The name of the auth method to use for login.
|
|
26
|
+
:param str bearer_token: The bearer token to present to the auth method during login for authentication purposes. For the Kubernetes auth method this is a [Service Account Token (JWT)](https://kubernetes.io/docs/reference/access-authn-authz/authentication/#service-account-tokens).
|
|
27
|
+
:param Mapping[str, str] meta: Specifies arbitrary KV metadata linked to the token. Can be useful to track origins.
|
|
28
|
+
"""
|
|
24
29
|
pulumi.set(__self__, "auth_method", auth_method)
|
|
25
30
|
if bearer_token is not None:
|
|
26
31
|
pulumi.set(__self__, "bearer_token", bearer_token)
|
|
@@ -32,16 +37,25 @@ class AuthJwt(dict):
|
|
|
32
37
|
@property
|
|
33
38
|
@pulumi.getter(name="authMethod")
|
|
34
39
|
def auth_method(self) -> str:
|
|
40
|
+
"""
|
|
41
|
+
The name of the auth method to use for login.
|
|
42
|
+
"""
|
|
35
43
|
return pulumi.get(self, "auth_method")
|
|
36
44
|
|
|
37
45
|
@property
|
|
38
46
|
@pulumi.getter(name="bearerToken")
|
|
39
47
|
def bearer_token(self) -> Optional[str]:
|
|
48
|
+
"""
|
|
49
|
+
The bearer token to present to the auth method during login for authentication purposes. For the Kubernetes auth method this is a [Service Account Token (JWT)](https://kubernetes.io/docs/reference/access-authn-authz/authentication/#service-account-tokens).
|
|
50
|
+
"""
|
|
40
51
|
return pulumi.get(self, "bearer_token")
|
|
41
52
|
|
|
42
53
|
@property
|
|
43
54
|
@pulumi.getter
|
|
44
55
|
def meta(self) -> Optional[Mapping[str, str]]:
|
|
56
|
+
"""
|
|
57
|
+
Specifies arbitrary KV metadata linked to the token. Can be useful to track origins.
|
|
58
|
+
"""
|
|
45
59
|
return pulumi.get(self, "meta")
|
|
46
60
|
|
|
47
61
|
@property
|
|
@@ -55,17 +69,27 @@ class Headers(dict):
|
|
|
55
69
|
def __init__(__self__, *,
|
|
56
70
|
name: str,
|
|
57
71
|
value: str):
|
|
72
|
+
"""
|
|
73
|
+
:param str name: The name of the header.
|
|
74
|
+
:param str value: The value of the header.
|
|
75
|
+
"""
|
|
58
76
|
pulumi.set(__self__, "name", name)
|
|
59
77
|
pulumi.set(__self__, "value", value)
|
|
60
78
|
|
|
61
79
|
@property
|
|
62
80
|
@pulumi.getter
|
|
63
81
|
def name(self) -> str:
|
|
82
|
+
"""
|
|
83
|
+
The name of the header.
|
|
84
|
+
"""
|
|
64
85
|
return pulumi.get(self, "name")
|
|
65
86
|
|
|
66
87
|
@property
|
|
67
88
|
@pulumi.getter
|
|
68
89
|
def value(self) -> str:
|
|
90
|
+
"""
|
|
91
|
+
The value of the header.
|
|
92
|
+
"""
|
|
69
93
|
return pulumi.get(self, "value")
|
|
70
94
|
|
|
71
95
|
|