pulumi-nomad 2.2.0a1709365942__tar.gz → 2.2.0a1710156747__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.
Files changed (59) hide show
  1. {pulumi_nomad-2.2.0a1709365942 → pulumi_nomad-2.2.0a1710156747}/PKG-INFO +1 -1
  2. {pulumi_nomad-2.2.0a1709365942 → pulumi_nomad-2.2.0a1710156747}/pulumi_nomad/acl_auth_method.py +4 -0
  3. {pulumi_nomad-2.2.0a1709365942 → pulumi_nomad-2.2.0a1710156747}/pulumi_nomad/acl_policy.py +8 -0
  4. {pulumi_nomad-2.2.0a1709365942 → pulumi_nomad-2.2.0a1710156747}/pulumi_nomad/acl_token.py +16 -0
  5. {pulumi_nomad-2.2.0a1709365942 → pulumi_nomad-2.2.0a1710156747}/pulumi_nomad/external_volume.py +4 -0
  6. {pulumi_nomad-2.2.0a1709365942 → pulumi_nomad-2.2.0a1710156747}/pulumi_nomad/get_acl_policies.py +4 -0
  7. {pulumi_nomad-2.2.0a1709365942 → pulumi_nomad-2.2.0a1710156747}/pulumi_nomad/get_acl_policy.py +4 -0
  8. {pulumi_nomad-2.2.0a1709365942 → pulumi_nomad-2.2.0a1710156747}/pulumi_nomad/get_acl_role.py +4 -0
  9. {pulumi_nomad-2.2.0a1709365942 → pulumi_nomad-2.2.0a1710156747}/pulumi_nomad/get_acl_roles.py +4 -0
  10. {pulumi_nomad-2.2.0a1709365942 → pulumi_nomad-2.2.0a1710156747}/pulumi_nomad/get_acl_token.py +4 -0
  11. {pulumi_nomad-2.2.0a1709365942 → pulumi_nomad-2.2.0a1710156747}/pulumi_nomad/get_acl_tokens.py +4 -0
  12. {pulumi_nomad-2.2.0a1709365942 → pulumi_nomad-2.2.0a1710156747}/pulumi_nomad/get_allocations.py +4 -0
  13. {pulumi_nomad-2.2.0a1709365942 → pulumi_nomad-2.2.0a1710156747}/pulumi_nomad/get_datacenters.py +4 -0
  14. {pulumi_nomad-2.2.0a1709365942 → pulumi_nomad-2.2.0a1710156747}/pulumi_nomad/get_deployments.py +4 -0
  15. {pulumi_nomad-2.2.0a1709365942 → pulumi_nomad-2.2.0a1710156747}/pulumi_nomad/get_job.py +4 -0
  16. {pulumi_nomad-2.2.0a1709365942 → pulumi_nomad-2.2.0a1710156747}/pulumi_nomad/get_job_parser.py +4 -0
  17. {pulumi_nomad-2.2.0a1709365942 → pulumi_nomad-2.2.0a1710156747}/pulumi_nomad/get_namespace.py +4 -0
  18. {pulumi_nomad-2.2.0a1709365942 → pulumi_nomad-2.2.0a1710156747}/pulumi_nomad/get_namespaces.py +4 -0
  19. {pulumi_nomad-2.2.0a1709365942 → pulumi_nomad-2.2.0a1710156747}/pulumi_nomad/get_node_pool.py +4 -0
  20. {pulumi_nomad-2.2.0a1709365942 → pulumi_nomad-2.2.0a1710156747}/pulumi_nomad/get_node_pools.py +4 -0
  21. {pulumi_nomad-2.2.0a1709365942 → pulumi_nomad-2.2.0a1710156747}/pulumi_nomad/get_plugin.py +4 -0
  22. {pulumi_nomad-2.2.0a1709365942 → pulumi_nomad-2.2.0a1710156747}/pulumi_nomad/get_plugins.py +4 -0
  23. {pulumi_nomad-2.2.0a1709365942 → pulumi_nomad-2.2.0a1710156747}/pulumi_nomad/get_scaling_policies.py +4 -0
  24. {pulumi_nomad-2.2.0a1709365942 → pulumi_nomad-2.2.0a1710156747}/pulumi_nomad/get_scaling_policy.py +4 -0
  25. {pulumi_nomad-2.2.0a1709365942 → pulumi_nomad-2.2.0a1710156747}/pulumi_nomad/get_scheduler_policy.py +4 -0
  26. {pulumi_nomad-2.2.0a1709365942 → pulumi_nomad-2.2.0a1710156747}/pulumi_nomad/get_variable.py +4 -0
  27. {pulumi_nomad-2.2.0a1709365942 → pulumi_nomad-2.2.0a1710156747}/pulumi_nomad/get_volumes.py +4 -0
  28. {pulumi_nomad-2.2.0a1709365942 → pulumi_nomad-2.2.0a1710156747}/pulumi_nomad/namespace.py +8 -0
  29. {pulumi_nomad-2.2.0a1709365942 → pulumi_nomad-2.2.0a1710156747}/pulumi_nomad/node_pool.py +4 -0
  30. {pulumi_nomad-2.2.0a1709365942 → pulumi_nomad-2.2.0a1710156747}/pulumi_nomad/quote_specification.py +4 -0
  31. {pulumi_nomad-2.2.0a1709365942 → pulumi_nomad-2.2.0a1710156747}/pulumi_nomad/scheduler_config.py +4 -0
  32. {pulumi_nomad-2.2.0a1709365942 → pulumi_nomad-2.2.0a1710156747}/pulumi_nomad/sentinel_policy.py +4 -0
  33. {pulumi_nomad-2.2.0a1709365942 → pulumi_nomad-2.2.0a1710156747}/pulumi_nomad/variable.py +8 -0
  34. {pulumi_nomad-2.2.0a1709365942 → pulumi_nomad-2.2.0a1710156747}/pulumi_nomad/volume.py +4 -0
  35. {pulumi_nomad-2.2.0a1709365942 → pulumi_nomad-2.2.0a1710156747}/pulumi_nomad.egg-info/PKG-INFO +1 -1
  36. {pulumi_nomad-2.2.0a1709365942 → pulumi_nomad-2.2.0a1710156747}/pyproject.toml +1 -1
  37. {pulumi_nomad-2.2.0a1709365942 → pulumi_nomad-2.2.0a1710156747}/README.md +0 -0
  38. {pulumi_nomad-2.2.0a1709365942 → pulumi_nomad-2.2.0a1710156747}/pulumi_nomad/__init__.py +0 -0
  39. {pulumi_nomad-2.2.0a1709365942 → pulumi_nomad-2.2.0a1710156747}/pulumi_nomad/_inputs.py +0 -0
  40. {pulumi_nomad-2.2.0a1709365942 → pulumi_nomad-2.2.0a1710156747}/pulumi_nomad/_utilities.py +0 -0
  41. {pulumi_nomad-2.2.0a1709365942 → pulumi_nomad-2.2.0a1710156747}/pulumi_nomad/acl_binding_rule.py +0 -0
  42. {pulumi_nomad-2.2.0a1709365942 → pulumi_nomad-2.2.0a1710156747}/pulumi_nomad/acl_role.py +0 -0
  43. {pulumi_nomad-2.2.0a1709365942 → pulumi_nomad-2.2.0a1710156747}/pulumi_nomad/config/__init__.py +0 -0
  44. {pulumi_nomad-2.2.0a1709365942 → pulumi_nomad-2.2.0a1710156747}/pulumi_nomad/config/__init__.pyi +0 -0
  45. {pulumi_nomad-2.2.0a1709365942 → pulumi_nomad-2.2.0a1710156747}/pulumi_nomad/config/outputs.py +0 -0
  46. {pulumi_nomad-2.2.0a1709365942 → pulumi_nomad-2.2.0a1710156747}/pulumi_nomad/config/vars.py +0 -0
  47. {pulumi_nomad-2.2.0a1709365942 → pulumi_nomad-2.2.0a1710156747}/pulumi_nomad/csi_volume.py +0 -0
  48. {pulumi_nomad-2.2.0a1709365942 → pulumi_nomad-2.2.0a1710156747}/pulumi_nomad/csi_volume_registration.py +0 -0
  49. {pulumi_nomad-2.2.0a1709365942 → pulumi_nomad-2.2.0a1710156747}/pulumi_nomad/get_regions.py +0 -0
  50. {pulumi_nomad-2.2.0a1709365942 → pulumi_nomad-2.2.0a1710156747}/pulumi_nomad/job.py +0 -0
  51. {pulumi_nomad-2.2.0a1709365942 → pulumi_nomad-2.2.0a1710156747}/pulumi_nomad/outputs.py +0 -0
  52. {pulumi_nomad-2.2.0a1709365942 → pulumi_nomad-2.2.0a1710156747}/pulumi_nomad/provider.py +0 -0
  53. {pulumi_nomad-2.2.0a1709365942 → pulumi_nomad-2.2.0a1710156747}/pulumi_nomad/pulumi-plugin.json +0 -0
  54. {pulumi_nomad-2.2.0a1709365942 → pulumi_nomad-2.2.0a1710156747}/pulumi_nomad/py.typed +0 -0
  55. {pulumi_nomad-2.2.0a1709365942 → pulumi_nomad-2.2.0a1710156747}/pulumi_nomad.egg-info/SOURCES.txt +0 -0
  56. {pulumi_nomad-2.2.0a1709365942 → pulumi_nomad-2.2.0a1710156747}/pulumi_nomad.egg-info/dependency_links.txt +0 -0
  57. {pulumi_nomad-2.2.0a1709365942 → pulumi_nomad-2.2.0a1710156747}/pulumi_nomad.egg-info/requires.txt +0 -0
  58. {pulumi_nomad-2.2.0a1709365942 → pulumi_nomad-2.2.0a1710156747}/pulumi_nomad.egg-info/top_level.txt +0 -0
  59. {pulumi_nomad-2.2.0a1709365942 → pulumi_nomad-2.2.0a1710156747}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pulumi_nomad
3
- Version: 2.2.0a1709365942
3
+ Version: 2.2.0a1710156747
4
4
  Summary: A Pulumi package for creating and managing nomad cloud resources.
5
5
  License: Apache-2.0
6
6
  Project-URL: Homepage, https://pulumi.io
@@ -297,6 +297,7 @@ class AclAuthMethod(pulumi.CustomResource):
297
297
 
298
298
  Creating an ALC Auth Method:
299
299
 
300
+ <!--Start PulumiCodeChooser -->
300
301
  ```python
301
302
  import pulumi
302
303
  import pulumi_nomad as nomad
@@ -321,6 +322,7 @@ class AclAuthMethod(pulumi.CustomResource):
321
322
  },
322
323
  ))
323
324
  ```
325
+ <!--End PulumiCodeChooser -->
324
326
 
325
327
  :param str resource_name: The name of the resource.
326
328
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -352,6 +354,7 @@ class AclAuthMethod(pulumi.CustomResource):
352
354
 
353
355
  Creating an ALC Auth Method:
354
356
 
357
+ <!--Start PulumiCodeChooser -->
355
358
  ```python
356
359
  import pulumi
357
360
  import pulumi_nomad as nomad
@@ -376,6 +379,7 @@ class AclAuthMethod(pulumi.CustomResource):
376
379
  },
377
380
  ))
378
381
  ```
382
+ <!--End PulumiCodeChooser -->
379
383
 
380
384
  :param str resource_name: The name of the resource.
381
385
  :param AclAuthMethodArgs args: The arguments to use to populate this resource's properties.
@@ -177,6 +177,7 @@ class AclPolicy(pulumi.CustomResource):
177
177
 
178
178
  Registering a policy from a HCL file:
179
179
 
180
+ <!--Start PulumiCodeChooser -->
180
181
  ```python
181
182
  import pulumi
182
183
  import pulumi_nomad as nomad
@@ -185,9 +186,11 @@ class AclPolicy(pulumi.CustomResource):
185
186
  description="Submit jobs to the dev environment.",
186
187
  rules_hcl=(lambda path: open(path).read())(f"{path['module']}/dev.hcl"))
187
188
  ```
189
+ <!--End PulumiCodeChooser -->
188
190
 
189
191
  Registering a policy from inline HCL:
190
192
 
193
+ <!--Start PulumiCodeChooser -->
191
194
  ```python
192
195
  import pulumi
193
196
  import pulumi_nomad as nomad
@@ -200,6 +203,7 @@ class AclPolicy(pulumi.CustomResource):
200
203
 
201
204
  \"\"\")
202
205
  ```
206
+ <!--End PulumiCodeChooser -->
203
207
 
204
208
  :param str resource_name: The name of the resource.
205
209
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -222,6 +226,7 @@ class AclPolicy(pulumi.CustomResource):
222
226
 
223
227
  Registering a policy from a HCL file:
224
228
 
229
+ <!--Start PulumiCodeChooser -->
225
230
  ```python
226
231
  import pulumi
227
232
  import pulumi_nomad as nomad
@@ -230,9 +235,11 @@ class AclPolicy(pulumi.CustomResource):
230
235
  description="Submit jobs to the dev environment.",
231
236
  rules_hcl=(lambda path: open(path).read())(f"{path['module']}/dev.hcl"))
232
237
  ```
238
+ <!--End PulumiCodeChooser -->
233
239
 
234
240
  Registering a policy from inline HCL:
235
241
 
242
+ <!--Start PulumiCodeChooser -->
236
243
  ```python
237
244
  import pulumi
238
245
  import pulumi_nomad as nomad
@@ -245,6 +252,7 @@ class AclPolicy(pulumi.CustomResource):
245
252
 
246
253
  \"\"\")
247
254
  ```
255
+ <!--End PulumiCodeChooser -->
248
256
 
249
257
  :param str resource_name: The name of the resource.
250
258
  :param AclPolicyArgs args: The arguments to use to populate this resource's properties.
@@ -351,6 +351,7 @@ class AclToken(pulumi.CustomResource):
351
351
 
352
352
  Creating a token with limited policies:
353
353
 
354
+ <!--Start PulumiCodeChooser -->
354
355
  ```python
355
356
  import pulumi
356
357
  import pulumi_nomad as nomad
@@ -362,9 +363,11 @@ class AclToken(pulumi.CustomResource):
362
363
  ],
363
364
  type="client")
364
365
  ```
366
+ <!--End PulumiCodeChooser -->
365
367
 
366
368
  Creating a global token that will be replicated to all regions:
367
369
 
370
+ <!--Start PulumiCodeChooser -->
368
371
  ```python
369
372
  import pulumi
370
373
  import pulumi_nomad as nomad
@@ -377,18 +380,22 @@ class AclToken(pulumi.CustomResource):
377
380
  ],
378
381
  type="client")
379
382
  ```
383
+ <!--End PulumiCodeChooser -->
380
384
 
381
385
  Creating a token with full access to the cluster:
382
386
 
387
+ <!--Start PulumiCodeChooser -->
383
388
  ```python
384
389
  import pulumi
385
390
  import pulumi_nomad as nomad
386
391
 
387
392
  iman = nomad.AclToken("iman", type="management")
388
393
  ```
394
+ <!--End PulumiCodeChooser -->
389
395
 
390
396
  Accessing the token:
391
397
 
398
+ <!--Start PulumiCodeChooser -->
392
399
  ```python
393
400
  import pulumi
394
401
  import pulumi_nomad as nomad
@@ -398,6 +405,7 @@ class AclToken(pulumi.CustomResource):
398
405
  policies=["dev"])
399
406
  pulumi.export("nomadToken", token.secret_id)
400
407
  ```
408
+ <!--End PulumiCodeChooser -->
401
409
 
402
410
  :param str resource_name: The name of the resource.
403
411
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -430,6 +438,7 @@ class AclToken(pulumi.CustomResource):
430
438
 
431
439
  Creating a token with limited policies:
432
440
 
441
+ <!--Start PulumiCodeChooser -->
433
442
  ```python
434
443
  import pulumi
435
444
  import pulumi_nomad as nomad
@@ -441,9 +450,11 @@ class AclToken(pulumi.CustomResource):
441
450
  ],
442
451
  type="client")
443
452
  ```
453
+ <!--End PulumiCodeChooser -->
444
454
 
445
455
  Creating a global token that will be replicated to all regions:
446
456
 
457
+ <!--Start PulumiCodeChooser -->
447
458
  ```python
448
459
  import pulumi
449
460
  import pulumi_nomad as nomad
@@ -456,18 +467,22 @@ class AclToken(pulumi.CustomResource):
456
467
  ],
457
468
  type="client")
458
469
  ```
470
+ <!--End PulumiCodeChooser -->
459
471
 
460
472
  Creating a token with full access to the cluster:
461
473
 
474
+ <!--Start PulumiCodeChooser -->
462
475
  ```python
463
476
  import pulumi
464
477
  import pulumi_nomad as nomad
465
478
 
466
479
  iman = nomad.AclToken("iman", type="management")
467
480
  ```
481
+ <!--End PulumiCodeChooser -->
468
482
 
469
483
  Accessing the token:
470
484
 
485
+ <!--Start PulumiCodeChooser -->
471
486
  ```python
472
487
  import pulumi
473
488
  import pulumi_nomad as nomad
@@ -477,6 +492,7 @@ class AclToken(pulumi.CustomResource):
477
492
  policies=["dev"])
478
493
  pulumi.export("nomadToken", token.secret_id)
479
494
  ```
495
+ <!--End PulumiCodeChooser -->
480
496
 
481
497
  :param str resource_name: The name of the resource.
482
498
  :param AclTokenArgs args: The arguments to use to populate this resource's properties.
@@ -643,6 +643,7 @@ class ExternalVolume(pulumi.CustomResource):
643
643
 
644
644
  Creating a volume:
645
645
 
646
+ <!--Start PulumiCodeChooser -->
646
647
  ```python
647
648
  import pulumi
648
649
  import pulumi_nomad as nomad
@@ -681,6 +682,7 @@ class ExternalVolume(pulumi.CustomResource):
681
682
  ),
682
683
  opts=pulumi.ResourceOptions(depends_on=[ebs]))
683
684
  ```
685
+ <!--End PulumiCodeChooser -->
684
686
 
685
687
  :param str resource_name: The name of the resource.
686
688
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -710,6 +712,7 @@ class ExternalVolume(pulumi.CustomResource):
710
712
 
711
713
  Creating a volume:
712
714
 
715
+ <!--Start PulumiCodeChooser -->
713
716
  ```python
714
717
  import pulumi
715
718
  import pulumi_nomad as nomad
@@ -748,6 +751,7 @@ class ExternalVolume(pulumi.CustomResource):
748
751
  ),
749
752
  opts=pulumi.ResourceOptions(depends_on=[ebs]))
750
753
  ```
754
+ <!--End PulumiCodeChooser -->
751
755
 
752
756
  :param str resource_name: The name of the resource.
753
757
  :param ExternalVolumeArgs args: The arguments to use to populate this resource's properties.
@@ -73,12 +73,14 @@ def get_acl_policies(prefix: Optional[str] = None,
73
73
 
74
74
  ## Example Usage
75
75
 
76
+ <!--Start PulumiCodeChooser -->
76
77
  ```python
77
78
  import pulumi
78
79
  import pulumi_nomad as nomad
79
80
 
80
81
  example = nomad.get_acl_policies(prefix="prod")
81
82
  ```
83
+ <!--End PulumiCodeChooser -->
82
84
 
83
85
 
84
86
  :param str prefix: `(string)` An optional string to filter ACL policies based on name prefix. If not provided, all policies are returned.
@@ -102,12 +104,14 @@ def get_acl_policies_output(prefix: Optional[pulumi.Input[Optional[str]]] = None
102
104
 
103
105
  ## Example Usage
104
106
 
107
+ <!--Start PulumiCodeChooser -->
105
108
  ```python
106
109
  import pulumi
107
110
  import pulumi_nomad as nomad
108
111
 
109
112
  example = nomad.get_acl_policies(prefix="prod")
110
113
  ```
114
+ <!--End PulumiCodeChooser -->
111
115
 
112
116
 
113
117
  :param str prefix: `(string)` An optional string to filter ACL policies based on name prefix. If not provided, all policies are returned.
@@ -87,12 +87,14 @@ def get_acl_policy(name: Optional[str] = None,
87
87
 
88
88
  ## Example Usage
89
89
 
90
+ <!--Start PulumiCodeChooser -->
90
91
  ```python
91
92
  import pulumi
92
93
  import pulumi_nomad as nomad
93
94
 
94
95
  my_policy = nomad.get_acl_policy(name="my-policy")
95
96
  ```
97
+ <!--End PulumiCodeChooser -->
96
98
 
97
99
 
98
100
  :param str name: `(string)` - the name of the ACL Policy.
@@ -117,12 +119,14 @@ def get_acl_policy_output(name: Optional[pulumi.Input[str]] = None,
117
119
 
118
120
  ## Example Usage
119
121
 
122
+ <!--Start PulumiCodeChooser -->
120
123
  ```python
121
124
  import pulumi
122
125
  import pulumi_nomad as nomad
123
126
 
124
127
  my_policy = nomad.get_acl_policy(name="my-policy")
125
128
  ```
129
+ <!--End PulumiCodeChooser -->
126
130
 
127
131
 
128
132
  :param str name: `(string)` - the name of the ACL Policy.
@@ -88,12 +88,14 @@ def get_acl_role(id: Optional[str] = None,
88
88
 
89
89
  ## Example Usage
90
90
 
91
+ <!--Start PulumiCodeChooser -->
91
92
  ```python
92
93
  import pulumi
93
94
  import pulumi_nomad as nomad
94
95
 
95
96
  example = nomad.get_acl_role(id="aa534e09-6a07-0a45-2295-a7f77063d429")
96
97
  ```
98
+ <!--End PulumiCodeChooser -->
97
99
 
98
100
 
99
101
  :param str id: `(string)` The unique identifier of the ACL Role.
@@ -118,12 +120,14 @@ def get_acl_role_output(id: Optional[pulumi.Input[str]] = None,
118
120
 
119
121
  ## Example Usage
120
122
 
123
+ <!--Start PulumiCodeChooser -->
121
124
  ```python
122
125
  import pulumi
123
126
  import pulumi_nomad as nomad
124
127
 
125
128
  example = nomad.get_acl_role(id="aa534e09-6a07-0a45-2295-a7f77063d429")
126
129
  ```
130
+ <!--End PulumiCodeChooser -->
127
131
 
128
132
 
129
133
  :param str id: `(string)` The unique identifier of the ACL Role.
@@ -70,12 +70,14 @@ def get_acl_roles(prefix: Optional[str] = None,
70
70
 
71
71
  ## Example Usage
72
72
 
73
+ <!--Start PulumiCodeChooser -->
73
74
  ```python
74
75
  import pulumi
75
76
  import pulumi_nomad as nomad
76
77
 
77
78
  example = nomad.get_acl_roles(prefix="a242")
78
79
  ```
80
+ <!--End PulumiCodeChooser -->
79
81
 
80
82
 
81
83
  :param str prefix: `(string)` An optional string to filter ACL Roles based on ID
@@ -100,12 +102,14 @@ def get_acl_roles_output(prefix: Optional[pulumi.Input[Optional[str]]] = None,
100
102
 
101
103
  ## Example Usage
102
104
 
105
+ <!--Start PulumiCodeChooser -->
103
106
  ```python
104
107
  import pulumi
105
108
  import pulumi_nomad as nomad
106
109
 
107
110
  example = nomad.get_acl_roles(prefix="a242")
108
111
  ```
112
+ <!--End PulumiCodeChooser -->
109
113
 
110
114
 
111
115
  :param str prefix: `(string)` An optional string to filter ACL Roles based on ID
@@ -173,12 +173,14 @@ def get_acl_token(accessor_id: Optional[str] = None,
173
173
  """
174
174
  ## Example Usage
175
175
 
176
+ <!--Start PulumiCodeChooser -->
176
177
  ```python
177
178
  import pulumi
178
179
  import pulumi_nomad as nomad
179
180
 
180
181
  my_token = nomad.get_acl_token(accessor_id="aa534e09-6a07-0a45-2295-a7f77063d429")
181
182
  ```
183
+ <!--End PulumiCodeChooser -->
182
184
 
183
185
 
184
186
  :param str accessor_id: `(string)` Non-sensitive identifier for this token.
@@ -208,12 +210,14 @@ def get_acl_token_output(accessor_id: Optional[pulumi.Input[str]] = None,
208
210
  """
209
211
  ## Example Usage
210
212
 
213
+ <!--Start PulumiCodeChooser -->
211
214
  ```python
212
215
  import pulumi
213
216
  import pulumi_nomad as nomad
214
217
 
215
218
  my_token = nomad.get_acl_token(accessor_id="aa534e09-6a07-0a45-2295-a7f77063d429")
216
219
  ```
220
+ <!--End PulumiCodeChooser -->
217
221
 
218
222
 
219
223
  :param str accessor_id: `(string)` Non-sensitive identifier for this token.
@@ -73,12 +73,14 @@ def get_acl_tokens(prefix: Optional[str] = None,
73
73
 
74
74
  ## Example Usage
75
75
 
76
+ <!--Start PulumiCodeChooser -->
76
77
  ```python
77
78
  import pulumi
78
79
  import pulumi_nomad as nomad
79
80
 
80
81
  tokens = nomad.get_acl_tokens(prefix="a242")
81
82
  ```
83
+ <!--End PulumiCodeChooser -->
82
84
 
83
85
 
84
86
  :param str prefix: `(string)` Optional prefix to filter the tokens.
@@ -102,12 +104,14 @@ def get_acl_tokens_output(prefix: Optional[pulumi.Input[Optional[str]]] = None,
102
104
 
103
105
  ## Example Usage
104
106
 
107
+ <!--Start PulumiCodeChooser -->
105
108
  ```python
106
109
  import pulumi
107
110
  import pulumi_nomad as nomad
108
111
 
109
112
  tokens = nomad.get_acl_tokens(prefix="a242")
110
113
  ```
114
+ <!--End PulumiCodeChooser -->
111
115
 
112
116
 
113
117
  :param str prefix: `(string)` Optional prefix to filter the tokens.
@@ -84,12 +84,14 @@ def get_allocations(filter: Optional[str] = None,
84
84
 
85
85
  ## Example Usage
86
86
 
87
+ <!--Start PulumiCodeChooser -->
87
88
  ```python
88
89
  import pulumi
89
90
  import pulumi_nomad as nomad
90
91
 
91
92
  example = nomad.get_allocations(filter="JobID == \\"example\\"")
92
93
  ```
94
+ <!--End PulumiCodeChooser -->
93
95
 
94
96
 
95
97
  :param str filter: `(string: <optional>)` - Specifies the
@@ -119,12 +121,14 @@ def get_allocations_output(filter: Optional[pulumi.Input[Optional[str]]] = None,
119
121
 
120
122
  ## Example Usage
121
123
 
124
+ <!--Start PulumiCodeChooser -->
122
125
  ```python
123
126
  import pulumi
124
127
  import pulumi_nomad as nomad
125
128
 
126
129
  example = nomad.get_allocations(filter="JobID == \\"example\\"")
127
130
  ```
131
+ <!--End PulumiCodeChooser -->
128
132
 
129
133
 
130
134
  :param str filter: `(string: <optional>)` - Specifies the
@@ -82,6 +82,7 @@ def get_datacenters(ignore_down_nodes: Optional[bool] = None,
82
82
 
83
83
  ## Example Usage
84
84
 
85
+ <!--Start PulumiCodeChooser -->
85
86
  ```python
86
87
  import pulumi
87
88
  import pulumi_nomad as nomad
@@ -89,6 +90,7 @@ def get_datacenters(ignore_down_nodes: Optional[bool] = None,
89
90
  datacenters = nomad.get_datacenters(ignore_down_nodes=True,
90
91
  prefix="prod")
91
92
  ```
93
+ <!--End PulumiCodeChooser -->
92
94
 
93
95
 
94
96
  :param bool ignore_down_nodes: `(bool: false)`: An optional flag that, if set to `true` will ignore down nodes when compiling the list of datacenters.
@@ -116,6 +118,7 @@ def get_datacenters_output(ignore_down_nodes: Optional[pulumi.Input[Optional[boo
116
118
 
117
119
  ## Example Usage
118
120
 
121
+ <!--Start PulumiCodeChooser -->
119
122
  ```python
120
123
  import pulumi
121
124
  import pulumi_nomad as nomad
@@ -123,6 +126,7 @@ def get_datacenters_output(ignore_down_nodes: Optional[pulumi.Input[Optional[boo
123
126
  datacenters = nomad.get_datacenters(ignore_down_nodes=True,
124
127
  prefix="prod")
125
128
  ```
129
+ <!--End PulumiCodeChooser -->
126
130
 
127
131
 
128
132
  :param bool ignore_down_nodes: `(bool: false)`: An optional flag that, if set to `true` will ignore down nodes when compiling the list of datacenters.
@@ -62,12 +62,14 @@ def get_deployments(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGet
62
62
 
63
63
  ## Example Usage
64
64
 
65
+ <!--Start PulumiCodeChooser -->
65
66
  ```python
66
67
  import pulumi
67
68
  import pulumi_nomad as nomad
68
69
 
69
70
  example = nomad.get_deployments()
70
71
  ```
72
+ <!--End PulumiCodeChooser -->
71
73
  """
72
74
  __args__ = dict()
73
75
  opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
@@ -85,11 +87,13 @@ def get_deployments_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulum
85
87
 
86
88
  ## Example Usage
87
89
 
90
+ <!--Start PulumiCodeChooser -->
88
91
  ```python
89
92
  import pulumi
90
93
  import pulumi_nomad as nomad
91
94
 
92
95
  example = nomad.get_deployments()
93
96
  ```
97
+ <!--End PulumiCodeChooser -->
94
98
  """
95
99
  ...
@@ -304,12 +304,14 @@ def get_job(job_id: Optional[str] = None,
304
304
 
305
305
  Get the data about a snapshot:
306
306
 
307
+ <!--Start PulumiCodeChooser -->
307
308
  ```python
308
309
  import pulumi
309
310
  import pulumi_nomad as nomad
310
311
 
311
312
  example = nomad.get_job(job_id="example")
312
313
  ```
314
+ <!--End PulumiCodeChooser -->
313
315
 
314
316
 
315
317
  :param str job_id: `(string)` ID of the job.
@@ -360,12 +362,14 @@ def get_job_output(job_id: Optional[pulumi.Input[str]] = None,
360
362
 
361
363
  Get the data about a snapshot:
362
364
 
365
+ <!--Start PulumiCodeChooser -->
363
366
  ```python
364
367
  import pulumi
365
368
  import pulumi_nomad as nomad
366
369
 
367
370
  example = nomad.get_job(job_id="example")
368
371
  ```
372
+ <!--End PulumiCodeChooser -->
369
373
 
370
374
 
371
375
  :param str job_id: `(string)` ID of the job.
@@ -88,6 +88,7 @@ def get_job_parser(canonicalize: Optional[bool] = None,
88
88
 
89
89
  ## Example Usage
90
90
 
91
+ <!--Start PulumiCodeChooser -->
91
92
  ```python
92
93
  import pulumi
93
94
  import pulumi_nomad as nomad
@@ -95,6 +96,7 @@ def get_job_parser(canonicalize: Optional[bool] = None,
95
96
  my_job = nomad.get_job_parser(hcl=(lambda path: open(path).read())(f"{path['module']}/jobspec.hcl"),
96
97
  canonicalize=False)
97
98
  ```
99
+ <!--End PulumiCodeChooser -->
98
100
 
99
101
 
100
102
  :param bool canonicalize: `(boolean: true)` - flag to enable setting any unset fields to their default values.
@@ -122,6 +124,7 @@ def get_job_parser_output(canonicalize: Optional[pulumi.Input[Optional[bool]]] =
122
124
 
123
125
  ## Example Usage
124
126
 
127
+ <!--Start PulumiCodeChooser -->
125
128
  ```python
126
129
  import pulumi
127
130
  import pulumi_nomad as nomad
@@ -129,6 +132,7 @@ def get_job_parser_output(canonicalize: Optional[pulumi.Input[Optional[bool]]] =
129
132
  my_job = nomad.get_job_parser(hcl=(lambda path: open(path).read())(f"{path['module']}/jobspec.hcl"),
130
133
  canonicalize=False)
131
134
  ```
135
+ <!--End PulumiCodeChooser -->
132
136
 
133
137
 
134
138
  :param bool canonicalize: `(boolean: true)` - flag to enable setting any unset fields to their default values.
@@ -118,12 +118,14 @@ def get_namespace(name: Optional[str] = None,
118
118
 
119
119
  ## Example Usage
120
120
 
121
+ <!--Start PulumiCodeChooser -->
121
122
  ```python
122
123
  import pulumi
123
124
  import pulumi_nomad as nomad
124
125
 
125
126
  namespaces = nomad.get_namespace(name="default")
126
127
  ```
128
+ <!--End PulumiCodeChooser -->
127
129
 
128
130
 
129
131
  :param str name: `(string)` - The name of the namespace.
@@ -151,12 +153,14 @@ def get_namespace_output(name: Optional[pulumi.Input[str]] = None,
151
153
 
152
154
  ## Example Usage
153
155
 
156
+ <!--Start PulumiCodeChooser -->
154
157
  ```python
155
158
  import pulumi
156
159
  import pulumi_nomad as nomad
157
160
 
158
161
  namespaces = nomad.get_namespace(name="default")
159
162
  ```
163
+ <!--End PulumiCodeChooser -->
160
164
 
161
165
 
162
166
  :param str name: `(string)` - The name of the namespace.
@@ -62,6 +62,7 @@ def get_namespaces(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetN
62
62
 
63
63
  ## Example Usage
64
64
 
65
+ <!--Start PulumiCodeChooser -->
65
66
  ```python
66
67
  import pulumi
67
68
  import pulumi_nomad as nomad
@@ -76,6 +77,7 @@ def get_namespaces(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetN
76
77
  }}
77
78
  \"\"\"))
78
79
  ```
80
+ <!--End PulumiCodeChooser -->
79
81
  """
80
82
  __args__ = dict()
81
83
  opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
@@ -93,6 +95,7 @@ def get_namespaces_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi
93
95
 
94
96
  ## Example Usage
95
97
 
98
+ <!--Start PulumiCodeChooser -->
96
99
  ```python
97
100
  import pulumi
98
101
  import pulumi_nomad as nomad
@@ -107,5 +110,6 @@ def get_namespaces_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi
107
110
  }}
108
111
  \"\"\"))
109
112
  ```
113
+ <!--End PulumiCodeChooser -->
110
114
  """
111
115
  ...
@@ -98,12 +98,14 @@ def get_node_pool(name: Optional[str] = None,
98
98
 
99
99
  ## Example Usage
100
100
 
101
+ <!--Start PulumiCodeChooser -->
101
102
  ```python
102
103
  import pulumi
103
104
  import pulumi_nomad as nomad
104
105
 
105
106
  dev = nomad.get_node_pool(name="dev")
106
107
  ```
108
+ <!--End PulumiCodeChooser -->
107
109
 
108
110
 
109
111
  :param str name: `(string)` - The name of the node pool to fetch.
@@ -129,12 +131,14 @@ def get_node_pool_output(name: Optional[pulumi.Input[str]] = None,
129
131
 
130
132
  ## Example Usage
131
133
 
134
+ <!--Start PulumiCodeChooser -->
132
135
  ```python
133
136
  import pulumi
134
137
  import pulumi_nomad as nomad
135
138
 
136
139
  dev = nomad.get_node_pool(name="dev")
137
140
  ```
141
+ <!--End PulumiCodeChooser -->
138
142
 
139
143
 
140
144
  :param str name: `(string)` - The name of the node pool to fetch.
@@ -84,12 +84,14 @@ def get_node_pools(filter: Optional[str] = None,
84
84
 
85
85
  ## Example Usage
86
86
 
87
+ <!--Start PulumiCodeChooser -->
87
88
  ```python
88
89
  import pulumi
89
90
  import pulumi_nomad as nomad
90
91
 
91
92
  prod = nomad.get_node_pools(filter="Meta.env == \\"prod\\"")
92
93
  ```
94
+ <!--End PulumiCodeChooser -->
93
95
 
94
96
 
95
97
  :param str filter: `(string)` - Specifies the [expression][nomad_api_filter] used to
@@ -119,12 +121,14 @@ def get_node_pools_output(filter: Optional[pulumi.Input[Optional[str]]] = None,
119
121
 
120
122
  ## Example Usage
121
123
 
124
+ <!--Start PulumiCodeChooser -->
122
125
  ```python
123
126
  import pulumi
124
127
  import pulumi_nomad as nomad
125
128
 
126
129
  prod = nomad.get_node_pools(filter="Meta.env == \\"prod\\"")
127
130
  ```
131
+ <!--End PulumiCodeChooser -->
128
132
 
129
133
 
130
134
  :param str filter: `(string)` - Specifies the [expression][nomad_api_filter] used to
@@ -186,6 +186,7 @@ def get_plugin(plugin_id: Optional[str] = None,
186
186
 
187
187
  Check for the existence of a plugin:
188
188
 
189
+ <!--Start PulumiCodeChooser -->
189
190
  ```python
190
191
  import pulumi
191
192
  import pulumi_nomad as nomad
@@ -193,6 +194,7 @@ def get_plugin(plugin_id: Optional[str] = None,
193
194
  ebs = nomad.get_plugin(plugin_id="aws-ebs0",
194
195
  wait_for_healthy=True)
195
196
  ```
197
+ <!--End PulumiCodeChooser -->
196
198
 
197
199
  This will check for a plugin with the ID `aws-ebs0`, waiting until the plugin
198
200
  is healthy before returning.
@@ -243,6 +245,7 @@ def get_plugin_output(plugin_id: Optional[pulumi.Input[str]] = None,
243
245
 
244
246
  Check for the existence of a plugin:
245
247
 
248
+ <!--Start PulumiCodeChooser -->
246
249
  ```python
247
250
  import pulumi
248
251
  import pulumi_nomad as nomad
@@ -250,6 +253,7 @@ def get_plugin_output(plugin_id: Optional[pulumi.Input[str]] = None,
250
253
  ebs = nomad.get_plugin(plugin_id="aws-ebs0",
251
254
  wait_for_healthy=True)
252
255
  ```
256
+ <!--End PulumiCodeChooser -->
253
257
 
254
258
  This will check for a plugin with the ID `aws-ebs0`, waiting until the plugin
255
259
  is healthy before returning.
@@ -72,12 +72,14 @@ def get_plugins(type: Optional[str] = None,
72
72
 
73
73
  ## Example Usage
74
74
 
75
+ <!--Start PulumiCodeChooser -->
75
76
  ```python
76
77
  import pulumi
77
78
  import pulumi_nomad as nomad
78
79
 
79
80
  example = nomad.get_plugins()
80
81
  ```
82
+ <!--End PulumiCodeChooser -->
81
83
  """
82
84
  __args__ = dict()
83
85
  __args__['type'] = type
@@ -98,11 +100,13 @@ def get_plugins_output(type: Optional[pulumi.Input[Optional[str]]] = None,
98
100
 
99
101
  ## Example Usage
100
102
 
103
+ <!--Start PulumiCodeChooser -->
101
104
  ```python
102
105
  import pulumi
103
106
  import pulumi_nomad as nomad
104
107
 
105
108
  example = nomad.get_plugins()
106
109
  ```
110
+ <!--End PulumiCodeChooser -->
107
111
  """
108
112
  ...
@@ -86,6 +86,7 @@ def get_scaling_policies(job_id: Optional[str] = None,
86
86
 
87
87
  ## Example Usage
88
88
 
89
+ <!--Start PulumiCodeChooser -->
89
90
  ```python
90
91
  import pulumi
91
92
  import pulumi_nomad as nomad
@@ -93,6 +94,7 @@ def get_scaling_policies(job_id: Optional[str] = None,
93
94
  example = nomad.get_scaling_policies(job_id="webapp",
94
95
  type="horizontal")
95
96
  ```
97
+ <!--End PulumiCodeChooser -->
96
98
 
97
99
 
98
100
  :param str job_id: `(string)` - An optional string to filter scaling policies based on the target job. If not provided, policies for all jobs are returned.
@@ -120,6 +122,7 @@ def get_scaling_policies_output(job_id: Optional[pulumi.Input[Optional[str]]] =
120
122
 
121
123
  ## Example Usage
122
124
 
125
+ <!--Start PulumiCodeChooser -->
123
126
  ```python
124
127
  import pulumi
125
128
  import pulumi_nomad as nomad
@@ -127,6 +130,7 @@ def get_scaling_policies_output(job_id: Optional[pulumi.Input[Optional[str]]] =
127
130
  example = nomad.get_scaling_policies(job_id="webapp",
128
131
  type="horizontal")
129
132
  ```
133
+ <!--End PulumiCodeChooser -->
130
134
 
131
135
 
132
136
  :param str job_id: `(string)` - An optional string to filter scaling policies based on the target job. If not provided, policies for all jobs are returned.
@@ -120,12 +120,14 @@ def get_scaling_policy(id: Optional[str] = None,
120
120
 
121
121
  ## Example Usage
122
122
 
123
+ <!--Start PulumiCodeChooser -->
123
124
  ```python
124
125
  import pulumi
125
126
  import pulumi_nomad as nomad
126
127
 
127
128
  example = nomad.get_scaling_policy(id="ad19848d-1921-179c-affa-244a3543be88")
128
129
  ```
130
+ <!--End PulumiCodeChooser -->
129
131
 
130
132
 
131
133
  :param str id: `(string: <required>)` - The ID of the scaling policy.
@@ -153,12 +155,14 @@ def get_scaling_policy_output(id: Optional[pulumi.Input[str]] = None,
153
155
 
154
156
  ## Example Usage
155
157
 
158
+ <!--Start PulumiCodeChooser -->
156
159
  ```python
157
160
  import pulumi
158
161
  import pulumi_nomad as nomad
159
162
 
160
163
  example = nomad.get_scaling_policy(id="ad19848d-1921-179c-affa-244a3543be88")
161
164
  ```
165
+ <!--End PulumiCodeChooser -->
162
166
 
163
167
 
164
168
  :param str id: `(string: <required>)` - The ID of the scaling policy.
@@ -86,12 +86,14 @@ def get_scheduler_policy(opts: Optional[pulumi.InvokeOptions] = None) -> Awaitab
86
86
 
87
87
  ## Example Usage
88
88
 
89
+ <!--Start PulumiCodeChooser -->
89
90
  ```python
90
91
  import pulumi
91
92
  import pulumi_nomad as nomad
92
93
 
93
94
  global_ = nomad.get_scheduler_policy()
94
95
  ```
96
+ <!--End PulumiCodeChooser -->
95
97
  """
96
98
  __args__ = dict()
97
99
  opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
@@ -111,11 +113,13 @@ def get_scheduler_policy_output(opts: Optional[pulumi.InvokeOptions] = None) ->
111
113
 
112
114
  ## Example Usage
113
115
 
116
+ <!--Start PulumiCodeChooser -->
114
117
  ```python
115
118
  import pulumi
116
119
  import pulumi_nomad as nomad
117
120
 
118
121
  global_ = nomad.get_scheduler_policy()
119
122
  ```
123
+ <!--End PulumiCodeChooser -->
120
124
  """
121
125
  ...
@@ -86,12 +86,14 @@ def get_variable(namespace: Optional[str] = None,
86
86
  """
87
87
  ## Example Usage
88
88
 
89
+ <!--Start PulumiCodeChooser -->
89
90
  ```python
90
91
  import pulumi
91
92
  import pulumi_nomad as nomad
92
93
 
93
94
  example = nomad.Variable("example", path="path/of/existing/variable")
94
95
  ```
96
+ <!--End PulumiCodeChooser -->
95
97
 
96
98
 
97
99
  :param str namespace: `(string: "default")` - The namepsace in which the variable exists.
@@ -117,12 +119,14 @@ def get_variable_output(namespace: Optional[pulumi.Input[Optional[str]]] = None,
117
119
  """
118
120
  ## Example Usage
119
121
 
122
+ <!--Start PulumiCodeChooser -->
120
123
  ```python
121
124
  import pulumi
122
125
  import pulumi_nomad as nomad
123
126
 
124
127
  example = nomad.Variable("example", path="path/of/existing/variable")
125
128
  ```
129
+ <!--End PulumiCodeChooser -->
126
130
 
127
131
 
128
132
  :param str namespace: `(string: "default")` - The namepsace in which the variable exists.
@@ -105,12 +105,14 @@ def get_volumes(namespace: Optional[str] = None,
105
105
 
106
106
  ## Example Usage
107
107
 
108
+ <!--Start PulumiCodeChooser -->
108
109
  ```python
109
110
  import pulumi
110
111
  import pulumi_nomad as nomad
111
112
 
112
113
  example = nomad.get_volumes()
113
114
  ```
115
+ <!--End PulumiCodeChooser -->
114
116
 
115
117
 
116
118
  :param str namespace: `(string: "default")` Nomad namespace.
@@ -146,12 +148,14 @@ def get_volumes_output(namespace: Optional[pulumi.Input[Optional[str]]] = None,
146
148
 
147
149
  ## Example Usage
148
150
 
151
+ <!--Start PulumiCodeChooser -->
149
152
  ```python
150
153
  import pulumi
151
154
  import pulumi_nomad as nomad
152
155
 
153
156
  example = nomad.get_volumes()
154
157
  ```
158
+ <!--End PulumiCodeChooser -->
155
159
 
156
160
 
157
161
  :param str namespace: `(string: "default")` Nomad namespace.
@@ -249,6 +249,7 @@ class Namespace(pulumi.CustomResource):
249
249
 
250
250
  Registering a namespace:
251
251
 
252
+ <!--Start PulumiCodeChooser -->
252
253
  ```python
253
254
  import pulumi
254
255
  import pulumi_nomad as nomad
@@ -261,9 +262,11 @@ class Namespace(pulumi.CustomResource):
261
262
  },
262
263
  quota="dev")
263
264
  ```
265
+ <!--End PulumiCodeChooser -->
264
266
 
265
267
  Registering a namespace with a quota:
266
268
 
269
+ <!--Start PulumiCodeChooser -->
267
270
  ```python
268
271
  import pulumi
269
272
  import pulumi_nomad as nomad
@@ -281,6 +284,7 @@ class Namespace(pulumi.CustomResource):
281
284
  description="Web team production environment.",
282
285
  quota=web_team.name)
283
286
  ```
287
+ <!--End PulumiCodeChooser -->
284
288
 
285
289
  :param str resource_name: The name of the resource.
286
290
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -310,6 +314,7 @@ class Namespace(pulumi.CustomResource):
310
314
 
311
315
  Registering a namespace:
312
316
 
317
+ <!--Start PulumiCodeChooser -->
313
318
  ```python
314
319
  import pulumi
315
320
  import pulumi_nomad as nomad
@@ -322,9 +327,11 @@ class Namespace(pulumi.CustomResource):
322
327
  },
323
328
  quota="dev")
324
329
  ```
330
+ <!--End PulumiCodeChooser -->
325
331
 
326
332
  Registering a namespace with a quota:
327
333
 
334
+ <!--Start PulumiCodeChooser -->
328
335
  ```python
329
336
  import pulumi
330
337
  import pulumi_nomad as nomad
@@ -342,6 +349,7 @@ class Namespace(pulumi.CustomResource):
342
349
  description="Web team production environment.",
343
350
  quota=web_team.name)
344
351
  ```
352
+ <!--End PulumiCodeChooser -->
345
353
 
346
354
  :param str resource_name: The name of the resource.
347
355
  :param NamespaceArgs args: The arguments to use to populate this resource's properties.
@@ -178,6 +178,7 @@ class NodePool(pulumi.CustomResource):
178
178
 
179
179
  Registering a node pool:
180
180
 
181
+ <!--Start PulumiCodeChooser -->
181
182
  ```python
182
183
  import pulumi
183
184
  import pulumi_nomad as nomad
@@ -189,6 +190,7 @@ class NodePool(pulumi.CustomResource):
189
190
  "env": "dev",
190
191
  })
191
192
  ```
193
+ <!--End PulumiCodeChooser -->
192
194
 
193
195
  :param str resource_name: The name of the resource.
194
196
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -211,6 +213,7 @@ class NodePool(pulumi.CustomResource):
211
213
 
212
214
  Registering a node pool:
213
215
 
216
+ <!--Start PulumiCodeChooser -->
214
217
  ```python
215
218
  import pulumi
216
219
  import pulumi_nomad as nomad
@@ -222,6 +225,7 @@ class NodePool(pulumi.CustomResource):
222
225
  "env": "dev",
223
226
  })
224
227
  ```
228
+ <!--End PulumiCodeChooser -->
225
229
 
226
230
  :param str resource_name: The name of the resource.
227
231
  :param NodePoolArgs args: The arguments to use to populate this resource's properties.
@@ -144,6 +144,7 @@ class QuoteSpecification(pulumi.CustomResource):
144
144
 
145
145
  Registering a quota specification:
146
146
 
147
+ <!--Start PulumiCodeChooser -->
147
148
  ```python
148
149
  import pulumi
149
150
  import pulumi_nomad as nomad
@@ -158,6 +159,7 @@ class QuoteSpecification(pulumi.CustomResource):
158
159
  ),
159
160
  )])
160
161
  ```
162
+ <!--End PulumiCodeChooser -->
161
163
 
162
164
  :param str resource_name: The name of the resource.
163
165
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -179,6 +181,7 @@ class QuoteSpecification(pulumi.CustomResource):
179
181
 
180
182
  Registering a quota specification:
181
183
 
184
+ <!--Start PulumiCodeChooser -->
182
185
  ```python
183
186
  import pulumi
184
187
  import pulumi_nomad as nomad
@@ -193,6 +196,7 @@ class QuoteSpecification(pulumi.CustomResource):
193
196
  ),
194
197
  )])
195
198
  ```
199
+ <!--End PulumiCodeChooser -->
196
200
 
197
201
  :param str resource_name: The name of the resource.
198
202
  :param QuoteSpecificationArgs args: The arguments to use to populate this resource's properties.
@@ -144,6 +144,7 @@ class SchedulerConfig(pulumi.CustomResource):
144
144
 
145
145
  Set cluster scheduler configuration:
146
146
 
147
+ <!--Start PulumiCodeChooser -->
147
148
  ```python
148
149
  import pulumi
149
150
  import pulumi_nomad as nomad
@@ -158,6 +159,7 @@ class SchedulerConfig(pulumi.CustomResource):
158
159
  },
159
160
  scheduler_algorithm="spread")
160
161
  ```
162
+ <!--End PulumiCodeChooser -->
161
163
 
162
164
  :param str resource_name: The name of the resource.
163
165
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -183,6 +185,7 @@ class SchedulerConfig(pulumi.CustomResource):
183
185
 
184
186
  Set cluster scheduler configuration:
185
187
 
188
+ <!--Start PulumiCodeChooser -->
186
189
  ```python
187
190
  import pulumi
188
191
  import pulumi_nomad as nomad
@@ -197,6 +200,7 @@ class SchedulerConfig(pulumi.CustomResource):
197
200
  },
198
201
  scheduler_algorithm="spread")
199
202
  ```
203
+ <!--End PulumiCodeChooser -->
200
204
 
201
205
  :param str resource_name: The name of the resource.
202
206
  :param SchedulerConfigArgs args: The arguments to use to populate this resource's properties.
@@ -219,6 +219,7 @@ class SentinelPolicy(pulumi.CustomResource):
219
219
 
220
220
  ## Example Usage
221
221
 
222
+ <!--Start PulumiCodeChooser -->
222
223
  ```python
223
224
  import pulumi
224
225
  import pulumi_nomad as nomad
@@ -240,6 +241,7 @@ class SentinelPolicy(pulumi.CustomResource):
240
241
  \"\"\",
241
242
  scope="submit-job")
242
243
  ```
244
+ <!--End PulumiCodeChooser -->
243
245
 
244
246
  :param str resource_name: The name of the resource.
245
247
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -267,6 +269,7 @@ class SentinelPolicy(pulumi.CustomResource):
267
269
 
268
270
  ## Example Usage
269
271
 
272
+ <!--Start PulumiCodeChooser -->
270
273
  ```python
271
274
  import pulumi
272
275
  import pulumi_nomad as nomad
@@ -288,6 +291,7 @@ class SentinelPolicy(pulumi.CustomResource):
288
291
  \"\"\",
289
292
  scope="submit-job")
290
293
  ```
294
+ <!--End PulumiCodeChooser -->
291
295
 
292
296
  :param str resource_name: The name of the resource.
293
297
  :param SentinelPolicyArgs args: The arguments to use to populate this resource's properties.
@@ -135,6 +135,7 @@ class Variable(pulumi.CustomResource):
135
135
 
136
136
  Creating a variable in the default namespace:
137
137
 
138
+ <!--Start PulumiCodeChooser -->
138
139
  ```python
139
140
  import pulumi
140
141
  import pulumi_nomad as nomad
@@ -145,9 +146,11 @@ class Variable(pulumi.CustomResource):
145
146
  },
146
147
  path="some/path/of/your/choosing")
147
148
  ```
149
+ <!--End PulumiCodeChooser -->
148
150
 
149
151
  Creating a variable in a custom namespace:
150
152
 
153
+ <!--Start PulumiCodeChooser -->
151
154
  ```python
152
155
  import pulumi
153
156
  import pulumi_nomad as nomad
@@ -160,6 +163,7 @@ class Variable(pulumi.CustomResource):
160
163
  "example_key": "example_value",
161
164
  })
162
165
  ```
166
+ <!--End PulumiCodeChooser -->
163
167
 
164
168
  :param str resource_name: The name of the resource.
165
169
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -178,6 +182,7 @@ class Variable(pulumi.CustomResource):
178
182
 
179
183
  Creating a variable in the default namespace:
180
184
 
185
+ <!--Start PulumiCodeChooser -->
181
186
  ```python
182
187
  import pulumi
183
188
  import pulumi_nomad as nomad
@@ -188,9 +193,11 @@ class Variable(pulumi.CustomResource):
188
193
  },
189
194
  path="some/path/of/your/choosing")
190
195
  ```
196
+ <!--End PulumiCodeChooser -->
191
197
 
192
198
  Creating a variable in a custom namespace:
193
199
 
200
+ <!--Start PulumiCodeChooser -->
194
201
  ```python
195
202
  import pulumi
196
203
  import pulumi_nomad as nomad
@@ -203,6 +210,7 @@ class Variable(pulumi.CustomResource):
203
210
  "example_key": "example_value",
204
211
  })
205
212
  ```
213
+ <!--End PulumiCodeChooser -->
206
214
 
207
215
  :param str resource_name: The name of the resource.
208
216
  :param VariableArgs args: The arguments to use to populate this resource's properties.
@@ -720,6 +720,7 @@ class Volume(pulumi.CustomResource):
720
720
 
721
721
  Registering a volume:
722
722
 
723
+ <!--Start PulumiCodeChooser -->
723
724
  ```python
724
725
  import pulumi
725
726
  import pulumi_nomad as nomad
@@ -757,6 +758,7 @@ class Volume(pulumi.CustomResource):
757
758
  ),
758
759
  opts=pulumi.ResourceOptions(depends_on=[ebs]))
759
760
  ```
761
+ <!--End PulumiCodeChooser -->
760
762
 
761
763
  :param str resource_name: The name of the resource.
762
764
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -792,6 +794,7 @@ class Volume(pulumi.CustomResource):
792
794
 
793
795
  Registering a volume:
794
796
 
797
+ <!--Start PulumiCodeChooser -->
795
798
  ```python
796
799
  import pulumi
797
800
  import pulumi_nomad as nomad
@@ -829,6 +832,7 @@ class Volume(pulumi.CustomResource):
829
832
  ),
830
833
  opts=pulumi.ResourceOptions(depends_on=[ebs]))
831
834
  ```
835
+ <!--End PulumiCodeChooser -->
832
836
 
833
837
  :param str resource_name: The name of the resource.
834
838
  :param VolumeArgs args: The arguments to use to populate this resource's properties.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pulumi_nomad
3
- Version: 2.2.0a1709365942
3
+ Version: 2.2.0a1710156747
4
4
  Summary: A Pulumi package for creating and managing nomad cloud resources.
5
5
  License: Apache-2.0
6
6
  Project-URL: Homepage, https://pulumi.io
@@ -5,7 +5,7 @@
5
5
  keywords = ["pulumi", "nomad"]
6
6
  readme = "README.md"
7
7
  requires-python = ">=3.8"
8
- version = "2.2.0a1709365942"
8
+ version = "2.2.0a1710156747"
9
9
  [project.license]
10
10
  text = "Apache-2.0"
11
11
  [project.urls]