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