pulumi-consul 3.11.1__py3-none-any.whl → 3.11.2__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 (54) hide show
  1. pulumi_consul/_inputs.py +40 -4
  2. pulumi_consul/_utilities.py +2 -2
  3. pulumi_consul/acl_auth_method.py +8 -0
  4. pulumi_consul/acl_binding_rule.py +4 -0
  5. pulumi_consul/acl_policy.py +6 -2
  6. pulumi_consul/acl_role.py +6 -6
  7. pulumi_consul/acl_role_policy_attachment.py +6 -2
  8. pulumi_consul/acl_token.py +8 -4
  9. pulumi_consul/acl_token_policy_attachment.py +10 -6
  10. pulumi_consul/acl_token_role_attachment.py +6 -4
  11. pulumi_consul/admin_partition.py +6 -2
  12. pulumi_consul/agent_service.py +4 -0
  13. pulumi_consul/autopilot_config.py +4 -0
  14. pulumi_consul/catalog_entry.py +4 -0
  15. pulumi_consul/certificate_authority.py +30 -16
  16. pulumi_consul/config/outputs.py +24 -0
  17. pulumi_consul/config_entry.py +48 -10
  18. pulumi_consul/config_entry_service_defaults.py +2 -2
  19. pulumi_consul/config_entry_service_intentions.py +4 -4
  20. pulumi_consul/config_entry_service_resolver.py +4 -4
  21. pulumi_consul/config_entry_service_router.py +4 -4
  22. pulumi_consul/config_entry_service_splitter.py +6 -6
  23. pulumi_consul/get_acl_auth_method.py +4 -0
  24. pulumi_consul/get_acl_policy.py +4 -0
  25. pulumi_consul/get_acl_role.py +4 -0
  26. pulumi_consul/get_acl_token.py +4 -0
  27. pulumi_consul/get_acl_token_secret_id.py +4 -0
  28. pulumi_consul/get_agent_config.py +4 -0
  29. pulumi_consul/get_autopilot_health.py +4 -0
  30. pulumi_consul/get_key_prefix.py +8 -0
  31. pulumi_consul/get_keys.py +4 -0
  32. pulumi_consul/get_network_area_members.py +4 -0
  33. pulumi_consul/get_network_segments.py +4 -0
  34. pulumi_consul/get_peering.py +4 -0
  35. pulumi_consul/get_peerings.py +4 -0
  36. pulumi_consul/intention.py +10 -2
  37. pulumi_consul/key_prefix.py +10 -4
  38. pulumi_consul/keys.py +4 -0
  39. pulumi_consul/license.py +4 -0
  40. pulumi_consul/namespace.py +10 -4
  41. pulumi_consul/namespace_policy_attachment.py +6 -4
  42. pulumi_consul/namespace_role_attachment.py +6 -4
  43. pulumi_consul/network_area.py +4 -0
  44. pulumi_consul/node.py +6 -2
  45. pulumi_consul/outputs.py +104 -2
  46. pulumi_consul/peering.py +4 -0
  47. pulumi_consul/peering_token.py +4 -0
  48. pulumi_consul/prepared_query.py +6 -2
  49. pulumi_consul/service.py +64 -0
  50. {pulumi_consul-3.11.1.dist-info → pulumi_consul-3.11.2.dist-info}/METADATA +2 -2
  51. pulumi_consul-3.11.2.dist-info/RECORD +70 -0
  52. {pulumi_consul-3.11.1.dist-info → pulumi_consul-3.11.2.dist-info}/WHEEL +1 -1
  53. pulumi_consul-3.11.1.dist-info/RECORD +0 -70
  54. {pulumi_consul-3.11.1.dist-info → pulumi_consul-3.11.2.dist-info}/top_level.txt +0 -0
@@ -250,6 +250,7 @@ class NetworkArea(pulumi.CustomResource):
250
250
 
251
251
  ## Example Usage
252
252
 
253
+ <!--Start PulumiCodeChooser -->
253
254
  ```python
254
255
  import pulumi
255
256
  import pulumi_consul as consul
@@ -259,6 +260,7 @@ class NetworkArea(pulumi.CustomResource):
259
260
  retry_joins=["1.2.3.4"],
260
261
  use_tls=True)
261
262
  ```
263
+ <!--End PulumiCodeChooser -->
262
264
 
263
265
  :param str resource_name: The name of the resource.
264
266
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -292,6 +294,7 @@ class NetworkArea(pulumi.CustomResource):
292
294
 
293
295
  ## Example Usage
294
296
 
297
+ <!--Start PulumiCodeChooser -->
295
298
  ```python
296
299
  import pulumi
297
300
  import pulumi_consul as consul
@@ -301,6 +304,7 @@ class NetworkArea(pulumi.CustomResource):
301
304
  retry_joins=["1.2.3.4"],
302
305
  use_tls=True)
303
306
  ```
307
+ <!--End PulumiCodeChooser -->
304
308
 
305
309
  :param str resource_name: The name of the resource.
306
310
  :param NetworkAreaArgs args: The arguments to use to populate this resource's properties.
pulumi_consul/node.py CHANGED
@@ -248,19 +248,21 @@ class Node(pulumi.CustomResource):
248
248
 
249
249
  ## Example Usage
250
250
 
251
+ <!--Start PulumiCodeChooser -->
251
252
  ```python
252
253
  import pulumi
253
254
  import pulumi_consul as consul
254
255
 
255
256
  foobar = consul.Node("foobar", address="192.168.10.10")
256
257
  ```
258
+ <!--End PulumiCodeChooser -->
257
259
 
258
260
  ## Import
259
261
 
260
262
  The `consul_node` resource can be imported:
261
263
 
262
264
  ```sh
263
- $ pulumi import consul:index/node:Node example node-name
265
+ $ pulumi import consul:index/node:Node example node-name
264
266
  ```
265
267
 
266
268
  :param str resource_name: The name of the resource.
@@ -283,19 +285,21 @@ class Node(pulumi.CustomResource):
283
285
 
284
286
  ## Example Usage
285
287
 
288
+ <!--Start PulumiCodeChooser -->
286
289
  ```python
287
290
  import pulumi
288
291
  import pulumi_consul as consul
289
292
 
290
293
  foobar = consul.Node("foobar", address="192.168.10.10")
291
294
  ```
295
+ <!--End PulumiCodeChooser -->
292
296
 
293
297
  ## Import
294
298
 
295
299
  The `consul_node` resource can be imported:
296
300
 
297
301
  ```sh
298
- $ pulumi import consul:index/node:Node example node-name
302
+ $ pulumi import consul:index/node:Node example node-name
299
303
  ```
300
304
 
301
305
  :param str resource_name: The name of the resource.
pulumi_consul/outputs.py CHANGED
@@ -865,6 +865,7 @@ class ConfigEntryServiceDefaultsUpstreamConfigDefault(dict):
865
865
  :param Sequence['ConfigEntryServiceDefaultsUpstreamConfigDefaultLimitArgs'] limits: Map that specifies a set of limits to apply to when connecting upstream services.
866
866
  :param Sequence['ConfigEntryServiceDefaultsUpstreamConfigDefaultMeshGatewayArgs'] mesh_gateways: Specifies the default mesh gateway mode field for all upstreams.
867
867
  :param Sequence['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.
868
+ :param str protocol: Specifies the default protocol for the service.
868
869
  """
869
870
  if balance_outbound_connections is not None:
870
871
  pulumi.set(__self__, "balance_outbound_connections", balance_outbound_connections)
@@ -919,6 +920,9 @@ class ConfigEntryServiceDefaultsUpstreamConfigDefault(dict):
919
920
  @property
920
921
  @pulumi.getter
921
922
  def protocol(self) -> Optional[str]:
923
+ """
924
+ Specifies the default protocol for the service.
925
+ """
922
926
  return pulumi.get(self, "protocol")
923
927
 
924
928
 
@@ -1132,10 +1136,12 @@ class ConfigEntryServiceDefaultsUpstreamConfigOverride(dict):
1132
1136
  :param str balance_outbound_connections: Sets the strategy for allocating outbound connections from upstreams across Envoy proxy threads.
1133
1137
  :param Sequence['ConfigEntryServiceDefaultsUpstreamConfigOverrideLimitArgs'] limits: Map that specifies a set of limits to apply to when connecting upstream services.
1134
1138
  :param Sequence['ConfigEntryServiceDefaultsUpstreamConfigOverrideMeshGatewayArgs'] mesh_gateways: Specifies the default mesh gateway mode field for all upstreams.
1139
+ :param str name: Specifies the name of the service you are setting the defaults for.
1135
1140
  :param str namespace: Specifies the namespace containing the upstream service that the configuration applies to.
1136
1141
  :param str partition: Specifies the name of the name of the Consul admin partition that the configuration entry applies to.
1137
1142
  :param Sequence['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.
1138
1143
  :param str peer: Specifies the peer name of the upstream service that the configuration applies to.
1144
+ :param str protocol: Specifies the default protocol for the service.
1139
1145
  """
1140
1146
  if balance_outbound_connections is not None:
1141
1147
  pulumi.set(__self__, "balance_outbound_connections", balance_outbound_connections)
@@ -1197,6 +1203,9 @@ class ConfigEntryServiceDefaultsUpstreamConfigOverride(dict):
1197
1203
  @property
1198
1204
  @pulumi.getter
1199
1205
  def name(self) -> Optional[str]:
1206
+ """
1207
+ Specifies the name of the service you are setting the defaults for.
1208
+ """
1200
1209
  return pulumi.get(self, "name")
1201
1210
 
1202
1211
  @property
@@ -1234,6 +1243,9 @@ class ConfigEntryServiceDefaultsUpstreamConfigOverride(dict):
1234
1243
  @property
1235
1244
  @pulumi.getter
1236
1245
  def protocol(self) -> Optional[str]:
1246
+ """
1247
+ Specifies the default protocol for the service.
1248
+ """
1237
1249
  return pulumi.get(self, "protocol")
1238
1250
 
1239
1251
 
@@ -3404,8 +3416,8 @@ class KeysKey(dict):
3404
3416
  @property
3405
3417
  @pulumi.getter
3406
3418
  def name(self) -> Optional[str]:
3407
- warnings.warn("""Using consul_keys resource to *read* is deprecated; please use consul_keys data source instead""", DeprecationWarning)
3408
- pulumi.log.warn("""name is deprecated: Using consul_keys resource to *read* is deprecated; please use consul_keys data source instead""")
3419
+ warnings.warn("""Using Keys resource to *read* is deprecated; please use Keys data source instead""", DeprecationWarning)
3420
+ pulumi.log.warn("""name is deprecated: Using Keys resource to *read* is deprecated; please use Keys data source instead""")
3409
3421
 
3410
3422
  return pulumi.get(self, "name")
3411
3423
 
@@ -3807,17 +3819,27 @@ class GetAclRoleNodeIdentityResult(dict):
3807
3819
  def __init__(__self__, *,
3808
3820
  datacenter: str,
3809
3821
  node_name: str):
3822
+ """
3823
+ :param str datacenter: Specifies the nodes datacenter. This will result in effective policy only being valid in that datacenter.
3824
+ :param str node_name: The name of the node.
3825
+ """
3810
3826
  pulumi.set(__self__, "datacenter", datacenter)
3811
3827
  pulumi.set(__self__, "node_name", node_name)
3812
3828
 
3813
3829
  @property
3814
3830
  @pulumi.getter
3815
3831
  def datacenter(self) -> str:
3832
+ """
3833
+ Specifies the nodes datacenter. This will result in effective policy only being valid in that datacenter.
3834
+ """
3816
3835
  return pulumi.get(self, "datacenter")
3817
3836
 
3818
3837
  @property
3819
3838
  @pulumi.getter(name="nodeName")
3820
3839
  def node_name(self) -> str:
3840
+ """
3841
+ The name of the node.
3842
+ """
3821
3843
  return pulumi.get(self, "node_name")
3822
3844
 
3823
3845
 
@@ -3826,17 +3848,27 @@ class GetAclRolePolicyResult(dict):
3826
3848
  def __init__(__self__, *,
3827
3849
  id: str,
3828
3850
  name: str):
3851
+ """
3852
+ :param str id: The ID of the policy.
3853
+ :param str name: The name of the policy.
3854
+ """
3829
3855
  pulumi.set(__self__, "id", id)
3830
3856
  pulumi.set(__self__, "name", name)
3831
3857
 
3832
3858
  @property
3833
3859
  @pulumi.getter
3834
3860
  def id(self) -> str:
3861
+ """
3862
+ The ID of the policy.
3863
+ """
3835
3864
  return pulumi.get(self, "id")
3836
3865
 
3837
3866
  @property
3838
3867
  @pulumi.getter
3839
3868
  def name(self) -> str:
3869
+ """
3870
+ The name of the policy.
3871
+ """
3840
3872
  return pulumi.get(self, "name")
3841
3873
 
3842
3874
 
@@ -3845,6 +3877,10 @@ class GetAclRoleServiceIdentityResult(dict):
3845
3877
  def __init__(__self__, *,
3846
3878
  datacenters: Optional[Sequence[str]] = None,
3847
3879
  service_name: Optional[str] = None):
3880
+ """
3881
+ :param Sequence[str] datacenters: Specifies the datacenters the effective policy is valid within.
3882
+ :param str service_name: The name of the service.
3883
+ """
3848
3884
  if datacenters is not None:
3849
3885
  pulumi.set(__self__, "datacenters", datacenters)
3850
3886
  if service_name is not None:
@@ -3853,11 +3889,17 @@ class GetAclRoleServiceIdentityResult(dict):
3853
3889
  @property
3854
3890
  @pulumi.getter
3855
3891
  def datacenters(self) -> Optional[Sequence[str]]:
3892
+ """
3893
+ Specifies the datacenters the effective policy is valid within.
3894
+ """
3856
3895
  return pulumi.get(self, "datacenters")
3857
3896
 
3858
3897
  @property
3859
3898
  @pulumi.getter(name="serviceName")
3860
3899
  def service_name(self) -> Optional[str]:
3900
+ """
3901
+ The name of the service.
3902
+ """
3861
3903
  return pulumi.get(self, "service_name")
3862
3904
 
3863
3905
 
@@ -3867,6 +3909,11 @@ class GetAclRoleTemplatedPolicyResult(dict):
3867
3909
  datacenters: Sequence[str],
3868
3910
  template_name: str,
3869
3911
  template_variables: Sequence['outputs.GetAclRoleTemplatedPolicyTemplateVariableResult']):
3912
+ """
3913
+ :param Sequence[str] datacenters: Specifies the datacenters the effective policy is valid within.
3914
+ :param str template_name: The name of the templated policies.
3915
+ :param Sequence['GetAclRoleTemplatedPolicyTemplateVariableArgs'] template_variables: The templated policy variables.
3916
+ """
3870
3917
  pulumi.set(__self__, "datacenters", datacenters)
3871
3918
  pulumi.set(__self__, "template_name", template_name)
3872
3919
  pulumi.set(__self__, "template_variables", template_variables)
@@ -3874,16 +3921,25 @@ class GetAclRoleTemplatedPolicyResult(dict):
3874
3921
  @property
3875
3922
  @pulumi.getter
3876
3923
  def datacenters(self) -> Sequence[str]:
3924
+ """
3925
+ Specifies the datacenters the effective policy is valid within.
3926
+ """
3877
3927
  return pulumi.get(self, "datacenters")
3878
3928
 
3879
3929
  @property
3880
3930
  @pulumi.getter(name="templateName")
3881
3931
  def template_name(self) -> str:
3932
+ """
3933
+ The name of the templated policies.
3934
+ """
3882
3935
  return pulumi.get(self, "template_name")
3883
3936
 
3884
3937
  @property
3885
3938
  @pulumi.getter(name="templateVariables")
3886
3939
  def template_variables(self) -> Sequence['outputs.GetAclRoleTemplatedPolicyTemplateVariableResult']:
3940
+ """
3941
+ The templated policy variables.
3942
+ """
3887
3943
  return pulumi.get(self, "template_variables")
3888
3944
 
3889
3945
 
@@ -3891,11 +3947,17 @@ class GetAclRoleTemplatedPolicyResult(dict):
3891
3947
  class GetAclRoleTemplatedPolicyTemplateVariableResult(dict):
3892
3948
  def __init__(__self__, *,
3893
3949
  name: str):
3950
+ """
3951
+ :param str name: The name of node, workload identity or service.
3952
+ """
3894
3953
  pulumi.set(__self__, "name", name)
3895
3954
 
3896
3955
  @property
3897
3956
  @pulumi.getter
3898
3957
  def name(self) -> str:
3958
+ """
3959
+ The name of node, workload identity or service.
3960
+ """
3899
3961
  return pulumi.get(self, "name")
3900
3962
 
3901
3963
 
@@ -3904,17 +3966,27 @@ class GetAclTokenNodeIdentityResult(dict):
3904
3966
  def __init__(__self__, *,
3905
3967
  datacenter: str,
3906
3968
  node_name: str):
3969
+ """
3970
+ :param str datacenter: Specifies the node's datacenter.
3971
+ :param str node_name: The list of node identities that should be applied to the token.
3972
+ """
3907
3973
  pulumi.set(__self__, "datacenter", datacenter)
3908
3974
  pulumi.set(__self__, "node_name", node_name)
3909
3975
 
3910
3976
  @property
3911
3977
  @pulumi.getter
3912
3978
  def datacenter(self) -> str:
3979
+ """
3980
+ Specifies the node's datacenter.
3981
+ """
3913
3982
  return pulumi.get(self, "datacenter")
3914
3983
 
3915
3984
  @property
3916
3985
  @pulumi.getter(name="nodeName")
3917
3986
  def node_name(self) -> str:
3987
+ """
3988
+ The list of node identities that should be applied to the token.
3989
+ """
3918
3990
  return pulumi.get(self, "node_name")
3919
3991
 
3920
3992
 
@@ -3961,17 +4033,27 @@ class GetAclTokenServiceIdentityResult(dict):
3961
4033
  def __init__(__self__, *,
3962
4034
  datacenters: Sequence[str],
3963
4035
  service_name: str):
4036
+ """
4037
+ :param Sequence[str] datacenters: Specifies the datacenters the effective policy is valid within.
4038
+ :param str service_name: The name of the service.
4039
+ """
3964
4040
  pulumi.set(__self__, "datacenters", datacenters)
3965
4041
  pulumi.set(__self__, "service_name", service_name)
3966
4042
 
3967
4043
  @property
3968
4044
  @pulumi.getter
3969
4045
  def datacenters(self) -> Sequence[str]:
4046
+ """
4047
+ Specifies the datacenters the effective policy is valid within.
4048
+ """
3970
4049
  return pulumi.get(self, "datacenters")
3971
4050
 
3972
4051
  @property
3973
4052
  @pulumi.getter(name="serviceName")
3974
4053
  def service_name(self) -> str:
4054
+ """
4055
+ The name of the service.
4056
+ """
3975
4057
  return pulumi.get(self, "service_name")
3976
4058
 
3977
4059
 
@@ -3981,6 +4063,11 @@ class GetAclTokenTemplatedPolicyResult(dict):
3981
4063
  datacenters: Sequence[str],
3982
4064
  template_name: str,
3983
4065
  template_variables: Sequence['outputs.GetAclTokenTemplatedPolicyTemplateVariableResult']):
4066
+ """
4067
+ :param Sequence[str] datacenters: Specifies the datacenters the effective policy is valid within.
4068
+ :param str template_name: The name of the templated policies.
4069
+ :param Sequence['GetAclTokenTemplatedPolicyTemplateVariableArgs'] template_variables: The templated policy variables.
4070
+ """
3984
4071
  pulumi.set(__self__, "datacenters", datacenters)
3985
4072
  pulumi.set(__self__, "template_name", template_name)
3986
4073
  pulumi.set(__self__, "template_variables", template_variables)
@@ -3988,16 +4075,25 @@ class GetAclTokenTemplatedPolicyResult(dict):
3988
4075
  @property
3989
4076
  @pulumi.getter
3990
4077
  def datacenters(self) -> Sequence[str]:
4078
+ """
4079
+ Specifies the datacenters the effective policy is valid within.
4080
+ """
3991
4081
  return pulumi.get(self, "datacenters")
3992
4082
 
3993
4083
  @property
3994
4084
  @pulumi.getter(name="templateName")
3995
4085
  def template_name(self) -> str:
4086
+ """
4087
+ The name of the templated policies.
4088
+ """
3996
4089
  return pulumi.get(self, "template_name")
3997
4090
 
3998
4091
  @property
3999
4092
  @pulumi.getter(name="templateVariables")
4000
4093
  def template_variables(self) -> Sequence['outputs.GetAclTokenTemplatedPolicyTemplateVariableResult']:
4094
+ """
4095
+ The templated policy variables.
4096
+ """
4001
4097
  return pulumi.get(self, "template_variables")
4002
4098
 
4003
4099
 
@@ -4005,11 +4101,17 @@ class GetAclTokenTemplatedPolicyResult(dict):
4005
4101
  class GetAclTokenTemplatedPolicyTemplateVariableResult(dict):
4006
4102
  def __init__(__self__, *,
4007
4103
  name: str):
4104
+ """
4105
+ :param str name: The name of node, workload identity or service.
4106
+ """
4008
4107
  pulumi.set(__self__, "name", name)
4009
4108
 
4010
4109
  @property
4011
4110
  @pulumi.getter
4012
4111
  def name(self) -> str:
4112
+ """
4113
+ The name of node, workload identity or service.
4114
+ """
4013
4115
  return pulumi.get(self, "name")
4014
4116
 
4015
4117
 
pulumi_consul/peering.py CHANGED
@@ -238,6 +238,7 @@ class Peering(pulumi.CustomResource):
238
238
 
239
239
  ## Example Usage
240
240
 
241
+ <!--Start PulumiCodeChooser -->
241
242
  ```python
242
243
  import pulumi
243
244
  import pulumi_consul as consul
@@ -255,6 +256,7 @@ class Peering(pulumi.CustomResource):
255
256
  },
256
257
  opts=pulumi.ResourceOptions(provider=consul["eu"]))
257
258
  ```
259
+ <!--End PulumiCodeChooser -->
258
260
 
259
261
  :param str resource_name: The name of the resource.
260
262
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -279,6 +281,7 @@ class Peering(pulumi.CustomResource):
279
281
 
280
282
  ## Example Usage
281
283
 
284
+ <!--Start PulumiCodeChooser -->
282
285
  ```python
283
286
  import pulumi
284
287
  import pulumi_consul as consul
@@ -296,6 +299,7 @@ class Peering(pulumi.CustomResource):
296
299
  },
297
300
  opts=pulumi.ResourceOptions(provider=consul["eu"]))
298
301
  ```
302
+ <!--End PulumiCodeChooser -->
299
303
 
300
304
  :param str resource_name: The name of the resource.
301
305
  :param PeeringArgs args: The arguments to use to populate this resource's properties.
@@ -150,12 +150,14 @@ class PeeringToken(pulumi.CustomResource):
150
150
 
151
151
  ## Example Usage
152
152
 
153
+ <!--Start PulumiCodeChooser -->
153
154
  ```python
154
155
  import pulumi
155
156
  import pulumi_consul as consul
156
157
 
157
158
  token = consul.PeeringToken("token", peer_name="eu-cluster")
158
159
  ```
160
+ <!--End PulumiCodeChooser -->
159
161
 
160
162
  :param str resource_name: The name of the resource.
161
163
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -179,12 +181,14 @@ class PeeringToken(pulumi.CustomResource):
179
181
 
180
182
  ## Example Usage
181
183
 
184
+ <!--Start PulumiCodeChooser -->
182
185
  ```python
183
186
  import pulumi
184
187
  import pulumi_consul as consul
185
188
 
186
189
  token = consul.PeeringToken("token", peer_name="eu-cluster")
187
190
  ```
191
+ <!--End PulumiCodeChooser -->
188
192
 
189
193
  :param str resource_name: The name of the resource.
190
194
  :param PeeringTokenArgs args: The arguments to use to populate this resource's properties.
@@ -585,6 +585,7 @@ class PreparedQuery(pulumi.CustomResource):
585
585
  """
586
586
  ## Example Usage
587
587
 
588
+ <!--Start PulumiCodeChooser -->
588
589
  ```python
589
590
  import pulumi
590
591
  import pulumi_consul as consul
@@ -641,11 +642,12 @@ class PreparedQuery(pulumi.CustomResource):
641
642
  ),
642
643
  token="abcd")
643
644
  ```
645
+ <!--End PulumiCodeChooser -->
644
646
 
645
647
  ## Import
646
648
 
647
649
  ```sh
648
- $ pulumi import consul:index/preparedQuery:PreparedQuery my_service 71ecfb82-717a-4258-b4b6-2fb75144d856
650
+ $ pulumi import consul:index/preparedQuery:PreparedQuery my_service 71ecfb82-717a-4258-b4b6-2fb75144d856
649
651
  ```
650
652
 
651
653
  :param str resource_name: The name of the resource.
@@ -676,6 +678,7 @@ class PreparedQuery(pulumi.CustomResource):
676
678
  """
677
679
  ## Example Usage
678
680
 
681
+ <!--Start PulumiCodeChooser -->
679
682
  ```python
680
683
  import pulumi
681
684
  import pulumi_consul as consul
@@ -732,11 +735,12 @@ class PreparedQuery(pulumi.CustomResource):
732
735
  ),
733
736
  token="abcd")
734
737
  ```
738
+ <!--End PulumiCodeChooser -->
735
739
 
736
740
  ## Import
737
741
 
738
742
  ```sh
739
- $ pulumi import consul:index/preparedQuery:PreparedQuery my_service 71ecfb82-717a-4258-b4b6-2fb75144d856
743
+ $ pulumi import consul:index/preparedQuery:PreparedQuery my_service 71ecfb82-717a-4258-b4b6-2fb75144d856
740
744
  ```
741
745
 
742
746
  :param str resource_name: The name of the resource.
pulumi_consul/service.py CHANGED
@@ -469,6 +469,38 @@ class Service(pulumi.CustomResource):
469
469
  registered, it is not recommended to use this resource as the service will be
470
470
  removed during the next [anti-entropy synchronization](https://www.consul.io/docs/architecture/anti-entropy).
471
471
 
472
+ ## Example Usage
473
+
474
+ Creating a new node with the service:
475
+
476
+ <!--Start PulumiCodeChooser -->
477
+ ```python
478
+ import pulumi
479
+ import pulumi_consul as consul
480
+
481
+ compute = consul.Node("compute", address="www.google.com")
482
+ google = consul.Service("google",
483
+ node=compute.name,
484
+ port=80,
485
+ tags=["tag0"])
486
+ ```
487
+ <!--End PulumiCodeChooser -->
488
+
489
+ Utilizing an existing known node:
490
+
491
+ <!--Start PulumiCodeChooser -->
492
+ ```python
493
+ import pulumi
494
+ import pulumi_consul as consul
495
+
496
+ google = consul.Service("google",
497
+ node="google",
498
+ port=443)
499
+ ```
500
+ <!--End PulumiCodeChooser -->
501
+
502
+ Register a health-check:
503
+
472
504
  :param str resource_name: The name of the resource.
473
505
  :param pulumi.ResourceOptions opts: Options for the resource.
474
506
  :param pulumi.Input[str] address: The address of the service. Defaults to the address of the node.
@@ -499,6 +531,38 @@ class Service(pulumi.CustomResource):
499
531
  registered, it is not recommended to use this resource as the service will be
500
532
  removed during the next [anti-entropy synchronization](https://www.consul.io/docs/architecture/anti-entropy).
501
533
 
534
+ ## Example Usage
535
+
536
+ Creating a new node with the service:
537
+
538
+ <!--Start PulumiCodeChooser -->
539
+ ```python
540
+ import pulumi
541
+ import pulumi_consul as consul
542
+
543
+ compute = consul.Node("compute", address="www.google.com")
544
+ google = consul.Service("google",
545
+ node=compute.name,
546
+ port=80,
547
+ tags=["tag0"])
548
+ ```
549
+ <!--End PulumiCodeChooser -->
550
+
551
+ Utilizing an existing known node:
552
+
553
+ <!--Start PulumiCodeChooser -->
554
+ ```python
555
+ import pulumi
556
+ import pulumi_consul as consul
557
+
558
+ google = consul.Service("google",
559
+ node="google",
560
+ port=443)
561
+ ```
562
+ <!--End PulumiCodeChooser -->
563
+
564
+ Register a health-check:
565
+
502
566
  :param str resource_name: The name of the resource.
503
567
  :param ServiceArgs args: The arguments to use to populate this resource's properties.
504
568
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -1,12 +1,12 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pulumi_consul
3
- Version: 3.11.1
3
+ Version: 3.11.2
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
@@ -0,0 +1,70 @@
1
+ pulumi_consul/__init__.py,sha256=WEdXDw8m0r_d5zps4HIp-KZjaIErfJLypM_JVn9whIA,8027
2
+ pulumi_consul/_inputs.py,sha256=Y0SM0tucOqZ0WhBtR2ozXTkoALk9fqpGJaqTrlpM_D8,217041
3
+ pulumi_consul/_utilities.py,sha256=b6gJn0IIeM1t6Q7EVjqw3yhuGyP-uENQhtL5yp7aHR8,9248
4
+ pulumi_consul/acl_auth_method.py,sha256=aiUGuGWvwI9NIbtdgEIg9ZEoT9y5My9KwdoU4zYI5YA,33087
5
+ pulumi_consul/acl_binding_rule.py,sha256=jVuC08OiIoiM9myAPJDAmF_K1Ft2MgO-EoLZTsywtzM,22832
6
+ pulumi_consul/acl_policy.py,sha256=33_ks-t5DAvDlrbfxEUzbybmcRk63tQplXLkvvSrhBI,15722
7
+ pulumi_consul/acl_role.py,sha256=014DshuxiD3zusbI4P8pW5rblt-enJhPGtGHC1aJve0,24150
8
+ pulumi_consul/acl_role_policy_attachment.py,sha256=ftXBcVVeYM0cfHEnkuy7nJbvu__fxsaNlfQ2janll8w,8679
9
+ pulumi_consul/acl_token.py,sha256=G85RzcvLRd7yqGzbJX3R6e7wulnW-4yWMkSKiGyGLqk,31483
10
+ pulumi_consul/acl_token_policy_attachment.py,sha256=glF99m1ImmIG7uyNOQyRNR24D1cTrsayKh-e3ANXrm8,8508
11
+ pulumi_consul/acl_token_role_attachment.py,sha256=3o1wjCqBWTVQGK-PNLQswAt8rVjiHwoUPmcvMYdHrM8,7757
12
+ pulumi_consul/admin_partition.py,sha256=I_u4oYHj-PPNM1-5OxLN0pPu7cKuEF_ho6HYw9FK1uk,8663
13
+ pulumi_consul/agent_service.py,sha256=eG43TMRo_91t9nfM9DZ8r65yYWwSe3W1bXtWuqeRoJs,13089
14
+ pulumi_consul/autopilot_config.py,sha256=cVfU9Mh4dSqxAtqNw5mSZwF7IlXiIH-UsyW8Fl8ZYV0,28179
15
+ pulumi_consul/catalog_entry.py,sha256=n_iirVpenRKG7_547HwPSGs9V2503tgRyhmTqqAesZM,18949
16
+ pulumi_consul/certificate_authority.py,sha256=KV0uvGM4e4yC7zgoh0_DhwhyVolNvGU6F_4r8bsMkU0,14385
17
+ pulumi_consul/config_entry.py,sha256=SmfzzuYn3F8noeAL3cy4PZVsM7RtDfixaR87oI7znOM,30510
18
+ pulumi_consul/config_entry_service_defaults.py,sha256=NEWQuq9H4yZfgem7wyss5Zx8c9d7W40pFYWjgdv75d0,52638
19
+ pulumi_consul/config_entry_service_intentions.py,sha256=XKcbpbDnUnftgcHauhaYlI2WNvXajbEAOOcyqUH2bRk,22682
20
+ pulumi_consul/config_entry_service_resolver.py,sha256=SVqC3tPWjjiVFol9LffH-0mtUramvFSjMr6OYETtjTg,35945
21
+ pulumi_consul/config_entry_service_router.py,sha256=jQjhFjttiWv0f1fONybipn3JsGpLQ_g7AwCKLEfsr-o,16960
22
+ pulumi_consul/config_entry_service_splitter.py,sha256=QWY7JZsl40yf0k2LHnPY3-7_WzHiVTJxbiq08GbtjOI,20354
23
+ pulumi_consul/get_acl_auth_method.py,sha256=DCcl53wetlkmDw5HHrvPCKq8llPN4e1GarQkXJzZwcI,9645
24
+ pulumi_consul/get_acl_policy.py,sha256=GPoln4Z9pJMG9nVYegoJf_XyI7pMGI1dWzaDVSiwX44,6066
25
+ pulumi_consul/get_acl_role.py,sha256=UTkbbvlf7OXlLK7n2ysm9AzNxjYPZG8KSbY7p_lyzbo,7627
26
+ pulumi_consul/get_acl_token.py,sha256=1nnw-g3CIxH1l9WRrv9NhzrQUcsA4mPxjdgXDkU_bsU,9948
27
+ pulumi_consul/get_acl_token_secret_id.py,sha256=wMWYRAHpM-ebyzAOpHLftJRAj9pnGe4qWHZx68UEw9I,7045
28
+ pulumi_consul/get_agent_config.py,sha256=6DY5BK6_DTGkNz3Z-ghSy9qpyhrgMoOGA8zlmkRttxw,6099
29
+ pulumi_consul/get_agent_self.py,sha256=-cw13p0lRJLyj8qvQp06ZZ5c18JatSdw1am6QoJZqnE,43212
30
+ pulumi_consul/get_autopilot_health.py,sha256=5891L7T78VCuGE_VLh0VD3TZBgnu-elyTRwtQrjUSSA,5406
31
+ pulumi_consul/get_catalog_nodes.py,sha256=nZZIzVkm74PtG34IlKugBZnX3adeQyOSNmoZz_mHKIE,5881
32
+ pulumi_consul/get_catalog_service.py,sha256=U3aR3Nnbx5ZgdOzBhQFyFpxbwD2nbjKVxgt0psWZ0ZA,8753
33
+ pulumi_consul/get_catalog_services.py,sha256=C19KcxqjgTS_rc2m_xhNZCt-iEeepcx-l726gA-Kj24,6190
34
+ pulumi_consul/get_config_entry.py,sha256=8pHLWLT5RUVPiJj5zU2VV1xkGsT9JpLsmVwxeqbEpzE,5478
35
+ pulumi_consul/get_datacenters.py,sha256=WNivbaPSVbCtwHtvdRjljUti1YWaOJtqxBBc-_7IFEc,2669
36
+ pulumi_consul/get_key_prefix.py,sha256=0ENz8hzYFSQlhzMSD2OiJbWJRzL2ymF8YR5Wrz_luss,10915
37
+ pulumi_consul/get_keys.py,sha256=K1lMx4Wgx-XE4VpxHP0ML950T02TzmxWjnL7yVMiPr4,9589
38
+ pulumi_consul/get_network_area_members.py,sha256=c5BtALRo3Q1_PNTx4TUrarWftDP9KVSX_1t4x91dUEI,6712
39
+ pulumi_consul/get_network_segments.py,sha256=nggXIInwqO0SXSs1_rn7HiwqeU1qwQ3I6OqD2bfSiho,5551
40
+ pulumi_consul/get_nodes.py,sha256=ZcKZWIWuWgclQGj4QYTqKdhvQcSI_rxYZrlBakLRvsA,5359
41
+ pulumi_consul/get_peering.py,sha256=UQFjDdpWxfWglJ-7t1BH6zwu1pkS_nVJ3cSVpuZu-Ag,6440
42
+ pulumi_consul/get_peerings.py,sha256=NS1nnjxppR2aYqs_vS_EAhStZ8c4bAg7EhUXjFuoPsc,3164
43
+ pulumi_consul/get_service.py,sha256=Xv2tI5oitx7Cf6ujV_2wnmGtw0n0MPjy4MCWKettAQ0,8151
44
+ pulumi_consul/get_service_health.py,sha256=2CCrunPsyCDOjmcJXhGmSIJSMc6a-0vlvuiEAVJ80Dw,10133
45
+ pulumi_consul/get_services.py,sha256=Q5d4qGcOTPTopkbdx0pTpgO3Gt5JAglPXM-4dpk0fek,5651
46
+ pulumi_consul/intention.py,sha256=ho1l5csC-byPz5CgHmX5qxNsFmptRz9aVZr27VEppGY,26148
47
+ pulumi_consul/key_prefix.py,sha256=WJGpLgmCyU9cL9pAG6tjSrZjKZBcB4YSAQTiIJsa1Dg,26573
48
+ pulumi_consul/keys.py,sha256=muGKdHQej6ptl77B4cyYmuysMJOrUYAuiiDrg94USts,18033
49
+ pulumi_consul/license.py,sha256=XHUy7eN03nJM7wUnRUf1G7xYnd9b41iJ1fgXXts9hSI,19991
50
+ pulumi_consul/namespace.py,sha256=fPAJPoONW7gqanL8wxmVwbGVVo_zNMIsRaLwIHF4mHE,18115
51
+ pulumi_consul/namespace_policy_attachment.py,sha256=0qlJ92SJLDdocHj8dmm0cd1LAqF-IlB5FouYhUOyATo,8200
52
+ pulumi_consul/namespace_role_attachment.py,sha256=-xlic3f_MQ7JN0i0aNPEvSD7pT8vzrM0fvlUB7KLOoY,8052
53
+ pulumi_consul/network_area.py,sha256=_JuwzK8mj1cxHqoqIb9T_qrX0MEOGO4Cnx3f4KelV8g,19832
54
+ pulumi_consul/node.py,sha256=47QPrYj6vN7rQXutZYS0MWnNCktn583H5w2VDnuwHfE,18083
55
+ pulumi_consul/outputs.py,sha256=dwKmGFjl7cIpJvBW6p5Qwkdqgz8q3iEKsl3VKEOPV_k,234719
56
+ pulumi_consul/peering.py,sha256=pu4AiOobus3AJkWCuY3oE3mTUJhOJohl6Vrazw2IrZk,21220
57
+ pulumi_consul/peering_token.py,sha256=c1fFWbNBqKnNQmEt4U3mGZ9Mr5c5e2j2hnw0o4yHGqw,14221
58
+ pulumi_consul/prepared_query.py,sha256=v4xlennYoTLZStCTDeDAFryiYIbStHYocx1dLQQZHBM,53868
59
+ pulumi_consul/provider.py,sha256=1xhCm2DWQ1CuCIy7sDnl_lzHDj4wtS2mc3OH7vQaToU,24679
60
+ pulumi_consul/pulumi-plugin.json,sha256=VXjlQuI-OEXhtFLQdyJ645kCumRQ-G5oWRM1hutS4zM,43
61
+ pulumi_consul/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
62
+ pulumi_consul/service.py,sha256=lbt1Fg7iDD6odUK-vBe-h9KB9zMx49JW1S-YmWjkaBs,32818
63
+ pulumi_consul/config/__init__.py,sha256=cfY0smRZD3fDVc93ZIAxEl_IM2pynmXB52n3Ahzi030,285
64
+ pulumi_consul/config/__init__.pyi,sha256=Xr56VkEbCA8jXnSDMCxONcnilMpQdAHs6-imo_c-TBU,2587
65
+ pulumi_consul/config/outputs.py,sha256=gDtRkTfR9uCq26RXew73SpJWdrCejHeWHhoL5--_LW4,3384
66
+ pulumi_consul/config/vars.py,sha256=SXNUccmf6RtLkyaTd4mMknJtP2rlISHxMcq4PUHRgpg,4255
67
+ pulumi_consul-3.11.2.dist-info/METADATA,sha256=0R1O4OmlJq8HXgMCuF-sGc7YkDI1wJ5b1a2elqNKkkA,3933
68
+ pulumi_consul-3.11.2.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
69
+ pulumi_consul-3.11.2.dist-info/top_level.txt,sha256=SrKSXrIq8AWqnNKrd7pWSC691idGwXi9XMA-DTWwcfg,14
70
+ pulumi_consul-3.11.2.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.42.0)
2
+ Generator: bdist_wheel (0.43.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5