pulumi-consul 3.11.1__tar.gz → 3.11.3__tar.gz

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

Potentially problematic release.


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

Files changed (76) hide show
  1. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/PKG-INFO +2 -2
  2. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul/_inputs.py +62 -26
  3. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul/_utilities.py +2 -2
  4. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul/acl_auth_method.py +4 -0
  5. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul/acl_binding_rule.py +2 -0
  6. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul/acl_policy.py +4 -4
  7. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul/acl_role.py +13 -13
  8. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul/acl_role_policy_attachment.py +10 -8
  9. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul/acl_token.py +18 -14
  10. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul/acl_token_policy_attachment.py +10 -6
  11. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul/acl_token_role_attachment.py +6 -4
  12. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul/admin_partition.py +8 -4
  13. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul/agent_service.py +2 -0
  14. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul/catalog_entry.py +0 -42
  15. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul/certificate_authority.py +2 -28
  16. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul/config/outputs.py +24 -0
  17. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul/config_entry.py +76 -32
  18. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul/config_entry_service_defaults.py +23 -23
  19. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul/config_entry_service_intentions.py +27 -27
  20. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul/config_entry_service_resolver.py +57 -59
  21. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul/config_entry_service_router.py +21 -61
  22. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul/config_entry_service_splitter.py +24 -22
  23. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul/get_acl_role.py +2 -0
  24. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul/get_acl_token_secret_id.py +8 -6
  25. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul/get_catalog_service.py +30 -4
  26. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul/get_catalog_services.py +32 -0
  27. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul/get_key_prefix.py +18 -18
  28. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul/get_keys.py +4 -6
  29. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul/get_network_area_members.py +6 -6
  30. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul/get_network_segments.py +4 -4
  31. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul/get_service.py +30 -4
  32. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul/get_services.py +32 -0
  33. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul/intention.py +12 -12
  34. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul/key_prefix.py +32 -30
  35. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul/keys.py +6 -6
  36. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul/license.py +4 -2
  37. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul/namespace.py +8 -4
  38. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul/namespace_policy_attachment.py +6 -4
  39. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul/namespace_role_attachment.py +6 -4
  40. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul/node.py +8 -4
  41. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul/outputs.py +126 -24
  42. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul/peering.py +8 -18
  43. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul/prepared_query.py +65 -61
  44. pulumi_consul-3.11.3/pulumi_consul/pulumi-plugin.json +5 -0
  45. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul/service.py +133 -7
  46. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul.egg-info/PKG-INFO +2 -2
  47. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pyproject.toml +2 -2
  48. pulumi_consul-3.11.1/pulumi_consul/pulumi-plugin.json +0 -4
  49. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/README.md +0 -0
  50. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul/__init__.py +0 -0
  51. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul/autopilot_config.py +0 -0
  52. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul/config/__init__.py +0 -0
  53. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul/config/__init__.pyi +0 -0
  54. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul/config/vars.py +0 -0
  55. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul/get_acl_auth_method.py +0 -0
  56. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul/get_acl_policy.py +0 -0
  57. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul/get_acl_token.py +0 -0
  58. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul/get_agent_config.py +0 -0
  59. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul/get_agent_self.py +0 -0
  60. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul/get_autopilot_health.py +0 -0
  61. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul/get_catalog_nodes.py +0 -0
  62. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul/get_config_entry.py +0 -0
  63. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul/get_datacenters.py +0 -0
  64. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul/get_nodes.py +0 -0
  65. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul/get_peering.py +0 -0
  66. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul/get_peerings.py +0 -0
  67. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul/get_service_health.py +0 -0
  68. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul/network_area.py +0 -0
  69. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul/peering_token.py +0 -0
  70. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul/provider.py +0 -0
  71. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul/py.typed +0 -0
  72. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul.egg-info/SOURCES.txt +0 -0
  73. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul.egg-info/dependency_links.txt +0 -0
  74. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul.egg-info/requires.txt +0 -0
  75. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/pulumi_consul.egg-info/top_level.txt +0 -0
  76. {pulumi_consul-3.11.1 → pulumi_consul-3.11.3}/setup.cfg +0 -0
@@ -1,12 +1,12 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pulumi_consul
3
- Version: 3.11.1
3
+ Version: 3.11.3
4
4
  Summary: A Pulumi package for creating and managing consul resources.
5
5
  License: Apache-2.0
6
6
  Project-URL: Homepage, https://pulumi.io
7
7
  Project-URL: Repository, https://github.com/pulumi/pulumi-consul
8
8
  Keywords: pulumi,consul
9
- Requires-Python: >=3.7
9
+ Requires-Python: >=3.8
10
10
  Description-Content-Type: text/markdown
11
11
  Requires-Dist: parver>=0.2.1
12
12
  Requires-Dist: pulumi<4.0.0,>=3.0.0
@@ -808,6 +808,7 @@ class ConfigEntryServiceDefaultsUpstreamConfigDefaultArgs:
808
808
  :param pulumi.Input[Sequence[pulumi.Input['ConfigEntryServiceDefaultsUpstreamConfigDefaultLimitArgs']]] limits: Map that specifies a set of limits to apply to when connecting upstream services.
809
809
  :param pulumi.Input[Sequence[pulumi.Input['ConfigEntryServiceDefaultsUpstreamConfigDefaultMeshGatewayArgs']]] mesh_gateways: Specifies the default mesh gateway mode field for all upstreams.
810
810
  :param pulumi.Input[Sequence[pulumi.Input['ConfigEntryServiceDefaultsUpstreamConfigDefaultPassiveHealthCheckArgs']]] passive_health_checks: Map that specifies a set of rules that enable Consul to remove hosts from the upstream cluster that are unreachable or that return errors.
811
+ :param pulumi.Input[str] protocol: Specifies the default protocol for the service.
811
812
  """
812
813
  if balance_outbound_connections is not None:
813
814
  pulumi.set(__self__, "balance_outbound_connections", balance_outbound_connections)
@@ -882,6 +883,9 @@ class ConfigEntryServiceDefaultsUpstreamConfigDefaultArgs:
882
883
  @property
883
884
  @pulumi.getter
884
885
  def protocol(self) -> Optional[pulumi.Input[str]]:
886
+ """
887
+ Specifies the default protocol for the service.
888
+ """
885
889
  return pulumi.get(self, "protocol")
886
890
 
887
891
  @protocol.setter
@@ -1066,10 +1070,12 @@ class ConfigEntryServiceDefaultsUpstreamConfigOverrideArgs:
1066
1070
  :param pulumi.Input[str] balance_outbound_connections: Sets the strategy for allocating outbound connections from upstreams across Envoy proxy threads.
1067
1071
  :param pulumi.Input[Sequence[pulumi.Input['ConfigEntryServiceDefaultsUpstreamConfigOverrideLimitArgs']]] limits: Map that specifies a set of limits to apply to when connecting upstream services.
1068
1072
  :param pulumi.Input[Sequence[pulumi.Input['ConfigEntryServiceDefaultsUpstreamConfigOverrideMeshGatewayArgs']]] mesh_gateways: Specifies the default mesh gateway mode field for all upstreams.
1073
+ :param pulumi.Input[str] name: Specifies the name of the service you are setting the defaults for.
1069
1074
  :param pulumi.Input[str] namespace: Specifies the namespace containing the upstream service that the configuration applies to.
1070
1075
  :param pulumi.Input[str] partition: Specifies the name of the name of the Consul admin partition that the configuration entry applies to.
1071
1076
  :param pulumi.Input[Sequence[pulumi.Input['ConfigEntryServiceDefaultsUpstreamConfigOverridePassiveHealthCheckArgs']]] passive_health_checks: Map that specifies a set of rules that enable Consul to remove hosts from the upstream cluster that are unreachable or that return errors.
1072
1077
  :param pulumi.Input[str] peer: Specifies the peer name of the upstream service that the configuration applies to.
1078
+ :param pulumi.Input[str] protocol: Specifies the default protocol for the service.
1073
1079
  """
1074
1080
  if balance_outbound_connections is not None:
1075
1081
  pulumi.set(__self__, "balance_outbound_connections", balance_outbound_connections)
@@ -1151,6 +1157,9 @@ class ConfigEntryServiceDefaultsUpstreamConfigOverrideArgs:
1151
1157
  @property
1152
1158
  @pulumi.getter
1153
1159
  def name(self) -> Optional[pulumi.Input[str]]:
1160
+ """
1161
+ Specifies the name of the service you are setting the defaults for.
1162
+ """
1154
1163
  return pulumi.get(self, "name")
1155
1164
 
1156
1165
  @name.setter
@@ -1208,6 +1217,9 @@ class ConfigEntryServiceDefaultsUpstreamConfigOverrideArgs:
1208
1217
  @property
1209
1218
  @pulumi.getter
1210
1219
  def protocol(self) -> Optional[pulumi.Input[str]]:
1220
+ """
1221
+ Specifies the default protocol for the service.
1222
+ """
1211
1223
  return pulumi.get(self, "protocol")
1212
1224
 
1213
1225
  @protocol.setter
@@ -1648,7 +1660,7 @@ class ConfigEntryServiceIntentionsSourcePermissionArgs:
1648
1660
  action: pulumi.Input[str],
1649
1661
  https: pulumi.Input[Sequence[pulumi.Input['ConfigEntryServiceIntentionsSourcePermissionHttpArgs']]]):
1650
1662
  """
1651
- :param pulumi.Input[str] action: Specifies the action to take when the source sends traffic to the destination service.
1663
+ :param pulumi.Input[str] action: Specifies the action to take when the source sends traffic to the destination service. The value is either allow or deny.
1652
1664
  :param pulumi.Input[Sequence[pulumi.Input['ConfigEntryServiceIntentionsSourcePermissionHttpArgs']]] https: Specifies a set of HTTP-specific match criteria.
1653
1665
  """
1654
1666
  pulumi.set(__self__, "action", action)
@@ -1658,7 +1670,7 @@ class ConfigEntryServiceIntentionsSourcePermissionArgs:
1658
1670
  @pulumi.getter
1659
1671
  def action(self) -> pulumi.Input[str]:
1660
1672
  """
1661
- Specifies the action to take when the source sends traffic to the destination service.
1673
+ Specifies the action to take when the source sends traffic to the destination service. The value is either allow or deny.
1662
1674
  """
1663
1675
  return pulumi.get(self, "action")
1664
1676
 
@@ -1777,7 +1789,7 @@ class ConfigEntryServiceIntentionsSourcePermissionHttpHeaderArgs:
1777
1789
  regex: Optional[pulumi.Input[str]] = None,
1778
1790
  suffix: Optional[pulumi.Input[str]] = None):
1779
1791
  """
1780
- :param pulumi.Input[str] name: Specifies the name of a JWT provider defined in the Name field of the jwt-provider configuration entry.
1792
+ :param pulumi.Input[str] name: Specifies the name of the header to match.
1781
1793
  :param pulumi.Input[str] exact: Specifies a value for the header key set in the Name field. If the request header value matches the Exact value, Consul applies the permission.
1782
1794
  :param pulumi.Input[bool] invert: Inverts the matching logic configured in the Header.
1783
1795
  :param pulumi.Input[str] prefix: Specifies a prefix value for the header key set in the Name field.
@@ -1803,7 +1815,7 @@ class ConfigEntryServiceIntentionsSourcePermissionHttpHeaderArgs:
1803
1815
  @pulumi.getter
1804
1816
  def name(self) -> pulumi.Input[str]:
1805
1817
  """
1806
- Specifies the name of a JWT provider defined in the Name field of the jwt-provider configuration entry.
1818
+ Specifies the name of the header to match.
1807
1819
  """
1808
1820
  return pulumi.get(self, "name")
1809
1821
 
@@ -2013,11 +2025,11 @@ class ConfigEntryServiceResolverFailoverTargetArgs:
2013
2025
  service_subset: Optional[pulumi.Input[str]] = None):
2014
2026
  """
2015
2027
  :param pulumi.Input[str] datacenter: Specifies the WAN federated datacenter to use for the failover target. If empty, the current datacenter is used.
2016
- :param pulumi.Input[str] namespace: Specifies the namespace at the failover location where the failover services are deployed.
2028
+ :param pulumi.Input[str] namespace: Specifies the namespace to use for the failover target. If empty, the default namespace is used.
2017
2029
  :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.
2018
2030
  :param pulumi.Input[str] peer: Specifies the destination cluster peer to resolve the target service name from.
2019
- :param pulumi.Input[str] service: Specifies the name of the service to resolve at the failover location during a failover scenario.
2020
- :param pulumi.Input[str] service_subset: Specifies the name of a subset of service instances to resolve at the failover location during a failover scenario.
2031
+ :param pulumi.Input[str] service: Specifies the service name to use for the failover target. If empty, the current service name is used.
2032
+ :param pulumi.Input[str] service_subset: Specifies the named subset to use for the failover target. If empty, the default subset for the requested service name is used.
2021
2033
  """
2022
2034
  if datacenter is not None:
2023
2035
  pulumi.set(__self__, "datacenter", datacenter)
@@ -2048,7 +2060,7 @@ class ConfigEntryServiceResolverFailoverTargetArgs:
2048
2060
  @pulumi.getter
2049
2061
  def namespace(self) -> Optional[pulumi.Input[str]]:
2050
2062
  """
2051
- Specifies the namespace at the failover location where the failover services are deployed.
2063
+ Specifies the namespace to use for the failover target. If empty, the default namespace is used.
2052
2064
  """
2053
2065
  return pulumi.get(self, "namespace")
2054
2066
 
@@ -2084,7 +2096,7 @@ class ConfigEntryServiceResolverFailoverTargetArgs:
2084
2096
  @pulumi.getter
2085
2097
  def service(self) -> Optional[pulumi.Input[str]]:
2086
2098
  """
2087
- Specifies the name of the service to resolve at the failover location during a failover scenario.
2099
+ Specifies the service name to use for the failover target. If empty, the current service name is used.
2088
2100
  """
2089
2101
  return pulumi.get(self, "service")
2090
2102
 
@@ -2096,7 +2108,7 @@ class ConfigEntryServiceResolverFailoverTargetArgs:
2096
2108
  @pulumi.getter(name="serviceSubset")
2097
2109
  def service_subset(self) -> Optional[pulumi.Input[str]]:
2098
2110
  """
2099
- Specifies the name of a subset of service instances to resolve at the failover location during a failover scenario.
2111
+ Specifies the named subset to use for the failover target. If empty, the default subset for the requested service name is used.
2100
2112
  """
2101
2113
  return pulumi.get(self, "service_subset")
2102
2114
 
@@ -2861,9 +2873,9 @@ class ConfigEntryServiceRouterRouteDestinationResponseHeadersArgs:
2861
2873
  removes: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
2862
2874
  set: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None):
2863
2875
  """
2864
- :param pulumi.Input[Mapping[str, pulumi.Input[str]]] add: Defines a set of key-value pairs to add to the header. Use header names as the keys.
2876
+ :param pulumi.Input[Mapping[str, pulumi.Input[str]]] add: Defines a set of key-value pairs to add to the header. Use header names as the keys
2865
2877
  :param pulumi.Input[Sequence[pulumi.Input[str]]] removes: Defines a list of headers to remove.
2866
- :param pulumi.Input[Mapping[str, pulumi.Input[str]]] set: Defines a set of key-value pairs to add to the request header or to replace existing header values with.
2878
+ :param pulumi.Input[Mapping[str, pulumi.Input[str]]] set: Defines a set of key-value pairs to add to the response header or to replace existing header values with
2867
2879
  """
2868
2880
  if add is not None:
2869
2881
  pulumi.set(__self__, "add", add)
@@ -2876,7 +2888,7 @@ class ConfigEntryServiceRouterRouteDestinationResponseHeadersArgs:
2876
2888
  @pulumi.getter
2877
2889
  def add(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
2878
2890
  """
2879
- Defines a set of key-value pairs to add to the header. Use header names as the keys.
2891
+ Defines a set of key-value pairs to add to the header. Use header names as the keys
2880
2892
  """
2881
2893
  return pulumi.get(self, "add")
2882
2894
 
@@ -2900,7 +2912,7 @@ class ConfigEntryServiceRouterRouteDestinationResponseHeadersArgs:
2900
2912
  @pulumi.getter
2901
2913
  def set(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
2902
2914
  """
2903
- Defines a set of key-value pairs to add to the request header or to replace existing header values with.
2915
+ Defines a set of key-value pairs to add to the response header or to replace existing header values with
2904
2916
  """
2905
2917
  return pulumi.get(self, "set")
2906
2918
 
@@ -3162,10 +3174,10 @@ class ConfigEntryServiceRouterRouteMatchHttpQueryParamArgs:
3162
3174
  present: Optional[pulumi.Input[bool]] = None,
3163
3175
  regex: Optional[pulumi.Input[str]] = None):
3164
3176
  """
3165
- :param pulumi.Input[str] exact: Specifies that a request matches when the header with the given name is this exact value.
3166
- :param pulumi.Input[str] name: Specifies the name of the HTTP header to match.
3167
- :param pulumi.Input[bool] present: Specifies that a request matches when the value in the `name` argument is present anywhere in the HTTP header.
3168
- :param pulumi.Input[str] regex: Specifies that a request matches when the header with the given name matches this regular expression.
3177
+ :param pulumi.Input[str] exact: Specifies that a request matches when the query parameter with the given name is this exact value.
3178
+ :param pulumi.Input[str] name: Specifies the name of the HTTP query parameter to match.
3179
+ :param pulumi.Input[bool] present: Specifies that a request matches when the value in the `name` argument is present anywhere in the HTTP query parameter.
3180
+ :param pulumi.Input[str] regex: Specifies that a request matches when the query parameter with the given name matches this regular expression.
3169
3181
  """
3170
3182
  if exact is not None:
3171
3183
  pulumi.set(__self__, "exact", exact)
@@ -3180,7 +3192,7 @@ class ConfigEntryServiceRouterRouteMatchHttpQueryParamArgs:
3180
3192
  @pulumi.getter
3181
3193
  def exact(self) -> Optional[pulumi.Input[str]]:
3182
3194
  """
3183
- Specifies that a request matches when the header with the given name is this exact value.
3195
+ Specifies that a request matches when the query parameter with the given name is this exact value.
3184
3196
  """
3185
3197
  return pulumi.get(self, "exact")
3186
3198
 
@@ -3192,7 +3204,7 @@ class ConfigEntryServiceRouterRouteMatchHttpQueryParamArgs:
3192
3204
  @pulumi.getter
3193
3205
  def name(self) -> Optional[pulumi.Input[str]]:
3194
3206
  """
3195
- Specifies the name of the HTTP header to match.
3207
+ Specifies the name of the HTTP query parameter to match.
3196
3208
  """
3197
3209
  return pulumi.get(self, "name")
3198
3210
 
@@ -3204,7 +3216,7 @@ class ConfigEntryServiceRouterRouteMatchHttpQueryParamArgs:
3204
3216
  @pulumi.getter
3205
3217
  def present(self) -> Optional[pulumi.Input[bool]]:
3206
3218
  """
3207
- Specifies that a request matches when the value in the `name` argument is present anywhere in the HTTP header.
3219
+ Specifies that a request matches when the value in the `name` argument is present anywhere in the HTTP query parameter.
3208
3220
  """
3209
3221
  return pulumi.get(self, "present")
3210
3222
 
@@ -3216,7 +3228,7 @@ class ConfigEntryServiceRouterRouteMatchHttpQueryParamArgs:
3216
3228
  @pulumi.getter
3217
3229
  def regex(self) -> Optional[pulumi.Input[str]]:
3218
3230
  """
3219
- Specifies that a request matches when the header with the given name matches this regular expression.
3231
+ Specifies that a request matches when the query parameter with the given name matches this regular expression.
3220
3232
  """
3221
3233
  return pulumi.get(self, "regex")
3222
3234
 
@@ -3536,8 +3548,8 @@ class KeysKeyArgs:
3536
3548
  if flags is not None:
3537
3549
  pulumi.set(__self__, "flags", flags)
3538
3550
  if name is not None:
3539
- warnings.warn("""Using consul_keys resource to *read* is deprecated; please use consul_keys data source instead""", DeprecationWarning)
3540
- pulumi.log.warn("""name is deprecated: Using consul_keys resource to *read* is deprecated; please use consul_keys data source instead""")
3551
+ warnings.warn("""Using Keys resource to *read* is deprecated; please use Keys data source instead""", DeprecationWarning)
3552
+ pulumi.log.warn("""name is deprecated: Using Keys resource to *read* is deprecated; please use Keys data source instead""")
3541
3553
  if name is not None:
3542
3554
  pulumi.set(__self__, "name", name)
3543
3555
  if value is not None:
@@ -3595,8 +3607,8 @@ class KeysKeyArgs:
3595
3607
  @property
3596
3608
  @pulumi.getter
3597
3609
  def name(self) -> Optional[pulumi.Input[str]]:
3598
- warnings.warn("""Using consul_keys resource to *read* is deprecated; please use consul_keys data source instead""", DeprecationWarning)
3599
- pulumi.log.warn("""name is deprecated: Using consul_keys resource to *read* is deprecated; please use consul_keys data source instead""")
3610
+ warnings.warn("""Using Keys resource to *read* is deprecated; please use Keys data source instead""", DeprecationWarning)
3611
+ pulumi.log.warn("""name is deprecated: Using Keys resource to *read* is deprecated; please use Keys data source instead""")
3600
3612
 
3601
3613
  return pulumi.get(self, "name")
3602
3614
 
@@ -3794,6 +3806,11 @@ class ProviderAuthJwtArgs:
3794
3806
  bearer_token: Optional[pulumi.Input[str]] = None,
3795
3807
  meta: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
3796
3808
  use_terraform_cloud_workload_identity: Optional[pulumi.Input[bool]] = None):
3809
+ """
3810
+ :param pulumi.Input[str] auth_method: The name of the auth method to use for login.
3811
+ :param pulumi.Input[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).
3812
+ :param pulumi.Input[Mapping[str, pulumi.Input[str]]] meta: Specifies arbitrary KV metadata linked to the token. Can be useful to track origins.
3813
+ """
3797
3814
  pulumi.set(__self__, "auth_method", auth_method)
3798
3815
  if bearer_token is not None:
3799
3816
  pulumi.set(__self__, "bearer_token", bearer_token)
@@ -3805,6 +3822,9 @@ class ProviderAuthJwtArgs:
3805
3822
  @property
3806
3823
  @pulumi.getter(name="authMethod")
3807
3824
  def auth_method(self) -> pulumi.Input[str]:
3825
+ """
3826
+ The name of the auth method to use for login.
3827
+ """
3808
3828
  return pulumi.get(self, "auth_method")
3809
3829
 
3810
3830
  @auth_method.setter
@@ -3814,6 +3834,9 @@ class ProviderAuthJwtArgs:
3814
3834
  @property
3815
3835
  @pulumi.getter(name="bearerToken")
3816
3836
  def bearer_token(self) -> Optional[pulumi.Input[str]]:
3837
+ """
3838
+ 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).
3839
+ """
3817
3840
  return pulumi.get(self, "bearer_token")
3818
3841
 
3819
3842
  @bearer_token.setter
@@ -3823,6 +3846,9 @@ class ProviderAuthJwtArgs:
3823
3846
  @property
3824
3847
  @pulumi.getter
3825
3848
  def meta(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
3849
+ """
3850
+ Specifies arbitrary KV metadata linked to the token. Can be useful to track origins.
3851
+ """
3826
3852
  return pulumi.get(self, "meta")
3827
3853
 
3828
3854
  @meta.setter
@@ -3844,12 +3870,19 @@ class ProviderHeaderArgs:
3844
3870
  def __init__(__self__, *,
3845
3871
  name: pulumi.Input[str],
3846
3872
  value: pulumi.Input[str]):
3873
+ """
3874
+ :param pulumi.Input[str] name: The name of the header.
3875
+ :param pulumi.Input[str] value: The value of the header.
3876
+ """
3847
3877
  pulumi.set(__self__, "name", name)
3848
3878
  pulumi.set(__self__, "value", value)
3849
3879
 
3850
3880
  @property
3851
3881
  @pulumi.getter
3852
3882
  def name(self) -> pulumi.Input[str]:
3883
+ """
3884
+ The name of the header.
3885
+ """
3853
3886
  return pulumi.get(self, "name")
3854
3887
 
3855
3888
  @name.setter
@@ -3859,6 +3892,9 @@ class ProviderHeaderArgs:
3859
3892
  @property
3860
3893
  @pulumi.getter
3861
3894
  def value(self) -> pulumi.Input[str]:
3895
+ """
3896
+ The value of the header.
3897
+ """
3862
3898
  return pulumi.get(self, "value")
3863
3899
 
3864
3900
  @value.setter
@@ -4,11 +4,11 @@
4
4
 
5
5
 
6
6
  import asyncio
7
+ import importlib.metadata
7
8
  import importlib.util
8
9
  import inspect
9
10
  import json
10
11
  import os
11
- import pkg_resources
12
12
  import sys
13
13
  import typing
14
14
 
@@ -72,7 +72,7 @@ def _get_semver_version():
72
72
  # to receive a valid semver string when receiving requests from the language host, so it's our
73
73
  # responsibility as the library to convert our own PEP440 version into a valid semver string.
74
74
 
75
- pep440_version_string = pkg_resources.require(root_package)[0].version
75
+ pep440_version_string = importlib.metadata.version(root_package)
76
76
  pep440_version = PEP440Version.parse(pep440_version_string)
77
77
  (major, minor, patch) = pep440_version.release
78
78
  prerelease = None
@@ -422,6 +422,7 @@ class AclAuthMethod(pulumi.CustomResource):
422
422
  import pulumi_consul as consul
423
423
 
424
424
  minikube = consul.AclAuthMethod("minikube",
425
+ name="minikube",
425
426
  type="kubernetes",
426
427
  description="dev minikube cluster",
427
428
  config_json=json.dumps({
@@ -441,6 +442,7 @@ class AclAuthMethod(pulumi.CustomResource):
441
442
  import pulumi_consul as consul
442
443
 
443
444
  oidc = consul.AclAuthMethod("oidc",
445
+ name="auth0",
444
446
  type="oidc",
445
447
  max_token_ttl="5m",
446
448
  config_json=json.dumps({
@@ -495,6 +497,7 @@ class AclAuthMethod(pulumi.CustomResource):
495
497
  import pulumi_consul as consul
496
498
 
497
499
  minikube = consul.AclAuthMethod("minikube",
500
+ name="minikube",
498
501
  type="kubernetes",
499
502
  description="dev minikube cluster",
500
503
  config_json=json.dumps({
@@ -514,6 +517,7 @@ class AclAuthMethod(pulumi.CustomResource):
514
517
  import pulumi_consul as consul
515
518
 
516
519
  oidc = consul.AclAuthMethod("oidc",
520
+ name="auth0",
517
521
  type="oidc",
518
522
  max_token_ttl="5m",
519
523
  config_json=json.dumps({
@@ -306,6 +306,7 @@ class AclBindingRule(pulumi.CustomResource):
306
306
  import pulumi_consul as consul
307
307
 
308
308
  minikube = consul.AclAuthMethod("minikube",
309
+ name="minikube",
309
310
  type="kubernetes",
310
311
  description="dev minikube cluster",
311
312
  config={
@@ -350,6 +351,7 @@ class AclBindingRule(pulumi.CustomResource):
350
351
  import pulumi_consul as consul
351
352
 
352
353
  minikube = consul.AclAuthMethod("minikube",
354
+ name="minikube",
353
355
  type="kubernetes",
354
356
  description="dev minikube cluster",
355
357
  config={
@@ -240,11 +240,11 @@ class AclPolicy(pulumi.CustomResource):
240
240
  import pulumi_consul as consul
241
241
 
242
242
  test = consul.AclPolicy("test",
243
+ name="my_policy",
243
244
  datacenters=["dc1"],
244
245
  rules=\"\"\"node_prefix "" {
245
246
  policy = "read"
246
247
  }
247
-
248
248
  \"\"\")
249
249
  ```
250
250
 
@@ -253,7 +253,7 @@ class AclPolicy(pulumi.CustomResource):
253
253
  `consul_acl_policy` can be imported:
254
254
 
255
255
  ```sh
256
- $ pulumi import consul:index/aclPolicy:AclPolicy my-policy 1c90ef03-a6dd-6a8c-ac49-042ad3752896
256
+ $ pulumi import consul:index/aclPolicy:AclPolicy my-policy 1c90ef03-a6dd-6a8c-ac49-042ad3752896
257
257
  ```
258
258
 
259
259
  :param str resource_name: The name of the resource.
@@ -281,11 +281,11 @@ class AclPolicy(pulumi.CustomResource):
281
281
  import pulumi_consul as consul
282
282
 
283
283
  test = consul.AclPolicy("test",
284
+ name="my_policy",
284
285
  datacenters=["dc1"],
285
286
  rules=\"\"\"node_prefix "" {
286
287
  policy = "read"
287
288
  }
288
-
289
289
  \"\"\")
290
290
  ```
291
291
 
@@ -294,7 +294,7 @@ class AclPolicy(pulumi.CustomResource):
294
294
  `consul_acl_policy` can be imported:
295
295
 
296
296
  ```sh
297
- $ pulumi import consul:index/aclPolicy:AclPolicy my-policy 1c90ef03-a6dd-6a8c-ac49-042ad3752896
297
+ $ pulumi import consul:index/aclPolicy:AclPolicy my-policy 1c90ef03-a6dd-6a8c-ac49-042ad3752896
298
298
  ```
299
299
 
300
300
  :param str resource_name: The name of the resource.
@@ -27,7 +27,7 @@ class AclRoleArgs:
27
27
  """
28
28
  The set of arguments for constructing a AclRole resource.
29
29
  :param pulumi.Input[str] description: A free form human readable description of the role.
30
- :param pulumi.Input[str] name: The name of node, workload identity or service.
30
+ :param pulumi.Input[str] name: The name of the ACL role.
31
31
  :param pulumi.Input[str] namespace: The namespace to create the role within.
32
32
  :param pulumi.Input[Sequence[pulumi.Input['AclRoleNodeIdentityArgs']]] node_identities: The list of node identities that should be applied to the role.
33
33
  :param pulumi.Input[str] partition: The partition the ACL role is associated with.
@@ -68,7 +68,7 @@ class AclRoleArgs:
68
68
  @pulumi.getter
69
69
  def name(self) -> Optional[pulumi.Input[str]]:
70
70
  """
71
- The name of node, workload identity or service.
71
+ The name of the ACL role.
72
72
  """
73
73
  return pulumi.get(self, "name")
74
74
 
@@ -163,7 +163,7 @@ class _AclRoleState:
163
163
  """
164
164
  Input properties used for looking up and filtering AclRole resources.
165
165
  :param pulumi.Input[str] description: A free form human readable description of the role.
166
- :param pulumi.Input[str] name: The name of node, workload identity or service.
166
+ :param pulumi.Input[str] name: The name of the ACL role.
167
167
  :param pulumi.Input[str] namespace: The namespace to create the role within.
168
168
  :param pulumi.Input[Sequence[pulumi.Input['AclRoleNodeIdentityArgs']]] node_identities: The list of node identities that should be applied to the role.
169
169
  :param pulumi.Input[str] partition: The partition the ACL role is associated with.
@@ -204,7 +204,7 @@ class _AclRoleState:
204
204
  @pulumi.getter
205
205
  def name(self) -> Optional[pulumi.Input[str]]:
206
206
  """
207
- The name of node, workload identity or service.
207
+ The name of the ACL role.
208
208
  """
209
209
  return pulumi.get(self, "name")
210
210
 
@@ -300,8 +300,6 @@ class AclRole(pulumi.CustomResource):
300
300
  templated_policies: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['AclRoleTemplatedPolicyArgs']]]]] = None,
301
301
  __props__=None):
302
302
  """
303
- The `AclRole` can be used to manage [Consul ACL roles](https://developer.hashicorp.com/consul/docs/security/acl/acl-roles).
304
-
305
303
  ## Example Usage
306
304
 
307
305
  ```python
@@ -309,9 +307,11 @@ class AclRole(pulumi.CustomResource):
309
307
  import pulumi_consul as consul
310
308
 
311
309
  read_policy = consul.AclPolicy("read-policy",
310
+ name="read-policy",
312
311
  rules="node \\"\\" { policy = \\"read\\" }",
313
312
  datacenters=["dc1"])
314
313
  read = consul.AclRole("read",
314
+ name="foo",
315
315
  description="bar",
316
316
  policies=[read_policy.id],
317
317
  service_identities=[consul.AclRoleServiceIdentityArgs(
@@ -322,13 +322,13 @@ class AclRole(pulumi.CustomResource):
322
322
  ## Import
323
323
 
324
324
  ```sh
325
- $ pulumi import consul:index/aclRole:AclRole read 816a195f-6cb1-2e8d-92af-3011ae706318
325
+ $ pulumi import consul:index/aclRole:AclRole read 816a195f-6cb1-2e8d-92af-3011ae706318
326
326
  ```
327
327
 
328
328
  :param str resource_name: The name of the resource.
329
329
  :param pulumi.ResourceOptions opts: Options for the resource.
330
330
  :param pulumi.Input[str] description: A free form human readable description of the role.
331
- :param pulumi.Input[str] name: The name of node, workload identity or service.
331
+ :param pulumi.Input[str] name: The name of the ACL role.
332
332
  :param pulumi.Input[str] namespace: The namespace to create the role within.
333
333
  :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['AclRoleNodeIdentityArgs']]]] node_identities: The list of node identities that should be applied to the role.
334
334
  :param pulumi.Input[str] partition: The partition the ACL role is associated with.
@@ -343,8 +343,6 @@ class AclRole(pulumi.CustomResource):
343
343
  args: Optional[AclRoleArgs] = None,
344
344
  opts: Optional[pulumi.ResourceOptions] = None):
345
345
  """
346
- The `AclRole` can be used to manage [Consul ACL roles](https://developer.hashicorp.com/consul/docs/security/acl/acl-roles).
347
-
348
346
  ## Example Usage
349
347
 
350
348
  ```python
@@ -352,9 +350,11 @@ class AclRole(pulumi.CustomResource):
352
350
  import pulumi_consul as consul
353
351
 
354
352
  read_policy = consul.AclPolicy("read-policy",
353
+ name="read-policy",
355
354
  rules="node \\"\\" { policy = \\"read\\" }",
356
355
  datacenters=["dc1"])
357
356
  read = consul.AclRole("read",
357
+ name="foo",
358
358
  description="bar",
359
359
  policies=[read_policy.id],
360
360
  service_identities=[consul.AclRoleServiceIdentityArgs(
@@ -365,7 +365,7 @@ class AclRole(pulumi.CustomResource):
365
365
  ## Import
366
366
 
367
367
  ```sh
368
- $ pulumi import consul:index/aclRole:AclRole read 816a195f-6cb1-2e8d-92af-3011ae706318
368
+ $ pulumi import consul:index/aclRole:AclRole read 816a195f-6cb1-2e8d-92af-3011ae706318
369
369
  ```
370
370
 
371
371
  :param str resource_name: The name of the resource.
@@ -434,7 +434,7 @@ class AclRole(pulumi.CustomResource):
434
434
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
435
435
  :param pulumi.ResourceOptions opts: Options for the resource.
436
436
  :param pulumi.Input[str] description: A free form human readable description of the role.
437
- :param pulumi.Input[str] name: The name of node, workload identity or service.
437
+ :param pulumi.Input[str] name: The name of the ACL role.
438
438
  :param pulumi.Input[str] namespace: The namespace to create the role within.
439
439
  :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['AclRoleNodeIdentityArgs']]]] node_identities: The list of node identities that should be applied to the role.
440
440
  :param pulumi.Input[str] partition: The partition the ACL role is associated with.
@@ -468,7 +468,7 @@ class AclRole(pulumi.CustomResource):
468
468
  @pulumi.getter
469
469
  def name(self) -> pulumi.Output[str]:
470
470
  """
471
- The name of node, workload identity or service.
471
+ The name of the ACL role.
472
472
  """
473
473
  return pulumi.get(self, "name")
474
474
 
@@ -105,18 +105,19 @@ class AclRolePolicyAttachment(pulumi.CustomResource):
105
105
  import pulumi_consul as consul
106
106
 
107
107
  my_role = consul.get_acl_role(name="my_role")
108
- read_policy = consul.AclPolicy("readPolicy",
108
+ read_policy = consul.AclPolicy("read_policy",
109
+ name="read-policy",
109
110
  rules="node \\"\\" { policy = \\"read\\" }",
110
111
  datacenters=["dc1"])
111
- my_role_read_policy = consul.AclRolePolicyAttachment("myRoleReadPolicy",
112
- role_id=data["consul_acl_role"]["test"]["id"],
112
+ my_role_read_policy = consul.AclRolePolicyAttachment("my_role_read_policy",
113
+ role_id=test["id"],
113
114
  policy=read_policy.name)
114
115
  ```
115
116
 
116
117
  ## Import
117
118
 
118
119
  ```sh
119
- $ pulumi import consul:index/aclRolePolicyAttachment:AclRolePolicyAttachment my_role_read_policy 624d94ca-bc5c-f960-4e83-0a609cf588be:policy_name
120
+ $ pulumi import consul:index/aclRolePolicyAttachment:AclRolePolicyAttachment my_role_read_policy 624d94ca-bc5c-f960-4e83-0a609cf588be:policy_name
120
121
  ```
121
122
 
122
123
  :param str resource_name: The name of the resource.
@@ -138,18 +139,19 @@ class AclRolePolicyAttachment(pulumi.CustomResource):
138
139
  import pulumi_consul as consul
139
140
 
140
141
  my_role = consul.get_acl_role(name="my_role")
141
- read_policy = consul.AclPolicy("readPolicy",
142
+ read_policy = consul.AclPolicy("read_policy",
143
+ name="read-policy",
142
144
  rules="node \\"\\" { policy = \\"read\\" }",
143
145
  datacenters=["dc1"])
144
- my_role_read_policy = consul.AclRolePolicyAttachment("myRoleReadPolicy",
145
- role_id=data["consul_acl_role"]["test"]["id"],
146
+ my_role_read_policy = consul.AclRolePolicyAttachment("my_role_read_policy",
147
+ role_id=test["id"],
146
148
  policy=read_policy.name)
147
149
  ```
148
150
 
149
151
  ## Import
150
152
 
151
153
  ```sh
152
- $ pulumi import consul:index/aclRolePolicyAttachment:AclRolePolicyAttachment my_role_read_policy 624d94ca-bc5c-f960-4e83-0a609cf588be:policy_name
154
+ $ pulumi import consul:index/aclRolePolicyAttachment:AclRolePolicyAttachment my_role_read_policy 624d94ca-bc5c-f960-4e83-0a609cf588be:policy_name
153
155
  ```
154
156
 
155
157
  :param str resource_name: The name of the resource.