pulumi-consul 3.12.0a1709360320__py3-none-any.whl → 3.12.0a1710915108__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.

Potentially problematic release.


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

Files changed (50) hide show
  1. pulumi_consul/acl_auth_method.py +8 -0
  2. pulumi_consul/acl_binding_rule.py +4 -0
  3. pulumi_consul/acl_policy.py +6 -2
  4. pulumi_consul/acl_role.py +6 -2
  5. pulumi_consul/acl_role_policy_attachment.py +6 -2
  6. pulumi_consul/acl_token.py +6 -2
  7. pulumi_consul/acl_token_policy_attachment.py +2 -2
  8. pulumi_consul/acl_token_role_attachment.py +6 -4
  9. pulumi_consul/admin_partition.py +6 -2
  10. pulumi_consul/agent_service.py +4 -0
  11. pulumi_consul/autopilot_config.py +4 -0
  12. pulumi_consul/catalog_entry.py +4 -0
  13. pulumi_consul/certificate_authority.py +2 -2
  14. pulumi_consul/config_entry.py +42 -4
  15. pulumi_consul/config_entry_service_defaults.py +4 -2
  16. pulumi_consul/config_entry_service_intentions.py +4 -0
  17. pulumi_consul/config_entry_service_resolver.py +4 -0
  18. pulumi_consul/config_entry_service_router.py +4 -0
  19. pulumi_consul/config_entry_service_splitter.py +6 -2
  20. pulumi_consul/get_acl_auth_method.py +4 -0
  21. pulumi_consul/get_acl_policy.py +4 -0
  22. pulumi_consul/get_acl_role.py +4 -0
  23. pulumi_consul/get_acl_token.py +4 -0
  24. pulumi_consul/get_acl_token_secret_id.py +4 -0
  25. pulumi_consul/get_agent_config.py +4 -0
  26. pulumi_consul/get_autopilot_health.py +4 -0
  27. pulumi_consul/get_key_prefix.py +8 -0
  28. pulumi_consul/get_keys.py +4 -0
  29. pulumi_consul/get_network_area_members.py +4 -0
  30. pulumi_consul/get_network_segments.py +4 -0
  31. pulumi_consul/get_peering.py +4 -0
  32. pulumi_consul/get_peerings.py +4 -0
  33. pulumi_consul/intention.py +10 -2
  34. pulumi_consul/key_prefix.py +10 -4
  35. pulumi_consul/keys.py +4 -0
  36. pulumi_consul/license.py +4 -0
  37. pulumi_consul/namespace.py +10 -4
  38. pulumi_consul/namespace_policy_attachment.py +6 -4
  39. pulumi_consul/namespace_role_attachment.py +6 -4
  40. pulumi_consul/network_area.py +4 -0
  41. pulumi_consul/node.py +6 -2
  42. pulumi_consul/peering.py +4 -0
  43. pulumi_consul/peering_token.py +4 -0
  44. pulumi_consul/prepared_query.py +6 -2
  45. pulumi_consul/service.py +64 -0
  46. {pulumi_consul-3.12.0a1709360320.dist-info → pulumi_consul-3.12.0a1710915108.dist-info}/METADATA +1 -1
  47. pulumi_consul-3.12.0a1710915108.dist-info/RECORD +70 -0
  48. {pulumi_consul-3.12.0a1709360320.dist-info → pulumi_consul-3.12.0a1710915108.dist-info}/WHEEL +1 -1
  49. pulumi_consul-3.12.0a1709360320.dist-info/RECORD +0 -70
  50. {pulumi_consul-3.12.0a1709360320.dist-info → pulumi_consul-3.12.0a1710915108.dist-info}/top_level.txt +0 -0
@@ -236,6 +236,7 @@ class ConfigEntryServiceIntentions(pulumi.CustomResource):
236
236
  """
237
237
  ## Example Usage
238
238
 
239
+ <!--Start PulumiCodeChooser -->
239
240
  ```python
240
241
  import pulumi
241
242
  import json
@@ -279,6 +280,7 @@ class ConfigEntryServiceIntentions(pulumi.CustomResource):
279
280
  ),
280
281
  ])
281
282
  ```
283
+ <!--End PulumiCodeChooser -->
282
284
 
283
285
  :param str resource_name: The name of the resource.
284
286
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -298,6 +300,7 @@ class ConfigEntryServiceIntentions(pulumi.CustomResource):
298
300
  """
299
301
  ## Example Usage
300
302
 
303
+ <!--Start PulumiCodeChooser -->
301
304
  ```python
302
305
  import pulumi
303
306
  import json
@@ -341,6 +344,7 @@ class ConfigEntryServiceIntentions(pulumi.CustomResource):
341
344
  ),
342
345
  ])
343
346
  ```
347
+ <!--End PulumiCodeChooser -->
344
348
 
345
349
  :param str resource_name: The name of the resource.
346
350
  :param ConfigEntryServiceIntentionsArgs args: The arguments to use to populate this resource's properties.
@@ -401,6 +401,7 @@ class ConfigEntryServiceResolver(pulumi.CustomResource):
401
401
  """
402
402
  ## Example Usage
403
403
 
404
+ <!--Start PulumiCodeChooser -->
404
405
  ```python
405
406
  import pulumi
406
407
  import pulumi_consul as consul
@@ -436,6 +437,7 @@ class ConfigEntryServiceResolver(pulumi.CustomResource):
436
437
  ),
437
438
  ])
438
439
  ```
440
+ <!--End PulumiCodeChooser -->
439
441
 
440
442
  :param str resource_name: The name of the resource.
441
443
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -460,6 +462,7 @@ class ConfigEntryServiceResolver(pulumi.CustomResource):
460
462
  """
461
463
  ## Example Usage
462
464
 
465
+ <!--Start PulumiCodeChooser -->
463
466
  ```python
464
467
  import pulumi
465
468
  import pulumi_consul as consul
@@ -495,6 +498,7 @@ class ConfigEntryServiceResolver(pulumi.CustomResource):
495
498
  ),
496
499
  ])
497
500
  ```
501
+ <!--End PulumiCodeChooser -->
498
502
 
499
503
  :param str resource_name: The name of the resource.
500
504
  :param ConfigEntryServiceResolverArgs args: The arguments to use to populate this resource's properties.
@@ -203,6 +203,7 @@ class ConfigEntryServiceRouter(pulumi.CustomResource):
203
203
  """
204
204
  ## Example Usage
205
205
 
206
+ <!--Start PulumiCodeChooser -->
206
207
  ```python
207
208
  import pulumi
208
209
  import pulumi_consul as consul
@@ -220,6 +221,7 @@ class ConfigEntryServiceRouter(pulumi.CustomResource):
220
221
  ),
221
222
  )])
222
223
  ```
224
+ <!--End PulumiCodeChooser -->
223
225
 
224
226
  :param str resource_name: The name of the resource.
225
227
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -238,6 +240,7 @@ class ConfigEntryServiceRouter(pulumi.CustomResource):
238
240
  """
239
241
  ## Example Usage
240
242
 
243
+ <!--Start PulumiCodeChooser -->
241
244
  ```python
242
245
  import pulumi
243
246
  import pulumi_consul as consul
@@ -255,6 +258,7 @@ class ConfigEntryServiceRouter(pulumi.CustomResource):
255
258
  ),
256
259
  )])
257
260
  ```
261
+ <!--End PulumiCodeChooser -->
258
262
 
259
263
  :param str resource_name: The name of the resource.
260
264
  :param ConfigEntryServiceRouterArgs args: The arguments to use to populate this resource's properties.
@@ -202,6 +202,7 @@ class ConfigEntryServiceSplitter(pulumi.CustomResource):
202
202
  """
203
203
  ## Example Usage
204
204
 
205
+ <!--Start PulumiCodeChooser -->
205
206
  ```python
206
207
  import pulumi
207
208
  import json
@@ -269,11 +270,12 @@ class ConfigEntryServiceSplitter(pulumi.CustomResource):
269
270
  ),
270
271
  ])
271
272
  ```
273
+ <!--End PulumiCodeChooser -->
272
274
 
273
275
  ## Import
274
276
 
275
277
  ```sh
276
- $ pulumi import consul:index/configEntryServiceSplitter:ConfigEntryServiceSplitter foo web
278
+ $ pulumi import consul:index/configEntryServiceSplitter:ConfigEntryServiceSplitter foo web
277
279
  ```
278
280
 
279
281
  :param str resource_name: The name of the resource.
@@ -293,6 +295,7 @@ class ConfigEntryServiceSplitter(pulumi.CustomResource):
293
295
  """
294
296
  ## Example Usage
295
297
 
298
+ <!--Start PulumiCodeChooser -->
296
299
  ```python
297
300
  import pulumi
298
301
  import json
@@ -360,11 +363,12 @@ class ConfigEntryServiceSplitter(pulumi.CustomResource):
360
363
  ),
361
364
  ])
362
365
  ```
366
+ <!--End PulumiCodeChooser -->
363
367
 
364
368
  ## Import
365
369
 
366
370
  ```sh
367
- $ pulumi import consul:index/configEntryServiceSplitter:ConfigEntryServiceSplitter foo web
371
+ $ pulumi import consul:index/configEntryServiceSplitter:ConfigEntryServiceSplitter foo web
368
372
  ```
369
373
 
370
374
  :param str resource_name: The name of the resource.
@@ -187,6 +187,7 @@ def get_acl_auth_method(name: Optional[str] = None,
187
187
 
188
188
  ## Example Usage
189
189
 
190
+ <!--Start PulumiCodeChooser -->
190
191
  ```python
191
192
  import pulumi
192
193
  import pulumi_consul as consul
@@ -194,6 +195,7 @@ def get_acl_auth_method(name: Optional[str] = None,
194
195
  test = consul.get_acl_auth_method(name="minikube")
195
196
  pulumi.export("consulAclAuthMethod", test.config)
196
197
  ```
198
+ <!--End PulumiCodeChooser -->
197
199
 
198
200
 
199
201
  :param str name: The name of the ACL Auth Method.
@@ -233,6 +235,7 @@ def get_acl_auth_method_output(name: Optional[pulumi.Input[str]] = None,
233
235
 
234
236
  ## Example Usage
235
237
 
238
+ <!--Start PulumiCodeChooser -->
236
239
  ```python
237
240
  import pulumi
238
241
  import pulumi_consul as consul
@@ -240,6 +243,7 @@ def get_acl_auth_method_output(name: Optional[pulumi.Input[str]] = None,
240
243
  test = consul.get_acl_auth_method(name="minikube")
241
244
  pulumi.export("consulAclAuthMethod", test.config)
242
245
  ```
246
+ <!--End PulumiCodeChooser -->
243
247
 
244
248
 
245
249
  :param str name: The name of the ACL Auth Method.
@@ -117,6 +117,7 @@ def get_acl_policy(name: Optional[str] = None,
117
117
 
118
118
  ## Example Usage
119
119
 
120
+ <!--Start PulumiCodeChooser -->
120
121
  ```python
121
122
  import pulumi
122
123
  import pulumi_consul as consul
@@ -124,6 +125,7 @@ def get_acl_policy(name: Optional[str] = None,
124
125
  agent = consul.get_acl_policy(name="agent")
125
126
  pulumi.export("consulAclPolicy", agent.rules)
126
127
  ```
128
+ <!--End PulumiCodeChooser -->
127
129
 
128
130
 
129
131
  :param str name: The name of the ACL Policy.
@@ -158,6 +160,7 @@ def get_acl_policy_output(name: Optional[pulumi.Input[str]] = None,
158
160
 
159
161
  ## Example Usage
160
162
 
163
+ <!--Start PulumiCodeChooser -->
161
164
  ```python
162
165
  import pulumi
163
166
  import pulumi_consul as consul
@@ -165,6 +168,7 @@ def get_acl_policy_output(name: Optional[pulumi.Input[str]] = None,
165
168
  agent = consul.get_acl_policy(name="agent")
166
169
  pulumi.export("consulAclPolicy", agent.rules)
167
170
  ```
171
+ <!--End PulumiCodeChooser -->
168
172
 
169
173
 
170
174
  :param str name: The name of the ACL Policy.
@@ -150,6 +150,7 @@ def get_acl_role(name: Optional[str] = None,
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
@@ -157,6 +158,7 @@ def get_acl_role(name: Optional[str] = None,
157
158
  test = consul.get_acl_role(name="example-role")
158
159
  pulumi.export("consulAclRole", test.id)
159
160
  ```
161
+ <!--End PulumiCodeChooser -->
160
162
 
161
163
 
162
164
  :param str namespace: The namespace to lookup the role.
@@ -191,6 +193,7 @@ def get_acl_role_output(name: Optional[pulumi.Input[str]] = None,
191
193
 
192
194
  ## Example Usage
193
195
 
196
+ <!--Start PulumiCodeChooser -->
194
197
  ```python
195
198
  import pulumi
196
199
  import pulumi_consul as consul
@@ -198,6 +201,7 @@ def get_acl_role_output(name: Optional[pulumi.Input[str]] = None,
198
201
  test = consul.get_acl_role(name="example-role")
199
202
  pulumi.export("consulAclRole", test.id)
200
203
  ```
204
+ <!--End PulumiCodeChooser -->
201
205
 
202
206
 
203
207
  :param str namespace: The namespace to lookup the role.
@@ -188,6 +188,7 @@ def get_acl_token(accessor_id: Optional[str] = None,
188
188
 
189
189
  ## Example Usage
190
190
 
191
+ <!--Start PulumiCodeChooser -->
191
192
  ```python
192
193
  import pulumi
193
194
  import pulumi_consul as consul
@@ -195,6 +196,7 @@ def get_acl_token(accessor_id: Optional[str] = None,
195
196
  test = consul.get_acl_token(accessor_id="00000000-0000-0000-0000-000000000002")
196
197
  pulumi.export("consulAclPolicies", test.policies)
197
198
  ```
199
+ <!--End PulumiCodeChooser -->
198
200
 
199
201
 
200
202
  :param str accessor_id: The accessor ID of the ACL token.
@@ -235,6 +237,7 @@ def get_acl_token_output(accessor_id: Optional[pulumi.Input[str]] = None,
235
237
 
236
238
  ## Example Usage
237
239
 
240
+ <!--Start PulumiCodeChooser -->
238
241
  ```python
239
242
  import pulumi
240
243
  import pulumi_consul as consul
@@ -242,6 +245,7 @@ def get_acl_token_output(accessor_id: Optional[pulumi.Input[str]] = None,
242
245
  test = consul.get_acl_token(accessor_id="00000000-0000-0000-0000-000000000002")
243
246
  pulumi.export("consulAclPolicies", test.policies)
244
247
  ```
248
+ <!--End PulumiCodeChooser -->
245
249
 
246
250
 
247
251
  :param str accessor_id: The accessor ID of the ACL token.
@@ -109,6 +109,7 @@ def get_acl_token_secret_id(accessor_id: Optional[str] = None,
109
109
  """
110
110
  ## Example Usage
111
111
 
112
+ <!--Start PulumiCodeChooser -->
112
113
  ```python
113
114
  import pulumi
114
115
  import pulumi_consul as consul
@@ -124,6 +125,7 @@ def get_acl_token_secret_id(accessor_id: Optional[str] = None,
124
125
  pgp_key="keybase:my_username")
125
126
  pulumi.export("consulAclTokenSecretId", read.encrypted_secret_id)
126
127
  ```
128
+ <!--End PulumiCodeChooser -->
127
129
 
128
130
 
129
131
  :param str accessor_id: The accessor ID of the ACL token.
@@ -157,6 +159,7 @@ def get_acl_token_secret_id_output(accessor_id: Optional[pulumi.Input[str]] = No
157
159
  """
158
160
  ## Example Usage
159
161
 
162
+ <!--Start PulumiCodeChooser -->
160
163
  ```python
161
164
  import pulumi
162
165
  import pulumi_consul as consul
@@ -172,6 +175,7 @@ def get_acl_token_secret_id_output(accessor_id: Optional[pulumi.Input[str]] = No
172
175
  pgp_key="keybase:my_username")
173
176
  pulumi.export("consulAclTokenSecretId", read.encrypted_secret_id)
174
177
  ```
178
+ <!--End PulumiCodeChooser -->
175
179
 
176
180
 
177
181
  :param str accessor_id: The accessor ID of the ACL token.
@@ -128,6 +128,7 @@ def get_agent_config(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGe
128
128
 
129
129
  ## Example Usage
130
130
 
131
+ <!--Start PulumiCodeChooser -->
131
132
  ```python
132
133
  import pulumi
133
134
  import pulumi_consul as consul
@@ -135,6 +136,7 @@ def get_agent_config(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGe
135
136
  remote_agent = consul.get_agent_config()
136
137
  pulumi.export("consulVersion", remote_agent.version)
137
138
  ```
139
+ <!--End PulumiCodeChooser -->
138
140
  """
139
141
  __args__ = dict()
140
142
  opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
@@ -163,6 +165,7 @@ def get_agent_config_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulu
163
165
 
164
166
  ## Example Usage
165
167
 
168
+ <!--Start PulumiCodeChooser -->
166
169
  ```python
167
170
  import pulumi
168
171
  import pulumi_consul as consul
@@ -170,5 +173,6 @@ def get_agent_config_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulu
170
173
  remote_agent = consul.get_agent_config()
171
174
  pulumi.export("consulVersion", remote_agent.version)
172
175
  ```
176
+ <!--End PulumiCodeChooser -->
173
177
  """
174
178
  ...
@@ -102,6 +102,7 @@ def get_autopilot_health(datacenter: Optional[str] = None,
102
102
 
103
103
  ## Example Usage
104
104
 
105
+ <!--Start PulumiCodeChooser -->
105
106
  ```python
106
107
  import pulumi
107
108
  import pulumi_consul as consul
@@ -109,6 +110,7 @@ def get_autopilot_health(datacenter: Optional[str] = None,
109
110
  read = consul.get_autopilot_health()
110
111
  pulumi.export("health", read.healthy)
111
112
  ```
113
+ <!--End PulumiCodeChooser -->
112
114
 
113
115
 
114
116
  :param str datacenter: The datacenter to use. This overrides the agent's
@@ -137,6 +139,7 @@ def get_autopilot_health_output(datacenter: Optional[pulumi.Input[Optional[str]]
137
139
 
138
140
  ## Example Usage
139
141
 
142
+ <!--Start PulumiCodeChooser -->
140
143
  ```python
141
144
  import pulumi
142
145
  import pulumi_consul as consul
@@ -144,6 +147,7 @@ def get_autopilot_health_output(datacenter: Optional[pulumi.Input[Optional[str]]
144
147
  read = consul.get_autopilot_health()
145
148
  pulumi.export("health", read.healthy)
146
149
  ```
150
+ <!--End PulumiCodeChooser -->
147
151
 
148
152
 
149
153
  :param str datacenter: The datacenter to use. This overrides the agent's
@@ -145,6 +145,7 @@ def get_key_prefix(datacenter: Optional[str] = None,
145
145
  """
146
146
  ## Example Usage
147
147
 
148
+ <!--Start PulumiCodeChooser -->
148
149
  ```python
149
150
  import pulumi
150
151
  import pulumi_aws as aws
@@ -161,7 +162,9 @@ def get_key_prefix(datacenter: Optional[str] = None,
161
162
  # Start our instance with the dynamic ami value
162
163
  app_instance = aws.ec2.Instance("appInstance", ami=app_key_prefix.var["ami"])
163
164
  ```
165
+ <!--End PulumiCodeChooser -->
164
166
 
167
+ <!--Start PulumiCodeChooser -->
165
168
  ```python
166
169
  import pulumi
167
170
  import pulumi_aws as aws
@@ -173,6 +176,7 @@ def get_key_prefix(datacenter: Optional[str] = None,
173
176
  # Start our instance with the dynamic ami value
174
177
  web_instance = aws.ec2.Instance("webInstance", ami=web_key_prefix.subkeys["app/launch_ami"])
175
178
  ```
179
+ <!--End PulumiCodeChooser -->
176
180
 
177
181
 
178
182
  :param str datacenter: The datacenter to use. This overrides the
@@ -220,6 +224,7 @@ def get_key_prefix_output(datacenter: Optional[pulumi.Input[Optional[str]]] = No
220
224
  """
221
225
  ## Example Usage
222
226
 
227
+ <!--Start PulumiCodeChooser -->
223
228
  ```python
224
229
  import pulumi
225
230
  import pulumi_aws as aws
@@ -236,7 +241,9 @@ def get_key_prefix_output(datacenter: Optional[pulumi.Input[Optional[str]]] = No
236
241
  # Start our instance with the dynamic ami value
237
242
  app_instance = aws.ec2.Instance("appInstance", ami=app_key_prefix.var["ami"])
238
243
  ```
244
+ <!--End PulumiCodeChooser -->
239
245
 
246
+ <!--Start PulumiCodeChooser -->
240
247
  ```python
241
248
  import pulumi
242
249
  import pulumi_aws as aws
@@ -248,6 +255,7 @@ def get_key_prefix_output(datacenter: Optional[pulumi.Input[Optional[str]]] = No
248
255
  # Start our instance with the dynamic ami value
249
256
  web_instance = aws.ec2.Instance("webInstance", ami=web_key_prefix.subkeys["app/launch_ami"])
250
257
  ```
258
+ <!--End PulumiCodeChooser -->
251
259
 
252
260
 
253
261
  :param str datacenter: The datacenter to use. This overrides the
pulumi_consul/get_keys.py CHANGED
@@ -147,6 +147,7 @@ def get_keys(datacenter: Optional[str] = None,
147
147
 
148
148
  ## Example Usage
149
149
 
150
+ <!--Start PulumiCodeChooser -->
150
151
  ```python
151
152
  import pulumi
152
153
  import pulumi_aws as aws
@@ -162,6 +163,7 @@ def get_keys(datacenter: Optional[str] = None,
162
163
  app_instance = aws.ec2.Instance("appInstance", ami=app_keys.var["ami"])
163
164
  # ...
164
165
  ```
166
+ <!--End PulumiCodeChooser -->
165
167
 
166
168
 
167
169
  :param str datacenter: The datacenter to use. This overrides the agent's default datacenter and the datacenter in the provider setup.
@@ -205,6 +207,7 @@ def get_keys_output(datacenter: Optional[pulumi.Input[Optional[str]]] = None,
205
207
 
206
208
  ## Example Usage
207
209
 
210
+ <!--Start PulumiCodeChooser -->
208
211
  ```python
209
212
  import pulumi
210
213
  import pulumi_aws as aws
@@ -220,6 +223,7 @@ def get_keys_output(datacenter: Optional[pulumi.Input[Optional[str]]] = None,
220
223
  app_instance = aws.ec2.Instance("appInstance", ami=app_keys.var["ami"])
221
224
  # ...
222
225
  ```
226
+ <!--End PulumiCodeChooser -->
223
227
 
224
228
 
225
229
  :param str datacenter: The datacenter to use. This overrides the agent's default datacenter and the datacenter in the provider setup.
@@ -107,6 +107,7 @@ def get_network_area_members(datacenter: Optional[str] = None,
107
107
 
108
108
  ## Example Usage
109
109
 
110
+ <!--Start PulumiCodeChooser -->
110
111
  ```python
111
112
  import pulumi
112
113
  import pulumi_consul as consul
@@ -118,6 +119,7 @@ def get_network_area_members(datacenter: Optional[str] = None,
118
119
  dc2_network_area_members = consul.get_network_area_members_output(uuid=dc2_network_area.id)
119
120
  pulumi.export("members", dc2_network_area_members.members)
120
121
  ```
122
+ <!--End PulumiCodeChooser -->
121
123
 
122
124
 
123
125
  :param str datacenter: The datacenter to use. This overrides the
@@ -154,6 +156,7 @@ def get_network_area_members_output(datacenter: Optional[pulumi.Input[Optional[s
154
156
 
155
157
  ## Example Usage
156
158
 
159
+ <!--Start PulumiCodeChooser -->
157
160
  ```python
158
161
  import pulumi
159
162
  import pulumi_consul as consul
@@ -165,6 +168,7 @@ def get_network_area_members_output(datacenter: Optional[pulumi.Input[Optional[s
165
168
  dc2_network_area_members = consul.get_network_area_members_output(uuid=dc2_network_area.id)
166
169
  pulumi.export("members", dc2_network_area_members.members)
167
170
  ```
171
+ <!--End PulumiCodeChooser -->
168
172
 
169
173
 
170
174
  :param str datacenter: The datacenter to use. This overrides the
@@ -93,6 +93,7 @@ def get_network_segments(datacenter: Optional[str] = None,
93
93
 
94
94
  ## Example Usage
95
95
 
96
+ <!--Start PulumiCodeChooser -->
96
97
  ```python
97
98
  import pulumi
98
99
  import pulumi_consul as consul
@@ -100,6 +101,7 @@ def get_network_segments(datacenter: Optional[str] = None,
100
101
  segments_network_segments = consul.get_network_segments()
101
102
  pulumi.export("segments", segments_network_segments.segments)
102
103
  ```
104
+ <!--End PulumiCodeChooser -->
103
105
 
104
106
 
105
107
  :param str datacenter: The datacenter to use. This overrides the
@@ -132,6 +134,7 @@ def get_network_segments_output(datacenter: Optional[pulumi.Input[Optional[str]]
132
134
 
133
135
  ## Example Usage
134
136
 
137
+ <!--Start PulumiCodeChooser -->
135
138
  ```python
136
139
  import pulumi
137
140
  import pulumi_consul as consul
@@ -139,6 +142,7 @@ def get_network_segments_output(datacenter: Optional[pulumi.Input[Optional[str]]
139
142
  segments_network_segments = consul.get_network_segments()
140
143
  pulumi.export("segments", segments_network_segments.segments)
141
144
  ```
145
+ <!--End PulumiCodeChooser -->
142
146
 
143
147
 
144
148
  :param str datacenter: The datacenter to use. This overrides the
@@ -131,12 +131,14 @@ def get_peering(partition: Optional[str] = None,
131
131
  """
132
132
  ## Example Usage
133
133
 
134
+ <!--Start PulumiCodeChooser -->
134
135
  ```python
135
136
  import pulumi
136
137
  import pulumi_consul as consul
137
138
 
138
139
  basic = consul.get_peering(peer_name="peered-cluster")
139
140
  ```
141
+ <!--End PulumiCodeChooser -->
140
142
  """
141
143
  __args__ = dict()
142
144
  __args__['partition'] = partition
@@ -164,11 +166,13 @@ def get_peering_output(partition: Optional[pulumi.Input[Optional[str]]] = None,
164
166
  """
165
167
  ## Example Usage
166
168
 
169
+ <!--Start PulumiCodeChooser -->
167
170
  ```python
168
171
  import pulumi
169
172
  import pulumi_consul as consul
170
173
 
171
174
  basic = consul.get_peering(peer_name="peered-cluster")
172
175
  ```
176
+ <!--End PulumiCodeChooser -->
173
177
  """
174
178
  ...
@@ -68,12 +68,14 @@ def get_peerings(partition: Optional[str] = None,
68
68
  """
69
69
  ## Example Usage
70
70
 
71
+ <!--Start PulumiCodeChooser -->
71
72
  ```python
72
73
  import pulumi
73
74
  import pulumi_consul as consul
74
75
 
75
76
  peers = consul.get_peerings()
76
77
  ```
78
+ <!--End PulumiCodeChooser -->
77
79
  """
78
80
  __args__ = dict()
79
81
  __args__['partition'] = partition
@@ -92,11 +94,13 @@ def get_peerings_output(partition: Optional[pulumi.Input[Optional[str]]] = None,
92
94
  """
93
95
  ## Example Usage
94
96
 
97
+ <!--Start PulumiCodeChooser -->
95
98
  ```python
96
99
  import pulumi
97
100
  import pulumi_consul as consul
98
101
 
99
102
  peers = consul.get_peerings()
100
103
  ```
104
+ <!--End PulumiCodeChooser -->
101
105
  """
102
106
  ...
@@ -341,6 +341,7 @@ class Intention(pulumi.CustomResource):
341
341
 
342
342
  Create a simplest intention with static service names:
343
343
 
344
+ <!--Start PulumiCodeChooser -->
344
345
  ```python
345
346
  import pulumi
346
347
  import pulumi_consul as consul
@@ -350,9 +351,11 @@ class Intention(pulumi.CustomResource):
350
351
  destination_name="db",
351
352
  source_name="api")
352
353
  ```
354
+ <!--End PulumiCodeChooser -->
353
355
 
354
356
  Referencing a known service via a datasource:
355
357
 
358
+ <!--Start PulumiCodeChooser -->
356
359
  ```python
357
360
  import pulumi
358
361
  import pulumi_consul as consul
@@ -363,13 +366,14 @@ class Intention(pulumi.CustomResource):
363
366
  source_name="api")
364
367
  pg = consul.get_service(name="postgresql")
365
368
  ```
369
+ <!--End PulumiCodeChooser -->
366
370
 
367
371
  ## Import
368
372
 
369
373
  `consul_intention` can be imported:
370
374
 
371
375
  ```sh
372
- $ pulumi import consul:index/intention:Intention database 657a57d6-0d56-57e2-31cb-e9f1ed3c18dd
376
+ $ pulumi import consul:index/intention:Intention database 657a57d6-0d56-57e2-31cb-e9f1ed3c18dd
373
377
  ```
374
378
 
375
379
  :param str resource_name: The name of the resource.
@@ -415,6 +419,7 @@ class Intention(pulumi.CustomResource):
415
419
 
416
420
  Create a simplest intention with static service names:
417
421
 
422
+ <!--Start PulumiCodeChooser -->
418
423
  ```python
419
424
  import pulumi
420
425
  import pulumi_consul as consul
@@ -424,9 +429,11 @@ class Intention(pulumi.CustomResource):
424
429
  destination_name="db",
425
430
  source_name="api")
426
431
  ```
432
+ <!--End PulumiCodeChooser -->
427
433
 
428
434
  Referencing a known service via a datasource:
429
435
 
436
+ <!--Start PulumiCodeChooser -->
430
437
  ```python
431
438
  import pulumi
432
439
  import pulumi_consul as consul
@@ -437,13 +444,14 @@ class Intention(pulumi.CustomResource):
437
444
  source_name="api")
438
445
  pg = consul.get_service(name="postgresql")
439
446
  ```
447
+ <!--End PulumiCodeChooser -->
440
448
 
441
449
  ## Import
442
450
 
443
451
  `consul_intention` can be imported:
444
452
 
445
453
  ```sh
446
- $ pulumi import consul:index/intention:Intention database 657a57d6-0d56-57e2-31cb-e9f1ed3c18dd
454
+ $ pulumi import consul:index/intention:Intention database 657a57d6-0d56-57e2-31cb-e9f1ed3c18dd
447
455
  ```
448
456
 
449
457
  :param str resource_name: The name of the resource.
@@ -320,6 +320,7 @@ class KeyPrefix(pulumi.CustomResource):
320
320
  """
321
321
  ## Example Usage
322
322
 
323
+ <!--Start PulumiCodeChooser -->
323
324
  ```python
324
325
  import pulumi
325
326
  import pulumi_consul as consul
@@ -342,13 +343,15 @@ class KeyPrefix(pulumi.CustomResource):
342
343
  },
343
344
  token="abcd")
344
345
  ```
346
+ <!--End PulumiCodeChooser -->
345
347
 
346
348
  ## Import
347
349
 
348
- `consul_key_prefix` can be imported. This is useful when the path already exists and you know all keys in path should be managed by Terraform.
350
+ `consul_key_prefix` can be imported. This is useful when the path already exists and
351
+ you know all keys in path should be managed by Terraform.
349
352
 
350
353
  ```sh
351
- $ pulumi import consul:index/keyPrefix:KeyPrefix myapp_config myapp/config/
354
+ $ pulumi import consul:index/keyPrefix:KeyPrefix myapp_config myapp/config/
352
355
  ```
353
356
 
354
357
  :param str resource_name: The name of the resource.
@@ -378,6 +381,7 @@ class KeyPrefix(pulumi.CustomResource):
378
381
  """
379
382
  ## Example Usage
380
383
 
384
+ <!--Start PulumiCodeChooser -->
381
385
  ```python
382
386
  import pulumi
383
387
  import pulumi_consul as consul
@@ -400,13 +404,15 @@ class KeyPrefix(pulumi.CustomResource):
400
404
  },
401
405
  token="abcd")
402
406
  ```
407
+ <!--End PulumiCodeChooser -->
403
408
 
404
409
  ## Import
405
410
 
406
- `consul_key_prefix` can be imported. This is useful when the path already exists and you know all keys in path should be managed by Terraform.
411
+ `consul_key_prefix` can be imported. This is useful when the path already exists and
412
+ you know all keys in path should be managed by Terraform.
407
413
 
408
414
  ```sh
409
- $ pulumi import consul:index/keyPrefix:KeyPrefix myapp_config myapp/config/
415
+ $ pulumi import consul:index/keyPrefix:KeyPrefix myapp_config myapp/config/
410
416
  ```
411
417
 
412
418
  :param str resource_name: The name of the resource.