pulumi-consul 3.12.0a1713331566__py3-none-any.whl → 3.12.0a1713897703__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 +22 -22
- pulumi_consul/acl_auth_method.py +4 -8
- pulumi_consul/acl_binding_rule.py +2 -4
- pulumi_consul/acl_policy.py +2 -6
- pulumi_consul/acl_role.py +11 -11
- pulumi_consul/acl_role_policy_attachment.py +8 -10
- pulumi_consul/acl_token.py +14 -14
- pulumi_consul/admin_partition.py +6 -6
- pulumi_consul/agent_service.py +2 -4
- pulumi_consul/autopilot_config.py +0 -4
- pulumi_consul/catalog_entry.py +0 -46
- pulumi_consul/config_entry.py +52 -46
- pulumi_consul/config_entry_service_defaults.py +21 -21
- 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 +22 -20
- pulumi_consul/get_acl_auth_method.py +0 -4
- pulumi_consul/get_acl_policy.py +0 -4
- pulumi_consul/get_acl_role.py +2 -4
- pulumi_consul/get_acl_token.py +0 -4
- pulumi_consul/get_acl_token_secret_id.py +8 -10
- pulumi_consul/get_agent_config.py +0 -4
- pulumi_consul/get_autopilot_health.py +0 -4
- pulumi_consul/get_catalog_service.py +30 -4
- pulumi_consul/get_catalog_services.py +32 -0
- pulumi_consul/get_key_prefix.py +18 -26
- pulumi_consul/get_keys.py +4 -10
- pulumi_consul/get_network_area_members.py +6 -10
- pulumi_consul/get_network_segments.py +4 -8
- pulumi_consul/get_peering.py +0 -4
- pulumi_consul/get_peerings.py +0 -4
- pulumi_consul/get_service.py +30 -4
- pulumi_consul/get_services.py +32 -0
- pulumi_consul/intention.py +10 -18
- pulumi_consul/key_prefix.py +26 -30
- pulumi_consul/keys.py +6 -10
- pulumi_consul/license.py +4 -6
- pulumi_consul/namespace.py +2 -4
- pulumi_consul/network_area.py +0 -4
- pulumi_consul/node.py +6 -6
- pulumi_consul/outputs.py +22 -22
- pulumi_consul/peering.py +8 -22
- pulumi_consul/peering_token.py +0 -4
- pulumi_consul/prepared_query.py +63 -63
- pulumi_consul/service.py +79 -17
- {pulumi_consul-3.12.0a1713331566.dist-info → pulumi_consul-3.12.0a1713897703.dist-info}/METADATA +1 -1
- pulumi_consul-3.12.0a1713897703.dist-info/RECORD +70 -0
- pulumi_consul-3.12.0a1713331566.dist-info/RECORD +0 -70
- {pulumi_consul-3.12.0a1713331566.dist-info → pulumi_consul-3.12.0a1713897703.dist-info}/WHEEL +0 -0
- {pulumi_consul-3.12.0a1713331566.dist-info → pulumi_consul-3.12.0a1713897703.dist-info}/top_level.txt +0 -0
|
@@ -26,9 +26,9 @@ class ConfigEntryServiceIntentionsArgs:
|
|
|
26
26
|
The set of arguments for constructing a ConfigEntryServiceIntentions resource.
|
|
27
27
|
:param pulumi.Input[Sequence[pulumi.Input['ConfigEntryServiceIntentionsJwtArgs']]] jwts: Specifies a JSON Web Token provider configured in a JWT provider configuration entry, as well as additional configurations for verifying a service's JWT before authorizing communication between services
|
|
28
28
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] meta: Specifies key-value pairs to add to the KV store.
|
|
29
|
-
:param pulumi.Input[str] name: Specifies
|
|
30
|
-
:param pulumi.Input[str] namespace: Specifies the
|
|
31
|
-
:param pulumi.Input[str] partition: Specifies the
|
|
29
|
+
:param pulumi.Input[str] name: Specifies a name of the destination service for all intentions defined in the configuration entry.
|
|
30
|
+
:param pulumi.Input[str] namespace: Specifies the namespace to apply the configuration entry.
|
|
31
|
+
:param pulumi.Input[str] partition: Specifies the admin partition to apply the configuration entry.
|
|
32
32
|
:param pulumi.Input[Sequence[pulumi.Input['ConfigEntryServiceIntentionsSourceArgs']]] sources: List of configurations that define intention sources and the authorization granted to the sources.
|
|
33
33
|
"""
|
|
34
34
|
if jwts is not None:
|
|
@@ -72,7 +72,7 @@ class ConfigEntryServiceIntentionsArgs:
|
|
|
72
72
|
@pulumi.getter
|
|
73
73
|
def name(self) -> Optional[pulumi.Input[str]]:
|
|
74
74
|
"""
|
|
75
|
-
Specifies
|
|
75
|
+
Specifies a name of the destination service for all intentions defined in the configuration entry.
|
|
76
76
|
"""
|
|
77
77
|
return pulumi.get(self, "name")
|
|
78
78
|
|
|
@@ -84,7 +84,7 @@ class ConfigEntryServiceIntentionsArgs:
|
|
|
84
84
|
@pulumi.getter
|
|
85
85
|
def namespace(self) -> Optional[pulumi.Input[str]]:
|
|
86
86
|
"""
|
|
87
|
-
Specifies the
|
|
87
|
+
Specifies the namespace to apply the configuration entry.
|
|
88
88
|
"""
|
|
89
89
|
return pulumi.get(self, "namespace")
|
|
90
90
|
|
|
@@ -96,7 +96,7 @@ class ConfigEntryServiceIntentionsArgs:
|
|
|
96
96
|
@pulumi.getter
|
|
97
97
|
def partition(self) -> Optional[pulumi.Input[str]]:
|
|
98
98
|
"""
|
|
99
|
-
Specifies the
|
|
99
|
+
Specifies the admin partition to apply the configuration entry.
|
|
100
100
|
"""
|
|
101
101
|
return pulumi.get(self, "partition")
|
|
102
102
|
|
|
@@ -130,9 +130,9 @@ class _ConfigEntryServiceIntentionsState:
|
|
|
130
130
|
Input properties used for looking up and filtering ConfigEntryServiceIntentions resources.
|
|
131
131
|
:param pulumi.Input[Sequence[pulumi.Input['ConfigEntryServiceIntentionsJwtArgs']]] jwts: Specifies a JSON Web Token provider configured in a JWT provider configuration entry, as well as additional configurations for verifying a service's JWT before authorizing communication between services
|
|
132
132
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] meta: Specifies key-value pairs to add to the KV store.
|
|
133
|
-
:param pulumi.Input[str] name: Specifies
|
|
134
|
-
:param pulumi.Input[str] namespace: Specifies the
|
|
135
|
-
:param pulumi.Input[str] partition: Specifies the
|
|
133
|
+
:param pulumi.Input[str] name: Specifies a name of the destination service for all intentions defined in the configuration entry.
|
|
134
|
+
:param pulumi.Input[str] namespace: Specifies the namespace to apply the configuration entry.
|
|
135
|
+
:param pulumi.Input[str] partition: Specifies the admin partition to apply the configuration entry.
|
|
136
136
|
:param pulumi.Input[Sequence[pulumi.Input['ConfigEntryServiceIntentionsSourceArgs']]] sources: List of configurations that define intention sources and the authorization granted to the sources.
|
|
137
137
|
"""
|
|
138
138
|
if jwts is not None:
|
|
@@ -176,7 +176,7 @@ class _ConfigEntryServiceIntentionsState:
|
|
|
176
176
|
@pulumi.getter
|
|
177
177
|
def name(self) -> Optional[pulumi.Input[str]]:
|
|
178
178
|
"""
|
|
179
|
-
Specifies
|
|
179
|
+
Specifies a name of the destination service for all intentions defined in the configuration entry.
|
|
180
180
|
"""
|
|
181
181
|
return pulumi.get(self, "name")
|
|
182
182
|
|
|
@@ -188,7 +188,7 @@ class _ConfigEntryServiceIntentionsState:
|
|
|
188
188
|
@pulumi.getter
|
|
189
189
|
def namespace(self) -> Optional[pulumi.Input[str]]:
|
|
190
190
|
"""
|
|
191
|
-
Specifies the
|
|
191
|
+
Specifies the namespace to apply the configuration entry.
|
|
192
192
|
"""
|
|
193
193
|
return pulumi.get(self, "namespace")
|
|
194
194
|
|
|
@@ -200,7 +200,7 @@ class _ConfigEntryServiceIntentionsState:
|
|
|
200
200
|
@pulumi.getter
|
|
201
201
|
def partition(self) -> Optional[pulumi.Input[str]]:
|
|
202
202
|
"""
|
|
203
|
-
Specifies the
|
|
203
|
+
Specifies the admin partition to apply the configuration entry.
|
|
204
204
|
"""
|
|
205
205
|
return pulumi.get(self, "partition")
|
|
206
206
|
|
|
@@ -236,13 +236,13 @@ class ConfigEntryServiceIntentions(pulumi.CustomResource):
|
|
|
236
236
|
"""
|
|
237
237
|
## Example Usage
|
|
238
238
|
|
|
239
|
-
<!--Start PulumiCodeChooser -->
|
|
240
239
|
```python
|
|
241
240
|
import pulumi
|
|
242
241
|
import json
|
|
243
242
|
import pulumi_consul as consul
|
|
244
243
|
|
|
245
|
-
jwt_provider = consul.ConfigEntry("
|
|
244
|
+
jwt_provider = consul.ConfigEntry("jwt_provider",
|
|
245
|
+
name="okta",
|
|
246
246
|
kind="jwt-provider",
|
|
247
247
|
config_json=json.dumps({
|
|
248
248
|
"ClockSkewSeconds": 30,
|
|
@@ -255,6 +255,7 @@ class ConfigEntryServiceIntentions(pulumi.CustomResource):
|
|
|
255
255
|
},
|
|
256
256
|
}))
|
|
257
257
|
web = consul.ConfigEntryServiceIntentions("web",
|
|
258
|
+
name="web",
|
|
258
259
|
jwts=[consul.ConfigEntryServiceIntentionsJwtArgs(
|
|
259
260
|
providers=[consul.ConfigEntryServiceIntentionsJwtProviderArgs(
|
|
260
261
|
name=jwt_provider.name,
|
|
@@ -280,15 +281,14 @@ class ConfigEntryServiceIntentions(pulumi.CustomResource):
|
|
|
280
281
|
),
|
|
281
282
|
])
|
|
282
283
|
```
|
|
283
|
-
<!--End PulumiCodeChooser -->
|
|
284
284
|
|
|
285
285
|
:param str resource_name: The name of the resource.
|
|
286
286
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
287
287
|
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ConfigEntryServiceIntentionsJwtArgs']]]] jwts: Specifies a JSON Web Token provider configured in a JWT provider configuration entry, as well as additional configurations for verifying a service's JWT before authorizing communication between services
|
|
288
288
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] meta: Specifies key-value pairs to add to the KV store.
|
|
289
|
-
:param pulumi.Input[str] name: Specifies
|
|
290
|
-
:param pulumi.Input[str] namespace: Specifies the
|
|
291
|
-
:param pulumi.Input[str] partition: Specifies the
|
|
289
|
+
:param pulumi.Input[str] name: Specifies a name of the destination service for all intentions defined in the configuration entry.
|
|
290
|
+
:param pulumi.Input[str] namespace: Specifies the namespace to apply the configuration entry.
|
|
291
|
+
:param pulumi.Input[str] partition: Specifies the admin partition to apply the configuration entry.
|
|
292
292
|
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ConfigEntryServiceIntentionsSourceArgs']]]] sources: List of configurations that define intention sources and the authorization granted to the sources.
|
|
293
293
|
"""
|
|
294
294
|
...
|
|
@@ -300,13 +300,13 @@ class ConfigEntryServiceIntentions(pulumi.CustomResource):
|
|
|
300
300
|
"""
|
|
301
301
|
## Example Usage
|
|
302
302
|
|
|
303
|
-
<!--Start PulumiCodeChooser -->
|
|
304
303
|
```python
|
|
305
304
|
import pulumi
|
|
306
305
|
import json
|
|
307
306
|
import pulumi_consul as consul
|
|
308
307
|
|
|
309
|
-
jwt_provider = consul.ConfigEntry("
|
|
308
|
+
jwt_provider = consul.ConfigEntry("jwt_provider",
|
|
309
|
+
name="okta",
|
|
310
310
|
kind="jwt-provider",
|
|
311
311
|
config_json=json.dumps({
|
|
312
312
|
"ClockSkewSeconds": 30,
|
|
@@ -319,6 +319,7 @@ class ConfigEntryServiceIntentions(pulumi.CustomResource):
|
|
|
319
319
|
},
|
|
320
320
|
}))
|
|
321
321
|
web = consul.ConfigEntryServiceIntentions("web",
|
|
322
|
+
name="web",
|
|
322
323
|
jwts=[consul.ConfigEntryServiceIntentionsJwtArgs(
|
|
323
324
|
providers=[consul.ConfigEntryServiceIntentionsJwtProviderArgs(
|
|
324
325
|
name=jwt_provider.name,
|
|
@@ -344,7 +345,6 @@ class ConfigEntryServiceIntentions(pulumi.CustomResource):
|
|
|
344
345
|
),
|
|
345
346
|
])
|
|
346
347
|
```
|
|
347
|
-
<!--End PulumiCodeChooser -->
|
|
348
348
|
|
|
349
349
|
:param str resource_name: The name of the resource.
|
|
350
350
|
:param ConfigEntryServiceIntentionsArgs args: The arguments to use to populate this resource's properties.
|
|
@@ -407,9 +407,9 @@ class ConfigEntryServiceIntentions(pulumi.CustomResource):
|
|
|
407
407
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
408
408
|
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ConfigEntryServiceIntentionsJwtArgs']]]] jwts: Specifies a JSON Web Token provider configured in a JWT provider configuration entry, as well as additional configurations for verifying a service's JWT before authorizing communication between services
|
|
409
409
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] meta: Specifies key-value pairs to add to the KV store.
|
|
410
|
-
:param pulumi.Input[str] name: Specifies
|
|
411
|
-
:param pulumi.Input[str] namespace: Specifies the
|
|
412
|
-
:param pulumi.Input[str] partition: Specifies the
|
|
410
|
+
:param pulumi.Input[str] name: Specifies a name of the destination service for all intentions defined in the configuration entry.
|
|
411
|
+
:param pulumi.Input[str] namespace: Specifies the namespace to apply the configuration entry.
|
|
412
|
+
:param pulumi.Input[str] partition: Specifies the admin partition to apply the configuration entry.
|
|
413
413
|
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ConfigEntryServiceIntentionsSourceArgs']]]] sources: List of configurations that define intention sources and the authorization granted to the sources.
|
|
414
414
|
"""
|
|
415
415
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
@@ -444,7 +444,7 @@ class ConfigEntryServiceIntentions(pulumi.CustomResource):
|
|
|
444
444
|
@pulumi.getter
|
|
445
445
|
def name(self) -> pulumi.Output[str]:
|
|
446
446
|
"""
|
|
447
|
-
Specifies
|
|
447
|
+
Specifies a name of the destination service for all intentions defined in the configuration entry.
|
|
448
448
|
"""
|
|
449
449
|
return pulumi.get(self, "name")
|
|
450
450
|
|
|
@@ -452,7 +452,7 @@ class ConfigEntryServiceIntentions(pulumi.CustomResource):
|
|
|
452
452
|
@pulumi.getter
|
|
453
453
|
def namespace(self) -> pulumi.Output[Optional[str]]:
|
|
454
454
|
"""
|
|
455
|
-
Specifies the
|
|
455
|
+
Specifies the namespace to apply the configuration entry.
|
|
456
456
|
"""
|
|
457
457
|
return pulumi.get(self, "namespace")
|
|
458
458
|
|
|
@@ -460,7 +460,7 @@ class ConfigEntryServiceIntentions(pulumi.CustomResource):
|
|
|
460
460
|
@pulumi.getter
|
|
461
461
|
def partition(self) -> pulumi.Output[Optional[str]]:
|
|
462
462
|
"""
|
|
463
|
-
Specifies the
|
|
463
|
+
Specifies the admin partition to apply the configuration entry.
|
|
464
464
|
"""
|
|
465
465
|
return pulumi.get(self, "partition")
|
|
466
466
|
|
|
@@ -34,9 +34,9 @@ class ConfigEntryServiceResolverArgs:
|
|
|
34
34
|
:param pulumi.Input[Sequence[pulumi.Input['ConfigEntryServiceResolverFailoverArgs']]] failovers: Specifies controls for rerouting traffic to an alternate pool of service instances if the target service fails.
|
|
35
35
|
:param pulumi.Input[Sequence[pulumi.Input['ConfigEntryServiceResolverLoadBalancerArgs']]] load_balancers: Specifies the load balancing policy and configuration for services issuing requests to this upstream.
|
|
36
36
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] meta: Specifies key-value pairs to add to the KV store.
|
|
37
|
-
:param pulumi.Input[str] name:
|
|
38
|
-
:param pulumi.Input[str] namespace: Specifies the namespace
|
|
39
|
-
:param pulumi.Input[str] partition: Specifies the admin partition
|
|
37
|
+
:param pulumi.Input[str] name: Specifies a name for the configuration entry.
|
|
38
|
+
:param pulumi.Input[str] namespace: Specifies the namespace that the service resolver applies to.
|
|
39
|
+
:param pulumi.Input[str] partition: Specifies the admin partition that the service resolver applies to.
|
|
40
40
|
:param pulumi.Input[Sequence[pulumi.Input['ConfigEntryServiceResolverRedirectArgs']]] redirects: Specifies redirect instructions for local service traffic so that services deployed to a different network location resolve the upstream request instead.
|
|
41
41
|
:param pulumi.Input[str] request_timeout: Specifies the timeout duration for receiving an HTTP response from this service.
|
|
42
42
|
:param pulumi.Input[Sequence[pulumi.Input['ConfigEntryServiceResolverSubsetArgs']]] subsets: Specifies names for custom service subsets and the conditions under which service instances belong to each subset.
|
|
@@ -128,7 +128,7 @@ class ConfigEntryServiceResolverArgs:
|
|
|
128
128
|
@pulumi.getter
|
|
129
129
|
def name(self) -> Optional[pulumi.Input[str]]:
|
|
130
130
|
"""
|
|
131
|
-
|
|
131
|
+
Specifies a name for the configuration entry.
|
|
132
132
|
"""
|
|
133
133
|
return pulumi.get(self, "name")
|
|
134
134
|
|
|
@@ -140,7 +140,7 @@ class ConfigEntryServiceResolverArgs:
|
|
|
140
140
|
@pulumi.getter
|
|
141
141
|
def namespace(self) -> Optional[pulumi.Input[str]]:
|
|
142
142
|
"""
|
|
143
|
-
Specifies the namespace
|
|
143
|
+
Specifies the namespace that the service resolver applies to.
|
|
144
144
|
"""
|
|
145
145
|
return pulumi.get(self, "namespace")
|
|
146
146
|
|
|
@@ -152,7 +152,7 @@ class ConfigEntryServiceResolverArgs:
|
|
|
152
152
|
@pulumi.getter
|
|
153
153
|
def partition(self) -> Optional[pulumi.Input[str]]:
|
|
154
154
|
"""
|
|
155
|
-
Specifies the admin partition
|
|
155
|
+
Specifies the admin partition that the service resolver applies to.
|
|
156
156
|
"""
|
|
157
157
|
return pulumi.get(self, "partition")
|
|
158
158
|
|
|
@@ -218,9 +218,9 @@ class _ConfigEntryServiceResolverState:
|
|
|
218
218
|
:param pulumi.Input[Sequence[pulumi.Input['ConfigEntryServiceResolverFailoverArgs']]] failovers: Specifies controls for rerouting traffic to an alternate pool of service instances if the target service fails.
|
|
219
219
|
:param pulumi.Input[Sequence[pulumi.Input['ConfigEntryServiceResolverLoadBalancerArgs']]] load_balancers: Specifies the load balancing policy and configuration for services issuing requests to this upstream.
|
|
220
220
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] meta: Specifies key-value pairs to add to the KV store.
|
|
221
|
-
:param pulumi.Input[str] name:
|
|
222
|
-
:param pulumi.Input[str] namespace: Specifies the namespace
|
|
223
|
-
:param pulumi.Input[str] partition: Specifies the admin partition
|
|
221
|
+
:param pulumi.Input[str] name: Specifies a name for the configuration entry.
|
|
222
|
+
:param pulumi.Input[str] namespace: Specifies the namespace that the service resolver applies to.
|
|
223
|
+
:param pulumi.Input[str] partition: Specifies the admin partition that the service resolver applies to.
|
|
224
224
|
:param pulumi.Input[Sequence[pulumi.Input['ConfigEntryServiceResolverRedirectArgs']]] redirects: Specifies redirect instructions for local service traffic so that services deployed to a different network location resolve the upstream request instead.
|
|
225
225
|
:param pulumi.Input[str] request_timeout: Specifies the timeout duration for receiving an HTTP response from this service.
|
|
226
226
|
:param pulumi.Input[Sequence[pulumi.Input['ConfigEntryServiceResolverSubsetArgs']]] subsets: Specifies names for custom service subsets and the conditions under which service instances belong to each subset.
|
|
@@ -312,7 +312,7 @@ class _ConfigEntryServiceResolverState:
|
|
|
312
312
|
@pulumi.getter
|
|
313
313
|
def name(self) -> Optional[pulumi.Input[str]]:
|
|
314
314
|
"""
|
|
315
|
-
|
|
315
|
+
Specifies a name for the configuration entry.
|
|
316
316
|
"""
|
|
317
317
|
return pulumi.get(self, "name")
|
|
318
318
|
|
|
@@ -324,7 +324,7 @@ class _ConfigEntryServiceResolverState:
|
|
|
324
324
|
@pulumi.getter
|
|
325
325
|
def namespace(self) -> Optional[pulumi.Input[str]]:
|
|
326
326
|
"""
|
|
327
|
-
Specifies the namespace
|
|
327
|
+
Specifies the namespace that the service resolver applies to.
|
|
328
328
|
"""
|
|
329
329
|
return pulumi.get(self, "namespace")
|
|
330
330
|
|
|
@@ -336,7 +336,7 @@ class _ConfigEntryServiceResolverState:
|
|
|
336
336
|
@pulumi.getter
|
|
337
337
|
def partition(self) -> Optional[pulumi.Input[str]]:
|
|
338
338
|
"""
|
|
339
|
-
Specifies the admin partition
|
|
339
|
+
Specifies the admin partition that the service resolver applies to.
|
|
340
340
|
"""
|
|
341
341
|
return pulumi.get(self, "partition")
|
|
342
342
|
|
|
@@ -401,43 +401,42 @@ class ConfigEntryServiceResolver(pulumi.CustomResource):
|
|
|
401
401
|
"""
|
|
402
402
|
## Example Usage
|
|
403
403
|
|
|
404
|
-
<!--Start PulumiCodeChooser -->
|
|
405
404
|
```python
|
|
406
405
|
import pulumi
|
|
407
406
|
import pulumi_consul as consul
|
|
408
407
|
|
|
409
408
|
web = consul.ConfigEntryServiceResolver("web",
|
|
410
|
-
|
|
409
|
+
name="web",
|
|
411
410
|
default_subset="v1",
|
|
411
|
+
connect_timeout="15s",
|
|
412
|
+
subsets=[
|
|
413
|
+
consul.ConfigEntryServiceResolverSubsetArgs(
|
|
414
|
+
name="v1",
|
|
415
|
+
filter="Service.Meta.version == v1",
|
|
416
|
+
),
|
|
417
|
+
consul.ConfigEntryServiceResolverSubsetArgs(
|
|
418
|
+
name="v2",
|
|
419
|
+
filter="Service.Meta.version == v2",
|
|
420
|
+
),
|
|
421
|
+
],
|
|
422
|
+
redirects=[consul.ConfigEntryServiceResolverRedirectArgs(
|
|
423
|
+
service="web",
|
|
424
|
+
datacenter="dc2",
|
|
425
|
+
)],
|
|
412
426
|
failovers=[
|
|
413
427
|
consul.ConfigEntryServiceResolverFailoverArgs(
|
|
414
|
-
datacenters=["dc2"],
|
|
415
428
|
subset_name="v2",
|
|
429
|
+
datacenters=["dc2"],
|
|
416
430
|
),
|
|
417
431
|
consul.ConfigEntryServiceResolverFailoverArgs(
|
|
432
|
+
subset_name="*",
|
|
418
433
|
datacenters=[
|
|
419
434
|
"dc3",
|
|
420
435
|
"dc4",
|
|
421
436
|
],
|
|
422
|
-
subset_name="*",
|
|
423
|
-
),
|
|
424
|
-
],
|
|
425
|
-
redirects=[consul.ConfigEntryServiceResolverRedirectArgs(
|
|
426
|
-
datacenter="dc2",
|
|
427
|
-
service="web",
|
|
428
|
-
)],
|
|
429
|
-
subsets=[
|
|
430
|
-
consul.ConfigEntryServiceResolverSubsetArgs(
|
|
431
|
-
filter="Service.Meta.version == v1",
|
|
432
|
-
name="v1",
|
|
433
|
-
),
|
|
434
|
-
consul.ConfigEntryServiceResolverSubsetArgs(
|
|
435
|
-
filter="Service.Meta.version == v2",
|
|
436
|
-
name="v2",
|
|
437
437
|
),
|
|
438
438
|
])
|
|
439
439
|
```
|
|
440
|
-
<!--End PulumiCodeChooser -->
|
|
441
440
|
|
|
442
441
|
:param str resource_name: The name of the resource.
|
|
443
442
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
@@ -446,9 +445,9 @@ class ConfigEntryServiceResolver(pulumi.CustomResource):
|
|
|
446
445
|
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ConfigEntryServiceResolverFailoverArgs']]]] failovers: Specifies controls for rerouting traffic to an alternate pool of service instances if the target service fails.
|
|
447
446
|
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ConfigEntryServiceResolverLoadBalancerArgs']]]] load_balancers: Specifies the load balancing policy and configuration for services issuing requests to this upstream.
|
|
448
447
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] meta: Specifies key-value pairs to add to the KV store.
|
|
449
|
-
:param pulumi.Input[str] name:
|
|
450
|
-
:param pulumi.Input[str] namespace: Specifies the namespace
|
|
451
|
-
:param pulumi.Input[str] partition: Specifies the admin partition
|
|
448
|
+
:param pulumi.Input[str] name: Specifies a name for the configuration entry.
|
|
449
|
+
:param pulumi.Input[str] namespace: Specifies the namespace that the service resolver applies to.
|
|
450
|
+
:param pulumi.Input[str] partition: Specifies the admin partition that the service resolver applies to.
|
|
452
451
|
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ConfigEntryServiceResolverRedirectArgs']]]] redirects: Specifies redirect instructions for local service traffic so that services deployed to a different network location resolve the upstream request instead.
|
|
453
452
|
:param pulumi.Input[str] request_timeout: Specifies the timeout duration for receiving an HTTP response from this service.
|
|
454
453
|
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ConfigEntryServiceResolverSubsetArgs']]]] subsets: Specifies names for custom service subsets and the conditions under which service instances belong to each subset.
|
|
@@ -462,43 +461,42 @@ class ConfigEntryServiceResolver(pulumi.CustomResource):
|
|
|
462
461
|
"""
|
|
463
462
|
## Example Usage
|
|
464
463
|
|
|
465
|
-
<!--Start PulumiCodeChooser -->
|
|
466
464
|
```python
|
|
467
465
|
import pulumi
|
|
468
466
|
import pulumi_consul as consul
|
|
469
467
|
|
|
470
468
|
web = consul.ConfigEntryServiceResolver("web",
|
|
471
|
-
|
|
469
|
+
name="web",
|
|
472
470
|
default_subset="v1",
|
|
471
|
+
connect_timeout="15s",
|
|
472
|
+
subsets=[
|
|
473
|
+
consul.ConfigEntryServiceResolverSubsetArgs(
|
|
474
|
+
name="v1",
|
|
475
|
+
filter="Service.Meta.version == v1",
|
|
476
|
+
),
|
|
477
|
+
consul.ConfigEntryServiceResolverSubsetArgs(
|
|
478
|
+
name="v2",
|
|
479
|
+
filter="Service.Meta.version == v2",
|
|
480
|
+
),
|
|
481
|
+
],
|
|
482
|
+
redirects=[consul.ConfigEntryServiceResolverRedirectArgs(
|
|
483
|
+
service="web",
|
|
484
|
+
datacenter="dc2",
|
|
485
|
+
)],
|
|
473
486
|
failovers=[
|
|
474
487
|
consul.ConfigEntryServiceResolverFailoverArgs(
|
|
475
|
-
datacenters=["dc2"],
|
|
476
488
|
subset_name="v2",
|
|
489
|
+
datacenters=["dc2"],
|
|
477
490
|
),
|
|
478
491
|
consul.ConfigEntryServiceResolverFailoverArgs(
|
|
492
|
+
subset_name="*",
|
|
479
493
|
datacenters=[
|
|
480
494
|
"dc3",
|
|
481
495
|
"dc4",
|
|
482
496
|
],
|
|
483
|
-
subset_name="*",
|
|
484
|
-
),
|
|
485
|
-
],
|
|
486
|
-
redirects=[consul.ConfigEntryServiceResolverRedirectArgs(
|
|
487
|
-
datacenter="dc2",
|
|
488
|
-
service="web",
|
|
489
|
-
)],
|
|
490
|
-
subsets=[
|
|
491
|
-
consul.ConfigEntryServiceResolverSubsetArgs(
|
|
492
|
-
filter="Service.Meta.version == v1",
|
|
493
|
-
name="v1",
|
|
494
|
-
),
|
|
495
|
-
consul.ConfigEntryServiceResolverSubsetArgs(
|
|
496
|
-
filter="Service.Meta.version == v2",
|
|
497
|
-
name="v2",
|
|
498
497
|
),
|
|
499
498
|
])
|
|
500
499
|
```
|
|
501
|
-
<!--End PulumiCodeChooser -->
|
|
502
500
|
|
|
503
501
|
:param str resource_name: The name of the resource.
|
|
504
502
|
:param ConfigEntryServiceResolverArgs args: The arguments to use to populate this resource's properties.
|
|
@@ -579,9 +577,9 @@ class ConfigEntryServiceResolver(pulumi.CustomResource):
|
|
|
579
577
|
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ConfigEntryServiceResolverFailoverArgs']]]] failovers: Specifies controls for rerouting traffic to an alternate pool of service instances if the target service fails.
|
|
580
578
|
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ConfigEntryServiceResolverLoadBalancerArgs']]]] load_balancers: Specifies the load balancing policy and configuration for services issuing requests to this upstream.
|
|
581
579
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] meta: Specifies key-value pairs to add to the KV store.
|
|
582
|
-
:param pulumi.Input[str] name:
|
|
583
|
-
:param pulumi.Input[str] namespace: Specifies the namespace
|
|
584
|
-
:param pulumi.Input[str] partition: Specifies the admin partition
|
|
580
|
+
:param pulumi.Input[str] name: Specifies a name for the configuration entry.
|
|
581
|
+
:param pulumi.Input[str] namespace: Specifies the namespace that the service resolver applies to.
|
|
582
|
+
:param pulumi.Input[str] partition: Specifies the admin partition that the service resolver applies to.
|
|
585
583
|
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ConfigEntryServiceResolverRedirectArgs']]]] redirects: Specifies redirect instructions for local service traffic so that services deployed to a different network location resolve the upstream request instead.
|
|
586
584
|
:param pulumi.Input[str] request_timeout: Specifies the timeout duration for receiving an HTTP response from this service.
|
|
587
585
|
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ConfigEntryServiceResolverSubsetArgs']]]] subsets: Specifies names for custom service subsets and the conditions under which service instances belong to each subset.
|
|
@@ -647,7 +645,7 @@ class ConfigEntryServiceResolver(pulumi.CustomResource):
|
|
|
647
645
|
@pulumi.getter
|
|
648
646
|
def name(self) -> pulumi.Output[str]:
|
|
649
647
|
"""
|
|
650
|
-
|
|
648
|
+
Specifies a name for the configuration entry.
|
|
651
649
|
"""
|
|
652
650
|
return pulumi.get(self, "name")
|
|
653
651
|
|
|
@@ -655,7 +653,7 @@ class ConfigEntryServiceResolver(pulumi.CustomResource):
|
|
|
655
653
|
@pulumi.getter
|
|
656
654
|
def namespace(self) -> pulumi.Output[Optional[str]]:
|
|
657
655
|
"""
|
|
658
|
-
Specifies the namespace
|
|
656
|
+
Specifies the namespace that the service resolver applies to.
|
|
659
657
|
"""
|
|
660
658
|
return pulumi.get(self, "namespace")
|
|
661
659
|
|
|
@@ -663,7 +661,7 @@ class ConfigEntryServiceResolver(pulumi.CustomResource):
|
|
|
663
661
|
@pulumi.getter
|
|
664
662
|
def partition(self) -> pulumi.Output[Optional[str]]:
|
|
665
663
|
"""
|
|
666
|
-
Specifies the admin partition
|
|
664
|
+
Specifies the admin partition that the service resolver applies to.
|
|
667
665
|
"""
|
|
668
666
|
return pulumi.get(self, "partition")
|
|
669
667
|
|
|
@@ -24,9 +24,9 @@ class ConfigEntryServiceRouterArgs:
|
|
|
24
24
|
"""
|
|
25
25
|
The set of arguments for constructing a ConfigEntryServiceRouter resource.
|
|
26
26
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] meta: Specifies key-value pairs to add to the KV store.
|
|
27
|
-
:param pulumi.Input[str] name: Specifies
|
|
28
|
-
:param pulumi.Input[str] namespace: Specifies the
|
|
29
|
-
:param pulumi.Input[str] partition: Specifies the
|
|
27
|
+
:param pulumi.Input[str] name: Specifies a name for the configuration entry.
|
|
28
|
+
:param pulumi.Input[str] namespace: Specifies the namespace to apply the configuration entry.
|
|
29
|
+
:param pulumi.Input[str] partition: Specifies the admin partition to apply the configuration entry.
|
|
30
30
|
:param pulumi.Input[Sequence[pulumi.Input['ConfigEntryServiceRouterRouteArgs']]] routes: Defines the possible routes for L7 requests.
|
|
31
31
|
"""
|
|
32
32
|
if meta is not None:
|
|
@@ -56,7 +56,7 @@ class ConfigEntryServiceRouterArgs:
|
|
|
56
56
|
@pulumi.getter
|
|
57
57
|
def name(self) -> Optional[pulumi.Input[str]]:
|
|
58
58
|
"""
|
|
59
|
-
Specifies
|
|
59
|
+
Specifies a name for the configuration entry.
|
|
60
60
|
"""
|
|
61
61
|
return pulumi.get(self, "name")
|
|
62
62
|
|
|
@@ -68,7 +68,7 @@ class ConfigEntryServiceRouterArgs:
|
|
|
68
68
|
@pulumi.getter
|
|
69
69
|
def namespace(self) -> Optional[pulumi.Input[str]]:
|
|
70
70
|
"""
|
|
71
|
-
Specifies the
|
|
71
|
+
Specifies the namespace to apply the configuration entry.
|
|
72
72
|
"""
|
|
73
73
|
return pulumi.get(self, "namespace")
|
|
74
74
|
|
|
@@ -80,7 +80,7 @@ class ConfigEntryServiceRouterArgs:
|
|
|
80
80
|
@pulumi.getter
|
|
81
81
|
def partition(self) -> Optional[pulumi.Input[str]]:
|
|
82
82
|
"""
|
|
83
|
-
Specifies the
|
|
83
|
+
Specifies the admin partition to apply the configuration entry.
|
|
84
84
|
"""
|
|
85
85
|
return pulumi.get(self, "partition")
|
|
86
86
|
|
|
@@ -112,9 +112,9 @@ class _ConfigEntryServiceRouterState:
|
|
|
112
112
|
"""
|
|
113
113
|
Input properties used for looking up and filtering ConfigEntryServiceRouter resources.
|
|
114
114
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] meta: Specifies key-value pairs to add to the KV store.
|
|
115
|
-
:param pulumi.Input[str] name: Specifies
|
|
116
|
-
:param pulumi.Input[str] namespace: Specifies the
|
|
117
|
-
:param pulumi.Input[str] partition: Specifies the
|
|
115
|
+
:param pulumi.Input[str] name: Specifies a name for the configuration entry.
|
|
116
|
+
:param pulumi.Input[str] namespace: Specifies the namespace to apply the configuration entry.
|
|
117
|
+
:param pulumi.Input[str] partition: Specifies the admin partition to apply the configuration entry.
|
|
118
118
|
:param pulumi.Input[Sequence[pulumi.Input['ConfigEntryServiceRouterRouteArgs']]] routes: Defines the possible routes for L7 requests.
|
|
119
119
|
"""
|
|
120
120
|
if meta is not None:
|
|
@@ -144,7 +144,7 @@ class _ConfigEntryServiceRouterState:
|
|
|
144
144
|
@pulumi.getter
|
|
145
145
|
def name(self) -> Optional[pulumi.Input[str]]:
|
|
146
146
|
"""
|
|
147
|
-
Specifies
|
|
147
|
+
Specifies a name for the configuration entry.
|
|
148
148
|
"""
|
|
149
149
|
return pulumi.get(self, "name")
|
|
150
150
|
|
|
@@ -156,7 +156,7 @@ class _ConfigEntryServiceRouterState:
|
|
|
156
156
|
@pulumi.getter
|
|
157
157
|
def namespace(self) -> Optional[pulumi.Input[str]]:
|
|
158
158
|
"""
|
|
159
|
-
Specifies the
|
|
159
|
+
Specifies the namespace to apply the configuration entry.
|
|
160
160
|
"""
|
|
161
161
|
return pulumi.get(self, "namespace")
|
|
162
162
|
|
|
@@ -168,7 +168,7 @@ class _ConfigEntryServiceRouterState:
|
|
|
168
168
|
@pulumi.getter
|
|
169
169
|
def partition(self) -> Optional[pulumi.Input[str]]:
|
|
170
170
|
"""
|
|
171
|
-
Specifies the
|
|
171
|
+
Specifies the admin partition to apply the configuration entry.
|
|
172
172
|
"""
|
|
173
173
|
return pulumi.get(self, "partition")
|
|
174
174
|
|
|
@@ -203,32 +203,12 @@ class ConfigEntryServiceRouter(pulumi.CustomResource):
|
|
|
203
203
|
"""
|
|
204
204
|
## Example Usage
|
|
205
205
|
|
|
206
|
-
<!--Start PulumiCodeChooser -->
|
|
207
|
-
```python
|
|
208
|
-
import pulumi
|
|
209
|
-
import pulumi_consul as consul
|
|
210
|
-
|
|
211
|
-
admin_service_defaults_config_entry_service_defaults = consul.ConfigEntryServiceDefaults("adminServiceDefaultsConfigEntryServiceDefaults", protocol="http")
|
|
212
|
-
admin_service_defaults_index_config_entry_service_defaults_config_entry_service_defaults = consul.ConfigEntryServiceDefaults("adminServiceDefaultsIndex/configEntryServiceDefaultsConfigEntryServiceDefaults", protocol="http")
|
|
213
|
-
foo = consul.ConfigEntryServiceRouter("foo", routes=[consul.ConfigEntryServiceRouterRouteArgs(
|
|
214
|
-
match=consul.ConfigEntryServiceRouterRouteMatchArgs(
|
|
215
|
-
http=consul.ConfigEntryServiceRouterRouteMatchHttpArgs(
|
|
216
|
-
path_prefix="/admin",
|
|
217
|
-
),
|
|
218
|
-
),
|
|
219
|
-
destination=consul.ConfigEntryServiceRouterRouteDestinationArgs(
|
|
220
|
-
service=consul_config_entry["admin_service"]["name"],
|
|
221
|
-
),
|
|
222
|
-
)])
|
|
223
|
-
```
|
|
224
|
-
<!--End PulumiCodeChooser -->
|
|
225
|
-
|
|
226
206
|
:param str resource_name: The name of the resource.
|
|
227
207
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
228
208
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] meta: Specifies key-value pairs to add to the KV store.
|
|
229
|
-
:param pulumi.Input[str] name: Specifies
|
|
230
|
-
:param pulumi.Input[str] namespace: Specifies the
|
|
231
|
-
:param pulumi.Input[str] partition: Specifies the
|
|
209
|
+
:param pulumi.Input[str] name: Specifies a name for the configuration entry.
|
|
210
|
+
:param pulumi.Input[str] namespace: Specifies the namespace to apply the configuration entry.
|
|
211
|
+
:param pulumi.Input[str] partition: Specifies the admin partition to apply the configuration entry.
|
|
232
212
|
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ConfigEntryServiceRouterRouteArgs']]]] routes: Defines the possible routes for L7 requests.
|
|
233
213
|
"""
|
|
234
214
|
...
|
|
@@ -240,26 +220,6 @@ class ConfigEntryServiceRouter(pulumi.CustomResource):
|
|
|
240
220
|
"""
|
|
241
221
|
## Example Usage
|
|
242
222
|
|
|
243
|
-
<!--Start PulumiCodeChooser -->
|
|
244
|
-
```python
|
|
245
|
-
import pulumi
|
|
246
|
-
import pulumi_consul as consul
|
|
247
|
-
|
|
248
|
-
admin_service_defaults_config_entry_service_defaults = consul.ConfigEntryServiceDefaults("adminServiceDefaultsConfigEntryServiceDefaults", protocol="http")
|
|
249
|
-
admin_service_defaults_index_config_entry_service_defaults_config_entry_service_defaults = consul.ConfigEntryServiceDefaults("adminServiceDefaultsIndex/configEntryServiceDefaultsConfigEntryServiceDefaults", protocol="http")
|
|
250
|
-
foo = consul.ConfigEntryServiceRouter("foo", routes=[consul.ConfigEntryServiceRouterRouteArgs(
|
|
251
|
-
match=consul.ConfigEntryServiceRouterRouteMatchArgs(
|
|
252
|
-
http=consul.ConfigEntryServiceRouterRouteMatchHttpArgs(
|
|
253
|
-
path_prefix="/admin",
|
|
254
|
-
),
|
|
255
|
-
),
|
|
256
|
-
destination=consul.ConfigEntryServiceRouterRouteDestinationArgs(
|
|
257
|
-
service=consul_config_entry["admin_service"]["name"],
|
|
258
|
-
),
|
|
259
|
-
)])
|
|
260
|
-
```
|
|
261
|
-
<!--End PulumiCodeChooser -->
|
|
262
|
-
|
|
263
223
|
:param str resource_name: The name of the resource.
|
|
264
224
|
:param ConfigEntryServiceRouterArgs args: The arguments to use to populate this resource's properties.
|
|
265
225
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
@@ -317,9 +277,9 @@ class ConfigEntryServiceRouter(pulumi.CustomResource):
|
|
|
317
277
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
318
278
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
319
279
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] meta: Specifies key-value pairs to add to the KV store.
|
|
320
|
-
:param pulumi.Input[str] name: Specifies
|
|
321
|
-
:param pulumi.Input[str] namespace: Specifies the
|
|
322
|
-
:param pulumi.Input[str] partition: Specifies the
|
|
280
|
+
:param pulumi.Input[str] name: Specifies a name for the configuration entry.
|
|
281
|
+
:param pulumi.Input[str] namespace: Specifies the namespace to apply the configuration entry.
|
|
282
|
+
:param pulumi.Input[str] partition: Specifies the admin partition to apply the configuration entry.
|
|
323
283
|
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ConfigEntryServiceRouterRouteArgs']]]] routes: Defines the possible routes for L7 requests.
|
|
324
284
|
"""
|
|
325
285
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
@@ -345,7 +305,7 @@ class ConfigEntryServiceRouter(pulumi.CustomResource):
|
|
|
345
305
|
@pulumi.getter
|
|
346
306
|
def name(self) -> pulumi.Output[str]:
|
|
347
307
|
"""
|
|
348
|
-
Specifies
|
|
308
|
+
Specifies a name for the configuration entry.
|
|
349
309
|
"""
|
|
350
310
|
return pulumi.get(self, "name")
|
|
351
311
|
|
|
@@ -353,7 +313,7 @@ class ConfigEntryServiceRouter(pulumi.CustomResource):
|
|
|
353
313
|
@pulumi.getter
|
|
354
314
|
def namespace(self) -> pulumi.Output[Optional[str]]:
|
|
355
315
|
"""
|
|
356
|
-
Specifies the
|
|
316
|
+
Specifies the namespace to apply the configuration entry.
|
|
357
317
|
"""
|
|
358
318
|
return pulumi.get(self, "namespace")
|
|
359
319
|
|
|
@@ -361,7 +321,7 @@ class ConfigEntryServiceRouter(pulumi.CustomResource):
|
|
|
361
321
|
@pulumi.getter
|
|
362
322
|
def partition(self) -> pulumi.Output[Optional[str]]:
|
|
363
323
|
"""
|
|
364
|
-
Specifies the
|
|
324
|
+
Specifies the admin partition to apply the configuration entry.
|
|
365
325
|
"""
|
|
366
326
|
return pulumi.get(self, "partition")
|
|
367
327
|
|