pulumi-nomad 2.2.0a1710156747__py3-none-any.whl → 2.2.1__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 (44) hide show
  1. pulumi_nomad/_inputs.py +92 -146
  2. pulumi_nomad/acl_auth_method.py +46 -41
  3. pulumi_nomad/acl_policy.py +0 -64
  4. pulumi_nomad/acl_token.py +18 -26
  5. pulumi_nomad/csi_volume.py +0 -72
  6. pulumi_nomad/csi_volume_registration.py +7 -79
  7. pulumi_nomad/external_volume.py +6 -78
  8. pulumi_nomad/get_acl_policies.py +0 -4
  9. pulumi_nomad/get_acl_policy.py +0 -4
  10. pulumi_nomad/get_acl_role.py +0 -4
  11. pulumi_nomad/get_acl_roles.py +0 -4
  12. pulumi_nomad/get_acl_token.py +0 -4
  13. pulumi_nomad/get_acl_tokens.py +0 -4
  14. pulumi_nomad/get_allocations.py +21 -5
  15. pulumi_nomad/get_datacenters.py +4 -8
  16. pulumi_nomad/get_deployments.py +0 -4
  17. pulumi_nomad/get_job.py +4 -9
  18. pulumi_nomad/get_job_parser.py +0 -24
  19. pulumi_nomad/get_namespace.py +0 -4
  20. pulumi_nomad/get_namespaces.py +2 -4
  21. pulumi_nomad/get_node_pool.py +0 -4
  22. pulumi_nomad/get_node_pools.py +0 -4
  23. pulumi_nomad/get_plugin.py +0 -4
  24. pulumi_nomad/get_plugins.py +0 -4
  25. pulumi_nomad/get_regions.py +34 -0
  26. pulumi_nomad/get_scaling_policies.py +0 -4
  27. pulumi_nomad/get_scaling_policy.py +0 -4
  28. pulumi_nomad/get_scheduler_policy.py +0 -4
  29. pulumi_nomad/get_variable.py +0 -4
  30. pulumi_nomad/get_volumes.py +0 -4
  31. pulumi_nomad/job.py +16 -16
  32. pulumi_nomad/namespace.py +14 -16
  33. pulumi_nomad/node_pool.py +2 -4
  34. pulumi_nomad/outputs.py +94 -148
  35. pulumi_nomad/quote_specification.py +4 -6
  36. pulumi_nomad/scheduler_config.py +6 -10
  37. pulumi_nomad/sentinel_policy.py +6 -10
  38. pulumi_nomad/variable.py +14 -18
  39. pulumi_nomad/volume.py +15 -87
  40. {pulumi_nomad-2.2.0a1710156747.dist-info → pulumi_nomad-2.2.1.dist-info}/METADATA +1 -1
  41. pulumi_nomad-2.2.1.dist-info/RECORD +54 -0
  42. {pulumi_nomad-2.2.0a1710156747.dist-info → pulumi_nomad-2.2.1.dist-info}/WHEEL +1 -1
  43. pulumi_nomad-2.2.0a1710156747.dist-info/RECORD +0 -54
  44. {pulumi_nomad-2.2.0a1710156747.dist-info → pulumi_nomad-2.2.1.dist-info}/top_level.txt +0 -0
@@ -25,8 +25,9 @@ class AclAuthMethodArgs:
25
25
  token_name_format: Optional[pulumi.Input[str]] = None):
26
26
  """
27
27
  The set of arguments for constructing a AclAuthMethod resource.
28
- :param pulumi.Input['AclAuthMethodConfigArgs'] config: Configuration specific to the auth method provider.
29
- :param pulumi.Input[str] max_token_ttl: `(string: <required>)` - Defines the maximum life of a token
28
+ :param pulumi.Input['AclAuthMethodConfigArgs'] config: `(block: <required>)` - Configuration specific to the auth method
29
+ provider.
30
+ :param pulumi.Input[str] max_token_ttl: `(string: <required>)` - Defines the maximum life of a token
30
31
  created by this method and is specified as a time duration such as "15h".
31
32
  :param pulumi.Input[str] token_locality: `(string: <required>)` - Defines whether the ACL Auth Method
32
33
  creates a local or global token when performing SSO login. This field must be
@@ -36,9 +37,9 @@ class AclAuthMethodArgs:
36
37
  :param pulumi.Input[bool] default: `(bool: false)` - Defines whether this ACL Auth Method is to be set
37
38
  as default.
38
39
  :param pulumi.Input[str] name: `(string: <required>)` - The identifier of the ACL Auth Method.
39
- :param pulumi.Input[str] token_name_format: `(string: <optional>)` - Defines the token name format for the
40
- generated tokens This can be lightly templated using HIL '${foo}' syntax.
41
- Defaults to `${auth_method_type}-${auth_method_name}`.
40
+ :param pulumi.Input[str] token_name_format: `(string: "${auth_method_type}-${auth_method_name}")` -
41
+ Defines the token name format for the generated tokens This can be lightly
42
+ templated using HIL '${foo}' syntax.
42
43
  """
43
44
  pulumi.set(__self__, "config", config)
44
45
  pulumi.set(__self__, "max_token_ttl", max_token_ttl)
@@ -55,7 +56,8 @@ class AclAuthMethodArgs:
55
56
  @pulumi.getter
56
57
  def config(self) -> pulumi.Input['AclAuthMethodConfigArgs']:
57
58
  """
58
- Configuration specific to the auth method provider.
59
+ `(block: <required>)` - Configuration specific to the auth method
60
+ provider.
59
61
  """
60
62
  return pulumi.get(self, "config")
61
63
 
@@ -67,7 +69,7 @@ class AclAuthMethodArgs:
67
69
  @pulumi.getter(name="maxTokenTtl")
68
70
  def max_token_ttl(self) -> pulumi.Input[str]:
69
71
  """
70
- `(string: <required>)` - Defines the maximum life of a token
72
+ `(string: <required>)` - Defines the maximum life of a token
71
73
  created by this method and is specified as a time duration such as "15h".
72
74
  """
73
75
  return pulumi.get(self, "max_token_ttl")
@@ -132,9 +134,9 @@ class AclAuthMethodArgs:
132
134
  @pulumi.getter(name="tokenNameFormat")
133
135
  def token_name_format(self) -> Optional[pulumi.Input[str]]:
134
136
  """
135
- `(string: <optional>)` - Defines the token name format for the
136
- generated tokens This can be lightly templated using HIL '${foo}' syntax.
137
- Defaults to `${auth_method_type}-${auth_method_name}`.
137
+ `(string: "${auth_method_type}-${auth_method_name}")` -
138
+ Defines the token name format for the generated tokens This can be lightly
139
+ templated using HIL '${foo}' syntax.
138
140
  """
139
141
  return pulumi.get(self, "token_name_format")
140
142
 
@@ -155,18 +157,19 @@ class _AclAuthMethodState:
155
157
  type: Optional[pulumi.Input[str]] = None):
156
158
  """
157
159
  Input properties used for looking up and filtering AclAuthMethod resources.
158
- :param pulumi.Input['AclAuthMethodConfigArgs'] config: Configuration specific to the auth method provider.
160
+ :param pulumi.Input['AclAuthMethodConfigArgs'] config: `(block: <required>)` - Configuration specific to the auth method
161
+ provider.
159
162
  :param pulumi.Input[bool] default: `(bool: false)` - Defines whether this ACL Auth Method is to be set
160
163
  as default.
161
- :param pulumi.Input[str] max_token_ttl: `(string: <required>)` - Defines the maximum life of a token
164
+ :param pulumi.Input[str] max_token_ttl: `(string: <required>)` - Defines the maximum life of a token
162
165
  created by this method and is specified as a time duration such as "15h".
163
166
  :param pulumi.Input[str] name: `(string: <required>)` - The identifier of the ACL Auth Method.
164
167
  :param pulumi.Input[str] token_locality: `(string: <required>)` - Defines whether the ACL Auth Method
165
168
  creates a local or global token when performing SSO login. This field must be
166
169
  set to either `local` or `global`.
167
- :param pulumi.Input[str] token_name_format: `(string: <optional>)` - Defines the token name format for the
168
- generated tokens This can be lightly templated using HIL '${foo}' syntax.
169
- Defaults to `${auth_method_type}-${auth_method_name}`.
170
+ :param pulumi.Input[str] token_name_format: `(string: "${auth_method_type}-${auth_method_name}")` -
171
+ Defines the token name format for the generated tokens This can be lightly
172
+ templated using HIL '${foo}' syntax.
170
173
  :param pulumi.Input[str] type: `(string: <required>)` - ACL Auth Method SSO workflow type. Currently,
171
174
  the only supported type is `OIDC`.
172
175
  """
@@ -189,7 +192,8 @@ class _AclAuthMethodState:
189
192
  @pulumi.getter
190
193
  def config(self) -> Optional[pulumi.Input['AclAuthMethodConfigArgs']]:
191
194
  """
192
- Configuration specific to the auth method provider.
195
+ `(block: <required>)` - Configuration specific to the auth method
196
+ provider.
193
197
  """
194
198
  return pulumi.get(self, "config")
195
199
 
@@ -214,7 +218,7 @@ class _AclAuthMethodState:
214
218
  @pulumi.getter(name="maxTokenTtl")
215
219
  def max_token_ttl(self) -> Optional[pulumi.Input[str]]:
216
220
  """
217
- `(string: <required>)` - Defines the maximum life of a token
221
+ `(string: <required>)` - Defines the maximum life of a token
218
222
  created by this method and is specified as a time duration such as "15h".
219
223
  """
220
224
  return pulumi.get(self, "max_token_ttl")
@@ -253,9 +257,9 @@ class _AclAuthMethodState:
253
257
  @pulumi.getter(name="tokenNameFormat")
254
258
  def token_name_format(self) -> Optional[pulumi.Input[str]]:
255
259
  """
256
- `(string: <optional>)` - Defines the token name format for the
257
- generated tokens This can be lightly templated using HIL '${foo}' syntax.
258
- Defaults to `${auth_method_type}-${auth_method_name}`.
260
+ `(string: "${auth_method_type}-${auth_method_name}")` -
261
+ Defines the token name format for the generated tokens This can be lightly
262
+ templated using HIL '${foo}' syntax.
259
263
  """
260
264
  return pulumi.get(self, "token_name_format")
261
265
 
@@ -297,12 +301,12 @@ class AclAuthMethod(pulumi.CustomResource):
297
301
 
298
302
  Creating an ALC Auth Method:
299
303
 
300
- <!--Start PulumiCodeChooser -->
301
304
  ```python
302
305
  import pulumi
303
306
  import pulumi_nomad as nomad
304
307
 
305
- my_nomad_acl_auth_method = nomad.AclAuthMethod("myNomadAclAuthMethod",
308
+ my_nomad_acl_auth_method = nomad.AclAuthMethod("my_nomad_acl_auth_method",
309
+ name="my-nomad-acl-auth-method",
306
310
  type="OIDC",
307
311
  token_locality="global",
308
312
  max_token_ttl="10m0s",
@@ -322,22 +326,22 @@ class AclAuthMethod(pulumi.CustomResource):
322
326
  },
323
327
  ))
324
328
  ```
325
- <!--End PulumiCodeChooser -->
326
329
 
327
330
  :param str resource_name: The name of the resource.
328
331
  :param pulumi.ResourceOptions opts: Options for the resource.
329
- :param pulumi.Input[pulumi.InputType['AclAuthMethodConfigArgs']] config: Configuration specific to the auth method provider.
332
+ :param pulumi.Input[pulumi.InputType['AclAuthMethodConfigArgs']] config: `(block: <required>)` - Configuration specific to the auth method
333
+ provider.
330
334
  :param pulumi.Input[bool] default: `(bool: false)` - Defines whether this ACL Auth Method is to be set
331
335
  as default.
332
- :param pulumi.Input[str] max_token_ttl: `(string: <required>)` - Defines the maximum life of a token
336
+ :param pulumi.Input[str] max_token_ttl: `(string: <required>)` - Defines the maximum life of a token
333
337
  created by this method and is specified as a time duration such as "15h".
334
338
  :param pulumi.Input[str] name: `(string: <required>)` - The identifier of the ACL Auth Method.
335
339
  :param pulumi.Input[str] token_locality: `(string: <required>)` - Defines whether the ACL Auth Method
336
340
  creates a local or global token when performing SSO login. This field must be
337
341
  set to either `local` or `global`.
338
- :param pulumi.Input[str] token_name_format: `(string: <optional>)` - Defines the token name format for the
339
- generated tokens This can be lightly templated using HIL '${foo}' syntax.
340
- Defaults to `${auth_method_type}-${auth_method_name}`.
342
+ :param pulumi.Input[str] token_name_format: `(string: "${auth_method_type}-${auth_method_name}")` -
343
+ Defines the token name format for the generated tokens This can be lightly
344
+ templated using HIL '${foo}' syntax.
341
345
  :param pulumi.Input[str] type: `(string: <required>)` - ACL Auth Method SSO workflow type. Currently,
342
346
  the only supported type is `OIDC`.
343
347
  """
@@ -354,12 +358,12 @@ class AclAuthMethod(pulumi.CustomResource):
354
358
 
355
359
  Creating an ALC Auth Method:
356
360
 
357
- <!--Start PulumiCodeChooser -->
358
361
  ```python
359
362
  import pulumi
360
363
  import pulumi_nomad as nomad
361
364
 
362
- my_nomad_acl_auth_method = nomad.AclAuthMethod("myNomadAclAuthMethod",
365
+ my_nomad_acl_auth_method = nomad.AclAuthMethod("my_nomad_acl_auth_method",
366
+ name="my-nomad-acl-auth-method",
363
367
  type="OIDC",
364
368
  token_locality="global",
365
369
  max_token_ttl="10m0s",
@@ -379,7 +383,6 @@ class AclAuthMethod(pulumi.CustomResource):
379
383
  },
380
384
  ))
381
385
  ```
382
- <!--End PulumiCodeChooser -->
383
386
 
384
387
  :param str resource_name: The name of the resource.
385
388
  :param AclAuthMethodArgs args: The arguments to use to populate this resource's properties.
@@ -451,18 +454,19 @@ class AclAuthMethod(pulumi.CustomResource):
451
454
  :param str resource_name: The unique name of the resulting resource.
452
455
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
453
456
  :param pulumi.ResourceOptions opts: Options for the resource.
454
- :param pulumi.Input[pulumi.InputType['AclAuthMethodConfigArgs']] config: Configuration specific to the auth method provider.
457
+ :param pulumi.Input[pulumi.InputType['AclAuthMethodConfigArgs']] config: `(block: <required>)` - Configuration specific to the auth method
458
+ provider.
455
459
  :param pulumi.Input[bool] default: `(bool: false)` - Defines whether this ACL Auth Method is to be set
456
460
  as default.
457
- :param pulumi.Input[str] max_token_ttl: `(string: <required>)` - Defines the maximum life of a token
461
+ :param pulumi.Input[str] max_token_ttl: `(string: <required>)` - Defines the maximum life of a token
458
462
  created by this method and is specified as a time duration such as "15h".
459
463
  :param pulumi.Input[str] name: `(string: <required>)` - The identifier of the ACL Auth Method.
460
464
  :param pulumi.Input[str] token_locality: `(string: <required>)` - Defines whether the ACL Auth Method
461
465
  creates a local or global token when performing SSO login. This field must be
462
466
  set to either `local` or `global`.
463
- :param pulumi.Input[str] token_name_format: `(string: <optional>)` - Defines the token name format for the
464
- generated tokens This can be lightly templated using HIL '${foo}' syntax.
465
- Defaults to `${auth_method_type}-${auth_method_name}`.
467
+ :param pulumi.Input[str] token_name_format: `(string: "${auth_method_type}-${auth_method_name}")` -
468
+ Defines the token name format for the generated tokens This can be lightly
469
+ templated using HIL '${foo}' syntax.
466
470
  :param pulumi.Input[str] type: `(string: <required>)` - ACL Auth Method SSO workflow type. Currently,
467
471
  the only supported type is `OIDC`.
468
472
  """
@@ -483,7 +487,8 @@ class AclAuthMethod(pulumi.CustomResource):
483
487
  @pulumi.getter
484
488
  def config(self) -> pulumi.Output['outputs.AclAuthMethodConfig']:
485
489
  """
486
- Configuration specific to the auth method provider.
490
+ `(block: <required>)` - Configuration specific to the auth method
491
+ provider.
487
492
  """
488
493
  return pulumi.get(self, "config")
489
494
 
@@ -500,7 +505,7 @@ class AclAuthMethod(pulumi.CustomResource):
500
505
  @pulumi.getter(name="maxTokenTtl")
501
506
  def max_token_ttl(self) -> pulumi.Output[str]:
502
507
  """
503
- `(string: <required>)` - Defines the maximum life of a token
508
+ `(string: <required>)` - Defines the maximum life of a token
504
509
  created by this method and is specified as a time duration such as "15h".
505
510
  """
506
511
  return pulumi.get(self, "max_token_ttl")
@@ -527,9 +532,9 @@ class AclAuthMethod(pulumi.CustomResource):
527
532
  @pulumi.getter(name="tokenNameFormat")
528
533
  def token_name_format(self) -> pulumi.Output[Optional[str]]:
529
534
  """
530
- `(string: <optional>)` - Defines the token name format for the
531
- generated tokens This can be lightly templated using HIL '${foo}' syntax.
532
- Defaults to `${auth_method_type}-${auth_method_name}`.
535
+ `(string: "${auth_method_type}-${auth_method_name}")` -
536
+ Defines the token name format for the generated tokens This can be lightly
537
+ templated using HIL '${foo}' syntax.
533
538
  """
534
539
  return pulumi.get(self, "token_name_format")
535
540
 
@@ -173,38 +173,6 @@ class AclPolicy(pulumi.CustomResource):
173
173
  """
174
174
  Manages an ACL policy registered in Nomad.
175
175
 
176
- ## Example Usage
177
-
178
- Registering a policy from a HCL file:
179
-
180
- <!--Start PulumiCodeChooser -->
181
- ```python
182
- import pulumi
183
- import pulumi_nomad as nomad
184
-
185
- dev = nomad.AclPolicy("dev",
186
- description="Submit jobs to the dev environment.",
187
- rules_hcl=(lambda path: open(path).read())(f"{path['module']}/dev.hcl"))
188
- ```
189
- <!--End PulumiCodeChooser -->
190
-
191
- Registering a policy from inline HCL:
192
-
193
- <!--Start PulumiCodeChooser -->
194
- ```python
195
- import pulumi
196
- import pulumi_nomad as nomad
197
-
198
- dev = nomad.AclPolicy("dev",
199
- description="Submit jobs to the dev environment.",
200
- rules_hcl=\"\"\"namespace "dev" {
201
- policy = "write"
202
- }
203
-
204
- \"\"\")
205
- ```
206
- <!--End PulumiCodeChooser -->
207
-
208
176
  :param str resource_name: The name of the resource.
209
177
  :param pulumi.ResourceOptions opts: Options for the resource.
210
178
  :param pulumi.Input[str] description: `(string: "")` - A description of the policy.
@@ -222,38 +190,6 @@ class AclPolicy(pulumi.CustomResource):
222
190
  """
223
191
  Manages an ACL policy registered in Nomad.
224
192
 
225
- ## Example Usage
226
-
227
- Registering a policy from a HCL file:
228
-
229
- <!--Start PulumiCodeChooser -->
230
- ```python
231
- import pulumi
232
- import pulumi_nomad as nomad
233
-
234
- dev = nomad.AclPolicy("dev",
235
- description="Submit jobs to the dev environment.",
236
- rules_hcl=(lambda path: open(path).read())(f"{path['module']}/dev.hcl"))
237
- ```
238
- <!--End PulumiCodeChooser -->
239
-
240
- Registering a policy from inline HCL:
241
-
242
- <!--Start PulumiCodeChooser -->
243
- ```python
244
- import pulumi
245
- import pulumi_nomad as nomad
246
-
247
- dev = nomad.AclPolicy("dev",
248
- description="Submit jobs to the dev environment.",
249
- rules_hcl=\"\"\"namespace "dev" {
250
- policy = "write"
251
- }
252
-
253
- \"\"\")
254
- ```
255
- <!--End PulumiCodeChooser -->
256
-
257
193
  :param str resource_name: The name of the resource.
258
194
  :param AclPolicyArgs args: The arguments to use to populate this resource's properties.
259
195
  :param pulumi.ResourceOptions opts: Options for the resource.
pulumi_nomad/acl_token.py CHANGED
@@ -351,51 +351,48 @@ class AclToken(pulumi.CustomResource):
351
351
 
352
352
  Creating a token with limited policies:
353
353
 
354
- <!--Start PulumiCodeChooser -->
355
354
  ```python
356
355
  import pulumi
357
356
  import pulumi_nomad as nomad
358
357
 
359
358
  dakota = nomad.AclToken("dakota",
359
+ name="Dakota",
360
+ type="client",
360
361
  policies=[
361
362
  "dev",
362
363
  "qa",
363
- ],
364
- type="client")
364
+ ])
365
365
  ```
366
- <!--End PulumiCodeChooser -->
367
366
 
368
367
  Creating a global token that will be replicated to all regions:
369
368
 
370
- <!--Start PulumiCodeChooser -->
371
369
  ```python
372
370
  import pulumi
373
371
  import pulumi_nomad as nomad
374
372
 
375
373
  dakota = nomad.AclToken("dakota",
376
- global_=True,
374
+ name="Dakota",
375
+ type="client",
377
376
  policies=[
378
377
  "dev",
379
378
  "qa",
380
379
  ],
381
- type="client")
380
+ global_=True)
382
381
  ```
383
- <!--End PulumiCodeChooser -->
384
382
 
385
383
  Creating a token with full access to the cluster:
386
384
 
387
- <!--Start PulumiCodeChooser -->
388
385
  ```python
389
386
  import pulumi
390
387
  import pulumi_nomad as nomad
391
388
 
392
- iman = nomad.AclToken("iman", type="management")
389
+ iman = nomad.AclToken("iman",
390
+ name="Iman",
391
+ type="management")
393
392
  ```
394
- <!--End PulumiCodeChooser -->
395
393
 
396
394
  Accessing the token:
397
395
 
398
- <!--Start PulumiCodeChooser -->
399
396
  ```python
400
397
  import pulumi
401
398
  import pulumi_nomad as nomad
@@ -405,7 +402,6 @@ class AclToken(pulumi.CustomResource):
405
402
  policies=["dev"])
406
403
  pulumi.export("nomadToken", token.secret_id)
407
404
  ```
408
- <!--End PulumiCodeChooser -->
409
405
 
410
406
  :param str resource_name: The name of the resource.
411
407
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -438,51 +434,48 @@ class AclToken(pulumi.CustomResource):
438
434
 
439
435
  Creating a token with limited policies:
440
436
 
441
- <!--Start PulumiCodeChooser -->
442
437
  ```python
443
438
  import pulumi
444
439
  import pulumi_nomad as nomad
445
440
 
446
441
  dakota = nomad.AclToken("dakota",
442
+ name="Dakota",
443
+ type="client",
447
444
  policies=[
448
445
  "dev",
449
446
  "qa",
450
- ],
451
- type="client")
447
+ ])
452
448
  ```
453
- <!--End PulumiCodeChooser -->
454
449
 
455
450
  Creating a global token that will be replicated to all regions:
456
451
 
457
- <!--Start PulumiCodeChooser -->
458
452
  ```python
459
453
  import pulumi
460
454
  import pulumi_nomad as nomad
461
455
 
462
456
  dakota = nomad.AclToken("dakota",
463
- global_=True,
457
+ name="Dakota",
458
+ type="client",
464
459
  policies=[
465
460
  "dev",
466
461
  "qa",
467
462
  ],
468
- type="client")
463
+ global_=True)
469
464
  ```
470
- <!--End PulumiCodeChooser -->
471
465
 
472
466
  Creating a token with full access to the cluster:
473
467
 
474
- <!--Start PulumiCodeChooser -->
475
468
  ```python
476
469
  import pulumi
477
470
  import pulumi_nomad as nomad
478
471
 
479
- iman = nomad.AclToken("iman", type="management")
472
+ iman = nomad.AclToken("iman",
473
+ name="Iman",
474
+ type="management")
480
475
  ```
481
- <!--End PulumiCodeChooser -->
482
476
 
483
477
  Accessing the token:
484
478
 
485
- <!--Start PulumiCodeChooser -->
486
479
  ```python
487
480
  import pulumi
488
481
  import pulumi_nomad as nomad
@@ -492,7 +485,6 @@ class AclToken(pulumi.CustomResource):
492
485
  policies=["dev"])
493
486
  pulumi.export("nomadToken", token.secret_id)
494
487
  ```
495
- <!--End PulumiCodeChooser -->
496
488
 
497
489
  :param str resource_name: The name of the resource.
498
490
  :param AclTokenArgs args: The arguments to use to populate this resource's properties.
@@ -261,23 +261,14 @@ class _CsiVolumeState:
261
261
  :param pulumi.Input[str] capacity_max: `(string: <optional>)` - Option to signal a maximum volume size. This may not be supported by all storage providers.
262
262
  :param pulumi.Input[str] capacity_min: `(string: <optional>)` - Option to signal a minimum volume size. This may not be supported by all storage providers.
263
263
  :param pulumi.Input[str] clone_id: `(string: <optional>)` - The external ID of an existing volume to restore. If ommited, the volume will be created from scratch. Conflicts with `snapshot_id`.
264
- :param pulumi.Input[bool] controller_required: `(boolean)`
265
- :param pulumi.Input[int] controllers_expected: `(integer)`
266
- :param pulumi.Input[int] controllers_healthy: `(integer)`
267
264
  :param pulumi.Input[str] external_id: The ID of the physical volume from the storage provider.
268
265
  :param pulumi.Input['CsiVolumeMountOptionsArgs'] mount_options: `(block: optional)` Options for mounting `block-device` volumes without a pre-formatted file system.
269
266
  :param pulumi.Input[str] name: `(string: <required>)` - The display name for the volume.
270
267
  :param pulumi.Input[str] namespace: `(string: "default")` - The namespace in which to register the volume.
271
- :param pulumi.Input[int] nodes_expected: `(integer)`
272
- :param pulumi.Input[int] nodes_healthy: `(integer)`
273
268
  :param pulumi.Input[Mapping[str, pulumi.Input[str]]] parameters: `(map[string]string: optional)` An optional key-value map of strings passed directly to the CSI plugin to configure the volume.
274
269
  :param pulumi.Input[str] plugin_id: `(string: <required>)` - The ID of the Nomad plugin for registering this volume.
275
- :param pulumi.Input[str] plugin_provider: `(string)`
276
- :param pulumi.Input[str] plugin_provider_version: `(string)`
277
- :param pulumi.Input[bool] schedulable: `(boolean)`
278
270
  :param pulumi.Input[Mapping[str, pulumi.Input[str]]] secrets: `(map[string]string: optional)` An optional key-value map of strings used as credentials for publishing and unpublishing volumes.
279
271
  :param pulumi.Input[str] snapshot_id: `(string: <optional>)` - The external ID of a snapshot to restore. If ommited, the volume will be created from scratch. Conflicts with `clone_id`.
280
- :param pulumi.Input[Sequence[pulumi.Input['CsiVolumeTopologyArgs']]] topologies: `(List of topologies)`
281
272
  :param pulumi.Input['CsiVolumeTopologyRequestArgs'] topology_request: `(``TopologyRequest``: <optional>)` - Specify locations (region, zone, rack, etc.) where the provisioned volume is accessible from.
282
273
  :param pulumi.Input[str] volume_id: `(string: <required>)` - The unique ID of the volume.
283
274
  """
@@ -412,9 +403,6 @@ class _CsiVolumeState:
412
403
  @property
413
404
  @pulumi.getter(name="controllerRequired")
414
405
  def controller_required(self) -> Optional[pulumi.Input[bool]]:
415
- """
416
- `(boolean)`
417
- """
418
406
  return pulumi.get(self, "controller_required")
419
407
 
420
408
  @controller_required.setter
@@ -424,9 +412,6 @@ class _CsiVolumeState:
424
412
  @property
425
413
  @pulumi.getter(name="controllersExpected")
426
414
  def controllers_expected(self) -> Optional[pulumi.Input[int]]:
427
- """
428
- `(integer)`
429
- """
430
415
  return pulumi.get(self, "controllers_expected")
431
416
 
432
417
  @controllers_expected.setter
@@ -436,9 +421,6 @@ class _CsiVolumeState:
436
421
  @property
437
422
  @pulumi.getter(name="controllersHealthy")
438
423
  def controllers_healthy(self) -> Optional[pulumi.Input[int]]:
439
- """
440
- `(integer)`
441
- """
442
424
  return pulumi.get(self, "controllers_healthy")
443
425
 
444
426
  @controllers_healthy.setter
@@ -496,9 +478,6 @@ class _CsiVolumeState:
496
478
  @property
497
479
  @pulumi.getter(name="nodesExpected")
498
480
  def nodes_expected(self) -> Optional[pulumi.Input[int]]:
499
- """
500
- `(integer)`
501
- """
502
481
  return pulumi.get(self, "nodes_expected")
503
482
 
504
483
  @nodes_expected.setter
@@ -508,9 +487,6 @@ class _CsiVolumeState:
508
487
  @property
509
488
  @pulumi.getter(name="nodesHealthy")
510
489
  def nodes_healthy(self) -> Optional[pulumi.Input[int]]:
511
- """
512
- `(integer)`
513
- """
514
490
  return pulumi.get(self, "nodes_healthy")
515
491
 
516
492
  @nodes_healthy.setter
@@ -544,9 +520,6 @@ class _CsiVolumeState:
544
520
  @property
545
521
  @pulumi.getter(name="pluginProvider")
546
522
  def plugin_provider(self) -> Optional[pulumi.Input[str]]:
547
- """
548
- `(string)`
549
- """
550
523
  return pulumi.get(self, "plugin_provider")
551
524
 
552
525
  @plugin_provider.setter
@@ -556,9 +529,6 @@ class _CsiVolumeState:
556
529
  @property
557
530
  @pulumi.getter(name="pluginProviderVersion")
558
531
  def plugin_provider_version(self) -> Optional[pulumi.Input[str]]:
559
- """
560
- `(string)`
561
- """
562
532
  return pulumi.get(self, "plugin_provider_version")
563
533
 
564
534
  @plugin_provider_version.setter
@@ -568,9 +538,6 @@ class _CsiVolumeState:
568
538
  @property
569
539
  @pulumi.getter
570
540
  def schedulable(self) -> Optional[pulumi.Input[bool]]:
571
- """
572
- `(boolean)`
573
- """
574
541
  return pulumi.get(self, "schedulable")
575
542
 
576
543
  @schedulable.setter
@@ -604,9 +571,6 @@ class _CsiVolumeState:
604
571
  @property
605
572
  @pulumi.getter
606
573
  def topologies(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['CsiVolumeTopologyArgs']]]]:
607
- """
608
- `(List of topologies)`
609
- """
610
574
  return pulumi.get(self, "topologies")
611
575
 
612
576
  @topologies.setter
@@ -801,23 +765,14 @@ class CsiVolume(pulumi.CustomResource):
801
765
  :param pulumi.Input[str] capacity_max: `(string: <optional>)` - Option to signal a maximum volume size. This may not be supported by all storage providers.
802
766
  :param pulumi.Input[str] capacity_min: `(string: <optional>)` - Option to signal a minimum volume size. This may not be supported by all storage providers.
803
767
  :param pulumi.Input[str] clone_id: `(string: <optional>)` - The external ID of an existing volume to restore. If ommited, the volume will be created from scratch. Conflicts with `snapshot_id`.
804
- :param pulumi.Input[bool] controller_required: `(boolean)`
805
- :param pulumi.Input[int] controllers_expected: `(integer)`
806
- :param pulumi.Input[int] controllers_healthy: `(integer)`
807
768
  :param pulumi.Input[str] external_id: The ID of the physical volume from the storage provider.
808
769
  :param pulumi.Input[pulumi.InputType['CsiVolumeMountOptionsArgs']] mount_options: `(block: optional)` Options for mounting `block-device` volumes without a pre-formatted file system.
809
770
  :param pulumi.Input[str] name: `(string: <required>)` - The display name for the volume.
810
771
  :param pulumi.Input[str] namespace: `(string: "default")` - The namespace in which to register the volume.
811
- :param pulumi.Input[int] nodes_expected: `(integer)`
812
- :param pulumi.Input[int] nodes_healthy: `(integer)`
813
772
  :param pulumi.Input[Mapping[str, pulumi.Input[str]]] parameters: `(map[string]string: optional)` An optional key-value map of strings passed directly to the CSI plugin to configure the volume.
814
773
  :param pulumi.Input[str] plugin_id: `(string: <required>)` - The ID of the Nomad plugin for registering this volume.
815
- :param pulumi.Input[str] plugin_provider: `(string)`
816
- :param pulumi.Input[str] plugin_provider_version: `(string)`
817
- :param pulumi.Input[bool] schedulable: `(boolean)`
818
774
  :param pulumi.Input[Mapping[str, pulumi.Input[str]]] secrets: `(map[string]string: optional)` An optional key-value map of strings used as credentials for publishing and unpublishing volumes.
819
775
  :param pulumi.Input[str] snapshot_id: `(string: <optional>)` - The external ID of a snapshot to restore. If ommited, the volume will be created from scratch. Conflicts with `clone_id`.
820
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['CsiVolumeTopologyArgs']]]] topologies: `(List of topologies)`
821
776
  :param pulumi.Input[pulumi.InputType['CsiVolumeTopologyRequestArgs']] topology_request: `(``TopologyRequest``: <optional>)` - Specify locations (region, zone, rack, etc.) where the provisioned volume is accessible from.
822
777
  :param pulumi.Input[str] volume_id: `(string: <required>)` - The unique ID of the volume.
823
778
  """
@@ -903,25 +858,16 @@ class CsiVolume(pulumi.CustomResource):
903
858
  @property
904
859
  @pulumi.getter(name="controllerRequired")
905
860
  def controller_required(self) -> pulumi.Output[bool]:
906
- """
907
- `(boolean)`
908
- """
909
861
  return pulumi.get(self, "controller_required")
910
862
 
911
863
  @property
912
864
  @pulumi.getter(name="controllersExpected")
913
865
  def controllers_expected(self) -> pulumi.Output[int]:
914
- """
915
- `(integer)`
916
- """
917
866
  return pulumi.get(self, "controllers_expected")
918
867
 
919
868
  @property
920
869
  @pulumi.getter(name="controllersHealthy")
921
870
  def controllers_healthy(self) -> pulumi.Output[int]:
922
- """
923
- `(integer)`
924
- """
925
871
  return pulumi.get(self, "controllers_healthy")
926
872
 
927
873
  @property
@@ -959,17 +905,11 @@ class CsiVolume(pulumi.CustomResource):
959
905
  @property
960
906
  @pulumi.getter(name="nodesExpected")
961
907
  def nodes_expected(self) -> pulumi.Output[int]:
962
- """
963
- `(integer)`
964
- """
965
908
  return pulumi.get(self, "nodes_expected")
966
909
 
967
910
  @property
968
911
  @pulumi.getter(name="nodesHealthy")
969
912
  def nodes_healthy(self) -> pulumi.Output[int]:
970
- """
971
- `(integer)`
972
- """
973
913
  return pulumi.get(self, "nodes_healthy")
974
914
 
975
915
  @property
@@ -991,25 +931,16 @@ class CsiVolume(pulumi.CustomResource):
991
931
  @property
992
932
  @pulumi.getter(name="pluginProvider")
993
933
  def plugin_provider(self) -> pulumi.Output[str]:
994
- """
995
- `(string)`
996
- """
997
934
  return pulumi.get(self, "plugin_provider")
998
935
 
999
936
  @property
1000
937
  @pulumi.getter(name="pluginProviderVersion")
1001
938
  def plugin_provider_version(self) -> pulumi.Output[str]:
1002
- """
1003
- `(string)`
1004
- """
1005
939
  return pulumi.get(self, "plugin_provider_version")
1006
940
 
1007
941
  @property
1008
942
  @pulumi.getter
1009
943
  def schedulable(self) -> pulumi.Output[bool]:
1010
- """
1011
- `(boolean)`
1012
- """
1013
944
  return pulumi.get(self, "schedulable")
1014
945
 
1015
946
  @property
@@ -1031,9 +962,6 @@ class CsiVolume(pulumi.CustomResource):
1031
962
  @property
1032
963
  @pulumi.getter
1033
964
  def topologies(self) -> pulumi.Output[Sequence['outputs.CsiVolumeTopology']]:
1034
- """
1035
- `(List of topologies)`
1036
- """
1037
965
  return pulumi.get(self, "topologies")
1038
966
 
1039
967
  @property