pulumi-nomad 2.4.0__py3-none-any.whl → 2.4.0a1717653571__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/_inputs.py +34 -723
- pulumi_nomad/_utilities.py +5 -41
- pulumi_nomad/acl_auth_method.py +23 -28
- pulumi_nomad/acl_binding_rule.py +0 -5
- pulumi_nomad/acl_policy.py +5 -10
- pulumi_nomad/acl_role.py +5 -10
- pulumi_nomad/acl_token.py +5 -10
- pulumi_nomad/config/__init__.pyi +0 -5
- pulumi_nomad/config/outputs.py +0 -5
- pulumi_nomad/config/vars.py +0 -5
- pulumi_nomad/csi_volume.py +16 -21
- pulumi_nomad/csi_volume_registration.py +16 -21
- pulumi_nomad/external_volume.py +54 -59
- pulumi_nomad/get_acl_policies.py +4 -13
- pulumi_nomad/get_acl_policy.py +4 -14
- pulumi_nomad/get_acl_role.py +4 -14
- pulumi_nomad/get_acl_roles.py +4 -13
- pulumi_nomad/get_acl_token.py +4 -21
- pulumi_nomad/get_acl_tokens.py +4 -13
- pulumi_nomad/get_allocations.py +4 -17
- pulumi_nomad/get_datacenters.py +4 -15
- pulumi_nomad/get_deployments.py +5 -12
- pulumi_nomad/get_job.py +4 -33
- pulumi_nomad/get_job_parser.py +4 -15
- pulumi_nomad/get_jwks.py +4 -12
- pulumi_nomad/get_namespace.py +4 -17
- pulumi_nomad/get_namespaces.py +4 -11
- pulumi_nomad/get_node_pool.py +4 -15
- pulumi_nomad/get_node_pools.py +4 -15
- pulumi_nomad/get_plugin.py +4 -24
- pulumi_nomad/get_plugins.py +5 -14
- pulumi_nomad/get_regions.py +4 -11
- pulumi_nomad/get_scaling_policies.py +4 -15
- pulumi_nomad/get_scaling_policy.py +5 -18
- pulumi_nomad/get_scheduler_policy.py +4 -13
- pulumi_nomad/get_variable.py +5 -16
- pulumi_nomad/get_volumes.py +5 -20
- pulumi_nomad/job.py +82 -16
- pulumi_nomad/namespace.py +24 -29
- pulumi_nomad/node_pool.py +5 -10
- pulumi_nomad/outputs.py +31 -67
- pulumi_nomad/provider.py +3 -8
- pulumi_nomad/pulumi-plugin.json +1 -1
- pulumi_nomad/quote_specification.py +19 -24
- pulumi_nomad/scheduler_config.py +0 -5
- pulumi_nomad/sentinel_policy.py +0 -5
- pulumi_nomad/variable.py +14 -19
- pulumi_nomad/volume.py +72 -65
- {pulumi_nomad-2.4.0.dist-info → pulumi_nomad-2.4.0a1717653571.dist-info}/METADATA +2 -3
- pulumi_nomad-2.4.0a1717653571.dist-info/RECORD +55 -0
- {pulumi_nomad-2.4.0.dist-info → pulumi_nomad-2.4.0a1717653571.dist-info}/WHEEL +1 -1
- pulumi_nomad-2.4.0.dist-info/RECORD +0 -55
- {pulumi_nomad-2.4.0.dist-info → pulumi_nomad-2.4.0a1717653571.dist-info}/top_level.txt +0 -0
pulumi_nomad/_inputs.py
CHANGED
@@ -4,201 +4,57 @@
|
|
4
4
|
|
5
5
|
import copy
|
6
6
|
import warnings
|
7
|
-
import sys
|
8
7
|
import pulumi
|
9
8
|
import pulumi.runtime
|
10
9
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
11
|
-
if sys.version_info >= (3, 11):
|
12
|
-
from typing import NotRequired, TypedDict, TypeAlias
|
13
|
-
else:
|
14
|
-
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
15
10
|
from . import _utilities
|
16
11
|
|
17
12
|
__all__ = [
|
18
13
|
'AclAuthMethodConfigArgs',
|
19
|
-
'AclAuthMethodConfigArgsDict',
|
20
14
|
'AclPolicyJobAclArgs',
|
21
|
-
'AclPolicyJobAclArgsDict',
|
22
15
|
'AclRolePolicyArgs',
|
23
|
-
'AclRolePolicyArgsDict',
|
24
16
|
'AclTokenRoleArgs',
|
25
|
-
'AclTokenRoleArgsDict',
|
26
17
|
'CsiVolumeCapabilityArgs',
|
27
|
-
'CsiVolumeCapabilityArgsDict',
|
28
18
|
'CsiVolumeMountOptionsArgs',
|
29
|
-
'CsiVolumeMountOptionsArgsDict',
|
30
19
|
'CsiVolumeRegistrationCapabilityArgs',
|
31
|
-
'CsiVolumeRegistrationCapabilityArgsDict',
|
32
20
|
'CsiVolumeRegistrationMountOptionsArgs',
|
33
|
-
'CsiVolumeRegistrationMountOptionsArgsDict',
|
34
21
|
'CsiVolumeRegistrationTopologyArgs',
|
35
|
-
'CsiVolumeRegistrationTopologyArgsDict',
|
36
22
|
'CsiVolumeRegistrationTopologyRequestArgs',
|
37
|
-
'CsiVolumeRegistrationTopologyRequestArgsDict',
|
38
23
|
'CsiVolumeRegistrationTopologyRequestRequiredArgs',
|
39
|
-
'CsiVolumeRegistrationTopologyRequestRequiredArgsDict',
|
40
24
|
'CsiVolumeRegistrationTopologyRequestRequiredTopologyArgs',
|
41
|
-
'CsiVolumeRegistrationTopologyRequestRequiredTopologyArgsDict',
|
42
25
|
'CsiVolumeTopologyArgs',
|
43
|
-
'CsiVolumeTopologyArgsDict',
|
44
26
|
'CsiVolumeTopologyRequestArgs',
|
45
|
-
'CsiVolumeTopologyRequestArgsDict',
|
46
27
|
'CsiVolumeTopologyRequestPreferredArgs',
|
47
|
-
'CsiVolumeTopologyRequestPreferredArgsDict',
|
48
28
|
'CsiVolumeTopologyRequestPreferredTopologyArgs',
|
49
|
-
'CsiVolumeTopologyRequestPreferredTopologyArgsDict',
|
50
29
|
'CsiVolumeTopologyRequestRequiredArgs',
|
51
|
-
'CsiVolumeTopologyRequestRequiredArgsDict',
|
52
30
|
'CsiVolumeTopologyRequestRequiredTopologyArgs',
|
53
|
-
'CsiVolumeTopologyRequestRequiredTopologyArgsDict',
|
54
31
|
'ExternalVolumeCapabilityArgs',
|
55
|
-
'ExternalVolumeCapabilityArgsDict',
|
56
32
|
'ExternalVolumeMountOptionsArgs',
|
57
|
-
'ExternalVolumeMountOptionsArgsDict',
|
58
33
|
'ExternalVolumeTopologyArgs',
|
59
|
-
'ExternalVolumeTopologyArgsDict',
|
60
34
|
'ExternalVolumeTopologyRequestArgs',
|
61
|
-
'ExternalVolumeTopologyRequestArgsDict',
|
62
35
|
'ExternalVolumeTopologyRequestPreferredArgs',
|
63
|
-
'ExternalVolumeTopologyRequestPreferredArgsDict',
|
64
36
|
'ExternalVolumeTopologyRequestPreferredTopologyArgs',
|
65
|
-
'ExternalVolumeTopologyRequestPreferredTopologyArgsDict',
|
66
37
|
'ExternalVolumeTopologyRequestRequiredArgs',
|
67
|
-
'ExternalVolumeTopologyRequestRequiredArgsDict',
|
68
38
|
'ExternalVolumeTopologyRequestRequiredTopologyArgs',
|
69
|
-
'ExternalVolumeTopologyRequestRequiredTopologyArgsDict',
|
70
39
|
'JobHcl2Args',
|
71
|
-
'JobHcl2ArgsDict',
|
72
40
|
'JobTaskGroupArgs',
|
73
|
-
'JobTaskGroupArgsDict',
|
74
41
|
'JobTaskGroupTaskArgs',
|
75
|
-
'JobTaskGroupTaskArgsDict',
|
76
42
|
'JobTaskGroupTaskVolumeMountArgs',
|
77
|
-
'JobTaskGroupTaskVolumeMountArgsDict',
|
78
43
|
'JobTaskGroupVolumeArgs',
|
79
|
-
'JobTaskGroupVolumeArgsDict',
|
80
44
|
'NamespaceCapabilitiesArgs',
|
81
|
-
'NamespaceCapabilitiesArgsDict',
|
82
45
|
'NamespaceNodePoolConfigArgs',
|
83
|
-
'NamespaceNodePoolConfigArgsDict',
|
84
46
|
'NodePoolSchedulerConfigArgs',
|
85
|
-
'NodePoolSchedulerConfigArgsDict',
|
86
47
|
'ProviderHeaderArgs',
|
87
|
-
'ProviderHeaderArgsDict',
|
88
48
|
'QuoteSpecificationLimitArgs',
|
89
|
-
'QuoteSpecificationLimitArgsDict',
|
90
49
|
'QuoteSpecificationLimitRegionLimitArgs',
|
91
|
-
'QuoteSpecificationLimitRegionLimitArgsDict',
|
92
50
|
'VolumeCapabilityArgs',
|
93
|
-
'VolumeCapabilityArgsDict',
|
94
51
|
'VolumeMountOptionsArgs',
|
95
|
-
'VolumeMountOptionsArgsDict',
|
96
52
|
'VolumeTopologyArgs',
|
97
|
-
'VolumeTopologyArgsDict',
|
98
53
|
'VolumeTopologyRequestArgs',
|
99
|
-
'VolumeTopologyRequestArgsDict',
|
100
54
|
'VolumeTopologyRequestRequiredArgs',
|
101
|
-
'VolumeTopologyRequestRequiredArgsDict',
|
102
55
|
'VolumeTopologyRequestRequiredTopologyArgs',
|
103
|
-
'VolumeTopologyRequestRequiredTopologyArgsDict',
|
104
56
|
]
|
105
57
|
|
106
|
-
MYPY = False
|
107
|
-
|
108
|
-
if not MYPY:
|
109
|
-
class AclAuthMethodConfigArgsDict(TypedDict):
|
110
|
-
allowed_redirect_uris: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
|
111
|
-
"""
|
112
|
-
`([]string: <optional>)` - A list of allowed values
|
113
|
-
that can be used for the redirect URI.
|
114
|
-
"""
|
115
|
-
bound_audiences: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
|
116
|
-
"""
|
117
|
-
`([]string: <optional>)` - List of auth claims that are
|
118
|
-
valid for login.
|
119
|
-
"""
|
120
|
-
bound_issuers: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
|
121
|
-
"""
|
122
|
-
`([]string: <optional>)` - The value against which to match
|
123
|
-
the iss claim in a JWT.
|
124
|
-
"""
|
125
|
-
claim_mappings: NotRequired[pulumi.Input[Mapping[str, pulumi.Input[str]]]]
|
126
|
-
"""
|
127
|
-
Mappings of claims (key) that will be copied to a metadata field (value).
|
128
|
-
"""
|
129
|
-
clock_skew_leeway: NotRequired[pulumi.Input[str]]
|
130
|
-
"""
|
131
|
-
`(string: <optional>)` - Duration of leeway when validating
|
132
|
-
all claims in the form of a time duration such as "5m" or "1h".
|
133
|
-
"""
|
134
|
-
discovery_ca_pems: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
|
135
|
-
"""
|
136
|
-
`([]string: <optional>)` - PEM encoded CA certs for use
|
137
|
-
by the TLS client used to talk with the OIDC Discovery URL.
|
138
|
-
"""
|
139
|
-
expiration_leeway: NotRequired[pulumi.Input[str]]
|
140
|
-
"""
|
141
|
-
`(string: <optional>)` - Duration of leeway when validating
|
142
|
-
expiration of a JWT in the form of a time duration such as "5m" or "1h".
|
143
|
-
"""
|
144
|
-
jwks_ca_cert: NotRequired[pulumi.Input[str]]
|
145
|
-
"""
|
146
|
-
`(string: <optional>)` - PEM encoded CA cert for use by the
|
147
|
-
TLS client used to talk with the JWKS server.
|
148
|
-
"""
|
149
|
-
jwks_url: NotRequired[pulumi.Input[str]]
|
150
|
-
"""
|
151
|
-
`(string: <optional>)` - JSON Web Key Sets url for authenticating
|
152
|
-
signatures.
|
153
|
-
"""
|
154
|
-
jwt_validation_pub_keys: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
|
155
|
-
"""
|
156
|
-
`([]string: <optional>)` - List of PEM-encoded
|
157
|
-
public keys to use to authenticate signatures locally.
|
158
|
-
"""
|
159
|
-
list_claim_mappings: NotRequired[pulumi.Input[Mapping[str, pulumi.Input[str]]]]
|
160
|
-
"""
|
161
|
-
Mappings of list claims (key) that will be copied to a metadata field (value).
|
162
|
-
"""
|
163
|
-
not_before_leeway: NotRequired[pulumi.Input[str]]
|
164
|
-
"""
|
165
|
-
`(string: <optional>)` - Duration of leeway when validating
|
166
|
-
not before values of a token in the form of a time duration such as "5m" or "1h".
|
167
|
-
"""
|
168
|
-
oidc_client_id: NotRequired[pulumi.Input[str]]
|
169
|
-
"""
|
170
|
-
`(string: <optional>)` - The OAuth Client ID configured
|
171
|
-
with the OIDC provider.
|
172
|
-
"""
|
173
|
-
oidc_client_secret: NotRequired[pulumi.Input[str]]
|
174
|
-
"""
|
175
|
-
`(string: <optional>)` - The OAuth Client Secret
|
176
|
-
configured with the OIDC provider.
|
177
|
-
"""
|
178
|
-
oidc_disable_userinfo: NotRequired[pulumi.Input[bool]]
|
179
|
-
"""
|
180
|
-
`(bool: false)` - When set to `true`, Nomad will
|
181
|
-
not make a request to the identity provider to get OIDC `UserInfo`.
|
182
|
-
You may wish to set this if your identity provider doesn't send any
|
183
|
-
additional claims from the `UserInfo` endpoint.
|
184
|
-
"""
|
185
|
-
oidc_discovery_url: NotRequired[pulumi.Input[str]]
|
186
|
-
"""
|
187
|
-
`(string: <optional>)` - The OIDC Discovery URL,
|
188
|
-
without any .well-known component (base path).
|
189
|
-
"""
|
190
|
-
oidc_scopes: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
|
191
|
-
"""
|
192
|
-
`([]string: <optional>)` - List of OIDC scopes.
|
193
|
-
"""
|
194
|
-
signing_algs: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
|
195
|
-
"""
|
196
|
-
`([]string: <optional>)` - A list of supported signing
|
197
|
-
algorithms.
|
198
|
-
"""
|
199
|
-
elif False:
|
200
|
-
AclAuthMethodConfigArgsDict: TypeAlias = Mapping[str, Any]
|
201
|
-
|
202
58
|
@pulumi.input_type
|
203
59
|
class AclAuthMethodConfigArgs:
|
204
60
|
def __init__(__self__, *,
|
@@ -528,27 +384,6 @@ class AclAuthMethodConfigArgs:
|
|
528
384
|
pulumi.set(self, "signing_algs", value)
|
529
385
|
|
530
386
|
|
531
|
-
if not MYPY:
|
532
|
-
class AclPolicyJobAclArgsDict(TypedDict):
|
533
|
-
job_id: pulumi.Input[str]
|
534
|
-
"""
|
535
|
-
Job
|
536
|
-
"""
|
537
|
-
group: NotRequired[pulumi.Input[str]]
|
538
|
-
"""
|
539
|
-
Group
|
540
|
-
"""
|
541
|
-
namespace: NotRequired[pulumi.Input[str]]
|
542
|
-
"""
|
543
|
-
Namespace
|
544
|
-
"""
|
545
|
-
task: NotRequired[pulumi.Input[str]]
|
546
|
-
"""
|
547
|
-
Task
|
548
|
-
"""
|
549
|
-
elif False:
|
550
|
-
AclPolicyJobAclArgsDict: TypeAlias = Mapping[str, Any]
|
551
|
-
|
552
387
|
@pulumi.input_type
|
553
388
|
class AclPolicyJobAclArgs:
|
554
389
|
def __init__(__self__, *,
|
@@ -619,15 +454,6 @@ class AclPolicyJobAclArgs:
|
|
619
454
|
pulumi.set(self, "task", value)
|
620
455
|
|
621
456
|
|
622
|
-
if not MYPY:
|
623
|
-
class AclRolePolicyArgsDict(TypedDict):
|
624
|
-
name: pulumi.Input[str]
|
625
|
-
"""
|
626
|
-
`(string: <required>)` - A human-friendly name for this ACL Role.
|
627
|
-
"""
|
628
|
-
elif False:
|
629
|
-
AclRolePolicyArgsDict: TypeAlias = Mapping[str, Any]
|
630
|
-
|
631
457
|
@pulumi.input_type
|
632
458
|
class AclRolePolicyArgs:
|
633
459
|
def __init__(__self__, *,
|
@@ -650,19 +476,6 @@ class AclRolePolicyArgs:
|
|
650
476
|
pulumi.set(self, "name", value)
|
651
477
|
|
652
478
|
|
653
|
-
if not MYPY:
|
654
|
-
class AclTokenRoleArgsDict(TypedDict):
|
655
|
-
id: pulumi.Input[str]
|
656
|
-
"""
|
657
|
-
The ID of the ACL role to link.
|
658
|
-
"""
|
659
|
-
name: NotRequired[pulumi.Input[str]]
|
660
|
-
"""
|
661
|
-
`(string: "")` - A human-friendly name for this token.
|
662
|
-
"""
|
663
|
-
elif False:
|
664
|
-
AclTokenRoleArgsDict: TypeAlias = Mapping[str, Any]
|
665
|
-
|
666
479
|
@pulumi.input_type
|
667
480
|
class AclTokenRoleArgs:
|
668
481
|
def __init__(__self__, *,
|
@@ -701,26 +514,6 @@ class AclTokenRoleArgs:
|
|
701
514
|
pulumi.set(self, "name", value)
|
702
515
|
|
703
516
|
|
704
|
-
if not MYPY:
|
705
|
-
class CsiVolumeCapabilityArgsDict(TypedDict):
|
706
|
-
access_mode: pulumi.Input[str]
|
707
|
-
"""
|
708
|
-
`(string: <required>)` - Defines whether a volume should be available concurrently. Possible values are:
|
709
|
-
- `single-node-reader-only`
|
710
|
-
- `single-node-writer`
|
711
|
-
- `multi-node-reader-only`
|
712
|
-
- `multi-node-single-writer`
|
713
|
-
- `multi-node-multi-writer`
|
714
|
-
"""
|
715
|
-
attachment_mode: pulumi.Input[str]
|
716
|
-
"""
|
717
|
-
`(string: <required>)` - The storage API that will be used by the volume. Possible values are:
|
718
|
-
- `block-device`
|
719
|
-
- `file-system`
|
720
|
-
"""
|
721
|
-
elif False:
|
722
|
-
CsiVolumeCapabilityArgsDict: TypeAlias = Mapping[str, Any]
|
723
|
-
|
724
517
|
@pulumi.input_type
|
725
518
|
class CsiVolumeCapabilityArgs:
|
726
519
|
def __init__(__self__, *,
|
@@ -772,19 +565,6 @@ class CsiVolumeCapabilityArgs:
|
|
772
565
|
pulumi.set(self, "attachment_mode", value)
|
773
566
|
|
774
567
|
|
775
|
-
if not MYPY:
|
776
|
-
class CsiVolumeMountOptionsArgsDict(TypedDict):
|
777
|
-
fs_type: NotRequired[pulumi.Input[str]]
|
778
|
-
"""
|
779
|
-
`(string: optional)` - The file system type.
|
780
|
-
"""
|
781
|
-
mount_flags: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
|
782
|
-
"""
|
783
|
-
`[]string: optional` - The flags passed to `mount`.
|
784
|
-
"""
|
785
|
-
elif False:
|
786
|
-
CsiVolumeMountOptionsArgsDict: TypeAlias = Mapping[str, Any]
|
787
|
-
|
788
568
|
@pulumi.input_type
|
789
569
|
class CsiVolumeMountOptionsArgs:
|
790
570
|
def __init__(__self__, *,
|
@@ -824,26 +604,6 @@ class CsiVolumeMountOptionsArgs:
|
|
824
604
|
pulumi.set(self, "mount_flags", value)
|
825
605
|
|
826
606
|
|
827
|
-
if not MYPY:
|
828
|
-
class CsiVolumeRegistrationCapabilityArgsDict(TypedDict):
|
829
|
-
access_mode: pulumi.Input[str]
|
830
|
-
"""
|
831
|
-
`(string: <required>)` - Defines whether a volume should be available concurrently. Possible values are:
|
832
|
-
- `single-node-reader-only`
|
833
|
-
- `single-node-writer`
|
834
|
-
- `multi-node-reader-only`
|
835
|
-
- `multi-node-single-writer`
|
836
|
-
- `multi-node-multi-writer`
|
837
|
-
"""
|
838
|
-
attachment_mode: pulumi.Input[str]
|
839
|
-
"""
|
840
|
-
`(string: <required>)` - The storage API that will be used by the volume. Possible values are:
|
841
|
-
- `block-device`
|
842
|
-
- `file-system`
|
843
|
-
"""
|
844
|
-
elif False:
|
845
|
-
CsiVolumeRegistrationCapabilityArgsDict: TypeAlias = Mapping[str, Any]
|
846
|
-
|
847
607
|
@pulumi.input_type
|
848
608
|
class CsiVolumeRegistrationCapabilityArgs:
|
849
609
|
def __init__(__self__, *,
|
@@ -895,19 +655,6 @@ class CsiVolumeRegistrationCapabilityArgs:
|
|
895
655
|
pulumi.set(self, "attachment_mode", value)
|
896
656
|
|
897
657
|
|
898
|
-
if not MYPY:
|
899
|
-
class CsiVolumeRegistrationMountOptionsArgsDict(TypedDict):
|
900
|
-
fs_type: NotRequired[pulumi.Input[str]]
|
901
|
-
"""
|
902
|
-
`(string: <optional>)` - The file system type.
|
903
|
-
"""
|
904
|
-
mount_flags: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
|
905
|
-
"""
|
906
|
-
`([]string: <optional>)` - The flags passed to `mount`.
|
907
|
-
"""
|
908
|
-
elif False:
|
909
|
-
CsiVolumeRegistrationMountOptionsArgsDict: TypeAlias = Mapping[str, Any]
|
910
|
-
|
911
658
|
@pulumi.input_type
|
912
659
|
class CsiVolumeRegistrationMountOptionsArgs:
|
913
660
|
def __init__(__self__, *,
|
@@ -947,40 +694,16 @@ class CsiVolumeRegistrationMountOptionsArgs:
|
|
947
694
|
pulumi.set(self, "mount_flags", value)
|
948
695
|
|
949
696
|
|
950
|
-
if not MYPY:
|
951
|
-
class CsiVolumeRegistrationTopologyArgsDict(TypedDict):
|
952
|
-
segments: NotRequired[pulumi.Input[Mapping[str, pulumi.Input[str]]]]
|
953
|
-
"""
|
954
|
-
`(map[string]string)` - Define the attributes for the topology request.
|
955
|
-
|
956
|
-
In addition to the above arguments, the following attributes are exported and
|
957
|
-
can be referenced:
|
958
|
-
"""
|
959
|
-
elif False:
|
960
|
-
CsiVolumeRegistrationTopologyArgsDict: TypeAlias = Mapping[str, Any]
|
961
|
-
|
962
697
|
@pulumi.input_type
|
963
698
|
class CsiVolumeRegistrationTopologyArgs:
|
964
699
|
def __init__(__self__, *,
|
965
700
|
segments: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None):
|
966
|
-
"""
|
967
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] segments: `(map[string]string)` - Define the attributes for the topology request.
|
968
|
-
|
969
|
-
In addition to the above arguments, the following attributes are exported and
|
970
|
-
can be referenced:
|
971
|
-
"""
|
972
701
|
if segments is not None:
|
973
702
|
pulumi.set(__self__, "segments", segments)
|
974
703
|
|
975
704
|
@property
|
976
705
|
@pulumi.getter
|
977
706
|
def segments(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
978
|
-
"""
|
979
|
-
`(map[string]string)` - Define the attributes for the topology request.
|
980
|
-
|
981
|
-
In addition to the above arguments, the following attributes are exported and
|
982
|
-
can be referenced:
|
983
|
-
"""
|
984
707
|
return pulumi.get(self, "segments")
|
985
708
|
|
986
709
|
@segments.setter
|
@@ -988,15 +711,6 @@ class CsiVolumeRegistrationTopologyArgs:
|
|
988
711
|
pulumi.set(self, "segments", value)
|
989
712
|
|
990
713
|
|
991
|
-
if not MYPY:
|
992
|
-
class CsiVolumeRegistrationTopologyRequestArgsDict(TypedDict):
|
993
|
-
required: NotRequired[pulumi.Input['CsiVolumeRegistrationTopologyRequestRequiredArgsDict']]
|
994
|
-
"""
|
995
|
-
`(``Topology``: <optional>)` - Required topologies indicate that the volume must be created in a location accessible from all the listed topologies.
|
996
|
-
"""
|
997
|
-
elif False:
|
998
|
-
CsiVolumeRegistrationTopologyRequestArgsDict: TypeAlias = Mapping[str, Any]
|
999
|
-
|
1000
714
|
@pulumi.input_type
|
1001
715
|
class CsiVolumeRegistrationTopologyRequestArgs:
|
1002
716
|
def __init__(__self__, *,
|
@@ -1020,15 +734,6 @@ class CsiVolumeRegistrationTopologyRequestArgs:
|
|
1020
734
|
pulumi.set(self, "required", value)
|
1021
735
|
|
1022
736
|
|
1023
|
-
if not MYPY:
|
1024
|
-
class CsiVolumeRegistrationTopologyRequestRequiredArgsDict(TypedDict):
|
1025
|
-
topologies: pulumi.Input[Sequence[pulumi.Input['CsiVolumeRegistrationTopologyRequestRequiredTopologyArgsDict']]]
|
1026
|
-
"""
|
1027
|
-
Defines the location for the volume.
|
1028
|
-
"""
|
1029
|
-
elif False:
|
1030
|
-
CsiVolumeRegistrationTopologyRequestRequiredArgsDict: TypeAlias = Mapping[str, Any]
|
1031
|
-
|
1032
737
|
@pulumi.input_type
|
1033
738
|
class CsiVolumeRegistrationTopologyRequestRequiredArgs:
|
1034
739
|
def __init__(__self__, *,
|
@@ -1051,15 +756,6 @@ class CsiVolumeRegistrationTopologyRequestRequiredArgs:
|
|
1051
756
|
pulumi.set(self, "topologies", value)
|
1052
757
|
|
1053
758
|
|
1054
|
-
if not MYPY:
|
1055
|
-
class CsiVolumeRegistrationTopologyRequestRequiredTopologyArgsDict(TypedDict):
|
1056
|
-
segments: pulumi.Input[Mapping[str, pulumi.Input[str]]]
|
1057
|
-
"""
|
1058
|
-
Define attributes for the topology request.
|
1059
|
-
"""
|
1060
|
-
elif False:
|
1061
|
-
CsiVolumeRegistrationTopologyRequestRequiredTopologyArgsDict: TypeAlias = Mapping[str, Any]
|
1062
|
-
|
1063
759
|
@pulumi.input_type
|
1064
760
|
class CsiVolumeRegistrationTopologyRequestRequiredTopologyArgs:
|
1065
761
|
def __init__(__self__, *,
|
@@ -1082,40 +778,16 @@ class CsiVolumeRegistrationTopologyRequestRequiredTopologyArgs:
|
|
1082
778
|
pulumi.set(self, "segments", value)
|
1083
779
|
|
1084
780
|
|
1085
|
-
if not MYPY:
|
1086
|
-
class CsiVolumeTopologyArgsDict(TypedDict):
|
1087
|
-
segments: NotRequired[pulumi.Input[Mapping[str, pulumi.Input[str]]]]
|
1088
|
-
"""
|
1089
|
-
`(map[string]string)` - Define the attributes for the topology request.
|
1090
|
-
|
1091
|
-
In addition to the above arguments, the following attributes are exported and
|
1092
|
-
can be referenced:
|
1093
|
-
"""
|
1094
|
-
elif False:
|
1095
|
-
CsiVolumeTopologyArgsDict: TypeAlias = Mapping[str, Any]
|
1096
|
-
|
1097
781
|
@pulumi.input_type
|
1098
782
|
class CsiVolumeTopologyArgs:
|
1099
783
|
def __init__(__self__, *,
|
1100
784
|
segments: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None):
|
1101
|
-
"""
|
1102
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] segments: `(map[string]string)` - Define the attributes for the topology request.
|
1103
|
-
|
1104
|
-
In addition to the above arguments, the following attributes are exported and
|
1105
|
-
can be referenced:
|
1106
|
-
"""
|
1107
785
|
if segments is not None:
|
1108
786
|
pulumi.set(__self__, "segments", segments)
|
1109
787
|
|
1110
788
|
@property
|
1111
789
|
@pulumi.getter
|
1112
790
|
def segments(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
1113
|
-
"""
|
1114
|
-
`(map[string]string)` - Define the attributes for the topology request.
|
1115
|
-
|
1116
|
-
In addition to the above arguments, the following attributes are exported and
|
1117
|
-
can be referenced:
|
1118
|
-
"""
|
1119
791
|
return pulumi.get(self, "segments")
|
1120
792
|
|
1121
793
|
@segments.setter
|
@@ -1123,19 +795,6 @@ class CsiVolumeTopologyArgs:
|
|
1123
795
|
pulumi.set(self, "segments", value)
|
1124
796
|
|
1125
797
|
|
1126
|
-
if not MYPY:
|
1127
|
-
class CsiVolumeTopologyRequestArgsDict(TypedDict):
|
1128
|
-
preferred: NotRequired[pulumi.Input['CsiVolumeTopologyRequestPreferredArgsDict']]
|
1129
|
-
"""
|
1130
|
-
`(``Topology``: <optional>)` - Preferred topologies indicate that the volume should be created in a location accessible from some of the listed topologies.
|
1131
|
-
"""
|
1132
|
-
required: NotRequired[pulumi.Input['CsiVolumeTopologyRequestRequiredArgsDict']]
|
1133
|
-
"""
|
1134
|
-
`(``Topology``: <optional>)` - Required topologies indicate that the volume must be created in a location accessible from all the listed topologies.
|
1135
|
-
"""
|
1136
|
-
elif False:
|
1137
|
-
CsiVolumeTopologyRequestArgsDict: TypeAlias = Mapping[str, Any]
|
1138
|
-
|
1139
798
|
@pulumi.input_type
|
1140
799
|
class CsiVolumeTopologyRequestArgs:
|
1141
800
|
def __init__(__self__, *,
|
@@ -1175,15 +834,6 @@ class CsiVolumeTopologyRequestArgs:
|
|
1175
834
|
pulumi.set(self, "required", value)
|
1176
835
|
|
1177
836
|
|
1178
|
-
if not MYPY:
|
1179
|
-
class CsiVolumeTopologyRequestPreferredArgsDict(TypedDict):
|
1180
|
-
topologies: pulumi.Input[Sequence[pulumi.Input['CsiVolumeTopologyRequestPreferredTopologyArgsDict']]]
|
1181
|
-
"""
|
1182
|
-
Defines the location for the volume.
|
1183
|
-
"""
|
1184
|
-
elif False:
|
1185
|
-
CsiVolumeTopologyRequestPreferredArgsDict: TypeAlias = Mapping[str, Any]
|
1186
|
-
|
1187
837
|
@pulumi.input_type
|
1188
838
|
class CsiVolumeTopologyRequestPreferredArgs:
|
1189
839
|
def __init__(__self__, *,
|
@@ -1206,15 +856,6 @@ class CsiVolumeTopologyRequestPreferredArgs:
|
|
1206
856
|
pulumi.set(self, "topologies", value)
|
1207
857
|
|
1208
858
|
|
1209
|
-
if not MYPY:
|
1210
|
-
class CsiVolumeTopologyRequestPreferredTopologyArgsDict(TypedDict):
|
1211
|
-
segments: pulumi.Input[Mapping[str, pulumi.Input[str]]]
|
1212
|
-
"""
|
1213
|
-
Define the attributes for the topology request.
|
1214
|
-
"""
|
1215
|
-
elif False:
|
1216
|
-
CsiVolumeTopologyRequestPreferredTopologyArgsDict: TypeAlias = Mapping[str, Any]
|
1217
|
-
|
1218
859
|
@pulumi.input_type
|
1219
860
|
class CsiVolumeTopologyRequestPreferredTopologyArgs:
|
1220
861
|
def __init__(__self__, *,
|
@@ -1237,15 +878,6 @@ class CsiVolumeTopologyRequestPreferredTopologyArgs:
|
|
1237
878
|
pulumi.set(self, "segments", value)
|
1238
879
|
|
1239
880
|
|
1240
|
-
if not MYPY:
|
1241
|
-
class CsiVolumeTopologyRequestRequiredArgsDict(TypedDict):
|
1242
|
-
topologies: pulumi.Input[Sequence[pulumi.Input['CsiVolumeTopologyRequestRequiredTopologyArgsDict']]]
|
1243
|
-
"""
|
1244
|
-
Defines the location for the volume.
|
1245
|
-
"""
|
1246
|
-
elif False:
|
1247
|
-
CsiVolumeTopologyRequestRequiredArgsDict: TypeAlias = Mapping[str, Any]
|
1248
|
-
|
1249
881
|
@pulumi.input_type
|
1250
882
|
class CsiVolumeTopologyRequestRequiredArgs:
|
1251
883
|
def __init__(__self__, *,
|
@@ -1268,15 +900,6 @@ class CsiVolumeTopologyRequestRequiredArgs:
|
|
1268
900
|
pulumi.set(self, "topologies", value)
|
1269
901
|
|
1270
902
|
|
1271
|
-
if not MYPY:
|
1272
|
-
class CsiVolumeTopologyRequestRequiredTopologyArgsDict(TypedDict):
|
1273
|
-
segments: pulumi.Input[Mapping[str, pulumi.Input[str]]]
|
1274
|
-
"""
|
1275
|
-
Define the attributes for the topology request.
|
1276
|
-
"""
|
1277
|
-
elif False:
|
1278
|
-
CsiVolumeTopologyRequestRequiredTopologyArgsDict: TypeAlias = Mapping[str, Any]
|
1279
|
-
|
1280
903
|
@pulumi.input_type
|
1281
904
|
class CsiVolumeTopologyRequestRequiredTopologyArgs:
|
1282
905
|
def __init__(__self__, *,
|
@@ -1299,26 +922,6 @@ class CsiVolumeTopologyRequestRequiredTopologyArgs:
|
|
1299
922
|
pulumi.set(self, "segments", value)
|
1300
923
|
|
1301
924
|
|
1302
|
-
if not MYPY:
|
1303
|
-
class ExternalVolumeCapabilityArgsDict(TypedDict):
|
1304
|
-
access_mode: pulumi.Input[str]
|
1305
|
-
"""
|
1306
|
-
`(string: <required>)` - Defines whether a volume should be available concurrently. Possible values are:
|
1307
|
-
- `single-node-reader-only`
|
1308
|
-
- `single-node-writer`
|
1309
|
-
- `multi-node-reader-only`
|
1310
|
-
- `multi-node-single-writer`
|
1311
|
-
- `multi-node-multi-writer`
|
1312
|
-
"""
|
1313
|
-
attachment_mode: pulumi.Input[str]
|
1314
|
-
"""
|
1315
|
-
`(string: <required>)` - The storage API that will be used by the volume. Possible values are:
|
1316
|
-
- `block-device`
|
1317
|
-
- `file-system`
|
1318
|
-
"""
|
1319
|
-
elif False:
|
1320
|
-
ExternalVolumeCapabilityArgsDict: TypeAlias = Mapping[str, Any]
|
1321
|
-
|
1322
925
|
@pulumi.input_type
|
1323
926
|
class ExternalVolumeCapabilityArgs:
|
1324
927
|
def __init__(__self__, *,
|
@@ -1370,19 +973,6 @@ class ExternalVolumeCapabilityArgs:
|
|
1370
973
|
pulumi.set(self, "attachment_mode", value)
|
1371
974
|
|
1372
975
|
|
1373
|
-
if not MYPY:
|
1374
|
-
class ExternalVolumeMountOptionsArgsDict(TypedDict):
|
1375
|
-
fs_type: NotRequired[pulumi.Input[str]]
|
1376
|
-
"""
|
1377
|
-
`(string: optional)` - The file system type.
|
1378
|
-
"""
|
1379
|
-
mount_flags: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
|
1380
|
-
"""
|
1381
|
-
`[]string: optional` - The flags passed to `mount`.
|
1382
|
-
"""
|
1383
|
-
elif False:
|
1384
|
-
ExternalVolumeMountOptionsArgsDict: TypeAlias = Mapping[str, Any]
|
1385
|
-
|
1386
976
|
@pulumi.input_type
|
1387
977
|
class ExternalVolumeMountOptionsArgs:
|
1388
978
|
def __init__(__self__, *,
|
@@ -1422,40 +1012,16 @@ class ExternalVolumeMountOptionsArgs:
|
|
1422
1012
|
pulumi.set(self, "mount_flags", value)
|
1423
1013
|
|
1424
1014
|
|
1425
|
-
if not MYPY:
|
1426
|
-
class ExternalVolumeTopologyArgsDict(TypedDict):
|
1427
|
-
segments: NotRequired[pulumi.Input[Mapping[str, pulumi.Input[str]]]]
|
1428
|
-
"""
|
1429
|
-
`(map[string]string)` - Define the attributes for the topology request.
|
1430
|
-
|
1431
|
-
In addition to the above arguments, the following attributes are exported and
|
1432
|
-
can be referenced:
|
1433
|
-
"""
|
1434
|
-
elif False:
|
1435
|
-
ExternalVolumeTopologyArgsDict: TypeAlias = Mapping[str, Any]
|
1436
|
-
|
1437
1015
|
@pulumi.input_type
|
1438
1016
|
class ExternalVolumeTopologyArgs:
|
1439
1017
|
def __init__(__self__, *,
|
1440
1018
|
segments: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None):
|
1441
|
-
"""
|
1442
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] segments: `(map[string]string)` - Define the attributes for the topology request.
|
1443
|
-
|
1444
|
-
In addition to the above arguments, the following attributes are exported and
|
1445
|
-
can be referenced:
|
1446
|
-
"""
|
1447
1019
|
if segments is not None:
|
1448
1020
|
pulumi.set(__self__, "segments", segments)
|
1449
1021
|
|
1450
1022
|
@property
|
1451
1023
|
@pulumi.getter
|
1452
1024
|
def segments(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
1453
|
-
"""
|
1454
|
-
`(map[string]string)` - Define the attributes for the topology request.
|
1455
|
-
|
1456
|
-
In addition to the above arguments, the following attributes are exported and
|
1457
|
-
can be referenced:
|
1458
|
-
"""
|
1459
1025
|
return pulumi.get(self, "segments")
|
1460
1026
|
|
1461
1027
|
@segments.setter
|
@@ -1463,19 +1029,6 @@ class ExternalVolumeTopologyArgs:
|
|
1463
1029
|
pulumi.set(self, "segments", value)
|
1464
1030
|
|
1465
1031
|
|
1466
|
-
if not MYPY:
|
1467
|
-
class ExternalVolumeTopologyRequestArgsDict(TypedDict):
|
1468
|
-
preferred: NotRequired[pulumi.Input['ExternalVolumeTopologyRequestPreferredArgsDict']]
|
1469
|
-
"""
|
1470
|
-
`(``Topology``: <optional>)` - Preferred topologies indicate that the volume should be created in a location accessible from some of the listed topologies.
|
1471
|
-
"""
|
1472
|
-
required: NotRequired[pulumi.Input['ExternalVolumeTopologyRequestRequiredArgsDict']]
|
1473
|
-
"""
|
1474
|
-
`(``Topology``: <optional>)` - Required topologies indicate that the volume must be created in a location accessible from all the listed topologies.
|
1475
|
-
"""
|
1476
|
-
elif False:
|
1477
|
-
ExternalVolumeTopologyRequestArgsDict: TypeAlias = Mapping[str, Any]
|
1478
|
-
|
1479
1032
|
@pulumi.input_type
|
1480
1033
|
class ExternalVolumeTopologyRequestArgs:
|
1481
1034
|
def __init__(__self__, *,
|
@@ -1515,15 +1068,6 @@ class ExternalVolumeTopologyRequestArgs:
|
|
1515
1068
|
pulumi.set(self, "required", value)
|
1516
1069
|
|
1517
1070
|
|
1518
|
-
if not MYPY:
|
1519
|
-
class ExternalVolumeTopologyRequestPreferredArgsDict(TypedDict):
|
1520
|
-
topologies: pulumi.Input[Sequence[pulumi.Input['ExternalVolumeTopologyRequestPreferredTopologyArgsDict']]]
|
1521
|
-
"""
|
1522
|
-
Defines the location for the volume.
|
1523
|
-
"""
|
1524
|
-
elif False:
|
1525
|
-
ExternalVolumeTopologyRequestPreferredArgsDict: TypeAlias = Mapping[str, Any]
|
1526
|
-
|
1527
1071
|
@pulumi.input_type
|
1528
1072
|
class ExternalVolumeTopologyRequestPreferredArgs:
|
1529
1073
|
def __init__(__self__, *,
|
@@ -1546,15 +1090,6 @@ class ExternalVolumeTopologyRequestPreferredArgs:
|
|
1546
1090
|
pulumi.set(self, "topologies", value)
|
1547
1091
|
|
1548
1092
|
|
1549
|
-
if not MYPY:
|
1550
|
-
class ExternalVolumeTopologyRequestPreferredTopologyArgsDict(TypedDict):
|
1551
|
-
segments: pulumi.Input[Mapping[str, pulumi.Input[str]]]
|
1552
|
-
"""
|
1553
|
-
Define the attributes for the topology request.
|
1554
|
-
"""
|
1555
|
-
elif False:
|
1556
|
-
ExternalVolumeTopologyRequestPreferredTopologyArgsDict: TypeAlias = Mapping[str, Any]
|
1557
|
-
|
1558
1093
|
@pulumi.input_type
|
1559
1094
|
class ExternalVolumeTopologyRequestPreferredTopologyArgs:
|
1560
1095
|
def __init__(__self__, *,
|
@@ -1577,15 +1112,6 @@ class ExternalVolumeTopologyRequestPreferredTopologyArgs:
|
|
1577
1112
|
pulumi.set(self, "segments", value)
|
1578
1113
|
|
1579
1114
|
|
1580
|
-
if not MYPY:
|
1581
|
-
class ExternalVolumeTopologyRequestRequiredArgsDict(TypedDict):
|
1582
|
-
topologies: pulumi.Input[Sequence[pulumi.Input['ExternalVolumeTopologyRequestRequiredTopologyArgsDict']]]
|
1583
|
-
"""
|
1584
|
-
Defines the location for the volume.
|
1585
|
-
"""
|
1586
|
-
elif False:
|
1587
|
-
ExternalVolumeTopologyRequestRequiredArgsDict: TypeAlias = Mapping[str, Any]
|
1588
|
-
|
1589
1115
|
@pulumi.input_type
|
1590
1116
|
class ExternalVolumeTopologyRequestRequiredArgs:
|
1591
1117
|
def __init__(__self__, *,
|
@@ -1608,15 +1134,6 @@ class ExternalVolumeTopologyRequestRequiredArgs:
|
|
1608
1134
|
pulumi.set(self, "topologies", value)
|
1609
1135
|
|
1610
1136
|
|
1611
|
-
if not MYPY:
|
1612
|
-
class ExternalVolumeTopologyRequestRequiredTopologyArgsDict(TypedDict):
|
1613
|
-
segments: pulumi.Input[Mapping[str, pulumi.Input[str]]]
|
1614
|
-
"""
|
1615
|
-
Define the attributes for the topology request.
|
1616
|
-
"""
|
1617
|
-
elif False:
|
1618
|
-
ExternalVolumeTopologyRequestRequiredTopologyArgsDict: TypeAlias = Mapping[str, Any]
|
1619
|
-
|
1620
1137
|
@pulumi.input_type
|
1621
1138
|
class ExternalVolumeTopologyRequestRequiredTopologyArgs:
|
1622
1139
|
def __init__(__self__, *,
|
@@ -1639,32 +1156,26 @@ class ExternalVolumeTopologyRequestRequiredTopologyArgs:
|
|
1639
1156
|
pulumi.set(self, "segments", value)
|
1640
1157
|
|
1641
1158
|
|
1642
|
-
if not MYPY:
|
1643
|
-
class JobHcl2ArgsDict(TypedDict):
|
1644
|
-
allow_fs: NotRequired[pulumi.Input[bool]]
|
1645
|
-
"""
|
1646
|
-
`(boolean: false)` - Set this to `true` to be able to use
|
1647
|
-
HCL2 filesystem functions
|
1648
|
-
"""
|
1649
|
-
vars: NotRequired[pulumi.Input[Mapping[str, pulumi.Input[str]]]]
|
1650
|
-
"""
|
1651
|
-
Additional variables to use when templating the job with HCL2
|
1652
|
-
"""
|
1653
|
-
elif False:
|
1654
|
-
JobHcl2ArgsDict: TypeAlias = Mapping[str, Any]
|
1655
|
-
|
1656
1159
|
@pulumi.input_type
|
1657
1160
|
class JobHcl2Args:
|
1658
1161
|
def __init__(__self__, *,
|
1659
1162
|
allow_fs: Optional[pulumi.Input[bool]] = None,
|
1660
|
-
|
1163
|
+
enabled: Optional[pulumi.Input[bool]] = None,
|
1164
|
+
vars: Optional[pulumi.Input[Mapping[str, Any]]] = None):
|
1661
1165
|
"""
|
1662
1166
|
:param pulumi.Input[bool] allow_fs: `(boolean: false)` - Set this to `true` to be able to use
|
1663
1167
|
HCL2 filesystem functions
|
1664
|
-
:param pulumi.Input[
|
1168
|
+
:param pulumi.Input[bool] enabled: `(boolean: false)` - **Deprecated** All HCL jobs are parsed as
|
1169
|
+
HCL2 by default.
|
1170
|
+
:param pulumi.Input[Mapping[str, Any]] vars: Additional variables to use when templating the job with HCL2
|
1665
1171
|
"""
|
1666
1172
|
if allow_fs is not None:
|
1667
1173
|
pulumi.set(__self__, "allow_fs", allow_fs)
|
1174
|
+
if enabled is not None:
|
1175
|
+
warnings.warn("""Starting with version 2.0.0 of the Nomad provider, jobs are parsed using HCL2 by default, so this field is no longer used and may be safely removed from your configuration files. Set 'hcl1 = true' if you must use HCL1 job parsing.""", DeprecationWarning)
|
1176
|
+
pulumi.log.warn("""enabled is deprecated: Starting with version 2.0.0 of the Nomad provider, jobs are parsed using HCL2 by default, so this field is no longer used and may be safely removed from your configuration files. Set 'hcl1 = true' if you must use HCL1 job parsing.""")
|
1177
|
+
if enabled is not None:
|
1178
|
+
pulumi.set(__self__, "enabled", enabled)
|
1668
1179
|
if vars is not None:
|
1669
1180
|
pulumi.set(__self__, "vars", vars)
|
1670
1181
|
|
@@ -1683,32 +1194,38 @@ class JobHcl2Args:
|
|
1683
1194
|
|
1684
1195
|
@property
|
1685
1196
|
@pulumi.getter
|
1686
|
-
def
|
1197
|
+
def enabled(self) -> Optional[pulumi.Input[bool]]:
|
1198
|
+
"""
|
1199
|
+
`(boolean: false)` - **Deprecated** All HCL jobs are parsed as
|
1200
|
+
HCL2 by default.
|
1201
|
+
"""
|
1202
|
+
warnings.warn("""Starting with version 2.0.0 of the Nomad provider, jobs are parsed using HCL2 by default, so this field is no longer used and may be safely removed from your configuration files. Set 'hcl1 = true' if you must use HCL1 job parsing.""", DeprecationWarning)
|
1203
|
+
pulumi.log.warn("""enabled is deprecated: Starting with version 2.0.0 of the Nomad provider, jobs are parsed using HCL2 by default, so this field is no longer used and may be safely removed from your configuration files. Set 'hcl1 = true' if you must use HCL1 job parsing.""")
|
1204
|
+
|
1205
|
+
return pulumi.get(self, "enabled")
|
1206
|
+
|
1207
|
+
@enabled.setter
|
1208
|
+
def enabled(self, value: Optional[pulumi.Input[bool]]):
|
1209
|
+
pulumi.set(self, "enabled", value)
|
1210
|
+
|
1211
|
+
@property
|
1212
|
+
@pulumi.getter
|
1213
|
+
def vars(self) -> Optional[pulumi.Input[Mapping[str, Any]]]:
|
1687
1214
|
"""
|
1688
1215
|
Additional variables to use when templating the job with HCL2
|
1689
1216
|
"""
|
1690
1217
|
return pulumi.get(self, "vars")
|
1691
1218
|
|
1692
1219
|
@vars.setter
|
1693
|
-
def vars(self, value: Optional[pulumi.Input[Mapping[str,
|
1220
|
+
def vars(self, value: Optional[pulumi.Input[Mapping[str, Any]]]):
|
1694
1221
|
pulumi.set(self, "vars", value)
|
1695
1222
|
|
1696
1223
|
|
1697
|
-
if not MYPY:
|
1698
|
-
class JobTaskGroupArgsDict(TypedDict):
|
1699
|
-
count: NotRequired[pulumi.Input[int]]
|
1700
|
-
meta: NotRequired[pulumi.Input[Mapping[str, pulumi.Input[str]]]]
|
1701
|
-
name: NotRequired[pulumi.Input[str]]
|
1702
|
-
tasks: NotRequired[pulumi.Input[Sequence[pulumi.Input['JobTaskGroupTaskArgsDict']]]]
|
1703
|
-
volumes: NotRequired[pulumi.Input[Sequence[pulumi.Input['JobTaskGroupVolumeArgsDict']]]]
|
1704
|
-
elif False:
|
1705
|
-
JobTaskGroupArgsDict: TypeAlias = Mapping[str, Any]
|
1706
|
-
|
1707
1224
|
@pulumi.input_type
|
1708
1225
|
class JobTaskGroupArgs:
|
1709
1226
|
def __init__(__self__, *,
|
1710
1227
|
count: Optional[pulumi.Input[int]] = None,
|
1711
|
-
meta: Optional[pulumi.Input[Mapping[str,
|
1228
|
+
meta: Optional[pulumi.Input[Mapping[str, Any]]] = None,
|
1712
1229
|
name: Optional[pulumi.Input[str]] = None,
|
1713
1230
|
tasks: Optional[pulumi.Input[Sequence[pulumi.Input['JobTaskGroupTaskArgs']]]] = None,
|
1714
1231
|
volumes: Optional[pulumi.Input[Sequence[pulumi.Input['JobTaskGroupVolumeArgs']]]] = None):
|
@@ -1734,11 +1251,11 @@ class JobTaskGroupArgs:
|
|
1734
1251
|
|
1735
1252
|
@property
|
1736
1253
|
@pulumi.getter
|
1737
|
-
def meta(self) -> Optional[pulumi.Input[Mapping[str,
|
1254
|
+
def meta(self) -> Optional[pulumi.Input[Mapping[str, Any]]]:
|
1738
1255
|
return pulumi.get(self, "meta")
|
1739
1256
|
|
1740
1257
|
@meta.setter
|
1741
|
-
def meta(self, value: Optional[pulumi.Input[Mapping[str,
|
1258
|
+
def meta(self, value: Optional[pulumi.Input[Mapping[str, Any]]]):
|
1742
1259
|
pulumi.set(self, "meta", value)
|
1743
1260
|
|
1744
1261
|
@property
|
@@ -1769,20 +1286,11 @@ class JobTaskGroupArgs:
|
|
1769
1286
|
pulumi.set(self, "volumes", value)
|
1770
1287
|
|
1771
1288
|
|
1772
|
-
if not MYPY:
|
1773
|
-
class JobTaskGroupTaskArgsDict(TypedDict):
|
1774
|
-
driver: NotRequired[pulumi.Input[str]]
|
1775
|
-
meta: NotRequired[pulumi.Input[Mapping[str, pulumi.Input[str]]]]
|
1776
|
-
name: NotRequired[pulumi.Input[str]]
|
1777
|
-
volume_mounts: NotRequired[pulumi.Input[Sequence[pulumi.Input['JobTaskGroupTaskVolumeMountArgsDict']]]]
|
1778
|
-
elif False:
|
1779
|
-
JobTaskGroupTaskArgsDict: TypeAlias = Mapping[str, Any]
|
1780
|
-
|
1781
1289
|
@pulumi.input_type
|
1782
1290
|
class JobTaskGroupTaskArgs:
|
1783
1291
|
def __init__(__self__, *,
|
1784
1292
|
driver: Optional[pulumi.Input[str]] = None,
|
1785
|
-
meta: Optional[pulumi.Input[Mapping[str,
|
1293
|
+
meta: Optional[pulumi.Input[Mapping[str, Any]]] = None,
|
1786
1294
|
name: Optional[pulumi.Input[str]] = None,
|
1787
1295
|
volume_mounts: Optional[pulumi.Input[Sequence[pulumi.Input['JobTaskGroupTaskVolumeMountArgs']]]] = None):
|
1788
1296
|
if driver is not None:
|
@@ -1805,11 +1313,11 @@ class JobTaskGroupTaskArgs:
|
|
1805
1313
|
|
1806
1314
|
@property
|
1807
1315
|
@pulumi.getter
|
1808
|
-
def meta(self) -> Optional[pulumi.Input[Mapping[str,
|
1316
|
+
def meta(self) -> Optional[pulumi.Input[Mapping[str, Any]]]:
|
1809
1317
|
return pulumi.get(self, "meta")
|
1810
1318
|
|
1811
1319
|
@meta.setter
|
1812
|
-
def meta(self, value: Optional[pulumi.Input[Mapping[str,
|
1320
|
+
def meta(self, value: Optional[pulumi.Input[Mapping[str, Any]]]):
|
1813
1321
|
pulumi.set(self, "meta", value)
|
1814
1322
|
|
1815
1323
|
@property
|
@@ -1831,14 +1339,6 @@ class JobTaskGroupTaskArgs:
|
|
1831
1339
|
pulumi.set(self, "volume_mounts", value)
|
1832
1340
|
|
1833
1341
|
|
1834
|
-
if not MYPY:
|
1835
|
-
class JobTaskGroupTaskVolumeMountArgsDict(TypedDict):
|
1836
|
-
destination: NotRequired[pulumi.Input[str]]
|
1837
|
-
read_only: NotRequired[pulumi.Input[bool]]
|
1838
|
-
volume: NotRequired[pulumi.Input[str]]
|
1839
|
-
elif False:
|
1840
|
-
JobTaskGroupTaskVolumeMountArgsDict: TypeAlias = Mapping[str, Any]
|
1841
|
-
|
1842
1342
|
@pulumi.input_type
|
1843
1343
|
class JobTaskGroupTaskVolumeMountArgs:
|
1844
1344
|
def __init__(__self__, *,
|
@@ -1880,15 +1380,6 @@ class JobTaskGroupTaskVolumeMountArgs:
|
|
1880
1380
|
pulumi.set(self, "volume", value)
|
1881
1381
|
|
1882
1382
|
|
1883
|
-
if not MYPY:
|
1884
|
-
class JobTaskGroupVolumeArgsDict(TypedDict):
|
1885
|
-
name: NotRequired[pulumi.Input[str]]
|
1886
|
-
read_only: NotRequired[pulumi.Input[bool]]
|
1887
|
-
source: NotRequired[pulumi.Input[str]]
|
1888
|
-
type: NotRequired[pulumi.Input[str]]
|
1889
|
-
elif False:
|
1890
|
-
JobTaskGroupVolumeArgsDict: TypeAlias = Mapping[str, Any]
|
1891
|
-
|
1892
1383
|
@pulumi.input_type
|
1893
1384
|
class JobTaskGroupVolumeArgs:
|
1894
1385
|
def __init__(__self__, *,
|
@@ -1942,19 +1433,6 @@ class JobTaskGroupVolumeArgs:
|
|
1942
1433
|
pulumi.set(self, "type", value)
|
1943
1434
|
|
1944
1435
|
|
1945
|
-
if not MYPY:
|
1946
|
-
class NamespaceCapabilitiesArgsDict(TypedDict):
|
1947
|
-
disabled_task_drivers: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
|
1948
|
-
"""
|
1949
|
-
`([]string: <optional>)` - Task drivers disabled for the namespace.
|
1950
|
-
"""
|
1951
|
-
enabled_task_drivers: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
|
1952
|
-
"""
|
1953
|
-
`([]string: <optional>)` - Task drivers enabled for the namespace.
|
1954
|
-
"""
|
1955
|
-
elif False:
|
1956
|
-
NamespaceCapabilitiesArgsDict: TypeAlias = Mapping[str, Any]
|
1957
|
-
|
1958
1436
|
@pulumi.input_type
|
1959
1437
|
class NamespaceCapabilitiesArgs:
|
1960
1438
|
def __init__(__self__, *,
|
@@ -1994,23 +1472,6 @@ class NamespaceCapabilitiesArgs:
|
|
1994
1472
|
pulumi.set(self, "enabled_task_drivers", value)
|
1995
1473
|
|
1996
1474
|
|
1997
|
-
if not MYPY:
|
1998
|
-
class NamespaceNodePoolConfigArgsDict(TypedDict):
|
1999
|
-
alloweds: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
|
2000
|
-
"""
|
2001
|
-
`([]string: <optional>)` - The list of node pools that are allowed to be used in this namespace.
|
2002
|
-
"""
|
2003
|
-
default: NotRequired[pulumi.Input[str]]
|
2004
|
-
"""
|
2005
|
-
`(string: <optional>)` - The default node pool for jobs that don't define one.
|
2006
|
-
"""
|
2007
|
-
denieds: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
|
2008
|
-
"""
|
2009
|
-
`([]string: <optional>)` - The list of node pools that are not allowed to be used in this namespace.
|
2010
|
-
"""
|
2011
|
-
elif False:
|
2012
|
-
NamespaceNodePoolConfigArgsDict: TypeAlias = Mapping[str, Any]
|
2013
|
-
|
2014
1475
|
@pulumi.input_type
|
2015
1476
|
class NamespaceNodePoolConfigArgs:
|
2016
1477
|
def __init__(__self__, *,
|
@@ -2066,28 +1527,6 @@ class NamespaceNodePoolConfigArgs:
|
|
2066
1527
|
pulumi.set(self, "denieds", value)
|
2067
1528
|
|
2068
1529
|
|
2069
|
-
if not MYPY:
|
2070
|
-
class NodePoolSchedulerConfigArgsDict(TypedDict):
|
2071
|
-
memory_oversubscription: NotRequired[pulumi.Input[str]]
|
2072
|
-
"""
|
2073
|
-
`(string)` - Whether or not memory
|
2074
|
-
oversubscription is enabled in the node pool. Possible values are
|
2075
|
-
`"enabled"` or `"disabled"`. If not defined the global cluster
|
2076
|
-
configuration is used.
|
2077
|
-
|
2078
|
-
> This option differs from Nomad, where it's represented as a boolean, to
|
2079
|
-
allow distinguishing between memory oversubscription being disabled in the
|
2080
|
-
node pool and this property not being set.
|
2081
|
-
"""
|
2082
|
-
scheduler_algorithm: NotRequired[pulumi.Input[str]]
|
2083
|
-
"""
|
2084
|
-
`(string)` - The scheduler algorithm used in the node
|
2085
|
-
pool. Possible values are `binpack` or `spread`. If not defined the global
|
2086
|
-
cluster configuration is used.
|
2087
|
-
"""
|
2088
|
-
elif False:
|
2089
|
-
NodePoolSchedulerConfigArgsDict: TypeAlias = Mapping[str, Any]
|
2090
|
-
|
2091
1530
|
@pulumi.input_type
|
2092
1531
|
class NodePoolSchedulerConfigArgs:
|
2093
1532
|
def __init__(__self__, *,
|
@@ -2145,19 +1584,6 @@ class NodePoolSchedulerConfigArgs:
|
|
2145
1584
|
pulumi.set(self, "scheduler_algorithm", value)
|
2146
1585
|
|
2147
1586
|
|
2148
|
-
if not MYPY:
|
2149
|
-
class ProviderHeaderArgsDict(TypedDict):
|
2150
|
-
name: pulumi.Input[str]
|
2151
|
-
"""
|
2152
|
-
The header name
|
2153
|
-
"""
|
2154
|
-
value: pulumi.Input[str]
|
2155
|
-
"""
|
2156
|
-
The header value
|
2157
|
-
"""
|
2158
|
-
elif False:
|
2159
|
-
ProviderHeaderArgsDict: TypeAlias = Mapping[str, Any]
|
2160
|
-
|
2161
1587
|
@pulumi.input_type
|
2162
1588
|
class ProviderHeaderArgs:
|
2163
1589
|
def __init__(__self__, *,
|
@@ -2195,21 +1621,6 @@ class ProviderHeaderArgs:
|
|
2195
1621
|
pulumi.set(self, "value", value)
|
2196
1622
|
|
2197
1623
|
|
2198
|
-
if not MYPY:
|
2199
|
-
class QuoteSpecificationLimitArgsDict(TypedDict):
|
2200
|
-
region: pulumi.Input[str]
|
2201
|
-
"""
|
2202
|
-
`(string: <required>)` - The region these limits should apply to.
|
2203
|
-
"""
|
2204
|
-
region_limit: pulumi.Input['QuoteSpecificationLimitRegionLimitArgsDict']
|
2205
|
-
"""
|
2206
|
-
`(block: <required>)` - The limits to enforce. This block
|
2207
|
-
may only be specified once in the `limits` block. Its structure is
|
2208
|
-
documented below.
|
2209
|
-
"""
|
2210
|
-
elif False:
|
2211
|
-
QuoteSpecificationLimitArgsDict: TypeAlias = Mapping[str, Any]
|
2212
|
-
|
2213
1624
|
@pulumi.input_type
|
2214
1625
|
class QuoteSpecificationLimitArgs:
|
2215
1626
|
def __init__(__self__, *,
|
@@ -2251,22 +1662,6 @@ class QuoteSpecificationLimitArgs:
|
|
2251
1662
|
pulumi.set(self, "region_limit", value)
|
2252
1663
|
|
2253
1664
|
|
2254
|
-
if not MYPY:
|
2255
|
-
class QuoteSpecificationLimitRegionLimitArgsDict(TypedDict):
|
2256
|
-
cpu: NotRequired[pulumi.Input[int]]
|
2257
|
-
"""
|
2258
|
-
`(int: 0)` - The amount of CPU to limit allocations to. A value of zero
|
2259
|
-
is treated as unlimited, and a negative value is treated as fully disallowed.
|
2260
|
-
"""
|
2261
|
-
memory_mb: NotRequired[pulumi.Input[int]]
|
2262
|
-
"""
|
2263
|
-
`(int: 0)` - The amount of memory (in megabytes) to limit
|
2264
|
-
allocations to. A value of zero is treated as unlimited, and a negative value
|
2265
|
-
is treated as fully disallowed.
|
2266
|
-
"""
|
2267
|
-
elif False:
|
2268
|
-
QuoteSpecificationLimitRegionLimitArgsDict: TypeAlias = Mapping[str, Any]
|
2269
|
-
|
2270
1665
|
@pulumi.input_type
|
2271
1666
|
class QuoteSpecificationLimitRegionLimitArgs:
|
2272
1667
|
def __init__(__self__, *,
|
@@ -2312,26 +1707,6 @@ class QuoteSpecificationLimitRegionLimitArgs:
|
|
2312
1707
|
pulumi.set(self, "memory_mb", value)
|
2313
1708
|
|
2314
1709
|
|
2315
|
-
if not MYPY:
|
2316
|
-
class VolumeCapabilityArgsDict(TypedDict):
|
2317
|
-
access_mode: pulumi.Input[str]
|
2318
|
-
"""
|
2319
|
-
`(string: <required>)` - Defines whether a volume should be available concurrently. Possible values are:
|
2320
|
-
- `single-node-reader-only`
|
2321
|
-
- `single-node-writer`
|
2322
|
-
- `multi-node-reader-only`
|
2323
|
-
- `multi-node-single-writer`
|
2324
|
-
- `multi-node-multi-writer`
|
2325
|
-
"""
|
2326
|
-
attachment_mode: pulumi.Input[str]
|
2327
|
-
"""
|
2328
|
-
`(string: <required>)` - The storage API that will be used by the volume. Possible values are:
|
2329
|
-
- `block-device`
|
2330
|
-
- `file-system`
|
2331
|
-
"""
|
2332
|
-
elif False:
|
2333
|
-
VolumeCapabilityArgsDict: TypeAlias = Mapping[str, Any]
|
2334
|
-
|
2335
1710
|
@pulumi.input_type
|
2336
1711
|
class VolumeCapabilityArgs:
|
2337
1712
|
def __init__(__self__, *,
|
@@ -2383,19 +1758,6 @@ class VolumeCapabilityArgs:
|
|
2383
1758
|
pulumi.set(self, "attachment_mode", value)
|
2384
1759
|
|
2385
1760
|
|
2386
|
-
if not MYPY:
|
2387
|
-
class VolumeMountOptionsArgsDict(TypedDict):
|
2388
|
-
fs_type: NotRequired[pulumi.Input[str]]
|
2389
|
-
"""
|
2390
|
-
`(string: <optional>)` - The file system type.
|
2391
|
-
"""
|
2392
|
-
mount_flags: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
|
2393
|
-
"""
|
2394
|
-
`([]string: <optional>)` - The flags passed to `mount`.
|
2395
|
-
"""
|
2396
|
-
elif False:
|
2397
|
-
VolumeMountOptionsArgsDict: TypeAlias = Mapping[str, Any]
|
2398
|
-
|
2399
1761
|
@pulumi.input_type
|
2400
1762
|
class VolumeMountOptionsArgs:
|
2401
1763
|
def __init__(__self__, *,
|
@@ -2435,40 +1797,16 @@ class VolumeMountOptionsArgs:
|
|
2435
1797
|
pulumi.set(self, "mount_flags", value)
|
2436
1798
|
|
2437
1799
|
|
2438
|
-
if not MYPY:
|
2439
|
-
class VolumeTopologyArgsDict(TypedDict):
|
2440
|
-
segments: NotRequired[pulumi.Input[Mapping[str, pulumi.Input[str]]]]
|
2441
|
-
"""
|
2442
|
-
`(map[string]string)` - Define the attributes for the topology request.
|
2443
|
-
|
2444
|
-
In addition to the above arguments, the following attributes are exported and
|
2445
|
-
can be referenced:
|
2446
|
-
"""
|
2447
|
-
elif False:
|
2448
|
-
VolumeTopologyArgsDict: TypeAlias = Mapping[str, Any]
|
2449
|
-
|
2450
1800
|
@pulumi.input_type
|
2451
1801
|
class VolumeTopologyArgs:
|
2452
1802
|
def __init__(__self__, *,
|
2453
1803
|
segments: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None):
|
2454
|
-
"""
|
2455
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] segments: `(map[string]string)` - Define the attributes for the topology request.
|
2456
|
-
|
2457
|
-
In addition to the above arguments, the following attributes are exported and
|
2458
|
-
can be referenced:
|
2459
|
-
"""
|
2460
1804
|
if segments is not None:
|
2461
1805
|
pulumi.set(__self__, "segments", segments)
|
2462
1806
|
|
2463
1807
|
@property
|
2464
1808
|
@pulumi.getter
|
2465
1809
|
def segments(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
2466
|
-
"""
|
2467
|
-
`(map[string]string)` - Define the attributes for the topology request.
|
2468
|
-
|
2469
|
-
In addition to the above arguments, the following attributes are exported and
|
2470
|
-
can be referenced:
|
2471
|
-
"""
|
2472
1810
|
return pulumi.get(self, "segments")
|
2473
1811
|
|
2474
1812
|
@segments.setter
|
@@ -2476,15 +1814,6 @@ class VolumeTopologyArgs:
|
|
2476
1814
|
pulumi.set(self, "segments", value)
|
2477
1815
|
|
2478
1816
|
|
2479
|
-
if not MYPY:
|
2480
|
-
class VolumeTopologyRequestArgsDict(TypedDict):
|
2481
|
-
required: NotRequired[pulumi.Input['VolumeTopologyRequestRequiredArgsDict']]
|
2482
|
-
"""
|
2483
|
-
`(``Topology``: <optional>)` - Required topologies indicate that the volume must be created in a location accessible from all the listed topologies.
|
2484
|
-
"""
|
2485
|
-
elif False:
|
2486
|
-
VolumeTopologyRequestArgsDict: TypeAlias = Mapping[str, Any]
|
2487
|
-
|
2488
1817
|
@pulumi.input_type
|
2489
1818
|
class VolumeTopologyRequestArgs:
|
2490
1819
|
def __init__(__self__, *,
|
@@ -2508,15 +1837,6 @@ class VolumeTopologyRequestArgs:
|
|
2508
1837
|
pulumi.set(self, "required", value)
|
2509
1838
|
|
2510
1839
|
|
2511
|
-
if not MYPY:
|
2512
|
-
class VolumeTopologyRequestRequiredArgsDict(TypedDict):
|
2513
|
-
topologies: pulumi.Input[Sequence[pulumi.Input['VolumeTopologyRequestRequiredTopologyArgsDict']]]
|
2514
|
-
"""
|
2515
|
-
Defines the location for the volume.
|
2516
|
-
"""
|
2517
|
-
elif False:
|
2518
|
-
VolumeTopologyRequestRequiredArgsDict: TypeAlias = Mapping[str, Any]
|
2519
|
-
|
2520
1840
|
@pulumi.input_type
|
2521
1841
|
class VolumeTopologyRequestRequiredArgs:
|
2522
1842
|
def __init__(__self__, *,
|
@@ -2539,15 +1859,6 @@ class VolumeTopologyRequestRequiredArgs:
|
|
2539
1859
|
pulumi.set(self, "topologies", value)
|
2540
1860
|
|
2541
1861
|
|
2542
|
-
if not MYPY:
|
2543
|
-
class VolumeTopologyRequestRequiredTopologyArgsDict(TypedDict):
|
2544
|
-
segments: pulumi.Input[Mapping[str, pulumi.Input[str]]]
|
2545
|
-
"""
|
2546
|
-
Define attributes for the topology request.
|
2547
|
-
"""
|
2548
|
-
elif False:
|
2549
|
-
VolumeTopologyRequestRequiredTopologyArgsDict: TypeAlias = Mapping[str, Any]
|
2550
|
-
|
2551
1862
|
@pulumi.input_type
|
2552
1863
|
class VolumeTopologyRequestRequiredTopologyArgs:
|
2553
1864
|
def __init__(__self__, *,
|