pulumi-nomad 2.2.0a1710332982__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 +32 -126
  2. pulumi_nomad/acl_auth_method.py +4 -6
  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 +0 -72
  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 +0 -4
  15. pulumi_nomad/get_datacenters.py +4 -8
  16. pulumi_nomad/get_deployments.py +0 -4
  17. pulumi_nomad/get_job.py +0 -4
  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 +32 -126
  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 +8 -80
  40. {pulumi_nomad-2.2.0a1710332982.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.0a1710332982.dist-info/RECORD +0 -54
  43. {pulumi_nomad-2.2.0a1710332982.dist-info → pulumi_nomad-2.2.1.dist-info}/WHEEL +0 -0
  44. {pulumi_nomad-2.2.0a1710332982.dist-info → pulumi_nomad-2.2.1.dist-info}/top_level.txt +0 -0
pulumi_nomad/_inputs.py CHANGED
@@ -266,15 +266,10 @@ class AclPolicyJobAclArgs:
266
266
  namespace: Optional[pulumi.Input[str]] = None,
267
267
  task: Optional[pulumi.Input[str]] = None):
268
268
  """
269
- :param pulumi.Input[str] job_id: `(string: <optional>` - The job to attach the policy. Required if
270
- `group` is set.
271
- :param pulumi.Input[str] group: `(string: <optional>` - The group to attach the policy. Required if
272
- `task` is set.
273
- :param pulumi.Input[str] namespace: `(string: "default")` - The namespace to attach the policy.
274
- Required if `job_id` is set.
275
- :param pulumi.Input[str] task: `(string: <optional>` - The task to attach the policy.
276
-
277
- [nomad_docs_wi]: https://www.nomadproject.io/docs/concepts/workload-identity#workload-associated-acl-policies
269
+ :param pulumi.Input[str] job_id: Job
270
+ :param pulumi.Input[str] group: Group
271
+ :param pulumi.Input[str] namespace: Namespace
272
+ :param pulumi.Input[str] task: Task
278
273
  """
279
274
  pulumi.set(__self__, "job_id", job_id)
280
275
  if group is not None:
@@ -288,8 +283,7 @@ class AclPolicyJobAclArgs:
288
283
  @pulumi.getter(name="jobId")
289
284
  def job_id(self) -> pulumi.Input[str]:
290
285
  """
291
- `(string: <optional>` - The job to attach the policy. Required if
292
- `group` is set.
286
+ Job
293
287
  """
294
288
  return pulumi.get(self, "job_id")
295
289
 
@@ -301,8 +295,7 @@ class AclPolicyJobAclArgs:
301
295
  @pulumi.getter
302
296
  def group(self) -> Optional[pulumi.Input[str]]:
303
297
  """
304
- `(string: <optional>` - The group to attach the policy. Required if
305
- `task` is set.
298
+ Group
306
299
  """
307
300
  return pulumi.get(self, "group")
308
301
 
@@ -314,8 +307,7 @@ class AclPolicyJobAclArgs:
314
307
  @pulumi.getter
315
308
  def namespace(self) -> Optional[pulumi.Input[str]]:
316
309
  """
317
- `(string: "default")` - The namespace to attach the policy.
318
- Required if `job_id` is set.
310
+ Namespace
319
311
  """
320
312
  return pulumi.get(self, "namespace")
321
313
 
@@ -327,9 +319,7 @@ class AclPolicyJobAclArgs:
327
319
  @pulumi.getter
328
320
  def task(self) -> Optional[pulumi.Input[str]]:
329
321
  """
330
- `(string: <optional>` - The task to attach the policy.
331
-
332
- [nomad_docs_wi]: https://www.nomadproject.io/docs/concepts/workload-identity#workload-associated-acl-policies
322
+ Task
333
323
  """
334
324
  return pulumi.get(self, "task")
335
325
 
@@ -582,24 +572,12 @@ class CsiVolumeRegistrationMountOptionsArgs:
582
572
  class CsiVolumeRegistrationTopologyArgs:
583
573
  def __init__(__self__, *,
584
574
  segments: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None):
585
- """
586
- :param pulumi.Input[Mapping[str, pulumi.Input[str]]] segments: `(map[string]string)` - Define the attributes for the topology request.
587
-
588
- In addition to the above arguments, the following attributes are exported and
589
- can be referenced:
590
- """
591
575
  if segments is not None:
592
576
  pulumi.set(__self__, "segments", segments)
593
577
 
594
578
  @property
595
579
  @pulumi.getter
596
580
  def segments(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
597
- """
598
- `(map[string]string)` - Define the attributes for the topology request.
599
-
600
- In addition to the above arguments, the following attributes are exported and
601
- can be referenced:
602
- """
603
581
  return pulumi.get(self, "segments")
604
582
 
605
583
  @segments.setter
@@ -635,7 +613,7 @@ class CsiVolumeRegistrationTopologyRequestRequiredArgs:
635
613
  def __init__(__self__, *,
636
614
  topologies: pulumi.Input[Sequence[pulumi.Input['CsiVolumeRegistrationTopologyRequestRequiredTopologyArgs']]]):
637
615
  """
638
- :param pulumi.Input[Sequence[pulumi.Input['CsiVolumeRegistrationTopologyRequestRequiredTopologyArgs']]] topologies: `(List of segments: <required>)` - Defines the location for the volume.
616
+ :param pulumi.Input[Sequence[pulumi.Input['CsiVolumeRegistrationTopologyRequestRequiredTopologyArgs']]] topologies: Defines the location for the volume.
639
617
  """
640
618
  pulumi.set(__self__, "topologies", topologies)
641
619
 
@@ -643,7 +621,7 @@ class CsiVolumeRegistrationTopologyRequestRequiredArgs:
643
621
  @pulumi.getter
644
622
  def topologies(self) -> pulumi.Input[Sequence[pulumi.Input['CsiVolumeRegistrationTopologyRequestRequiredTopologyArgs']]]:
645
623
  """
646
- `(List of segments: <required>)` - Defines the location for the volume.
624
+ Defines the location for the volume.
647
625
  """
648
626
  return pulumi.get(self, "topologies")
649
627
 
@@ -657,10 +635,7 @@ class CsiVolumeRegistrationTopologyRequestRequiredTopologyArgs:
657
635
  def __init__(__self__, *,
658
636
  segments: pulumi.Input[Mapping[str, pulumi.Input[str]]]):
659
637
  """
660
- :param pulumi.Input[Mapping[str, pulumi.Input[str]]] segments: `(map[string]string)` - Define the attributes for the topology request.
661
-
662
- In addition to the above arguments, the following attributes are exported and
663
- can be referenced:
638
+ :param pulumi.Input[Mapping[str, pulumi.Input[str]]] segments: Define attributes for the topology request.
664
639
  """
665
640
  pulumi.set(__self__, "segments", segments)
666
641
 
@@ -668,10 +643,7 @@ class CsiVolumeRegistrationTopologyRequestRequiredTopologyArgs:
668
643
  @pulumi.getter
669
644
  def segments(self) -> pulumi.Input[Mapping[str, pulumi.Input[str]]]:
670
645
  """
671
- `(map[string]string)` - Define the attributes for the topology request.
672
-
673
- In addition to the above arguments, the following attributes are exported and
674
- can be referenced:
646
+ Define attributes for the topology request.
675
647
  """
676
648
  return pulumi.get(self, "segments")
677
649
 
@@ -684,24 +656,12 @@ class CsiVolumeRegistrationTopologyRequestRequiredTopologyArgs:
684
656
  class CsiVolumeTopologyArgs:
685
657
  def __init__(__self__, *,
686
658
  segments: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None):
687
- """
688
- :param pulumi.Input[Mapping[str, pulumi.Input[str]]] segments: `(map[string]string)` - Define the attributes for the topology request.
689
-
690
- In addition to the above arguments, the following attributes are exported and
691
- can be referenced:
692
- """
693
659
  if segments is not None:
694
660
  pulumi.set(__self__, "segments", segments)
695
661
 
696
662
  @property
697
663
  @pulumi.getter
698
664
  def segments(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
699
- """
700
- `(map[string]string)` - Define the attributes for the topology request.
701
-
702
- In addition to the above arguments, the following attributes are exported and
703
- can be referenced:
704
- """
705
665
  return pulumi.get(self, "segments")
706
666
 
707
667
  @segments.setter
@@ -753,7 +713,7 @@ class CsiVolumeTopologyRequestPreferredArgs:
753
713
  def __init__(__self__, *,
754
714
  topologies: pulumi.Input[Sequence[pulumi.Input['CsiVolumeTopologyRequestPreferredTopologyArgs']]]):
755
715
  """
756
- :param pulumi.Input[Sequence[pulumi.Input['CsiVolumeTopologyRequestPreferredTopologyArgs']]] topologies: `(List of segments: <required>)` - Defines the location for the volume.
716
+ :param pulumi.Input[Sequence[pulumi.Input['CsiVolumeTopologyRequestPreferredTopologyArgs']]] topologies: Defines the location for the volume.
757
717
  """
758
718
  pulumi.set(__self__, "topologies", topologies)
759
719
 
@@ -761,7 +721,7 @@ class CsiVolumeTopologyRequestPreferredArgs:
761
721
  @pulumi.getter
762
722
  def topologies(self) -> pulumi.Input[Sequence[pulumi.Input['CsiVolumeTopologyRequestPreferredTopologyArgs']]]:
763
723
  """
764
- `(List of segments: <required>)` - Defines the location for the volume.
724
+ Defines the location for the volume.
765
725
  """
766
726
  return pulumi.get(self, "topologies")
767
727
 
@@ -775,10 +735,7 @@ class CsiVolumeTopologyRequestPreferredTopologyArgs:
775
735
  def __init__(__self__, *,
776
736
  segments: pulumi.Input[Mapping[str, pulumi.Input[str]]]):
777
737
  """
778
- :param pulumi.Input[Mapping[str, pulumi.Input[str]]] segments: `(map[string]string)` - Define the attributes for the topology request.
779
-
780
- In addition to the above arguments, the following attributes are exported and
781
- can be referenced:
738
+ :param pulumi.Input[Mapping[str, pulumi.Input[str]]] segments: Define the attributes for the topology request.
782
739
  """
783
740
  pulumi.set(__self__, "segments", segments)
784
741
 
@@ -786,10 +743,7 @@ class CsiVolumeTopologyRequestPreferredTopologyArgs:
786
743
  @pulumi.getter
787
744
  def segments(self) -> pulumi.Input[Mapping[str, pulumi.Input[str]]]:
788
745
  """
789
- `(map[string]string)` - Define the attributes for the topology request.
790
-
791
- In addition to the above arguments, the following attributes are exported and
792
- can be referenced:
746
+ Define the attributes for the topology request.
793
747
  """
794
748
  return pulumi.get(self, "segments")
795
749
 
@@ -803,7 +757,7 @@ class CsiVolumeTopologyRequestRequiredArgs:
803
757
  def __init__(__self__, *,
804
758
  topologies: pulumi.Input[Sequence[pulumi.Input['CsiVolumeTopologyRequestRequiredTopologyArgs']]]):
805
759
  """
806
- :param pulumi.Input[Sequence[pulumi.Input['CsiVolumeTopologyRequestRequiredTopologyArgs']]] topologies: `(List of segments: <required>)` - Defines the location for the volume.
760
+ :param pulumi.Input[Sequence[pulumi.Input['CsiVolumeTopologyRequestRequiredTopologyArgs']]] topologies: Defines the location for the volume.
807
761
  """
808
762
  pulumi.set(__self__, "topologies", topologies)
809
763
 
@@ -811,7 +765,7 @@ class CsiVolumeTopologyRequestRequiredArgs:
811
765
  @pulumi.getter
812
766
  def topologies(self) -> pulumi.Input[Sequence[pulumi.Input['CsiVolumeTopologyRequestRequiredTopologyArgs']]]:
813
767
  """
814
- `(List of segments: <required>)` - Defines the location for the volume.
768
+ Defines the location for the volume.
815
769
  """
816
770
  return pulumi.get(self, "topologies")
817
771
 
@@ -825,10 +779,7 @@ class CsiVolumeTopologyRequestRequiredTopologyArgs:
825
779
  def __init__(__self__, *,
826
780
  segments: pulumi.Input[Mapping[str, pulumi.Input[str]]]):
827
781
  """
828
- :param pulumi.Input[Mapping[str, pulumi.Input[str]]] segments: `(map[string]string)` - Define the attributes for the topology request.
829
-
830
- In addition to the above arguments, the following attributes are exported and
831
- can be referenced:
782
+ :param pulumi.Input[Mapping[str, pulumi.Input[str]]] segments: Define the attributes for the topology request.
832
783
  """
833
784
  pulumi.set(__self__, "segments", segments)
834
785
 
@@ -836,10 +787,7 @@ class CsiVolumeTopologyRequestRequiredTopologyArgs:
836
787
  @pulumi.getter
837
788
  def segments(self) -> pulumi.Input[Mapping[str, pulumi.Input[str]]]:
838
789
  """
839
- `(map[string]string)` - Define the attributes for the topology request.
840
-
841
- In addition to the above arguments, the following attributes are exported and
842
- can be referenced:
790
+ Define the attributes for the topology request.
843
791
  """
844
792
  return pulumi.get(self, "segments")
845
793
 
@@ -942,24 +890,12 @@ class ExternalVolumeMountOptionsArgs:
942
890
  class ExternalVolumeTopologyArgs:
943
891
  def __init__(__self__, *,
944
892
  segments: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None):
945
- """
946
- :param pulumi.Input[Mapping[str, pulumi.Input[str]]] segments: `(map[string]string)` - Define the attributes for the topology request.
947
-
948
- In addition to the above arguments, the following attributes are exported and
949
- can be referenced:
950
- """
951
893
  if segments is not None:
952
894
  pulumi.set(__self__, "segments", segments)
953
895
 
954
896
  @property
955
897
  @pulumi.getter
956
898
  def segments(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
957
- """
958
- `(map[string]string)` - Define the attributes for the topology request.
959
-
960
- In addition to the above arguments, the following attributes are exported and
961
- can be referenced:
962
- """
963
899
  return pulumi.get(self, "segments")
964
900
 
965
901
  @segments.setter
@@ -1011,7 +947,7 @@ class ExternalVolumeTopologyRequestPreferredArgs:
1011
947
  def __init__(__self__, *,
1012
948
  topologies: pulumi.Input[Sequence[pulumi.Input['ExternalVolumeTopologyRequestPreferredTopologyArgs']]]):
1013
949
  """
1014
- :param pulumi.Input[Sequence[pulumi.Input['ExternalVolumeTopologyRequestPreferredTopologyArgs']]] topologies: `(List of segments: <required>)` - Defines the location for the volume.
950
+ :param pulumi.Input[Sequence[pulumi.Input['ExternalVolumeTopologyRequestPreferredTopologyArgs']]] topologies: Defines the location for the volume.
1015
951
  """
1016
952
  pulumi.set(__self__, "topologies", topologies)
1017
953
 
@@ -1019,7 +955,7 @@ class ExternalVolumeTopologyRequestPreferredArgs:
1019
955
  @pulumi.getter
1020
956
  def topologies(self) -> pulumi.Input[Sequence[pulumi.Input['ExternalVolumeTopologyRequestPreferredTopologyArgs']]]:
1021
957
  """
1022
- `(List of segments: <required>)` - Defines the location for the volume.
958
+ Defines the location for the volume.
1023
959
  """
1024
960
  return pulumi.get(self, "topologies")
1025
961
 
@@ -1033,10 +969,7 @@ class ExternalVolumeTopologyRequestPreferredTopologyArgs:
1033
969
  def __init__(__self__, *,
1034
970
  segments: pulumi.Input[Mapping[str, pulumi.Input[str]]]):
1035
971
  """
1036
- :param pulumi.Input[Mapping[str, pulumi.Input[str]]] segments: `(map[string]string)` - Define the attributes for the topology request.
1037
-
1038
- In addition to the above arguments, the following attributes are exported and
1039
- can be referenced:
972
+ :param pulumi.Input[Mapping[str, pulumi.Input[str]]] segments: Define the attributes for the topology request.
1040
973
  """
1041
974
  pulumi.set(__self__, "segments", segments)
1042
975
 
@@ -1044,10 +977,7 @@ class ExternalVolumeTopologyRequestPreferredTopologyArgs:
1044
977
  @pulumi.getter
1045
978
  def segments(self) -> pulumi.Input[Mapping[str, pulumi.Input[str]]]:
1046
979
  """
1047
- `(map[string]string)` - Define the attributes for the topology request.
1048
-
1049
- In addition to the above arguments, the following attributes are exported and
1050
- can be referenced:
980
+ Define the attributes for the topology request.
1051
981
  """
1052
982
  return pulumi.get(self, "segments")
1053
983
 
@@ -1061,7 +991,7 @@ class ExternalVolumeTopologyRequestRequiredArgs:
1061
991
  def __init__(__self__, *,
1062
992
  topologies: pulumi.Input[Sequence[pulumi.Input['ExternalVolumeTopologyRequestRequiredTopologyArgs']]]):
1063
993
  """
1064
- :param pulumi.Input[Sequence[pulumi.Input['ExternalVolumeTopologyRequestRequiredTopologyArgs']]] topologies: `(List of segments: <required>)` - Defines the location for the volume.
994
+ :param pulumi.Input[Sequence[pulumi.Input['ExternalVolumeTopologyRequestRequiredTopologyArgs']]] topologies: Defines the location for the volume.
1065
995
  """
1066
996
  pulumi.set(__self__, "topologies", topologies)
1067
997
 
@@ -1069,7 +999,7 @@ class ExternalVolumeTopologyRequestRequiredArgs:
1069
999
  @pulumi.getter
1070
1000
  def topologies(self) -> pulumi.Input[Sequence[pulumi.Input['ExternalVolumeTopologyRequestRequiredTopologyArgs']]]:
1071
1001
  """
1072
- `(List of segments: <required>)` - Defines the location for the volume.
1002
+ Defines the location for the volume.
1073
1003
  """
1074
1004
  return pulumi.get(self, "topologies")
1075
1005
 
@@ -1083,10 +1013,7 @@ class ExternalVolumeTopologyRequestRequiredTopologyArgs:
1083
1013
  def __init__(__self__, *,
1084
1014
  segments: pulumi.Input[Mapping[str, pulumi.Input[str]]]):
1085
1015
  """
1086
- :param pulumi.Input[Mapping[str, pulumi.Input[str]]] segments: `(map[string]string)` - Define the attributes for the topology request.
1087
-
1088
- In addition to the above arguments, the following attributes are exported and
1089
- can be referenced:
1016
+ :param pulumi.Input[Mapping[str, pulumi.Input[str]]] segments: Define the attributes for the topology request.
1090
1017
  """
1091
1018
  pulumi.set(__self__, "segments", segments)
1092
1019
 
@@ -1094,10 +1021,7 @@ class ExternalVolumeTopologyRequestRequiredTopologyArgs:
1094
1021
  @pulumi.getter
1095
1022
  def segments(self) -> pulumi.Input[Mapping[str, pulumi.Input[str]]]:
1096
1023
  """
1097
- `(map[string]string)` - Define the attributes for the topology request.
1098
-
1099
- In addition to the above arguments, the following attributes are exported and
1100
- can be referenced:
1024
+ Define the attributes for the topology request.
1101
1025
  """
1102
1026
  return pulumi.get(self, "segments")
1103
1027
 
@@ -1751,24 +1675,12 @@ class VolumeMountOptionsArgs:
1751
1675
  class VolumeTopologyArgs:
1752
1676
  def __init__(__self__, *,
1753
1677
  segments: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None):
1754
- """
1755
- :param pulumi.Input[Mapping[str, pulumi.Input[str]]] segments: `(map[string]string)` - Define the attributes for the topology request.
1756
-
1757
- In addition to the above arguments, the following attributes are exported and
1758
- can be referenced:
1759
- """
1760
1678
  if segments is not None:
1761
1679
  pulumi.set(__self__, "segments", segments)
1762
1680
 
1763
1681
  @property
1764
1682
  @pulumi.getter
1765
1683
  def segments(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
1766
- """
1767
- `(map[string]string)` - Define the attributes for the topology request.
1768
-
1769
- In addition to the above arguments, the following attributes are exported and
1770
- can be referenced:
1771
- """
1772
1684
  return pulumi.get(self, "segments")
1773
1685
 
1774
1686
  @segments.setter
@@ -1804,7 +1716,7 @@ class VolumeTopologyRequestRequiredArgs:
1804
1716
  def __init__(__self__, *,
1805
1717
  topologies: pulumi.Input[Sequence[pulumi.Input['VolumeTopologyRequestRequiredTopologyArgs']]]):
1806
1718
  """
1807
- :param pulumi.Input[Sequence[pulumi.Input['VolumeTopologyRequestRequiredTopologyArgs']]] topologies: `(List of segments: <required>)` - Defines the location for the volume.
1719
+ :param pulumi.Input[Sequence[pulumi.Input['VolumeTopologyRequestRequiredTopologyArgs']]] topologies: Defines the location for the volume.
1808
1720
  """
1809
1721
  pulumi.set(__self__, "topologies", topologies)
1810
1722
 
@@ -1812,7 +1724,7 @@ class VolumeTopologyRequestRequiredArgs:
1812
1724
  @pulumi.getter
1813
1725
  def topologies(self) -> pulumi.Input[Sequence[pulumi.Input['VolumeTopologyRequestRequiredTopologyArgs']]]:
1814
1726
  """
1815
- `(List of segments: <required>)` - Defines the location for the volume.
1727
+ Defines the location for the volume.
1816
1728
  """
1817
1729
  return pulumi.get(self, "topologies")
1818
1730
 
@@ -1826,10 +1738,7 @@ class VolumeTopologyRequestRequiredTopologyArgs:
1826
1738
  def __init__(__self__, *,
1827
1739
  segments: pulumi.Input[Mapping[str, pulumi.Input[str]]]):
1828
1740
  """
1829
- :param pulumi.Input[Mapping[str, pulumi.Input[str]]] segments: `(map[string]string)` - Define the attributes for the topology request.
1830
-
1831
- In addition to the above arguments, the following attributes are exported and
1832
- can be referenced:
1741
+ :param pulumi.Input[Mapping[str, pulumi.Input[str]]] segments: Define attributes for the topology request.
1833
1742
  """
1834
1743
  pulumi.set(__self__, "segments", segments)
1835
1744
 
@@ -1837,10 +1746,7 @@ class VolumeTopologyRequestRequiredTopologyArgs:
1837
1746
  @pulumi.getter
1838
1747
  def segments(self) -> pulumi.Input[Mapping[str, pulumi.Input[str]]]:
1839
1748
  """
1840
- `(map[string]string)` - Define the attributes for the topology request.
1841
-
1842
- In addition to the above arguments, the following attributes are exported and
1843
- can be referenced:
1749
+ Define attributes for the topology request.
1844
1750
  """
1845
1751
  return pulumi.get(self, "segments")
1846
1752
 
@@ -301,12 +301,12 @@ class AclAuthMethod(pulumi.CustomResource):
301
301
 
302
302
  Creating an ALC Auth Method:
303
303
 
304
- <!--Start PulumiCodeChooser -->
305
304
  ```python
306
305
  import pulumi
307
306
  import pulumi_nomad as nomad
308
307
 
309
- 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",
310
310
  type="OIDC",
311
311
  token_locality="global",
312
312
  max_token_ttl="10m0s",
@@ -326,7 +326,6 @@ class AclAuthMethod(pulumi.CustomResource):
326
326
  },
327
327
  ))
328
328
  ```
329
- <!--End PulumiCodeChooser -->
330
329
 
331
330
  :param str resource_name: The name of the resource.
332
331
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -359,12 +358,12 @@ class AclAuthMethod(pulumi.CustomResource):
359
358
 
360
359
  Creating an ALC Auth Method:
361
360
 
362
- <!--Start PulumiCodeChooser -->
363
361
  ```python
364
362
  import pulumi
365
363
  import pulumi_nomad as nomad
366
364
 
367
- 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",
368
367
  type="OIDC",
369
368
  token_locality="global",
370
369
  max_token_ttl="10m0s",
@@ -384,7 +383,6 @@ class AclAuthMethod(pulumi.CustomResource):
384
383
  },
385
384
  ))
386
385
  ```
387
- <!--End PulumiCodeChooser -->
388
386
 
389
387
  :param str resource_name: The name of the resource.
390
388
  :param AclAuthMethodArgs args: The arguments to use to populate this resource's properties.
@@ -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.