pulumi-consul 3.11.2__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.
Files changed (53) hide show
  1. pulumi_consul/_inputs.py +22 -22
  2. pulumi_consul/acl_auth_method.py +4 -8
  3. pulumi_consul/acl_binding_rule.py +2 -4
  4. pulumi_consul/acl_policy.py +2 -6
  5. pulumi_consul/acl_role.py +11 -11
  6. pulumi_consul/acl_role_policy_attachment.py +8 -10
  7. pulumi_consul/acl_token.py +14 -14
  8. pulumi_consul/admin_partition.py +6 -6
  9. pulumi_consul/agent_service.py +2 -4
  10. pulumi_consul/autopilot_config.py +0 -4
  11. pulumi_consul/catalog_entry.py +0 -46
  12. pulumi_consul/certificate_authority.py +0 -40
  13. pulumi_consul/config_entry.py +52 -46
  14. pulumi_consul/config_entry_service_defaults.py +21 -21
  15. pulumi_consul/config_entry_service_intentions.py +27 -27
  16. pulumi_consul/config_entry_service_resolver.py +57 -59
  17. pulumi_consul/config_entry_service_router.py +21 -61
  18. pulumi_consul/config_entry_service_splitter.py +22 -20
  19. pulumi_consul/get_acl_auth_method.py +0 -4
  20. pulumi_consul/get_acl_policy.py +0 -4
  21. pulumi_consul/get_acl_role.py +2 -4
  22. pulumi_consul/get_acl_token.py +0 -4
  23. pulumi_consul/get_acl_token_secret_id.py +8 -10
  24. pulumi_consul/get_agent_config.py +0 -4
  25. pulumi_consul/get_autopilot_health.py +0 -4
  26. pulumi_consul/get_catalog_service.py +30 -4
  27. pulumi_consul/get_catalog_services.py +32 -0
  28. pulumi_consul/get_key_prefix.py +18 -26
  29. pulumi_consul/get_keys.py +4 -10
  30. pulumi_consul/get_network_area_members.py +6 -10
  31. pulumi_consul/get_network_segments.py +4 -8
  32. pulumi_consul/get_peering.py +0 -4
  33. pulumi_consul/get_peerings.py +0 -4
  34. pulumi_consul/get_service.py +30 -4
  35. pulumi_consul/get_services.py +32 -0
  36. pulumi_consul/intention.py +10 -18
  37. pulumi_consul/key_prefix.py +26 -30
  38. pulumi_consul/keys.py +6 -10
  39. pulumi_consul/license.py +4 -6
  40. pulumi_consul/namespace.py +2 -4
  41. pulumi_consul/network_area.py +0 -4
  42. pulumi_consul/node.py +6 -6
  43. pulumi_consul/outputs.py +22 -22
  44. pulumi_consul/peering.py +8 -22
  45. pulumi_consul/peering_token.py +0 -4
  46. pulumi_consul/prepared_query.py +63 -63
  47. pulumi_consul/pulumi-plugin.json +2 -1
  48. pulumi_consul/service.py +79 -17
  49. {pulumi_consul-3.11.2.dist-info → pulumi_consul-3.11.3.dist-info}/METADATA +1 -1
  50. pulumi_consul-3.11.3.dist-info/RECORD +70 -0
  51. pulumi_consul-3.11.2.dist-info/RECORD +0 -70
  52. {pulumi_consul-3.11.2.dist-info → pulumi_consul-3.11.3.dist-info}/WHEEL +0 -0
  53. {pulumi_consul-3.11.2.dist-info → pulumi_consul-3.11.3.dist-info}/top_level.txt +0 -0
@@ -45,13 +45,13 @@ class ConfigEntryServiceDefaultsArgs:
45
45
  :param pulumi.Input[int] local_connect_timeout_ms: Specifies the number of milliseconds allowed for establishing connections to the local application instance before timing out.
46
46
  :param pulumi.Input[int] local_request_timeout_ms: Specifies the timeout for HTTP requests to the local application instance.
47
47
  :param pulumi.Input[int] max_inbound_connections: Specifies the maximum number of concurrent inbound connections to each service instance.
48
- :param pulumi.Input[Sequence[pulumi.Input['ConfigEntryServiceDefaultsMeshGatewayArgs']]] mesh_gateways: Specifies the default mesh gateway mode field for all upstreams.
48
+ :param pulumi.Input[Sequence[pulumi.Input['ConfigEntryServiceDefaultsMeshGatewayArgs']]] mesh_gateways: Specifies the default mesh gateway mode field for the service.
49
49
  :param pulumi.Input[Mapping[str, pulumi.Input[str]]] meta: Specifies a set of custom key-value pairs to add to the Consul KV store.
50
50
  :param pulumi.Input[str] mode: Specifies a mode for how the service directs inbound and outbound traffic.
51
51
  :param pulumi.Input[str] mutual_tls_mode: Controls whether mutual TLS is required for incoming connections to this service. This setting is only supported for services with transparent proxy enabled.
52
52
  :param pulumi.Input[str] name: Specifies the name of the service you are setting the defaults for.
53
- :param pulumi.Input[str] namespace: Specifies the namespace containing the upstream service that the configuration applies to.
54
- :param pulumi.Input[str] partition: Specifies the name of the name of the Consul admin partition that the configuration entry applies to.
53
+ :param pulumi.Input[str] namespace: Specifies the Consul namespace that the configuration entry applies to.
54
+ :param pulumi.Input[str] partition: Specifies the name of the name of the Consul admin partition that the configuration entry applies to. Refer to Admin Partitions for additional information.
55
55
  :param pulumi.Input[Sequence[pulumi.Input['ConfigEntryServiceDefaultsTransparentProxyArgs']]] transparent_proxies: Controls configurations specific to proxies in transparent mode. Refer to Transparent Proxy Mode for additional information.
56
56
  :param pulumi.Input[Sequence[pulumi.Input['ConfigEntryServiceDefaultsUpstreamConfigArgs']]] upstream_configs: Controls default upstream connection settings and custom overrides for individual upstream services.
57
57
  """
@@ -202,7 +202,7 @@ class ConfigEntryServiceDefaultsArgs:
202
202
  @pulumi.getter(name="meshGateways")
203
203
  def mesh_gateways(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ConfigEntryServiceDefaultsMeshGatewayArgs']]]]:
204
204
  """
205
- Specifies the default mesh gateway mode field for all upstreams.
205
+ Specifies the default mesh gateway mode field for the service.
206
206
  """
207
207
  return pulumi.get(self, "mesh_gateways")
208
208
 
@@ -262,7 +262,7 @@ class ConfigEntryServiceDefaultsArgs:
262
262
  @pulumi.getter
263
263
  def namespace(self) -> Optional[pulumi.Input[str]]:
264
264
  """
265
- Specifies the namespace containing the upstream service that the configuration applies to.
265
+ Specifies the Consul namespace that the configuration entry applies to.
266
266
  """
267
267
  return pulumi.get(self, "namespace")
268
268
 
@@ -274,7 +274,7 @@ class ConfigEntryServiceDefaultsArgs:
274
274
  @pulumi.getter
275
275
  def partition(self) -> Optional[pulumi.Input[str]]:
276
276
  """
277
- Specifies the name of the name of the Consul admin partition that the configuration entry applies to.
277
+ Specifies the name of the name of the Consul admin partition that the configuration entry applies to. Refer to Admin Partitions for additional information.
278
278
  """
279
279
  return pulumi.get(self, "partition")
280
280
 
@@ -338,13 +338,13 @@ class _ConfigEntryServiceDefaultsState:
338
338
  :param pulumi.Input[int] local_connect_timeout_ms: Specifies the number of milliseconds allowed for establishing connections to the local application instance before timing out.
339
339
  :param pulumi.Input[int] local_request_timeout_ms: Specifies the timeout for HTTP requests to the local application instance.
340
340
  :param pulumi.Input[int] max_inbound_connections: Specifies the maximum number of concurrent inbound connections to each service instance.
341
- :param pulumi.Input[Sequence[pulumi.Input['ConfigEntryServiceDefaultsMeshGatewayArgs']]] mesh_gateways: Specifies the default mesh gateway mode field for all upstreams.
341
+ :param pulumi.Input[Sequence[pulumi.Input['ConfigEntryServiceDefaultsMeshGatewayArgs']]] mesh_gateways: Specifies the default mesh gateway mode field for the service.
342
342
  :param pulumi.Input[Mapping[str, pulumi.Input[str]]] meta: Specifies a set of custom key-value pairs to add to the Consul KV store.
343
343
  :param pulumi.Input[str] mode: Specifies a mode for how the service directs inbound and outbound traffic.
344
344
  :param pulumi.Input[str] mutual_tls_mode: Controls whether mutual TLS is required for incoming connections to this service. This setting is only supported for services with transparent proxy enabled.
345
345
  :param pulumi.Input[str] name: Specifies the name of the service you are setting the defaults for.
346
- :param pulumi.Input[str] namespace: Specifies the namespace containing the upstream service that the configuration applies to.
347
- :param pulumi.Input[str] partition: Specifies the name of the name of the Consul admin partition that the configuration entry applies to.
346
+ :param pulumi.Input[str] namespace: Specifies the Consul namespace that the configuration entry applies to.
347
+ :param pulumi.Input[str] partition: Specifies the name of the name of the Consul admin partition that the configuration entry applies to. Refer to Admin Partitions for additional information.
348
348
  :param pulumi.Input[str] protocol: Specifies the default protocol for the service.
349
349
  :param pulumi.Input[Sequence[pulumi.Input['ConfigEntryServiceDefaultsTransparentProxyArgs']]] transparent_proxies: Controls configurations specific to proxies in transparent mode. Refer to Transparent Proxy Mode for additional information.
350
350
  :param pulumi.Input[Sequence[pulumi.Input['ConfigEntryServiceDefaultsUpstreamConfigArgs']]] upstream_configs: Controls default upstream connection settings and custom overrides for individual upstream services.
@@ -486,7 +486,7 @@ class _ConfigEntryServiceDefaultsState:
486
486
  @pulumi.getter(name="meshGateways")
487
487
  def mesh_gateways(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ConfigEntryServiceDefaultsMeshGatewayArgs']]]]:
488
488
  """
489
- Specifies the default mesh gateway mode field for all upstreams.
489
+ Specifies the default mesh gateway mode field for the service.
490
490
  """
491
491
  return pulumi.get(self, "mesh_gateways")
492
492
 
@@ -546,7 +546,7 @@ class _ConfigEntryServiceDefaultsState:
546
546
  @pulumi.getter
547
547
  def namespace(self) -> Optional[pulumi.Input[str]]:
548
548
  """
549
- Specifies the namespace containing the upstream service that the configuration applies to.
549
+ Specifies the Consul namespace that the configuration entry applies to.
550
550
  """
551
551
  return pulumi.get(self, "namespace")
552
552
 
@@ -558,7 +558,7 @@ class _ConfigEntryServiceDefaultsState:
558
558
  @pulumi.getter
559
559
  def partition(self) -> Optional[pulumi.Input[str]]:
560
560
  """
561
- Specifies the name of the name of the Consul admin partition that the configuration entry applies to.
561
+ Specifies the name of the name of the Consul admin partition that the configuration entry applies to. Refer to Admin Partitions for additional information.
562
562
  """
563
563
  return pulumi.get(self, "partition")
564
564
 
@@ -640,13 +640,13 @@ class ConfigEntryServiceDefaults(pulumi.CustomResource):
640
640
  :param pulumi.Input[int] local_connect_timeout_ms: Specifies the number of milliseconds allowed for establishing connections to the local application instance before timing out.
641
641
  :param pulumi.Input[int] local_request_timeout_ms: Specifies the timeout for HTTP requests to the local application instance.
642
642
  :param pulumi.Input[int] max_inbound_connections: Specifies the maximum number of concurrent inbound connections to each service instance.
643
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ConfigEntryServiceDefaultsMeshGatewayArgs']]]] mesh_gateways: Specifies the default mesh gateway mode field for all upstreams.
643
+ :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ConfigEntryServiceDefaultsMeshGatewayArgs']]]] mesh_gateways: Specifies the default mesh gateway mode field for the service.
644
644
  :param pulumi.Input[Mapping[str, pulumi.Input[str]]] meta: Specifies a set of custom key-value pairs to add to the Consul KV store.
645
645
  :param pulumi.Input[str] mode: Specifies a mode for how the service directs inbound and outbound traffic.
646
646
  :param pulumi.Input[str] mutual_tls_mode: Controls whether mutual TLS is required for incoming connections to this service. This setting is only supported for services with transparent proxy enabled.
647
647
  :param pulumi.Input[str] name: Specifies the name of the service you are setting the defaults for.
648
- :param pulumi.Input[str] namespace: Specifies the namespace containing the upstream service that the configuration applies to.
649
- :param pulumi.Input[str] partition: Specifies the name of the name of the Consul admin partition that the configuration entry applies to.
648
+ :param pulumi.Input[str] namespace: Specifies the Consul namespace that the configuration entry applies to.
649
+ :param pulumi.Input[str] partition: Specifies the name of the name of the Consul admin partition that the configuration entry applies to. Refer to Admin Partitions for additional information.
650
650
  :param pulumi.Input[str] protocol: Specifies the default protocol for the service.
651
651
  :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ConfigEntryServiceDefaultsTransparentProxyArgs']]]] transparent_proxies: Controls configurations specific to proxies in transparent mode. Refer to Transparent Proxy Mode for additional information.
652
652
  :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ConfigEntryServiceDefaultsUpstreamConfigArgs']]]] upstream_configs: Controls default upstream connection settings and custom overrides for individual upstream services.
@@ -767,13 +767,13 @@ class ConfigEntryServiceDefaults(pulumi.CustomResource):
767
767
  :param pulumi.Input[int] local_connect_timeout_ms: Specifies the number of milliseconds allowed for establishing connections to the local application instance before timing out.
768
768
  :param pulumi.Input[int] local_request_timeout_ms: Specifies the timeout for HTTP requests to the local application instance.
769
769
  :param pulumi.Input[int] max_inbound_connections: Specifies the maximum number of concurrent inbound connections to each service instance.
770
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ConfigEntryServiceDefaultsMeshGatewayArgs']]]] mesh_gateways: Specifies the default mesh gateway mode field for all upstreams.
770
+ :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ConfigEntryServiceDefaultsMeshGatewayArgs']]]] mesh_gateways: Specifies the default mesh gateway mode field for the service.
771
771
  :param pulumi.Input[Mapping[str, pulumi.Input[str]]] meta: Specifies a set of custom key-value pairs to add to the Consul KV store.
772
772
  :param pulumi.Input[str] mode: Specifies a mode for how the service directs inbound and outbound traffic.
773
773
  :param pulumi.Input[str] mutual_tls_mode: Controls whether mutual TLS is required for incoming connections to this service. This setting is only supported for services with transparent proxy enabled.
774
774
  :param pulumi.Input[str] name: Specifies the name of the service you are setting the defaults for.
775
- :param pulumi.Input[str] namespace: Specifies the namespace containing the upstream service that the configuration applies to.
776
- :param pulumi.Input[str] partition: Specifies the name of the name of the Consul admin partition that the configuration entry applies to.
775
+ :param pulumi.Input[str] namespace: Specifies the Consul namespace that the configuration entry applies to.
776
+ :param pulumi.Input[str] partition: Specifies the name of the name of the Consul admin partition that the configuration entry applies to. Refer to Admin Partitions for additional information.
777
777
  :param pulumi.Input[str] protocol: Specifies the default protocol for the service.
778
778
  :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ConfigEntryServiceDefaultsTransparentProxyArgs']]]] transparent_proxies: Controls configurations specific to proxies in transparent mode. Refer to Transparent Proxy Mode for additional information.
779
779
  :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ConfigEntryServiceDefaultsUpstreamConfigArgs']]]] upstream_configs: Controls default upstream connection settings and custom overrides for individual upstream services.
@@ -870,7 +870,7 @@ class ConfigEntryServiceDefaults(pulumi.CustomResource):
870
870
  @pulumi.getter(name="meshGateways")
871
871
  def mesh_gateways(self) -> pulumi.Output[Optional[Sequence['outputs.ConfigEntryServiceDefaultsMeshGateway']]]:
872
872
  """
873
- Specifies the default mesh gateway mode field for all upstreams.
873
+ Specifies the default mesh gateway mode field for the service.
874
874
  """
875
875
  return pulumi.get(self, "mesh_gateways")
876
876
 
@@ -910,7 +910,7 @@ class ConfigEntryServiceDefaults(pulumi.CustomResource):
910
910
  @pulumi.getter
911
911
  def namespace(self) -> pulumi.Output[Optional[str]]:
912
912
  """
913
- Specifies the namespace containing the upstream service that the configuration applies to.
913
+ Specifies the Consul namespace that the configuration entry applies to.
914
914
  """
915
915
  return pulumi.get(self, "namespace")
916
916
 
@@ -918,7 +918,7 @@ class ConfigEntryServiceDefaults(pulumi.CustomResource):
918
918
  @pulumi.getter
919
919
  def partition(self) -> pulumi.Output[Optional[str]]:
920
920
  """
921
- Specifies the name of the name of the Consul admin partition that the configuration entry applies to.
921
+ Specifies the name of the name of the Consul admin partition that the configuration entry applies to. Refer to Admin Partitions for additional information.
922
922
  """
923
923
  return pulumi.get(self, "partition")
924
924
 
@@ -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 the name of a JWT provider defined in the Name field of the jwt-provider configuration entry.
30
- :param pulumi.Input[str] namespace: Specifies the traffic source namespace that the intention allows or denies traffic from.
31
- :param pulumi.Input[str] partition: Specifies the name of an admin partition that the intention allows or denies traffic from.
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 the name of a JWT provider defined in the Name field of the jwt-provider configuration entry.
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 traffic source namespace that the intention allows or denies traffic from.
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 name of an admin partition that the intention allows or denies traffic from.
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 the name of a JWT provider defined in the Name field of the jwt-provider configuration entry.
134
- :param pulumi.Input[str] namespace: Specifies the traffic source namespace that the intention allows or denies traffic from.
135
- :param pulumi.Input[str] partition: Specifies the name of an admin partition that the intention allows or denies traffic from.
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 the name of a JWT provider defined in the Name field of the jwt-provider configuration entry.
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 traffic source namespace that the intention allows or denies traffic from.
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 name of an admin partition that the intention allows or denies traffic from.
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("jwtProvider",
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 the name of a JWT provider defined in the Name field of the jwt-provider configuration entry.
290
- :param pulumi.Input[str] namespace: Specifies the traffic source namespace that the intention allows or denies traffic from.
291
- :param pulumi.Input[str] partition: Specifies the name of an admin partition that the intention allows or denies traffic from.
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("jwtProvider",
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 the name of a JWT provider defined in the Name field of the jwt-provider configuration entry.
411
- :param pulumi.Input[str] namespace: Specifies the traffic source namespace that the intention allows or denies traffic from.
412
- :param pulumi.Input[str] partition: Specifies the name of an admin partition that the intention allows or denies traffic from.
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 the name of a JWT provider defined in the Name field of the jwt-provider configuration entry.
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 traffic source namespace that the intention allows or denies traffic from.
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 name of an admin partition that the intention allows or denies traffic from.
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: Name of subset.
38
- :param pulumi.Input[str] namespace: Specifies the namespace at the failover location where the failover services are deployed.
39
- :param pulumi.Input[str] partition: Specifies the admin partition within the same datacenter to use for the failover target. If empty, the default partition is used.
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
- Name of subset.
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 at the failover location where the failover services are deployed.
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 within the same datacenter to use for the failover target. If empty, the default partition is used.
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: Name of subset.
222
- :param pulumi.Input[str] namespace: Specifies the namespace at the failover location where the failover services are deployed.
223
- :param pulumi.Input[str] partition: Specifies the admin partition within the same datacenter to use for the failover target. If empty, the default partition is used.
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
- Name of subset.
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 at the failover location where the failover services are deployed.
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 within the same datacenter to use for the failover target. If empty, the default partition is used.
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
- connect_timeout="15s",
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: Name of subset.
450
- :param pulumi.Input[str] namespace: Specifies the namespace at the failover location where the failover services are deployed.
451
- :param pulumi.Input[str] partition: Specifies the admin partition within the same datacenter to use for the failover target. If empty, the default partition is used.
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
- connect_timeout="15s",
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: Name of subset.
583
- :param pulumi.Input[str] namespace: Specifies the namespace at the failover location where the failover services are deployed.
584
- :param pulumi.Input[str] partition: Specifies the admin partition within the same datacenter to use for the failover target. If empty, the default partition is used.
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
- Name of subset.
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 at the failover location where the failover services are deployed.
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 within the same datacenter to use for the failover target. If empty, the default partition is used.
664
+ Specifies the admin partition that the service resolver applies to.
667
665
  """
668
666
  return pulumi.get(self, "partition")
669
667