pulumi-nomad 2.5.0a1743574125__py3-none-any.whl → 2.5.0a1744265310__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pulumi_nomad/__init__.py +1 -0
- pulumi_nomad/_inputs.py +379 -378
- pulumi_nomad/acl_auth_method.py +85 -84
- pulumi_nomad/acl_binding_rule.py +71 -70
- pulumi_nomad/acl_policy.py +43 -42
- pulumi_nomad/acl_role.py +29 -28
- pulumi_nomad/acl_token.py +99 -98
- pulumi_nomad/config/__init__.py +1 -0
- pulumi_nomad/config/__init__.pyi +1 -0
- pulumi_nomad/config/outputs.py +7 -6
- pulumi_nomad/config/vars.py +1 -0
- pulumi_nomad/csi_volume.py +203 -202
- pulumi_nomad/csi_volume_registration.py +210 -209
- pulumi_nomad/external_volume.py +195 -194
- pulumi_nomad/get_acl_policies.py +7 -6
- pulumi_nomad/get_acl_policy.py +9 -8
- pulumi_nomad/get_acl_role.py +8 -7
- pulumi_nomad/get_acl_roles.py +7 -6
- pulumi_nomad/get_acl_token.py +15 -14
- pulumi_nomad/get_acl_tokens.py +7 -6
- pulumi_nomad/get_allocations.py +17 -16
- pulumi_nomad/get_datacenters.py +13 -12
- pulumi_nomad/get_deployments.py +3 -2
- pulumi_nomad/get_job.py +28 -27
- pulumi_nomad/get_job_parser.py +13 -12
- pulumi_nomad/get_jwks.py +3 -2
- pulumi_nomad/get_namespace.py +10 -9
- pulumi_nomad/get_namespaces.py +3 -2
- pulumi_nomad/get_node_pool.py +9 -8
- pulumi_nomad/get_node_pools.py +12 -11
- pulumi_nomad/get_plugin.py +24 -23
- pulumi_nomad/get_plugins.py +6 -5
- pulumi_nomad/get_regions.py +3 -2
- pulumi_nomad/get_scaling_policies.py +12 -11
- pulumi_nomad/get_scaling_policy.py +12 -11
- pulumi_nomad/get_scheduler_policy.py +5 -4
- pulumi_nomad/get_variable.py +13 -12
- pulumi_nomad/get_volumes.py +23 -22
- pulumi_nomad/job.py +221 -220
- pulumi_nomad/namespace.py +57 -56
- pulumi_nomad/node_pool.py +43 -42
- pulumi_nomad/outputs.py +452 -451
- pulumi_nomad/provider.py +111 -110
- pulumi_nomad/pulumi-plugin.json +1 -1
- pulumi_nomad/quote_specification.py +29 -28
- pulumi_nomad/scheduler_config.py +43 -42
- pulumi_nomad/sentinel_policy.py +71 -70
- pulumi_nomad/variable.py +43 -42
- pulumi_nomad/volume.py +209 -208
- {pulumi_nomad-2.5.0a1743574125.dist-info → pulumi_nomad-2.5.0a1744265310.dist-info}/METADATA +1 -1
- pulumi_nomad-2.5.0a1744265310.dist-info/RECORD +55 -0
- pulumi_nomad-2.5.0a1743574125.dist-info/RECORD +0 -55
- {pulumi_nomad-2.5.0a1743574125.dist-info → pulumi_nomad-2.5.0a1744265310.dist-info}/WHEEL +0 -0
- {pulumi_nomad-2.5.0a1743574125.dist-info → pulumi_nomad-2.5.0a1744265310.dist-info}/top_level.txt +0 -0
pulumi_nomad/acl_token.py
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
4
|
|
5
|
+
import builtins
|
5
6
|
import copy
|
6
7
|
import warnings
|
7
8
|
import sys
|
@@ -21,26 +22,26 @@ __all__ = ['AclTokenArgs', 'AclToken']
|
|
21
22
|
@pulumi.input_type
|
22
23
|
class AclTokenArgs:
|
23
24
|
def __init__(__self__, *,
|
24
|
-
type: pulumi.Input[str],
|
25
|
-
expiration_ttl: Optional[pulumi.Input[str]] = None,
|
26
|
-
global_: Optional[pulumi.Input[bool]] = None,
|
27
|
-
name: Optional[pulumi.Input[str]] = None,
|
28
|
-
policies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
25
|
+
type: pulumi.Input[builtins.str],
|
26
|
+
expiration_ttl: Optional[pulumi.Input[builtins.str]] = None,
|
27
|
+
global_: Optional[pulumi.Input[builtins.bool]] = None,
|
28
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
29
|
+
policies: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
29
30
|
roles: Optional[pulumi.Input[Sequence[pulumi.Input['AclTokenRoleArgs']]]] = None):
|
30
31
|
"""
|
31
32
|
The set of arguments for constructing a AclToken resource.
|
32
|
-
:param pulumi.Input[str] type: `(string: <required>)` - The type of token this is. Use `client`
|
33
|
+
:param pulumi.Input[builtins.str] type: `(string: <required>)` - The type of token this is. Use `client`
|
33
34
|
for tokens that will have policies associated with them. Use `management`
|
34
35
|
for tokens that can perform any action.
|
35
|
-
:param pulumi.Input[str] expiration_ttl: `(string: "")` - Provides a TTL for the token in the form of
|
36
|
+
:param pulumi.Input[builtins.str] expiration_ttl: `(string: "")` - Provides a TTL for the token in the form of
|
36
37
|
a time duration such as `"5m"` or `"1h"`.
|
37
38
|
|
38
39
|
In addition to the above arguments, the following attributes are exported and
|
39
40
|
can be referenced:
|
40
|
-
:param pulumi.Input[bool] global_: `(bool: false)` - Whether the token should be replicated to all
|
41
|
+
:param pulumi.Input[builtins.bool] global_: `(bool: false)` - Whether the token should be replicated to all
|
41
42
|
regions, or if it will only be used in the region it was created in.
|
42
|
-
:param pulumi.Input[str] name: `(string: "")` - A human-friendly name for this token.
|
43
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] policies: `(set: [])` - A set of policy names to associate with this
|
43
|
+
:param pulumi.Input[builtins.str] name: `(string: "")` - A human-friendly name for this token.
|
44
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] policies: `(set: [])` - A set of policy names to associate with this
|
44
45
|
token. Must be set on `client`-type tokens, must not be set on
|
45
46
|
`management`-type tokens. Policies do not need to exist before being
|
46
47
|
used here.
|
@@ -61,7 +62,7 @@ class AclTokenArgs:
|
|
61
62
|
|
62
63
|
@property
|
63
64
|
@pulumi.getter
|
64
|
-
def type(self) -> pulumi.Input[str]:
|
65
|
+
def type(self) -> pulumi.Input[builtins.str]:
|
65
66
|
"""
|
66
67
|
`(string: <required>)` - The type of token this is. Use `client`
|
67
68
|
for tokens that will have policies associated with them. Use `management`
|
@@ -70,12 +71,12 @@ class AclTokenArgs:
|
|
70
71
|
return pulumi.get(self, "type")
|
71
72
|
|
72
73
|
@type.setter
|
73
|
-
def type(self, value: pulumi.Input[str]):
|
74
|
+
def type(self, value: pulumi.Input[builtins.str]):
|
74
75
|
pulumi.set(self, "type", value)
|
75
76
|
|
76
77
|
@property
|
77
78
|
@pulumi.getter(name="expirationTtl")
|
78
|
-
def expiration_ttl(self) -> Optional[pulumi.Input[str]]:
|
79
|
+
def expiration_ttl(self) -> Optional[pulumi.Input[builtins.str]]:
|
79
80
|
"""
|
80
81
|
`(string: "")` - Provides a TTL for the token in the form of
|
81
82
|
a time duration such as `"5m"` or `"1h"`.
|
@@ -86,12 +87,12 @@ class AclTokenArgs:
|
|
86
87
|
return pulumi.get(self, "expiration_ttl")
|
87
88
|
|
88
89
|
@expiration_ttl.setter
|
89
|
-
def expiration_ttl(self, value: Optional[pulumi.Input[str]]):
|
90
|
+
def expiration_ttl(self, value: Optional[pulumi.Input[builtins.str]]):
|
90
91
|
pulumi.set(self, "expiration_ttl", value)
|
91
92
|
|
92
93
|
@property
|
93
94
|
@pulumi.getter(name="global")
|
94
|
-
def global_(self) -> Optional[pulumi.Input[bool]]:
|
95
|
+
def global_(self) -> Optional[pulumi.Input[builtins.bool]]:
|
95
96
|
"""
|
96
97
|
`(bool: false)` - Whether the token should be replicated to all
|
97
98
|
regions, or if it will only be used in the region it was created in.
|
@@ -99,24 +100,24 @@ class AclTokenArgs:
|
|
99
100
|
return pulumi.get(self, "global_")
|
100
101
|
|
101
102
|
@global_.setter
|
102
|
-
def global_(self, value: Optional[pulumi.Input[bool]]):
|
103
|
+
def global_(self, value: Optional[pulumi.Input[builtins.bool]]):
|
103
104
|
pulumi.set(self, "global_", value)
|
104
105
|
|
105
106
|
@property
|
106
107
|
@pulumi.getter
|
107
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
108
|
+
def name(self) -> Optional[pulumi.Input[builtins.str]]:
|
108
109
|
"""
|
109
110
|
`(string: "")` - A human-friendly name for this token.
|
110
111
|
"""
|
111
112
|
return pulumi.get(self, "name")
|
112
113
|
|
113
114
|
@name.setter
|
114
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
115
|
+
def name(self, value: Optional[pulumi.Input[builtins.str]]):
|
115
116
|
pulumi.set(self, "name", value)
|
116
117
|
|
117
118
|
@property
|
118
119
|
@pulumi.getter
|
119
|
-
def policies(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
120
|
+
def policies(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]:
|
120
121
|
"""
|
121
122
|
`(set: [])` - A set of policy names to associate with this
|
122
123
|
token. Must be set on `client`-type tokens, must not be set on
|
@@ -126,7 +127,7 @@ class AclTokenArgs:
|
|
126
127
|
return pulumi.get(self, "policies")
|
127
128
|
|
128
129
|
@policies.setter
|
129
|
-
def policies(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
130
|
+
def policies(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]):
|
130
131
|
pulumi.set(self, "policies", value)
|
131
132
|
|
132
133
|
@property
|
@@ -146,40 +147,40 @@ class AclTokenArgs:
|
|
146
147
|
@pulumi.input_type
|
147
148
|
class _AclTokenState:
|
148
149
|
def __init__(__self__, *,
|
149
|
-
accessor_id: Optional[pulumi.Input[str]] = None,
|
150
|
-
create_time: Optional[pulumi.Input[str]] = None,
|
151
|
-
expiration_time: Optional[pulumi.Input[str]] = None,
|
152
|
-
expiration_ttl: Optional[pulumi.Input[str]] = None,
|
153
|
-
global_: Optional[pulumi.Input[bool]] = None,
|
154
|
-
name: Optional[pulumi.Input[str]] = None,
|
155
|
-
policies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
150
|
+
accessor_id: Optional[pulumi.Input[builtins.str]] = None,
|
151
|
+
create_time: Optional[pulumi.Input[builtins.str]] = None,
|
152
|
+
expiration_time: Optional[pulumi.Input[builtins.str]] = None,
|
153
|
+
expiration_ttl: Optional[pulumi.Input[builtins.str]] = None,
|
154
|
+
global_: Optional[pulumi.Input[builtins.bool]] = None,
|
155
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
156
|
+
policies: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
156
157
|
roles: Optional[pulumi.Input[Sequence[pulumi.Input['AclTokenRoleArgs']]]] = None,
|
157
|
-
secret_id: Optional[pulumi.Input[str]] = None,
|
158
|
-
type: Optional[pulumi.Input[str]] = None):
|
158
|
+
secret_id: Optional[pulumi.Input[builtins.str]] = None,
|
159
|
+
type: Optional[pulumi.Input[builtins.str]] = None):
|
159
160
|
"""
|
160
161
|
Input properties used for looking up and filtering AclToken resources.
|
161
|
-
:param pulumi.Input[str] accessor_id: `(string)` - A non-sensitive identifier for this token that
|
162
|
+
:param pulumi.Input[builtins.str] accessor_id: `(string)` - A non-sensitive identifier for this token that
|
162
163
|
can be logged and shared safely without granting any access to the cluster.
|
163
|
-
:param pulumi.Input[str] create_time: `(string)` - The timestamp the token was created.
|
164
|
-
:param pulumi.Input[str] expiration_time: `(string)` - The timestamp after which the token is
|
164
|
+
:param pulumi.Input[builtins.str] create_time: `(string)` - The timestamp the token was created.
|
165
|
+
:param pulumi.Input[builtins.str] expiration_time: `(string)` - The timestamp after which the token is
|
165
166
|
considered expired and eligible for destruction.
|
166
|
-
:param pulumi.Input[str] expiration_ttl: `(string: "")` - Provides a TTL for the token in the form of
|
167
|
+
:param pulumi.Input[builtins.str] expiration_ttl: `(string: "")` - Provides a TTL for the token in the form of
|
167
168
|
a time duration such as `"5m"` or `"1h"`.
|
168
169
|
|
169
170
|
In addition to the above arguments, the following attributes are exported and
|
170
171
|
can be referenced:
|
171
|
-
:param pulumi.Input[bool] global_: `(bool: false)` - Whether the token should be replicated to all
|
172
|
+
:param pulumi.Input[builtins.bool] global_: `(bool: false)` - Whether the token should be replicated to all
|
172
173
|
regions, or if it will only be used in the region it was created in.
|
173
|
-
:param pulumi.Input[str] name: `(string: "")` - A human-friendly name for this token.
|
174
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] policies: `(set: [])` - A set of policy names to associate with this
|
174
|
+
:param pulumi.Input[builtins.str] name: `(string: "")` - A human-friendly name for this token.
|
175
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] policies: `(set: [])` - A set of policy names to associate with this
|
175
176
|
token. Must be set on `client`-type tokens, must not be set on
|
176
177
|
`management`-type tokens. Policies do not need to exist before being
|
177
178
|
used here.
|
178
179
|
:param pulumi.Input[Sequence[pulumi.Input['AclTokenRoleArgs']]] roles: `(set: [])` - The list of roles attached to the token. Each entry has
|
179
180
|
`name` and `id` attributes. It may be used multiple times.
|
180
|
-
:param pulumi.Input[str] secret_id: `(string)` - The token value itself, which is presented for
|
181
|
+
:param pulumi.Input[builtins.str] secret_id: `(string)` - The token value itself, which is presented for
|
181
182
|
access to the cluster.
|
182
|
-
:param pulumi.Input[str] type: `(string: <required>)` - The type of token this is. Use `client`
|
183
|
+
:param pulumi.Input[builtins.str] type: `(string: <required>)` - The type of token this is. Use `client`
|
183
184
|
for tokens that will have policies associated with them. Use `management`
|
184
185
|
for tokens that can perform any action.
|
185
186
|
"""
|
@@ -206,7 +207,7 @@ class _AclTokenState:
|
|
206
207
|
|
207
208
|
@property
|
208
209
|
@pulumi.getter(name="accessorId")
|
209
|
-
def accessor_id(self) -> Optional[pulumi.Input[str]]:
|
210
|
+
def accessor_id(self) -> Optional[pulumi.Input[builtins.str]]:
|
210
211
|
"""
|
211
212
|
`(string)` - A non-sensitive identifier for this token that
|
212
213
|
can be logged and shared safely without granting any access to the cluster.
|
@@ -214,24 +215,24 @@ class _AclTokenState:
|
|
214
215
|
return pulumi.get(self, "accessor_id")
|
215
216
|
|
216
217
|
@accessor_id.setter
|
217
|
-
def accessor_id(self, value: Optional[pulumi.Input[str]]):
|
218
|
+
def accessor_id(self, value: Optional[pulumi.Input[builtins.str]]):
|
218
219
|
pulumi.set(self, "accessor_id", value)
|
219
220
|
|
220
221
|
@property
|
221
222
|
@pulumi.getter(name="createTime")
|
222
|
-
def create_time(self) -> Optional[pulumi.Input[str]]:
|
223
|
+
def create_time(self) -> Optional[pulumi.Input[builtins.str]]:
|
223
224
|
"""
|
224
225
|
`(string)` - The timestamp the token was created.
|
225
226
|
"""
|
226
227
|
return pulumi.get(self, "create_time")
|
227
228
|
|
228
229
|
@create_time.setter
|
229
|
-
def create_time(self, value: Optional[pulumi.Input[str]]):
|
230
|
+
def create_time(self, value: Optional[pulumi.Input[builtins.str]]):
|
230
231
|
pulumi.set(self, "create_time", value)
|
231
232
|
|
232
233
|
@property
|
233
234
|
@pulumi.getter(name="expirationTime")
|
234
|
-
def expiration_time(self) -> Optional[pulumi.Input[str]]:
|
235
|
+
def expiration_time(self) -> Optional[pulumi.Input[builtins.str]]:
|
235
236
|
"""
|
236
237
|
`(string)` - The timestamp after which the token is
|
237
238
|
considered expired and eligible for destruction.
|
@@ -239,12 +240,12 @@ class _AclTokenState:
|
|
239
240
|
return pulumi.get(self, "expiration_time")
|
240
241
|
|
241
242
|
@expiration_time.setter
|
242
|
-
def expiration_time(self, value: Optional[pulumi.Input[str]]):
|
243
|
+
def expiration_time(self, value: Optional[pulumi.Input[builtins.str]]):
|
243
244
|
pulumi.set(self, "expiration_time", value)
|
244
245
|
|
245
246
|
@property
|
246
247
|
@pulumi.getter(name="expirationTtl")
|
247
|
-
def expiration_ttl(self) -> Optional[pulumi.Input[str]]:
|
248
|
+
def expiration_ttl(self) -> Optional[pulumi.Input[builtins.str]]:
|
248
249
|
"""
|
249
250
|
`(string: "")` - Provides a TTL for the token in the form of
|
250
251
|
a time duration such as `"5m"` or `"1h"`.
|
@@ -255,12 +256,12 @@ class _AclTokenState:
|
|
255
256
|
return pulumi.get(self, "expiration_ttl")
|
256
257
|
|
257
258
|
@expiration_ttl.setter
|
258
|
-
def expiration_ttl(self, value: Optional[pulumi.Input[str]]):
|
259
|
+
def expiration_ttl(self, value: Optional[pulumi.Input[builtins.str]]):
|
259
260
|
pulumi.set(self, "expiration_ttl", value)
|
260
261
|
|
261
262
|
@property
|
262
263
|
@pulumi.getter(name="global")
|
263
|
-
def global_(self) -> Optional[pulumi.Input[bool]]:
|
264
|
+
def global_(self) -> Optional[pulumi.Input[builtins.bool]]:
|
264
265
|
"""
|
265
266
|
`(bool: false)` - Whether the token should be replicated to all
|
266
267
|
regions, or if it will only be used in the region it was created in.
|
@@ -268,24 +269,24 @@ class _AclTokenState:
|
|
268
269
|
return pulumi.get(self, "global_")
|
269
270
|
|
270
271
|
@global_.setter
|
271
|
-
def global_(self, value: Optional[pulumi.Input[bool]]):
|
272
|
+
def global_(self, value: Optional[pulumi.Input[builtins.bool]]):
|
272
273
|
pulumi.set(self, "global_", value)
|
273
274
|
|
274
275
|
@property
|
275
276
|
@pulumi.getter
|
276
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
277
|
+
def name(self) -> Optional[pulumi.Input[builtins.str]]:
|
277
278
|
"""
|
278
279
|
`(string: "")` - A human-friendly name for this token.
|
279
280
|
"""
|
280
281
|
return pulumi.get(self, "name")
|
281
282
|
|
282
283
|
@name.setter
|
283
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
284
|
+
def name(self, value: Optional[pulumi.Input[builtins.str]]):
|
284
285
|
pulumi.set(self, "name", value)
|
285
286
|
|
286
287
|
@property
|
287
288
|
@pulumi.getter
|
288
|
-
def policies(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
289
|
+
def policies(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]:
|
289
290
|
"""
|
290
291
|
`(set: [])` - A set of policy names to associate with this
|
291
292
|
token. Must be set on `client`-type tokens, must not be set on
|
@@ -295,7 +296,7 @@ class _AclTokenState:
|
|
295
296
|
return pulumi.get(self, "policies")
|
296
297
|
|
297
298
|
@policies.setter
|
298
|
-
def policies(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
299
|
+
def policies(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]):
|
299
300
|
pulumi.set(self, "policies", value)
|
300
301
|
|
301
302
|
@property
|
@@ -313,7 +314,7 @@ class _AclTokenState:
|
|
313
314
|
|
314
315
|
@property
|
315
316
|
@pulumi.getter(name="secretId")
|
316
|
-
def secret_id(self) -> Optional[pulumi.Input[str]]:
|
317
|
+
def secret_id(self) -> Optional[pulumi.Input[builtins.str]]:
|
317
318
|
"""
|
318
319
|
`(string)` - The token value itself, which is presented for
|
319
320
|
access to the cluster.
|
@@ -321,12 +322,12 @@ class _AclTokenState:
|
|
321
322
|
return pulumi.get(self, "secret_id")
|
322
323
|
|
323
324
|
@secret_id.setter
|
324
|
-
def secret_id(self, value: Optional[pulumi.Input[str]]):
|
325
|
+
def secret_id(self, value: Optional[pulumi.Input[builtins.str]]):
|
325
326
|
pulumi.set(self, "secret_id", value)
|
326
327
|
|
327
328
|
@property
|
328
329
|
@pulumi.getter
|
329
|
-
def type(self) -> Optional[pulumi.Input[str]]:
|
330
|
+
def type(self) -> Optional[pulumi.Input[builtins.str]]:
|
330
331
|
"""
|
331
332
|
`(string: <required>)` - The type of token this is. Use `client`
|
332
333
|
for tokens that will have policies associated with them. Use `management`
|
@@ -335,7 +336,7 @@ class _AclTokenState:
|
|
335
336
|
return pulumi.get(self, "type")
|
336
337
|
|
337
338
|
@type.setter
|
338
|
-
def type(self, value: Optional[pulumi.Input[str]]):
|
339
|
+
def type(self, value: Optional[pulumi.Input[builtins.str]]):
|
339
340
|
pulumi.set(self, "type", value)
|
340
341
|
|
341
342
|
|
@@ -344,12 +345,12 @@ class AclToken(pulumi.CustomResource):
|
|
344
345
|
def __init__(__self__,
|
345
346
|
resource_name: str,
|
346
347
|
opts: Optional[pulumi.ResourceOptions] = None,
|
347
|
-
expiration_ttl: Optional[pulumi.Input[str]] = None,
|
348
|
-
global_: Optional[pulumi.Input[bool]] = None,
|
349
|
-
name: Optional[pulumi.Input[str]] = None,
|
350
|
-
policies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
348
|
+
expiration_ttl: Optional[pulumi.Input[builtins.str]] = None,
|
349
|
+
global_: Optional[pulumi.Input[builtins.bool]] = None,
|
350
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
351
|
+
policies: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
351
352
|
roles: Optional[pulumi.Input[Sequence[pulumi.Input[Union['AclTokenRoleArgs', 'AclTokenRoleArgsDict']]]]] = None,
|
352
|
-
type: Optional[pulumi.Input[str]] = None,
|
353
|
+
type: Optional[pulumi.Input[builtins.str]] = None,
|
353
354
|
__props__=None):
|
354
355
|
"""
|
355
356
|
## Example Usage
|
@@ -410,21 +411,21 @@ class AclToken(pulumi.CustomResource):
|
|
410
411
|
|
411
412
|
:param str resource_name: The name of the resource.
|
412
413
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
413
|
-
:param pulumi.Input[str] expiration_ttl: `(string: "")` - Provides a TTL for the token in the form of
|
414
|
+
:param pulumi.Input[builtins.str] expiration_ttl: `(string: "")` - Provides a TTL for the token in the form of
|
414
415
|
a time duration such as `"5m"` or `"1h"`.
|
415
416
|
|
416
417
|
In addition to the above arguments, the following attributes are exported and
|
417
418
|
can be referenced:
|
418
|
-
:param pulumi.Input[bool] global_: `(bool: false)` - Whether the token should be replicated to all
|
419
|
+
:param pulumi.Input[builtins.bool] global_: `(bool: false)` - Whether the token should be replicated to all
|
419
420
|
regions, or if it will only be used in the region it was created in.
|
420
|
-
:param pulumi.Input[str] name: `(string: "")` - A human-friendly name for this token.
|
421
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] policies: `(set: [])` - A set of policy names to associate with this
|
421
|
+
:param pulumi.Input[builtins.str] name: `(string: "")` - A human-friendly name for this token.
|
422
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] policies: `(set: [])` - A set of policy names to associate with this
|
422
423
|
token. Must be set on `client`-type tokens, must not be set on
|
423
424
|
`management`-type tokens. Policies do not need to exist before being
|
424
425
|
used here.
|
425
426
|
:param pulumi.Input[Sequence[pulumi.Input[Union['AclTokenRoleArgs', 'AclTokenRoleArgsDict']]]] roles: `(set: [])` - The list of roles attached to the token. Each entry has
|
426
427
|
`name` and `id` attributes. It may be used multiple times.
|
427
|
-
:param pulumi.Input[str] type: `(string: <required>)` - The type of token this is. Use `client`
|
428
|
+
:param pulumi.Input[builtins.str] type: `(string: <required>)` - The type of token this is. Use `client`
|
428
429
|
for tokens that will have policies associated with them. Use `management`
|
429
430
|
for tokens that can perform any action.
|
430
431
|
"""
|
@@ -506,12 +507,12 @@ class AclToken(pulumi.CustomResource):
|
|
506
507
|
def _internal_init(__self__,
|
507
508
|
resource_name: str,
|
508
509
|
opts: Optional[pulumi.ResourceOptions] = None,
|
509
|
-
expiration_ttl: Optional[pulumi.Input[str]] = None,
|
510
|
-
global_: Optional[pulumi.Input[bool]] = None,
|
511
|
-
name: Optional[pulumi.Input[str]] = None,
|
512
|
-
policies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
510
|
+
expiration_ttl: Optional[pulumi.Input[builtins.str]] = None,
|
511
|
+
global_: Optional[pulumi.Input[builtins.bool]] = None,
|
512
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
513
|
+
policies: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
513
514
|
roles: Optional[pulumi.Input[Sequence[pulumi.Input[Union['AclTokenRoleArgs', 'AclTokenRoleArgsDict']]]]] = None,
|
514
|
-
type: Optional[pulumi.Input[str]] = None,
|
515
|
+
type: Optional[pulumi.Input[builtins.str]] = None,
|
515
516
|
__props__=None):
|
516
517
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
517
518
|
if not isinstance(opts, pulumi.ResourceOptions):
|
@@ -545,16 +546,16 @@ class AclToken(pulumi.CustomResource):
|
|
545
546
|
def get(resource_name: str,
|
546
547
|
id: pulumi.Input[str],
|
547
548
|
opts: Optional[pulumi.ResourceOptions] = None,
|
548
|
-
accessor_id: Optional[pulumi.Input[str]] = None,
|
549
|
-
create_time: Optional[pulumi.Input[str]] = None,
|
550
|
-
expiration_time: Optional[pulumi.Input[str]] = None,
|
551
|
-
expiration_ttl: Optional[pulumi.Input[str]] = None,
|
552
|
-
global_: Optional[pulumi.Input[bool]] = None,
|
553
|
-
name: Optional[pulumi.Input[str]] = None,
|
554
|
-
policies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
549
|
+
accessor_id: Optional[pulumi.Input[builtins.str]] = None,
|
550
|
+
create_time: Optional[pulumi.Input[builtins.str]] = None,
|
551
|
+
expiration_time: Optional[pulumi.Input[builtins.str]] = None,
|
552
|
+
expiration_ttl: Optional[pulumi.Input[builtins.str]] = None,
|
553
|
+
global_: Optional[pulumi.Input[builtins.bool]] = None,
|
554
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
555
|
+
policies: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
555
556
|
roles: Optional[pulumi.Input[Sequence[pulumi.Input[Union['AclTokenRoleArgs', 'AclTokenRoleArgsDict']]]]] = None,
|
556
|
-
secret_id: Optional[pulumi.Input[str]] = None,
|
557
|
-
type: Optional[pulumi.Input[str]] = None) -> 'AclToken':
|
557
|
+
secret_id: Optional[pulumi.Input[builtins.str]] = None,
|
558
|
+
type: Optional[pulumi.Input[builtins.str]] = None) -> 'AclToken':
|
558
559
|
"""
|
559
560
|
Get an existing AclToken resource's state with the given name, id, and optional extra
|
560
561
|
properties used to qualify the lookup.
|
@@ -562,28 +563,28 @@ class AclToken(pulumi.CustomResource):
|
|
562
563
|
:param str resource_name: The unique name of the resulting resource.
|
563
564
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
564
565
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
565
|
-
:param pulumi.Input[str] accessor_id: `(string)` - A non-sensitive identifier for this token that
|
566
|
+
:param pulumi.Input[builtins.str] accessor_id: `(string)` - A non-sensitive identifier for this token that
|
566
567
|
can be logged and shared safely without granting any access to the cluster.
|
567
|
-
:param pulumi.Input[str] create_time: `(string)` - The timestamp the token was created.
|
568
|
-
:param pulumi.Input[str] expiration_time: `(string)` - The timestamp after which the token is
|
568
|
+
:param pulumi.Input[builtins.str] create_time: `(string)` - The timestamp the token was created.
|
569
|
+
:param pulumi.Input[builtins.str] expiration_time: `(string)` - The timestamp after which the token is
|
569
570
|
considered expired and eligible for destruction.
|
570
|
-
:param pulumi.Input[str] expiration_ttl: `(string: "")` - Provides a TTL for the token in the form of
|
571
|
+
:param pulumi.Input[builtins.str] expiration_ttl: `(string: "")` - Provides a TTL for the token in the form of
|
571
572
|
a time duration such as `"5m"` or `"1h"`.
|
572
573
|
|
573
574
|
In addition to the above arguments, the following attributes are exported and
|
574
575
|
can be referenced:
|
575
|
-
:param pulumi.Input[bool] global_: `(bool: false)` - Whether the token should be replicated to all
|
576
|
+
:param pulumi.Input[builtins.bool] global_: `(bool: false)` - Whether the token should be replicated to all
|
576
577
|
regions, or if it will only be used in the region it was created in.
|
577
|
-
:param pulumi.Input[str] name: `(string: "")` - A human-friendly name for this token.
|
578
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] policies: `(set: [])` - A set of policy names to associate with this
|
578
|
+
:param pulumi.Input[builtins.str] name: `(string: "")` - A human-friendly name for this token.
|
579
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] policies: `(set: [])` - A set of policy names to associate with this
|
579
580
|
token. Must be set on `client`-type tokens, must not be set on
|
580
581
|
`management`-type tokens. Policies do not need to exist before being
|
581
582
|
used here.
|
582
583
|
:param pulumi.Input[Sequence[pulumi.Input[Union['AclTokenRoleArgs', 'AclTokenRoleArgsDict']]]] roles: `(set: [])` - The list of roles attached to the token. Each entry has
|
583
584
|
`name` and `id` attributes. It may be used multiple times.
|
584
|
-
:param pulumi.Input[str] secret_id: `(string)` - The token value itself, which is presented for
|
585
|
+
:param pulumi.Input[builtins.str] secret_id: `(string)` - The token value itself, which is presented for
|
585
586
|
access to the cluster.
|
586
|
-
:param pulumi.Input[str] type: `(string: <required>)` - The type of token this is. Use `client`
|
587
|
+
:param pulumi.Input[builtins.str] type: `(string: <required>)` - The type of token this is. Use `client`
|
587
588
|
for tokens that will have policies associated with them. Use `management`
|
588
589
|
for tokens that can perform any action.
|
589
590
|
"""
|
@@ -605,7 +606,7 @@ class AclToken(pulumi.CustomResource):
|
|
605
606
|
|
606
607
|
@property
|
607
608
|
@pulumi.getter(name="accessorId")
|
608
|
-
def accessor_id(self) -> pulumi.Output[str]:
|
609
|
+
def accessor_id(self) -> pulumi.Output[builtins.str]:
|
609
610
|
"""
|
610
611
|
`(string)` - A non-sensitive identifier for this token that
|
611
612
|
can be logged and shared safely without granting any access to the cluster.
|
@@ -614,7 +615,7 @@ class AclToken(pulumi.CustomResource):
|
|
614
615
|
|
615
616
|
@property
|
616
617
|
@pulumi.getter(name="createTime")
|
617
|
-
def create_time(self) -> pulumi.Output[str]:
|
618
|
+
def create_time(self) -> pulumi.Output[builtins.str]:
|
618
619
|
"""
|
619
620
|
`(string)` - The timestamp the token was created.
|
620
621
|
"""
|
@@ -622,7 +623,7 @@ class AclToken(pulumi.CustomResource):
|
|
622
623
|
|
623
624
|
@property
|
624
625
|
@pulumi.getter(name="expirationTime")
|
625
|
-
def expiration_time(self) -> pulumi.Output[str]:
|
626
|
+
def expiration_time(self) -> pulumi.Output[builtins.str]:
|
626
627
|
"""
|
627
628
|
`(string)` - The timestamp after which the token is
|
628
629
|
considered expired and eligible for destruction.
|
@@ -631,7 +632,7 @@ class AclToken(pulumi.CustomResource):
|
|
631
632
|
|
632
633
|
@property
|
633
634
|
@pulumi.getter(name="expirationTtl")
|
634
|
-
def expiration_ttl(self) -> pulumi.Output[Optional[str]]:
|
635
|
+
def expiration_ttl(self) -> pulumi.Output[Optional[builtins.str]]:
|
635
636
|
"""
|
636
637
|
`(string: "")` - Provides a TTL for the token in the form of
|
637
638
|
a time duration such as `"5m"` or `"1h"`.
|
@@ -643,7 +644,7 @@ class AclToken(pulumi.CustomResource):
|
|
643
644
|
|
644
645
|
@property
|
645
646
|
@pulumi.getter(name="global")
|
646
|
-
def global_(self) -> pulumi.Output[Optional[bool]]:
|
647
|
+
def global_(self) -> pulumi.Output[Optional[builtins.bool]]:
|
647
648
|
"""
|
648
649
|
`(bool: false)` - Whether the token should be replicated to all
|
649
650
|
regions, or if it will only be used in the region it was created in.
|
@@ -652,7 +653,7 @@ class AclToken(pulumi.CustomResource):
|
|
652
653
|
|
653
654
|
@property
|
654
655
|
@pulumi.getter
|
655
|
-
def name(self) -> pulumi.Output[str]:
|
656
|
+
def name(self) -> pulumi.Output[builtins.str]:
|
656
657
|
"""
|
657
658
|
`(string: "")` - A human-friendly name for this token.
|
658
659
|
"""
|
@@ -660,7 +661,7 @@ class AclToken(pulumi.CustomResource):
|
|
660
661
|
|
661
662
|
@property
|
662
663
|
@pulumi.getter
|
663
|
-
def policies(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
664
|
+
def policies(self) -> pulumi.Output[Optional[Sequence[builtins.str]]]:
|
664
665
|
"""
|
665
666
|
`(set: [])` - A set of policy names to associate with this
|
666
667
|
token. Must be set on `client`-type tokens, must not be set on
|
@@ -680,7 +681,7 @@ class AclToken(pulumi.CustomResource):
|
|
680
681
|
|
681
682
|
@property
|
682
683
|
@pulumi.getter(name="secretId")
|
683
|
-
def secret_id(self) -> pulumi.Output[str]:
|
684
|
+
def secret_id(self) -> pulumi.Output[builtins.str]:
|
684
685
|
"""
|
685
686
|
`(string)` - The token value itself, which is presented for
|
686
687
|
access to the cluster.
|
@@ -689,7 +690,7 @@ class AclToken(pulumi.CustomResource):
|
|
689
690
|
|
690
691
|
@property
|
691
692
|
@pulumi.getter
|
692
|
-
def type(self) -> pulumi.Output[str]:
|
693
|
+
def type(self) -> pulumi.Output[builtins.str]:
|
693
694
|
"""
|
694
695
|
`(string: <required>)` - The type of token this is. Use `client`
|
695
696
|
for tokens that will have policies associated with them. Use `management`
|
pulumi_nomad/config/__init__.py
CHANGED
pulumi_nomad/config/__init__.pyi
CHANGED
pulumi_nomad/config/outputs.py
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
4
|
|
5
|
+
import builtins
|
5
6
|
import copy
|
6
7
|
import warnings
|
7
8
|
import sys
|
@@ -21,18 +22,18 @@ __all__ = [
|
|
21
22
|
@pulumi.output_type
|
22
23
|
class Headers(dict):
|
23
24
|
def __init__(__self__, *,
|
24
|
-
name: str,
|
25
|
-
value: str):
|
25
|
+
name: builtins.str,
|
26
|
+
value: builtins.str):
|
26
27
|
"""
|
27
|
-
:param str name: The header name
|
28
|
-
:param str value: The header value
|
28
|
+
:param builtins.str name: The header name
|
29
|
+
:param builtins.str value: The header value
|
29
30
|
"""
|
30
31
|
pulumi.set(__self__, "name", name)
|
31
32
|
pulumi.set(__self__, "value", value)
|
32
33
|
|
33
34
|
@property
|
34
35
|
@pulumi.getter
|
35
|
-
def name(self) -> str:
|
36
|
+
def name(self) -> builtins.str:
|
36
37
|
"""
|
37
38
|
The header name
|
38
39
|
"""
|
@@ -40,7 +41,7 @@ class Headers(dict):
|
|
40
41
|
|
41
42
|
@property
|
42
43
|
@pulumi.getter
|
43
|
-
def value(self) -> str:
|
44
|
+
def value(self) -> builtins.str:
|
44
45
|
"""
|
45
46
|
The header value
|
46
47
|
"""
|
pulumi_nomad/config/vars.py
CHANGED