pulumi-nomad 2.4.3__py3-none-any.whl → 2.5.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. pulumi_nomad/__init__.py +20 -0
  2. pulumi_nomad/_inputs.py +1056 -378
  3. pulumi_nomad/acl_auth_method.py +85 -84
  4. pulumi_nomad/acl_binding_rule.py +71 -70
  5. pulumi_nomad/acl_policy.py +57 -49
  6. pulumi_nomad/acl_role.py +29 -28
  7. pulumi_nomad/acl_token.py +99 -98
  8. pulumi_nomad/config/__init__.py +1 -0
  9. pulumi_nomad/config/__init__.pyi +1 -10
  10. pulumi_nomad/config/outputs.py +7 -6
  11. pulumi_nomad/config/vars.py +1 -14
  12. pulumi_nomad/csi_volume.py +231 -202
  13. pulumi_nomad/csi_volume_registration.py +210 -209
  14. pulumi_nomad/dynamic_host_volume.py +1005 -0
  15. pulumi_nomad/dynamic_host_volume_registration.py +740 -0
  16. pulumi_nomad/external_volume.py +195 -194
  17. pulumi_nomad/get_acl_policies.py +7 -6
  18. pulumi_nomad/get_acl_policy.py +9 -8
  19. pulumi_nomad/get_acl_role.py +8 -7
  20. pulumi_nomad/get_acl_roles.py +7 -6
  21. pulumi_nomad/get_acl_token.py +15 -14
  22. pulumi_nomad/get_acl_tokens.py +7 -6
  23. pulumi_nomad/get_allocations.py +17 -16
  24. pulumi_nomad/get_datacenters.py +13 -12
  25. pulumi_nomad/get_deployments.py +3 -2
  26. pulumi_nomad/get_dynamic_host_volume.py +353 -0
  27. pulumi_nomad/get_job.py +28 -27
  28. pulumi_nomad/get_job_parser.py +13 -12
  29. pulumi_nomad/get_jwks.py +3 -2
  30. pulumi_nomad/get_namespace.py +10 -9
  31. pulumi_nomad/get_namespaces.py +3 -2
  32. pulumi_nomad/get_node_pool.py +9 -8
  33. pulumi_nomad/get_node_pools.py +12 -11
  34. pulumi_nomad/get_plugin.py +24 -23
  35. pulumi_nomad/get_plugins.py +6 -5
  36. pulumi_nomad/get_regions.py +3 -2
  37. pulumi_nomad/get_scaling_policies.py +12 -11
  38. pulumi_nomad/get_scaling_policy.py +12 -11
  39. pulumi_nomad/get_scheduler_policy.py +5 -4
  40. pulumi_nomad/get_variable.py +13 -12
  41. pulumi_nomad/get_volumes.py +23 -22
  42. pulumi_nomad/job.py +193 -302
  43. pulumi_nomad/namespace.py +57 -56
  44. pulumi_nomad/node_pool.py +43 -42
  45. pulumi_nomad/outputs.py +1030 -451
  46. pulumi_nomad/provider.py +95 -152
  47. pulumi_nomad/pulumi-plugin.json +1 -1
  48. pulumi_nomad/quote_specification.py +29 -28
  49. pulumi_nomad/scheduler_config.py +43 -42
  50. pulumi_nomad/sentinel_policy.py +71 -70
  51. pulumi_nomad/variable.py +43 -42
  52. pulumi_nomad/volume.py +209 -208
  53. {pulumi_nomad-2.4.3.dist-info → pulumi_nomad-2.5.0.dist-info}/METADATA +2 -2
  54. pulumi_nomad-2.5.0.dist-info/RECORD +58 -0
  55. {pulumi_nomad-2.4.3.dist-info → pulumi_nomad-2.5.0.dist-info}/WHEEL +1 -1
  56. pulumi_nomad-2.4.3.dist-info/RECORD +0 -55
  57. {pulumi_nomad-2.4.3.dist-info → pulumi_nomad-2.5.0.dist-info}/top_level.txt +0 -0
@@ -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
@@ -19,22 +20,22 @@ __all__ = ['AclBindingRuleArgs', 'AclBindingRule']
19
20
  @pulumi.input_type
20
21
  class AclBindingRuleArgs:
21
22
  def __init__(__self__, *,
22
- auth_method: pulumi.Input[str],
23
- bind_type: pulumi.Input[str],
24
- bind_name: Optional[pulumi.Input[str]] = None,
25
- description: Optional[pulumi.Input[str]] = None,
26
- selector: Optional[pulumi.Input[str]] = None):
23
+ auth_method: pulumi.Input[builtins.str],
24
+ bind_type: pulumi.Input[builtins.str],
25
+ bind_name: Optional[pulumi.Input[builtins.str]] = None,
26
+ description: Optional[pulumi.Input[builtins.str]] = None,
27
+ selector: Optional[pulumi.Input[builtins.str]] = None):
27
28
  """
28
29
  The set of arguments for constructing a AclBindingRule resource.
29
- :param pulumi.Input[str] auth_method: `(string: <required>)` - Name of the auth method for which this
30
+ :param pulumi.Input[builtins.str] auth_method: `(string: <required>)` - Name of the auth method for which this
30
31
  rule applies to.
31
- :param pulumi.Input[str] bind_type: `(string: <required>)` - Adjusts how this binding rule is applied
32
+ :param pulumi.Input[builtins.str] bind_type: `(string: <required>)` - Adjusts how this binding rule is applied
32
33
  at login time. Valid values are `role`, `policy`, and `management`.
33
- :param pulumi.Input[str] bind_name: `(string: <optional>)` - Target of the binding. If `bind_type` is
34
+ :param pulumi.Input[builtins.str] bind_name: `(string: <optional>)` - Target of the binding. If `bind_type` is
34
35
  `role` or `policy` then `bind_name` is required. If `bind_type` is
35
36
  `management` than `bind_name` must not be defined.
36
- :param pulumi.Input[str] description: `(string: "")` - Description for this ACL binding rule.
37
- :param pulumi.Input[str] selector: `(string: "")` - A boolean expression that matches against verified
37
+ :param pulumi.Input[builtins.str] description: `(string: "")` - Description for this ACL binding rule.
38
+ :param pulumi.Input[builtins.str] selector: `(string: "")` - A boolean expression that matches against verified
38
39
  identity attributes returned from the auth method during login.
39
40
  """
40
41
  pulumi.set(__self__, "auth_method", auth_method)
@@ -48,7 +49,7 @@ class AclBindingRuleArgs:
48
49
 
49
50
  @property
50
51
  @pulumi.getter(name="authMethod")
51
- def auth_method(self) -> pulumi.Input[str]:
52
+ def auth_method(self) -> pulumi.Input[builtins.str]:
52
53
  """
53
54
  `(string: <required>)` - Name of the auth method for which this
54
55
  rule applies to.
@@ -56,12 +57,12 @@ class AclBindingRuleArgs:
56
57
  return pulumi.get(self, "auth_method")
57
58
 
58
59
  @auth_method.setter
59
- def auth_method(self, value: pulumi.Input[str]):
60
+ def auth_method(self, value: pulumi.Input[builtins.str]):
60
61
  pulumi.set(self, "auth_method", value)
61
62
 
62
63
  @property
63
64
  @pulumi.getter(name="bindType")
64
- def bind_type(self) -> pulumi.Input[str]:
65
+ def bind_type(self) -> pulumi.Input[builtins.str]:
65
66
  """
66
67
  `(string: <required>)` - Adjusts how this binding rule is applied
67
68
  at login time. Valid values are `role`, `policy`, and `management`.
@@ -69,12 +70,12 @@ class AclBindingRuleArgs:
69
70
  return pulumi.get(self, "bind_type")
70
71
 
71
72
  @bind_type.setter
72
- def bind_type(self, value: pulumi.Input[str]):
73
+ def bind_type(self, value: pulumi.Input[builtins.str]):
73
74
  pulumi.set(self, "bind_type", value)
74
75
 
75
76
  @property
76
77
  @pulumi.getter(name="bindName")
77
- def bind_name(self) -> Optional[pulumi.Input[str]]:
78
+ def bind_name(self) -> Optional[pulumi.Input[builtins.str]]:
78
79
  """
79
80
  `(string: <optional>)` - Target of the binding. If `bind_type` is
80
81
  `role` or `policy` then `bind_name` is required. If `bind_type` is
@@ -83,24 +84,24 @@ class AclBindingRuleArgs:
83
84
  return pulumi.get(self, "bind_name")
84
85
 
85
86
  @bind_name.setter
86
- def bind_name(self, value: Optional[pulumi.Input[str]]):
87
+ def bind_name(self, value: Optional[pulumi.Input[builtins.str]]):
87
88
  pulumi.set(self, "bind_name", value)
88
89
 
89
90
  @property
90
91
  @pulumi.getter
91
- def description(self) -> Optional[pulumi.Input[str]]:
92
+ def description(self) -> Optional[pulumi.Input[builtins.str]]:
92
93
  """
93
94
  `(string: "")` - Description for this ACL binding rule.
94
95
  """
95
96
  return pulumi.get(self, "description")
96
97
 
97
98
  @description.setter
98
- def description(self, value: Optional[pulumi.Input[str]]):
99
+ def description(self, value: Optional[pulumi.Input[builtins.str]]):
99
100
  pulumi.set(self, "description", value)
100
101
 
101
102
  @property
102
103
  @pulumi.getter
103
- def selector(self) -> Optional[pulumi.Input[str]]:
104
+ def selector(self) -> Optional[pulumi.Input[builtins.str]]:
104
105
  """
105
106
  `(string: "")` - A boolean expression that matches against verified
106
107
  identity attributes returned from the auth method during login.
@@ -108,29 +109,29 @@ class AclBindingRuleArgs:
108
109
  return pulumi.get(self, "selector")
109
110
 
110
111
  @selector.setter
111
- def selector(self, value: Optional[pulumi.Input[str]]):
112
+ def selector(self, value: Optional[pulumi.Input[builtins.str]]):
112
113
  pulumi.set(self, "selector", value)
113
114
 
114
115
 
115
116
  @pulumi.input_type
116
117
  class _AclBindingRuleState:
117
118
  def __init__(__self__, *,
118
- auth_method: Optional[pulumi.Input[str]] = None,
119
- bind_name: Optional[pulumi.Input[str]] = None,
120
- bind_type: Optional[pulumi.Input[str]] = None,
121
- description: Optional[pulumi.Input[str]] = None,
122
- selector: Optional[pulumi.Input[str]] = None):
119
+ auth_method: Optional[pulumi.Input[builtins.str]] = None,
120
+ bind_name: Optional[pulumi.Input[builtins.str]] = None,
121
+ bind_type: Optional[pulumi.Input[builtins.str]] = None,
122
+ description: Optional[pulumi.Input[builtins.str]] = None,
123
+ selector: Optional[pulumi.Input[builtins.str]] = None):
123
124
  """
124
125
  Input properties used for looking up and filtering AclBindingRule resources.
125
- :param pulumi.Input[str] auth_method: `(string: <required>)` - Name of the auth method for which this
126
+ :param pulumi.Input[builtins.str] auth_method: `(string: <required>)` - Name of the auth method for which this
126
127
  rule applies to.
127
- :param pulumi.Input[str] bind_name: `(string: <optional>)` - Target of the binding. If `bind_type` is
128
+ :param pulumi.Input[builtins.str] bind_name: `(string: <optional>)` - Target of the binding. If `bind_type` is
128
129
  `role` or `policy` then `bind_name` is required. If `bind_type` is
129
130
  `management` than `bind_name` must not be defined.
130
- :param pulumi.Input[str] bind_type: `(string: <required>)` - Adjusts how this binding rule is applied
131
+ :param pulumi.Input[builtins.str] bind_type: `(string: <required>)` - Adjusts how this binding rule is applied
131
132
  at login time. Valid values are `role`, `policy`, and `management`.
132
- :param pulumi.Input[str] description: `(string: "")` - Description for this ACL binding rule.
133
- :param pulumi.Input[str] selector: `(string: "")` - A boolean expression that matches against verified
133
+ :param pulumi.Input[builtins.str] description: `(string: "")` - Description for this ACL binding rule.
134
+ :param pulumi.Input[builtins.str] selector: `(string: "")` - A boolean expression that matches against verified
134
135
  identity attributes returned from the auth method during login.
135
136
  """
136
137
  if auth_method is not None:
@@ -146,7 +147,7 @@ class _AclBindingRuleState:
146
147
 
147
148
  @property
148
149
  @pulumi.getter(name="authMethod")
149
- def auth_method(self) -> Optional[pulumi.Input[str]]:
150
+ def auth_method(self) -> Optional[pulumi.Input[builtins.str]]:
150
151
  """
151
152
  `(string: <required>)` - Name of the auth method for which this
152
153
  rule applies to.
@@ -154,12 +155,12 @@ class _AclBindingRuleState:
154
155
  return pulumi.get(self, "auth_method")
155
156
 
156
157
  @auth_method.setter
157
- def auth_method(self, value: Optional[pulumi.Input[str]]):
158
+ def auth_method(self, value: Optional[pulumi.Input[builtins.str]]):
158
159
  pulumi.set(self, "auth_method", value)
159
160
 
160
161
  @property
161
162
  @pulumi.getter(name="bindName")
162
- def bind_name(self) -> Optional[pulumi.Input[str]]:
163
+ def bind_name(self) -> Optional[pulumi.Input[builtins.str]]:
163
164
  """
164
165
  `(string: <optional>)` - Target of the binding. If `bind_type` is
165
166
  `role` or `policy` then `bind_name` is required. If `bind_type` is
@@ -168,12 +169,12 @@ class _AclBindingRuleState:
168
169
  return pulumi.get(self, "bind_name")
169
170
 
170
171
  @bind_name.setter
171
- def bind_name(self, value: Optional[pulumi.Input[str]]):
172
+ def bind_name(self, value: Optional[pulumi.Input[builtins.str]]):
172
173
  pulumi.set(self, "bind_name", value)
173
174
 
174
175
  @property
175
176
  @pulumi.getter(name="bindType")
176
- def bind_type(self) -> Optional[pulumi.Input[str]]:
177
+ def bind_type(self) -> Optional[pulumi.Input[builtins.str]]:
177
178
  """
178
179
  `(string: <required>)` - Adjusts how this binding rule is applied
179
180
  at login time. Valid values are `role`, `policy`, and `management`.
@@ -181,24 +182,24 @@ class _AclBindingRuleState:
181
182
  return pulumi.get(self, "bind_type")
182
183
 
183
184
  @bind_type.setter
184
- def bind_type(self, value: Optional[pulumi.Input[str]]):
185
+ def bind_type(self, value: Optional[pulumi.Input[builtins.str]]):
185
186
  pulumi.set(self, "bind_type", value)
186
187
 
187
188
  @property
188
189
  @pulumi.getter
189
- def description(self) -> Optional[pulumi.Input[str]]:
190
+ def description(self) -> Optional[pulumi.Input[builtins.str]]:
190
191
  """
191
192
  `(string: "")` - Description for this ACL binding rule.
192
193
  """
193
194
  return pulumi.get(self, "description")
194
195
 
195
196
  @description.setter
196
- def description(self, value: Optional[pulumi.Input[str]]):
197
+ def description(self, value: Optional[pulumi.Input[builtins.str]]):
197
198
  pulumi.set(self, "description", value)
198
199
 
199
200
  @property
200
201
  @pulumi.getter
201
- def selector(self) -> Optional[pulumi.Input[str]]:
202
+ def selector(self) -> Optional[pulumi.Input[builtins.str]]:
202
203
  """
203
204
  `(string: "")` - A boolean expression that matches against verified
204
205
  identity attributes returned from the auth method during login.
@@ -206,7 +207,7 @@ class _AclBindingRuleState:
206
207
  return pulumi.get(self, "selector")
207
208
 
208
209
  @selector.setter
209
- def selector(self, value: Optional[pulumi.Input[str]]):
210
+ def selector(self, value: Optional[pulumi.Input[builtins.str]]):
210
211
  pulumi.set(self, "selector", value)
211
212
 
212
213
 
@@ -215,25 +216,25 @@ class AclBindingRule(pulumi.CustomResource):
215
216
  def __init__(__self__,
216
217
  resource_name: str,
217
218
  opts: Optional[pulumi.ResourceOptions] = None,
218
- auth_method: Optional[pulumi.Input[str]] = None,
219
- bind_name: Optional[pulumi.Input[str]] = None,
220
- bind_type: Optional[pulumi.Input[str]] = None,
221
- description: Optional[pulumi.Input[str]] = None,
222
- selector: Optional[pulumi.Input[str]] = None,
219
+ auth_method: Optional[pulumi.Input[builtins.str]] = None,
220
+ bind_name: Optional[pulumi.Input[builtins.str]] = None,
221
+ bind_type: Optional[pulumi.Input[builtins.str]] = None,
222
+ description: Optional[pulumi.Input[builtins.str]] = None,
223
+ selector: Optional[pulumi.Input[builtins.str]] = None,
223
224
  __props__=None):
224
225
  """
225
226
  Create a AclBindingRule resource with the given unique name, props, and options.
226
227
  :param str resource_name: The name of the resource.
227
228
  :param pulumi.ResourceOptions opts: Options for the resource.
228
- :param pulumi.Input[str] auth_method: `(string: <required>)` - Name of the auth method for which this
229
+ :param pulumi.Input[builtins.str] auth_method: `(string: <required>)` - Name of the auth method for which this
229
230
  rule applies to.
230
- :param pulumi.Input[str] bind_name: `(string: <optional>)` - Target of the binding. If `bind_type` is
231
+ :param pulumi.Input[builtins.str] bind_name: `(string: <optional>)` - Target of the binding. If `bind_type` is
231
232
  `role` or `policy` then `bind_name` is required. If `bind_type` is
232
233
  `management` than `bind_name` must not be defined.
233
- :param pulumi.Input[str] bind_type: `(string: <required>)` - Adjusts how this binding rule is applied
234
+ :param pulumi.Input[builtins.str] bind_type: `(string: <required>)` - Adjusts how this binding rule is applied
234
235
  at login time. Valid values are `role`, `policy`, and `management`.
235
- :param pulumi.Input[str] description: `(string: "")` - Description for this ACL binding rule.
236
- :param pulumi.Input[str] selector: `(string: "")` - A boolean expression that matches against verified
236
+ :param pulumi.Input[builtins.str] description: `(string: "")` - Description for this ACL binding rule.
237
+ :param pulumi.Input[builtins.str] selector: `(string: "")` - A boolean expression that matches against verified
237
238
  identity attributes returned from the auth method during login.
238
239
  """
239
240
  ...
@@ -259,11 +260,11 @@ class AclBindingRule(pulumi.CustomResource):
259
260
  def _internal_init(__self__,
260
261
  resource_name: str,
261
262
  opts: Optional[pulumi.ResourceOptions] = None,
262
- auth_method: Optional[pulumi.Input[str]] = None,
263
- bind_name: Optional[pulumi.Input[str]] = None,
264
- bind_type: Optional[pulumi.Input[str]] = None,
265
- description: Optional[pulumi.Input[str]] = None,
266
- selector: Optional[pulumi.Input[str]] = None,
263
+ auth_method: Optional[pulumi.Input[builtins.str]] = None,
264
+ bind_name: Optional[pulumi.Input[builtins.str]] = None,
265
+ bind_type: Optional[pulumi.Input[builtins.str]] = None,
266
+ description: Optional[pulumi.Input[builtins.str]] = None,
267
+ selector: Optional[pulumi.Input[builtins.str]] = None,
267
268
  __props__=None):
268
269
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
269
270
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -292,11 +293,11 @@ class AclBindingRule(pulumi.CustomResource):
292
293
  def get(resource_name: str,
293
294
  id: pulumi.Input[str],
294
295
  opts: Optional[pulumi.ResourceOptions] = None,
295
- auth_method: Optional[pulumi.Input[str]] = None,
296
- bind_name: Optional[pulumi.Input[str]] = None,
297
- bind_type: Optional[pulumi.Input[str]] = None,
298
- description: Optional[pulumi.Input[str]] = None,
299
- selector: Optional[pulumi.Input[str]] = None) -> 'AclBindingRule':
296
+ auth_method: Optional[pulumi.Input[builtins.str]] = None,
297
+ bind_name: Optional[pulumi.Input[builtins.str]] = None,
298
+ bind_type: Optional[pulumi.Input[builtins.str]] = None,
299
+ description: Optional[pulumi.Input[builtins.str]] = None,
300
+ selector: Optional[pulumi.Input[builtins.str]] = None) -> 'AclBindingRule':
300
301
  """
301
302
  Get an existing AclBindingRule resource's state with the given name, id, and optional extra
302
303
  properties used to qualify the lookup.
@@ -304,15 +305,15 @@ class AclBindingRule(pulumi.CustomResource):
304
305
  :param str resource_name: The unique name of the resulting resource.
305
306
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
306
307
  :param pulumi.ResourceOptions opts: Options for the resource.
307
- :param pulumi.Input[str] auth_method: `(string: <required>)` - Name of the auth method for which this
308
+ :param pulumi.Input[builtins.str] auth_method: `(string: <required>)` - Name of the auth method for which this
308
309
  rule applies to.
309
- :param pulumi.Input[str] bind_name: `(string: <optional>)` - Target of the binding. If `bind_type` is
310
+ :param pulumi.Input[builtins.str] bind_name: `(string: <optional>)` - Target of the binding. If `bind_type` is
310
311
  `role` or `policy` then `bind_name` is required. If `bind_type` is
311
312
  `management` than `bind_name` must not be defined.
312
- :param pulumi.Input[str] bind_type: `(string: <required>)` - Adjusts how this binding rule is applied
313
+ :param pulumi.Input[builtins.str] bind_type: `(string: <required>)` - Adjusts how this binding rule is applied
313
314
  at login time. Valid values are `role`, `policy`, and `management`.
314
- :param pulumi.Input[str] description: `(string: "")` - Description for this ACL binding rule.
315
- :param pulumi.Input[str] selector: `(string: "")` - A boolean expression that matches against verified
315
+ :param pulumi.Input[builtins.str] description: `(string: "")` - Description for this ACL binding rule.
316
+ :param pulumi.Input[builtins.str] selector: `(string: "")` - A boolean expression that matches against verified
316
317
  identity attributes returned from the auth method during login.
317
318
  """
318
319
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
@@ -328,7 +329,7 @@ class AclBindingRule(pulumi.CustomResource):
328
329
 
329
330
  @property
330
331
  @pulumi.getter(name="authMethod")
331
- def auth_method(self) -> pulumi.Output[str]:
332
+ def auth_method(self) -> pulumi.Output[builtins.str]:
332
333
  """
333
334
  `(string: <required>)` - Name of the auth method for which this
334
335
  rule applies to.
@@ -337,7 +338,7 @@ class AclBindingRule(pulumi.CustomResource):
337
338
 
338
339
  @property
339
340
  @pulumi.getter(name="bindName")
340
- def bind_name(self) -> pulumi.Output[Optional[str]]:
341
+ def bind_name(self) -> pulumi.Output[Optional[builtins.str]]:
341
342
  """
342
343
  `(string: <optional>)` - Target of the binding. If `bind_type` is
343
344
  `role` or `policy` then `bind_name` is required. If `bind_type` is
@@ -347,7 +348,7 @@ class AclBindingRule(pulumi.CustomResource):
347
348
 
348
349
  @property
349
350
  @pulumi.getter(name="bindType")
350
- def bind_type(self) -> pulumi.Output[str]:
351
+ def bind_type(self) -> pulumi.Output[builtins.str]:
351
352
  """
352
353
  `(string: <required>)` - Adjusts how this binding rule is applied
353
354
  at login time. Valid values are `role`, `policy`, and `management`.
@@ -356,7 +357,7 @@ class AclBindingRule(pulumi.CustomResource):
356
357
 
357
358
  @property
358
359
  @pulumi.getter
359
- def description(self) -> pulumi.Output[Optional[str]]:
360
+ def description(self) -> pulumi.Output[Optional[builtins.str]]:
360
361
  """
361
362
  `(string: "")` - Description for this ACL binding rule.
362
363
  """
@@ -364,7 +365,7 @@ class AclBindingRule(pulumi.CustomResource):
364
365
 
365
366
  @property
366
367
  @pulumi.getter
367
- def selector(self) -> pulumi.Output[Optional[str]]:
368
+ def selector(self) -> pulumi.Output[Optional[builtins.str]]:
368
369
  """
369
370
  `(string: "")` - A boolean expression that matches against verified
370
371
  identity attributes returned from the auth method during login.
@@ -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,17 +22,18 @@ __all__ = ['AclPolicyArgs', 'AclPolicy']
21
22
  @pulumi.input_type
22
23
  class AclPolicyArgs:
23
24
  def __init__(__self__, *,
24
- rules_hcl: pulumi.Input[str],
25
- description: Optional[pulumi.Input[str]] = None,
25
+ rules_hcl: pulumi.Input[builtins.str],
26
+ description: Optional[pulumi.Input[builtins.str]] = None,
26
27
  job_acl: Optional[pulumi.Input['AclPolicyJobAclArgs']] = None,
27
- name: Optional[pulumi.Input[str]] = None):
28
+ name: Optional[pulumi.Input[builtins.str]] = None):
28
29
  """
29
30
  The set of arguments for constructing a AclPolicy resource.
30
- :param pulumi.Input[str] rules_hcl: `(string: <required>)` - The contents of the policy to register,
31
+ :param pulumi.Input[builtins.str] rules_hcl: `(string: <required>)` - The contents of the policy to register,
31
32
  as HCL or JSON.
32
- :param pulumi.Input[str] description: `(string: "")` - A description of the policy.
33
- :param pulumi.Input['AclPolicyJobAclArgs'] job_acl: `(``JobACL``: <optional>)` - Options for assigning the ACL rules to a job, group, or task.
34
- :param pulumi.Input[str] name: `(string: <required>)` - A unique name for the policy.
33
+ :param pulumi.Input[builtins.str] description: `(string: "")` - A description of the policy.
34
+ :param pulumi.Input['AclPolicyJobAclArgs'] job_acl: `(``JobACL``: <optional>)` - Options for assigning the
35
+ ACL rules to a job, group, or task.
36
+ :param pulumi.Input[builtins.str] name: `(string: <required>)` - A unique name for the policy.
35
37
  """
36
38
  pulumi.set(__self__, "rules_hcl", rules_hcl)
37
39
  if description is not None:
@@ -43,7 +45,7 @@ class AclPolicyArgs:
43
45
 
44
46
  @property
45
47
  @pulumi.getter(name="rulesHcl")
46
- def rules_hcl(self) -> pulumi.Input[str]:
48
+ def rules_hcl(self) -> pulumi.Input[builtins.str]:
47
49
  """
48
50
  `(string: <required>)` - The contents of the policy to register,
49
51
  as HCL or JSON.
@@ -51,26 +53,27 @@ class AclPolicyArgs:
51
53
  return pulumi.get(self, "rules_hcl")
52
54
 
53
55
  @rules_hcl.setter
54
- def rules_hcl(self, value: pulumi.Input[str]):
56
+ def rules_hcl(self, value: pulumi.Input[builtins.str]):
55
57
  pulumi.set(self, "rules_hcl", value)
56
58
 
57
59
  @property
58
60
  @pulumi.getter
59
- def description(self) -> Optional[pulumi.Input[str]]:
61
+ def description(self) -> Optional[pulumi.Input[builtins.str]]:
60
62
  """
61
63
  `(string: "")` - A description of the policy.
62
64
  """
63
65
  return pulumi.get(self, "description")
64
66
 
65
67
  @description.setter
66
- def description(self, value: Optional[pulumi.Input[str]]):
68
+ def description(self, value: Optional[pulumi.Input[builtins.str]]):
67
69
  pulumi.set(self, "description", value)
68
70
 
69
71
  @property
70
72
  @pulumi.getter(name="jobAcl")
71
73
  def job_acl(self) -> Optional[pulumi.Input['AclPolicyJobAclArgs']]:
72
74
  """
73
- `(``JobACL``: <optional>)` - Options for assigning the ACL rules to a job, group, or task.
75
+ `(``JobACL``: <optional>)` - Options for assigning the
76
+ ACL rules to a job, group, or task.
74
77
  """
75
78
  return pulumi.get(self, "job_acl")
76
79
 
@@ -80,30 +83,31 @@ class AclPolicyArgs:
80
83
 
81
84
  @property
82
85
  @pulumi.getter
83
- def name(self) -> Optional[pulumi.Input[str]]:
86
+ def name(self) -> Optional[pulumi.Input[builtins.str]]:
84
87
  """
85
88
  `(string: <required>)` - A unique name for the policy.
86
89
  """
87
90
  return pulumi.get(self, "name")
88
91
 
89
92
  @name.setter
90
- def name(self, value: Optional[pulumi.Input[str]]):
93
+ def name(self, value: Optional[pulumi.Input[builtins.str]]):
91
94
  pulumi.set(self, "name", value)
92
95
 
93
96
 
94
97
  @pulumi.input_type
95
98
  class _AclPolicyState:
96
99
  def __init__(__self__, *,
97
- description: Optional[pulumi.Input[str]] = None,
100
+ description: Optional[pulumi.Input[builtins.str]] = None,
98
101
  job_acl: Optional[pulumi.Input['AclPolicyJobAclArgs']] = None,
99
- name: Optional[pulumi.Input[str]] = None,
100
- rules_hcl: Optional[pulumi.Input[str]] = None):
102
+ name: Optional[pulumi.Input[builtins.str]] = None,
103
+ rules_hcl: Optional[pulumi.Input[builtins.str]] = None):
101
104
  """
102
105
  Input properties used for looking up and filtering AclPolicy resources.
103
- :param pulumi.Input[str] description: `(string: "")` - A description of the policy.
104
- :param pulumi.Input['AclPolicyJobAclArgs'] job_acl: `(``JobACL``: <optional>)` - Options for assigning the ACL rules to a job, group, or task.
105
- :param pulumi.Input[str] name: `(string: <required>)` - A unique name for the policy.
106
- :param pulumi.Input[str] rules_hcl: `(string: <required>)` - The contents of the policy to register,
106
+ :param pulumi.Input[builtins.str] description: `(string: "")` - A description of the policy.
107
+ :param pulumi.Input['AclPolicyJobAclArgs'] job_acl: `(``JobACL``: <optional>)` - Options for assigning the
108
+ ACL rules to a job, group, or task.
109
+ :param pulumi.Input[builtins.str] name: `(string: <required>)` - A unique name for the policy.
110
+ :param pulumi.Input[builtins.str] rules_hcl: `(string: <required>)` - The contents of the policy to register,
107
111
  as HCL or JSON.
108
112
  """
109
113
  if description is not None:
@@ -117,21 +121,22 @@ class _AclPolicyState:
117
121
 
118
122
  @property
119
123
  @pulumi.getter
120
- def description(self) -> Optional[pulumi.Input[str]]:
124
+ def description(self) -> Optional[pulumi.Input[builtins.str]]:
121
125
  """
122
126
  `(string: "")` - A description of the policy.
123
127
  """
124
128
  return pulumi.get(self, "description")
125
129
 
126
130
  @description.setter
127
- def description(self, value: Optional[pulumi.Input[str]]):
131
+ def description(self, value: Optional[pulumi.Input[builtins.str]]):
128
132
  pulumi.set(self, "description", value)
129
133
 
130
134
  @property
131
135
  @pulumi.getter(name="jobAcl")
132
136
  def job_acl(self) -> Optional[pulumi.Input['AclPolicyJobAclArgs']]:
133
137
  """
134
- `(``JobACL``: <optional>)` - Options for assigning the ACL rules to a job, group, or task.
138
+ `(``JobACL``: <optional>)` - Options for assigning the
139
+ ACL rules to a job, group, or task.
135
140
  """
136
141
  return pulumi.get(self, "job_acl")
137
142
 
@@ -141,19 +146,19 @@ class _AclPolicyState:
141
146
 
142
147
  @property
143
148
  @pulumi.getter
144
- def name(self) -> Optional[pulumi.Input[str]]:
149
+ def name(self) -> Optional[pulumi.Input[builtins.str]]:
145
150
  """
146
151
  `(string: <required>)` - A unique name for the policy.
147
152
  """
148
153
  return pulumi.get(self, "name")
149
154
 
150
155
  @name.setter
151
- def name(self, value: Optional[pulumi.Input[str]]):
156
+ def name(self, value: Optional[pulumi.Input[builtins.str]]):
152
157
  pulumi.set(self, "name", value)
153
158
 
154
159
  @property
155
160
  @pulumi.getter(name="rulesHcl")
156
- def rules_hcl(self) -> Optional[pulumi.Input[str]]:
161
+ def rules_hcl(self) -> Optional[pulumi.Input[builtins.str]]:
157
162
  """
158
163
  `(string: <required>)` - The contents of the policy to register,
159
164
  as HCL or JSON.
@@ -161,7 +166,7 @@ class _AclPolicyState:
161
166
  return pulumi.get(self, "rules_hcl")
162
167
 
163
168
  @rules_hcl.setter
164
- def rules_hcl(self, value: Optional[pulumi.Input[str]]):
169
+ def rules_hcl(self, value: Optional[pulumi.Input[builtins.str]]):
165
170
  pulumi.set(self, "rules_hcl", value)
166
171
 
167
172
 
@@ -170,20 +175,21 @@ class AclPolicy(pulumi.CustomResource):
170
175
  def __init__(__self__,
171
176
  resource_name: str,
172
177
  opts: Optional[pulumi.ResourceOptions] = None,
173
- description: Optional[pulumi.Input[str]] = None,
178
+ description: Optional[pulumi.Input[builtins.str]] = None,
174
179
  job_acl: Optional[pulumi.Input[Union['AclPolicyJobAclArgs', 'AclPolicyJobAclArgsDict']]] = None,
175
- name: Optional[pulumi.Input[str]] = None,
176
- rules_hcl: Optional[pulumi.Input[str]] = None,
180
+ name: Optional[pulumi.Input[builtins.str]] = None,
181
+ rules_hcl: Optional[pulumi.Input[builtins.str]] = None,
177
182
  __props__=None):
178
183
  """
179
184
  Manages an ACL policy registered in Nomad.
180
185
 
181
186
  :param str resource_name: The name of the resource.
182
187
  :param pulumi.ResourceOptions opts: Options for the resource.
183
- :param pulumi.Input[str] description: `(string: "")` - A description of the policy.
184
- :param pulumi.Input[Union['AclPolicyJobAclArgs', 'AclPolicyJobAclArgsDict']] job_acl: `(``JobACL``: <optional>)` - Options for assigning the ACL rules to a job, group, or task.
185
- :param pulumi.Input[str] name: `(string: <required>)` - A unique name for the policy.
186
- :param pulumi.Input[str] rules_hcl: `(string: <required>)` - The contents of the policy to register,
188
+ :param pulumi.Input[builtins.str] description: `(string: "")` - A description of the policy.
189
+ :param pulumi.Input[Union['AclPolicyJobAclArgs', 'AclPolicyJobAclArgsDict']] job_acl: `(``JobACL``: <optional>)` - Options for assigning the
190
+ ACL rules to a job, group, or task.
191
+ :param pulumi.Input[builtins.str] name: `(string: <required>)` - A unique name for the policy.
192
+ :param pulumi.Input[builtins.str] rules_hcl: `(string: <required>)` - The contents of the policy to register,
187
193
  as HCL or JSON.
188
194
  """
189
195
  ...
@@ -210,10 +216,10 @@ class AclPolicy(pulumi.CustomResource):
210
216
  def _internal_init(__self__,
211
217
  resource_name: str,
212
218
  opts: Optional[pulumi.ResourceOptions] = None,
213
- description: Optional[pulumi.Input[str]] = None,
219
+ description: Optional[pulumi.Input[builtins.str]] = None,
214
220
  job_acl: Optional[pulumi.Input[Union['AclPolicyJobAclArgs', 'AclPolicyJobAclArgsDict']]] = None,
215
- name: Optional[pulumi.Input[str]] = None,
216
- rules_hcl: Optional[pulumi.Input[str]] = None,
221
+ name: Optional[pulumi.Input[builtins.str]] = None,
222
+ rules_hcl: Optional[pulumi.Input[builtins.str]] = None,
217
223
  __props__=None):
218
224
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
219
225
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -239,10 +245,10 @@ class AclPolicy(pulumi.CustomResource):
239
245
  def get(resource_name: str,
240
246
  id: pulumi.Input[str],
241
247
  opts: Optional[pulumi.ResourceOptions] = None,
242
- description: Optional[pulumi.Input[str]] = None,
248
+ description: Optional[pulumi.Input[builtins.str]] = None,
243
249
  job_acl: Optional[pulumi.Input[Union['AclPolicyJobAclArgs', 'AclPolicyJobAclArgsDict']]] = None,
244
- name: Optional[pulumi.Input[str]] = None,
245
- rules_hcl: Optional[pulumi.Input[str]] = None) -> 'AclPolicy':
250
+ name: Optional[pulumi.Input[builtins.str]] = None,
251
+ rules_hcl: Optional[pulumi.Input[builtins.str]] = None) -> 'AclPolicy':
246
252
  """
247
253
  Get an existing AclPolicy resource's state with the given name, id, and optional extra
248
254
  properties used to qualify the lookup.
@@ -250,10 +256,11 @@ class AclPolicy(pulumi.CustomResource):
250
256
  :param str resource_name: The unique name of the resulting resource.
251
257
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
252
258
  :param pulumi.ResourceOptions opts: Options for the resource.
253
- :param pulumi.Input[str] description: `(string: "")` - A description of the policy.
254
- :param pulumi.Input[Union['AclPolicyJobAclArgs', 'AclPolicyJobAclArgsDict']] job_acl: `(``JobACL``: <optional>)` - Options for assigning the ACL rules to a job, group, or task.
255
- :param pulumi.Input[str] name: `(string: <required>)` - A unique name for the policy.
256
- :param pulumi.Input[str] rules_hcl: `(string: <required>)` - The contents of the policy to register,
259
+ :param pulumi.Input[builtins.str] description: `(string: "")` - A description of the policy.
260
+ :param pulumi.Input[Union['AclPolicyJobAclArgs', 'AclPolicyJobAclArgsDict']] job_acl: `(``JobACL``: <optional>)` - Options for assigning the
261
+ ACL rules to a job, group, or task.
262
+ :param pulumi.Input[builtins.str] name: `(string: <required>)` - A unique name for the policy.
263
+ :param pulumi.Input[builtins.str] rules_hcl: `(string: <required>)` - The contents of the policy to register,
257
264
  as HCL or JSON.
258
265
  """
259
266
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
@@ -268,7 +275,7 @@ class AclPolicy(pulumi.CustomResource):
268
275
 
269
276
  @property
270
277
  @pulumi.getter
271
- def description(self) -> pulumi.Output[Optional[str]]:
278
+ def description(self) -> pulumi.Output[Optional[builtins.str]]:
272
279
  """
273
280
  `(string: "")` - A description of the policy.
274
281
  """
@@ -278,13 +285,14 @@ class AclPolicy(pulumi.CustomResource):
278
285
  @pulumi.getter(name="jobAcl")
279
286
  def job_acl(self) -> pulumi.Output[Optional['outputs.AclPolicyJobAcl']]:
280
287
  """
281
- `(``JobACL``: <optional>)` - Options for assigning the ACL rules to a job, group, or task.
288
+ `(``JobACL``: <optional>)` - Options for assigning the
289
+ ACL rules to a job, group, or task.
282
290
  """
283
291
  return pulumi.get(self, "job_acl")
284
292
 
285
293
  @property
286
294
  @pulumi.getter
287
- def name(self) -> pulumi.Output[str]:
295
+ def name(self) -> pulumi.Output[builtins.str]:
288
296
  """
289
297
  `(string: <required>)` - A unique name for the policy.
290
298
  """
@@ -292,7 +300,7 @@ class AclPolicy(pulumi.CustomResource):
292
300
 
293
301
  @property
294
302
  @pulumi.getter(name="rulesHcl")
295
- def rules_hcl(self) -> pulumi.Output[str]:
303
+ def rules_hcl(self) -> pulumi.Output[builtins.str]:
296
304
  """
297
305
  `(string: <required>)` - The contents of the policy to register,
298
306
  as HCL or JSON.