pulumi-nomad 2.2.0a1710332982__py3-none-any.whl → 2.3.0__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.
- pulumi_nomad/__init__.py +1 -0
- pulumi_nomad/_inputs.py +221 -189
- pulumi_nomad/acl_auth_method.py +18 -20
- pulumi_nomad/acl_policy.py +0 -64
- pulumi_nomad/acl_token.py +18 -26
- pulumi_nomad/csi_volume.py +0 -72
- pulumi_nomad/csi_volume_registration.py +0 -72
- pulumi_nomad/external_volume.py +6 -78
- pulumi_nomad/get_acl_policies.py +0 -4
- pulumi_nomad/get_acl_policy.py +0 -4
- pulumi_nomad/get_acl_role.py +0 -4
- pulumi_nomad/get_acl_roles.py +0 -4
- pulumi_nomad/get_acl_token.py +0 -4
- pulumi_nomad/get_acl_tokens.py +0 -4
- pulumi_nomad/get_allocations.py +0 -4
- pulumi_nomad/get_datacenters.py +4 -8
- pulumi_nomad/get_deployments.py +5 -4
- pulumi_nomad/get_job.py +0 -4
- pulumi_nomad/get_job_parser.py +0 -24
- pulumi_nomad/get_jwks.py +116 -0
- pulumi_nomad/get_namespace.py +0 -4
- pulumi_nomad/get_namespaces.py +2 -4
- pulumi_nomad/get_node_pool.py +0 -4
- pulumi_nomad/get_node_pools.py +0 -4
- pulumi_nomad/get_plugin.py +0 -4
- pulumi_nomad/get_plugins.py +0 -4
- pulumi_nomad/get_regions.py +34 -0
- pulumi_nomad/get_scaling_policies.py +0 -4
- pulumi_nomad/get_scaling_policy.py +0 -4
- pulumi_nomad/get_scheduler_policy.py +0 -4
- pulumi_nomad/get_variable.py +0 -4
- pulumi_nomad/get_volumes.py +0 -4
- pulumi_nomad/job.py +16 -16
- pulumi_nomad/namespace.py +14 -16
- pulumi_nomad/node_pool.py +2 -4
- pulumi_nomad/outputs.py +274 -182
- pulumi_nomad/pulumi-plugin.json +2 -1
- pulumi_nomad/quote_specification.py +4 -6
- pulumi_nomad/scheduler_config.py +6 -10
- pulumi_nomad/sentinel_policy.py +6 -10
- pulumi_nomad/variable.py +14 -18
- pulumi_nomad/volume.py +8 -80
- {pulumi_nomad-2.2.0a1710332982.dist-info → pulumi_nomad-2.3.0.dist-info}/METADATA +1 -1
- pulumi_nomad-2.3.0.dist-info/RECORD +55 -0
- pulumi_nomad-2.2.0a1710332982.dist-info/RECORD +0 -54
- {pulumi_nomad-2.2.0a1710332982.dist-info → pulumi_nomad-2.3.0.dist-info}/WHEEL +0 -0
- {pulumi_nomad-2.2.0a1710332982.dist-info → pulumi_nomad-2.3.0.dist-info}/top_level.txt +0 -0
@@ -277,23 +277,14 @@ class _CsiVolumeRegistrationState:
|
|
277
277
|
:param pulumi.Input[str] capacity_max: `(string: <optional>)` - Option to signal a maximum volume size. This may not be supported by all storage providers.
|
278
278
|
:param pulumi.Input[str] capacity_min: `(string: <optional>)` - Option to signal a minimum volume size. This may not be supported by all storage providers.
|
279
279
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] context: `(map[string]string: <optional>)` - An optional key-value map of strings passed directly to the CSI plugin to validate the volume.
|
280
|
-
:param pulumi.Input[bool] controller_required: `(boolean)`
|
281
|
-
:param pulumi.Input[int] controllers_expected: `(integer)`
|
282
|
-
:param pulumi.Input[int] controllers_healthy: `(integer)`
|
283
280
|
:param pulumi.Input[bool] deregister_on_destroy: `(boolean: true)` - If true, the volume will be deregistered on destroy.
|
284
281
|
:param pulumi.Input[str] external_id: `(string: <required>)` - The ID of the physical volume from the storage provider.
|
285
282
|
:param pulumi.Input['CsiVolumeRegistrationMountOptionsArgs'] mount_options: `(block: <optional>)` Options for mounting `block-device` volumes without a pre-formatted file system.
|
286
283
|
:param pulumi.Input[str] name: `(string: <required>)` - The display name for the volume.
|
287
284
|
:param pulumi.Input[str] namespace: `(string: "default")` - The namespace in which to register the volume.
|
288
|
-
:param pulumi.Input[int] nodes_expected: `(integer)`
|
289
|
-
:param pulumi.Input[int] nodes_healthy: `(integer)`
|
290
285
|
: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.
|
291
286
|
:param pulumi.Input[str] plugin_id: `(string: <required>)` - The ID of the Nomad plugin for registering this volume.
|
292
|
-
:param pulumi.Input[str] plugin_provider: `(string)`
|
293
|
-
:param pulumi.Input[str] plugin_provider_version: `(string)`
|
294
|
-
:param pulumi.Input[bool] schedulable: `(boolean)`
|
295
287
|
: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.
|
296
|
-
:param pulumi.Input[Sequence[pulumi.Input['CsiVolumeRegistrationTopologyArgs']]] topologies: `(List of topologies)`
|
297
288
|
:param pulumi.Input['CsiVolumeRegistrationTopologyRequestArgs'] topology_request: `(``TopologyRequest``: <optional>)` - Specify locations (region, zone, rack, etc.) where the provisioned volume is accessible from.
|
298
289
|
:param pulumi.Input[str] volume_id: `(string: <required>)` - The unique ID of the volume.
|
299
290
|
"""
|
@@ -428,9 +419,6 @@ class _CsiVolumeRegistrationState:
|
|
428
419
|
@property
|
429
420
|
@pulumi.getter(name="controllerRequired")
|
430
421
|
def controller_required(self) -> Optional[pulumi.Input[bool]]:
|
431
|
-
"""
|
432
|
-
`(boolean)`
|
433
|
-
"""
|
434
422
|
return pulumi.get(self, "controller_required")
|
435
423
|
|
436
424
|
@controller_required.setter
|
@@ -440,9 +428,6 @@ class _CsiVolumeRegistrationState:
|
|
440
428
|
@property
|
441
429
|
@pulumi.getter(name="controllersExpected")
|
442
430
|
def controllers_expected(self) -> Optional[pulumi.Input[int]]:
|
443
|
-
"""
|
444
|
-
`(integer)`
|
445
|
-
"""
|
446
431
|
return pulumi.get(self, "controllers_expected")
|
447
432
|
|
448
433
|
@controllers_expected.setter
|
@@ -452,9 +437,6 @@ class _CsiVolumeRegistrationState:
|
|
452
437
|
@property
|
453
438
|
@pulumi.getter(name="controllersHealthy")
|
454
439
|
def controllers_healthy(self) -> Optional[pulumi.Input[int]]:
|
455
|
-
"""
|
456
|
-
`(integer)`
|
457
|
-
"""
|
458
440
|
return pulumi.get(self, "controllers_healthy")
|
459
441
|
|
460
442
|
@controllers_healthy.setter
|
@@ -524,9 +506,6 @@ class _CsiVolumeRegistrationState:
|
|
524
506
|
@property
|
525
507
|
@pulumi.getter(name="nodesExpected")
|
526
508
|
def nodes_expected(self) -> Optional[pulumi.Input[int]]:
|
527
|
-
"""
|
528
|
-
`(integer)`
|
529
|
-
"""
|
530
509
|
return pulumi.get(self, "nodes_expected")
|
531
510
|
|
532
511
|
@nodes_expected.setter
|
@@ -536,9 +515,6 @@ class _CsiVolumeRegistrationState:
|
|
536
515
|
@property
|
537
516
|
@pulumi.getter(name="nodesHealthy")
|
538
517
|
def nodes_healthy(self) -> Optional[pulumi.Input[int]]:
|
539
|
-
"""
|
540
|
-
`(integer)`
|
541
|
-
"""
|
542
518
|
return pulumi.get(self, "nodes_healthy")
|
543
519
|
|
544
520
|
@nodes_healthy.setter
|
@@ -572,9 +548,6 @@ class _CsiVolumeRegistrationState:
|
|
572
548
|
@property
|
573
549
|
@pulumi.getter(name="pluginProvider")
|
574
550
|
def plugin_provider(self) -> Optional[pulumi.Input[str]]:
|
575
|
-
"""
|
576
|
-
`(string)`
|
577
|
-
"""
|
578
551
|
return pulumi.get(self, "plugin_provider")
|
579
552
|
|
580
553
|
@plugin_provider.setter
|
@@ -584,9 +557,6 @@ class _CsiVolumeRegistrationState:
|
|
584
557
|
@property
|
585
558
|
@pulumi.getter(name="pluginProviderVersion")
|
586
559
|
def plugin_provider_version(self) -> Optional[pulumi.Input[str]]:
|
587
|
-
"""
|
588
|
-
`(string)`
|
589
|
-
"""
|
590
560
|
return pulumi.get(self, "plugin_provider_version")
|
591
561
|
|
592
562
|
@plugin_provider_version.setter
|
@@ -596,9 +566,6 @@ class _CsiVolumeRegistrationState:
|
|
596
566
|
@property
|
597
567
|
@pulumi.getter
|
598
568
|
def schedulable(self) -> Optional[pulumi.Input[bool]]:
|
599
|
-
"""
|
600
|
-
`(boolean)`
|
601
|
-
"""
|
602
569
|
return pulumi.get(self, "schedulable")
|
603
570
|
|
604
571
|
@schedulable.setter
|
@@ -620,9 +587,6 @@ class _CsiVolumeRegistrationState:
|
|
620
587
|
@property
|
621
588
|
@pulumi.getter
|
622
589
|
def topologies(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['CsiVolumeRegistrationTopologyArgs']]]]:
|
623
|
-
"""
|
624
|
-
`(List of topologies)`
|
625
|
-
"""
|
626
590
|
return pulumi.get(self, "topologies")
|
627
591
|
|
628
592
|
@topologies.setter
|
@@ -820,23 +784,14 @@ class CsiVolumeRegistration(pulumi.CustomResource):
|
|
820
784
|
:param pulumi.Input[str] capacity_max: `(string: <optional>)` - Option to signal a maximum volume size. This may not be supported by all storage providers.
|
821
785
|
:param pulumi.Input[str] capacity_min: `(string: <optional>)` - Option to signal a minimum volume size. This may not be supported by all storage providers.
|
822
786
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] context: `(map[string]string: <optional>)` - An optional key-value map of strings passed directly to the CSI plugin to validate the volume.
|
823
|
-
:param pulumi.Input[bool] controller_required: `(boolean)`
|
824
|
-
:param pulumi.Input[int] controllers_expected: `(integer)`
|
825
|
-
:param pulumi.Input[int] controllers_healthy: `(integer)`
|
826
787
|
:param pulumi.Input[bool] deregister_on_destroy: `(boolean: true)` - If true, the volume will be deregistered on destroy.
|
827
788
|
:param pulumi.Input[str] external_id: `(string: <required>)` - The ID of the physical volume from the storage provider.
|
828
789
|
:param pulumi.Input[pulumi.InputType['CsiVolumeRegistrationMountOptionsArgs']] mount_options: `(block: <optional>)` Options for mounting `block-device` volumes without a pre-formatted file system.
|
829
790
|
:param pulumi.Input[str] name: `(string: <required>)` - The display name for the volume.
|
830
791
|
:param pulumi.Input[str] namespace: `(string: "default")` - The namespace in which to register the volume.
|
831
|
-
:param pulumi.Input[int] nodes_expected: `(integer)`
|
832
|
-
:param pulumi.Input[int] nodes_healthy: `(integer)`
|
833
792
|
: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.
|
834
793
|
:param pulumi.Input[str] plugin_id: `(string: <required>)` - The ID of the Nomad plugin for registering this volume.
|
835
|
-
:param pulumi.Input[str] plugin_provider: `(string)`
|
836
|
-
:param pulumi.Input[str] plugin_provider_version: `(string)`
|
837
|
-
:param pulumi.Input[bool] schedulable: `(boolean)`
|
838
794
|
: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.
|
839
|
-
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['CsiVolumeRegistrationTopologyArgs']]]] topologies: `(List of topologies)`
|
840
795
|
:param pulumi.Input[pulumi.InputType['CsiVolumeRegistrationTopologyRequestArgs']] topology_request: `(``TopologyRequest``: <optional>)` - Specify locations (region, zone, rack, etc.) where the provisioned volume is accessible from.
|
841
796
|
:param pulumi.Input[str] volume_id: `(string: <required>)` - The unique ID of the volume.
|
842
797
|
"""
|
@@ -922,25 +877,16 @@ class CsiVolumeRegistration(pulumi.CustomResource):
|
|
922
877
|
@property
|
923
878
|
@pulumi.getter(name="controllerRequired")
|
924
879
|
def controller_required(self) -> pulumi.Output[bool]:
|
925
|
-
"""
|
926
|
-
`(boolean)`
|
927
|
-
"""
|
928
880
|
return pulumi.get(self, "controller_required")
|
929
881
|
|
930
882
|
@property
|
931
883
|
@pulumi.getter(name="controllersExpected")
|
932
884
|
def controllers_expected(self) -> pulumi.Output[int]:
|
933
|
-
"""
|
934
|
-
`(integer)`
|
935
|
-
"""
|
936
885
|
return pulumi.get(self, "controllers_expected")
|
937
886
|
|
938
887
|
@property
|
939
888
|
@pulumi.getter(name="controllersHealthy")
|
940
889
|
def controllers_healthy(self) -> pulumi.Output[int]:
|
941
|
-
"""
|
942
|
-
`(integer)`
|
943
|
-
"""
|
944
890
|
return pulumi.get(self, "controllers_healthy")
|
945
891
|
|
946
892
|
@property
|
@@ -986,17 +932,11 @@ class CsiVolumeRegistration(pulumi.CustomResource):
|
|
986
932
|
@property
|
987
933
|
@pulumi.getter(name="nodesExpected")
|
988
934
|
def nodes_expected(self) -> pulumi.Output[int]:
|
989
|
-
"""
|
990
|
-
`(integer)`
|
991
|
-
"""
|
992
935
|
return pulumi.get(self, "nodes_expected")
|
993
936
|
|
994
937
|
@property
|
995
938
|
@pulumi.getter(name="nodesHealthy")
|
996
939
|
def nodes_healthy(self) -> pulumi.Output[int]:
|
997
|
-
"""
|
998
|
-
`(integer)`
|
999
|
-
"""
|
1000
940
|
return pulumi.get(self, "nodes_healthy")
|
1001
941
|
|
1002
942
|
@property
|
@@ -1018,25 +958,16 @@ class CsiVolumeRegistration(pulumi.CustomResource):
|
|
1018
958
|
@property
|
1019
959
|
@pulumi.getter(name="pluginProvider")
|
1020
960
|
def plugin_provider(self) -> pulumi.Output[str]:
|
1021
|
-
"""
|
1022
|
-
`(string)`
|
1023
|
-
"""
|
1024
961
|
return pulumi.get(self, "plugin_provider")
|
1025
962
|
|
1026
963
|
@property
|
1027
964
|
@pulumi.getter(name="pluginProviderVersion")
|
1028
965
|
def plugin_provider_version(self) -> pulumi.Output[str]:
|
1029
|
-
"""
|
1030
|
-
`(string)`
|
1031
|
-
"""
|
1032
966
|
return pulumi.get(self, "plugin_provider_version")
|
1033
967
|
|
1034
968
|
@property
|
1035
969
|
@pulumi.getter
|
1036
970
|
def schedulable(self) -> pulumi.Output[bool]:
|
1037
|
-
"""
|
1038
|
-
`(boolean)`
|
1039
|
-
"""
|
1040
971
|
return pulumi.get(self, "schedulable")
|
1041
972
|
|
1042
973
|
@property
|
@@ -1050,9 +981,6 @@ class CsiVolumeRegistration(pulumi.CustomResource):
|
|
1050
981
|
@property
|
1051
982
|
@pulumi.getter
|
1052
983
|
def topologies(self) -> pulumi.Output[Sequence['outputs.CsiVolumeRegistrationTopology']]:
|
1053
|
-
"""
|
1054
|
-
`(List of topologies)`
|
1055
|
-
"""
|
1056
984
|
return pulumi.get(self, "topologies")
|
1057
985
|
|
1058
986
|
@property
|
pulumi_nomad/external_volume.py
CHANGED
@@ -274,22 +274,13 @@ class _ExternalVolumeState:
|
|
274
274
|
:param pulumi.Input[str] capacity_max: `(string: <optional>)` - Option to signal a maximum volume size. This may not be supported by all storage providers.
|
275
275
|
:param pulumi.Input[str] capacity_min: `(string: <optional>)` - Option to signal a minimum volume size. This may not be supported by all storage providers.
|
276
276
|
: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`.
|
277
|
-
:param pulumi.Input[bool] controller_required: `(boolean)`
|
278
|
-
:param pulumi.Input[int] controllers_expected: `(integer)`
|
279
|
-
:param pulumi.Input[int] controllers_healthy: `(integer)`
|
280
277
|
:param pulumi.Input['ExternalVolumeMountOptionsArgs'] mount_options: `(block: optional)` Options for mounting `block-device` volumes without a pre-formatted file system.
|
281
278
|
:param pulumi.Input[str] name: `(string: <required>)` - The display name for the volume.
|
282
279
|
:param pulumi.Input[str] namespace: `(string: "default")` - The namespace in which to register the volume.
|
283
|
-
:param pulumi.Input[int] nodes_expected: `(integer)`
|
284
|
-
:param pulumi.Input[int] nodes_healthy: `(integer)`
|
285
280
|
: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.
|
286
281
|
:param pulumi.Input[str] plugin_id: `(string: <required>)` - The ID of the Nomad plugin for registering this volume.
|
287
|
-
:param pulumi.Input[str] plugin_provider: `(string)`
|
288
|
-
:param pulumi.Input[str] plugin_provider_version: `(string)`
|
289
|
-
:param pulumi.Input[bool] schedulable: `(boolean)`
|
290
282
|
: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.
|
291
283
|
: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`.
|
292
|
-
:param pulumi.Input[Sequence[pulumi.Input['ExternalVolumeTopologyArgs']]] topologies: `(List of topologies)`
|
293
284
|
:param pulumi.Input['ExternalVolumeTopologyRequestArgs'] topology_request: `(``TopologyRequest``: <optional>)` - Specify locations (region, zone, rack, etc.) where the provisioned volume is accessible from.
|
294
285
|
:param pulumi.Input[str] type: `(string: <required>)` - The type of the volume. Currently, only `csi` is supported.
|
295
286
|
:param pulumi.Input[str] volume_id: `(string: <required>)` - The unique ID of the volume.
|
@@ -392,9 +383,6 @@ class _ExternalVolumeState:
|
|
392
383
|
@property
|
393
384
|
@pulumi.getter(name="controllerRequired")
|
394
385
|
def controller_required(self) -> Optional[pulumi.Input[bool]]:
|
395
|
-
"""
|
396
|
-
`(boolean)`
|
397
|
-
"""
|
398
386
|
return pulumi.get(self, "controller_required")
|
399
387
|
|
400
388
|
@controller_required.setter
|
@@ -404,9 +392,6 @@ class _ExternalVolumeState:
|
|
404
392
|
@property
|
405
393
|
@pulumi.getter(name="controllersExpected")
|
406
394
|
def controllers_expected(self) -> Optional[pulumi.Input[int]]:
|
407
|
-
"""
|
408
|
-
`(integer)`
|
409
|
-
"""
|
410
395
|
return pulumi.get(self, "controllers_expected")
|
411
396
|
|
412
397
|
@controllers_expected.setter
|
@@ -416,9 +401,6 @@ class _ExternalVolumeState:
|
|
416
401
|
@property
|
417
402
|
@pulumi.getter(name="controllersHealthy")
|
418
403
|
def controllers_healthy(self) -> Optional[pulumi.Input[int]]:
|
419
|
-
"""
|
420
|
-
`(integer)`
|
421
|
-
"""
|
422
404
|
return pulumi.get(self, "controllers_healthy")
|
423
405
|
|
424
406
|
@controllers_healthy.setter
|
@@ -464,9 +446,6 @@ class _ExternalVolumeState:
|
|
464
446
|
@property
|
465
447
|
@pulumi.getter(name="nodesExpected")
|
466
448
|
def nodes_expected(self) -> Optional[pulumi.Input[int]]:
|
467
|
-
"""
|
468
|
-
`(integer)`
|
469
|
-
"""
|
470
449
|
return pulumi.get(self, "nodes_expected")
|
471
450
|
|
472
451
|
@nodes_expected.setter
|
@@ -476,9 +455,6 @@ class _ExternalVolumeState:
|
|
476
455
|
@property
|
477
456
|
@pulumi.getter(name="nodesHealthy")
|
478
457
|
def nodes_healthy(self) -> Optional[pulumi.Input[int]]:
|
479
|
-
"""
|
480
|
-
`(integer)`
|
481
|
-
"""
|
482
458
|
return pulumi.get(self, "nodes_healthy")
|
483
459
|
|
484
460
|
@nodes_healthy.setter
|
@@ -512,9 +488,6 @@ class _ExternalVolumeState:
|
|
512
488
|
@property
|
513
489
|
@pulumi.getter(name="pluginProvider")
|
514
490
|
def plugin_provider(self) -> Optional[pulumi.Input[str]]:
|
515
|
-
"""
|
516
|
-
`(string)`
|
517
|
-
"""
|
518
491
|
return pulumi.get(self, "plugin_provider")
|
519
492
|
|
520
493
|
@plugin_provider.setter
|
@@ -524,9 +497,6 @@ class _ExternalVolumeState:
|
|
524
497
|
@property
|
525
498
|
@pulumi.getter(name="pluginProviderVersion")
|
526
499
|
def plugin_provider_version(self) -> Optional[pulumi.Input[str]]:
|
527
|
-
"""
|
528
|
-
`(string)`
|
529
|
-
"""
|
530
500
|
return pulumi.get(self, "plugin_provider_version")
|
531
501
|
|
532
502
|
@plugin_provider_version.setter
|
@@ -536,9 +506,6 @@ class _ExternalVolumeState:
|
|
536
506
|
@property
|
537
507
|
@pulumi.getter
|
538
508
|
def schedulable(self) -> Optional[pulumi.Input[bool]]:
|
539
|
-
"""
|
540
|
-
`(boolean)`
|
541
|
-
"""
|
542
509
|
return pulumi.get(self, "schedulable")
|
543
510
|
|
544
511
|
@schedulable.setter
|
@@ -572,9 +539,6 @@ class _ExternalVolumeState:
|
|
572
539
|
@property
|
573
540
|
@pulumi.getter
|
574
541
|
def topologies(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ExternalVolumeTopologyArgs']]]]:
|
575
|
-
"""
|
576
|
-
`(List of topologies)`
|
577
|
-
"""
|
578
542
|
return pulumi.get(self, "topologies")
|
579
543
|
|
580
544
|
@topologies.setter
|
@@ -643,17 +607,18 @@ class ExternalVolume(pulumi.CustomResource):
|
|
643
607
|
|
644
608
|
Creating a volume:
|
645
609
|
|
646
|
-
<!--Start PulumiCodeChooser -->
|
647
610
|
```python
|
648
611
|
import pulumi
|
649
612
|
import pulumi_nomad as nomad
|
650
613
|
|
614
|
+
# It can sometimes be helpful to wait for a particular plugin to be available
|
651
615
|
ebs = nomad.get_plugin(plugin_id="aws-ebs0",
|
652
616
|
wait_for_healthy=True)
|
653
|
-
mysql_volume = nomad.ExternalVolume("
|
617
|
+
mysql_volume = nomad.ExternalVolume("mysql_volume",
|
654
618
|
type="csi",
|
655
619
|
plugin_id="aws-ebs0",
|
656
620
|
volume_id="mysql_volume",
|
621
|
+
name="mysql_volume",
|
657
622
|
capacity_min="10GiB",
|
658
623
|
capacity_max="20GiB",
|
659
624
|
capabilities=[nomad.ExternalVolumeCapabilityArgs(
|
@@ -682,7 +647,6 @@ class ExternalVolume(pulumi.CustomResource):
|
|
682
647
|
),
|
683
648
|
opts=pulumi.ResourceOptions(depends_on=[ebs]))
|
684
649
|
```
|
685
|
-
<!--End PulumiCodeChooser -->
|
686
650
|
|
687
651
|
:param str resource_name: The name of the resource.
|
688
652
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
@@ -712,17 +676,18 @@ class ExternalVolume(pulumi.CustomResource):
|
|
712
676
|
|
713
677
|
Creating a volume:
|
714
678
|
|
715
|
-
<!--Start PulumiCodeChooser -->
|
716
679
|
```python
|
717
680
|
import pulumi
|
718
681
|
import pulumi_nomad as nomad
|
719
682
|
|
683
|
+
# It can sometimes be helpful to wait for a particular plugin to be available
|
720
684
|
ebs = nomad.get_plugin(plugin_id="aws-ebs0",
|
721
685
|
wait_for_healthy=True)
|
722
|
-
mysql_volume = nomad.ExternalVolume("
|
686
|
+
mysql_volume = nomad.ExternalVolume("mysql_volume",
|
723
687
|
type="csi",
|
724
688
|
plugin_id="aws-ebs0",
|
725
689
|
volume_id="mysql_volume",
|
690
|
+
name="mysql_volume",
|
726
691
|
capacity_min="10GiB",
|
727
692
|
capacity_max="20GiB",
|
728
693
|
capabilities=[nomad.ExternalVolumeCapabilityArgs(
|
@@ -751,7 +716,6 @@ class ExternalVolume(pulumi.CustomResource):
|
|
751
716
|
),
|
752
717
|
opts=pulumi.ResourceOptions(depends_on=[ebs]))
|
753
718
|
```
|
754
|
-
<!--End PulumiCodeChooser -->
|
755
719
|
|
756
720
|
:param str resource_name: The name of the resource.
|
757
721
|
:param ExternalVolumeArgs args: The arguments to use to populate this resource's properties.
|
@@ -866,22 +830,13 @@ class ExternalVolume(pulumi.CustomResource):
|
|
866
830
|
:param pulumi.Input[str] capacity_max: `(string: <optional>)` - Option to signal a maximum volume size. This may not be supported by all storage providers.
|
867
831
|
:param pulumi.Input[str] capacity_min: `(string: <optional>)` - Option to signal a minimum volume size. This may not be supported by all storage providers.
|
868
832
|
: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`.
|
869
|
-
:param pulumi.Input[bool] controller_required: `(boolean)`
|
870
|
-
:param pulumi.Input[int] controllers_expected: `(integer)`
|
871
|
-
:param pulumi.Input[int] controllers_healthy: `(integer)`
|
872
833
|
:param pulumi.Input[pulumi.InputType['ExternalVolumeMountOptionsArgs']] mount_options: `(block: optional)` Options for mounting `block-device` volumes without a pre-formatted file system.
|
873
834
|
:param pulumi.Input[str] name: `(string: <required>)` - The display name for the volume.
|
874
835
|
:param pulumi.Input[str] namespace: `(string: "default")` - The namespace in which to register the volume.
|
875
|
-
:param pulumi.Input[int] nodes_expected: `(integer)`
|
876
|
-
:param pulumi.Input[int] nodes_healthy: `(integer)`
|
877
836
|
: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.
|
878
837
|
:param pulumi.Input[str] plugin_id: `(string: <required>)` - The ID of the Nomad plugin for registering this volume.
|
879
|
-
:param pulumi.Input[str] plugin_provider: `(string)`
|
880
|
-
:param pulumi.Input[str] plugin_provider_version: `(string)`
|
881
|
-
:param pulumi.Input[bool] schedulable: `(boolean)`
|
882
838
|
: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.
|
883
839
|
: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`.
|
884
|
-
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ExternalVolumeTopologyArgs']]]] topologies: `(List of topologies)`
|
885
840
|
:param pulumi.Input[pulumi.InputType['ExternalVolumeTopologyRequestArgs']] topology_request: `(``TopologyRequest``: <optional>)` - Specify locations (region, zone, rack, etc.) where the provisioned volume is accessible from.
|
886
841
|
:param pulumi.Input[str] type: `(string: <required>)` - The type of the volume. Currently, only `csi` is supported.
|
887
842
|
:param pulumi.Input[str] volume_id: `(string: <required>)` - The unique ID of the volume.
|
@@ -950,25 +905,16 @@ class ExternalVolume(pulumi.CustomResource):
|
|
950
905
|
@property
|
951
906
|
@pulumi.getter(name="controllerRequired")
|
952
907
|
def controller_required(self) -> pulumi.Output[bool]:
|
953
|
-
"""
|
954
|
-
`(boolean)`
|
955
|
-
"""
|
956
908
|
return pulumi.get(self, "controller_required")
|
957
909
|
|
958
910
|
@property
|
959
911
|
@pulumi.getter(name="controllersExpected")
|
960
912
|
def controllers_expected(self) -> pulumi.Output[int]:
|
961
|
-
"""
|
962
|
-
`(integer)`
|
963
|
-
"""
|
964
913
|
return pulumi.get(self, "controllers_expected")
|
965
914
|
|
966
915
|
@property
|
967
916
|
@pulumi.getter(name="controllersHealthy")
|
968
917
|
def controllers_healthy(self) -> pulumi.Output[int]:
|
969
|
-
"""
|
970
|
-
`(integer)`
|
971
|
-
"""
|
972
918
|
return pulumi.get(self, "controllers_healthy")
|
973
919
|
|
974
920
|
@property
|
@@ -998,17 +944,11 @@ class ExternalVolume(pulumi.CustomResource):
|
|
998
944
|
@property
|
999
945
|
@pulumi.getter(name="nodesExpected")
|
1000
946
|
def nodes_expected(self) -> pulumi.Output[int]:
|
1001
|
-
"""
|
1002
|
-
`(integer)`
|
1003
|
-
"""
|
1004
947
|
return pulumi.get(self, "nodes_expected")
|
1005
948
|
|
1006
949
|
@property
|
1007
950
|
@pulumi.getter(name="nodesHealthy")
|
1008
951
|
def nodes_healthy(self) -> pulumi.Output[int]:
|
1009
|
-
"""
|
1010
|
-
`(integer)`
|
1011
|
-
"""
|
1012
952
|
return pulumi.get(self, "nodes_healthy")
|
1013
953
|
|
1014
954
|
@property
|
@@ -1030,25 +970,16 @@ class ExternalVolume(pulumi.CustomResource):
|
|
1030
970
|
@property
|
1031
971
|
@pulumi.getter(name="pluginProvider")
|
1032
972
|
def plugin_provider(self) -> pulumi.Output[str]:
|
1033
|
-
"""
|
1034
|
-
`(string)`
|
1035
|
-
"""
|
1036
973
|
return pulumi.get(self, "plugin_provider")
|
1037
974
|
|
1038
975
|
@property
|
1039
976
|
@pulumi.getter(name="pluginProviderVersion")
|
1040
977
|
def plugin_provider_version(self) -> pulumi.Output[str]:
|
1041
|
-
"""
|
1042
|
-
`(string)`
|
1043
|
-
"""
|
1044
978
|
return pulumi.get(self, "plugin_provider_version")
|
1045
979
|
|
1046
980
|
@property
|
1047
981
|
@pulumi.getter
|
1048
982
|
def schedulable(self) -> pulumi.Output[bool]:
|
1049
|
-
"""
|
1050
|
-
`(boolean)`
|
1051
|
-
"""
|
1052
983
|
return pulumi.get(self, "schedulable")
|
1053
984
|
|
1054
985
|
@property
|
@@ -1070,9 +1001,6 @@ class ExternalVolume(pulumi.CustomResource):
|
|
1070
1001
|
@property
|
1071
1002
|
@pulumi.getter
|
1072
1003
|
def topologies(self) -> pulumi.Output[Sequence['outputs.ExternalVolumeTopology']]:
|
1073
|
-
"""
|
1074
|
-
`(List of topologies)`
|
1075
|
-
"""
|
1076
1004
|
return pulumi.get(self, "topologies")
|
1077
1005
|
|
1078
1006
|
@property
|
pulumi_nomad/get_acl_policies.py
CHANGED
@@ -73,14 +73,12 @@ def get_acl_policies(prefix: Optional[str] = None,
|
|
73
73
|
|
74
74
|
## Example Usage
|
75
75
|
|
76
|
-
<!--Start PulumiCodeChooser -->
|
77
76
|
```python
|
78
77
|
import pulumi
|
79
78
|
import pulumi_nomad as nomad
|
80
79
|
|
81
80
|
example = nomad.get_acl_policies(prefix="prod")
|
82
81
|
```
|
83
|
-
<!--End PulumiCodeChooser -->
|
84
82
|
|
85
83
|
|
86
84
|
:param str prefix: `(string)` An optional string to filter ACL policies based on name prefix. If not provided, all policies are returned.
|
@@ -104,14 +102,12 @@ def get_acl_policies_output(prefix: Optional[pulumi.Input[Optional[str]]] = None
|
|
104
102
|
|
105
103
|
## Example Usage
|
106
104
|
|
107
|
-
<!--Start PulumiCodeChooser -->
|
108
105
|
```python
|
109
106
|
import pulumi
|
110
107
|
import pulumi_nomad as nomad
|
111
108
|
|
112
109
|
example = nomad.get_acl_policies(prefix="prod")
|
113
110
|
```
|
114
|
-
<!--End PulumiCodeChooser -->
|
115
111
|
|
116
112
|
|
117
113
|
:param str prefix: `(string)` An optional string to filter ACL policies based on name prefix. If not provided, all policies are returned.
|
pulumi_nomad/get_acl_policy.py
CHANGED
@@ -87,14 +87,12 @@ def get_acl_policy(name: Optional[str] = None,
|
|
87
87
|
|
88
88
|
## Example Usage
|
89
89
|
|
90
|
-
<!--Start PulumiCodeChooser -->
|
91
90
|
```python
|
92
91
|
import pulumi
|
93
92
|
import pulumi_nomad as nomad
|
94
93
|
|
95
94
|
my_policy = nomad.get_acl_policy(name="my-policy")
|
96
95
|
```
|
97
|
-
<!--End PulumiCodeChooser -->
|
98
96
|
|
99
97
|
|
100
98
|
:param str name: `(string)` - the name of the ACL Policy.
|
@@ -119,14 +117,12 @@ def get_acl_policy_output(name: Optional[pulumi.Input[str]] = None,
|
|
119
117
|
|
120
118
|
## Example Usage
|
121
119
|
|
122
|
-
<!--Start PulumiCodeChooser -->
|
123
120
|
```python
|
124
121
|
import pulumi
|
125
122
|
import pulumi_nomad as nomad
|
126
123
|
|
127
124
|
my_policy = nomad.get_acl_policy(name="my-policy")
|
128
125
|
```
|
129
|
-
<!--End PulumiCodeChooser -->
|
130
126
|
|
131
127
|
|
132
128
|
:param str name: `(string)` - the name of the ACL Policy.
|
pulumi_nomad/get_acl_role.py
CHANGED
@@ -88,14 +88,12 @@ def get_acl_role(id: Optional[str] = None,
|
|
88
88
|
|
89
89
|
## Example Usage
|
90
90
|
|
91
|
-
<!--Start PulumiCodeChooser -->
|
92
91
|
```python
|
93
92
|
import pulumi
|
94
93
|
import pulumi_nomad as nomad
|
95
94
|
|
96
95
|
example = nomad.get_acl_role(id="aa534e09-6a07-0a45-2295-a7f77063d429")
|
97
96
|
```
|
98
|
-
<!--End PulumiCodeChooser -->
|
99
97
|
|
100
98
|
|
101
99
|
:param str id: `(string)` The unique identifier of the ACL Role.
|
@@ -120,14 +118,12 @@ def get_acl_role_output(id: Optional[pulumi.Input[str]] = None,
|
|
120
118
|
|
121
119
|
## Example Usage
|
122
120
|
|
123
|
-
<!--Start PulumiCodeChooser -->
|
124
121
|
```python
|
125
122
|
import pulumi
|
126
123
|
import pulumi_nomad as nomad
|
127
124
|
|
128
125
|
example = nomad.get_acl_role(id="aa534e09-6a07-0a45-2295-a7f77063d429")
|
129
126
|
```
|
130
|
-
<!--End PulumiCodeChooser -->
|
131
127
|
|
132
128
|
|
133
129
|
:param str id: `(string)` The unique identifier of the ACL Role.
|
pulumi_nomad/get_acl_roles.py
CHANGED
@@ -70,14 +70,12 @@ def get_acl_roles(prefix: Optional[str] = None,
|
|
70
70
|
|
71
71
|
## Example Usage
|
72
72
|
|
73
|
-
<!--Start PulumiCodeChooser -->
|
74
73
|
```python
|
75
74
|
import pulumi
|
76
75
|
import pulumi_nomad as nomad
|
77
76
|
|
78
77
|
example = nomad.get_acl_roles(prefix="a242")
|
79
78
|
```
|
80
|
-
<!--End PulumiCodeChooser -->
|
81
79
|
|
82
80
|
|
83
81
|
:param str prefix: `(string)` An optional string to filter ACL Roles based on ID
|
@@ -102,14 +100,12 @@ def get_acl_roles_output(prefix: Optional[pulumi.Input[Optional[str]]] = None,
|
|
102
100
|
|
103
101
|
## Example Usage
|
104
102
|
|
105
|
-
<!--Start PulumiCodeChooser -->
|
106
103
|
```python
|
107
104
|
import pulumi
|
108
105
|
import pulumi_nomad as nomad
|
109
106
|
|
110
107
|
example = nomad.get_acl_roles(prefix="a242")
|
111
108
|
```
|
112
|
-
<!--End PulumiCodeChooser -->
|
113
109
|
|
114
110
|
|
115
111
|
:param str prefix: `(string)` An optional string to filter ACL Roles based on ID
|
pulumi_nomad/get_acl_token.py
CHANGED
@@ -173,14 +173,12 @@ def get_acl_token(accessor_id: Optional[str] = None,
|
|
173
173
|
"""
|
174
174
|
## Example Usage
|
175
175
|
|
176
|
-
<!--Start PulumiCodeChooser -->
|
177
176
|
```python
|
178
177
|
import pulumi
|
179
178
|
import pulumi_nomad as nomad
|
180
179
|
|
181
180
|
my_token = nomad.get_acl_token(accessor_id="aa534e09-6a07-0a45-2295-a7f77063d429")
|
182
181
|
```
|
183
|
-
<!--End PulumiCodeChooser -->
|
184
182
|
|
185
183
|
|
186
184
|
:param str accessor_id: `(string)` Non-sensitive identifier for this token.
|
@@ -210,14 +208,12 @@ def get_acl_token_output(accessor_id: Optional[pulumi.Input[str]] = None,
|
|
210
208
|
"""
|
211
209
|
## Example Usage
|
212
210
|
|
213
|
-
<!--Start PulumiCodeChooser -->
|
214
211
|
```python
|
215
212
|
import pulumi
|
216
213
|
import pulumi_nomad as nomad
|
217
214
|
|
218
215
|
my_token = nomad.get_acl_token(accessor_id="aa534e09-6a07-0a45-2295-a7f77063d429")
|
219
216
|
```
|
220
|
-
<!--End PulumiCodeChooser -->
|
221
217
|
|
222
218
|
|
223
219
|
:param str accessor_id: `(string)` Non-sensitive identifier for this token.
|
pulumi_nomad/get_acl_tokens.py
CHANGED
@@ -73,14 +73,12 @@ def get_acl_tokens(prefix: Optional[str] = None,
|
|
73
73
|
|
74
74
|
## Example Usage
|
75
75
|
|
76
|
-
<!--Start PulumiCodeChooser -->
|
77
76
|
```python
|
78
77
|
import pulumi
|
79
78
|
import pulumi_nomad as nomad
|
80
79
|
|
81
80
|
tokens = nomad.get_acl_tokens(prefix="a242")
|
82
81
|
```
|
83
|
-
<!--End PulumiCodeChooser -->
|
84
82
|
|
85
83
|
|
86
84
|
:param str prefix: `(string)` Optional prefix to filter the tokens.
|
@@ -104,14 +102,12 @@ def get_acl_tokens_output(prefix: Optional[pulumi.Input[Optional[str]]] = None,
|
|
104
102
|
|
105
103
|
## Example Usage
|
106
104
|
|
107
|
-
<!--Start PulumiCodeChooser -->
|
108
105
|
```python
|
109
106
|
import pulumi
|
110
107
|
import pulumi_nomad as nomad
|
111
108
|
|
112
109
|
tokens = nomad.get_acl_tokens(prefix="a242")
|
113
110
|
```
|
114
|
-
<!--End PulumiCodeChooser -->
|
115
111
|
|
116
112
|
|
117
113
|
:param str prefix: `(string)` Optional prefix to filter the tokens.
|