pulumi-docker 4.8.0a1750226298__py3-none-any.whl → 4.8.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pulumi-docker might be problematic. Click here for more details.
- pulumi_docker/__init__.py +10 -1
- pulumi_docker/_enums.py +2 -2
- pulumi_docker/_inputs.py +2499 -1536
- pulumi_docker/buildx_builder.py +764 -0
- pulumi_docker/config/__init__.py +1 -1
- pulumi_docker/config/__init__.pyi +1 -2
- pulumi_docker/config/outputs.py +24 -25
- pulumi_docker/config/vars.py +10 -11
- pulumi_docker/container.py +1087 -947
- pulumi_docker/get_logs.py +55 -56
- pulumi_docker/get_network.py +18 -19
- pulumi_docker/get_plugin.py +23 -24
- pulumi_docker/get_registry_image.py +18 -19
- pulumi_docker/get_registry_image_manifests.py +17 -18
- pulumi_docker/get_remote_image.py +11 -12
- pulumi_docker/image.py +41 -42
- pulumi_docker/network.py +186 -187
- pulumi_docker/outputs.py +1683 -1003
- pulumi_docker/plugin.py +149 -150
- pulumi_docker/provider.py +79 -80
- pulumi_docker/pulumi-plugin.json +1 -1
- pulumi_docker/registry_image.py +81 -82
- pulumi_docker/remote_image.py +124 -125
- pulumi_docker/secret.py +38 -39
- pulumi_docker/service.py +42 -43
- pulumi_docker/service_config.py +35 -36
- pulumi_docker/tag.py +61 -62
- pulumi_docker/volume.py +64 -65
- {pulumi_docker-4.8.0a1750226298.dist-info → pulumi_docker-4.8.1.dist-info}/METADATA +1 -1
- pulumi_docker-4.8.1.dist-info/RECORD +34 -0
- pulumi_docker-4.8.0a1750226298.dist-info/RECORD +0 -33
- {pulumi_docker-4.8.0a1750226298.dist-info → pulumi_docker-4.8.1.dist-info}/WHEEL +0 -0
- {pulumi_docker-4.8.0a1750226298.dist-info → pulumi_docker-4.8.1.dist-info}/top_level.txt +0 -0
pulumi_docker/outputs.py
CHANGED
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
|
-
import builtins
|
|
6
|
-
import copy
|
|
5
|
+
import builtins as _builtins
|
|
7
6
|
import warnings
|
|
8
7
|
import sys
|
|
9
8
|
import pulumi
|
|
@@ -18,6 +17,12 @@ from . import outputs
|
|
|
18
17
|
from ._enums import *
|
|
19
18
|
|
|
20
19
|
__all__ = [
|
|
20
|
+
'BuildxBuilderDockerContainer',
|
|
21
|
+
'BuildxBuilderKubernetes',
|
|
22
|
+
'BuildxBuilderKubernetesLimits',
|
|
23
|
+
'BuildxBuilderKubernetesQemu',
|
|
24
|
+
'BuildxBuilderKubernetesRequests',
|
|
25
|
+
'BuildxBuilderRemote',
|
|
21
26
|
'ContainerCapabilities',
|
|
22
27
|
'ContainerDevice',
|
|
23
28
|
'ContainerHealthcheck',
|
|
@@ -83,31 +88,678 @@ __all__ = [
|
|
|
83
88
|
'GetRegistryImageManifestsManifestResult',
|
|
84
89
|
]
|
|
85
90
|
|
|
91
|
+
@pulumi.output_type
|
|
92
|
+
class BuildxBuilderDockerContainer(dict):
|
|
93
|
+
@staticmethod
|
|
94
|
+
def __key_warning(key: str):
|
|
95
|
+
suggest = None
|
|
96
|
+
if key == "cgroupParent":
|
|
97
|
+
suggest = "cgroup_parent"
|
|
98
|
+
elif key == "cpuPeriod":
|
|
99
|
+
suggest = "cpu_period"
|
|
100
|
+
elif key == "cpuQuota":
|
|
101
|
+
suggest = "cpu_quota"
|
|
102
|
+
elif key == "cpuShares":
|
|
103
|
+
suggest = "cpu_shares"
|
|
104
|
+
elif key == "cpusetCpus":
|
|
105
|
+
suggest = "cpuset_cpus"
|
|
106
|
+
elif key == "cpusetMems":
|
|
107
|
+
suggest = "cpuset_mems"
|
|
108
|
+
elif key == "defaultLoad":
|
|
109
|
+
suggest = "default_load"
|
|
110
|
+
elif key == "memorySwap":
|
|
111
|
+
suggest = "memory_swap"
|
|
112
|
+
elif key == "restartPolicy":
|
|
113
|
+
suggest = "restart_policy"
|
|
114
|
+
|
|
115
|
+
if suggest:
|
|
116
|
+
pulumi.log.warn(f"Key '{key}' not found in BuildxBuilderDockerContainer. Access the value via the '{suggest}' property getter instead.")
|
|
117
|
+
|
|
118
|
+
def __getitem__(self, key: str) -> Any:
|
|
119
|
+
BuildxBuilderDockerContainer.__key_warning(key)
|
|
120
|
+
return super().__getitem__(key)
|
|
121
|
+
|
|
122
|
+
def get(self, key: str, default = None) -> Any:
|
|
123
|
+
BuildxBuilderDockerContainer.__key_warning(key)
|
|
124
|
+
return super().get(key, default)
|
|
125
|
+
|
|
126
|
+
def __init__(__self__, *,
|
|
127
|
+
cgroup_parent: Optional[_builtins.str] = None,
|
|
128
|
+
cpu_period: Optional[_builtins.str] = None,
|
|
129
|
+
cpu_quota: Optional[_builtins.str] = None,
|
|
130
|
+
cpu_shares: Optional[_builtins.str] = None,
|
|
131
|
+
cpuset_cpus: Optional[_builtins.str] = None,
|
|
132
|
+
cpuset_mems: Optional[_builtins.str] = None,
|
|
133
|
+
default_load: Optional[_builtins.bool] = None,
|
|
134
|
+
env: Optional[Mapping[str, _builtins.str]] = None,
|
|
135
|
+
image: Optional[_builtins.str] = None,
|
|
136
|
+
memory: Optional[_builtins.str] = None,
|
|
137
|
+
memory_swap: Optional[_builtins.str] = None,
|
|
138
|
+
network: Optional[_builtins.str] = None,
|
|
139
|
+
restart_policy: Optional[_builtins.str] = None):
|
|
140
|
+
"""
|
|
141
|
+
:param _builtins.str cgroup_parent: Sets the cgroup parent of the container if Docker is using the "cgroupfs" driver.
|
|
142
|
+
:param _builtins.str cpu_period: Sets the CPU CFS scheduler period for the container.
|
|
143
|
+
:param _builtins.str cpu_quota: Imposes a CPU CFS quota on the container.
|
|
144
|
+
:param _builtins.str cpu_shares: Configures CPU shares (relative weight) of the container.
|
|
145
|
+
:param _builtins.str cpuset_cpus: Limits the set of CPU cores the container can use.
|
|
146
|
+
:param _builtins.str cpuset_mems: Limits the set of CPU memory nodes the container can use.
|
|
147
|
+
:param _builtins.bool default_load: Automatically load images to the Docker Engine image store. Defaults to `false`
|
|
148
|
+
:param Mapping[str, _builtins.str] env: Sets environment variables in the container.
|
|
149
|
+
:param _builtins.str image: Sets the BuildKit image to use for the container.
|
|
150
|
+
:param _builtins.str memory: Sets the amount of memory the container can use.
|
|
151
|
+
:param _builtins.str memory_swap: Sets the memory swap limit for the container.
|
|
152
|
+
:param _builtins.str network: Sets the network mode for the container.
|
|
153
|
+
:param _builtins.str restart_policy: Sets the container's restart policy.
|
|
154
|
+
"""
|
|
155
|
+
if cgroup_parent is not None:
|
|
156
|
+
pulumi.set(__self__, "cgroup_parent", cgroup_parent)
|
|
157
|
+
if cpu_period is not None:
|
|
158
|
+
pulumi.set(__self__, "cpu_period", cpu_period)
|
|
159
|
+
if cpu_quota is not None:
|
|
160
|
+
pulumi.set(__self__, "cpu_quota", cpu_quota)
|
|
161
|
+
if cpu_shares is not None:
|
|
162
|
+
pulumi.set(__self__, "cpu_shares", cpu_shares)
|
|
163
|
+
if cpuset_cpus is not None:
|
|
164
|
+
pulumi.set(__self__, "cpuset_cpus", cpuset_cpus)
|
|
165
|
+
if cpuset_mems is not None:
|
|
166
|
+
pulumi.set(__self__, "cpuset_mems", cpuset_mems)
|
|
167
|
+
if default_load is not None:
|
|
168
|
+
pulumi.set(__self__, "default_load", default_load)
|
|
169
|
+
if env is not None:
|
|
170
|
+
pulumi.set(__self__, "env", env)
|
|
171
|
+
if image is not None:
|
|
172
|
+
pulumi.set(__self__, "image", image)
|
|
173
|
+
if memory is not None:
|
|
174
|
+
pulumi.set(__self__, "memory", memory)
|
|
175
|
+
if memory_swap is not None:
|
|
176
|
+
pulumi.set(__self__, "memory_swap", memory_swap)
|
|
177
|
+
if network is not None:
|
|
178
|
+
pulumi.set(__self__, "network", network)
|
|
179
|
+
if restart_policy is not None:
|
|
180
|
+
pulumi.set(__self__, "restart_policy", restart_policy)
|
|
181
|
+
|
|
182
|
+
@_builtins.property
|
|
183
|
+
@pulumi.getter(name="cgroupParent")
|
|
184
|
+
def cgroup_parent(self) -> Optional[_builtins.str]:
|
|
185
|
+
"""
|
|
186
|
+
Sets the cgroup parent of the container if Docker is using the "cgroupfs" driver.
|
|
187
|
+
"""
|
|
188
|
+
return pulumi.get(self, "cgroup_parent")
|
|
189
|
+
|
|
190
|
+
@_builtins.property
|
|
191
|
+
@pulumi.getter(name="cpuPeriod")
|
|
192
|
+
def cpu_period(self) -> Optional[_builtins.str]:
|
|
193
|
+
"""
|
|
194
|
+
Sets the CPU CFS scheduler period for the container.
|
|
195
|
+
"""
|
|
196
|
+
return pulumi.get(self, "cpu_period")
|
|
197
|
+
|
|
198
|
+
@_builtins.property
|
|
199
|
+
@pulumi.getter(name="cpuQuota")
|
|
200
|
+
def cpu_quota(self) -> Optional[_builtins.str]:
|
|
201
|
+
"""
|
|
202
|
+
Imposes a CPU CFS quota on the container.
|
|
203
|
+
"""
|
|
204
|
+
return pulumi.get(self, "cpu_quota")
|
|
205
|
+
|
|
206
|
+
@_builtins.property
|
|
207
|
+
@pulumi.getter(name="cpuShares")
|
|
208
|
+
def cpu_shares(self) -> Optional[_builtins.str]:
|
|
209
|
+
"""
|
|
210
|
+
Configures CPU shares (relative weight) of the container.
|
|
211
|
+
"""
|
|
212
|
+
return pulumi.get(self, "cpu_shares")
|
|
213
|
+
|
|
214
|
+
@_builtins.property
|
|
215
|
+
@pulumi.getter(name="cpusetCpus")
|
|
216
|
+
def cpuset_cpus(self) -> Optional[_builtins.str]:
|
|
217
|
+
"""
|
|
218
|
+
Limits the set of CPU cores the container can use.
|
|
219
|
+
"""
|
|
220
|
+
return pulumi.get(self, "cpuset_cpus")
|
|
221
|
+
|
|
222
|
+
@_builtins.property
|
|
223
|
+
@pulumi.getter(name="cpusetMems")
|
|
224
|
+
def cpuset_mems(self) -> Optional[_builtins.str]:
|
|
225
|
+
"""
|
|
226
|
+
Limits the set of CPU memory nodes the container can use.
|
|
227
|
+
"""
|
|
228
|
+
return pulumi.get(self, "cpuset_mems")
|
|
229
|
+
|
|
230
|
+
@_builtins.property
|
|
231
|
+
@pulumi.getter(name="defaultLoad")
|
|
232
|
+
def default_load(self) -> Optional[_builtins.bool]:
|
|
233
|
+
"""
|
|
234
|
+
Automatically load images to the Docker Engine image store. Defaults to `false`
|
|
235
|
+
"""
|
|
236
|
+
return pulumi.get(self, "default_load")
|
|
237
|
+
|
|
238
|
+
@_builtins.property
|
|
239
|
+
@pulumi.getter
|
|
240
|
+
def env(self) -> Optional[Mapping[str, _builtins.str]]:
|
|
241
|
+
"""
|
|
242
|
+
Sets environment variables in the container.
|
|
243
|
+
"""
|
|
244
|
+
return pulumi.get(self, "env")
|
|
245
|
+
|
|
246
|
+
@_builtins.property
|
|
247
|
+
@pulumi.getter
|
|
248
|
+
def image(self) -> Optional[_builtins.str]:
|
|
249
|
+
"""
|
|
250
|
+
Sets the BuildKit image to use for the container.
|
|
251
|
+
"""
|
|
252
|
+
return pulumi.get(self, "image")
|
|
253
|
+
|
|
254
|
+
@_builtins.property
|
|
255
|
+
@pulumi.getter
|
|
256
|
+
def memory(self) -> Optional[_builtins.str]:
|
|
257
|
+
"""
|
|
258
|
+
Sets the amount of memory the container can use.
|
|
259
|
+
"""
|
|
260
|
+
return pulumi.get(self, "memory")
|
|
261
|
+
|
|
262
|
+
@_builtins.property
|
|
263
|
+
@pulumi.getter(name="memorySwap")
|
|
264
|
+
def memory_swap(self) -> Optional[_builtins.str]:
|
|
265
|
+
"""
|
|
266
|
+
Sets the memory swap limit for the container.
|
|
267
|
+
"""
|
|
268
|
+
return pulumi.get(self, "memory_swap")
|
|
269
|
+
|
|
270
|
+
@_builtins.property
|
|
271
|
+
@pulumi.getter
|
|
272
|
+
def network(self) -> Optional[_builtins.str]:
|
|
273
|
+
"""
|
|
274
|
+
Sets the network mode for the container.
|
|
275
|
+
"""
|
|
276
|
+
return pulumi.get(self, "network")
|
|
277
|
+
|
|
278
|
+
@_builtins.property
|
|
279
|
+
@pulumi.getter(name="restartPolicy")
|
|
280
|
+
def restart_policy(self) -> Optional[_builtins.str]:
|
|
281
|
+
"""
|
|
282
|
+
Sets the container's restart policy.
|
|
283
|
+
"""
|
|
284
|
+
return pulumi.get(self, "restart_policy")
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
@pulumi.output_type
|
|
288
|
+
class BuildxBuilderKubernetes(dict):
|
|
289
|
+
@staticmethod
|
|
290
|
+
def __key_warning(key: str):
|
|
291
|
+
suggest = None
|
|
292
|
+
if key == "defaultLoad":
|
|
293
|
+
suggest = "default_load"
|
|
294
|
+
|
|
295
|
+
if suggest:
|
|
296
|
+
pulumi.log.warn(f"Key '{key}' not found in BuildxBuilderKubernetes. Access the value via the '{suggest}' property getter instead.")
|
|
297
|
+
|
|
298
|
+
def __getitem__(self, key: str) -> Any:
|
|
299
|
+
BuildxBuilderKubernetes.__key_warning(key)
|
|
300
|
+
return super().__getitem__(key)
|
|
301
|
+
|
|
302
|
+
def get(self, key: str, default = None) -> Any:
|
|
303
|
+
BuildxBuilderKubernetes.__key_warning(key)
|
|
304
|
+
return super().get(key, default)
|
|
305
|
+
|
|
306
|
+
def __init__(__self__, *,
|
|
307
|
+
annotations: Optional[_builtins.str] = None,
|
|
308
|
+
default_load: Optional[_builtins.bool] = None,
|
|
309
|
+
image: Optional[_builtins.str] = None,
|
|
310
|
+
labels: Optional[_builtins.str] = None,
|
|
311
|
+
limits: Optional['outputs.BuildxBuilderKubernetesLimits'] = None,
|
|
312
|
+
loadbalance: Optional[_builtins.str] = None,
|
|
313
|
+
namespace: Optional[_builtins.str] = None,
|
|
314
|
+
nodeselector: Optional[_builtins.str] = None,
|
|
315
|
+
qemu: Optional['outputs.BuildxBuilderKubernetesQemu'] = None,
|
|
316
|
+
replicas: Optional[_builtins.int] = None,
|
|
317
|
+
requests: Optional['outputs.BuildxBuilderKubernetesRequests'] = None,
|
|
318
|
+
rootless: Optional[_builtins.bool] = None,
|
|
319
|
+
schedulername: Optional[_builtins.str] = None,
|
|
320
|
+
serviceaccount: Optional[_builtins.str] = None,
|
|
321
|
+
timeout: Optional[_builtins.str] = None,
|
|
322
|
+
tolerations: Optional[_builtins.str] = None):
|
|
323
|
+
"""
|
|
324
|
+
:param _builtins.str annotations: Sets additional annotations on the deployments and pods.
|
|
325
|
+
:param _builtins.bool default_load: Automatically load images to the Docker Engine image store. Defaults to `false`
|
|
326
|
+
:param _builtins.str image: Sets the image to use for running BuildKit.
|
|
327
|
+
:param _builtins.str labels: Sets additional labels on the deployments and pods.
|
|
328
|
+
:param 'BuildxBuilderKubernetesLimitsArgs' limits: Resource limits for CPU, memory, and ephemeral storage.
|
|
329
|
+
:param _builtins.str loadbalance: Load-balancing strategy (sticky or random).
|
|
330
|
+
:param _builtins.str namespace: Sets the Kubernetes namespace.
|
|
331
|
+
:param _builtins.str nodeselector: Sets the pod's nodeSelector label(s).
|
|
332
|
+
:param 'BuildxBuilderKubernetesQemuArgs' qemu: QEMU emulation configuration.
|
|
333
|
+
:param _builtins.int replicas: Sets the number of Pod replicas to create.
|
|
334
|
+
:param 'BuildxBuilderKubernetesRequestsArgs' requests: Resource requests for CPU, memory, and ephemeral storage.
|
|
335
|
+
:param _builtins.bool rootless: Run the container as a non-root user.
|
|
336
|
+
:param _builtins.str schedulername: Sets the scheduler responsible for scheduling the pod.
|
|
337
|
+
:param _builtins.str serviceaccount: Sets the pod's serviceAccountName.
|
|
338
|
+
:param _builtins.str timeout: Set the timeout limit for pod provisioning.
|
|
339
|
+
:param _builtins.str tolerations: Configures the pod's taint toleration.
|
|
340
|
+
"""
|
|
341
|
+
if annotations is not None:
|
|
342
|
+
pulumi.set(__self__, "annotations", annotations)
|
|
343
|
+
if default_load is not None:
|
|
344
|
+
pulumi.set(__self__, "default_load", default_load)
|
|
345
|
+
if image is not None:
|
|
346
|
+
pulumi.set(__self__, "image", image)
|
|
347
|
+
if labels is not None:
|
|
348
|
+
pulumi.set(__self__, "labels", labels)
|
|
349
|
+
if limits is not None:
|
|
350
|
+
pulumi.set(__self__, "limits", limits)
|
|
351
|
+
if loadbalance is not None:
|
|
352
|
+
pulumi.set(__self__, "loadbalance", loadbalance)
|
|
353
|
+
if namespace is not None:
|
|
354
|
+
pulumi.set(__self__, "namespace", namespace)
|
|
355
|
+
if nodeselector is not None:
|
|
356
|
+
pulumi.set(__self__, "nodeselector", nodeselector)
|
|
357
|
+
if qemu is not None:
|
|
358
|
+
pulumi.set(__self__, "qemu", qemu)
|
|
359
|
+
if replicas is not None:
|
|
360
|
+
pulumi.set(__self__, "replicas", replicas)
|
|
361
|
+
if requests is not None:
|
|
362
|
+
pulumi.set(__self__, "requests", requests)
|
|
363
|
+
if rootless is not None:
|
|
364
|
+
pulumi.set(__self__, "rootless", rootless)
|
|
365
|
+
if schedulername is not None:
|
|
366
|
+
pulumi.set(__self__, "schedulername", schedulername)
|
|
367
|
+
if serviceaccount is not None:
|
|
368
|
+
pulumi.set(__self__, "serviceaccount", serviceaccount)
|
|
369
|
+
if timeout is not None:
|
|
370
|
+
pulumi.set(__self__, "timeout", timeout)
|
|
371
|
+
if tolerations is not None:
|
|
372
|
+
pulumi.set(__self__, "tolerations", tolerations)
|
|
373
|
+
|
|
374
|
+
@_builtins.property
|
|
375
|
+
@pulumi.getter
|
|
376
|
+
def annotations(self) -> Optional[_builtins.str]:
|
|
377
|
+
"""
|
|
378
|
+
Sets additional annotations on the deployments and pods.
|
|
379
|
+
"""
|
|
380
|
+
return pulumi.get(self, "annotations")
|
|
381
|
+
|
|
382
|
+
@_builtins.property
|
|
383
|
+
@pulumi.getter(name="defaultLoad")
|
|
384
|
+
def default_load(self) -> Optional[_builtins.bool]:
|
|
385
|
+
"""
|
|
386
|
+
Automatically load images to the Docker Engine image store. Defaults to `false`
|
|
387
|
+
"""
|
|
388
|
+
return pulumi.get(self, "default_load")
|
|
389
|
+
|
|
390
|
+
@_builtins.property
|
|
391
|
+
@pulumi.getter
|
|
392
|
+
def image(self) -> Optional[_builtins.str]:
|
|
393
|
+
"""
|
|
394
|
+
Sets the image to use for running BuildKit.
|
|
395
|
+
"""
|
|
396
|
+
return pulumi.get(self, "image")
|
|
397
|
+
|
|
398
|
+
@_builtins.property
|
|
399
|
+
@pulumi.getter
|
|
400
|
+
def labels(self) -> Optional[_builtins.str]:
|
|
401
|
+
"""
|
|
402
|
+
Sets additional labels on the deployments and pods.
|
|
403
|
+
"""
|
|
404
|
+
return pulumi.get(self, "labels")
|
|
405
|
+
|
|
406
|
+
@_builtins.property
|
|
407
|
+
@pulumi.getter
|
|
408
|
+
def limits(self) -> Optional['outputs.BuildxBuilderKubernetesLimits']:
|
|
409
|
+
"""
|
|
410
|
+
Resource limits for CPU, memory, and ephemeral storage.
|
|
411
|
+
"""
|
|
412
|
+
return pulumi.get(self, "limits")
|
|
413
|
+
|
|
414
|
+
@_builtins.property
|
|
415
|
+
@pulumi.getter
|
|
416
|
+
def loadbalance(self) -> Optional[_builtins.str]:
|
|
417
|
+
"""
|
|
418
|
+
Load-balancing strategy (sticky or random).
|
|
419
|
+
"""
|
|
420
|
+
return pulumi.get(self, "loadbalance")
|
|
421
|
+
|
|
422
|
+
@_builtins.property
|
|
423
|
+
@pulumi.getter
|
|
424
|
+
def namespace(self) -> Optional[_builtins.str]:
|
|
425
|
+
"""
|
|
426
|
+
Sets the Kubernetes namespace.
|
|
427
|
+
"""
|
|
428
|
+
return pulumi.get(self, "namespace")
|
|
429
|
+
|
|
430
|
+
@_builtins.property
|
|
431
|
+
@pulumi.getter
|
|
432
|
+
def nodeselector(self) -> Optional[_builtins.str]:
|
|
433
|
+
"""
|
|
434
|
+
Sets the pod's nodeSelector label(s).
|
|
435
|
+
"""
|
|
436
|
+
return pulumi.get(self, "nodeselector")
|
|
437
|
+
|
|
438
|
+
@_builtins.property
|
|
439
|
+
@pulumi.getter
|
|
440
|
+
def qemu(self) -> Optional['outputs.BuildxBuilderKubernetesQemu']:
|
|
441
|
+
"""
|
|
442
|
+
QEMU emulation configuration.
|
|
443
|
+
"""
|
|
444
|
+
return pulumi.get(self, "qemu")
|
|
445
|
+
|
|
446
|
+
@_builtins.property
|
|
447
|
+
@pulumi.getter
|
|
448
|
+
def replicas(self) -> Optional[_builtins.int]:
|
|
449
|
+
"""
|
|
450
|
+
Sets the number of Pod replicas to create.
|
|
451
|
+
"""
|
|
452
|
+
return pulumi.get(self, "replicas")
|
|
453
|
+
|
|
454
|
+
@_builtins.property
|
|
455
|
+
@pulumi.getter
|
|
456
|
+
def requests(self) -> Optional['outputs.BuildxBuilderKubernetesRequests']:
|
|
457
|
+
"""
|
|
458
|
+
Resource requests for CPU, memory, and ephemeral storage.
|
|
459
|
+
"""
|
|
460
|
+
return pulumi.get(self, "requests")
|
|
461
|
+
|
|
462
|
+
@_builtins.property
|
|
463
|
+
@pulumi.getter
|
|
464
|
+
def rootless(self) -> Optional[_builtins.bool]:
|
|
465
|
+
"""
|
|
466
|
+
Run the container as a non-root user.
|
|
467
|
+
"""
|
|
468
|
+
return pulumi.get(self, "rootless")
|
|
469
|
+
|
|
470
|
+
@_builtins.property
|
|
471
|
+
@pulumi.getter
|
|
472
|
+
def schedulername(self) -> Optional[_builtins.str]:
|
|
473
|
+
"""
|
|
474
|
+
Sets the scheduler responsible for scheduling the pod.
|
|
475
|
+
"""
|
|
476
|
+
return pulumi.get(self, "schedulername")
|
|
477
|
+
|
|
478
|
+
@_builtins.property
|
|
479
|
+
@pulumi.getter
|
|
480
|
+
def serviceaccount(self) -> Optional[_builtins.str]:
|
|
481
|
+
"""
|
|
482
|
+
Sets the pod's serviceAccountName.
|
|
483
|
+
"""
|
|
484
|
+
return pulumi.get(self, "serviceaccount")
|
|
485
|
+
|
|
486
|
+
@_builtins.property
|
|
487
|
+
@pulumi.getter
|
|
488
|
+
def timeout(self) -> Optional[_builtins.str]:
|
|
489
|
+
"""
|
|
490
|
+
Set the timeout limit for pod provisioning.
|
|
491
|
+
"""
|
|
492
|
+
return pulumi.get(self, "timeout")
|
|
493
|
+
|
|
494
|
+
@_builtins.property
|
|
495
|
+
@pulumi.getter
|
|
496
|
+
def tolerations(self) -> Optional[_builtins.str]:
|
|
497
|
+
"""
|
|
498
|
+
Configures the pod's taint toleration.
|
|
499
|
+
"""
|
|
500
|
+
return pulumi.get(self, "tolerations")
|
|
501
|
+
|
|
502
|
+
|
|
503
|
+
@pulumi.output_type
|
|
504
|
+
class BuildxBuilderKubernetesLimits(dict):
|
|
505
|
+
@staticmethod
|
|
506
|
+
def __key_warning(key: str):
|
|
507
|
+
suggest = None
|
|
508
|
+
if key == "ephemeralStorage":
|
|
509
|
+
suggest = "ephemeral_storage"
|
|
510
|
+
|
|
511
|
+
if suggest:
|
|
512
|
+
pulumi.log.warn(f"Key '{key}' not found in BuildxBuilderKubernetesLimits. Access the value via the '{suggest}' property getter instead.")
|
|
513
|
+
|
|
514
|
+
def __getitem__(self, key: str) -> Any:
|
|
515
|
+
BuildxBuilderKubernetesLimits.__key_warning(key)
|
|
516
|
+
return super().__getitem__(key)
|
|
517
|
+
|
|
518
|
+
def get(self, key: str, default = None) -> Any:
|
|
519
|
+
BuildxBuilderKubernetesLimits.__key_warning(key)
|
|
520
|
+
return super().get(key, default)
|
|
521
|
+
|
|
522
|
+
def __init__(__self__, *,
|
|
523
|
+
cpu: Optional[_builtins.str] = None,
|
|
524
|
+
ephemeral_storage: Optional[_builtins.str] = None,
|
|
525
|
+
memory: Optional[_builtins.str] = None):
|
|
526
|
+
"""
|
|
527
|
+
:param _builtins.str cpu: CPU limit for the Kubernetes pod.
|
|
528
|
+
:param _builtins.str ephemeral_storage: Ephemeral storage limit for the Kubernetes pod.
|
|
529
|
+
:param _builtins.str memory: Memory limit for the Kubernetes pod.
|
|
530
|
+
"""
|
|
531
|
+
if cpu is not None:
|
|
532
|
+
pulumi.set(__self__, "cpu", cpu)
|
|
533
|
+
if ephemeral_storage is not None:
|
|
534
|
+
pulumi.set(__self__, "ephemeral_storage", ephemeral_storage)
|
|
535
|
+
if memory is not None:
|
|
536
|
+
pulumi.set(__self__, "memory", memory)
|
|
537
|
+
|
|
538
|
+
@_builtins.property
|
|
539
|
+
@pulumi.getter
|
|
540
|
+
def cpu(self) -> Optional[_builtins.str]:
|
|
541
|
+
"""
|
|
542
|
+
CPU limit for the Kubernetes pod.
|
|
543
|
+
"""
|
|
544
|
+
return pulumi.get(self, "cpu")
|
|
545
|
+
|
|
546
|
+
@_builtins.property
|
|
547
|
+
@pulumi.getter(name="ephemeralStorage")
|
|
548
|
+
def ephemeral_storage(self) -> Optional[_builtins.str]:
|
|
549
|
+
"""
|
|
550
|
+
Ephemeral storage limit for the Kubernetes pod.
|
|
551
|
+
"""
|
|
552
|
+
return pulumi.get(self, "ephemeral_storage")
|
|
553
|
+
|
|
554
|
+
@_builtins.property
|
|
555
|
+
@pulumi.getter
|
|
556
|
+
def memory(self) -> Optional[_builtins.str]:
|
|
557
|
+
"""
|
|
558
|
+
Memory limit for the Kubernetes pod.
|
|
559
|
+
"""
|
|
560
|
+
return pulumi.get(self, "memory")
|
|
561
|
+
|
|
562
|
+
|
|
563
|
+
@pulumi.output_type
|
|
564
|
+
class BuildxBuilderKubernetesQemu(dict):
|
|
565
|
+
def __init__(__self__, *,
|
|
566
|
+
image: Optional[_builtins.str] = None,
|
|
567
|
+
install: Optional[_builtins.bool] = None):
|
|
568
|
+
"""
|
|
569
|
+
:param _builtins.str image: Sets the QEMU emulation image.
|
|
570
|
+
:param _builtins.bool install: Install QEMU emulation for multi-platform support.
|
|
571
|
+
"""
|
|
572
|
+
if image is not None:
|
|
573
|
+
pulumi.set(__self__, "image", image)
|
|
574
|
+
if install is not None:
|
|
575
|
+
pulumi.set(__self__, "install", install)
|
|
576
|
+
|
|
577
|
+
@_builtins.property
|
|
578
|
+
@pulumi.getter
|
|
579
|
+
def image(self) -> Optional[_builtins.str]:
|
|
580
|
+
"""
|
|
581
|
+
Sets the QEMU emulation image.
|
|
582
|
+
"""
|
|
583
|
+
return pulumi.get(self, "image")
|
|
584
|
+
|
|
585
|
+
@_builtins.property
|
|
586
|
+
@pulumi.getter
|
|
587
|
+
def install(self) -> Optional[_builtins.bool]:
|
|
588
|
+
"""
|
|
589
|
+
Install QEMU emulation for multi-platform support.
|
|
590
|
+
"""
|
|
591
|
+
return pulumi.get(self, "install")
|
|
592
|
+
|
|
593
|
+
|
|
594
|
+
@pulumi.output_type
|
|
595
|
+
class BuildxBuilderKubernetesRequests(dict):
|
|
596
|
+
@staticmethod
|
|
597
|
+
def __key_warning(key: str):
|
|
598
|
+
suggest = None
|
|
599
|
+
if key == "ephemeralStorage":
|
|
600
|
+
suggest = "ephemeral_storage"
|
|
601
|
+
|
|
602
|
+
if suggest:
|
|
603
|
+
pulumi.log.warn(f"Key '{key}' not found in BuildxBuilderKubernetesRequests. Access the value via the '{suggest}' property getter instead.")
|
|
604
|
+
|
|
605
|
+
def __getitem__(self, key: str) -> Any:
|
|
606
|
+
BuildxBuilderKubernetesRequests.__key_warning(key)
|
|
607
|
+
return super().__getitem__(key)
|
|
608
|
+
|
|
609
|
+
def get(self, key: str, default = None) -> Any:
|
|
610
|
+
BuildxBuilderKubernetesRequests.__key_warning(key)
|
|
611
|
+
return super().get(key, default)
|
|
612
|
+
|
|
613
|
+
def __init__(__self__, *,
|
|
614
|
+
cpu: Optional[_builtins.str] = None,
|
|
615
|
+
ephemeral_storage: Optional[_builtins.str] = None,
|
|
616
|
+
memory: Optional[_builtins.str] = None):
|
|
617
|
+
"""
|
|
618
|
+
:param _builtins.str cpu: CPU limit for the Kubernetes pod.
|
|
619
|
+
:param _builtins.str ephemeral_storage: Ephemeral storage limit for the Kubernetes pod.
|
|
620
|
+
:param _builtins.str memory: Memory limit for the Kubernetes pod.
|
|
621
|
+
"""
|
|
622
|
+
if cpu is not None:
|
|
623
|
+
pulumi.set(__self__, "cpu", cpu)
|
|
624
|
+
if ephemeral_storage is not None:
|
|
625
|
+
pulumi.set(__self__, "ephemeral_storage", ephemeral_storage)
|
|
626
|
+
if memory is not None:
|
|
627
|
+
pulumi.set(__self__, "memory", memory)
|
|
628
|
+
|
|
629
|
+
@_builtins.property
|
|
630
|
+
@pulumi.getter
|
|
631
|
+
def cpu(self) -> Optional[_builtins.str]:
|
|
632
|
+
"""
|
|
633
|
+
CPU limit for the Kubernetes pod.
|
|
634
|
+
"""
|
|
635
|
+
return pulumi.get(self, "cpu")
|
|
636
|
+
|
|
637
|
+
@_builtins.property
|
|
638
|
+
@pulumi.getter(name="ephemeralStorage")
|
|
639
|
+
def ephemeral_storage(self) -> Optional[_builtins.str]:
|
|
640
|
+
"""
|
|
641
|
+
Ephemeral storage limit for the Kubernetes pod.
|
|
642
|
+
"""
|
|
643
|
+
return pulumi.get(self, "ephemeral_storage")
|
|
644
|
+
|
|
645
|
+
@_builtins.property
|
|
646
|
+
@pulumi.getter
|
|
647
|
+
def memory(self) -> Optional[_builtins.str]:
|
|
648
|
+
"""
|
|
649
|
+
Memory limit for the Kubernetes pod.
|
|
650
|
+
"""
|
|
651
|
+
return pulumi.get(self, "memory")
|
|
652
|
+
|
|
653
|
+
|
|
654
|
+
@pulumi.output_type
|
|
655
|
+
class BuildxBuilderRemote(dict):
|
|
656
|
+
@staticmethod
|
|
657
|
+
def __key_warning(key: str):
|
|
658
|
+
suggest = None
|
|
659
|
+
if key == "defaultLoad":
|
|
660
|
+
suggest = "default_load"
|
|
661
|
+
|
|
662
|
+
if suggest:
|
|
663
|
+
pulumi.log.warn(f"Key '{key}' not found in BuildxBuilderRemote. Access the value via the '{suggest}' property getter instead.")
|
|
664
|
+
|
|
665
|
+
def __getitem__(self, key: str) -> Any:
|
|
666
|
+
BuildxBuilderRemote.__key_warning(key)
|
|
667
|
+
return super().__getitem__(key)
|
|
668
|
+
|
|
669
|
+
def get(self, key: str, default = None) -> Any:
|
|
670
|
+
BuildxBuilderRemote.__key_warning(key)
|
|
671
|
+
return super().get(key, default)
|
|
672
|
+
|
|
673
|
+
def __init__(__self__, *,
|
|
674
|
+
cacert: Optional[_builtins.str] = None,
|
|
675
|
+
cert: Optional[_builtins.str] = None,
|
|
676
|
+
default_load: Optional[_builtins.bool] = None,
|
|
677
|
+
key: Optional[_builtins.str] = None,
|
|
678
|
+
servername: Optional[_builtins.str] = None):
|
|
679
|
+
"""
|
|
680
|
+
:param _builtins.str cacert: Absolute path to the TLS certificate authority used for validation.
|
|
681
|
+
:param _builtins.str cert: Absolute path to the TLS client certificate to present to buildkitd.
|
|
682
|
+
:param _builtins.bool default_load: Automatically load images to the Docker Engine image store. Defaults to `false`
|
|
683
|
+
:param _builtins.str key: Sets the TLS client key.
|
|
684
|
+
:param _builtins.str servername: TLS server name used in requests.
|
|
685
|
+
"""
|
|
686
|
+
if cacert is not None:
|
|
687
|
+
pulumi.set(__self__, "cacert", cacert)
|
|
688
|
+
if cert is not None:
|
|
689
|
+
pulumi.set(__self__, "cert", cert)
|
|
690
|
+
if default_load is not None:
|
|
691
|
+
pulumi.set(__self__, "default_load", default_load)
|
|
692
|
+
if key is not None:
|
|
693
|
+
pulumi.set(__self__, "key", key)
|
|
694
|
+
if servername is not None:
|
|
695
|
+
pulumi.set(__self__, "servername", servername)
|
|
696
|
+
|
|
697
|
+
@_builtins.property
|
|
698
|
+
@pulumi.getter
|
|
699
|
+
def cacert(self) -> Optional[_builtins.str]:
|
|
700
|
+
"""
|
|
701
|
+
Absolute path to the TLS certificate authority used for validation.
|
|
702
|
+
"""
|
|
703
|
+
return pulumi.get(self, "cacert")
|
|
704
|
+
|
|
705
|
+
@_builtins.property
|
|
706
|
+
@pulumi.getter
|
|
707
|
+
def cert(self) -> Optional[_builtins.str]:
|
|
708
|
+
"""
|
|
709
|
+
Absolute path to the TLS client certificate to present to buildkitd.
|
|
710
|
+
"""
|
|
711
|
+
return pulumi.get(self, "cert")
|
|
712
|
+
|
|
713
|
+
@_builtins.property
|
|
714
|
+
@pulumi.getter(name="defaultLoad")
|
|
715
|
+
def default_load(self) -> Optional[_builtins.bool]:
|
|
716
|
+
"""
|
|
717
|
+
Automatically load images to the Docker Engine image store. Defaults to `false`
|
|
718
|
+
"""
|
|
719
|
+
return pulumi.get(self, "default_load")
|
|
720
|
+
|
|
721
|
+
@_builtins.property
|
|
722
|
+
@pulumi.getter
|
|
723
|
+
def key(self) -> Optional[_builtins.str]:
|
|
724
|
+
"""
|
|
725
|
+
Sets the TLS client key.
|
|
726
|
+
"""
|
|
727
|
+
return pulumi.get(self, "key")
|
|
728
|
+
|
|
729
|
+
@_builtins.property
|
|
730
|
+
@pulumi.getter
|
|
731
|
+
def servername(self) -> Optional[_builtins.str]:
|
|
732
|
+
"""
|
|
733
|
+
TLS server name used in requests.
|
|
734
|
+
"""
|
|
735
|
+
return pulumi.get(self, "servername")
|
|
736
|
+
|
|
737
|
+
|
|
86
738
|
@pulumi.output_type
|
|
87
739
|
class ContainerCapabilities(dict):
|
|
88
740
|
def __init__(__self__, *,
|
|
89
|
-
adds: Optional[Sequence[
|
|
90
|
-
drops: Optional[Sequence[
|
|
741
|
+
adds: Optional[Sequence[_builtins.str]] = None,
|
|
742
|
+
drops: Optional[Sequence[_builtins.str]] = None):
|
|
91
743
|
"""
|
|
92
|
-
:param Sequence[
|
|
93
|
-
:param Sequence[
|
|
744
|
+
:param Sequence[_builtins.str] adds: List of linux capabilities to add.
|
|
745
|
+
:param Sequence[_builtins.str] drops: List of linux capabilities to drop.
|
|
94
746
|
"""
|
|
95
747
|
if adds is not None:
|
|
96
748
|
pulumi.set(__self__, "adds", adds)
|
|
97
749
|
if drops is not None:
|
|
98
750
|
pulumi.set(__self__, "drops", drops)
|
|
99
751
|
|
|
100
|
-
@property
|
|
752
|
+
@_builtins.property
|
|
101
753
|
@pulumi.getter
|
|
102
|
-
def adds(self) -> Optional[Sequence[
|
|
754
|
+
def adds(self) -> Optional[Sequence[_builtins.str]]:
|
|
103
755
|
"""
|
|
104
756
|
List of linux capabilities to add.
|
|
105
757
|
"""
|
|
106
758
|
return pulumi.get(self, "adds")
|
|
107
759
|
|
|
108
|
-
@property
|
|
760
|
+
@_builtins.property
|
|
109
761
|
@pulumi.getter
|
|
110
|
-
def drops(self) -> Optional[Sequence[
|
|
762
|
+
def drops(self) -> Optional[Sequence[_builtins.str]]:
|
|
111
763
|
"""
|
|
112
764
|
List of linux capabilities to drop.
|
|
113
765
|
"""
|
|
@@ -136,13 +788,13 @@ class ContainerDevice(dict):
|
|
|
136
788
|
return super().get(key, default)
|
|
137
789
|
|
|
138
790
|
def __init__(__self__, *,
|
|
139
|
-
host_path:
|
|
140
|
-
container_path: Optional[
|
|
141
|
-
permissions: Optional[
|
|
791
|
+
host_path: _builtins.str,
|
|
792
|
+
container_path: Optional[_builtins.str] = None,
|
|
793
|
+
permissions: Optional[_builtins.str] = None):
|
|
142
794
|
"""
|
|
143
|
-
:param
|
|
144
|
-
:param
|
|
145
|
-
:param
|
|
795
|
+
:param _builtins.str host_path: The path on the host where the device is located.
|
|
796
|
+
:param _builtins.str container_path: The path in the container where the device will be bound.
|
|
797
|
+
:param _builtins.str permissions: The cgroup permissions given to the container to access the device. Defaults to `rwm`.
|
|
146
798
|
"""
|
|
147
799
|
pulumi.set(__self__, "host_path", host_path)
|
|
148
800
|
if container_path is not None:
|
|
@@ -150,25 +802,25 @@ class ContainerDevice(dict):
|
|
|
150
802
|
if permissions is not None:
|
|
151
803
|
pulumi.set(__self__, "permissions", permissions)
|
|
152
804
|
|
|
153
|
-
@property
|
|
805
|
+
@_builtins.property
|
|
154
806
|
@pulumi.getter(name="hostPath")
|
|
155
|
-
def host_path(self) ->
|
|
807
|
+
def host_path(self) -> _builtins.str:
|
|
156
808
|
"""
|
|
157
809
|
The path on the host where the device is located.
|
|
158
810
|
"""
|
|
159
811
|
return pulumi.get(self, "host_path")
|
|
160
812
|
|
|
161
|
-
@property
|
|
813
|
+
@_builtins.property
|
|
162
814
|
@pulumi.getter(name="containerPath")
|
|
163
|
-
def container_path(self) -> Optional[
|
|
815
|
+
def container_path(self) -> Optional[_builtins.str]:
|
|
164
816
|
"""
|
|
165
817
|
The path in the container where the device will be bound.
|
|
166
818
|
"""
|
|
167
819
|
return pulumi.get(self, "container_path")
|
|
168
820
|
|
|
169
|
-
@property
|
|
821
|
+
@_builtins.property
|
|
170
822
|
@pulumi.getter
|
|
171
|
-
def permissions(self) -> Optional[
|
|
823
|
+
def permissions(self) -> Optional[_builtins.str]:
|
|
172
824
|
"""
|
|
173
825
|
The cgroup permissions given to the container to access the device. Defaults to `rwm`.
|
|
174
826
|
"""
|
|
@@ -197,19 +849,19 @@ class ContainerHealthcheck(dict):
|
|
|
197
849
|
return super().get(key, default)
|
|
198
850
|
|
|
199
851
|
def __init__(__self__, *,
|
|
200
|
-
tests: Sequence[
|
|
201
|
-
interval: Optional[
|
|
202
|
-
retries: Optional[
|
|
203
|
-
start_interval: Optional[
|
|
204
|
-
start_period: Optional[
|
|
205
|
-
timeout: Optional[
|
|
206
|
-
"""
|
|
207
|
-
:param Sequence[
|
|
208
|
-
:param
|
|
209
|
-
:param
|
|
210
|
-
:param
|
|
211
|
-
:param
|
|
212
|
-
:param
|
|
852
|
+
tests: Sequence[_builtins.str],
|
|
853
|
+
interval: Optional[_builtins.str] = None,
|
|
854
|
+
retries: Optional[_builtins.int] = None,
|
|
855
|
+
start_interval: Optional[_builtins.str] = None,
|
|
856
|
+
start_period: Optional[_builtins.str] = None,
|
|
857
|
+
timeout: Optional[_builtins.str] = None):
|
|
858
|
+
"""
|
|
859
|
+
:param Sequence[_builtins.str] tests: Command to run to check health. For example, to run `curl -f localhost/health` set the command to be `["CMD", "curl", "-f", "localhost/health"]`.
|
|
860
|
+
:param _builtins.str interval: Time between running the check (ms|s|m|h). Defaults to `0s`.
|
|
861
|
+
:param _builtins.int retries: Consecutive failures needed to report unhealthy. Defaults to `0`.
|
|
862
|
+
:param _builtins.str start_interval: Interval before the healthcheck starts (ms|s|m|h). Defaults to `0s`.
|
|
863
|
+
:param _builtins.str start_period: Start period for the container to initialize before counting retries towards unstable (ms|s|m|h). Defaults to `0s`.
|
|
864
|
+
:param _builtins.str timeout: Maximum time to allow one check to run (ms|s|m|h). Defaults to `0s`.
|
|
213
865
|
"""
|
|
214
866
|
pulumi.set(__self__, "tests", tests)
|
|
215
867
|
if interval is not None:
|
|
@@ -223,49 +875,49 @@ class ContainerHealthcheck(dict):
|
|
|
223
875
|
if timeout is not None:
|
|
224
876
|
pulumi.set(__self__, "timeout", timeout)
|
|
225
877
|
|
|
226
|
-
@property
|
|
878
|
+
@_builtins.property
|
|
227
879
|
@pulumi.getter
|
|
228
|
-
def tests(self) -> Sequence[
|
|
880
|
+
def tests(self) -> Sequence[_builtins.str]:
|
|
229
881
|
"""
|
|
230
882
|
Command to run to check health. For example, to run `curl -f localhost/health` set the command to be `["CMD", "curl", "-f", "localhost/health"]`.
|
|
231
883
|
"""
|
|
232
884
|
return pulumi.get(self, "tests")
|
|
233
885
|
|
|
234
|
-
@property
|
|
886
|
+
@_builtins.property
|
|
235
887
|
@pulumi.getter
|
|
236
|
-
def interval(self) -> Optional[
|
|
888
|
+
def interval(self) -> Optional[_builtins.str]:
|
|
237
889
|
"""
|
|
238
890
|
Time between running the check (ms|s|m|h). Defaults to `0s`.
|
|
239
891
|
"""
|
|
240
892
|
return pulumi.get(self, "interval")
|
|
241
893
|
|
|
242
|
-
@property
|
|
894
|
+
@_builtins.property
|
|
243
895
|
@pulumi.getter
|
|
244
|
-
def retries(self) -> Optional[
|
|
896
|
+
def retries(self) -> Optional[_builtins.int]:
|
|
245
897
|
"""
|
|
246
898
|
Consecutive failures needed to report unhealthy. Defaults to `0`.
|
|
247
899
|
"""
|
|
248
900
|
return pulumi.get(self, "retries")
|
|
249
901
|
|
|
250
|
-
@property
|
|
902
|
+
@_builtins.property
|
|
251
903
|
@pulumi.getter(name="startInterval")
|
|
252
|
-
def start_interval(self) -> Optional[
|
|
904
|
+
def start_interval(self) -> Optional[_builtins.str]:
|
|
253
905
|
"""
|
|
254
906
|
Interval before the healthcheck starts (ms|s|m|h). Defaults to `0s`.
|
|
255
907
|
"""
|
|
256
908
|
return pulumi.get(self, "start_interval")
|
|
257
909
|
|
|
258
|
-
@property
|
|
910
|
+
@_builtins.property
|
|
259
911
|
@pulumi.getter(name="startPeriod")
|
|
260
|
-
def start_period(self) -> Optional[
|
|
912
|
+
def start_period(self) -> Optional[_builtins.str]:
|
|
261
913
|
"""
|
|
262
914
|
Start period for the container to initialize before counting retries towards unstable (ms|s|m|h). Defaults to `0s`.
|
|
263
915
|
"""
|
|
264
916
|
return pulumi.get(self, "start_period")
|
|
265
917
|
|
|
266
|
-
@property
|
|
918
|
+
@_builtins.property
|
|
267
919
|
@pulumi.getter
|
|
268
|
-
def timeout(self) -> Optional[
|
|
920
|
+
def timeout(self) -> Optional[_builtins.str]:
|
|
269
921
|
"""
|
|
270
922
|
Maximum time to allow one check to run (ms|s|m|h). Defaults to `0s`.
|
|
271
923
|
"""
|
|
@@ -275,26 +927,26 @@ class ContainerHealthcheck(dict):
|
|
|
275
927
|
@pulumi.output_type
|
|
276
928
|
class ContainerHost(dict):
|
|
277
929
|
def __init__(__self__, *,
|
|
278
|
-
host:
|
|
279
|
-
ip:
|
|
930
|
+
host: _builtins.str,
|
|
931
|
+
ip: _builtins.str):
|
|
280
932
|
"""
|
|
281
|
-
:param
|
|
282
|
-
:param
|
|
933
|
+
:param _builtins.str host: Hostname to add
|
|
934
|
+
:param _builtins.str ip: IP address this hostname should resolve to.
|
|
283
935
|
"""
|
|
284
936
|
pulumi.set(__self__, "host", host)
|
|
285
937
|
pulumi.set(__self__, "ip", ip)
|
|
286
938
|
|
|
287
|
-
@property
|
|
939
|
+
@_builtins.property
|
|
288
940
|
@pulumi.getter
|
|
289
|
-
def host(self) ->
|
|
941
|
+
def host(self) -> _builtins.str:
|
|
290
942
|
"""
|
|
291
943
|
Hostname to add
|
|
292
944
|
"""
|
|
293
945
|
return pulumi.get(self, "host")
|
|
294
946
|
|
|
295
|
-
@property
|
|
947
|
+
@_builtins.property
|
|
296
948
|
@pulumi.getter
|
|
297
|
-
def ip(self) ->
|
|
949
|
+
def ip(self) -> _builtins.str:
|
|
298
950
|
"""
|
|
299
951
|
IP address this hostname should resolve to.
|
|
300
952
|
"""
|
|
@@ -304,26 +956,26 @@ class ContainerHost(dict):
|
|
|
304
956
|
@pulumi.output_type
|
|
305
957
|
class ContainerLabel(dict):
|
|
306
958
|
def __init__(__self__, *,
|
|
307
|
-
label:
|
|
308
|
-
value:
|
|
959
|
+
label: _builtins.str,
|
|
960
|
+
value: _builtins.str):
|
|
309
961
|
"""
|
|
310
|
-
:param
|
|
311
|
-
:param
|
|
962
|
+
:param _builtins.str label: Name of the label
|
|
963
|
+
:param _builtins.str value: Value of the label
|
|
312
964
|
"""
|
|
313
965
|
pulumi.set(__self__, "label", label)
|
|
314
966
|
pulumi.set(__self__, "value", value)
|
|
315
967
|
|
|
316
|
-
@property
|
|
968
|
+
@_builtins.property
|
|
317
969
|
@pulumi.getter
|
|
318
|
-
def label(self) ->
|
|
970
|
+
def label(self) -> _builtins.str:
|
|
319
971
|
"""
|
|
320
972
|
Name of the label
|
|
321
973
|
"""
|
|
322
974
|
return pulumi.get(self, "label")
|
|
323
975
|
|
|
324
|
-
@property
|
|
976
|
+
@_builtins.property
|
|
325
977
|
@pulumi.getter
|
|
326
|
-
def value(self) ->
|
|
978
|
+
def value(self) -> _builtins.str:
|
|
327
979
|
"""
|
|
328
980
|
Value of the label
|
|
329
981
|
"""
|
|
@@ -356,19 +1008,19 @@ class ContainerMount(dict):
|
|
|
356
1008
|
return super().get(key, default)
|
|
357
1009
|
|
|
358
1010
|
def __init__(__self__, *,
|
|
359
|
-
target:
|
|
360
|
-
type:
|
|
1011
|
+
target: _builtins.str,
|
|
1012
|
+
type: _builtins.str,
|
|
361
1013
|
bind_options: Optional['outputs.ContainerMountBindOptions'] = None,
|
|
362
|
-
read_only: Optional[
|
|
363
|
-
source: Optional[
|
|
1014
|
+
read_only: Optional[_builtins.bool] = None,
|
|
1015
|
+
source: Optional[_builtins.str] = None,
|
|
364
1016
|
tmpfs_options: Optional['outputs.ContainerMountTmpfsOptions'] = None,
|
|
365
1017
|
volume_options: Optional['outputs.ContainerMountVolumeOptions'] = None):
|
|
366
1018
|
"""
|
|
367
|
-
:param
|
|
368
|
-
:param
|
|
1019
|
+
:param _builtins.str target: Container path
|
|
1020
|
+
:param _builtins.str type: The mount type
|
|
369
1021
|
:param 'ContainerMountBindOptionsArgs' bind_options: Optional configuration for the bind type.
|
|
370
|
-
:param
|
|
371
|
-
:param
|
|
1022
|
+
:param _builtins.bool read_only: Whether the mount should be read-only.
|
|
1023
|
+
:param _builtins.str source: Mount source (e.g. a volume name, a host path).
|
|
372
1024
|
:param 'ContainerMountTmpfsOptionsArgs' tmpfs_options: Optional configuration for the tmpfs type.
|
|
373
1025
|
:param 'ContainerMountVolumeOptionsArgs' volume_options: Optional configuration for the volume type.
|
|
374
1026
|
"""
|
|
@@ -385,23 +1037,23 @@ class ContainerMount(dict):
|
|
|
385
1037
|
if volume_options is not None:
|
|
386
1038
|
pulumi.set(__self__, "volume_options", volume_options)
|
|
387
1039
|
|
|
388
|
-
@property
|
|
1040
|
+
@_builtins.property
|
|
389
1041
|
@pulumi.getter
|
|
390
|
-
def target(self) ->
|
|
1042
|
+
def target(self) -> _builtins.str:
|
|
391
1043
|
"""
|
|
392
1044
|
Container path
|
|
393
1045
|
"""
|
|
394
1046
|
return pulumi.get(self, "target")
|
|
395
1047
|
|
|
396
|
-
@property
|
|
1048
|
+
@_builtins.property
|
|
397
1049
|
@pulumi.getter
|
|
398
|
-
def type(self) ->
|
|
1050
|
+
def type(self) -> _builtins.str:
|
|
399
1051
|
"""
|
|
400
1052
|
The mount type
|
|
401
1053
|
"""
|
|
402
1054
|
return pulumi.get(self, "type")
|
|
403
1055
|
|
|
404
|
-
@property
|
|
1056
|
+
@_builtins.property
|
|
405
1057
|
@pulumi.getter(name="bindOptions")
|
|
406
1058
|
def bind_options(self) -> Optional['outputs.ContainerMountBindOptions']:
|
|
407
1059
|
"""
|
|
@@ -409,23 +1061,23 @@ class ContainerMount(dict):
|
|
|
409
1061
|
"""
|
|
410
1062
|
return pulumi.get(self, "bind_options")
|
|
411
1063
|
|
|
412
|
-
@property
|
|
1064
|
+
@_builtins.property
|
|
413
1065
|
@pulumi.getter(name="readOnly")
|
|
414
|
-
def read_only(self) -> Optional[
|
|
1066
|
+
def read_only(self) -> Optional[_builtins.bool]:
|
|
415
1067
|
"""
|
|
416
1068
|
Whether the mount should be read-only.
|
|
417
1069
|
"""
|
|
418
1070
|
return pulumi.get(self, "read_only")
|
|
419
1071
|
|
|
420
|
-
@property
|
|
1072
|
+
@_builtins.property
|
|
421
1073
|
@pulumi.getter
|
|
422
|
-
def source(self) -> Optional[
|
|
1074
|
+
def source(self) -> Optional[_builtins.str]:
|
|
423
1075
|
"""
|
|
424
1076
|
Mount source (e.g. a volume name, a host path).
|
|
425
1077
|
"""
|
|
426
1078
|
return pulumi.get(self, "source")
|
|
427
1079
|
|
|
428
|
-
@property
|
|
1080
|
+
@_builtins.property
|
|
429
1081
|
@pulumi.getter(name="tmpfsOptions")
|
|
430
1082
|
def tmpfs_options(self) -> Optional['outputs.ContainerMountTmpfsOptions']:
|
|
431
1083
|
"""
|
|
@@ -433,7 +1085,7 @@ class ContainerMount(dict):
|
|
|
433
1085
|
"""
|
|
434
1086
|
return pulumi.get(self, "tmpfs_options")
|
|
435
1087
|
|
|
436
|
-
@property
|
|
1088
|
+
@_builtins.property
|
|
437
1089
|
@pulumi.getter(name="volumeOptions")
|
|
438
1090
|
def volume_options(self) -> Optional['outputs.ContainerMountVolumeOptions']:
|
|
439
1091
|
"""
|
|
@@ -445,16 +1097,16 @@ class ContainerMount(dict):
|
|
|
445
1097
|
@pulumi.output_type
|
|
446
1098
|
class ContainerMountBindOptions(dict):
|
|
447
1099
|
def __init__(__self__, *,
|
|
448
|
-
propagation: Optional[
|
|
1100
|
+
propagation: Optional[_builtins.str] = None):
|
|
449
1101
|
"""
|
|
450
|
-
:param
|
|
1102
|
+
:param _builtins.str propagation: A propagation mode with the value.
|
|
451
1103
|
"""
|
|
452
1104
|
if propagation is not None:
|
|
453
1105
|
pulumi.set(__self__, "propagation", propagation)
|
|
454
1106
|
|
|
455
|
-
@property
|
|
1107
|
+
@_builtins.property
|
|
456
1108
|
@pulumi.getter
|
|
457
|
-
def propagation(self) -> Optional[
|
|
1109
|
+
def propagation(self) -> Optional[_builtins.str]:
|
|
458
1110
|
"""
|
|
459
1111
|
A propagation mode with the value.
|
|
460
1112
|
"""
|
|
@@ -481,28 +1133,28 @@ class ContainerMountTmpfsOptions(dict):
|
|
|
481
1133
|
return super().get(key, default)
|
|
482
1134
|
|
|
483
1135
|
def __init__(__self__, *,
|
|
484
|
-
mode: Optional[
|
|
485
|
-
size_bytes: Optional[
|
|
1136
|
+
mode: Optional[_builtins.int] = None,
|
|
1137
|
+
size_bytes: Optional[_builtins.int] = None):
|
|
486
1138
|
"""
|
|
487
|
-
:param
|
|
488
|
-
:param
|
|
1139
|
+
:param _builtins.int mode: The permission mode for the tmpfs mount in an integer.
|
|
1140
|
+
:param _builtins.int size_bytes: The size for the tmpfs mount in bytes.
|
|
489
1141
|
"""
|
|
490
1142
|
if mode is not None:
|
|
491
1143
|
pulumi.set(__self__, "mode", mode)
|
|
492
1144
|
if size_bytes is not None:
|
|
493
1145
|
pulumi.set(__self__, "size_bytes", size_bytes)
|
|
494
1146
|
|
|
495
|
-
@property
|
|
1147
|
+
@_builtins.property
|
|
496
1148
|
@pulumi.getter
|
|
497
|
-
def mode(self) -> Optional[
|
|
1149
|
+
def mode(self) -> Optional[_builtins.int]:
|
|
498
1150
|
"""
|
|
499
1151
|
The permission mode for the tmpfs mount in an integer.
|
|
500
1152
|
"""
|
|
501
1153
|
return pulumi.get(self, "mode")
|
|
502
1154
|
|
|
503
|
-
@property
|
|
1155
|
+
@_builtins.property
|
|
504
1156
|
@pulumi.getter(name="sizeBytes")
|
|
505
|
-
def size_bytes(self) -> Optional[
|
|
1157
|
+
def size_bytes(self) -> Optional[_builtins.int]:
|
|
506
1158
|
"""
|
|
507
1159
|
The size for the tmpfs mount in bytes.
|
|
508
1160
|
"""
|
|
@@ -533,17 +1185,17 @@ class ContainerMountVolumeOptions(dict):
|
|
|
533
1185
|
return super().get(key, default)
|
|
534
1186
|
|
|
535
1187
|
def __init__(__self__, *,
|
|
536
|
-
driver_name: Optional[
|
|
537
|
-
driver_options: Optional[Mapping[str,
|
|
1188
|
+
driver_name: Optional[_builtins.str] = None,
|
|
1189
|
+
driver_options: Optional[Mapping[str, _builtins.str]] = None,
|
|
538
1190
|
labels: Optional[Sequence['outputs.ContainerMountVolumeOptionsLabel']] = None,
|
|
539
|
-
no_copy: Optional[
|
|
540
|
-
subpath: Optional[
|
|
1191
|
+
no_copy: Optional[_builtins.bool] = None,
|
|
1192
|
+
subpath: Optional[_builtins.str] = None):
|
|
541
1193
|
"""
|
|
542
|
-
:param
|
|
543
|
-
:param Mapping[str,
|
|
1194
|
+
:param _builtins.str driver_name: Name of the driver to use to create the volume.
|
|
1195
|
+
:param Mapping[str, _builtins.str] driver_options: key/value map of driver specific options.
|
|
544
1196
|
:param Sequence['ContainerMountVolumeOptionsLabelArgs'] labels: User-defined key/value metadata.
|
|
545
|
-
:param
|
|
546
|
-
:param
|
|
1197
|
+
:param _builtins.bool no_copy: Populate volume with data from the target.
|
|
1198
|
+
:param _builtins.str subpath: Path within the volume to mount. Requires docker server version 1.45 or higher.
|
|
547
1199
|
"""
|
|
548
1200
|
if driver_name is not None:
|
|
549
1201
|
pulumi.set(__self__, "driver_name", driver_name)
|
|
@@ -556,23 +1208,23 @@ class ContainerMountVolumeOptions(dict):
|
|
|
556
1208
|
if subpath is not None:
|
|
557
1209
|
pulumi.set(__self__, "subpath", subpath)
|
|
558
1210
|
|
|
559
|
-
@property
|
|
1211
|
+
@_builtins.property
|
|
560
1212
|
@pulumi.getter(name="driverName")
|
|
561
|
-
def driver_name(self) -> Optional[
|
|
1213
|
+
def driver_name(self) -> Optional[_builtins.str]:
|
|
562
1214
|
"""
|
|
563
1215
|
Name of the driver to use to create the volume.
|
|
564
1216
|
"""
|
|
565
1217
|
return pulumi.get(self, "driver_name")
|
|
566
1218
|
|
|
567
|
-
@property
|
|
1219
|
+
@_builtins.property
|
|
568
1220
|
@pulumi.getter(name="driverOptions")
|
|
569
|
-
def driver_options(self) -> Optional[Mapping[str,
|
|
1221
|
+
def driver_options(self) -> Optional[Mapping[str, _builtins.str]]:
|
|
570
1222
|
"""
|
|
571
1223
|
key/value map of driver specific options.
|
|
572
1224
|
"""
|
|
573
1225
|
return pulumi.get(self, "driver_options")
|
|
574
1226
|
|
|
575
|
-
@property
|
|
1227
|
+
@_builtins.property
|
|
576
1228
|
@pulumi.getter
|
|
577
1229
|
def labels(self) -> Optional[Sequence['outputs.ContainerMountVolumeOptionsLabel']]:
|
|
578
1230
|
"""
|
|
@@ -580,17 +1232,17 @@ class ContainerMountVolumeOptions(dict):
|
|
|
580
1232
|
"""
|
|
581
1233
|
return pulumi.get(self, "labels")
|
|
582
1234
|
|
|
583
|
-
@property
|
|
1235
|
+
@_builtins.property
|
|
584
1236
|
@pulumi.getter(name="noCopy")
|
|
585
|
-
def no_copy(self) -> Optional[
|
|
1237
|
+
def no_copy(self) -> Optional[_builtins.bool]:
|
|
586
1238
|
"""
|
|
587
1239
|
Populate volume with data from the target.
|
|
588
1240
|
"""
|
|
589
1241
|
return pulumi.get(self, "no_copy")
|
|
590
1242
|
|
|
591
|
-
@property
|
|
1243
|
+
@_builtins.property
|
|
592
1244
|
@pulumi.getter
|
|
593
|
-
def subpath(self) -> Optional[
|
|
1245
|
+
def subpath(self) -> Optional[_builtins.str]:
|
|
594
1246
|
"""
|
|
595
1247
|
Path within the volume to mount. Requires docker server version 1.45 or higher.
|
|
596
1248
|
"""
|
|
@@ -600,26 +1252,26 @@ class ContainerMountVolumeOptions(dict):
|
|
|
600
1252
|
@pulumi.output_type
|
|
601
1253
|
class ContainerMountVolumeOptionsLabel(dict):
|
|
602
1254
|
def __init__(__self__, *,
|
|
603
|
-
label:
|
|
604
|
-
value:
|
|
1255
|
+
label: _builtins.str,
|
|
1256
|
+
value: _builtins.str):
|
|
605
1257
|
"""
|
|
606
|
-
:param
|
|
607
|
-
:param
|
|
1258
|
+
:param _builtins.str label: Name of the label
|
|
1259
|
+
:param _builtins.str value: Value of the label
|
|
608
1260
|
"""
|
|
609
1261
|
pulumi.set(__self__, "label", label)
|
|
610
1262
|
pulumi.set(__self__, "value", value)
|
|
611
1263
|
|
|
612
|
-
@property
|
|
1264
|
+
@_builtins.property
|
|
613
1265
|
@pulumi.getter
|
|
614
|
-
def label(self) ->
|
|
1266
|
+
def label(self) -> _builtins.str:
|
|
615
1267
|
"""
|
|
616
1268
|
Name of the label
|
|
617
1269
|
"""
|
|
618
1270
|
return pulumi.get(self, "label")
|
|
619
1271
|
|
|
620
|
-
@property
|
|
1272
|
+
@_builtins.property
|
|
621
1273
|
@pulumi.getter
|
|
622
|
-
def value(self) ->
|
|
1274
|
+
def value(self) -> _builtins.str:
|
|
623
1275
|
"""
|
|
624
1276
|
Value of the label
|
|
625
1277
|
"""
|
|
@@ -658,23 +1310,23 @@ class ContainerNetworkData(dict):
|
|
|
658
1310
|
return super().get(key, default)
|
|
659
1311
|
|
|
660
1312
|
def __init__(__self__, *,
|
|
661
|
-
gateway: Optional[
|
|
662
|
-
global_ipv6_address: Optional[
|
|
663
|
-
global_ipv6_prefix_length: Optional[
|
|
664
|
-
ip_address: Optional[
|
|
665
|
-
ip_prefix_length: Optional[
|
|
666
|
-
ipv6_gateway: Optional[
|
|
667
|
-
mac_address: Optional[
|
|
668
|
-
network_name: Optional[
|
|
669
|
-
"""
|
|
670
|
-
:param
|
|
671
|
-
:param
|
|
672
|
-
:param
|
|
673
|
-
:param
|
|
674
|
-
:param
|
|
675
|
-
:param
|
|
676
|
-
:param
|
|
677
|
-
:param
|
|
1313
|
+
gateway: Optional[_builtins.str] = None,
|
|
1314
|
+
global_ipv6_address: Optional[_builtins.str] = None,
|
|
1315
|
+
global_ipv6_prefix_length: Optional[_builtins.int] = None,
|
|
1316
|
+
ip_address: Optional[_builtins.str] = None,
|
|
1317
|
+
ip_prefix_length: Optional[_builtins.int] = None,
|
|
1318
|
+
ipv6_gateway: Optional[_builtins.str] = None,
|
|
1319
|
+
mac_address: Optional[_builtins.str] = None,
|
|
1320
|
+
network_name: Optional[_builtins.str] = None):
|
|
1321
|
+
"""
|
|
1322
|
+
:param _builtins.str gateway: The network gateway of the container.
|
|
1323
|
+
:param _builtins.str global_ipv6_address: The IPV6 address of the container.
|
|
1324
|
+
:param _builtins.int global_ipv6_prefix_length: The IPV6 prefix length address of the container.
|
|
1325
|
+
:param _builtins.str ip_address: The IP address of the container.
|
|
1326
|
+
:param _builtins.int ip_prefix_length: The IP prefix length of the container.
|
|
1327
|
+
:param _builtins.str ipv6_gateway: The IPV6 gateway of the container.
|
|
1328
|
+
:param _builtins.str mac_address: The MAC address of the container.
|
|
1329
|
+
:param _builtins.str network_name: The name of the network
|
|
678
1330
|
"""
|
|
679
1331
|
if gateway is not None:
|
|
680
1332
|
pulumi.set(__self__, "gateway", gateway)
|
|
@@ -693,65 +1345,65 @@ class ContainerNetworkData(dict):
|
|
|
693
1345
|
if network_name is not None:
|
|
694
1346
|
pulumi.set(__self__, "network_name", network_name)
|
|
695
1347
|
|
|
696
|
-
@property
|
|
1348
|
+
@_builtins.property
|
|
697
1349
|
@pulumi.getter
|
|
698
|
-
def gateway(self) -> Optional[
|
|
1350
|
+
def gateway(self) -> Optional[_builtins.str]:
|
|
699
1351
|
"""
|
|
700
1352
|
The network gateway of the container.
|
|
701
1353
|
"""
|
|
702
1354
|
return pulumi.get(self, "gateway")
|
|
703
1355
|
|
|
704
|
-
@property
|
|
1356
|
+
@_builtins.property
|
|
705
1357
|
@pulumi.getter(name="globalIpv6Address")
|
|
706
|
-
def global_ipv6_address(self) -> Optional[
|
|
1358
|
+
def global_ipv6_address(self) -> Optional[_builtins.str]:
|
|
707
1359
|
"""
|
|
708
1360
|
The IPV6 address of the container.
|
|
709
1361
|
"""
|
|
710
1362
|
return pulumi.get(self, "global_ipv6_address")
|
|
711
1363
|
|
|
712
|
-
@property
|
|
1364
|
+
@_builtins.property
|
|
713
1365
|
@pulumi.getter(name="globalIpv6PrefixLength")
|
|
714
|
-
def global_ipv6_prefix_length(self) -> Optional[
|
|
1366
|
+
def global_ipv6_prefix_length(self) -> Optional[_builtins.int]:
|
|
715
1367
|
"""
|
|
716
1368
|
The IPV6 prefix length address of the container.
|
|
717
1369
|
"""
|
|
718
1370
|
return pulumi.get(self, "global_ipv6_prefix_length")
|
|
719
1371
|
|
|
720
|
-
@property
|
|
1372
|
+
@_builtins.property
|
|
721
1373
|
@pulumi.getter(name="ipAddress")
|
|
722
|
-
def ip_address(self) -> Optional[
|
|
1374
|
+
def ip_address(self) -> Optional[_builtins.str]:
|
|
723
1375
|
"""
|
|
724
1376
|
The IP address of the container.
|
|
725
1377
|
"""
|
|
726
1378
|
return pulumi.get(self, "ip_address")
|
|
727
1379
|
|
|
728
|
-
@property
|
|
1380
|
+
@_builtins.property
|
|
729
1381
|
@pulumi.getter(name="ipPrefixLength")
|
|
730
|
-
def ip_prefix_length(self) -> Optional[
|
|
1382
|
+
def ip_prefix_length(self) -> Optional[_builtins.int]:
|
|
731
1383
|
"""
|
|
732
1384
|
The IP prefix length of the container.
|
|
733
1385
|
"""
|
|
734
1386
|
return pulumi.get(self, "ip_prefix_length")
|
|
735
1387
|
|
|
736
|
-
@property
|
|
1388
|
+
@_builtins.property
|
|
737
1389
|
@pulumi.getter(name="ipv6Gateway")
|
|
738
|
-
def ipv6_gateway(self) -> Optional[
|
|
1390
|
+
def ipv6_gateway(self) -> Optional[_builtins.str]:
|
|
739
1391
|
"""
|
|
740
1392
|
The IPV6 gateway of the container.
|
|
741
1393
|
"""
|
|
742
1394
|
return pulumi.get(self, "ipv6_gateway")
|
|
743
1395
|
|
|
744
|
-
@property
|
|
1396
|
+
@_builtins.property
|
|
745
1397
|
@pulumi.getter(name="macAddress")
|
|
746
|
-
def mac_address(self) -> Optional[
|
|
1398
|
+
def mac_address(self) -> Optional[_builtins.str]:
|
|
747
1399
|
"""
|
|
748
1400
|
The MAC address of the container.
|
|
749
1401
|
"""
|
|
750
1402
|
return pulumi.get(self, "mac_address")
|
|
751
1403
|
|
|
752
|
-
@property
|
|
1404
|
+
@_builtins.property
|
|
753
1405
|
@pulumi.getter(name="networkName")
|
|
754
|
-
def network_name(self) -> Optional[
|
|
1406
|
+
def network_name(self) -> Optional[_builtins.str]:
|
|
755
1407
|
"""
|
|
756
1408
|
The name of the network
|
|
757
1409
|
"""
|
|
@@ -780,15 +1432,15 @@ class ContainerNetworksAdvanced(dict):
|
|
|
780
1432
|
return super().get(key, default)
|
|
781
1433
|
|
|
782
1434
|
def __init__(__self__, *,
|
|
783
|
-
name:
|
|
784
|
-
aliases: Optional[Sequence[
|
|
785
|
-
ipv4_address: Optional[
|
|
786
|
-
ipv6_address: Optional[
|
|
1435
|
+
name: _builtins.str,
|
|
1436
|
+
aliases: Optional[Sequence[_builtins.str]] = None,
|
|
1437
|
+
ipv4_address: Optional[_builtins.str] = None,
|
|
1438
|
+
ipv6_address: Optional[_builtins.str] = None):
|
|
787
1439
|
"""
|
|
788
|
-
:param
|
|
789
|
-
:param Sequence[
|
|
790
|
-
:param
|
|
791
|
-
:param
|
|
1440
|
+
:param _builtins.str name: The name or id of the network to use. You can use `name` or `id` attribute from a `Network` resource.
|
|
1441
|
+
:param Sequence[_builtins.str] aliases: The network aliases of the container in the specific network.
|
|
1442
|
+
:param _builtins.str ipv4_address: The IPV4 address of the container in the specific network.
|
|
1443
|
+
:param _builtins.str ipv6_address: The IPV6 address of the container in the specific network.
|
|
792
1444
|
"""
|
|
793
1445
|
pulumi.set(__self__, "name", name)
|
|
794
1446
|
if aliases is not None:
|
|
@@ -798,33 +1450,33 @@ class ContainerNetworksAdvanced(dict):
|
|
|
798
1450
|
if ipv6_address is not None:
|
|
799
1451
|
pulumi.set(__self__, "ipv6_address", ipv6_address)
|
|
800
1452
|
|
|
801
|
-
@property
|
|
1453
|
+
@_builtins.property
|
|
802
1454
|
@pulumi.getter
|
|
803
|
-
def name(self) ->
|
|
1455
|
+
def name(self) -> _builtins.str:
|
|
804
1456
|
"""
|
|
805
1457
|
The name or id of the network to use. You can use `name` or `id` attribute from a `Network` resource.
|
|
806
1458
|
"""
|
|
807
1459
|
return pulumi.get(self, "name")
|
|
808
1460
|
|
|
809
|
-
@property
|
|
1461
|
+
@_builtins.property
|
|
810
1462
|
@pulumi.getter
|
|
811
|
-
def aliases(self) -> Optional[Sequence[
|
|
1463
|
+
def aliases(self) -> Optional[Sequence[_builtins.str]]:
|
|
812
1464
|
"""
|
|
813
1465
|
The network aliases of the container in the specific network.
|
|
814
1466
|
"""
|
|
815
1467
|
return pulumi.get(self, "aliases")
|
|
816
1468
|
|
|
817
|
-
@property
|
|
1469
|
+
@_builtins.property
|
|
818
1470
|
@pulumi.getter(name="ipv4Address")
|
|
819
|
-
def ipv4_address(self) -> Optional[
|
|
1471
|
+
def ipv4_address(self) -> Optional[_builtins.str]:
|
|
820
1472
|
"""
|
|
821
1473
|
The IPV4 address of the container in the specific network.
|
|
822
1474
|
"""
|
|
823
1475
|
return pulumi.get(self, "ipv4_address")
|
|
824
1476
|
|
|
825
|
-
@property
|
|
1477
|
+
@_builtins.property
|
|
826
1478
|
@pulumi.getter(name="ipv6Address")
|
|
827
|
-
def ipv6_address(self) -> Optional[
|
|
1479
|
+
def ipv6_address(self) -> Optional[_builtins.str]:
|
|
828
1480
|
"""
|
|
829
1481
|
The IPV6 address of the container in the specific network.
|
|
830
1482
|
"""
|
|
@@ -834,15 +1486,15 @@ class ContainerNetworksAdvanced(dict):
|
|
|
834
1486
|
@pulumi.output_type
|
|
835
1487
|
class ContainerPort(dict):
|
|
836
1488
|
def __init__(__self__, *,
|
|
837
|
-
internal:
|
|
838
|
-
external: Optional[
|
|
839
|
-
ip: Optional[
|
|
840
|
-
protocol: Optional[
|
|
1489
|
+
internal: _builtins.int,
|
|
1490
|
+
external: Optional[_builtins.int] = None,
|
|
1491
|
+
ip: Optional[_builtins.str] = None,
|
|
1492
|
+
protocol: Optional[_builtins.str] = None):
|
|
841
1493
|
"""
|
|
842
|
-
:param
|
|
843
|
-
:param
|
|
844
|
-
:param
|
|
845
|
-
:param
|
|
1494
|
+
:param _builtins.int internal: Port within the container.
|
|
1495
|
+
:param _builtins.int external: Port exposed out of the container. If not given a free random port `>= 32768` will be used.
|
|
1496
|
+
:param _builtins.str ip: IP address/mask that can access this port. Defaults to `0.0.0.0`.
|
|
1497
|
+
:param _builtins.str protocol: Protocol that can be used over this port. Defaults to `tcp`.
|
|
846
1498
|
"""
|
|
847
1499
|
pulumi.set(__self__, "internal", internal)
|
|
848
1500
|
if external is not None:
|
|
@@ -852,33 +1504,33 @@ class ContainerPort(dict):
|
|
|
852
1504
|
if protocol is not None:
|
|
853
1505
|
pulumi.set(__self__, "protocol", protocol)
|
|
854
1506
|
|
|
855
|
-
@property
|
|
1507
|
+
@_builtins.property
|
|
856
1508
|
@pulumi.getter
|
|
857
|
-
def internal(self) ->
|
|
1509
|
+
def internal(self) -> _builtins.int:
|
|
858
1510
|
"""
|
|
859
1511
|
Port within the container.
|
|
860
1512
|
"""
|
|
861
1513
|
return pulumi.get(self, "internal")
|
|
862
1514
|
|
|
863
|
-
@property
|
|
1515
|
+
@_builtins.property
|
|
864
1516
|
@pulumi.getter
|
|
865
|
-
def external(self) -> Optional[
|
|
1517
|
+
def external(self) -> Optional[_builtins.int]:
|
|
866
1518
|
"""
|
|
867
1519
|
Port exposed out of the container. If not given a free random port `>= 32768` will be used.
|
|
868
1520
|
"""
|
|
869
1521
|
return pulumi.get(self, "external")
|
|
870
1522
|
|
|
871
|
-
@property
|
|
1523
|
+
@_builtins.property
|
|
872
1524
|
@pulumi.getter
|
|
873
|
-
def ip(self) -> Optional[
|
|
1525
|
+
def ip(self) -> Optional[_builtins.str]:
|
|
874
1526
|
"""
|
|
875
1527
|
IP address/mask that can access this port. Defaults to `0.0.0.0`.
|
|
876
1528
|
"""
|
|
877
1529
|
return pulumi.get(self, "ip")
|
|
878
1530
|
|
|
879
|
-
@property
|
|
1531
|
+
@_builtins.property
|
|
880
1532
|
@pulumi.getter
|
|
881
|
-
def protocol(self) -> Optional[
|
|
1533
|
+
def protocol(self) -> Optional[_builtins.str]:
|
|
882
1534
|
"""
|
|
883
1535
|
Protocol that can be used over this port. Defaults to `tcp`.
|
|
884
1536
|
"""
|
|
@@ -888,37 +1540,37 @@ class ContainerPort(dict):
|
|
|
888
1540
|
@pulumi.output_type
|
|
889
1541
|
class ContainerUlimit(dict):
|
|
890
1542
|
def __init__(__self__, *,
|
|
891
|
-
hard:
|
|
892
|
-
name:
|
|
893
|
-
soft:
|
|
1543
|
+
hard: _builtins.int,
|
|
1544
|
+
name: _builtins.str,
|
|
1545
|
+
soft: _builtins.int):
|
|
894
1546
|
"""
|
|
895
|
-
:param
|
|
896
|
-
:param
|
|
897
|
-
:param
|
|
1547
|
+
:param _builtins.int hard: The hard limit
|
|
1548
|
+
:param _builtins.str name: The name of the ulimit
|
|
1549
|
+
:param _builtins.int soft: The soft limit
|
|
898
1550
|
"""
|
|
899
1551
|
pulumi.set(__self__, "hard", hard)
|
|
900
1552
|
pulumi.set(__self__, "name", name)
|
|
901
1553
|
pulumi.set(__self__, "soft", soft)
|
|
902
1554
|
|
|
903
|
-
@property
|
|
1555
|
+
@_builtins.property
|
|
904
1556
|
@pulumi.getter
|
|
905
|
-
def hard(self) ->
|
|
1557
|
+
def hard(self) -> _builtins.int:
|
|
906
1558
|
"""
|
|
907
1559
|
The hard limit
|
|
908
1560
|
"""
|
|
909
1561
|
return pulumi.get(self, "hard")
|
|
910
1562
|
|
|
911
|
-
@property
|
|
1563
|
+
@_builtins.property
|
|
912
1564
|
@pulumi.getter
|
|
913
|
-
def name(self) ->
|
|
1565
|
+
def name(self) -> _builtins.str:
|
|
914
1566
|
"""
|
|
915
1567
|
The name of the ulimit
|
|
916
1568
|
"""
|
|
917
1569
|
return pulumi.get(self, "name")
|
|
918
1570
|
|
|
919
|
-
@property
|
|
1571
|
+
@_builtins.property
|
|
920
1572
|
@pulumi.getter
|
|
921
|
-
def soft(self) ->
|
|
1573
|
+
def soft(self) -> _builtins.int:
|
|
922
1574
|
"""
|
|
923
1575
|
The soft limit
|
|
924
1576
|
"""
|
|
@@ -947,21 +1599,21 @@ class ContainerUpload(dict):
|
|
|
947
1599
|
return super().get(key, default)
|
|
948
1600
|
|
|
949
1601
|
def __init__(__self__, *,
|
|
950
|
-
file:
|
|
951
|
-
content: Optional[
|
|
952
|
-
content_base64: Optional[
|
|
953
|
-
executable: Optional[
|
|
954
|
-
permissions: Optional[
|
|
955
|
-
source: Optional[
|
|
956
|
-
source_hash: Optional[
|
|
957
|
-
"""
|
|
958
|
-
:param
|
|
959
|
-
:param
|
|
960
|
-
:param
|
|
961
|
-
:param
|
|
962
|
-
:param
|
|
963
|
-
:param
|
|
964
|
-
:param
|
|
1602
|
+
file: _builtins.str,
|
|
1603
|
+
content: Optional[_builtins.str] = None,
|
|
1604
|
+
content_base64: Optional[_builtins.str] = None,
|
|
1605
|
+
executable: Optional[_builtins.bool] = None,
|
|
1606
|
+
permissions: Optional[_builtins.str] = None,
|
|
1607
|
+
source: Optional[_builtins.str] = None,
|
|
1608
|
+
source_hash: Optional[_builtins.str] = None):
|
|
1609
|
+
"""
|
|
1610
|
+
:param _builtins.str file: Path to the file in the container where is upload goes to
|
|
1611
|
+
:param _builtins.str content: Literal string value to use as the object content, which will be uploaded as UTF-8-encoded text. Conflicts with `content_base64` & `source`
|
|
1612
|
+
:param _builtins.str content_base64: Base64-encoded data that will be decoded and uploaded as raw bytes for the object content. This allows safely uploading non-UTF8 binary data, but is recommended only for larger binary content such as the result of the `base64encode` interpolation function. See here for the reason. Conflicts with `content` & `source`
|
|
1613
|
+
:param _builtins.bool executable: If `true`, the file will be uploaded with user executable permission. Defaults to `false`.
|
|
1614
|
+
:param _builtins.str permissions: The permission mode for the file in the container. Has precedence over `executable`.
|
|
1615
|
+
:param _builtins.str source: A filename that references a file which will be uploaded as the object content. This allows for large file uploads that do not get stored in state. Conflicts with `content` & `content_base64`
|
|
1616
|
+
:param _builtins.str source_hash: If using `source`, this will force an update if the file content has updated but the filename has not.
|
|
965
1617
|
"""
|
|
966
1618
|
pulumi.set(__self__, "file", file)
|
|
967
1619
|
if content is not None:
|
|
@@ -977,57 +1629,57 @@ class ContainerUpload(dict):
|
|
|
977
1629
|
if source_hash is not None:
|
|
978
1630
|
pulumi.set(__self__, "source_hash", source_hash)
|
|
979
1631
|
|
|
980
|
-
@property
|
|
1632
|
+
@_builtins.property
|
|
981
1633
|
@pulumi.getter
|
|
982
|
-
def file(self) ->
|
|
1634
|
+
def file(self) -> _builtins.str:
|
|
983
1635
|
"""
|
|
984
1636
|
Path to the file in the container where is upload goes to
|
|
985
1637
|
"""
|
|
986
1638
|
return pulumi.get(self, "file")
|
|
987
1639
|
|
|
988
|
-
@property
|
|
1640
|
+
@_builtins.property
|
|
989
1641
|
@pulumi.getter
|
|
990
|
-
def content(self) -> Optional[
|
|
1642
|
+
def content(self) -> Optional[_builtins.str]:
|
|
991
1643
|
"""
|
|
992
1644
|
Literal string value to use as the object content, which will be uploaded as UTF-8-encoded text. Conflicts with `content_base64` & `source`
|
|
993
1645
|
"""
|
|
994
1646
|
return pulumi.get(self, "content")
|
|
995
1647
|
|
|
996
|
-
@property
|
|
1648
|
+
@_builtins.property
|
|
997
1649
|
@pulumi.getter(name="contentBase64")
|
|
998
|
-
def content_base64(self) -> Optional[
|
|
1650
|
+
def content_base64(self) -> Optional[_builtins.str]:
|
|
999
1651
|
"""
|
|
1000
1652
|
Base64-encoded data that will be decoded and uploaded as raw bytes for the object content. This allows safely uploading non-UTF8 binary data, but is recommended only for larger binary content such as the result of the `base64encode` interpolation function. See here for the reason. Conflicts with `content` & `source`
|
|
1001
1653
|
"""
|
|
1002
1654
|
return pulumi.get(self, "content_base64")
|
|
1003
1655
|
|
|
1004
|
-
@property
|
|
1656
|
+
@_builtins.property
|
|
1005
1657
|
@pulumi.getter
|
|
1006
|
-
def executable(self) -> Optional[
|
|
1658
|
+
def executable(self) -> Optional[_builtins.bool]:
|
|
1007
1659
|
"""
|
|
1008
1660
|
If `true`, the file will be uploaded with user executable permission. Defaults to `false`.
|
|
1009
1661
|
"""
|
|
1010
1662
|
return pulumi.get(self, "executable")
|
|
1011
1663
|
|
|
1012
|
-
@property
|
|
1664
|
+
@_builtins.property
|
|
1013
1665
|
@pulumi.getter
|
|
1014
|
-
def permissions(self) -> Optional[
|
|
1666
|
+
def permissions(self) -> Optional[_builtins.str]:
|
|
1015
1667
|
"""
|
|
1016
1668
|
The permission mode for the file in the container. Has precedence over `executable`.
|
|
1017
1669
|
"""
|
|
1018
1670
|
return pulumi.get(self, "permissions")
|
|
1019
1671
|
|
|
1020
|
-
@property
|
|
1672
|
+
@_builtins.property
|
|
1021
1673
|
@pulumi.getter
|
|
1022
|
-
def source(self) -> Optional[
|
|
1674
|
+
def source(self) -> Optional[_builtins.str]:
|
|
1023
1675
|
"""
|
|
1024
1676
|
A filename that references a file which will be uploaded as the object content. This allows for large file uploads that do not get stored in state. Conflicts with `content` & `content_base64`
|
|
1025
1677
|
"""
|
|
1026
1678
|
return pulumi.get(self, "source")
|
|
1027
1679
|
|
|
1028
|
-
@property
|
|
1680
|
+
@_builtins.property
|
|
1029
1681
|
@pulumi.getter(name="sourceHash")
|
|
1030
|
-
def source_hash(self) -> Optional[
|
|
1682
|
+
def source_hash(self) -> Optional[_builtins.str]:
|
|
1031
1683
|
"""
|
|
1032
1684
|
If using `source`, this will force an update if the file content has updated but the filename has not.
|
|
1033
1685
|
"""
|
|
@@ -1062,17 +1714,17 @@ class ContainerVolume(dict):
|
|
|
1062
1714
|
return super().get(key, default)
|
|
1063
1715
|
|
|
1064
1716
|
def __init__(__self__, *,
|
|
1065
|
-
container_path: Optional[
|
|
1066
|
-
from_container: Optional[
|
|
1067
|
-
host_path: Optional[
|
|
1068
|
-
read_only: Optional[
|
|
1069
|
-
volume_name: Optional[
|
|
1070
|
-
"""
|
|
1071
|
-
:param
|
|
1072
|
-
:param
|
|
1073
|
-
:param
|
|
1074
|
-
:param
|
|
1075
|
-
:param
|
|
1717
|
+
container_path: Optional[_builtins.str] = None,
|
|
1718
|
+
from_container: Optional[_builtins.str] = None,
|
|
1719
|
+
host_path: Optional[_builtins.str] = None,
|
|
1720
|
+
read_only: Optional[_builtins.bool] = None,
|
|
1721
|
+
volume_name: Optional[_builtins.str] = None):
|
|
1722
|
+
"""
|
|
1723
|
+
:param _builtins.str container_path: The path in the container where the volume will be mounted.
|
|
1724
|
+
:param _builtins.str from_container: The container where the volume is coming from.
|
|
1725
|
+
:param _builtins.str host_path: The path on the host where the volume is coming from.
|
|
1726
|
+
:param _builtins.bool read_only: If `true`, this volume will be readonly. Defaults to `false`.
|
|
1727
|
+
:param _builtins.str volume_name: The name of the docker volume which should be mounted.
|
|
1076
1728
|
"""
|
|
1077
1729
|
if container_path is not None:
|
|
1078
1730
|
pulumi.set(__self__, "container_path", container_path)
|
|
@@ -1085,41 +1737,41 @@ class ContainerVolume(dict):
|
|
|
1085
1737
|
if volume_name is not None:
|
|
1086
1738
|
pulumi.set(__self__, "volume_name", volume_name)
|
|
1087
1739
|
|
|
1088
|
-
@property
|
|
1740
|
+
@_builtins.property
|
|
1089
1741
|
@pulumi.getter(name="containerPath")
|
|
1090
|
-
def container_path(self) -> Optional[
|
|
1742
|
+
def container_path(self) -> Optional[_builtins.str]:
|
|
1091
1743
|
"""
|
|
1092
1744
|
The path in the container where the volume will be mounted.
|
|
1093
1745
|
"""
|
|
1094
1746
|
return pulumi.get(self, "container_path")
|
|
1095
1747
|
|
|
1096
|
-
@property
|
|
1748
|
+
@_builtins.property
|
|
1097
1749
|
@pulumi.getter(name="fromContainer")
|
|
1098
|
-
def from_container(self) -> Optional[
|
|
1750
|
+
def from_container(self) -> Optional[_builtins.str]:
|
|
1099
1751
|
"""
|
|
1100
1752
|
The container where the volume is coming from.
|
|
1101
1753
|
"""
|
|
1102
1754
|
return pulumi.get(self, "from_container")
|
|
1103
1755
|
|
|
1104
|
-
@property
|
|
1756
|
+
@_builtins.property
|
|
1105
1757
|
@pulumi.getter(name="hostPath")
|
|
1106
|
-
def host_path(self) -> Optional[
|
|
1758
|
+
def host_path(self) -> Optional[_builtins.str]:
|
|
1107
1759
|
"""
|
|
1108
1760
|
The path on the host where the volume is coming from.
|
|
1109
1761
|
"""
|
|
1110
1762
|
return pulumi.get(self, "host_path")
|
|
1111
1763
|
|
|
1112
|
-
@property
|
|
1764
|
+
@_builtins.property
|
|
1113
1765
|
@pulumi.getter(name="readOnly")
|
|
1114
|
-
def read_only(self) -> Optional[
|
|
1766
|
+
def read_only(self) -> Optional[_builtins.bool]:
|
|
1115
1767
|
"""
|
|
1116
1768
|
If `true`, this volume will be readonly. Defaults to `false`.
|
|
1117
1769
|
"""
|
|
1118
1770
|
return pulumi.get(self, "read_only")
|
|
1119
1771
|
|
|
1120
|
-
@property
|
|
1772
|
+
@_builtins.property
|
|
1121
1773
|
@pulumi.getter(name="volumeName")
|
|
1122
|
-
def volume_name(self) -> Optional[
|
|
1774
|
+
def volume_name(self) -> Optional[_builtins.str]:
|
|
1123
1775
|
"""
|
|
1124
1776
|
The name of the docker volume which should be mounted.
|
|
1125
1777
|
"""
|
|
@@ -1148,15 +1800,15 @@ class NetworkIpamConfig(dict):
|
|
|
1148
1800
|
return super().get(key, default)
|
|
1149
1801
|
|
|
1150
1802
|
def __init__(__self__, *,
|
|
1151
|
-
aux_address: Optional[Mapping[str,
|
|
1152
|
-
gateway: Optional[
|
|
1153
|
-
ip_range: Optional[
|
|
1154
|
-
subnet: Optional[
|
|
1803
|
+
aux_address: Optional[Mapping[str, _builtins.str]] = None,
|
|
1804
|
+
gateway: Optional[_builtins.str] = None,
|
|
1805
|
+
ip_range: Optional[_builtins.str] = None,
|
|
1806
|
+
subnet: Optional[_builtins.str] = None):
|
|
1155
1807
|
"""
|
|
1156
|
-
:param Mapping[str,
|
|
1157
|
-
:param
|
|
1158
|
-
:param
|
|
1159
|
-
:param
|
|
1808
|
+
:param Mapping[str, _builtins.str] aux_address: Auxiliary IPv4 or IPv6 addresses used by Network driver
|
|
1809
|
+
:param _builtins.str gateway: The IP address of the gateway
|
|
1810
|
+
:param _builtins.str ip_range: The ip range in CIDR form
|
|
1811
|
+
:param _builtins.str subnet: The subnet in CIDR form
|
|
1160
1812
|
"""
|
|
1161
1813
|
if aux_address is not None:
|
|
1162
1814
|
pulumi.set(__self__, "aux_address", aux_address)
|
|
@@ -1167,33 +1819,33 @@ class NetworkIpamConfig(dict):
|
|
|
1167
1819
|
if subnet is not None:
|
|
1168
1820
|
pulumi.set(__self__, "subnet", subnet)
|
|
1169
1821
|
|
|
1170
|
-
@property
|
|
1822
|
+
@_builtins.property
|
|
1171
1823
|
@pulumi.getter(name="auxAddress")
|
|
1172
|
-
def aux_address(self) -> Optional[Mapping[str,
|
|
1824
|
+
def aux_address(self) -> Optional[Mapping[str, _builtins.str]]:
|
|
1173
1825
|
"""
|
|
1174
1826
|
Auxiliary IPv4 or IPv6 addresses used by Network driver
|
|
1175
1827
|
"""
|
|
1176
1828
|
return pulumi.get(self, "aux_address")
|
|
1177
1829
|
|
|
1178
|
-
@property
|
|
1830
|
+
@_builtins.property
|
|
1179
1831
|
@pulumi.getter
|
|
1180
|
-
def gateway(self) -> Optional[
|
|
1832
|
+
def gateway(self) -> Optional[_builtins.str]:
|
|
1181
1833
|
"""
|
|
1182
1834
|
The IP address of the gateway
|
|
1183
1835
|
"""
|
|
1184
1836
|
return pulumi.get(self, "gateway")
|
|
1185
1837
|
|
|
1186
|
-
@property
|
|
1838
|
+
@_builtins.property
|
|
1187
1839
|
@pulumi.getter(name="ipRange")
|
|
1188
|
-
def ip_range(self) -> Optional[
|
|
1840
|
+
def ip_range(self) -> Optional[_builtins.str]:
|
|
1189
1841
|
"""
|
|
1190
1842
|
The ip range in CIDR form
|
|
1191
1843
|
"""
|
|
1192
1844
|
return pulumi.get(self, "ip_range")
|
|
1193
1845
|
|
|
1194
|
-
@property
|
|
1846
|
+
@_builtins.property
|
|
1195
1847
|
@pulumi.getter
|
|
1196
|
-
def subnet(self) -> Optional[
|
|
1848
|
+
def subnet(self) -> Optional[_builtins.str]:
|
|
1197
1849
|
"""
|
|
1198
1850
|
The subnet in CIDR form
|
|
1199
1851
|
"""
|
|
@@ -1203,26 +1855,26 @@ class NetworkIpamConfig(dict):
|
|
|
1203
1855
|
@pulumi.output_type
|
|
1204
1856
|
class NetworkLabel(dict):
|
|
1205
1857
|
def __init__(__self__, *,
|
|
1206
|
-
label:
|
|
1207
|
-
value:
|
|
1858
|
+
label: _builtins.str,
|
|
1859
|
+
value: _builtins.str):
|
|
1208
1860
|
"""
|
|
1209
|
-
:param
|
|
1210
|
-
:param
|
|
1861
|
+
:param _builtins.str label: Name of the label
|
|
1862
|
+
:param _builtins.str value: Value of the label
|
|
1211
1863
|
"""
|
|
1212
1864
|
pulumi.set(__self__, "label", label)
|
|
1213
1865
|
pulumi.set(__self__, "value", value)
|
|
1214
1866
|
|
|
1215
|
-
@property
|
|
1867
|
+
@_builtins.property
|
|
1216
1868
|
@pulumi.getter
|
|
1217
|
-
def label(self) ->
|
|
1869
|
+
def label(self) -> _builtins.str:
|
|
1218
1870
|
"""
|
|
1219
1871
|
Name of the label
|
|
1220
1872
|
"""
|
|
1221
1873
|
return pulumi.get(self, "label")
|
|
1222
1874
|
|
|
1223
|
-
@property
|
|
1875
|
+
@_builtins.property
|
|
1224
1876
|
@pulumi.getter
|
|
1225
|
-
def value(self) ->
|
|
1877
|
+
def value(self) -> _builtins.str:
|
|
1226
1878
|
"""
|
|
1227
1879
|
Value of the label
|
|
1228
1880
|
"""
|
|
@@ -1232,26 +1884,26 @@ class NetworkLabel(dict):
|
|
|
1232
1884
|
@pulumi.output_type
|
|
1233
1885
|
class PluginGrantPermission(dict):
|
|
1234
1886
|
def __init__(__self__, *,
|
|
1235
|
-
name:
|
|
1236
|
-
values: Sequence[
|
|
1887
|
+
name: _builtins.str,
|
|
1888
|
+
values: Sequence[_builtins.str]):
|
|
1237
1889
|
"""
|
|
1238
|
-
:param
|
|
1239
|
-
:param Sequence[
|
|
1890
|
+
:param _builtins.str name: The name of the permission
|
|
1891
|
+
:param Sequence[_builtins.str] values: The value of the permission
|
|
1240
1892
|
"""
|
|
1241
1893
|
pulumi.set(__self__, "name", name)
|
|
1242
1894
|
pulumi.set(__self__, "values", values)
|
|
1243
1895
|
|
|
1244
|
-
@property
|
|
1896
|
+
@_builtins.property
|
|
1245
1897
|
@pulumi.getter
|
|
1246
|
-
def name(self) ->
|
|
1898
|
+
def name(self) -> _builtins.str:
|
|
1247
1899
|
"""
|
|
1248
1900
|
The name of the permission
|
|
1249
1901
|
"""
|
|
1250
1902
|
return pulumi.get(self, "name")
|
|
1251
1903
|
|
|
1252
|
-
@property
|
|
1904
|
+
@_builtins.property
|
|
1253
1905
|
@pulumi.getter
|
|
1254
|
-
def values(self) -> Sequence[
|
|
1906
|
+
def values(self) -> Sequence[_builtins.str]:
|
|
1255
1907
|
"""
|
|
1256
1908
|
The value of the permission
|
|
1257
1909
|
"""
|
|
@@ -1261,37 +1913,37 @@ class PluginGrantPermission(dict):
|
|
|
1261
1913
|
@pulumi.output_type
|
|
1262
1914
|
class RegistryImageAuthConfig(dict):
|
|
1263
1915
|
def __init__(__self__, *,
|
|
1264
|
-
address:
|
|
1265
|
-
password:
|
|
1266
|
-
username:
|
|
1916
|
+
address: _builtins.str,
|
|
1917
|
+
password: _builtins.str,
|
|
1918
|
+
username: _builtins.str):
|
|
1267
1919
|
"""
|
|
1268
|
-
:param
|
|
1269
|
-
:param
|
|
1270
|
-
:param
|
|
1920
|
+
:param _builtins.str address: The address of the Docker registry.
|
|
1921
|
+
:param _builtins.str password: The password for the Docker registry.
|
|
1922
|
+
:param _builtins.str username: The username for the Docker registry.
|
|
1271
1923
|
"""
|
|
1272
1924
|
pulumi.set(__self__, "address", address)
|
|
1273
1925
|
pulumi.set(__self__, "password", password)
|
|
1274
1926
|
pulumi.set(__self__, "username", username)
|
|
1275
1927
|
|
|
1276
|
-
@property
|
|
1928
|
+
@_builtins.property
|
|
1277
1929
|
@pulumi.getter
|
|
1278
|
-
def address(self) ->
|
|
1930
|
+
def address(self) -> _builtins.str:
|
|
1279
1931
|
"""
|
|
1280
1932
|
The address of the Docker registry.
|
|
1281
1933
|
"""
|
|
1282
1934
|
return pulumi.get(self, "address")
|
|
1283
1935
|
|
|
1284
|
-
@property
|
|
1936
|
+
@_builtins.property
|
|
1285
1937
|
@pulumi.getter
|
|
1286
|
-
def password(self) ->
|
|
1938
|
+
def password(self) -> _builtins.str:
|
|
1287
1939
|
"""
|
|
1288
1940
|
The password for the Docker registry.
|
|
1289
1941
|
"""
|
|
1290
1942
|
return pulumi.get(self, "password")
|
|
1291
1943
|
|
|
1292
|
-
@property
|
|
1944
|
+
@_builtins.property
|
|
1293
1945
|
@pulumi.getter
|
|
1294
|
-
def username(self) ->
|
|
1946
|
+
def username(self) -> _builtins.str:
|
|
1295
1947
|
"""
|
|
1296
1948
|
The username for the Docker registry.
|
|
1297
1949
|
"""
|
|
@@ -1360,81 +2012,81 @@ class RemoteImageBuild(dict):
|
|
|
1360
2012
|
return super().get(key, default)
|
|
1361
2013
|
|
|
1362
2014
|
def __init__(__self__, *,
|
|
1363
|
-
context:
|
|
2015
|
+
context: _builtins.str,
|
|
1364
2016
|
auth_configs: Optional[Sequence['outputs.RemoteImageBuildAuthConfig']] = None,
|
|
1365
|
-
build_args: Optional[Mapping[str,
|
|
1366
|
-
build_id: Optional[
|
|
1367
|
-
build_log_file: Optional[
|
|
1368
|
-
builder: Optional[
|
|
1369
|
-
cache_froms: Optional[Sequence[
|
|
1370
|
-
cgroup_parent: Optional[
|
|
1371
|
-
cpu_period: Optional[
|
|
1372
|
-
cpu_quota: Optional[
|
|
1373
|
-
cpu_set_cpus: Optional[
|
|
1374
|
-
cpu_set_mems: Optional[
|
|
1375
|
-
cpu_shares: Optional[
|
|
1376
|
-
dockerfile: Optional[
|
|
1377
|
-
extra_hosts: Optional[Sequence[
|
|
1378
|
-
force_remove: Optional[
|
|
1379
|
-
isolation: Optional[
|
|
1380
|
-
label: Optional[Mapping[str,
|
|
1381
|
-
labels: Optional[Mapping[str,
|
|
1382
|
-
memory: Optional[
|
|
1383
|
-
memory_swap: Optional[
|
|
1384
|
-
network_mode: Optional[
|
|
1385
|
-
no_cache: Optional[
|
|
1386
|
-
platform: Optional[
|
|
1387
|
-
pull_parent: Optional[
|
|
1388
|
-
remote_context: Optional[
|
|
1389
|
-
remove: Optional[
|
|
2017
|
+
build_args: Optional[Mapping[str, _builtins.str]] = None,
|
|
2018
|
+
build_id: Optional[_builtins.str] = None,
|
|
2019
|
+
build_log_file: Optional[_builtins.str] = None,
|
|
2020
|
+
builder: Optional[_builtins.str] = None,
|
|
2021
|
+
cache_froms: Optional[Sequence[_builtins.str]] = None,
|
|
2022
|
+
cgroup_parent: Optional[_builtins.str] = None,
|
|
2023
|
+
cpu_period: Optional[_builtins.int] = None,
|
|
2024
|
+
cpu_quota: Optional[_builtins.int] = None,
|
|
2025
|
+
cpu_set_cpus: Optional[_builtins.str] = None,
|
|
2026
|
+
cpu_set_mems: Optional[_builtins.str] = None,
|
|
2027
|
+
cpu_shares: Optional[_builtins.int] = None,
|
|
2028
|
+
dockerfile: Optional[_builtins.str] = None,
|
|
2029
|
+
extra_hosts: Optional[Sequence[_builtins.str]] = None,
|
|
2030
|
+
force_remove: Optional[_builtins.bool] = None,
|
|
2031
|
+
isolation: Optional[_builtins.str] = None,
|
|
2032
|
+
label: Optional[Mapping[str, _builtins.str]] = None,
|
|
2033
|
+
labels: Optional[Mapping[str, _builtins.str]] = None,
|
|
2034
|
+
memory: Optional[_builtins.int] = None,
|
|
2035
|
+
memory_swap: Optional[_builtins.int] = None,
|
|
2036
|
+
network_mode: Optional[_builtins.str] = None,
|
|
2037
|
+
no_cache: Optional[_builtins.bool] = None,
|
|
2038
|
+
platform: Optional[_builtins.str] = None,
|
|
2039
|
+
pull_parent: Optional[_builtins.bool] = None,
|
|
2040
|
+
remote_context: Optional[_builtins.str] = None,
|
|
2041
|
+
remove: Optional[_builtins.bool] = None,
|
|
1390
2042
|
secrets: Optional[Sequence['outputs.RemoteImageBuildSecret']] = None,
|
|
1391
|
-
security_opts: Optional[Sequence[
|
|
1392
|
-
session_id: Optional[
|
|
1393
|
-
shm_size: Optional[
|
|
1394
|
-
squash: Optional[
|
|
1395
|
-
suppress_output: Optional[
|
|
1396
|
-
tags: Optional[Sequence[
|
|
1397
|
-
target: Optional[
|
|
2043
|
+
security_opts: Optional[Sequence[_builtins.str]] = None,
|
|
2044
|
+
session_id: Optional[_builtins.str] = None,
|
|
2045
|
+
shm_size: Optional[_builtins.int] = None,
|
|
2046
|
+
squash: Optional[_builtins.bool] = None,
|
|
2047
|
+
suppress_output: Optional[_builtins.bool] = None,
|
|
2048
|
+
tags: Optional[Sequence[_builtins.str]] = None,
|
|
2049
|
+
target: Optional[_builtins.str] = None,
|
|
1398
2050
|
ulimits: Optional[Sequence['outputs.RemoteImageBuildUlimit']] = None,
|
|
1399
|
-
version: Optional[
|
|
2051
|
+
version: Optional[_builtins.str] = None):
|
|
1400
2052
|
"""
|
|
1401
|
-
:param
|
|
2053
|
+
:param _builtins.str context: Value to specify the build context. Currently, only a `PATH` context is supported. You can use the helper function '${path.cwd}/context-dir'. This always refers to the local working directory, even when building images on remote hosts. Please see https://docs.docker.com/build/building/context/ for more information about build contexts.
|
|
1402
2054
|
:param Sequence['RemoteImageBuildAuthConfigArgs'] auth_configs: The configuration for the authentication
|
|
1403
|
-
:param Mapping[str,
|
|
1404
|
-
:param
|
|
1405
|
-
:param
|
|
1406
|
-
:param
|
|
1407
|
-
:param Sequence[
|
|
1408
|
-
:param
|
|
1409
|
-
:param
|
|
1410
|
-
:param
|
|
1411
|
-
:param
|
|
1412
|
-
:param
|
|
1413
|
-
:param
|
|
1414
|
-
:param
|
|
1415
|
-
:param Sequence[
|
|
1416
|
-
:param
|
|
1417
|
-
:param
|
|
1418
|
-
:param Mapping[str,
|
|
1419
|
-
:param Mapping[str,
|
|
1420
|
-
:param
|
|
1421
|
-
:param
|
|
1422
|
-
:param
|
|
1423
|
-
:param
|
|
1424
|
-
:param
|
|
1425
|
-
:param
|
|
1426
|
-
:param
|
|
1427
|
-
:param
|
|
2055
|
+
:param Mapping[str, _builtins.str] build_args: Pairs for build-time variables in the form of `ENDPOINT : "https://example.com"`
|
|
2056
|
+
:param _builtins.str build_id: BuildID is an optional identifier that can be passed together with the build request. The same identifier can be used to gracefully cancel the build with the cancel request.
|
|
2057
|
+
:param _builtins.str build_log_file: Path to a file where the buildx log are written to. Only available when `builder` is set. If not set, no logs are available. The path is taken as is, so make sure to use a path that is available.
|
|
2058
|
+
:param _builtins.str builder: Set the name of the buildx builder to use. If not set, the legacy builder is used.
|
|
2059
|
+
:param Sequence[_builtins.str] cache_froms: Images to consider as cache sources
|
|
2060
|
+
:param _builtins.str cgroup_parent: Optional parent cgroup for the container
|
|
2061
|
+
:param _builtins.int cpu_period: The length of a CPU period in microseconds
|
|
2062
|
+
:param _builtins.int cpu_quota: Microseconds of CPU time that the container can get in a CPU period
|
|
2063
|
+
:param _builtins.str cpu_set_cpus: CPUs in which to allow execution (e.g., `0-3`, `0`, `1`)
|
|
2064
|
+
:param _builtins.str cpu_set_mems: MEMs in which to allow execution (`0-3`, `0`, `1`)
|
|
2065
|
+
:param _builtins.int cpu_shares: CPU shares (relative weight)
|
|
2066
|
+
:param _builtins.str dockerfile: Name of the Dockerfile. Defaults to `Dockerfile`.
|
|
2067
|
+
:param Sequence[_builtins.str] extra_hosts: A list of hostnames/IP mappings to add to the container’s /etc/hosts file. Specified in the form ["hostname:IP"]
|
|
2068
|
+
:param _builtins.bool force_remove: Always remove intermediate containers
|
|
2069
|
+
:param _builtins.str isolation: Isolation represents the isolation technology of a container. The supported values are
|
|
2070
|
+
:param Mapping[str, _builtins.str] label: Set metadata for an image
|
|
2071
|
+
:param Mapping[str, _builtins.str] labels: User-defined key/value metadata
|
|
2072
|
+
:param _builtins.int memory: Set memory limit for build
|
|
2073
|
+
:param _builtins.int memory_swap: Total memory (memory + swap), -1 to enable unlimited swap
|
|
2074
|
+
:param _builtins.str network_mode: Set the networking mode for the RUN instructions during build
|
|
2075
|
+
:param _builtins.bool no_cache: Do not use the cache when building the image
|
|
2076
|
+
:param _builtins.str platform: Set the target platform for the build. Defaults to `GOOS/GOARCH`. For more information see the [docker documentation](https://github.com/docker/buildx/blob/master/docs/reference/buildx.md#-set-the-target-platforms-for-the-build---platform)
|
|
2077
|
+
:param _builtins.bool pull_parent: Attempt to pull the image even if an older image exists locally
|
|
2078
|
+
:param _builtins.str remote_context: A Git repository URI or HTTP/HTTPS context URI. Will be ignored if `builder` is set.
|
|
2079
|
+
:param _builtins.bool remove: Remove intermediate containers after a successful build. Defaults to `true`.
|
|
1428
2080
|
:param Sequence['RemoteImageBuildSecretArgs'] secrets: Set build-time secrets. Only available when you use a buildx builder.
|
|
1429
|
-
:param Sequence[
|
|
1430
|
-
:param
|
|
1431
|
-
:param
|
|
1432
|
-
:param
|
|
1433
|
-
:param
|
|
1434
|
-
:param Sequence[
|
|
1435
|
-
:param
|
|
2081
|
+
:param Sequence[_builtins.str] security_opts: The security options
|
|
2082
|
+
:param _builtins.str session_id: Set an ID for the build session
|
|
2083
|
+
:param _builtins.int shm_size: Size of /dev/shm in bytes. The size must be greater than 0
|
|
2084
|
+
:param _builtins.bool squash: If true the new layers are squashed into a new image with a single new layer
|
|
2085
|
+
:param _builtins.bool suppress_output: Suppress the build output and print image ID on success
|
|
2086
|
+
:param Sequence[_builtins.str] tags: Name and optionally a tag in the 'name:tag' format
|
|
2087
|
+
:param _builtins.str target: Set the target build stage to build
|
|
1436
2088
|
:param Sequence['RemoteImageBuildUlimitArgs'] ulimits: Configuration for ulimits
|
|
1437
|
-
:param
|
|
2089
|
+
:param _builtins.str version: Version of the underlying builder to use
|
|
1438
2090
|
"""
|
|
1439
2091
|
pulumi.set(__self__, "context", context)
|
|
1440
2092
|
if auth_configs is not None:
|
|
@@ -1510,15 +2162,15 @@ class RemoteImageBuild(dict):
|
|
|
1510
2162
|
if version is not None:
|
|
1511
2163
|
pulumi.set(__self__, "version", version)
|
|
1512
2164
|
|
|
1513
|
-
@property
|
|
2165
|
+
@_builtins.property
|
|
1514
2166
|
@pulumi.getter
|
|
1515
|
-
def context(self) ->
|
|
2167
|
+
def context(self) -> _builtins.str:
|
|
1516
2168
|
"""
|
|
1517
2169
|
Value to specify the build context. Currently, only a `PATH` context is supported. You can use the helper function '${path.cwd}/context-dir'. This always refers to the local working directory, even when building images on remote hosts. Please see https://docs.docker.com/build/building/context/ for more information about build contexts.
|
|
1518
2170
|
"""
|
|
1519
2171
|
return pulumi.get(self, "context")
|
|
1520
2172
|
|
|
1521
|
-
@property
|
|
2173
|
+
@_builtins.property
|
|
1522
2174
|
@pulumi.getter(name="authConfigs")
|
|
1523
2175
|
def auth_configs(self) -> Optional[Sequence['outputs.RemoteImageBuildAuthConfig']]:
|
|
1524
2176
|
"""
|
|
@@ -1526,207 +2178,207 @@ class RemoteImageBuild(dict):
|
|
|
1526
2178
|
"""
|
|
1527
2179
|
return pulumi.get(self, "auth_configs")
|
|
1528
2180
|
|
|
1529
|
-
@property
|
|
2181
|
+
@_builtins.property
|
|
1530
2182
|
@pulumi.getter(name="buildArgs")
|
|
1531
|
-
def build_args(self) -> Optional[Mapping[str,
|
|
2183
|
+
def build_args(self) -> Optional[Mapping[str, _builtins.str]]:
|
|
1532
2184
|
"""
|
|
1533
2185
|
Pairs for build-time variables in the form of `ENDPOINT : "https://example.com"`
|
|
1534
2186
|
"""
|
|
1535
2187
|
return pulumi.get(self, "build_args")
|
|
1536
2188
|
|
|
1537
|
-
@property
|
|
2189
|
+
@_builtins.property
|
|
1538
2190
|
@pulumi.getter(name="buildId")
|
|
1539
|
-
def build_id(self) -> Optional[
|
|
2191
|
+
def build_id(self) -> Optional[_builtins.str]:
|
|
1540
2192
|
"""
|
|
1541
2193
|
BuildID is an optional identifier that can be passed together with the build request. The same identifier can be used to gracefully cancel the build with the cancel request.
|
|
1542
2194
|
"""
|
|
1543
2195
|
return pulumi.get(self, "build_id")
|
|
1544
2196
|
|
|
1545
|
-
@property
|
|
2197
|
+
@_builtins.property
|
|
1546
2198
|
@pulumi.getter(name="buildLogFile")
|
|
1547
|
-
def build_log_file(self) -> Optional[
|
|
2199
|
+
def build_log_file(self) -> Optional[_builtins.str]:
|
|
1548
2200
|
"""
|
|
1549
2201
|
Path to a file where the buildx log are written to. Only available when `builder` is set. If not set, no logs are available. The path is taken as is, so make sure to use a path that is available.
|
|
1550
2202
|
"""
|
|
1551
2203
|
return pulumi.get(self, "build_log_file")
|
|
1552
2204
|
|
|
1553
|
-
@property
|
|
2205
|
+
@_builtins.property
|
|
1554
2206
|
@pulumi.getter
|
|
1555
|
-
def builder(self) -> Optional[
|
|
2207
|
+
def builder(self) -> Optional[_builtins.str]:
|
|
1556
2208
|
"""
|
|
1557
|
-
Set the name of the buildx builder to use. If not set
|
|
2209
|
+
Set the name of the buildx builder to use. If not set, the legacy builder is used.
|
|
1558
2210
|
"""
|
|
1559
2211
|
return pulumi.get(self, "builder")
|
|
1560
2212
|
|
|
1561
|
-
@property
|
|
2213
|
+
@_builtins.property
|
|
1562
2214
|
@pulumi.getter(name="cacheFroms")
|
|
1563
|
-
def cache_froms(self) -> Optional[Sequence[
|
|
2215
|
+
def cache_froms(self) -> Optional[Sequence[_builtins.str]]:
|
|
1564
2216
|
"""
|
|
1565
2217
|
Images to consider as cache sources
|
|
1566
2218
|
"""
|
|
1567
2219
|
return pulumi.get(self, "cache_froms")
|
|
1568
2220
|
|
|
1569
|
-
@property
|
|
2221
|
+
@_builtins.property
|
|
1570
2222
|
@pulumi.getter(name="cgroupParent")
|
|
1571
|
-
def cgroup_parent(self) -> Optional[
|
|
2223
|
+
def cgroup_parent(self) -> Optional[_builtins.str]:
|
|
1572
2224
|
"""
|
|
1573
2225
|
Optional parent cgroup for the container
|
|
1574
2226
|
"""
|
|
1575
2227
|
return pulumi.get(self, "cgroup_parent")
|
|
1576
2228
|
|
|
1577
|
-
@property
|
|
2229
|
+
@_builtins.property
|
|
1578
2230
|
@pulumi.getter(name="cpuPeriod")
|
|
1579
|
-
def cpu_period(self) -> Optional[
|
|
2231
|
+
def cpu_period(self) -> Optional[_builtins.int]:
|
|
1580
2232
|
"""
|
|
1581
2233
|
The length of a CPU period in microseconds
|
|
1582
2234
|
"""
|
|
1583
2235
|
return pulumi.get(self, "cpu_period")
|
|
1584
2236
|
|
|
1585
|
-
@property
|
|
2237
|
+
@_builtins.property
|
|
1586
2238
|
@pulumi.getter(name="cpuQuota")
|
|
1587
|
-
def cpu_quota(self) -> Optional[
|
|
2239
|
+
def cpu_quota(self) -> Optional[_builtins.int]:
|
|
1588
2240
|
"""
|
|
1589
2241
|
Microseconds of CPU time that the container can get in a CPU period
|
|
1590
2242
|
"""
|
|
1591
2243
|
return pulumi.get(self, "cpu_quota")
|
|
1592
2244
|
|
|
1593
|
-
@property
|
|
2245
|
+
@_builtins.property
|
|
1594
2246
|
@pulumi.getter(name="cpuSetCpus")
|
|
1595
|
-
def cpu_set_cpus(self) -> Optional[
|
|
2247
|
+
def cpu_set_cpus(self) -> Optional[_builtins.str]:
|
|
1596
2248
|
"""
|
|
1597
2249
|
CPUs in which to allow execution (e.g., `0-3`, `0`, `1`)
|
|
1598
2250
|
"""
|
|
1599
2251
|
return pulumi.get(self, "cpu_set_cpus")
|
|
1600
2252
|
|
|
1601
|
-
@property
|
|
2253
|
+
@_builtins.property
|
|
1602
2254
|
@pulumi.getter(name="cpuSetMems")
|
|
1603
|
-
def cpu_set_mems(self) -> Optional[
|
|
2255
|
+
def cpu_set_mems(self) -> Optional[_builtins.str]:
|
|
1604
2256
|
"""
|
|
1605
2257
|
MEMs in which to allow execution (`0-3`, `0`, `1`)
|
|
1606
2258
|
"""
|
|
1607
2259
|
return pulumi.get(self, "cpu_set_mems")
|
|
1608
2260
|
|
|
1609
|
-
@property
|
|
2261
|
+
@_builtins.property
|
|
1610
2262
|
@pulumi.getter(name="cpuShares")
|
|
1611
|
-
def cpu_shares(self) -> Optional[
|
|
2263
|
+
def cpu_shares(self) -> Optional[_builtins.int]:
|
|
1612
2264
|
"""
|
|
1613
2265
|
CPU shares (relative weight)
|
|
1614
2266
|
"""
|
|
1615
2267
|
return pulumi.get(self, "cpu_shares")
|
|
1616
2268
|
|
|
1617
|
-
@property
|
|
2269
|
+
@_builtins.property
|
|
1618
2270
|
@pulumi.getter
|
|
1619
|
-
def dockerfile(self) -> Optional[
|
|
2271
|
+
def dockerfile(self) -> Optional[_builtins.str]:
|
|
1620
2272
|
"""
|
|
1621
2273
|
Name of the Dockerfile. Defaults to `Dockerfile`.
|
|
1622
2274
|
"""
|
|
1623
2275
|
return pulumi.get(self, "dockerfile")
|
|
1624
2276
|
|
|
1625
|
-
@property
|
|
2277
|
+
@_builtins.property
|
|
1626
2278
|
@pulumi.getter(name="extraHosts")
|
|
1627
|
-
def extra_hosts(self) -> Optional[Sequence[
|
|
2279
|
+
def extra_hosts(self) -> Optional[Sequence[_builtins.str]]:
|
|
1628
2280
|
"""
|
|
1629
2281
|
A list of hostnames/IP mappings to add to the container’s /etc/hosts file. Specified in the form ["hostname:IP"]
|
|
1630
2282
|
"""
|
|
1631
2283
|
return pulumi.get(self, "extra_hosts")
|
|
1632
2284
|
|
|
1633
|
-
@property
|
|
2285
|
+
@_builtins.property
|
|
1634
2286
|
@pulumi.getter(name="forceRemove")
|
|
1635
|
-
def force_remove(self) -> Optional[
|
|
2287
|
+
def force_remove(self) -> Optional[_builtins.bool]:
|
|
1636
2288
|
"""
|
|
1637
2289
|
Always remove intermediate containers
|
|
1638
2290
|
"""
|
|
1639
2291
|
return pulumi.get(self, "force_remove")
|
|
1640
2292
|
|
|
1641
|
-
@property
|
|
2293
|
+
@_builtins.property
|
|
1642
2294
|
@pulumi.getter
|
|
1643
|
-
def isolation(self) -> Optional[
|
|
2295
|
+
def isolation(self) -> Optional[_builtins.str]:
|
|
1644
2296
|
"""
|
|
1645
2297
|
Isolation represents the isolation technology of a container. The supported values are
|
|
1646
2298
|
"""
|
|
1647
2299
|
return pulumi.get(self, "isolation")
|
|
1648
2300
|
|
|
1649
|
-
@property
|
|
2301
|
+
@_builtins.property
|
|
1650
2302
|
@pulumi.getter
|
|
1651
|
-
def label(self) -> Optional[Mapping[str,
|
|
2303
|
+
def label(self) -> Optional[Mapping[str, _builtins.str]]:
|
|
1652
2304
|
"""
|
|
1653
2305
|
Set metadata for an image
|
|
1654
2306
|
"""
|
|
1655
2307
|
return pulumi.get(self, "label")
|
|
1656
2308
|
|
|
1657
|
-
@property
|
|
2309
|
+
@_builtins.property
|
|
1658
2310
|
@pulumi.getter
|
|
1659
|
-
def labels(self) -> Optional[Mapping[str,
|
|
2311
|
+
def labels(self) -> Optional[Mapping[str, _builtins.str]]:
|
|
1660
2312
|
"""
|
|
1661
2313
|
User-defined key/value metadata
|
|
1662
2314
|
"""
|
|
1663
2315
|
return pulumi.get(self, "labels")
|
|
1664
2316
|
|
|
1665
|
-
@property
|
|
2317
|
+
@_builtins.property
|
|
1666
2318
|
@pulumi.getter
|
|
1667
|
-
def memory(self) -> Optional[
|
|
2319
|
+
def memory(self) -> Optional[_builtins.int]:
|
|
1668
2320
|
"""
|
|
1669
2321
|
Set memory limit for build
|
|
1670
2322
|
"""
|
|
1671
2323
|
return pulumi.get(self, "memory")
|
|
1672
2324
|
|
|
1673
|
-
@property
|
|
2325
|
+
@_builtins.property
|
|
1674
2326
|
@pulumi.getter(name="memorySwap")
|
|
1675
|
-
def memory_swap(self) -> Optional[
|
|
2327
|
+
def memory_swap(self) -> Optional[_builtins.int]:
|
|
1676
2328
|
"""
|
|
1677
2329
|
Total memory (memory + swap), -1 to enable unlimited swap
|
|
1678
2330
|
"""
|
|
1679
2331
|
return pulumi.get(self, "memory_swap")
|
|
1680
2332
|
|
|
1681
|
-
@property
|
|
2333
|
+
@_builtins.property
|
|
1682
2334
|
@pulumi.getter(name="networkMode")
|
|
1683
|
-
def network_mode(self) -> Optional[
|
|
2335
|
+
def network_mode(self) -> Optional[_builtins.str]:
|
|
1684
2336
|
"""
|
|
1685
2337
|
Set the networking mode for the RUN instructions during build
|
|
1686
2338
|
"""
|
|
1687
2339
|
return pulumi.get(self, "network_mode")
|
|
1688
2340
|
|
|
1689
|
-
@property
|
|
2341
|
+
@_builtins.property
|
|
1690
2342
|
@pulumi.getter(name="noCache")
|
|
1691
|
-
def no_cache(self) -> Optional[
|
|
2343
|
+
def no_cache(self) -> Optional[_builtins.bool]:
|
|
1692
2344
|
"""
|
|
1693
2345
|
Do not use the cache when building the image
|
|
1694
2346
|
"""
|
|
1695
2347
|
return pulumi.get(self, "no_cache")
|
|
1696
2348
|
|
|
1697
|
-
@property
|
|
2349
|
+
@_builtins.property
|
|
1698
2350
|
@pulumi.getter
|
|
1699
|
-
def platform(self) -> Optional[
|
|
2351
|
+
def platform(self) -> Optional[_builtins.str]:
|
|
1700
2352
|
"""
|
|
1701
|
-
Set platform
|
|
2353
|
+
Set the target platform for the build. Defaults to `GOOS/GOARCH`. For more information see the [docker documentation](https://github.com/docker/buildx/blob/master/docs/reference/buildx.md#-set-the-target-platforms-for-the-build---platform)
|
|
1702
2354
|
"""
|
|
1703
2355
|
return pulumi.get(self, "platform")
|
|
1704
2356
|
|
|
1705
|
-
@property
|
|
2357
|
+
@_builtins.property
|
|
1706
2358
|
@pulumi.getter(name="pullParent")
|
|
1707
|
-
def pull_parent(self) -> Optional[
|
|
2359
|
+
def pull_parent(self) -> Optional[_builtins.bool]:
|
|
1708
2360
|
"""
|
|
1709
2361
|
Attempt to pull the image even if an older image exists locally
|
|
1710
2362
|
"""
|
|
1711
2363
|
return pulumi.get(self, "pull_parent")
|
|
1712
2364
|
|
|
1713
|
-
@property
|
|
2365
|
+
@_builtins.property
|
|
1714
2366
|
@pulumi.getter(name="remoteContext")
|
|
1715
|
-
def remote_context(self) -> Optional[
|
|
2367
|
+
def remote_context(self) -> Optional[_builtins.str]:
|
|
1716
2368
|
"""
|
|
1717
2369
|
A Git repository URI or HTTP/HTTPS context URI. Will be ignored if `builder` is set.
|
|
1718
2370
|
"""
|
|
1719
2371
|
return pulumi.get(self, "remote_context")
|
|
1720
2372
|
|
|
1721
|
-
@property
|
|
2373
|
+
@_builtins.property
|
|
1722
2374
|
@pulumi.getter
|
|
1723
|
-
def remove(self) -> Optional[
|
|
2375
|
+
def remove(self) -> Optional[_builtins.bool]:
|
|
1724
2376
|
"""
|
|
1725
2377
|
Remove intermediate containers after a successful build. Defaults to `true`.
|
|
1726
2378
|
"""
|
|
1727
2379
|
return pulumi.get(self, "remove")
|
|
1728
2380
|
|
|
1729
|
-
@property
|
|
2381
|
+
@_builtins.property
|
|
1730
2382
|
@pulumi.getter
|
|
1731
2383
|
def secrets(self) -> Optional[Sequence['outputs.RemoteImageBuildSecret']]:
|
|
1732
2384
|
"""
|
|
@@ -1734,63 +2386,63 @@ class RemoteImageBuild(dict):
|
|
|
1734
2386
|
"""
|
|
1735
2387
|
return pulumi.get(self, "secrets")
|
|
1736
2388
|
|
|
1737
|
-
@property
|
|
2389
|
+
@_builtins.property
|
|
1738
2390
|
@pulumi.getter(name="securityOpts")
|
|
1739
|
-
def security_opts(self) -> Optional[Sequence[
|
|
2391
|
+
def security_opts(self) -> Optional[Sequence[_builtins.str]]:
|
|
1740
2392
|
"""
|
|
1741
2393
|
The security options
|
|
1742
2394
|
"""
|
|
1743
2395
|
return pulumi.get(self, "security_opts")
|
|
1744
2396
|
|
|
1745
|
-
@property
|
|
2397
|
+
@_builtins.property
|
|
1746
2398
|
@pulumi.getter(name="sessionId")
|
|
1747
|
-
def session_id(self) -> Optional[
|
|
2399
|
+
def session_id(self) -> Optional[_builtins.str]:
|
|
1748
2400
|
"""
|
|
1749
2401
|
Set an ID for the build session
|
|
1750
2402
|
"""
|
|
1751
2403
|
return pulumi.get(self, "session_id")
|
|
1752
2404
|
|
|
1753
|
-
@property
|
|
2405
|
+
@_builtins.property
|
|
1754
2406
|
@pulumi.getter(name="shmSize")
|
|
1755
|
-
def shm_size(self) -> Optional[
|
|
2407
|
+
def shm_size(self) -> Optional[_builtins.int]:
|
|
1756
2408
|
"""
|
|
1757
2409
|
Size of /dev/shm in bytes. The size must be greater than 0
|
|
1758
2410
|
"""
|
|
1759
2411
|
return pulumi.get(self, "shm_size")
|
|
1760
2412
|
|
|
1761
|
-
@property
|
|
2413
|
+
@_builtins.property
|
|
1762
2414
|
@pulumi.getter
|
|
1763
|
-
def squash(self) -> Optional[
|
|
2415
|
+
def squash(self) -> Optional[_builtins.bool]:
|
|
1764
2416
|
"""
|
|
1765
2417
|
If true the new layers are squashed into a new image with a single new layer
|
|
1766
2418
|
"""
|
|
1767
2419
|
return pulumi.get(self, "squash")
|
|
1768
2420
|
|
|
1769
|
-
@property
|
|
2421
|
+
@_builtins.property
|
|
1770
2422
|
@pulumi.getter(name="suppressOutput")
|
|
1771
|
-
def suppress_output(self) -> Optional[
|
|
2423
|
+
def suppress_output(self) -> Optional[_builtins.bool]:
|
|
1772
2424
|
"""
|
|
1773
2425
|
Suppress the build output and print image ID on success
|
|
1774
2426
|
"""
|
|
1775
2427
|
return pulumi.get(self, "suppress_output")
|
|
1776
2428
|
|
|
1777
|
-
@property
|
|
2429
|
+
@_builtins.property
|
|
1778
2430
|
@pulumi.getter
|
|
1779
|
-
def tags(self) -> Optional[Sequence[
|
|
2431
|
+
def tags(self) -> Optional[Sequence[_builtins.str]]:
|
|
1780
2432
|
"""
|
|
1781
2433
|
Name and optionally a tag in the 'name:tag' format
|
|
1782
2434
|
"""
|
|
1783
2435
|
return pulumi.get(self, "tags")
|
|
1784
2436
|
|
|
1785
|
-
@property
|
|
2437
|
+
@_builtins.property
|
|
1786
2438
|
@pulumi.getter
|
|
1787
|
-
def target(self) -> Optional[
|
|
2439
|
+
def target(self) -> Optional[_builtins.str]:
|
|
1788
2440
|
"""
|
|
1789
2441
|
Set the target build stage to build
|
|
1790
2442
|
"""
|
|
1791
2443
|
return pulumi.get(self, "target")
|
|
1792
2444
|
|
|
1793
|
-
@property
|
|
2445
|
+
@_builtins.property
|
|
1794
2446
|
@pulumi.getter
|
|
1795
2447
|
def ulimits(self) -> Optional[Sequence['outputs.RemoteImageBuildUlimit']]:
|
|
1796
2448
|
"""
|
|
@@ -1798,9 +2450,9 @@ class RemoteImageBuild(dict):
|
|
|
1798
2450
|
"""
|
|
1799
2451
|
return pulumi.get(self, "ulimits")
|
|
1800
2452
|
|
|
1801
|
-
@property
|
|
2453
|
+
@_builtins.property
|
|
1802
2454
|
@pulumi.getter
|
|
1803
|
-
def version(self) -> Optional[
|
|
2455
|
+
def version(self) -> Optional[_builtins.str]:
|
|
1804
2456
|
"""
|
|
1805
2457
|
Version of the underlying builder to use
|
|
1806
2458
|
"""
|
|
@@ -1835,23 +2487,23 @@ class RemoteImageBuildAuthConfig(dict):
|
|
|
1835
2487
|
return super().get(key, default)
|
|
1836
2488
|
|
|
1837
2489
|
def __init__(__self__, *,
|
|
1838
|
-
host_name:
|
|
1839
|
-
auth: Optional[
|
|
1840
|
-
email: Optional[
|
|
1841
|
-
identity_token: Optional[
|
|
1842
|
-
password: Optional[
|
|
1843
|
-
registry_token: Optional[
|
|
1844
|
-
server_address: Optional[
|
|
1845
|
-
user_name: Optional[
|
|
1846
|
-
"""
|
|
1847
|
-
:param
|
|
1848
|
-
:param
|
|
1849
|
-
:param
|
|
1850
|
-
:param
|
|
1851
|
-
:param
|
|
1852
|
-
:param
|
|
1853
|
-
:param
|
|
1854
|
-
:param
|
|
2490
|
+
host_name: _builtins.str,
|
|
2491
|
+
auth: Optional[_builtins.str] = None,
|
|
2492
|
+
email: Optional[_builtins.str] = None,
|
|
2493
|
+
identity_token: Optional[_builtins.str] = None,
|
|
2494
|
+
password: Optional[_builtins.str] = None,
|
|
2495
|
+
registry_token: Optional[_builtins.str] = None,
|
|
2496
|
+
server_address: Optional[_builtins.str] = None,
|
|
2497
|
+
user_name: Optional[_builtins.str] = None):
|
|
2498
|
+
"""
|
|
2499
|
+
:param _builtins.str host_name: hostname of the registry
|
|
2500
|
+
:param _builtins.str auth: the auth token
|
|
2501
|
+
:param _builtins.str email: the user emal
|
|
2502
|
+
:param _builtins.str identity_token: the identity token
|
|
2503
|
+
:param _builtins.str password: the registry password
|
|
2504
|
+
:param _builtins.str registry_token: the registry token
|
|
2505
|
+
:param _builtins.str server_address: the server address
|
|
2506
|
+
:param _builtins.str user_name: the registry user name
|
|
1855
2507
|
"""
|
|
1856
2508
|
pulumi.set(__self__, "host_name", host_name)
|
|
1857
2509
|
if auth is not None:
|
|
@@ -1869,65 +2521,65 @@ class RemoteImageBuildAuthConfig(dict):
|
|
|
1869
2521
|
if user_name is not None:
|
|
1870
2522
|
pulumi.set(__self__, "user_name", user_name)
|
|
1871
2523
|
|
|
1872
|
-
@property
|
|
2524
|
+
@_builtins.property
|
|
1873
2525
|
@pulumi.getter(name="hostName")
|
|
1874
|
-
def host_name(self) ->
|
|
2526
|
+
def host_name(self) -> _builtins.str:
|
|
1875
2527
|
"""
|
|
1876
2528
|
hostname of the registry
|
|
1877
2529
|
"""
|
|
1878
2530
|
return pulumi.get(self, "host_name")
|
|
1879
2531
|
|
|
1880
|
-
@property
|
|
2532
|
+
@_builtins.property
|
|
1881
2533
|
@pulumi.getter
|
|
1882
|
-
def auth(self) -> Optional[
|
|
2534
|
+
def auth(self) -> Optional[_builtins.str]:
|
|
1883
2535
|
"""
|
|
1884
2536
|
the auth token
|
|
1885
2537
|
"""
|
|
1886
2538
|
return pulumi.get(self, "auth")
|
|
1887
2539
|
|
|
1888
|
-
@property
|
|
2540
|
+
@_builtins.property
|
|
1889
2541
|
@pulumi.getter
|
|
1890
|
-
def email(self) -> Optional[
|
|
2542
|
+
def email(self) -> Optional[_builtins.str]:
|
|
1891
2543
|
"""
|
|
1892
2544
|
the user emal
|
|
1893
2545
|
"""
|
|
1894
2546
|
return pulumi.get(self, "email")
|
|
1895
2547
|
|
|
1896
|
-
@property
|
|
2548
|
+
@_builtins.property
|
|
1897
2549
|
@pulumi.getter(name="identityToken")
|
|
1898
|
-
def identity_token(self) -> Optional[
|
|
2550
|
+
def identity_token(self) -> Optional[_builtins.str]:
|
|
1899
2551
|
"""
|
|
1900
2552
|
the identity token
|
|
1901
2553
|
"""
|
|
1902
2554
|
return pulumi.get(self, "identity_token")
|
|
1903
2555
|
|
|
1904
|
-
@property
|
|
2556
|
+
@_builtins.property
|
|
1905
2557
|
@pulumi.getter
|
|
1906
|
-
def password(self) -> Optional[
|
|
2558
|
+
def password(self) -> Optional[_builtins.str]:
|
|
1907
2559
|
"""
|
|
1908
2560
|
the registry password
|
|
1909
2561
|
"""
|
|
1910
2562
|
return pulumi.get(self, "password")
|
|
1911
2563
|
|
|
1912
|
-
@property
|
|
2564
|
+
@_builtins.property
|
|
1913
2565
|
@pulumi.getter(name="registryToken")
|
|
1914
|
-
def registry_token(self) -> Optional[
|
|
2566
|
+
def registry_token(self) -> Optional[_builtins.str]:
|
|
1915
2567
|
"""
|
|
1916
2568
|
the registry token
|
|
1917
2569
|
"""
|
|
1918
2570
|
return pulumi.get(self, "registry_token")
|
|
1919
2571
|
|
|
1920
|
-
@property
|
|
2572
|
+
@_builtins.property
|
|
1921
2573
|
@pulumi.getter(name="serverAddress")
|
|
1922
|
-
def server_address(self) -> Optional[
|
|
2574
|
+
def server_address(self) -> Optional[_builtins.str]:
|
|
1923
2575
|
"""
|
|
1924
2576
|
the server address
|
|
1925
2577
|
"""
|
|
1926
2578
|
return pulumi.get(self, "server_address")
|
|
1927
2579
|
|
|
1928
|
-
@property
|
|
2580
|
+
@_builtins.property
|
|
1929
2581
|
@pulumi.getter(name="userName")
|
|
1930
|
-
def user_name(self) -> Optional[
|
|
2582
|
+
def user_name(self) -> Optional[_builtins.str]:
|
|
1931
2583
|
"""
|
|
1932
2584
|
the registry user name
|
|
1933
2585
|
"""
|
|
@@ -1937,13 +2589,13 @@ class RemoteImageBuildAuthConfig(dict):
|
|
|
1937
2589
|
@pulumi.output_type
|
|
1938
2590
|
class RemoteImageBuildSecret(dict):
|
|
1939
2591
|
def __init__(__self__, *,
|
|
1940
|
-
id:
|
|
1941
|
-
env: Optional[
|
|
1942
|
-
src: Optional[
|
|
2592
|
+
id: _builtins.str,
|
|
2593
|
+
env: Optional[_builtins.str] = None,
|
|
2594
|
+
src: Optional[_builtins.str] = None):
|
|
1943
2595
|
"""
|
|
1944
|
-
:param
|
|
1945
|
-
:param
|
|
1946
|
-
:param
|
|
2596
|
+
:param _builtins.str id: ID of the secret. By default, secrets are mounted to /run/secrets/\\n\\n
|
|
2597
|
+
:param _builtins.str env: Environment variable source of the secret
|
|
2598
|
+
:param _builtins.str src: File source of the secret. Takes precedence over `env`
|
|
1947
2599
|
"""
|
|
1948
2600
|
pulumi.set(__self__, "id", id)
|
|
1949
2601
|
if env is not None:
|
|
@@ -1951,25 +2603,25 @@ class RemoteImageBuildSecret(dict):
|
|
|
1951
2603
|
if src is not None:
|
|
1952
2604
|
pulumi.set(__self__, "src", src)
|
|
1953
2605
|
|
|
1954
|
-
@property
|
|
2606
|
+
@_builtins.property
|
|
1955
2607
|
@pulumi.getter
|
|
1956
|
-
def id(self) ->
|
|
2608
|
+
def id(self) -> _builtins.str:
|
|
1957
2609
|
"""
|
|
1958
2610
|
ID of the secret. By default, secrets are mounted to /run/secrets/\\n\\n
|
|
1959
2611
|
"""
|
|
1960
2612
|
return pulumi.get(self, "id")
|
|
1961
2613
|
|
|
1962
|
-
@property
|
|
2614
|
+
@_builtins.property
|
|
1963
2615
|
@pulumi.getter
|
|
1964
|
-
def env(self) -> Optional[
|
|
2616
|
+
def env(self) -> Optional[_builtins.str]:
|
|
1965
2617
|
"""
|
|
1966
2618
|
Environment variable source of the secret
|
|
1967
2619
|
"""
|
|
1968
2620
|
return pulumi.get(self, "env")
|
|
1969
2621
|
|
|
1970
|
-
@property
|
|
2622
|
+
@_builtins.property
|
|
1971
2623
|
@pulumi.getter
|
|
1972
|
-
def src(self) -> Optional[
|
|
2624
|
+
def src(self) -> Optional[_builtins.str]:
|
|
1973
2625
|
"""
|
|
1974
2626
|
File source of the secret. Takes precedence over `env`
|
|
1975
2627
|
"""
|
|
@@ -1979,37 +2631,37 @@ class RemoteImageBuildSecret(dict):
|
|
|
1979
2631
|
@pulumi.output_type
|
|
1980
2632
|
class RemoteImageBuildUlimit(dict):
|
|
1981
2633
|
def __init__(__self__, *,
|
|
1982
|
-
hard:
|
|
1983
|
-
name:
|
|
1984
|
-
soft:
|
|
2634
|
+
hard: _builtins.int,
|
|
2635
|
+
name: _builtins.str,
|
|
2636
|
+
soft: _builtins.int):
|
|
1985
2637
|
"""
|
|
1986
|
-
:param
|
|
1987
|
-
:param
|
|
1988
|
-
:param
|
|
2638
|
+
:param _builtins.int hard: soft limit
|
|
2639
|
+
:param _builtins.str name: type of ulimit, e.g. `nofile`
|
|
2640
|
+
:param _builtins.int soft: hard limit
|
|
1989
2641
|
"""
|
|
1990
2642
|
pulumi.set(__self__, "hard", hard)
|
|
1991
2643
|
pulumi.set(__self__, "name", name)
|
|
1992
2644
|
pulumi.set(__self__, "soft", soft)
|
|
1993
2645
|
|
|
1994
|
-
@property
|
|
2646
|
+
@_builtins.property
|
|
1995
2647
|
@pulumi.getter
|
|
1996
|
-
def hard(self) ->
|
|
2648
|
+
def hard(self) -> _builtins.int:
|
|
1997
2649
|
"""
|
|
1998
2650
|
soft limit
|
|
1999
2651
|
"""
|
|
2000
2652
|
return pulumi.get(self, "hard")
|
|
2001
2653
|
|
|
2002
|
-
@property
|
|
2654
|
+
@_builtins.property
|
|
2003
2655
|
@pulumi.getter
|
|
2004
|
-
def name(self) ->
|
|
2656
|
+
def name(self) -> _builtins.str:
|
|
2005
2657
|
"""
|
|
2006
2658
|
type of ulimit, e.g. `nofile`
|
|
2007
2659
|
"""
|
|
2008
2660
|
return pulumi.get(self, "name")
|
|
2009
2661
|
|
|
2010
|
-
@property
|
|
2662
|
+
@_builtins.property
|
|
2011
2663
|
@pulumi.getter
|
|
2012
|
-
def soft(self) ->
|
|
2664
|
+
def soft(self) -> _builtins.int:
|
|
2013
2665
|
"""
|
|
2014
2666
|
hard limit
|
|
2015
2667
|
"""
|
|
@@ -2019,26 +2671,26 @@ class RemoteImageBuildUlimit(dict):
|
|
|
2019
2671
|
@pulumi.output_type
|
|
2020
2672
|
class SecretLabel(dict):
|
|
2021
2673
|
def __init__(__self__, *,
|
|
2022
|
-
label:
|
|
2023
|
-
value:
|
|
2674
|
+
label: _builtins.str,
|
|
2675
|
+
value: _builtins.str):
|
|
2024
2676
|
"""
|
|
2025
|
-
:param
|
|
2026
|
-
:param
|
|
2677
|
+
:param _builtins.str label: Name of the label
|
|
2678
|
+
:param _builtins.str value: Value of the label
|
|
2027
2679
|
"""
|
|
2028
2680
|
pulumi.set(__self__, "label", label)
|
|
2029
2681
|
pulumi.set(__self__, "value", value)
|
|
2030
2682
|
|
|
2031
|
-
@property
|
|
2683
|
+
@_builtins.property
|
|
2032
2684
|
@pulumi.getter
|
|
2033
|
-
def label(self) ->
|
|
2685
|
+
def label(self) -> _builtins.str:
|
|
2034
2686
|
"""
|
|
2035
2687
|
Name of the label
|
|
2036
2688
|
"""
|
|
2037
2689
|
return pulumi.get(self, "label")
|
|
2038
2690
|
|
|
2039
|
-
@property
|
|
2691
|
+
@_builtins.property
|
|
2040
2692
|
@pulumi.getter
|
|
2041
|
-
def value(self) ->
|
|
2693
|
+
def value(self) -> _builtins.str:
|
|
2042
2694
|
"""
|
|
2043
2695
|
Value of the label
|
|
2044
2696
|
"""
|
|
@@ -2065,13 +2717,13 @@ class ServiceAuth(dict):
|
|
|
2065
2717
|
return super().get(key, default)
|
|
2066
2718
|
|
|
2067
2719
|
def __init__(__self__, *,
|
|
2068
|
-
server_address:
|
|
2069
|
-
password: Optional[
|
|
2070
|
-
username: Optional[
|
|
2720
|
+
server_address: _builtins.str,
|
|
2721
|
+
password: Optional[_builtins.str] = None,
|
|
2722
|
+
username: Optional[_builtins.str] = None):
|
|
2071
2723
|
"""
|
|
2072
|
-
:param
|
|
2073
|
-
:param
|
|
2074
|
-
:param
|
|
2724
|
+
:param _builtins.str server_address: The address of the server for the authentication
|
|
2725
|
+
:param _builtins.str password: The password
|
|
2726
|
+
:param _builtins.str username: The username
|
|
2075
2727
|
"""
|
|
2076
2728
|
pulumi.set(__self__, "server_address", server_address)
|
|
2077
2729
|
if password is not None:
|
|
@@ -2079,25 +2731,25 @@ class ServiceAuth(dict):
|
|
|
2079
2731
|
if username is not None:
|
|
2080
2732
|
pulumi.set(__self__, "username", username)
|
|
2081
2733
|
|
|
2082
|
-
@property
|
|
2734
|
+
@_builtins.property
|
|
2083
2735
|
@pulumi.getter(name="serverAddress")
|
|
2084
|
-
def server_address(self) ->
|
|
2736
|
+
def server_address(self) -> _builtins.str:
|
|
2085
2737
|
"""
|
|
2086
2738
|
The address of the server for the authentication
|
|
2087
2739
|
"""
|
|
2088
2740
|
return pulumi.get(self, "server_address")
|
|
2089
2741
|
|
|
2090
|
-
@property
|
|
2742
|
+
@_builtins.property
|
|
2091
2743
|
@pulumi.getter
|
|
2092
|
-
def password(self) -> Optional[
|
|
2744
|
+
def password(self) -> Optional[_builtins.str]:
|
|
2093
2745
|
"""
|
|
2094
2746
|
The password
|
|
2095
2747
|
"""
|
|
2096
2748
|
return pulumi.get(self, "password")
|
|
2097
2749
|
|
|
2098
|
-
@property
|
|
2750
|
+
@_builtins.property
|
|
2099
2751
|
@pulumi.getter
|
|
2100
|
-
def username(self) -> Optional[
|
|
2752
|
+
def username(self) -> Optional[_builtins.str]:
|
|
2101
2753
|
"""
|
|
2102
2754
|
The username
|
|
2103
2755
|
"""
|
|
@@ -2107,28 +2759,28 @@ class ServiceAuth(dict):
|
|
|
2107
2759
|
@pulumi.output_type
|
|
2108
2760
|
class ServiceConvergeConfig(dict):
|
|
2109
2761
|
def __init__(__self__, *,
|
|
2110
|
-
delay: Optional[
|
|
2111
|
-
timeout: Optional[
|
|
2762
|
+
delay: Optional[_builtins.str] = None,
|
|
2763
|
+
timeout: Optional[_builtins.str] = None):
|
|
2112
2764
|
"""
|
|
2113
|
-
:param
|
|
2114
|
-
:param
|
|
2765
|
+
:param _builtins.str delay: The interval to check if the desired state is reached `(ms|s)`. Defaults to `7s`.
|
|
2766
|
+
:param _builtins.str timeout: The timeout of the service to reach the desired state `(s|m)`. Defaults to `3m`
|
|
2115
2767
|
"""
|
|
2116
2768
|
if delay is not None:
|
|
2117
2769
|
pulumi.set(__self__, "delay", delay)
|
|
2118
2770
|
if timeout is not None:
|
|
2119
2771
|
pulumi.set(__self__, "timeout", timeout)
|
|
2120
2772
|
|
|
2121
|
-
@property
|
|
2773
|
+
@_builtins.property
|
|
2122
2774
|
@pulumi.getter
|
|
2123
|
-
def delay(self) -> Optional[
|
|
2775
|
+
def delay(self) -> Optional[_builtins.str]:
|
|
2124
2776
|
"""
|
|
2125
2777
|
The interval to check if the desired state is reached `(ms|s)`. Defaults to `7s`.
|
|
2126
2778
|
"""
|
|
2127
2779
|
return pulumi.get(self, "delay")
|
|
2128
2780
|
|
|
2129
|
-
@property
|
|
2781
|
+
@_builtins.property
|
|
2130
2782
|
@pulumi.getter
|
|
2131
|
-
def timeout(self) -> Optional[
|
|
2783
|
+
def timeout(self) -> Optional[_builtins.str]:
|
|
2132
2784
|
"""
|
|
2133
2785
|
The timeout of the service to reach the desired state `(s|m)`. Defaults to `3m`
|
|
2134
2786
|
"""
|
|
@@ -2138,10 +2790,10 @@ class ServiceConvergeConfig(dict):
|
|
|
2138
2790
|
@pulumi.output_type
|
|
2139
2791
|
class ServiceEndpointSpec(dict):
|
|
2140
2792
|
def __init__(__self__, *,
|
|
2141
|
-
mode: Optional[
|
|
2793
|
+
mode: Optional[_builtins.str] = None,
|
|
2142
2794
|
ports: Optional[Sequence['outputs.ServiceEndpointSpecPort']] = None):
|
|
2143
2795
|
"""
|
|
2144
|
-
:param
|
|
2796
|
+
:param _builtins.str mode: The mode of resolution to use for internal load balancing between tasks
|
|
2145
2797
|
:param Sequence['ServiceEndpointSpecPortArgs'] ports: List of exposed ports that this service is accessible on from the outside. Ports can only be provided if 'vip' resolution mode is used
|
|
2146
2798
|
"""
|
|
2147
2799
|
if mode is not None:
|
|
@@ -2149,15 +2801,15 @@ class ServiceEndpointSpec(dict):
|
|
|
2149
2801
|
if ports is not None:
|
|
2150
2802
|
pulumi.set(__self__, "ports", ports)
|
|
2151
2803
|
|
|
2152
|
-
@property
|
|
2804
|
+
@_builtins.property
|
|
2153
2805
|
@pulumi.getter
|
|
2154
|
-
def mode(self) -> Optional[
|
|
2806
|
+
def mode(self) -> Optional[_builtins.str]:
|
|
2155
2807
|
"""
|
|
2156
2808
|
The mode of resolution to use for internal load balancing between tasks
|
|
2157
2809
|
"""
|
|
2158
2810
|
return pulumi.get(self, "mode")
|
|
2159
2811
|
|
|
2160
|
-
@property
|
|
2812
|
+
@_builtins.property
|
|
2161
2813
|
@pulumi.getter
|
|
2162
2814
|
def ports(self) -> Optional[Sequence['outputs.ServiceEndpointSpecPort']]:
|
|
2163
2815
|
"""
|
|
@@ -2190,17 +2842,17 @@ class ServiceEndpointSpecPort(dict):
|
|
|
2190
2842
|
return super().get(key, default)
|
|
2191
2843
|
|
|
2192
2844
|
def __init__(__self__, *,
|
|
2193
|
-
target_port:
|
|
2194
|
-
name: Optional[
|
|
2195
|
-
protocol: Optional[
|
|
2196
|
-
publish_mode: Optional[
|
|
2197
|
-
published_port: Optional[
|
|
2198
|
-
"""
|
|
2199
|
-
:param
|
|
2200
|
-
:param
|
|
2201
|
-
:param
|
|
2202
|
-
:param
|
|
2203
|
-
:param
|
|
2845
|
+
target_port: _builtins.int,
|
|
2846
|
+
name: Optional[_builtins.str] = None,
|
|
2847
|
+
protocol: Optional[_builtins.str] = None,
|
|
2848
|
+
publish_mode: Optional[_builtins.str] = None,
|
|
2849
|
+
published_port: Optional[_builtins.int] = None):
|
|
2850
|
+
"""
|
|
2851
|
+
:param _builtins.int target_port: The port inside the container
|
|
2852
|
+
:param _builtins.str name: A random name for the port
|
|
2853
|
+
:param _builtins.str protocol: Rrepresents the protocol of a port: `tcp`, `udp` or `sctp`. Defaults to `tcp`.
|
|
2854
|
+
:param _builtins.str publish_mode: Represents the mode in which the port is to be published: 'ingress' or 'host'. Defaults to `ingress`.
|
|
2855
|
+
:param _builtins.int published_port: The port on the swarm hosts
|
|
2204
2856
|
"""
|
|
2205
2857
|
pulumi.set(__self__, "target_port", target_port)
|
|
2206
2858
|
if name is not None:
|
|
@@ -2212,41 +2864,41 @@ class ServiceEndpointSpecPort(dict):
|
|
|
2212
2864
|
if published_port is not None:
|
|
2213
2865
|
pulumi.set(__self__, "published_port", published_port)
|
|
2214
2866
|
|
|
2215
|
-
@property
|
|
2867
|
+
@_builtins.property
|
|
2216
2868
|
@pulumi.getter(name="targetPort")
|
|
2217
|
-
def target_port(self) ->
|
|
2869
|
+
def target_port(self) -> _builtins.int:
|
|
2218
2870
|
"""
|
|
2219
2871
|
The port inside the container
|
|
2220
2872
|
"""
|
|
2221
2873
|
return pulumi.get(self, "target_port")
|
|
2222
2874
|
|
|
2223
|
-
@property
|
|
2875
|
+
@_builtins.property
|
|
2224
2876
|
@pulumi.getter
|
|
2225
|
-
def name(self) -> Optional[
|
|
2877
|
+
def name(self) -> Optional[_builtins.str]:
|
|
2226
2878
|
"""
|
|
2227
2879
|
A random name for the port
|
|
2228
2880
|
"""
|
|
2229
2881
|
return pulumi.get(self, "name")
|
|
2230
2882
|
|
|
2231
|
-
@property
|
|
2883
|
+
@_builtins.property
|
|
2232
2884
|
@pulumi.getter
|
|
2233
|
-
def protocol(self) -> Optional[
|
|
2885
|
+
def protocol(self) -> Optional[_builtins.str]:
|
|
2234
2886
|
"""
|
|
2235
2887
|
Rrepresents the protocol of a port: `tcp`, `udp` or `sctp`. Defaults to `tcp`.
|
|
2236
2888
|
"""
|
|
2237
2889
|
return pulumi.get(self, "protocol")
|
|
2238
2890
|
|
|
2239
|
-
@property
|
|
2891
|
+
@_builtins.property
|
|
2240
2892
|
@pulumi.getter(name="publishMode")
|
|
2241
|
-
def publish_mode(self) -> Optional[
|
|
2893
|
+
def publish_mode(self) -> Optional[_builtins.str]:
|
|
2242
2894
|
"""
|
|
2243
2895
|
Represents the mode in which the port is to be published: 'ingress' or 'host'. Defaults to `ingress`.
|
|
2244
2896
|
"""
|
|
2245
2897
|
return pulumi.get(self, "publish_mode")
|
|
2246
2898
|
|
|
2247
|
-
@property
|
|
2899
|
+
@_builtins.property
|
|
2248
2900
|
@pulumi.getter(name="publishedPort")
|
|
2249
|
-
def published_port(self) -> Optional[
|
|
2901
|
+
def published_port(self) -> Optional[_builtins.int]:
|
|
2250
2902
|
"""
|
|
2251
2903
|
The port on the swarm hosts
|
|
2252
2904
|
"""
|
|
@@ -2256,26 +2908,26 @@ class ServiceEndpointSpecPort(dict):
|
|
|
2256
2908
|
@pulumi.output_type
|
|
2257
2909
|
class ServiceLabel(dict):
|
|
2258
2910
|
def __init__(__self__, *,
|
|
2259
|
-
label:
|
|
2260
|
-
value:
|
|
2911
|
+
label: _builtins.str,
|
|
2912
|
+
value: _builtins.str):
|
|
2261
2913
|
"""
|
|
2262
|
-
:param
|
|
2263
|
-
:param
|
|
2914
|
+
:param _builtins.str label: Name of the label
|
|
2915
|
+
:param _builtins.str value: Value of the label
|
|
2264
2916
|
"""
|
|
2265
2917
|
pulumi.set(__self__, "label", label)
|
|
2266
2918
|
pulumi.set(__self__, "value", value)
|
|
2267
2919
|
|
|
2268
|
-
@property
|
|
2920
|
+
@_builtins.property
|
|
2269
2921
|
@pulumi.getter
|
|
2270
|
-
def label(self) ->
|
|
2922
|
+
def label(self) -> _builtins.str:
|
|
2271
2923
|
"""
|
|
2272
2924
|
Name of the label
|
|
2273
2925
|
"""
|
|
2274
2926
|
return pulumi.get(self, "label")
|
|
2275
2927
|
|
|
2276
|
-
@property
|
|
2928
|
+
@_builtins.property
|
|
2277
2929
|
@pulumi.getter
|
|
2278
|
-
def value(self) ->
|
|
2930
|
+
def value(self) -> _builtins.str:
|
|
2279
2931
|
"""
|
|
2280
2932
|
Value of the label
|
|
2281
2933
|
"""
|
|
@@ -2302,10 +2954,10 @@ class ServiceMode(dict):
|
|
|
2302
2954
|
return super().get(key, default)
|
|
2303
2955
|
|
|
2304
2956
|
def __init__(__self__, *,
|
|
2305
|
-
global_: Optional[
|
|
2957
|
+
global_: Optional[_builtins.bool] = None,
|
|
2306
2958
|
replicated: Optional['outputs.ServiceModeReplicated'] = None):
|
|
2307
2959
|
"""
|
|
2308
|
-
:param
|
|
2960
|
+
:param _builtins.bool global_: When `true`, tasks will run on every worker node. Conflicts with `replicated`
|
|
2309
2961
|
:param 'ServiceModeReplicatedArgs' replicated: The replicated service mode
|
|
2310
2962
|
"""
|
|
2311
2963
|
if global_ is not None:
|
|
@@ -2313,15 +2965,15 @@ class ServiceMode(dict):
|
|
|
2313
2965
|
if replicated is not None:
|
|
2314
2966
|
pulumi.set(__self__, "replicated", replicated)
|
|
2315
2967
|
|
|
2316
|
-
@property
|
|
2968
|
+
@_builtins.property
|
|
2317
2969
|
@pulumi.getter(name="global")
|
|
2318
|
-
def global_(self) -> Optional[
|
|
2970
|
+
def global_(self) -> Optional[_builtins.bool]:
|
|
2319
2971
|
"""
|
|
2320
2972
|
When `true`, tasks will run on every worker node. Conflicts with `replicated`
|
|
2321
2973
|
"""
|
|
2322
2974
|
return pulumi.get(self, "global_")
|
|
2323
2975
|
|
|
2324
|
-
@property
|
|
2976
|
+
@_builtins.property
|
|
2325
2977
|
@pulumi.getter
|
|
2326
2978
|
def replicated(self) -> Optional['outputs.ServiceModeReplicated']:
|
|
2327
2979
|
"""
|
|
@@ -2333,16 +2985,16 @@ class ServiceMode(dict):
|
|
|
2333
2985
|
@pulumi.output_type
|
|
2334
2986
|
class ServiceModeReplicated(dict):
|
|
2335
2987
|
def __init__(__self__, *,
|
|
2336
|
-
replicas: Optional[
|
|
2988
|
+
replicas: Optional[_builtins.int] = None):
|
|
2337
2989
|
"""
|
|
2338
|
-
:param
|
|
2990
|
+
:param _builtins.int replicas: The amount of replicas of the service. Defaults to `1`
|
|
2339
2991
|
"""
|
|
2340
2992
|
if replicas is not None:
|
|
2341
2993
|
pulumi.set(__self__, "replicas", replicas)
|
|
2342
2994
|
|
|
2343
|
-
@property
|
|
2995
|
+
@_builtins.property
|
|
2344
2996
|
@pulumi.getter
|
|
2345
|
-
def replicas(self) -> Optional[
|
|
2997
|
+
def replicas(self) -> Optional[_builtins.int]:
|
|
2346
2998
|
"""
|
|
2347
2999
|
The amount of replicas of the service. Defaults to `1`
|
|
2348
3000
|
"""
|
|
@@ -2371,19 +3023,19 @@ class ServiceRollbackConfig(dict):
|
|
|
2371
3023
|
return super().get(key, default)
|
|
2372
3024
|
|
|
2373
3025
|
def __init__(__self__, *,
|
|
2374
|
-
delay: Optional[
|
|
2375
|
-
failure_action: Optional[
|
|
2376
|
-
max_failure_ratio: Optional[
|
|
2377
|
-
monitor: Optional[
|
|
2378
|
-
order: Optional[
|
|
2379
|
-
parallelism: Optional[
|
|
2380
|
-
"""
|
|
2381
|
-
:param
|
|
2382
|
-
:param
|
|
2383
|
-
:param
|
|
2384
|
-
:param
|
|
2385
|
-
:param
|
|
2386
|
-
:param
|
|
3026
|
+
delay: Optional[_builtins.str] = None,
|
|
3027
|
+
failure_action: Optional[_builtins.str] = None,
|
|
3028
|
+
max_failure_ratio: Optional[_builtins.str] = None,
|
|
3029
|
+
monitor: Optional[_builtins.str] = None,
|
|
3030
|
+
order: Optional[_builtins.str] = None,
|
|
3031
|
+
parallelism: Optional[_builtins.int] = None):
|
|
3032
|
+
"""
|
|
3033
|
+
:param _builtins.str delay: Delay between task rollbacks (ns|us|ms|s|m|h). Defaults to `0s`.
|
|
3034
|
+
:param _builtins.str failure_action: Action on rollback failure: pause | continue. Defaults to `pause`.
|
|
3035
|
+
:param _builtins.str max_failure_ratio: Failure rate to tolerate during a rollback. Defaults to `0.0`.
|
|
3036
|
+
:param _builtins.str monitor: Duration after each task rollback to monitor for failure (ns|us|ms|s|m|h). Defaults to `5s`.
|
|
3037
|
+
:param _builtins.str order: Rollback order: either 'stop-first' or 'start-first'. Defaults to `stop-first`.
|
|
3038
|
+
:param _builtins.int parallelism: Maximum number of tasks to be rollbacked in one iteration. Defaults to `1`
|
|
2387
3039
|
"""
|
|
2388
3040
|
if delay is not None:
|
|
2389
3041
|
pulumi.set(__self__, "delay", delay)
|
|
@@ -2398,49 +3050,49 @@ class ServiceRollbackConfig(dict):
|
|
|
2398
3050
|
if parallelism is not None:
|
|
2399
3051
|
pulumi.set(__self__, "parallelism", parallelism)
|
|
2400
3052
|
|
|
2401
|
-
@property
|
|
3053
|
+
@_builtins.property
|
|
2402
3054
|
@pulumi.getter
|
|
2403
|
-
def delay(self) -> Optional[
|
|
3055
|
+
def delay(self) -> Optional[_builtins.str]:
|
|
2404
3056
|
"""
|
|
2405
3057
|
Delay between task rollbacks (ns|us|ms|s|m|h). Defaults to `0s`.
|
|
2406
3058
|
"""
|
|
2407
3059
|
return pulumi.get(self, "delay")
|
|
2408
3060
|
|
|
2409
|
-
@property
|
|
3061
|
+
@_builtins.property
|
|
2410
3062
|
@pulumi.getter(name="failureAction")
|
|
2411
|
-
def failure_action(self) -> Optional[
|
|
3063
|
+
def failure_action(self) -> Optional[_builtins.str]:
|
|
2412
3064
|
"""
|
|
2413
3065
|
Action on rollback failure: pause | continue. Defaults to `pause`.
|
|
2414
3066
|
"""
|
|
2415
3067
|
return pulumi.get(self, "failure_action")
|
|
2416
3068
|
|
|
2417
|
-
@property
|
|
3069
|
+
@_builtins.property
|
|
2418
3070
|
@pulumi.getter(name="maxFailureRatio")
|
|
2419
|
-
def max_failure_ratio(self) -> Optional[
|
|
3071
|
+
def max_failure_ratio(self) -> Optional[_builtins.str]:
|
|
2420
3072
|
"""
|
|
2421
3073
|
Failure rate to tolerate during a rollback. Defaults to `0.0`.
|
|
2422
3074
|
"""
|
|
2423
3075
|
return pulumi.get(self, "max_failure_ratio")
|
|
2424
3076
|
|
|
2425
|
-
@property
|
|
3077
|
+
@_builtins.property
|
|
2426
3078
|
@pulumi.getter
|
|
2427
|
-
def monitor(self) -> Optional[
|
|
3079
|
+
def monitor(self) -> Optional[_builtins.str]:
|
|
2428
3080
|
"""
|
|
2429
3081
|
Duration after each task rollback to monitor for failure (ns|us|ms|s|m|h). Defaults to `5s`.
|
|
2430
3082
|
"""
|
|
2431
3083
|
return pulumi.get(self, "monitor")
|
|
2432
3084
|
|
|
2433
|
-
@property
|
|
3085
|
+
@_builtins.property
|
|
2434
3086
|
@pulumi.getter
|
|
2435
|
-
def order(self) -> Optional[
|
|
3087
|
+
def order(self) -> Optional[_builtins.str]:
|
|
2436
3088
|
"""
|
|
2437
3089
|
Rollback order: either 'stop-first' or 'start-first'. Defaults to `stop-first`.
|
|
2438
3090
|
"""
|
|
2439
3091
|
return pulumi.get(self, "order")
|
|
2440
3092
|
|
|
2441
|
-
@property
|
|
3093
|
+
@_builtins.property
|
|
2442
3094
|
@pulumi.getter
|
|
2443
|
-
def parallelism(self) -> Optional[
|
|
3095
|
+
def parallelism(self) -> Optional[_builtins.int]:
|
|
2444
3096
|
"""
|
|
2445
3097
|
Maximum number of tasks to be rollbacked in one iteration. Defaults to `1`
|
|
2446
3098
|
"""
|
|
@@ -2476,22 +3128,22 @@ class ServiceTaskSpec(dict):
|
|
|
2476
3128
|
|
|
2477
3129
|
def __init__(__self__, *,
|
|
2478
3130
|
container_spec: 'outputs.ServiceTaskSpecContainerSpec',
|
|
2479
|
-
force_update: Optional[
|
|
3131
|
+
force_update: Optional[_builtins.int] = None,
|
|
2480
3132
|
log_driver: Optional['outputs.ServiceTaskSpecLogDriver'] = None,
|
|
2481
3133
|
networks_advanceds: Optional[Sequence['outputs.ServiceTaskSpecNetworksAdvanced']] = None,
|
|
2482
3134
|
placement: Optional['outputs.ServiceTaskSpecPlacement'] = None,
|
|
2483
3135
|
resources: Optional['outputs.ServiceTaskSpecResources'] = None,
|
|
2484
3136
|
restart_policy: Optional['outputs.ServiceTaskSpecRestartPolicy'] = None,
|
|
2485
|
-
runtime: Optional[
|
|
3137
|
+
runtime: Optional[_builtins.str] = None):
|
|
2486
3138
|
"""
|
|
2487
3139
|
:param 'ServiceTaskSpecContainerSpecArgs' container_spec: The spec for each container
|
|
2488
|
-
:param
|
|
3140
|
+
:param _builtins.int force_update: A counter that triggers an update even if no relevant parameters have been changed. See the [spec](https://github.com/docker/swarmkit/blob/master/api/specs.proto#L126).
|
|
2489
3141
|
:param 'ServiceTaskSpecLogDriverArgs' log_driver: Specifies the log driver to use for tasks created from this spec. If not present, the default one for the swarm will be used, finally falling back to the engine default if not specified
|
|
2490
3142
|
:param Sequence['ServiceTaskSpecNetworksAdvancedArgs'] networks_advanceds: The networks the container is attached to
|
|
2491
3143
|
:param 'ServiceTaskSpecPlacementArgs' placement: The placement preferences
|
|
2492
3144
|
:param 'ServiceTaskSpecResourcesArgs' resources: Resource requirements which apply to each individual container created as part of the service
|
|
2493
3145
|
:param 'ServiceTaskSpecRestartPolicyArgs' restart_policy: Specification for the restart policy which applies to containers created as part of this service.
|
|
2494
|
-
:param
|
|
3146
|
+
:param _builtins.str runtime: Runtime is the type of runtime specified for the task executor. See the [types](https://github.com/moby/moby/blob/master/api/types/swarm/runtime.go).
|
|
2495
3147
|
"""
|
|
2496
3148
|
pulumi.set(__self__, "container_spec", container_spec)
|
|
2497
3149
|
if force_update is not None:
|
|
@@ -2509,7 +3161,7 @@ class ServiceTaskSpec(dict):
|
|
|
2509
3161
|
if runtime is not None:
|
|
2510
3162
|
pulumi.set(__self__, "runtime", runtime)
|
|
2511
3163
|
|
|
2512
|
-
@property
|
|
3164
|
+
@_builtins.property
|
|
2513
3165
|
@pulumi.getter(name="containerSpec")
|
|
2514
3166
|
def container_spec(self) -> 'outputs.ServiceTaskSpecContainerSpec':
|
|
2515
3167
|
"""
|
|
@@ -2517,15 +3169,15 @@ class ServiceTaskSpec(dict):
|
|
|
2517
3169
|
"""
|
|
2518
3170
|
return pulumi.get(self, "container_spec")
|
|
2519
3171
|
|
|
2520
|
-
@property
|
|
3172
|
+
@_builtins.property
|
|
2521
3173
|
@pulumi.getter(name="forceUpdate")
|
|
2522
|
-
def force_update(self) -> Optional[
|
|
3174
|
+
def force_update(self) -> Optional[_builtins.int]:
|
|
2523
3175
|
"""
|
|
2524
3176
|
A counter that triggers an update even if no relevant parameters have been changed. See the [spec](https://github.com/docker/swarmkit/blob/master/api/specs.proto#L126).
|
|
2525
3177
|
"""
|
|
2526
3178
|
return pulumi.get(self, "force_update")
|
|
2527
3179
|
|
|
2528
|
-
@property
|
|
3180
|
+
@_builtins.property
|
|
2529
3181
|
@pulumi.getter(name="logDriver")
|
|
2530
3182
|
def log_driver(self) -> Optional['outputs.ServiceTaskSpecLogDriver']:
|
|
2531
3183
|
"""
|
|
@@ -2533,7 +3185,7 @@ class ServiceTaskSpec(dict):
|
|
|
2533
3185
|
"""
|
|
2534
3186
|
return pulumi.get(self, "log_driver")
|
|
2535
3187
|
|
|
2536
|
-
@property
|
|
3188
|
+
@_builtins.property
|
|
2537
3189
|
@pulumi.getter(name="networksAdvanceds")
|
|
2538
3190
|
def networks_advanceds(self) -> Optional[Sequence['outputs.ServiceTaskSpecNetworksAdvanced']]:
|
|
2539
3191
|
"""
|
|
@@ -2541,7 +3193,7 @@ class ServiceTaskSpec(dict):
|
|
|
2541
3193
|
"""
|
|
2542
3194
|
return pulumi.get(self, "networks_advanceds")
|
|
2543
3195
|
|
|
2544
|
-
@property
|
|
3196
|
+
@_builtins.property
|
|
2545
3197
|
@pulumi.getter
|
|
2546
3198
|
def placement(self) -> Optional['outputs.ServiceTaskSpecPlacement']:
|
|
2547
3199
|
"""
|
|
@@ -2549,7 +3201,7 @@ class ServiceTaskSpec(dict):
|
|
|
2549
3201
|
"""
|
|
2550
3202
|
return pulumi.get(self, "placement")
|
|
2551
3203
|
|
|
2552
|
-
@property
|
|
3204
|
+
@_builtins.property
|
|
2553
3205
|
@pulumi.getter
|
|
2554
3206
|
def resources(self) -> Optional['outputs.ServiceTaskSpecResources']:
|
|
2555
3207
|
"""
|
|
@@ -2557,7 +3209,7 @@ class ServiceTaskSpec(dict):
|
|
|
2557
3209
|
"""
|
|
2558
3210
|
return pulumi.get(self, "resources")
|
|
2559
3211
|
|
|
2560
|
-
@property
|
|
3212
|
+
@_builtins.property
|
|
2561
3213
|
@pulumi.getter(name="restartPolicy")
|
|
2562
3214
|
def restart_policy(self) -> Optional['outputs.ServiceTaskSpecRestartPolicy']:
|
|
2563
3215
|
"""
|
|
@@ -2565,9 +3217,9 @@ class ServiceTaskSpec(dict):
|
|
|
2565
3217
|
"""
|
|
2566
3218
|
return pulumi.get(self, "restart_policy")
|
|
2567
3219
|
|
|
2568
|
-
@property
|
|
3220
|
+
@_builtins.property
|
|
2569
3221
|
@pulumi.getter
|
|
2570
|
-
def runtime(self) -> Optional[
|
|
3222
|
+
def runtime(self) -> Optional[_builtins.str]:
|
|
2571
3223
|
"""
|
|
2572
3224
|
Runtime is the type of runtime specified for the task executor. See the [types](https://github.com/moby/moby/blob/master/api/types/swarm/runtime.go).
|
|
2573
3225
|
"""
|
|
@@ -2579,7 +3231,11 @@ class ServiceTaskSpecContainerSpec(dict):
|
|
|
2579
3231
|
@staticmethod
|
|
2580
3232
|
def __key_warning(key: str):
|
|
2581
3233
|
suggest = None
|
|
2582
|
-
if key == "
|
|
3234
|
+
if key == "capAdds":
|
|
3235
|
+
suggest = "cap_adds"
|
|
3236
|
+
elif key == "capDrops":
|
|
3237
|
+
suggest = "cap_drops"
|
|
3238
|
+
elif key == "dnsConfig":
|
|
2583
3239
|
suggest = "dns_config"
|
|
2584
3240
|
elif key == "readOnly":
|
|
2585
3241
|
suggest = "read_only"
|
|
@@ -2600,53 +3256,61 @@ class ServiceTaskSpecContainerSpec(dict):
|
|
|
2600
3256
|
return super().get(key, default)
|
|
2601
3257
|
|
|
2602
3258
|
def __init__(__self__, *,
|
|
2603
|
-
image:
|
|
2604
|
-
args: Optional[Sequence[
|
|
2605
|
-
|
|
3259
|
+
image: _builtins.str,
|
|
3260
|
+
args: Optional[Sequence[_builtins.str]] = None,
|
|
3261
|
+
cap_adds: Optional[Sequence[_builtins.str]] = None,
|
|
3262
|
+
cap_drops: Optional[Sequence[_builtins.str]] = None,
|
|
3263
|
+
commands: Optional[Sequence[_builtins.str]] = None,
|
|
2606
3264
|
configs: Optional[Sequence['outputs.ServiceTaskSpecContainerSpecConfig']] = None,
|
|
2607
|
-
dir: Optional[
|
|
3265
|
+
dir: Optional[_builtins.str] = None,
|
|
2608
3266
|
dns_config: Optional['outputs.ServiceTaskSpecContainerSpecDnsConfig'] = None,
|
|
2609
|
-
env: Optional[Mapping[str,
|
|
2610
|
-
groups: Optional[Sequence[
|
|
3267
|
+
env: Optional[Mapping[str, _builtins.str]] = None,
|
|
3268
|
+
groups: Optional[Sequence[_builtins.str]] = None,
|
|
2611
3269
|
healthcheck: Optional['outputs.ServiceTaskSpecContainerSpecHealthcheck'] = None,
|
|
2612
|
-
hostname: Optional[
|
|
3270
|
+
hostname: Optional[_builtins.str] = None,
|
|
2613
3271
|
hosts: Optional[Sequence['outputs.ServiceTaskSpecContainerSpecHost']] = None,
|
|
2614
|
-
isolation: Optional[
|
|
3272
|
+
isolation: Optional[_builtins.str] = None,
|
|
2615
3273
|
labels: Optional[Sequence['outputs.ServiceTaskSpecContainerSpecLabel']] = None,
|
|
2616
3274
|
mounts: Optional[Sequence['outputs.ServiceTaskSpecContainerSpecMount']] = None,
|
|
2617
3275
|
privileges: Optional['outputs.ServiceTaskSpecContainerSpecPrivileges'] = None,
|
|
2618
|
-
read_only: Optional[
|
|
3276
|
+
read_only: Optional[_builtins.bool] = None,
|
|
2619
3277
|
secrets: Optional[Sequence['outputs.ServiceTaskSpecContainerSpecSecret']] = None,
|
|
2620
|
-
stop_grace_period: Optional[
|
|
2621
|
-
stop_signal: Optional[
|
|
2622
|
-
sysctl: Optional[Mapping[str,
|
|
2623
|
-
user: Optional[
|
|
2624
|
-
"""
|
|
2625
|
-
:param
|
|
2626
|
-
:param Sequence[
|
|
2627
|
-
:param Sequence[
|
|
3278
|
+
stop_grace_period: Optional[_builtins.str] = None,
|
|
3279
|
+
stop_signal: Optional[_builtins.str] = None,
|
|
3280
|
+
sysctl: Optional[Mapping[str, _builtins.str]] = None,
|
|
3281
|
+
user: Optional[_builtins.str] = None):
|
|
3282
|
+
"""
|
|
3283
|
+
:param _builtins.str image: The image name to use for the containers of the service, like `nginx:1.17.6`. Also use the data-source or resource of `RemoteImage` with the `repo_digest` or `RegistryImage` with the `name` attribute for this, as shown in the examples.
|
|
3284
|
+
:param Sequence[_builtins.str] args: Arguments to the command
|
|
3285
|
+
:param Sequence[_builtins.str] cap_adds: List of Linux capabilities to add to the container
|
|
3286
|
+
:param Sequence[_builtins.str] cap_drops: List of Linux capabilities to drop from the container
|
|
3287
|
+
:param Sequence[_builtins.str] commands: The command/entrypoint to be run in the image. According to the [docker cli](https://github.com/docker/cli/blob/v20.10.7/cli/command/service/opts.go#L705) the override of the entrypoint is also passed to the `command` property and there is no `entrypoint` attribute in the `ContainerSpec` of the service.
|
|
2628
3288
|
:param Sequence['ServiceTaskSpecContainerSpecConfigArgs'] configs: References to zero or more configs that will be exposed to the service
|
|
2629
|
-
:param
|
|
3289
|
+
:param _builtins.str dir: The working directory for commands to run in
|
|
2630
3290
|
:param 'ServiceTaskSpecContainerSpecDnsConfigArgs' dns_config: Specification for DNS related configurations in resolver configuration file (`resolv.conf`)
|
|
2631
|
-
:param Mapping[str,
|
|
2632
|
-
:param Sequence[
|
|
3291
|
+
:param Mapping[str, _builtins.str] env: A list of environment variables in the form VAR="value"
|
|
3292
|
+
:param Sequence[_builtins.str] groups: A list of additional groups that the container process will run as
|
|
2633
3293
|
:param 'ServiceTaskSpecContainerSpecHealthcheckArgs' healthcheck: A test to perform to check that the container is healthy
|
|
2634
|
-
:param
|
|
3294
|
+
:param _builtins.str hostname: The hostname to use for the container, as a valid RFC 1123 hostname
|
|
2635
3295
|
:param Sequence['ServiceTaskSpecContainerSpecHostArgs'] hosts: A list of hostname/IP mappings to add to the container's hosts file
|
|
2636
|
-
:param
|
|
3296
|
+
:param _builtins.str isolation: Isolation technology of the containers running the service. (Windows only). Defaults to `default`.
|
|
2637
3297
|
:param Sequence['ServiceTaskSpecContainerSpecLabelArgs'] labels: User-defined key/value metadata
|
|
2638
3298
|
:param Sequence['ServiceTaskSpecContainerSpecMountArgs'] mounts: Specification for mounts to be added to containers created as part of the service
|
|
2639
3299
|
:param 'ServiceTaskSpecContainerSpecPrivilegesArgs' privileges: Security options for the container
|
|
2640
|
-
:param
|
|
3300
|
+
:param _builtins.bool read_only: Mount the container's root filesystem as read only
|
|
2641
3301
|
:param Sequence['ServiceTaskSpecContainerSpecSecretArgs'] secrets: References to zero or more secrets that will be exposed to the service
|
|
2642
|
-
:param
|
|
2643
|
-
:param
|
|
2644
|
-
:param Mapping[str,
|
|
2645
|
-
:param
|
|
3302
|
+
:param _builtins.str stop_grace_period: Amount of time to wait for the container to terminate before forcefully removing it (ms|s|m|h). If not specified or '0s' the destroy will not check if all tasks/containers of the service terminate.
|
|
3303
|
+
:param _builtins.str stop_signal: Signal to stop the container
|
|
3304
|
+
:param Mapping[str, _builtins.str] sysctl: Sysctls config (Linux only)
|
|
3305
|
+
:param _builtins.str user: The user inside the container
|
|
2646
3306
|
"""
|
|
2647
3307
|
pulumi.set(__self__, "image", image)
|
|
2648
3308
|
if args is not None:
|
|
2649
3309
|
pulumi.set(__self__, "args", args)
|
|
3310
|
+
if cap_adds is not None:
|
|
3311
|
+
pulumi.set(__self__, "cap_adds", cap_adds)
|
|
3312
|
+
if cap_drops is not None:
|
|
3313
|
+
pulumi.set(__self__, "cap_drops", cap_drops)
|
|
2650
3314
|
if commands is not None:
|
|
2651
3315
|
pulumi.set(__self__, "commands", commands)
|
|
2652
3316
|
if configs is not None:
|
|
@@ -2686,31 +3350,47 @@ class ServiceTaskSpecContainerSpec(dict):
|
|
|
2686
3350
|
if user is not None:
|
|
2687
3351
|
pulumi.set(__self__, "user", user)
|
|
2688
3352
|
|
|
2689
|
-
@property
|
|
3353
|
+
@_builtins.property
|
|
2690
3354
|
@pulumi.getter
|
|
2691
|
-
def image(self) ->
|
|
3355
|
+
def image(self) -> _builtins.str:
|
|
2692
3356
|
"""
|
|
2693
3357
|
The image name to use for the containers of the service, like `nginx:1.17.6`. Also use the data-source or resource of `RemoteImage` with the `repo_digest` or `RegistryImage` with the `name` attribute for this, as shown in the examples.
|
|
2694
3358
|
"""
|
|
2695
3359
|
return pulumi.get(self, "image")
|
|
2696
3360
|
|
|
2697
|
-
@property
|
|
3361
|
+
@_builtins.property
|
|
2698
3362
|
@pulumi.getter
|
|
2699
|
-
def args(self) -> Optional[Sequence[
|
|
3363
|
+
def args(self) -> Optional[Sequence[_builtins.str]]:
|
|
2700
3364
|
"""
|
|
2701
3365
|
Arguments to the command
|
|
2702
3366
|
"""
|
|
2703
3367
|
return pulumi.get(self, "args")
|
|
2704
3368
|
|
|
2705
|
-
@property
|
|
3369
|
+
@_builtins.property
|
|
3370
|
+
@pulumi.getter(name="capAdds")
|
|
3371
|
+
def cap_adds(self) -> Optional[Sequence[_builtins.str]]:
|
|
3372
|
+
"""
|
|
3373
|
+
List of Linux capabilities to add to the container
|
|
3374
|
+
"""
|
|
3375
|
+
return pulumi.get(self, "cap_adds")
|
|
3376
|
+
|
|
3377
|
+
@_builtins.property
|
|
3378
|
+
@pulumi.getter(name="capDrops")
|
|
3379
|
+
def cap_drops(self) -> Optional[Sequence[_builtins.str]]:
|
|
3380
|
+
"""
|
|
3381
|
+
List of Linux capabilities to drop from the container
|
|
3382
|
+
"""
|
|
3383
|
+
return pulumi.get(self, "cap_drops")
|
|
3384
|
+
|
|
3385
|
+
@_builtins.property
|
|
2706
3386
|
@pulumi.getter
|
|
2707
|
-
def commands(self) -> Optional[Sequence[
|
|
3387
|
+
def commands(self) -> Optional[Sequence[_builtins.str]]:
|
|
2708
3388
|
"""
|
|
2709
3389
|
The command/entrypoint to be run in the image. According to the [docker cli](https://github.com/docker/cli/blob/v20.10.7/cli/command/service/opts.go#L705) the override of the entrypoint is also passed to the `command` property and there is no `entrypoint` attribute in the `ContainerSpec` of the service.
|
|
2710
3390
|
"""
|
|
2711
3391
|
return pulumi.get(self, "commands")
|
|
2712
3392
|
|
|
2713
|
-
@property
|
|
3393
|
+
@_builtins.property
|
|
2714
3394
|
@pulumi.getter
|
|
2715
3395
|
def configs(self) -> Optional[Sequence['outputs.ServiceTaskSpecContainerSpecConfig']]:
|
|
2716
3396
|
"""
|
|
@@ -2718,15 +3398,15 @@ class ServiceTaskSpecContainerSpec(dict):
|
|
|
2718
3398
|
"""
|
|
2719
3399
|
return pulumi.get(self, "configs")
|
|
2720
3400
|
|
|
2721
|
-
@property
|
|
3401
|
+
@_builtins.property
|
|
2722
3402
|
@pulumi.getter
|
|
2723
|
-
def dir(self) -> Optional[
|
|
3403
|
+
def dir(self) -> Optional[_builtins.str]:
|
|
2724
3404
|
"""
|
|
2725
3405
|
The working directory for commands to run in
|
|
2726
3406
|
"""
|
|
2727
3407
|
return pulumi.get(self, "dir")
|
|
2728
3408
|
|
|
2729
|
-
@property
|
|
3409
|
+
@_builtins.property
|
|
2730
3410
|
@pulumi.getter(name="dnsConfig")
|
|
2731
3411
|
def dns_config(self) -> Optional['outputs.ServiceTaskSpecContainerSpecDnsConfig']:
|
|
2732
3412
|
"""
|
|
@@ -2734,23 +3414,23 @@ class ServiceTaskSpecContainerSpec(dict):
|
|
|
2734
3414
|
"""
|
|
2735
3415
|
return pulumi.get(self, "dns_config")
|
|
2736
3416
|
|
|
2737
|
-
@property
|
|
3417
|
+
@_builtins.property
|
|
2738
3418
|
@pulumi.getter
|
|
2739
|
-
def env(self) -> Optional[Mapping[str,
|
|
3419
|
+
def env(self) -> Optional[Mapping[str, _builtins.str]]:
|
|
2740
3420
|
"""
|
|
2741
3421
|
A list of environment variables in the form VAR="value"
|
|
2742
3422
|
"""
|
|
2743
3423
|
return pulumi.get(self, "env")
|
|
2744
3424
|
|
|
2745
|
-
@property
|
|
3425
|
+
@_builtins.property
|
|
2746
3426
|
@pulumi.getter
|
|
2747
|
-
def groups(self) -> Optional[Sequence[
|
|
3427
|
+
def groups(self) -> Optional[Sequence[_builtins.str]]:
|
|
2748
3428
|
"""
|
|
2749
3429
|
A list of additional groups that the container process will run as
|
|
2750
3430
|
"""
|
|
2751
3431
|
return pulumi.get(self, "groups")
|
|
2752
3432
|
|
|
2753
|
-
@property
|
|
3433
|
+
@_builtins.property
|
|
2754
3434
|
@pulumi.getter
|
|
2755
3435
|
def healthcheck(self) -> Optional['outputs.ServiceTaskSpecContainerSpecHealthcheck']:
|
|
2756
3436
|
"""
|
|
@@ -2758,15 +3438,15 @@ class ServiceTaskSpecContainerSpec(dict):
|
|
|
2758
3438
|
"""
|
|
2759
3439
|
return pulumi.get(self, "healthcheck")
|
|
2760
3440
|
|
|
2761
|
-
@property
|
|
3441
|
+
@_builtins.property
|
|
2762
3442
|
@pulumi.getter
|
|
2763
|
-
def hostname(self) -> Optional[
|
|
3443
|
+
def hostname(self) -> Optional[_builtins.str]:
|
|
2764
3444
|
"""
|
|
2765
3445
|
The hostname to use for the container, as a valid RFC 1123 hostname
|
|
2766
3446
|
"""
|
|
2767
3447
|
return pulumi.get(self, "hostname")
|
|
2768
3448
|
|
|
2769
|
-
@property
|
|
3449
|
+
@_builtins.property
|
|
2770
3450
|
@pulumi.getter
|
|
2771
3451
|
def hosts(self) -> Optional[Sequence['outputs.ServiceTaskSpecContainerSpecHost']]:
|
|
2772
3452
|
"""
|
|
@@ -2774,15 +3454,15 @@ class ServiceTaskSpecContainerSpec(dict):
|
|
|
2774
3454
|
"""
|
|
2775
3455
|
return pulumi.get(self, "hosts")
|
|
2776
3456
|
|
|
2777
|
-
@property
|
|
3457
|
+
@_builtins.property
|
|
2778
3458
|
@pulumi.getter
|
|
2779
|
-
def isolation(self) -> Optional[
|
|
3459
|
+
def isolation(self) -> Optional[_builtins.str]:
|
|
2780
3460
|
"""
|
|
2781
3461
|
Isolation technology of the containers running the service. (Windows only). Defaults to `default`.
|
|
2782
3462
|
"""
|
|
2783
3463
|
return pulumi.get(self, "isolation")
|
|
2784
3464
|
|
|
2785
|
-
@property
|
|
3465
|
+
@_builtins.property
|
|
2786
3466
|
@pulumi.getter
|
|
2787
3467
|
def labels(self) -> Optional[Sequence['outputs.ServiceTaskSpecContainerSpecLabel']]:
|
|
2788
3468
|
"""
|
|
@@ -2790,7 +3470,7 @@ class ServiceTaskSpecContainerSpec(dict):
|
|
|
2790
3470
|
"""
|
|
2791
3471
|
return pulumi.get(self, "labels")
|
|
2792
3472
|
|
|
2793
|
-
@property
|
|
3473
|
+
@_builtins.property
|
|
2794
3474
|
@pulumi.getter
|
|
2795
3475
|
def mounts(self) -> Optional[Sequence['outputs.ServiceTaskSpecContainerSpecMount']]:
|
|
2796
3476
|
"""
|
|
@@ -2798,7 +3478,7 @@ class ServiceTaskSpecContainerSpec(dict):
|
|
|
2798
3478
|
"""
|
|
2799
3479
|
return pulumi.get(self, "mounts")
|
|
2800
3480
|
|
|
2801
|
-
@property
|
|
3481
|
+
@_builtins.property
|
|
2802
3482
|
@pulumi.getter
|
|
2803
3483
|
def privileges(self) -> Optional['outputs.ServiceTaskSpecContainerSpecPrivileges']:
|
|
2804
3484
|
"""
|
|
@@ -2806,15 +3486,15 @@ class ServiceTaskSpecContainerSpec(dict):
|
|
|
2806
3486
|
"""
|
|
2807
3487
|
return pulumi.get(self, "privileges")
|
|
2808
3488
|
|
|
2809
|
-
@property
|
|
3489
|
+
@_builtins.property
|
|
2810
3490
|
@pulumi.getter(name="readOnly")
|
|
2811
|
-
def read_only(self) -> Optional[
|
|
3491
|
+
def read_only(self) -> Optional[_builtins.bool]:
|
|
2812
3492
|
"""
|
|
2813
3493
|
Mount the container's root filesystem as read only
|
|
2814
3494
|
"""
|
|
2815
3495
|
return pulumi.get(self, "read_only")
|
|
2816
3496
|
|
|
2817
|
-
@property
|
|
3497
|
+
@_builtins.property
|
|
2818
3498
|
@pulumi.getter
|
|
2819
3499
|
def secrets(self) -> Optional[Sequence['outputs.ServiceTaskSpecContainerSpecSecret']]:
|
|
2820
3500
|
"""
|
|
@@ -2822,33 +3502,33 @@ class ServiceTaskSpecContainerSpec(dict):
|
|
|
2822
3502
|
"""
|
|
2823
3503
|
return pulumi.get(self, "secrets")
|
|
2824
3504
|
|
|
2825
|
-
@property
|
|
3505
|
+
@_builtins.property
|
|
2826
3506
|
@pulumi.getter(name="stopGracePeriod")
|
|
2827
|
-
def stop_grace_period(self) -> Optional[
|
|
3507
|
+
def stop_grace_period(self) -> Optional[_builtins.str]:
|
|
2828
3508
|
"""
|
|
2829
3509
|
Amount of time to wait for the container to terminate before forcefully removing it (ms|s|m|h). If not specified or '0s' the destroy will not check if all tasks/containers of the service terminate.
|
|
2830
3510
|
"""
|
|
2831
3511
|
return pulumi.get(self, "stop_grace_period")
|
|
2832
3512
|
|
|
2833
|
-
@property
|
|
3513
|
+
@_builtins.property
|
|
2834
3514
|
@pulumi.getter(name="stopSignal")
|
|
2835
|
-
def stop_signal(self) -> Optional[
|
|
3515
|
+
def stop_signal(self) -> Optional[_builtins.str]:
|
|
2836
3516
|
"""
|
|
2837
3517
|
Signal to stop the container
|
|
2838
3518
|
"""
|
|
2839
3519
|
return pulumi.get(self, "stop_signal")
|
|
2840
3520
|
|
|
2841
|
-
@property
|
|
3521
|
+
@_builtins.property
|
|
2842
3522
|
@pulumi.getter
|
|
2843
|
-
def sysctl(self) -> Optional[Mapping[str,
|
|
3523
|
+
def sysctl(self) -> Optional[Mapping[str, _builtins.str]]:
|
|
2844
3524
|
"""
|
|
2845
3525
|
Sysctls config (Linux only)
|
|
2846
3526
|
"""
|
|
2847
3527
|
return pulumi.get(self, "sysctl")
|
|
2848
3528
|
|
|
2849
|
-
@property
|
|
3529
|
+
@_builtins.property
|
|
2850
3530
|
@pulumi.getter
|
|
2851
|
-
def user(self) -> Optional[
|
|
3531
|
+
def user(self) -> Optional[_builtins.str]:
|
|
2852
3532
|
"""
|
|
2853
3533
|
The user inside the container
|
|
2854
3534
|
"""
|
|
@@ -2885,19 +3565,19 @@ class ServiceTaskSpecContainerSpecConfig(dict):
|
|
|
2885
3565
|
return super().get(key, default)
|
|
2886
3566
|
|
|
2887
3567
|
def __init__(__self__, *,
|
|
2888
|
-
config_id:
|
|
2889
|
-
file_name:
|
|
2890
|
-
config_name: Optional[
|
|
2891
|
-
file_gid: Optional[
|
|
2892
|
-
file_mode: Optional[
|
|
2893
|
-
file_uid: Optional[
|
|
2894
|
-
"""
|
|
2895
|
-
:param
|
|
2896
|
-
:param
|
|
2897
|
-
:param
|
|
2898
|
-
:param
|
|
2899
|
-
:param
|
|
2900
|
-
:param
|
|
3568
|
+
config_id: _builtins.str,
|
|
3569
|
+
file_name: _builtins.str,
|
|
3570
|
+
config_name: Optional[_builtins.str] = None,
|
|
3571
|
+
file_gid: Optional[_builtins.str] = None,
|
|
3572
|
+
file_mode: Optional[_builtins.int] = None,
|
|
3573
|
+
file_uid: Optional[_builtins.str] = None):
|
|
3574
|
+
"""
|
|
3575
|
+
:param _builtins.str config_id: ID of the specific config that we're referencing
|
|
3576
|
+
:param _builtins.str file_name: Represents the final filename in the filesystem
|
|
3577
|
+
:param _builtins.str config_name: Name of the config that this references, but this is just provided for lookup/display purposes. The config in the reference will be identified by its ID
|
|
3578
|
+
:param _builtins.str file_gid: Represents the file GID. Defaults to `0`.
|
|
3579
|
+
:param _builtins.int file_mode: Represents represents the FileMode of the file. Defaults to `0o444`.
|
|
3580
|
+
:param _builtins.str file_uid: Represents the file UID. Defaults to `0`.
|
|
2901
3581
|
"""
|
|
2902
3582
|
pulumi.set(__self__, "config_id", config_id)
|
|
2903
3583
|
pulumi.set(__self__, "file_name", file_name)
|
|
@@ -2910,49 +3590,49 @@ class ServiceTaskSpecContainerSpecConfig(dict):
|
|
|
2910
3590
|
if file_uid is not None:
|
|
2911
3591
|
pulumi.set(__self__, "file_uid", file_uid)
|
|
2912
3592
|
|
|
2913
|
-
@property
|
|
3593
|
+
@_builtins.property
|
|
2914
3594
|
@pulumi.getter(name="configId")
|
|
2915
|
-
def config_id(self) ->
|
|
3595
|
+
def config_id(self) -> _builtins.str:
|
|
2916
3596
|
"""
|
|
2917
3597
|
ID of the specific config that we're referencing
|
|
2918
3598
|
"""
|
|
2919
3599
|
return pulumi.get(self, "config_id")
|
|
2920
3600
|
|
|
2921
|
-
@property
|
|
3601
|
+
@_builtins.property
|
|
2922
3602
|
@pulumi.getter(name="fileName")
|
|
2923
|
-
def file_name(self) ->
|
|
3603
|
+
def file_name(self) -> _builtins.str:
|
|
2924
3604
|
"""
|
|
2925
3605
|
Represents the final filename in the filesystem
|
|
2926
3606
|
"""
|
|
2927
3607
|
return pulumi.get(self, "file_name")
|
|
2928
3608
|
|
|
2929
|
-
@property
|
|
3609
|
+
@_builtins.property
|
|
2930
3610
|
@pulumi.getter(name="configName")
|
|
2931
|
-
def config_name(self) -> Optional[
|
|
3611
|
+
def config_name(self) -> Optional[_builtins.str]:
|
|
2932
3612
|
"""
|
|
2933
3613
|
Name of the config that this references, but this is just provided for lookup/display purposes. The config in the reference will be identified by its ID
|
|
2934
3614
|
"""
|
|
2935
3615
|
return pulumi.get(self, "config_name")
|
|
2936
3616
|
|
|
2937
|
-
@property
|
|
3617
|
+
@_builtins.property
|
|
2938
3618
|
@pulumi.getter(name="fileGid")
|
|
2939
|
-
def file_gid(self) -> Optional[
|
|
3619
|
+
def file_gid(self) -> Optional[_builtins.str]:
|
|
2940
3620
|
"""
|
|
2941
3621
|
Represents the file GID. Defaults to `0`.
|
|
2942
3622
|
"""
|
|
2943
3623
|
return pulumi.get(self, "file_gid")
|
|
2944
3624
|
|
|
2945
|
-
@property
|
|
3625
|
+
@_builtins.property
|
|
2946
3626
|
@pulumi.getter(name="fileMode")
|
|
2947
|
-
def file_mode(self) -> Optional[
|
|
3627
|
+
def file_mode(self) -> Optional[_builtins.int]:
|
|
2948
3628
|
"""
|
|
2949
3629
|
Represents represents the FileMode of the file. Defaults to `0o444`.
|
|
2950
3630
|
"""
|
|
2951
3631
|
return pulumi.get(self, "file_mode")
|
|
2952
3632
|
|
|
2953
|
-
@property
|
|
3633
|
+
@_builtins.property
|
|
2954
3634
|
@pulumi.getter(name="fileUid")
|
|
2955
|
-
def file_uid(self) -> Optional[
|
|
3635
|
+
def file_uid(self) -> Optional[_builtins.str]:
|
|
2956
3636
|
"""
|
|
2957
3637
|
Represents the file UID. Defaults to `0`.
|
|
2958
3638
|
"""
|
|
@@ -2962,13 +3642,13 @@ class ServiceTaskSpecContainerSpecConfig(dict):
|
|
|
2962
3642
|
@pulumi.output_type
|
|
2963
3643
|
class ServiceTaskSpecContainerSpecDnsConfig(dict):
|
|
2964
3644
|
def __init__(__self__, *,
|
|
2965
|
-
nameservers: Sequence[
|
|
2966
|
-
options: Optional[Sequence[
|
|
2967
|
-
searches: Optional[Sequence[
|
|
3645
|
+
nameservers: Sequence[_builtins.str],
|
|
3646
|
+
options: Optional[Sequence[_builtins.str]] = None,
|
|
3647
|
+
searches: Optional[Sequence[_builtins.str]] = None):
|
|
2968
3648
|
"""
|
|
2969
|
-
:param Sequence[
|
|
2970
|
-
:param Sequence[
|
|
2971
|
-
:param Sequence[
|
|
3649
|
+
:param Sequence[_builtins.str] nameservers: The IP addresses of the name servers
|
|
3650
|
+
:param Sequence[_builtins.str] options: A list of internal resolver variables to be modified (e.g., `debug`, `ndots:3`, etc.)
|
|
3651
|
+
:param Sequence[_builtins.str] searches: A search list for host-name lookup
|
|
2972
3652
|
"""
|
|
2973
3653
|
pulumi.set(__self__, "nameservers", nameservers)
|
|
2974
3654
|
if options is not None:
|
|
@@ -2976,25 +3656,25 @@ class ServiceTaskSpecContainerSpecDnsConfig(dict):
|
|
|
2976
3656
|
if searches is not None:
|
|
2977
3657
|
pulumi.set(__self__, "searches", searches)
|
|
2978
3658
|
|
|
2979
|
-
@property
|
|
3659
|
+
@_builtins.property
|
|
2980
3660
|
@pulumi.getter
|
|
2981
|
-
def nameservers(self) -> Sequence[
|
|
3661
|
+
def nameservers(self) -> Sequence[_builtins.str]:
|
|
2982
3662
|
"""
|
|
2983
3663
|
The IP addresses of the name servers
|
|
2984
3664
|
"""
|
|
2985
3665
|
return pulumi.get(self, "nameservers")
|
|
2986
3666
|
|
|
2987
|
-
@property
|
|
3667
|
+
@_builtins.property
|
|
2988
3668
|
@pulumi.getter
|
|
2989
|
-
def options(self) -> Optional[Sequence[
|
|
3669
|
+
def options(self) -> Optional[Sequence[_builtins.str]]:
|
|
2990
3670
|
"""
|
|
2991
3671
|
A list of internal resolver variables to be modified (e.g., `debug`, `ndots:3`, etc.)
|
|
2992
3672
|
"""
|
|
2993
3673
|
return pulumi.get(self, "options")
|
|
2994
3674
|
|
|
2995
|
-
@property
|
|
3675
|
+
@_builtins.property
|
|
2996
3676
|
@pulumi.getter
|
|
2997
|
-
def searches(self) -> Optional[Sequence[
|
|
3677
|
+
def searches(self) -> Optional[Sequence[_builtins.str]]:
|
|
2998
3678
|
"""
|
|
2999
3679
|
A search list for host-name lookup
|
|
3000
3680
|
"""
|
|
@@ -3021,17 +3701,17 @@ class ServiceTaskSpecContainerSpecHealthcheck(dict):
|
|
|
3021
3701
|
return super().get(key, default)
|
|
3022
3702
|
|
|
3023
3703
|
def __init__(__self__, *,
|
|
3024
|
-
tests: Sequence[
|
|
3025
|
-
interval: Optional[
|
|
3026
|
-
retries: Optional[
|
|
3027
|
-
start_period: Optional[
|
|
3028
|
-
timeout: Optional[
|
|
3029
|
-
"""
|
|
3030
|
-
:param Sequence[
|
|
3031
|
-
:param
|
|
3032
|
-
:param
|
|
3033
|
-
:param
|
|
3034
|
-
:param
|
|
3704
|
+
tests: Sequence[_builtins.str],
|
|
3705
|
+
interval: Optional[_builtins.str] = None,
|
|
3706
|
+
retries: Optional[_builtins.int] = None,
|
|
3707
|
+
start_period: Optional[_builtins.str] = None,
|
|
3708
|
+
timeout: Optional[_builtins.str] = None):
|
|
3709
|
+
"""
|
|
3710
|
+
:param Sequence[_builtins.str] tests: The test to perform as list
|
|
3711
|
+
:param _builtins.str interval: Time between running the check (ms|s|m|h). Defaults to `0s`.
|
|
3712
|
+
:param _builtins.int retries: Consecutive failures needed to report unhealthy. Defaults to `0`
|
|
3713
|
+
:param _builtins.str start_period: Start period for the container to initialize before counting retries towards unstable (ms|s|m|h). Defaults to `0s`.
|
|
3714
|
+
:param _builtins.str timeout: Maximum time to allow one check to run (ms|s|m|h). Defaults to `0s`.
|
|
3035
3715
|
"""
|
|
3036
3716
|
pulumi.set(__self__, "tests", tests)
|
|
3037
3717
|
if interval is not None:
|
|
@@ -3043,41 +3723,41 @@ class ServiceTaskSpecContainerSpecHealthcheck(dict):
|
|
|
3043
3723
|
if timeout is not None:
|
|
3044
3724
|
pulumi.set(__self__, "timeout", timeout)
|
|
3045
3725
|
|
|
3046
|
-
@property
|
|
3726
|
+
@_builtins.property
|
|
3047
3727
|
@pulumi.getter
|
|
3048
|
-
def tests(self) -> Sequence[
|
|
3728
|
+
def tests(self) -> Sequence[_builtins.str]:
|
|
3049
3729
|
"""
|
|
3050
3730
|
The test to perform as list
|
|
3051
3731
|
"""
|
|
3052
3732
|
return pulumi.get(self, "tests")
|
|
3053
3733
|
|
|
3054
|
-
@property
|
|
3734
|
+
@_builtins.property
|
|
3055
3735
|
@pulumi.getter
|
|
3056
|
-
def interval(self) -> Optional[
|
|
3736
|
+
def interval(self) -> Optional[_builtins.str]:
|
|
3057
3737
|
"""
|
|
3058
3738
|
Time between running the check (ms|s|m|h). Defaults to `0s`.
|
|
3059
3739
|
"""
|
|
3060
3740
|
return pulumi.get(self, "interval")
|
|
3061
3741
|
|
|
3062
|
-
@property
|
|
3742
|
+
@_builtins.property
|
|
3063
3743
|
@pulumi.getter
|
|
3064
|
-
def retries(self) -> Optional[
|
|
3744
|
+
def retries(self) -> Optional[_builtins.int]:
|
|
3065
3745
|
"""
|
|
3066
3746
|
Consecutive failures needed to report unhealthy. Defaults to `0`
|
|
3067
3747
|
"""
|
|
3068
3748
|
return pulumi.get(self, "retries")
|
|
3069
3749
|
|
|
3070
|
-
@property
|
|
3750
|
+
@_builtins.property
|
|
3071
3751
|
@pulumi.getter(name="startPeriod")
|
|
3072
|
-
def start_period(self) -> Optional[
|
|
3752
|
+
def start_period(self) -> Optional[_builtins.str]:
|
|
3073
3753
|
"""
|
|
3074
3754
|
Start period for the container to initialize before counting retries towards unstable (ms|s|m|h). Defaults to `0s`.
|
|
3075
3755
|
"""
|
|
3076
3756
|
return pulumi.get(self, "start_period")
|
|
3077
3757
|
|
|
3078
|
-
@property
|
|
3758
|
+
@_builtins.property
|
|
3079
3759
|
@pulumi.getter
|
|
3080
|
-
def timeout(self) -> Optional[
|
|
3760
|
+
def timeout(self) -> Optional[_builtins.str]:
|
|
3081
3761
|
"""
|
|
3082
3762
|
Maximum time to allow one check to run (ms|s|m|h). Defaults to `0s`.
|
|
3083
3763
|
"""
|
|
@@ -3087,26 +3767,26 @@ class ServiceTaskSpecContainerSpecHealthcheck(dict):
|
|
|
3087
3767
|
@pulumi.output_type
|
|
3088
3768
|
class ServiceTaskSpecContainerSpecHost(dict):
|
|
3089
3769
|
def __init__(__self__, *,
|
|
3090
|
-
host:
|
|
3091
|
-
ip:
|
|
3770
|
+
host: _builtins.str,
|
|
3771
|
+
ip: _builtins.str):
|
|
3092
3772
|
"""
|
|
3093
|
-
:param
|
|
3094
|
-
:param
|
|
3773
|
+
:param _builtins.str host: The name of the host
|
|
3774
|
+
:param _builtins.str ip: The ip of the host
|
|
3095
3775
|
"""
|
|
3096
3776
|
pulumi.set(__self__, "host", host)
|
|
3097
3777
|
pulumi.set(__self__, "ip", ip)
|
|
3098
3778
|
|
|
3099
|
-
@property
|
|
3779
|
+
@_builtins.property
|
|
3100
3780
|
@pulumi.getter
|
|
3101
|
-
def host(self) ->
|
|
3781
|
+
def host(self) -> _builtins.str:
|
|
3102
3782
|
"""
|
|
3103
3783
|
The name of the host
|
|
3104
3784
|
"""
|
|
3105
3785
|
return pulumi.get(self, "host")
|
|
3106
3786
|
|
|
3107
|
-
@property
|
|
3787
|
+
@_builtins.property
|
|
3108
3788
|
@pulumi.getter
|
|
3109
|
-
def ip(self) ->
|
|
3789
|
+
def ip(self) -> _builtins.str:
|
|
3110
3790
|
"""
|
|
3111
3791
|
The ip of the host
|
|
3112
3792
|
"""
|
|
@@ -3116,26 +3796,26 @@ class ServiceTaskSpecContainerSpecHost(dict):
|
|
|
3116
3796
|
@pulumi.output_type
|
|
3117
3797
|
class ServiceTaskSpecContainerSpecLabel(dict):
|
|
3118
3798
|
def __init__(__self__, *,
|
|
3119
|
-
label:
|
|
3120
|
-
value:
|
|
3799
|
+
label: _builtins.str,
|
|
3800
|
+
value: _builtins.str):
|
|
3121
3801
|
"""
|
|
3122
|
-
:param
|
|
3123
|
-
:param
|
|
3802
|
+
:param _builtins.str label: Name of the label
|
|
3803
|
+
:param _builtins.str value: Value of the label
|
|
3124
3804
|
"""
|
|
3125
3805
|
pulumi.set(__self__, "label", label)
|
|
3126
3806
|
pulumi.set(__self__, "value", value)
|
|
3127
3807
|
|
|
3128
|
-
@property
|
|
3808
|
+
@_builtins.property
|
|
3129
3809
|
@pulumi.getter
|
|
3130
|
-
def label(self) ->
|
|
3810
|
+
def label(self) -> _builtins.str:
|
|
3131
3811
|
"""
|
|
3132
3812
|
Name of the label
|
|
3133
3813
|
"""
|
|
3134
3814
|
return pulumi.get(self, "label")
|
|
3135
3815
|
|
|
3136
|
-
@property
|
|
3816
|
+
@_builtins.property
|
|
3137
3817
|
@pulumi.getter
|
|
3138
|
-
def value(self) ->
|
|
3818
|
+
def value(self) -> _builtins.str:
|
|
3139
3819
|
"""
|
|
3140
3820
|
Value of the label
|
|
3141
3821
|
"""
|
|
@@ -3168,19 +3848,19 @@ class ServiceTaskSpecContainerSpecMount(dict):
|
|
|
3168
3848
|
return super().get(key, default)
|
|
3169
3849
|
|
|
3170
3850
|
def __init__(__self__, *,
|
|
3171
|
-
target:
|
|
3172
|
-
type:
|
|
3851
|
+
target: _builtins.str,
|
|
3852
|
+
type: _builtins.str,
|
|
3173
3853
|
bind_options: Optional['outputs.ServiceTaskSpecContainerSpecMountBindOptions'] = None,
|
|
3174
|
-
read_only: Optional[
|
|
3175
|
-
source: Optional[
|
|
3854
|
+
read_only: Optional[_builtins.bool] = None,
|
|
3855
|
+
source: Optional[_builtins.str] = None,
|
|
3176
3856
|
tmpfs_options: Optional['outputs.ServiceTaskSpecContainerSpecMountTmpfsOptions'] = None,
|
|
3177
3857
|
volume_options: Optional['outputs.ServiceTaskSpecContainerSpecMountVolumeOptions'] = None):
|
|
3178
3858
|
"""
|
|
3179
|
-
:param
|
|
3180
|
-
:param
|
|
3859
|
+
:param _builtins.str target: Container path
|
|
3860
|
+
:param _builtins.str type: The mount type
|
|
3181
3861
|
:param 'ServiceTaskSpecContainerSpecMountBindOptionsArgs' bind_options: Optional configuration for the bind type
|
|
3182
|
-
:param
|
|
3183
|
-
:param
|
|
3862
|
+
:param _builtins.bool read_only: Whether the mount should be read-only
|
|
3863
|
+
:param _builtins.str source: Mount source (e.g. a volume name, a host path)
|
|
3184
3864
|
:param 'ServiceTaskSpecContainerSpecMountTmpfsOptionsArgs' tmpfs_options: Optional configuration for the tmpfs type
|
|
3185
3865
|
:param 'ServiceTaskSpecContainerSpecMountVolumeOptionsArgs' volume_options: Optional configuration for the volume type
|
|
3186
3866
|
"""
|
|
@@ -3197,23 +3877,23 @@ class ServiceTaskSpecContainerSpecMount(dict):
|
|
|
3197
3877
|
if volume_options is not None:
|
|
3198
3878
|
pulumi.set(__self__, "volume_options", volume_options)
|
|
3199
3879
|
|
|
3200
|
-
@property
|
|
3880
|
+
@_builtins.property
|
|
3201
3881
|
@pulumi.getter
|
|
3202
|
-
def target(self) ->
|
|
3882
|
+
def target(self) -> _builtins.str:
|
|
3203
3883
|
"""
|
|
3204
3884
|
Container path
|
|
3205
3885
|
"""
|
|
3206
3886
|
return pulumi.get(self, "target")
|
|
3207
3887
|
|
|
3208
|
-
@property
|
|
3888
|
+
@_builtins.property
|
|
3209
3889
|
@pulumi.getter
|
|
3210
|
-
def type(self) ->
|
|
3890
|
+
def type(self) -> _builtins.str:
|
|
3211
3891
|
"""
|
|
3212
3892
|
The mount type
|
|
3213
3893
|
"""
|
|
3214
3894
|
return pulumi.get(self, "type")
|
|
3215
3895
|
|
|
3216
|
-
@property
|
|
3896
|
+
@_builtins.property
|
|
3217
3897
|
@pulumi.getter(name="bindOptions")
|
|
3218
3898
|
def bind_options(self) -> Optional['outputs.ServiceTaskSpecContainerSpecMountBindOptions']:
|
|
3219
3899
|
"""
|
|
@@ -3221,23 +3901,23 @@ class ServiceTaskSpecContainerSpecMount(dict):
|
|
|
3221
3901
|
"""
|
|
3222
3902
|
return pulumi.get(self, "bind_options")
|
|
3223
3903
|
|
|
3224
|
-
@property
|
|
3904
|
+
@_builtins.property
|
|
3225
3905
|
@pulumi.getter(name="readOnly")
|
|
3226
|
-
def read_only(self) -> Optional[
|
|
3906
|
+
def read_only(self) -> Optional[_builtins.bool]:
|
|
3227
3907
|
"""
|
|
3228
3908
|
Whether the mount should be read-only
|
|
3229
3909
|
"""
|
|
3230
3910
|
return pulumi.get(self, "read_only")
|
|
3231
3911
|
|
|
3232
|
-
@property
|
|
3912
|
+
@_builtins.property
|
|
3233
3913
|
@pulumi.getter
|
|
3234
|
-
def source(self) -> Optional[
|
|
3914
|
+
def source(self) -> Optional[_builtins.str]:
|
|
3235
3915
|
"""
|
|
3236
3916
|
Mount source (e.g. a volume name, a host path)
|
|
3237
3917
|
"""
|
|
3238
3918
|
return pulumi.get(self, "source")
|
|
3239
3919
|
|
|
3240
|
-
@property
|
|
3920
|
+
@_builtins.property
|
|
3241
3921
|
@pulumi.getter(name="tmpfsOptions")
|
|
3242
3922
|
def tmpfs_options(self) -> Optional['outputs.ServiceTaskSpecContainerSpecMountTmpfsOptions']:
|
|
3243
3923
|
"""
|
|
@@ -3245,7 +3925,7 @@ class ServiceTaskSpecContainerSpecMount(dict):
|
|
|
3245
3925
|
"""
|
|
3246
3926
|
return pulumi.get(self, "tmpfs_options")
|
|
3247
3927
|
|
|
3248
|
-
@property
|
|
3928
|
+
@_builtins.property
|
|
3249
3929
|
@pulumi.getter(name="volumeOptions")
|
|
3250
3930
|
def volume_options(self) -> Optional['outputs.ServiceTaskSpecContainerSpecMountVolumeOptions']:
|
|
3251
3931
|
"""
|
|
@@ -3257,16 +3937,16 @@ class ServiceTaskSpecContainerSpecMount(dict):
|
|
|
3257
3937
|
@pulumi.output_type
|
|
3258
3938
|
class ServiceTaskSpecContainerSpecMountBindOptions(dict):
|
|
3259
3939
|
def __init__(__self__, *,
|
|
3260
|
-
propagation: Optional[
|
|
3940
|
+
propagation: Optional[_builtins.str] = None):
|
|
3261
3941
|
"""
|
|
3262
|
-
:param
|
|
3942
|
+
:param _builtins.str propagation: Bind propagation refers to whether or not mounts created within a given bind-mount or named volume can be propagated to replicas of that mount. See the [docs](https://docs.docker.com/storage/bind-mounts/#configure-bind-propagation) for details. Defaults to `rprivate`
|
|
3263
3943
|
"""
|
|
3264
3944
|
if propagation is not None:
|
|
3265
3945
|
pulumi.set(__self__, "propagation", propagation)
|
|
3266
3946
|
|
|
3267
|
-
@property
|
|
3947
|
+
@_builtins.property
|
|
3268
3948
|
@pulumi.getter
|
|
3269
|
-
def propagation(self) -> Optional[
|
|
3949
|
+
def propagation(self) -> Optional[_builtins.str]:
|
|
3270
3950
|
"""
|
|
3271
3951
|
Bind propagation refers to whether or not mounts created within a given bind-mount or named volume can be propagated to replicas of that mount. See the [docs](https://docs.docker.com/storage/bind-mounts/#configure-bind-propagation) for details. Defaults to `rprivate`
|
|
3272
3952
|
"""
|
|
@@ -3293,28 +3973,28 @@ class ServiceTaskSpecContainerSpecMountTmpfsOptions(dict):
|
|
|
3293
3973
|
return super().get(key, default)
|
|
3294
3974
|
|
|
3295
3975
|
def __init__(__self__, *,
|
|
3296
|
-
mode: Optional[
|
|
3297
|
-
size_bytes: Optional[
|
|
3976
|
+
mode: Optional[_builtins.int] = None,
|
|
3977
|
+
size_bytes: Optional[_builtins.int] = None):
|
|
3298
3978
|
"""
|
|
3299
|
-
:param
|
|
3300
|
-
:param
|
|
3979
|
+
:param _builtins.int mode: The permission mode for the tmpfs mount in an integer
|
|
3980
|
+
:param _builtins.int size_bytes: The size for the tmpfs mount in bytes
|
|
3301
3981
|
"""
|
|
3302
3982
|
if mode is not None:
|
|
3303
3983
|
pulumi.set(__self__, "mode", mode)
|
|
3304
3984
|
if size_bytes is not None:
|
|
3305
3985
|
pulumi.set(__self__, "size_bytes", size_bytes)
|
|
3306
3986
|
|
|
3307
|
-
@property
|
|
3987
|
+
@_builtins.property
|
|
3308
3988
|
@pulumi.getter
|
|
3309
|
-
def mode(self) -> Optional[
|
|
3989
|
+
def mode(self) -> Optional[_builtins.int]:
|
|
3310
3990
|
"""
|
|
3311
3991
|
The permission mode for the tmpfs mount in an integer
|
|
3312
3992
|
"""
|
|
3313
3993
|
return pulumi.get(self, "mode")
|
|
3314
3994
|
|
|
3315
|
-
@property
|
|
3995
|
+
@_builtins.property
|
|
3316
3996
|
@pulumi.getter(name="sizeBytes")
|
|
3317
|
-
def size_bytes(self) -> Optional[
|
|
3997
|
+
def size_bytes(self) -> Optional[_builtins.int]:
|
|
3318
3998
|
"""
|
|
3319
3999
|
The size for the tmpfs mount in bytes
|
|
3320
4000
|
"""
|
|
@@ -3345,15 +4025,15 @@ class ServiceTaskSpecContainerSpecMountVolumeOptions(dict):
|
|
|
3345
4025
|
return super().get(key, default)
|
|
3346
4026
|
|
|
3347
4027
|
def __init__(__self__, *,
|
|
3348
|
-
driver_name: Optional[
|
|
3349
|
-
driver_options: Optional[Mapping[str,
|
|
4028
|
+
driver_name: Optional[_builtins.str] = None,
|
|
4029
|
+
driver_options: Optional[Mapping[str, _builtins.str]] = None,
|
|
3350
4030
|
labels: Optional[Sequence['outputs.ServiceTaskSpecContainerSpecMountVolumeOptionsLabel']] = None,
|
|
3351
|
-
no_copy: Optional[
|
|
4031
|
+
no_copy: Optional[_builtins.bool] = None):
|
|
3352
4032
|
"""
|
|
3353
|
-
:param
|
|
3354
|
-
:param Mapping[str,
|
|
4033
|
+
:param _builtins.str driver_name: Name of the driver to use to create the volume
|
|
4034
|
+
:param Mapping[str, _builtins.str] driver_options: key/value map of driver specific options
|
|
3355
4035
|
:param Sequence['ServiceTaskSpecContainerSpecMountVolumeOptionsLabelArgs'] labels: User-defined key/value metadata
|
|
3356
|
-
:param
|
|
4036
|
+
:param _builtins.bool no_copy: Populate volume with data from the target
|
|
3357
4037
|
"""
|
|
3358
4038
|
if driver_name is not None:
|
|
3359
4039
|
pulumi.set(__self__, "driver_name", driver_name)
|
|
@@ -3364,23 +4044,23 @@ class ServiceTaskSpecContainerSpecMountVolumeOptions(dict):
|
|
|
3364
4044
|
if no_copy is not None:
|
|
3365
4045
|
pulumi.set(__self__, "no_copy", no_copy)
|
|
3366
4046
|
|
|
3367
|
-
@property
|
|
4047
|
+
@_builtins.property
|
|
3368
4048
|
@pulumi.getter(name="driverName")
|
|
3369
|
-
def driver_name(self) -> Optional[
|
|
4049
|
+
def driver_name(self) -> Optional[_builtins.str]:
|
|
3370
4050
|
"""
|
|
3371
4051
|
Name of the driver to use to create the volume
|
|
3372
4052
|
"""
|
|
3373
4053
|
return pulumi.get(self, "driver_name")
|
|
3374
4054
|
|
|
3375
|
-
@property
|
|
4055
|
+
@_builtins.property
|
|
3376
4056
|
@pulumi.getter(name="driverOptions")
|
|
3377
|
-
def driver_options(self) -> Optional[Mapping[str,
|
|
4057
|
+
def driver_options(self) -> Optional[Mapping[str, _builtins.str]]:
|
|
3378
4058
|
"""
|
|
3379
4059
|
key/value map of driver specific options
|
|
3380
4060
|
"""
|
|
3381
4061
|
return pulumi.get(self, "driver_options")
|
|
3382
4062
|
|
|
3383
|
-
@property
|
|
4063
|
+
@_builtins.property
|
|
3384
4064
|
@pulumi.getter
|
|
3385
4065
|
def labels(self) -> Optional[Sequence['outputs.ServiceTaskSpecContainerSpecMountVolumeOptionsLabel']]:
|
|
3386
4066
|
"""
|
|
@@ -3388,9 +4068,9 @@ class ServiceTaskSpecContainerSpecMountVolumeOptions(dict):
|
|
|
3388
4068
|
"""
|
|
3389
4069
|
return pulumi.get(self, "labels")
|
|
3390
4070
|
|
|
3391
|
-
@property
|
|
4071
|
+
@_builtins.property
|
|
3392
4072
|
@pulumi.getter(name="noCopy")
|
|
3393
|
-
def no_copy(self) -> Optional[
|
|
4073
|
+
def no_copy(self) -> Optional[_builtins.bool]:
|
|
3394
4074
|
"""
|
|
3395
4075
|
Populate volume with data from the target
|
|
3396
4076
|
"""
|
|
@@ -3400,26 +4080,26 @@ class ServiceTaskSpecContainerSpecMountVolumeOptions(dict):
|
|
|
3400
4080
|
@pulumi.output_type
|
|
3401
4081
|
class ServiceTaskSpecContainerSpecMountVolumeOptionsLabel(dict):
|
|
3402
4082
|
def __init__(__self__, *,
|
|
3403
|
-
label:
|
|
3404
|
-
value:
|
|
4083
|
+
label: _builtins.str,
|
|
4084
|
+
value: _builtins.str):
|
|
3405
4085
|
"""
|
|
3406
|
-
:param
|
|
3407
|
-
:param
|
|
4086
|
+
:param _builtins.str label: Name of the label
|
|
4087
|
+
:param _builtins.str value: Value of the label
|
|
3408
4088
|
"""
|
|
3409
4089
|
pulumi.set(__self__, "label", label)
|
|
3410
4090
|
pulumi.set(__self__, "value", value)
|
|
3411
4091
|
|
|
3412
|
-
@property
|
|
4092
|
+
@_builtins.property
|
|
3413
4093
|
@pulumi.getter
|
|
3414
|
-
def label(self) ->
|
|
4094
|
+
def label(self) -> _builtins.str:
|
|
3415
4095
|
"""
|
|
3416
4096
|
Name of the label
|
|
3417
4097
|
"""
|
|
3418
4098
|
return pulumi.get(self, "label")
|
|
3419
4099
|
|
|
3420
|
-
@property
|
|
4100
|
+
@_builtins.property
|
|
3421
4101
|
@pulumi.getter
|
|
3422
|
-
def value(self) ->
|
|
4102
|
+
def value(self) -> _builtins.str:
|
|
3423
4103
|
"""
|
|
3424
4104
|
Value of the label
|
|
3425
4105
|
"""
|
|
@@ -3459,7 +4139,7 @@ class ServiceTaskSpecContainerSpecPrivileges(dict):
|
|
|
3459
4139
|
if se_linux_context is not None:
|
|
3460
4140
|
pulumi.set(__self__, "se_linux_context", se_linux_context)
|
|
3461
4141
|
|
|
3462
|
-
@property
|
|
4142
|
+
@_builtins.property
|
|
3463
4143
|
@pulumi.getter(name="credentialSpec")
|
|
3464
4144
|
def credential_spec(self) -> Optional['outputs.ServiceTaskSpecContainerSpecPrivilegesCredentialSpec']:
|
|
3465
4145
|
"""
|
|
@@ -3467,7 +4147,7 @@ class ServiceTaskSpecContainerSpecPrivileges(dict):
|
|
|
3467
4147
|
"""
|
|
3468
4148
|
return pulumi.get(self, "credential_spec")
|
|
3469
4149
|
|
|
3470
|
-
@property
|
|
4150
|
+
@_builtins.property
|
|
3471
4151
|
@pulumi.getter(name="seLinuxContext")
|
|
3472
4152
|
def se_linux_context(self) -> Optional['outputs.ServiceTaskSpecContainerSpecPrivilegesSeLinuxContext']:
|
|
3473
4153
|
"""
|
|
@@ -3479,28 +4159,28 @@ class ServiceTaskSpecContainerSpecPrivileges(dict):
|
|
|
3479
4159
|
@pulumi.output_type
|
|
3480
4160
|
class ServiceTaskSpecContainerSpecPrivilegesCredentialSpec(dict):
|
|
3481
4161
|
def __init__(__self__, *,
|
|
3482
|
-
file: Optional[
|
|
3483
|
-
registry: Optional[
|
|
4162
|
+
file: Optional[_builtins.str] = None,
|
|
4163
|
+
registry: Optional[_builtins.str] = None):
|
|
3484
4164
|
"""
|
|
3485
|
-
:param
|
|
3486
|
-
:param
|
|
4165
|
+
:param _builtins.str file: Load credential spec from this file
|
|
4166
|
+
:param _builtins.str registry: Load credential spec from this value in the Windows registry
|
|
3487
4167
|
"""
|
|
3488
4168
|
if file is not None:
|
|
3489
4169
|
pulumi.set(__self__, "file", file)
|
|
3490
4170
|
if registry is not None:
|
|
3491
4171
|
pulumi.set(__self__, "registry", registry)
|
|
3492
4172
|
|
|
3493
|
-
@property
|
|
4173
|
+
@_builtins.property
|
|
3494
4174
|
@pulumi.getter
|
|
3495
|
-
def file(self) -> Optional[
|
|
4175
|
+
def file(self) -> Optional[_builtins.str]:
|
|
3496
4176
|
"""
|
|
3497
4177
|
Load credential spec from this file
|
|
3498
4178
|
"""
|
|
3499
4179
|
return pulumi.get(self, "file")
|
|
3500
4180
|
|
|
3501
|
-
@property
|
|
4181
|
+
@_builtins.property
|
|
3502
4182
|
@pulumi.getter
|
|
3503
|
-
def registry(self) -> Optional[
|
|
4183
|
+
def registry(self) -> Optional[_builtins.str]:
|
|
3504
4184
|
"""
|
|
3505
4185
|
Load credential spec from this value in the Windows registry
|
|
3506
4186
|
"""
|
|
@@ -3510,17 +4190,17 @@ class ServiceTaskSpecContainerSpecPrivilegesCredentialSpec(dict):
|
|
|
3510
4190
|
@pulumi.output_type
|
|
3511
4191
|
class ServiceTaskSpecContainerSpecPrivilegesSeLinuxContext(dict):
|
|
3512
4192
|
def __init__(__self__, *,
|
|
3513
|
-
disable: Optional[
|
|
3514
|
-
level: Optional[
|
|
3515
|
-
role: Optional[
|
|
3516
|
-
type: Optional[
|
|
3517
|
-
user: Optional[
|
|
3518
|
-
"""
|
|
3519
|
-
:param
|
|
3520
|
-
:param
|
|
3521
|
-
:param
|
|
3522
|
-
:param
|
|
3523
|
-
:param
|
|
4193
|
+
disable: Optional[_builtins.bool] = None,
|
|
4194
|
+
level: Optional[_builtins.str] = None,
|
|
4195
|
+
role: Optional[_builtins.str] = None,
|
|
4196
|
+
type: Optional[_builtins.str] = None,
|
|
4197
|
+
user: Optional[_builtins.str] = None):
|
|
4198
|
+
"""
|
|
4199
|
+
:param _builtins.bool disable: Disable SELinux
|
|
4200
|
+
:param _builtins.str level: SELinux level label
|
|
4201
|
+
:param _builtins.str role: SELinux role label
|
|
4202
|
+
:param _builtins.str type: SELinux type label
|
|
4203
|
+
:param _builtins.str user: SELinux user label
|
|
3524
4204
|
"""
|
|
3525
4205
|
if disable is not None:
|
|
3526
4206
|
pulumi.set(__self__, "disable", disable)
|
|
@@ -3533,41 +4213,41 @@ class ServiceTaskSpecContainerSpecPrivilegesSeLinuxContext(dict):
|
|
|
3533
4213
|
if user is not None:
|
|
3534
4214
|
pulumi.set(__self__, "user", user)
|
|
3535
4215
|
|
|
3536
|
-
@property
|
|
4216
|
+
@_builtins.property
|
|
3537
4217
|
@pulumi.getter
|
|
3538
|
-
def disable(self) -> Optional[
|
|
4218
|
+
def disable(self) -> Optional[_builtins.bool]:
|
|
3539
4219
|
"""
|
|
3540
4220
|
Disable SELinux
|
|
3541
4221
|
"""
|
|
3542
4222
|
return pulumi.get(self, "disable")
|
|
3543
4223
|
|
|
3544
|
-
@property
|
|
4224
|
+
@_builtins.property
|
|
3545
4225
|
@pulumi.getter
|
|
3546
|
-
def level(self) -> Optional[
|
|
4226
|
+
def level(self) -> Optional[_builtins.str]:
|
|
3547
4227
|
"""
|
|
3548
4228
|
SELinux level label
|
|
3549
4229
|
"""
|
|
3550
4230
|
return pulumi.get(self, "level")
|
|
3551
4231
|
|
|
3552
|
-
@property
|
|
4232
|
+
@_builtins.property
|
|
3553
4233
|
@pulumi.getter
|
|
3554
|
-
def role(self) -> Optional[
|
|
4234
|
+
def role(self) -> Optional[_builtins.str]:
|
|
3555
4235
|
"""
|
|
3556
4236
|
SELinux role label
|
|
3557
4237
|
"""
|
|
3558
4238
|
return pulumi.get(self, "role")
|
|
3559
4239
|
|
|
3560
|
-
@property
|
|
4240
|
+
@_builtins.property
|
|
3561
4241
|
@pulumi.getter
|
|
3562
|
-
def type(self) -> Optional[
|
|
4242
|
+
def type(self) -> Optional[_builtins.str]:
|
|
3563
4243
|
"""
|
|
3564
4244
|
SELinux type label
|
|
3565
4245
|
"""
|
|
3566
4246
|
return pulumi.get(self, "type")
|
|
3567
4247
|
|
|
3568
|
-
@property
|
|
4248
|
+
@_builtins.property
|
|
3569
4249
|
@pulumi.getter
|
|
3570
|
-
def user(self) -> Optional[
|
|
4250
|
+
def user(self) -> Optional[_builtins.str]:
|
|
3571
4251
|
"""
|
|
3572
4252
|
SELinux user label
|
|
3573
4253
|
"""
|
|
@@ -3604,19 +4284,19 @@ class ServiceTaskSpecContainerSpecSecret(dict):
|
|
|
3604
4284
|
return super().get(key, default)
|
|
3605
4285
|
|
|
3606
4286
|
def __init__(__self__, *,
|
|
3607
|
-
file_name:
|
|
3608
|
-
secret_id:
|
|
3609
|
-
file_gid: Optional[
|
|
3610
|
-
file_mode: Optional[
|
|
3611
|
-
file_uid: Optional[
|
|
3612
|
-
secret_name: Optional[
|
|
3613
|
-
"""
|
|
3614
|
-
:param
|
|
3615
|
-
:param
|
|
3616
|
-
:param
|
|
3617
|
-
:param
|
|
3618
|
-
:param
|
|
3619
|
-
:param
|
|
4287
|
+
file_name: _builtins.str,
|
|
4288
|
+
secret_id: _builtins.str,
|
|
4289
|
+
file_gid: Optional[_builtins.str] = None,
|
|
4290
|
+
file_mode: Optional[_builtins.int] = None,
|
|
4291
|
+
file_uid: Optional[_builtins.str] = None,
|
|
4292
|
+
secret_name: Optional[_builtins.str] = None):
|
|
4293
|
+
"""
|
|
4294
|
+
:param _builtins.str file_name: Represents the final filename in the filesystem
|
|
4295
|
+
:param _builtins.str secret_id: ID of the specific secret that we're referencing
|
|
4296
|
+
:param _builtins.str file_gid: Represents the file GID. Defaults to `0`
|
|
4297
|
+
:param _builtins.int file_mode: Represents represents the FileMode of the file. Defaults to `0o444`
|
|
4298
|
+
:param _builtins.str file_uid: Represents the file UID. Defaults to `0`
|
|
4299
|
+
:param _builtins.str secret_name: Name of the secret that this references, but this is just provided for lookup/display purposes. The config in the reference will be identified by its ID
|
|
3620
4300
|
"""
|
|
3621
4301
|
pulumi.set(__self__, "file_name", file_name)
|
|
3622
4302
|
pulumi.set(__self__, "secret_id", secret_id)
|
|
@@ -3629,49 +4309,49 @@ class ServiceTaskSpecContainerSpecSecret(dict):
|
|
|
3629
4309
|
if secret_name is not None:
|
|
3630
4310
|
pulumi.set(__self__, "secret_name", secret_name)
|
|
3631
4311
|
|
|
3632
|
-
@property
|
|
4312
|
+
@_builtins.property
|
|
3633
4313
|
@pulumi.getter(name="fileName")
|
|
3634
|
-
def file_name(self) ->
|
|
4314
|
+
def file_name(self) -> _builtins.str:
|
|
3635
4315
|
"""
|
|
3636
4316
|
Represents the final filename in the filesystem
|
|
3637
4317
|
"""
|
|
3638
4318
|
return pulumi.get(self, "file_name")
|
|
3639
4319
|
|
|
3640
|
-
@property
|
|
4320
|
+
@_builtins.property
|
|
3641
4321
|
@pulumi.getter(name="secretId")
|
|
3642
|
-
def secret_id(self) ->
|
|
4322
|
+
def secret_id(self) -> _builtins.str:
|
|
3643
4323
|
"""
|
|
3644
4324
|
ID of the specific secret that we're referencing
|
|
3645
4325
|
"""
|
|
3646
4326
|
return pulumi.get(self, "secret_id")
|
|
3647
4327
|
|
|
3648
|
-
@property
|
|
4328
|
+
@_builtins.property
|
|
3649
4329
|
@pulumi.getter(name="fileGid")
|
|
3650
|
-
def file_gid(self) -> Optional[
|
|
4330
|
+
def file_gid(self) -> Optional[_builtins.str]:
|
|
3651
4331
|
"""
|
|
3652
4332
|
Represents the file GID. Defaults to `0`
|
|
3653
4333
|
"""
|
|
3654
4334
|
return pulumi.get(self, "file_gid")
|
|
3655
4335
|
|
|
3656
|
-
@property
|
|
4336
|
+
@_builtins.property
|
|
3657
4337
|
@pulumi.getter(name="fileMode")
|
|
3658
|
-
def file_mode(self) -> Optional[
|
|
4338
|
+
def file_mode(self) -> Optional[_builtins.int]:
|
|
3659
4339
|
"""
|
|
3660
4340
|
Represents represents the FileMode of the file. Defaults to `0o444`
|
|
3661
4341
|
"""
|
|
3662
4342
|
return pulumi.get(self, "file_mode")
|
|
3663
4343
|
|
|
3664
|
-
@property
|
|
4344
|
+
@_builtins.property
|
|
3665
4345
|
@pulumi.getter(name="fileUid")
|
|
3666
|
-
def file_uid(self) -> Optional[
|
|
4346
|
+
def file_uid(self) -> Optional[_builtins.str]:
|
|
3667
4347
|
"""
|
|
3668
4348
|
Represents the file UID. Defaults to `0`
|
|
3669
4349
|
"""
|
|
3670
4350
|
return pulumi.get(self, "file_uid")
|
|
3671
4351
|
|
|
3672
|
-
@property
|
|
4352
|
+
@_builtins.property
|
|
3673
4353
|
@pulumi.getter(name="secretName")
|
|
3674
|
-
def secret_name(self) -> Optional[
|
|
4354
|
+
def secret_name(self) -> Optional[_builtins.str]:
|
|
3675
4355
|
"""
|
|
3676
4356
|
Name of the secret that this references, but this is just provided for lookup/display purposes. The config in the reference will be identified by its ID
|
|
3677
4357
|
"""
|
|
@@ -3681,27 +4361,27 @@ class ServiceTaskSpecContainerSpecSecret(dict):
|
|
|
3681
4361
|
@pulumi.output_type
|
|
3682
4362
|
class ServiceTaskSpecLogDriver(dict):
|
|
3683
4363
|
def __init__(__self__, *,
|
|
3684
|
-
name:
|
|
3685
|
-
options: Optional[Mapping[str,
|
|
4364
|
+
name: _builtins.str,
|
|
4365
|
+
options: Optional[Mapping[str, _builtins.str]] = None):
|
|
3686
4366
|
"""
|
|
3687
|
-
:param
|
|
3688
|
-
:param Mapping[str,
|
|
4367
|
+
:param _builtins.str name: The logging driver to use
|
|
4368
|
+
:param Mapping[str, _builtins.str] options: The options for the logging driver
|
|
3689
4369
|
"""
|
|
3690
4370
|
pulumi.set(__self__, "name", name)
|
|
3691
4371
|
if options is not None:
|
|
3692
4372
|
pulumi.set(__self__, "options", options)
|
|
3693
4373
|
|
|
3694
|
-
@property
|
|
4374
|
+
@_builtins.property
|
|
3695
4375
|
@pulumi.getter
|
|
3696
|
-
def name(self) ->
|
|
4376
|
+
def name(self) -> _builtins.str:
|
|
3697
4377
|
"""
|
|
3698
4378
|
The logging driver to use
|
|
3699
4379
|
"""
|
|
3700
4380
|
return pulumi.get(self, "name")
|
|
3701
4381
|
|
|
3702
|
-
@property
|
|
4382
|
+
@_builtins.property
|
|
3703
4383
|
@pulumi.getter
|
|
3704
|
-
def options(self) -> Optional[Mapping[str,
|
|
4384
|
+
def options(self) -> Optional[Mapping[str, _builtins.str]]:
|
|
3705
4385
|
"""
|
|
3706
4386
|
The options for the logging driver
|
|
3707
4387
|
"""
|
|
@@ -3728,13 +4408,13 @@ class ServiceTaskSpecNetworksAdvanced(dict):
|
|
|
3728
4408
|
return super().get(key, default)
|
|
3729
4409
|
|
|
3730
4410
|
def __init__(__self__, *,
|
|
3731
|
-
name:
|
|
3732
|
-
aliases: Optional[Sequence[
|
|
3733
|
-
driver_opts: Optional[Sequence[
|
|
4411
|
+
name: _builtins.str,
|
|
4412
|
+
aliases: Optional[Sequence[_builtins.str]] = None,
|
|
4413
|
+
driver_opts: Optional[Sequence[_builtins.str]] = None):
|
|
3734
4414
|
"""
|
|
3735
|
-
:param
|
|
3736
|
-
:param Sequence[
|
|
3737
|
-
:param Sequence[
|
|
4415
|
+
:param _builtins.str name: The name/id of the network.
|
|
4416
|
+
:param Sequence[_builtins.str] aliases: The network aliases of the container in the specific network.
|
|
4417
|
+
:param Sequence[_builtins.str] driver_opts: An array of driver options for the network, e.g. `opts1=value`
|
|
3738
4418
|
"""
|
|
3739
4419
|
pulumi.set(__self__, "name", name)
|
|
3740
4420
|
if aliases is not None:
|
|
@@ -3742,25 +4422,25 @@ class ServiceTaskSpecNetworksAdvanced(dict):
|
|
|
3742
4422
|
if driver_opts is not None:
|
|
3743
4423
|
pulumi.set(__self__, "driver_opts", driver_opts)
|
|
3744
4424
|
|
|
3745
|
-
@property
|
|
4425
|
+
@_builtins.property
|
|
3746
4426
|
@pulumi.getter
|
|
3747
|
-
def name(self) ->
|
|
4427
|
+
def name(self) -> _builtins.str:
|
|
3748
4428
|
"""
|
|
3749
4429
|
The name/id of the network.
|
|
3750
4430
|
"""
|
|
3751
4431
|
return pulumi.get(self, "name")
|
|
3752
4432
|
|
|
3753
|
-
@property
|
|
4433
|
+
@_builtins.property
|
|
3754
4434
|
@pulumi.getter
|
|
3755
|
-
def aliases(self) -> Optional[Sequence[
|
|
4435
|
+
def aliases(self) -> Optional[Sequence[_builtins.str]]:
|
|
3756
4436
|
"""
|
|
3757
4437
|
The network aliases of the container in the specific network.
|
|
3758
4438
|
"""
|
|
3759
4439
|
return pulumi.get(self, "aliases")
|
|
3760
4440
|
|
|
3761
|
-
@property
|
|
4441
|
+
@_builtins.property
|
|
3762
4442
|
@pulumi.getter(name="driverOpts")
|
|
3763
|
-
def driver_opts(self) -> Optional[Sequence[
|
|
4443
|
+
def driver_opts(self) -> Optional[Sequence[_builtins.str]]:
|
|
3764
4444
|
"""
|
|
3765
4445
|
An array of driver options for the network, e.g. `opts1=value`
|
|
3766
4446
|
"""
|
|
@@ -3787,15 +4467,15 @@ class ServiceTaskSpecPlacement(dict):
|
|
|
3787
4467
|
return super().get(key, default)
|
|
3788
4468
|
|
|
3789
4469
|
def __init__(__self__, *,
|
|
3790
|
-
constraints: Optional[Sequence[
|
|
3791
|
-
max_replicas: Optional[
|
|
4470
|
+
constraints: Optional[Sequence[_builtins.str]] = None,
|
|
4471
|
+
max_replicas: Optional[_builtins.int] = None,
|
|
3792
4472
|
platforms: Optional[Sequence['outputs.ServiceTaskSpecPlacementPlatform']] = None,
|
|
3793
|
-
prefs: Optional[Sequence[
|
|
4473
|
+
prefs: Optional[Sequence[_builtins.str]] = None):
|
|
3794
4474
|
"""
|
|
3795
|
-
:param Sequence[
|
|
3796
|
-
:param
|
|
4475
|
+
:param Sequence[_builtins.str] constraints: An array of constraints. e.g.: `node.role==manager`
|
|
4476
|
+
:param _builtins.int max_replicas: Maximum number of replicas for per node (default value is `0`, which is unlimited)
|
|
3797
4477
|
:param Sequence['ServiceTaskSpecPlacementPlatformArgs'] platforms: Platforms stores all the platforms that the service's image can run on
|
|
3798
|
-
:param Sequence[
|
|
4478
|
+
:param Sequence[_builtins.str] prefs: Preferences provide a way to make the scheduler aware of factors such as topology. They are provided in order from highest to lowest precedence, e.g.: `spread=node.role.manager`
|
|
3799
4479
|
"""
|
|
3800
4480
|
if constraints is not None:
|
|
3801
4481
|
pulumi.set(__self__, "constraints", constraints)
|
|
@@ -3806,23 +4486,23 @@ class ServiceTaskSpecPlacement(dict):
|
|
|
3806
4486
|
if prefs is not None:
|
|
3807
4487
|
pulumi.set(__self__, "prefs", prefs)
|
|
3808
4488
|
|
|
3809
|
-
@property
|
|
4489
|
+
@_builtins.property
|
|
3810
4490
|
@pulumi.getter
|
|
3811
|
-
def constraints(self) -> Optional[Sequence[
|
|
4491
|
+
def constraints(self) -> Optional[Sequence[_builtins.str]]:
|
|
3812
4492
|
"""
|
|
3813
4493
|
An array of constraints. e.g.: `node.role==manager`
|
|
3814
4494
|
"""
|
|
3815
4495
|
return pulumi.get(self, "constraints")
|
|
3816
4496
|
|
|
3817
|
-
@property
|
|
4497
|
+
@_builtins.property
|
|
3818
4498
|
@pulumi.getter(name="maxReplicas")
|
|
3819
|
-
def max_replicas(self) -> Optional[
|
|
4499
|
+
def max_replicas(self) -> Optional[_builtins.int]:
|
|
3820
4500
|
"""
|
|
3821
4501
|
Maximum number of replicas for per node (default value is `0`, which is unlimited)
|
|
3822
4502
|
"""
|
|
3823
4503
|
return pulumi.get(self, "max_replicas")
|
|
3824
4504
|
|
|
3825
|
-
@property
|
|
4505
|
+
@_builtins.property
|
|
3826
4506
|
@pulumi.getter
|
|
3827
4507
|
def platforms(self) -> Optional[Sequence['outputs.ServiceTaskSpecPlacementPlatform']]:
|
|
3828
4508
|
"""
|
|
@@ -3830,9 +4510,9 @@ class ServiceTaskSpecPlacement(dict):
|
|
|
3830
4510
|
"""
|
|
3831
4511
|
return pulumi.get(self, "platforms")
|
|
3832
4512
|
|
|
3833
|
-
@property
|
|
4513
|
+
@_builtins.property
|
|
3834
4514
|
@pulumi.getter
|
|
3835
|
-
def prefs(self) -> Optional[Sequence[
|
|
4515
|
+
def prefs(self) -> Optional[Sequence[_builtins.str]]:
|
|
3836
4516
|
"""
|
|
3837
4517
|
Preferences provide a way to make the scheduler aware of factors such as topology. They are provided in order from highest to lowest precedence, e.g.: `spread=node.role.manager`
|
|
3838
4518
|
"""
|
|
@@ -3842,26 +4522,26 @@ class ServiceTaskSpecPlacement(dict):
|
|
|
3842
4522
|
@pulumi.output_type
|
|
3843
4523
|
class ServiceTaskSpecPlacementPlatform(dict):
|
|
3844
4524
|
def __init__(__self__, *,
|
|
3845
|
-
architecture:
|
|
3846
|
-
os:
|
|
4525
|
+
architecture: _builtins.str,
|
|
4526
|
+
os: _builtins.str):
|
|
3847
4527
|
"""
|
|
3848
|
-
:param
|
|
3849
|
-
:param
|
|
4528
|
+
:param _builtins.str architecture: The architecture, e.g. `amd64`
|
|
4529
|
+
:param _builtins.str os: The operation system, e.g. `linux`
|
|
3850
4530
|
"""
|
|
3851
4531
|
pulumi.set(__self__, "architecture", architecture)
|
|
3852
4532
|
pulumi.set(__self__, "os", os)
|
|
3853
4533
|
|
|
3854
|
-
@property
|
|
4534
|
+
@_builtins.property
|
|
3855
4535
|
@pulumi.getter
|
|
3856
|
-
def architecture(self) ->
|
|
4536
|
+
def architecture(self) -> _builtins.str:
|
|
3857
4537
|
"""
|
|
3858
4538
|
The architecture, e.g. `amd64`
|
|
3859
4539
|
"""
|
|
3860
4540
|
return pulumi.get(self, "architecture")
|
|
3861
4541
|
|
|
3862
|
-
@property
|
|
4542
|
+
@_builtins.property
|
|
3863
4543
|
@pulumi.getter
|
|
3864
|
-
def os(self) ->
|
|
4544
|
+
def os(self) -> _builtins.str:
|
|
3865
4545
|
"""
|
|
3866
4546
|
The operation system, e.g. `linux`
|
|
3867
4547
|
"""
|
|
@@ -3882,7 +4562,7 @@ class ServiceTaskSpecResources(dict):
|
|
|
3882
4562
|
if reservation is not None:
|
|
3883
4563
|
pulumi.set(__self__, "reservation", reservation)
|
|
3884
4564
|
|
|
3885
|
-
@property
|
|
4565
|
+
@_builtins.property
|
|
3886
4566
|
@pulumi.getter
|
|
3887
4567
|
def limits(self) -> Optional['outputs.ServiceTaskSpecResourcesLimits']:
|
|
3888
4568
|
"""
|
|
@@ -3890,7 +4570,7 @@ class ServiceTaskSpecResources(dict):
|
|
|
3890
4570
|
"""
|
|
3891
4571
|
return pulumi.get(self, "limits")
|
|
3892
4572
|
|
|
3893
|
-
@property
|
|
4573
|
+
@_builtins.property
|
|
3894
4574
|
@pulumi.getter
|
|
3895
4575
|
def reservation(self) -> Optional['outputs.ServiceTaskSpecResourcesReservation']:
|
|
3896
4576
|
"""
|
|
@@ -3921,28 +4601,28 @@ class ServiceTaskSpecResourcesLimits(dict):
|
|
|
3921
4601
|
return super().get(key, default)
|
|
3922
4602
|
|
|
3923
4603
|
def __init__(__self__, *,
|
|
3924
|
-
memory_bytes: Optional[
|
|
3925
|
-
nano_cpus: Optional[
|
|
4604
|
+
memory_bytes: Optional[_builtins.int] = None,
|
|
4605
|
+
nano_cpus: Optional[_builtins.int] = None):
|
|
3926
4606
|
"""
|
|
3927
|
-
:param
|
|
3928
|
-
:param
|
|
4607
|
+
:param _builtins.int memory_bytes: The amounf of memory in bytes the container allocates
|
|
4608
|
+
:param _builtins.int nano_cpus: CPU shares in units of `1/1e9` (or `10^-9`) of the CPU. Should be at least `1000000`
|
|
3929
4609
|
"""
|
|
3930
4610
|
if memory_bytes is not None:
|
|
3931
4611
|
pulumi.set(__self__, "memory_bytes", memory_bytes)
|
|
3932
4612
|
if nano_cpus is not None:
|
|
3933
4613
|
pulumi.set(__self__, "nano_cpus", nano_cpus)
|
|
3934
4614
|
|
|
3935
|
-
@property
|
|
4615
|
+
@_builtins.property
|
|
3936
4616
|
@pulumi.getter(name="memoryBytes")
|
|
3937
|
-
def memory_bytes(self) -> Optional[
|
|
4617
|
+
def memory_bytes(self) -> Optional[_builtins.int]:
|
|
3938
4618
|
"""
|
|
3939
4619
|
The amounf of memory in bytes the container allocates
|
|
3940
4620
|
"""
|
|
3941
4621
|
return pulumi.get(self, "memory_bytes")
|
|
3942
4622
|
|
|
3943
|
-
@property
|
|
4623
|
+
@_builtins.property
|
|
3944
4624
|
@pulumi.getter(name="nanoCpus")
|
|
3945
|
-
def nano_cpus(self) -> Optional[
|
|
4625
|
+
def nano_cpus(self) -> Optional[_builtins.int]:
|
|
3946
4626
|
"""
|
|
3947
4627
|
CPU shares in units of `1/1e9` (or `10^-9`) of the CPU. Should be at least `1000000`
|
|
3948
4628
|
"""
|
|
@@ -3974,12 +4654,12 @@ class ServiceTaskSpecResourcesReservation(dict):
|
|
|
3974
4654
|
|
|
3975
4655
|
def __init__(__self__, *,
|
|
3976
4656
|
generic_resources: Optional['outputs.ServiceTaskSpecResourcesReservationGenericResources'] = None,
|
|
3977
|
-
memory_bytes: Optional[
|
|
3978
|
-
nano_cpus: Optional[
|
|
4657
|
+
memory_bytes: Optional[_builtins.int] = None,
|
|
4658
|
+
nano_cpus: Optional[_builtins.int] = None):
|
|
3979
4659
|
"""
|
|
3980
4660
|
:param 'ServiceTaskSpecResourcesReservationGenericResourcesArgs' generic_resources: User-defined resources can be either Integer resources (e.g, `SSD=3`) or String resources (e.g, GPU=UUID1)
|
|
3981
|
-
:param
|
|
3982
|
-
:param
|
|
4661
|
+
:param _builtins.int memory_bytes: The amounf of memory in bytes the container allocates
|
|
4662
|
+
:param _builtins.int nano_cpus: CPU shares in units of 1/1e9 (or 10^-9) of the CPU. Should be at least `1000000`
|
|
3983
4663
|
"""
|
|
3984
4664
|
if generic_resources is not None:
|
|
3985
4665
|
pulumi.set(__self__, "generic_resources", generic_resources)
|
|
@@ -3988,7 +4668,7 @@ class ServiceTaskSpecResourcesReservation(dict):
|
|
|
3988
4668
|
if nano_cpus is not None:
|
|
3989
4669
|
pulumi.set(__self__, "nano_cpus", nano_cpus)
|
|
3990
4670
|
|
|
3991
|
-
@property
|
|
4671
|
+
@_builtins.property
|
|
3992
4672
|
@pulumi.getter(name="genericResources")
|
|
3993
4673
|
def generic_resources(self) -> Optional['outputs.ServiceTaskSpecResourcesReservationGenericResources']:
|
|
3994
4674
|
"""
|
|
@@ -3996,17 +4676,17 @@ class ServiceTaskSpecResourcesReservation(dict):
|
|
|
3996
4676
|
"""
|
|
3997
4677
|
return pulumi.get(self, "generic_resources")
|
|
3998
4678
|
|
|
3999
|
-
@property
|
|
4679
|
+
@_builtins.property
|
|
4000
4680
|
@pulumi.getter(name="memoryBytes")
|
|
4001
|
-
def memory_bytes(self) -> Optional[
|
|
4681
|
+
def memory_bytes(self) -> Optional[_builtins.int]:
|
|
4002
4682
|
"""
|
|
4003
4683
|
The amounf of memory in bytes the container allocates
|
|
4004
4684
|
"""
|
|
4005
4685
|
return pulumi.get(self, "memory_bytes")
|
|
4006
4686
|
|
|
4007
|
-
@property
|
|
4687
|
+
@_builtins.property
|
|
4008
4688
|
@pulumi.getter(name="nanoCpus")
|
|
4009
|
-
def nano_cpus(self) -> Optional[
|
|
4689
|
+
def nano_cpus(self) -> Optional[_builtins.int]:
|
|
4010
4690
|
"""
|
|
4011
4691
|
CPU shares in units of 1/1e9 (or 10^-9) of the CPU. Should be at least `1000000`
|
|
4012
4692
|
"""
|
|
@@ -4035,28 +4715,28 @@ class ServiceTaskSpecResourcesReservationGenericResources(dict):
|
|
|
4035
4715
|
return super().get(key, default)
|
|
4036
4716
|
|
|
4037
4717
|
def __init__(__self__, *,
|
|
4038
|
-
discrete_resources_specs: Optional[Sequence[
|
|
4039
|
-
named_resources_specs: Optional[Sequence[
|
|
4718
|
+
discrete_resources_specs: Optional[Sequence[_builtins.str]] = None,
|
|
4719
|
+
named_resources_specs: Optional[Sequence[_builtins.str]] = None):
|
|
4040
4720
|
"""
|
|
4041
|
-
:param Sequence[
|
|
4042
|
-
:param Sequence[
|
|
4721
|
+
:param Sequence[_builtins.str] discrete_resources_specs: The Integer resources
|
|
4722
|
+
:param Sequence[_builtins.str] named_resources_specs: The String resources
|
|
4043
4723
|
"""
|
|
4044
4724
|
if discrete_resources_specs is not None:
|
|
4045
4725
|
pulumi.set(__self__, "discrete_resources_specs", discrete_resources_specs)
|
|
4046
4726
|
if named_resources_specs is not None:
|
|
4047
4727
|
pulumi.set(__self__, "named_resources_specs", named_resources_specs)
|
|
4048
4728
|
|
|
4049
|
-
@property
|
|
4729
|
+
@_builtins.property
|
|
4050
4730
|
@pulumi.getter(name="discreteResourcesSpecs")
|
|
4051
|
-
def discrete_resources_specs(self) -> Optional[Sequence[
|
|
4731
|
+
def discrete_resources_specs(self) -> Optional[Sequence[_builtins.str]]:
|
|
4052
4732
|
"""
|
|
4053
4733
|
The Integer resources
|
|
4054
4734
|
"""
|
|
4055
4735
|
return pulumi.get(self, "discrete_resources_specs")
|
|
4056
4736
|
|
|
4057
|
-
@property
|
|
4737
|
+
@_builtins.property
|
|
4058
4738
|
@pulumi.getter(name="namedResourcesSpecs")
|
|
4059
|
-
def named_resources_specs(self) -> Optional[Sequence[
|
|
4739
|
+
def named_resources_specs(self) -> Optional[Sequence[_builtins.str]]:
|
|
4060
4740
|
"""
|
|
4061
4741
|
The String resources
|
|
4062
4742
|
"""
|
|
@@ -4083,15 +4763,15 @@ class ServiceTaskSpecRestartPolicy(dict):
|
|
|
4083
4763
|
return super().get(key, default)
|
|
4084
4764
|
|
|
4085
4765
|
def __init__(__self__, *,
|
|
4086
|
-
condition: Optional[
|
|
4087
|
-
delay: Optional[
|
|
4088
|
-
max_attempts: Optional[
|
|
4089
|
-
window: Optional[
|
|
4766
|
+
condition: Optional[_builtins.str] = None,
|
|
4767
|
+
delay: Optional[_builtins.str] = None,
|
|
4768
|
+
max_attempts: Optional[_builtins.int] = None,
|
|
4769
|
+
window: Optional[_builtins.str] = None):
|
|
4090
4770
|
"""
|
|
4091
|
-
:param
|
|
4092
|
-
:param
|
|
4093
|
-
:param
|
|
4094
|
-
:param
|
|
4771
|
+
:param _builtins.str condition: Condition for restart
|
|
4772
|
+
:param _builtins.str delay: Delay between restart attempts (ms|s|m|h)
|
|
4773
|
+
:param _builtins.int max_attempts: Maximum attempts to restart a given container before giving up (default value is `0`, which is ignored)
|
|
4774
|
+
:param _builtins.str window: The time window used to evaluate the restart policy (default value is `0`, which is unbounded) (ms|s|m|h)
|
|
4095
4775
|
"""
|
|
4096
4776
|
if condition is not None:
|
|
4097
4777
|
pulumi.set(__self__, "condition", condition)
|
|
@@ -4102,33 +4782,33 @@ class ServiceTaskSpecRestartPolicy(dict):
|
|
|
4102
4782
|
if window is not None:
|
|
4103
4783
|
pulumi.set(__self__, "window", window)
|
|
4104
4784
|
|
|
4105
|
-
@property
|
|
4785
|
+
@_builtins.property
|
|
4106
4786
|
@pulumi.getter
|
|
4107
|
-
def condition(self) -> Optional[
|
|
4787
|
+
def condition(self) -> Optional[_builtins.str]:
|
|
4108
4788
|
"""
|
|
4109
4789
|
Condition for restart
|
|
4110
4790
|
"""
|
|
4111
4791
|
return pulumi.get(self, "condition")
|
|
4112
4792
|
|
|
4113
|
-
@property
|
|
4793
|
+
@_builtins.property
|
|
4114
4794
|
@pulumi.getter
|
|
4115
|
-
def delay(self) -> Optional[
|
|
4795
|
+
def delay(self) -> Optional[_builtins.str]:
|
|
4116
4796
|
"""
|
|
4117
4797
|
Delay between restart attempts (ms|s|m|h)
|
|
4118
4798
|
"""
|
|
4119
4799
|
return pulumi.get(self, "delay")
|
|
4120
4800
|
|
|
4121
|
-
@property
|
|
4801
|
+
@_builtins.property
|
|
4122
4802
|
@pulumi.getter(name="maxAttempts")
|
|
4123
|
-
def max_attempts(self) -> Optional[
|
|
4803
|
+
def max_attempts(self) -> Optional[_builtins.int]:
|
|
4124
4804
|
"""
|
|
4125
4805
|
Maximum attempts to restart a given container before giving up (default value is `0`, which is ignored)
|
|
4126
4806
|
"""
|
|
4127
4807
|
return pulumi.get(self, "max_attempts")
|
|
4128
4808
|
|
|
4129
|
-
@property
|
|
4809
|
+
@_builtins.property
|
|
4130
4810
|
@pulumi.getter
|
|
4131
|
-
def window(self) -> Optional[
|
|
4811
|
+
def window(self) -> Optional[_builtins.str]:
|
|
4132
4812
|
"""
|
|
4133
4813
|
The time window used to evaluate the restart policy (default value is `0`, which is unbounded) (ms|s|m|h)
|
|
4134
4814
|
"""
|
|
@@ -4157,19 +4837,19 @@ class ServiceUpdateConfig(dict):
|
|
|
4157
4837
|
return super().get(key, default)
|
|
4158
4838
|
|
|
4159
4839
|
def __init__(__self__, *,
|
|
4160
|
-
delay: Optional[
|
|
4161
|
-
failure_action: Optional[
|
|
4162
|
-
max_failure_ratio: Optional[
|
|
4163
|
-
monitor: Optional[
|
|
4164
|
-
order: Optional[
|
|
4165
|
-
parallelism: Optional[
|
|
4166
|
-
"""
|
|
4167
|
-
:param
|
|
4168
|
-
:param
|
|
4169
|
-
:param
|
|
4170
|
-
:param
|
|
4171
|
-
:param
|
|
4172
|
-
:param
|
|
4840
|
+
delay: Optional[_builtins.str] = None,
|
|
4841
|
+
failure_action: Optional[_builtins.str] = None,
|
|
4842
|
+
max_failure_ratio: Optional[_builtins.str] = None,
|
|
4843
|
+
monitor: Optional[_builtins.str] = None,
|
|
4844
|
+
order: Optional[_builtins.str] = None,
|
|
4845
|
+
parallelism: Optional[_builtins.int] = None):
|
|
4846
|
+
"""
|
|
4847
|
+
:param _builtins.str delay: Delay between task updates `(ns|us|ms|s|m|h)`. Defaults to `0s`.
|
|
4848
|
+
:param _builtins.str failure_action: Action on update failure: `pause`, `continue` or `rollback`. Defaults to `pause`.
|
|
4849
|
+
:param _builtins.str max_failure_ratio: Failure rate to tolerate during an update. Defaults to `0.0`.
|
|
4850
|
+
:param _builtins.str monitor: Duration after each task update to monitor for failure (ns|us|ms|s|m|h). Defaults to `5s`.
|
|
4851
|
+
:param _builtins.str order: Update order: either 'stop-first' or 'start-first'. Defaults to `stop-first`.
|
|
4852
|
+
:param _builtins.int parallelism: Maximum number of tasks to be updated in one iteration. Defaults to `1`
|
|
4173
4853
|
"""
|
|
4174
4854
|
if delay is not None:
|
|
4175
4855
|
pulumi.set(__self__, "delay", delay)
|
|
@@ -4184,49 +4864,49 @@ class ServiceUpdateConfig(dict):
|
|
|
4184
4864
|
if parallelism is not None:
|
|
4185
4865
|
pulumi.set(__self__, "parallelism", parallelism)
|
|
4186
4866
|
|
|
4187
|
-
@property
|
|
4867
|
+
@_builtins.property
|
|
4188
4868
|
@pulumi.getter
|
|
4189
|
-
def delay(self) -> Optional[
|
|
4869
|
+
def delay(self) -> Optional[_builtins.str]:
|
|
4190
4870
|
"""
|
|
4191
4871
|
Delay between task updates `(ns|us|ms|s|m|h)`. Defaults to `0s`.
|
|
4192
4872
|
"""
|
|
4193
4873
|
return pulumi.get(self, "delay")
|
|
4194
4874
|
|
|
4195
|
-
@property
|
|
4875
|
+
@_builtins.property
|
|
4196
4876
|
@pulumi.getter(name="failureAction")
|
|
4197
|
-
def failure_action(self) -> Optional[
|
|
4877
|
+
def failure_action(self) -> Optional[_builtins.str]:
|
|
4198
4878
|
"""
|
|
4199
4879
|
Action on update failure: `pause`, `continue` or `rollback`. Defaults to `pause`.
|
|
4200
4880
|
"""
|
|
4201
4881
|
return pulumi.get(self, "failure_action")
|
|
4202
4882
|
|
|
4203
|
-
@property
|
|
4883
|
+
@_builtins.property
|
|
4204
4884
|
@pulumi.getter(name="maxFailureRatio")
|
|
4205
|
-
def max_failure_ratio(self) -> Optional[
|
|
4885
|
+
def max_failure_ratio(self) -> Optional[_builtins.str]:
|
|
4206
4886
|
"""
|
|
4207
4887
|
Failure rate to tolerate during an update. Defaults to `0.0`.
|
|
4208
4888
|
"""
|
|
4209
4889
|
return pulumi.get(self, "max_failure_ratio")
|
|
4210
4890
|
|
|
4211
|
-
@property
|
|
4891
|
+
@_builtins.property
|
|
4212
4892
|
@pulumi.getter
|
|
4213
|
-
def monitor(self) -> Optional[
|
|
4893
|
+
def monitor(self) -> Optional[_builtins.str]:
|
|
4214
4894
|
"""
|
|
4215
4895
|
Duration after each task update to monitor for failure (ns|us|ms|s|m|h). Defaults to `5s`.
|
|
4216
4896
|
"""
|
|
4217
4897
|
return pulumi.get(self, "monitor")
|
|
4218
4898
|
|
|
4219
|
-
@property
|
|
4899
|
+
@_builtins.property
|
|
4220
4900
|
@pulumi.getter
|
|
4221
|
-
def order(self) -> Optional[
|
|
4901
|
+
def order(self) -> Optional[_builtins.str]:
|
|
4222
4902
|
"""
|
|
4223
4903
|
Update order: either 'stop-first' or 'start-first'. Defaults to `stop-first`.
|
|
4224
4904
|
"""
|
|
4225
4905
|
return pulumi.get(self, "order")
|
|
4226
4906
|
|
|
4227
|
-
@property
|
|
4907
|
+
@_builtins.property
|
|
4228
4908
|
@pulumi.getter
|
|
4229
|
-
def parallelism(self) -> Optional[
|
|
4909
|
+
def parallelism(self) -> Optional[_builtins.int]:
|
|
4230
4910
|
"""
|
|
4231
4911
|
Maximum number of tasks to be updated in one iteration. Defaults to `1`
|
|
4232
4912
|
"""
|
|
@@ -4236,26 +4916,26 @@ class ServiceUpdateConfig(dict):
|
|
|
4236
4916
|
@pulumi.output_type
|
|
4237
4917
|
class VolumeLabel(dict):
|
|
4238
4918
|
def __init__(__self__, *,
|
|
4239
|
-
label:
|
|
4240
|
-
value:
|
|
4919
|
+
label: _builtins.str,
|
|
4920
|
+
value: _builtins.str):
|
|
4241
4921
|
"""
|
|
4242
|
-
:param
|
|
4243
|
-
:param
|
|
4922
|
+
:param _builtins.str label: Name of the label
|
|
4923
|
+
:param _builtins.str value: Value of the label
|
|
4244
4924
|
"""
|
|
4245
4925
|
pulumi.set(__self__, "label", label)
|
|
4246
4926
|
pulumi.set(__self__, "value", value)
|
|
4247
4927
|
|
|
4248
|
-
@property
|
|
4928
|
+
@_builtins.property
|
|
4249
4929
|
@pulumi.getter
|
|
4250
|
-
def label(self) ->
|
|
4930
|
+
def label(self) -> _builtins.str:
|
|
4251
4931
|
"""
|
|
4252
4932
|
Name of the label
|
|
4253
4933
|
"""
|
|
4254
4934
|
return pulumi.get(self, "label")
|
|
4255
4935
|
|
|
4256
|
-
@property
|
|
4936
|
+
@_builtins.property
|
|
4257
4937
|
@pulumi.getter
|
|
4258
|
-
def value(self) ->
|
|
4938
|
+
def value(self) -> _builtins.str:
|
|
4259
4939
|
"""
|
|
4260
4940
|
Value of the label
|
|
4261
4941
|
"""
|
|
@@ -4265,15 +4945,15 @@ class VolumeLabel(dict):
|
|
|
4265
4945
|
@pulumi.output_type
|
|
4266
4946
|
class GetNetworkIpamConfigResult(dict):
|
|
4267
4947
|
def __init__(__self__, *,
|
|
4268
|
-
aux_address: Optional[Mapping[str,
|
|
4269
|
-
gateway: Optional[
|
|
4270
|
-
ip_range: Optional[
|
|
4271
|
-
subnet: Optional[
|
|
4948
|
+
aux_address: Optional[Mapping[str, _builtins.str]] = None,
|
|
4949
|
+
gateway: Optional[_builtins.str] = None,
|
|
4950
|
+
ip_range: Optional[_builtins.str] = None,
|
|
4951
|
+
subnet: Optional[_builtins.str] = None):
|
|
4272
4952
|
"""
|
|
4273
|
-
:param Mapping[str,
|
|
4274
|
-
:param
|
|
4275
|
-
:param
|
|
4276
|
-
:param
|
|
4953
|
+
:param Mapping[str, _builtins.str] aux_address: Auxiliary IPv4 or IPv6 addresses used by Network driver
|
|
4954
|
+
:param _builtins.str gateway: The IP address of the gateway
|
|
4955
|
+
:param _builtins.str ip_range: The ip range in CIDR form
|
|
4956
|
+
:param _builtins.str subnet: The subnet in CIDR form
|
|
4277
4957
|
"""
|
|
4278
4958
|
if aux_address is not None:
|
|
4279
4959
|
pulumi.set(__self__, "aux_address", aux_address)
|
|
@@ -4284,33 +4964,33 @@ class GetNetworkIpamConfigResult(dict):
|
|
|
4284
4964
|
if subnet is not None:
|
|
4285
4965
|
pulumi.set(__self__, "subnet", subnet)
|
|
4286
4966
|
|
|
4287
|
-
@property
|
|
4967
|
+
@_builtins.property
|
|
4288
4968
|
@pulumi.getter(name="auxAddress")
|
|
4289
|
-
def aux_address(self) -> Optional[Mapping[str,
|
|
4969
|
+
def aux_address(self) -> Optional[Mapping[str, _builtins.str]]:
|
|
4290
4970
|
"""
|
|
4291
4971
|
Auxiliary IPv4 or IPv6 addresses used by Network driver
|
|
4292
4972
|
"""
|
|
4293
4973
|
return pulumi.get(self, "aux_address")
|
|
4294
4974
|
|
|
4295
|
-
@property
|
|
4975
|
+
@_builtins.property
|
|
4296
4976
|
@pulumi.getter
|
|
4297
|
-
def gateway(self) -> Optional[
|
|
4977
|
+
def gateway(self) -> Optional[_builtins.str]:
|
|
4298
4978
|
"""
|
|
4299
4979
|
The IP address of the gateway
|
|
4300
4980
|
"""
|
|
4301
4981
|
return pulumi.get(self, "gateway")
|
|
4302
4982
|
|
|
4303
|
-
@property
|
|
4983
|
+
@_builtins.property
|
|
4304
4984
|
@pulumi.getter(name="ipRange")
|
|
4305
|
-
def ip_range(self) -> Optional[
|
|
4985
|
+
def ip_range(self) -> Optional[_builtins.str]:
|
|
4306
4986
|
"""
|
|
4307
4987
|
The ip range in CIDR form
|
|
4308
4988
|
"""
|
|
4309
4989
|
return pulumi.get(self, "ip_range")
|
|
4310
4990
|
|
|
4311
|
-
@property
|
|
4991
|
+
@_builtins.property
|
|
4312
4992
|
@pulumi.getter
|
|
4313
|
-
def subnet(self) -> Optional[
|
|
4993
|
+
def subnet(self) -> Optional[_builtins.str]:
|
|
4314
4994
|
"""
|
|
4315
4995
|
The subnet in CIDR form
|
|
4316
4996
|
"""
|
|
@@ -4320,37 +5000,37 @@ class GetNetworkIpamConfigResult(dict):
|
|
|
4320
5000
|
@pulumi.output_type
|
|
4321
5001
|
class GetRegistryImageManifestsAuthConfigResult(dict):
|
|
4322
5002
|
def __init__(__self__, *,
|
|
4323
|
-
address:
|
|
4324
|
-
password:
|
|
4325
|
-
username:
|
|
5003
|
+
address: _builtins.str,
|
|
5004
|
+
password: _builtins.str,
|
|
5005
|
+
username: _builtins.str):
|
|
4326
5006
|
"""
|
|
4327
|
-
:param
|
|
4328
|
-
:param
|
|
4329
|
-
:param
|
|
5007
|
+
:param _builtins.str address: The address of the Docker registry.
|
|
5008
|
+
:param _builtins.str password: The password for the Docker registry.
|
|
5009
|
+
:param _builtins.str username: The username for the Docker registry.
|
|
4330
5010
|
"""
|
|
4331
5011
|
pulumi.set(__self__, "address", address)
|
|
4332
5012
|
pulumi.set(__self__, "password", password)
|
|
4333
5013
|
pulumi.set(__self__, "username", username)
|
|
4334
5014
|
|
|
4335
|
-
@property
|
|
5015
|
+
@_builtins.property
|
|
4336
5016
|
@pulumi.getter
|
|
4337
|
-
def address(self) ->
|
|
5017
|
+
def address(self) -> _builtins.str:
|
|
4338
5018
|
"""
|
|
4339
5019
|
The address of the Docker registry.
|
|
4340
5020
|
"""
|
|
4341
5021
|
return pulumi.get(self, "address")
|
|
4342
5022
|
|
|
4343
|
-
@property
|
|
5023
|
+
@_builtins.property
|
|
4344
5024
|
@pulumi.getter
|
|
4345
|
-
def password(self) ->
|
|
5025
|
+
def password(self) -> _builtins.str:
|
|
4346
5026
|
"""
|
|
4347
5027
|
The password for the Docker registry.
|
|
4348
5028
|
"""
|
|
4349
5029
|
return pulumi.get(self, "password")
|
|
4350
5030
|
|
|
4351
|
-
@property
|
|
5031
|
+
@_builtins.property
|
|
4352
5032
|
@pulumi.getter
|
|
4353
|
-
def username(self) ->
|
|
5033
|
+
def username(self) -> _builtins.str:
|
|
4354
5034
|
"""
|
|
4355
5035
|
The username for the Docker registry.
|
|
4356
5036
|
"""
|
|
@@ -4360,48 +5040,48 @@ class GetRegistryImageManifestsAuthConfigResult(dict):
|
|
|
4360
5040
|
@pulumi.output_type
|
|
4361
5041
|
class GetRegistryImageManifestsManifestResult(dict):
|
|
4362
5042
|
def __init__(__self__, *,
|
|
4363
|
-
architecture:
|
|
4364
|
-
media_type:
|
|
4365
|
-
os:
|
|
4366
|
-
sha256_digest:
|
|
5043
|
+
architecture: _builtins.str,
|
|
5044
|
+
media_type: _builtins.str,
|
|
5045
|
+
os: _builtins.str,
|
|
5046
|
+
sha256_digest: _builtins.str):
|
|
4367
5047
|
"""
|
|
4368
|
-
:param
|
|
4369
|
-
:param
|
|
4370
|
-
:param
|
|
4371
|
-
:param
|
|
5048
|
+
:param _builtins.str architecture: The platform architecture supported by the manifest.
|
|
5049
|
+
:param _builtins.str media_type: The media type of the manifest.
|
|
5050
|
+
:param _builtins.str os: The operating system supported by the manifest.
|
|
5051
|
+
:param _builtins.str sha256_digest: The content digest of the manifest, as stored in the registry.
|
|
4372
5052
|
"""
|
|
4373
5053
|
pulumi.set(__self__, "architecture", architecture)
|
|
4374
5054
|
pulumi.set(__self__, "media_type", media_type)
|
|
4375
5055
|
pulumi.set(__self__, "os", os)
|
|
4376
5056
|
pulumi.set(__self__, "sha256_digest", sha256_digest)
|
|
4377
5057
|
|
|
4378
|
-
@property
|
|
5058
|
+
@_builtins.property
|
|
4379
5059
|
@pulumi.getter
|
|
4380
|
-
def architecture(self) ->
|
|
5060
|
+
def architecture(self) -> _builtins.str:
|
|
4381
5061
|
"""
|
|
4382
5062
|
The platform architecture supported by the manifest.
|
|
4383
5063
|
"""
|
|
4384
5064
|
return pulumi.get(self, "architecture")
|
|
4385
5065
|
|
|
4386
|
-
@property
|
|
5066
|
+
@_builtins.property
|
|
4387
5067
|
@pulumi.getter(name="mediaType")
|
|
4388
|
-
def media_type(self) ->
|
|
5068
|
+
def media_type(self) -> _builtins.str:
|
|
4389
5069
|
"""
|
|
4390
5070
|
The media type of the manifest.
|
|
4391
5071
|
"""
|
|
4392
5072
|
return pulumi.get(self, "media_type")
|
|
4393
5073
|
|
|
4394
|
-
@property
|
|
5074
|
+
@_builtins.property
|
|
4395
5075
|
@pulumi.getter
|
|
4396
|
-
def os(self) ->
|
|
5076
|
+
def os(self) -> _builtins.str:
|
|
4397
5077
|
"""
|
|
4398
5078
|
The operating system supported by the manifest.
|
|
4399
5079
|
"""
|
|
4400
5080
|
return pulumi.get(self, "os")
|
|
4401
5081
|
|
|
4402
|
-
@property
|
|
5082
|
+
@_builtins.property
|
|
4403
5083
|
@pulumi.getter(name="sha256Digest")
|
|
4404
|
-
def sha256_digest(self) ->
|
|
5084
|
+
def sha256_digest(self) -> _builtins.str:
|
|
4405
5085
|
"""
|
|
4406
5086
|
The content digest of the manifest, as stored in the registry.
|
|
4407
5087
|
"""
|