pulumiverse-scaleway 1.17.0a1730194779__py3-none-any.whl → 1.18.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pulumiverse-scaleway might be problematic. Click here for more details.
- pulumiverse_scaleway/__init__.py +9 -0
- pulumiverse_scaleway/_inputs.py +133 -107
- pulumiverse_scaleway/account_project.py +17 -17
- pulumiverse_scaleway/account_ssh_key.py +8 -4
- pulumiverse_scaleway/container.py +146 -160
- pulumiverse_scaleway/container_cron.py +42 -77
- pulumiverse_scaleway/container_domain.py +30 -24
- pulumiverse_scaleway/container_namespace.py +42 -42
- pulumiverse_scaleway/container_token.py +36 -38
- pulumiverse_scaleway/container_trigger.py +45 -43
- pulumiverse_scaleway/function.py +112 -154
- pulumiverse_scaleway/function_cron.py +42 -60
- pulumiverse_scaleway/function_domain.py +56 -47
- pulumiverse_scaleway/function_namespace.py +49 -49
- pulumiverse_scaleway/function_token.py +36 -38
- pulumiverse_scaleway/function_trigger.py +45 -43
- pulumiverse_scaleway/get_account_project.py +14 -8
- pulumiverse_scaleway/get_account_ssh_key.py +14 -10
- pulumiverse_scaleway/get_availability_zones.py +17 -9
- pulumiverse_scaleway/get_container.py +50 -30
- pulumiverse_scaleway/get_container_namespace.py +26 -16
- pulumiverse_scaleway/get_function.py +20 -12
- pulumiverse_scaleway/get_function_namespace.py +14 -14
- pulumiverse_scaleway/get_object_bucket.py +22 -10
- pulumiverse_scaleway/get_object_bucket_policy.py +15 -9
- pulumiverse_scaleway/get_tem_domain.py +12 -1
- pulumiverse_scaleway/instance_server.py +32 -0
- pulumiverse_scaleway/object_bucket.py +67 -81
- pulumiverse_scaleway/object_bucket_acl.py +21 -17
- pulumiverse_scaleway/object_bucket_lock_configuration.py +21 -19
- pulumiverse_scaleway/object_bucket_policy.py +10 -8
- pulumiverse_scaleway/object_bucket_website_configuration.py +24 -22
- pulumiverse_scaleway/object_item.py +78 -62
- pulumiverse_scaleway/outputs.py +102 -73
- pulumiverse_scaleway/pulumi-plugin.json +1 -1
- pulumiverse_scaleway/sdb_database.py +26 -22
- pulumiverse_scaleway/tem_domain.py +75 -0
- pulumiverse_scaleway/vpc_private_network.py +2 -2
- pulumiverse_scaleway/vpc_route.py +577 -0
- {pulumiverse_scaleway-1.17.0a1730194779.dist-info → pulumiverse_scaleway-1.18.0.dist-info}/METADATA +1 -1
- {pulumiverse_scaleway-1.17.0a1730194779.dist-info → pulumiverse_scaleway-1.18.0.dist-info}/RECORD +43 -42
- {pulumiverse_scaleway-1.17.0a1730194779.dist-info → pulumiverse_scaleway-1.18.0.dist-info}/WHEEL +1 -1
- {pulumiverse_scaleway-1.17.0a1730194779.dist-info → pulumiverse_scaleway-1.18.0.dist-info}/top_level.txt +0 -0
|
@@ -42,33 +42,31 @@ class ContainerArgs:
|
|
|
42
42
|
timeout: Optional[pulumi.Input[int]] = None):
|
|
43
43
|
"""
|
|
44
44
|
The set of arguments for constructing a Container resource.
|
|
45
|
-
:param pulumi.Input[str] namespace_id: The
|
|
45
|
+
:param pulumi.Input[str] namespace_id: The Containers namespace ID of the container.
|
|
46
46
|
|
|
47
|
-
> **Important**
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
:param pulumi.Input[int] cpu_limit: The amount of vCPU computing resources to allocate to each container. Defaults to 140.
|
|
51
|
-
:param pulumi.Input[bool] deploy: Boolean controlling whether the container is on a production environment.
|
|
47
|
+
> **Important** Updating the `name` argument will recreate the container.
|
|
48
|
+
:param pulumi.Input[int] cpu_limit: The amount of vCPU computing resources to allocate to each container.
|
|
49
|
+
:param pulumi.Input[bool] deploy: Boolean indicating whether the container is in a production environment.
|
|
52
50
|
|
|
53
51
|
Note that if you want to use your own configuration, you must consult our configuration [restrictions](https://www.scaleway.com/en/docs/compute/containers/reference-content/containers-limitations/#configuration-restrictions) section.
|
|
54
52
|
:param pulumi.Input[str] description: The description of the container.
|
|
55
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] environment_variables: The [environment](https://www.scaleway.com/en/docs/compute/containers/concepts/#environment-variables)
|
|
56
|
-
:param pulumi.Input[str] http_option:
|
|
57
|
-
:param pulumi.Input[int] max_concurrency: The maximum number of simultaneous requests your container can handle at the same time.
|
|
58
|
-
:param pulumi.Input[int] max_scale: The maximum
|
|
59
|
-
:param pulumi.Input[int] memory_limit: The memory
|
|
60
|
-
:param pulumi.Input[int] min_scale: The minimum of
|
|
53
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] environment_variables: The [environment variables](https://www.scaleway.com/en/docs/compute/containers/concepts/#environment-variables) of the container.
|
|
54
|
+
:param pulumi.Input[str] http_option: Allows both HTTP and HTTPS (`enabled`) or redirect HTTP to HTTPS (`redirected`). Defaults to `enabled`.
|
|
55
|
+
:param pulumi.Input[int] max_concurrency: The maximum number of simultaneous requests your container can handle at the same time.
|
|
56
|
+
:param pulumi.Input[int] max_scale: The maximum number of instances this container can scale to.
|
|
57
|
+
:param pulumi.Input[int] memory_limit: The memory resources in MB to allocate to each container.
|
|
58
|
+
:param pulumi.Input[int] min_scale: The minimum number of container instances running continuously.
|
|
61
59
|
:param pulumi.Input[str] name: The unique name of the container name.
|
|
62
|
-
:param pulumi.Input[int] port: The port to expose the container.
|
|
63
|
-
:param pulumi.Input[str] privacy: The privacy type
|
|
64
|
-
:param pulumi.Input[str] protocol: The communication [protocol](https://www.scaleway.com/en/developers/api/serverless-containers/#
|
|
60
|
+
:param pulumi.Input[int] port: The port to expose the container.
|
|
61
|
+
:param pulumi.Input[str] privacy: The privacy type defines the way to authenticate to your container. Please check our dedicated [section](https://www.scaleway.com/en/developers/api/serverless-containers/#protocol-9dd4c8).
|
|
62
|
+
:param pulumi.Input[str] protocol: The communication [protocol](https://www.scaleway.com/en/developers/api/serverless-containers/#path-containers-update-an-existing-container) `http1` or `h2c`. Defaults to `http1`.
|
|
65
63
|
:param pulumi.Input[str] region: (Defaults to provider `region`) The region in which the container was created.
|
|
66
|
-
:param pulumi.Input[str] registry_image: The registry image address
|
|
64
|
+
:param pulumi.Input[str] registry_image: The registry image address (e.g., `rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE`)
|
|
67
65
|
:param pulumi.Input[str] registry_sha256: The sha256 of your source registry image, changing it will re-apply the deployment. Can be any string.
|
|
68
66
|
:param pulumi.Input[str] sandbox: Execution environment of the container.
|
|
69
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] secret_environment_variables: The [secret environment](https://www.scaleway.com/en/docs/compute/containers/concepts/#secrets)
|
|
67
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] secret_environment_variables: The [secret environment variables](https://www.scaleway.com/en/docs/compute/containers/concepts/#secrets) of the container.
|
|
70
68
|
:param pulumi.Input[str] status: The container status.
|
|
71
|
-
:param pulumi.Input[int] timeout: The maximum amount of time
|
|
69
|
+
:param pulumi.Input[int] timeout: The maximum amount of time your container can spend processing a request before being stopped.
|
|
72
70
|
"""
|
|
73
71
|
pulumi.set(__self__, "namespace_id", namespace_id)
|
|
74
72
|
if cpu_limit is not None:
|
|
@@ -116,11 +114,9 @@ class ContainerArgs:
|
|
|
116
114
|
@pulumi.getter(name="namespaceId")
|
|
117
115
|
def namespace_id(self) -> pulumi.Input[str]:
|
|
118
116
|
"""
|
|
119
|
-
The
|
|
120
|
-
|
|
121
|
-
> **Important** Updates to `name` will recreate the container.
|
|
117
|
+
The Containers namespace ID of the container.
|
|
122
118
|
|
|
123
|
-
|
|
119
|
+
> **Important** Updating the `name` argument will recreate the container.
|
|
124
120
|
"""
|
|
125
121
|
return pulumi.get(self, "namespace_id")
|
|
126
122
|
|
|
@@ -132,7 +128,7 @@ class ContainerArgs:
|
|
|
132
128
|
@pulumi.getter(name="cpuLimit")
|
|
133
129
|
def cpu_limit(self) -> Optional[pulumi.Input[int]]:
|
|
134
130
|
"""
|
|
135
|
-
The amount of vCPU computing resources to allocate to each container.
|
|
131
|
+
The amount of vCPU computing resources to allocate to each container.
|
|
136
132
|
"""
|
|
137
133
|
return pulumi.get(self, "cpu_limit")
|
|
138
134
|
|
|
@@ -144,7 +140,7 @@ class ContainerArgs:
|
|
|
144
140
|
@pulumi.getter
|
|
145
141
|
def deploy(self) -> Optional[pulumi.Input[bool]]:
|
|
146
142
|
"""
|
|
147
|
-
Boolean
|
|
143
|
+
Boolean indicating whether the container is in a production environment.
|
|
148
144
|
|
|
149
145
|
Note that if you want to use your own configuration, you must consult our configuration [restrictions](https://www.scaleway.com/en/docs/compute/containers/reference-content/containers-limitations/#configuration-restrictions) section.
|
|
150
146
|
"""
|
|
@@ -170,7 +166,7 @@ class ContainerArgs:
|
|
|
170
166
|
@pulumi.getter(name="environmentVariables")
|
|
171
167
|
def environment_variables(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
|
172
168
|
"""
|
|
173
|
-
The [environment](https://www.scaleway.com/en/docs/compute/containers/concepts/#environment-variables)
|
|
169
|
+
The [environment variables](https://www.scaleway.com/en/docs/compute/containers/concepts/#environment-variables) of the container.
|
|
174
170
|
"""
|
|
175
171
|
return pulumi.get(self, "environment_variables")
|
|
176
172
|
|
|
@@ -182,7 +178,7 @@ class ContainerArgs:
|
|
|
182
178
|
@pulumi.getter(name="httpOption")
|
|
183
179
|
def http_option(self) -> Optional[pulumi.Input[str]]:
|
|
184
180
|
"""
|
|
185
|
-
|
|
181
|
+
Allows both HTTP and HTTPS (`enabled`) or redirect HTTP to HTTPS (`redirected`). Defaults to `enabled`.
|
|
186
182
|
"""
|
|
187
183
|
return pulumi.get(self, "http_option")
|
|
188
184
|
|
|
@@ -194,7 +190,7 @@ class ContainerArgs:
|
|
|
194
190
|
@pulumi.getter(name="maxConcurrency")
|
|
195
191
|
def max_concurrency(self) -> Optional[pulumi.Input[int]]:
|
|
196
192
|
"""
|
|
197
|
-
The maximum number of simultaneous requests your container can handle at the same time.
|
|
193
|
+
The maximum number of simultaneous requests your container can handle at the same time.
|
|
198
194
|
"""
|
|
199
195
|
return pulumi.get(self, "max_concurrency")
|
|
200
196
|
|
|
@@ -206,7 +202,7 @@ class ContainerArgs:
|
|
|
206
202
|
@pulumi.getter(name="maxScale")
|
|
207
203
|
def max_scale(self) -> Optional[pulumi.Input[int]]:
|
|
208
204
|
"""
|
|
209
|
-
The maximum
|
|
205
|
+
The maximum number of instances this container can scale to.
|
|
210
206
|
"""
|
|
211
207
|
return pulumi.get(self, "max_scale")
|
|
212
208
|
|
|
@@ -218,7 +214,7 @@ class ContainerArgs:
|
|
|
218
214
|
@pulumi.getter(name="memoryLimit")
|
|
219
215
|
def memory_limit(self) -> Optional[pulumi.Input[int]]:
|
|
220
216
|
"""
|
|
221
|
-
The memory
|
|
217
|
+
The memory resources in MB to allocate to each container.
|
|
222
218
|
"""
|
|
223
219
|
return pulumi.get(self, "memory_limit")
|
|
224
220
|
|
|
@@ -230,7 +226,7 @@ class ContainerArgs:
|
|
|
230
226
|
@pulumi.getter(name="minScale")
|
|
231
227
|
def min_scale(self) -> Optional[pulumi.Input[int]]:
|
|
232
228
|
"""
|
|
233
|
-
The minimum of
|
|
229
|
+
The minimum number of container instances running continuously.
|
|
234
230
|
"""
|
|
235
231
|
return pulumi.get(self, "min_scale")
|
|
236
232
|
|
|
@@ -254,7 +250,7 @@ class ContainerArgs:
|
|
|
254
250
|
@pulumi.getter
|
|
255
251
|
def port(self) -> Optional[pulumi.Input[int]]:
|
|
256
252
|
"""
|
|
257
|
-
The port to expose the container.
|
|
253
|
+
The port to expose the container.
|
|
258
254
|
"""
|
|
259
255
|
return pulumi.get(self, "port")
|
|
260
256
|
|
|
@@ -266,7 +262,7 @@ class ContainerArgs:
|
|
|
266
262
|
@pulumi.getter
|
|
267
263
|
def privacy(self) -> Optional[pulumi.Input[str]]:
|
|
268
264
|
"""
|
|
269
|
-
The privacy type
|
|
265
|
+
The privacy type defines the way to authenticate to your container. Please check our dedicated [section](https://www.scaleway.com/en/developers/api/serverless-containers/#protocol-9dd4c8).
|
|
270
266
|
"""
|
|
271
267
|
return pulumi.get(self, "privacy")
|
|
272
268
|
|
|
@@ -278,7 +274,7 @@ class ContainerArgs:
|
|
|
278
274
|
@pulumi.getter
|
|
279
275
|
def protocol(self) -> Optional[pulumi.Input[str]]:
|
|
280
276
|
"""
|
|
281
|
-
The communication [protocol](https://www.scaleway.com/en/developers/api/serverless-containers/#
|
|
277
|
+
The communication [protocol](https://www.scaleway.com/en/developers/api/serverless-containers/#path-containers-update-an-existing-container) `http1` or `h2c`. Defaults to `http1`.
|
|
282
278
|
"""
|
|
283
279
|
return pulumi.get(self, "protocol")
|
|
284
280
|
|
|
@@ -302,7 +298,7 @@ class ContainerArgs:
|
|
|
302
298
|
@pulumi.getter(name="registryImage")
|
|
303
299
|
def registry_image(self) -> Optional[pulumi.Input[str]]:
|
|
304
300
|
"""
|
|
305
|
-
The registry image address
|
|
301
|
+
The registry image address (e.g., `rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE`)
|
|
306
302
|
"""
|
|
307
303
|
return pulumi.get(self, "registry_image")
|
|
308
304
|
|
|
@@ -338,7 +334,7 @@ class ContainerArgs:
|
|
|
338
334
|
@pulumi.getter(name="secretEnvironmentVariables")
|
|
339
335
|
def secret_environment_variables(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
|
340
336
|
"""
|
|
341
|
-
The [secret environment](https://www.scaleway.com/en/docs/compute/containers/concepts/#secrets)
|
|
337
|
+
The [secret environment variables](https://www.scaleway.com/en/docs/compute/containers/concepts/#secrets) of the container.
|
|
342
338
|
"""
|
|
343
339
|
return pulumi.get(self, "secret_environment_variables")
|
|
344
340
|
|
|
@@ -362,7 +358,7 @@ class ContainerArgs:
|
|
|
362
358
|
@pulumi.getter
|
|
363
359
|
def timeout(self) -> Optional[pulumi.Input[int]]:
|
|
364
360
|
"""
|
|
365
|
-
The maximum amount of time
|
|
361
|
+
The maximum amount of time your container can spend processing a request before being stopped.
|
|
366
362
|
"""
|
|
367
363
|
return pulumi.get(self, "timeout")
|
|
368
364
|
|
|
@@ -400,36 +396,34 @@ class _ContainerState:
|
|
|
400
396
|
timeout: Optional[pulumi.Input[int]] = None):
|
|
401
397
|
"""
|
|
402
398
|
Input properties used for looking up and filtering Container resources.
|
|
403
|
-
:param pulumi.Input[int] cpu_limit: The amount of vCPU computing resources to allocate to each container.
|
|
399
|
+
:param pulumi.Input[int] cpu_limit: The amount of vCPU computing resources to allocate to each container.
|
|
404
400
|
:param pulumi.Input[str] cron_status: The cron status of the container.
|
|
405
|
-
:param pulumi.Input[bool] deploy: Boolean
|
|
401
|
+
:param pulumi.Input[bool] deploy: Boolean indicating whether the container is in a production environment.
|
|
406
402
|
|
|
407
403
|
Note that if you want to use your own configuration, you must consult our configuration [restrictions](https://www.scaleway.com/en/docs/compute/containers/reference-content/containers-limitations/#configuration-restrictions) section.
|
|
408
404
|
:param pulumi.Input[str] description: The description of the container.
|
|
409
405
|
:param pulumi.Input[str] domain_name: The native domain name of the container
|
|
410
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] environment_variables: The [environment](https://www.scaleway.com/en/docs/compute/containers/concepts/#environment-variables)
|
|
406
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] environment_variables: The [environment variables](https://www.scaleway.com/en/docs/compute/containers/concepts/#environment-variables) of the container.
|
|
411
407
|
:param pulumi.Input[str] error_message: The error message of the container.
|
|
412
|
-
:param pulumi.Input[str] http_option:
|
|
413
|
-
:param pulumi.Input[int] max_concurrency: The maximum number of simultaneous requests your container can handle at the same time.
|
|
414
|
-
:param pulumi.Input[int] max_scale: The maximum
|
|
415
|
-
:param pulumi.Input[int] memory_limit: The memory
|
|
416
|
-
:param pulumi.Input[int] min_scale: The minimum of
|
|
408
|
+
:param pulumi.Input[str] http_option: Allows both HTTP and HTTPS (`enabled`) or redirect HTTP to HTTPS (`redirected`). Defaults to `enabled`.
|
|
409
|
+
:param pulumi.Input[int] max_concurrency: The maximum number of simultaneous requests your container can handle at the same time.
|
|
410
|
+
:param pulumi.Input[int] max_scale: The maximum number of instances this container can scale to.
|
|
411
|
+
:param pulumi.Input[int] memory_limit: The memory resources in MB to allocate to each container.
|
|
412
|
+
:param pulumi.Input[int] min_scale: The minimum number of container instances running continuously.
|
|
417
413
|
:param pulumi.Input[str] name: The unique name of the container name.
|
|
418
|
-
:param pulumi.Input[str] namespace_id: The
|
|
414
|
+
:param pulumi.Input[str] namespace_id: The Containers namespace ID of the container.
|
|
419
415
|
|
|
420
|
-
> **Important**
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
:param pulumi.Input[
|
|
424
|
-
:param pulumi.Input[str] privacy: The privacy type define the way to authenticate to your container. Please check our dedicated [section](https://www.scaleway.com/en/developers/api/serverless-containers/#protocol-9dd4c8).
|
|
425
|
-
:param pulumi.Input[str] protocol: The communication [protocol](https://www.scaleway.com/en/developers/api/serverless-containers/#protocol-9dd4c8) http1 or h2c. Defaults to http1.
|
|
416
|
+
> **Important** Updating the `name` argument will recreate the container.
|
|
417
|
+
:param pulumi.Input[int] port: The port to expose the container.
|
|
418
|
+
:param pulumi.Input[str] privacy: The privacy type defines the way to authenticate to your container. Please check our dedicated [section](https://www.scaleway.com/en/developers/api/serverless-containers/#protocol-9dd4c8).
|
|
419
|
+
:param pulumi.Input[str] protocol: The communication [protocol](https://www.scaleway.com/en/developers/api/serverless-containers/#path-containers-update-an-existing-container) `http1` or `h2c`. Defaults to `http1`.
|
|
426
420
|
:param pulumi.Input[str] region: (Defaults to provider `region`) The region in which the container was created.
|
|
427
|
-
:param pulumi.Input[str] registry_image: The registry image address
|
|
421
|
+
:param pulumi.Input[str] registry_image: The registry image address (e.g., `rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE`)
|
|
428
422
|
:param pulumi.Input[str] registry_sha256: The sha256 of your source registry image, changing it will re-apply the deployment. Can be any string.
|
|
429
423
|
:param pulumi.Input[str] sandbox: Execution environment of the container.
|
|
430
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] secret_environment_variables: The [secret environment](https://www.scaleway.com/en/docs/compute/containers/concepts/#secrets)
|
|
424
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] secret_environment_variables: The [secret environment variables](https://www.scaleway.com/en/docs/compute/containers/concepts/#secrets) of the container.
|
|
431
425
|
:param pulumi.Input[str] status: The container status.
|
|
432
|
-
:param pulumi.Input[int] timeout: The maximum amount of time
|
|
426
|
+
:param pulumi.Input[int] timeout: The maximum amount of time your container can spend processing a request before being stopped.
|
|
433
427
|
"""
|
|
434
428
|
if cpu_limit is not None:
|
|
435
429
|
pulumi.set(__self__, "cpu_limit", cpu_limit)
|
|
@@ -484,7 +478,7 @@ class _ContainerState:
|
|
|
484
478
|
@pulumi.getter(name="cpuLimit")
|
|
485
479
|
def cpu_limit(self) -> Optional[pulumi.Input[int]]:
|
|
486
480
|
"""
|
|
487
|
-
The amount of vCPU computing resources to allocate to each container.
|
|
481
|
+
The amount of vCPU computing resources to allocate to each container.
|
|
488
482
|
"""
|
|
489
483
|
return pulumi.get(self, "cpu_limit")
|
|
490
484
|
|
|
@@ -508,7 +502,7 @@ class _ContainerState:
|
|
|
508
502
|
@pulumi.getter
|
|
509
503
|
def deploy(self) -> Optional[pulumi.Input[bool]]:
|
|
510
504
|
"""
|
|
511
|
-
Boolean
|
|
505
|
+
Boolean indicating whether the container is in a production environment.
|
|
512
506
|
|
|
513
507
|
Note that if you want to use your own configuration, you must consult our configuration [restrictions](https://www.scaleway.com/en/docs/compute/containers/reference-content/containers-limitations/#configuration-restrictions) section.
|
|
514
508
|
"""
|
|
@@ -546,7 +540,7 @@ class _ContainerState:
|
|
|
546
540
|
@pulumi.getter(name="environmentVariables")
|
|
547
541
|
def environment_variables(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
|
548
542
|
"""
|
|
549
|
-
The [environment](https://www.scaleway.com/en/docs/compute/containers/concepts/#environment-variables)
|
|
543
|
+
The [environment variables](https://www.scaleway.com/en/docs/compute/containers/concepts/#environment-variables) of the container.
|
|
550
544
|
"""
|
|
551
545
|
return pulumi.get(self, "environment_variables")
|
|
552
546
|
|
|
@@ -570,7 +564,7 @@ class _ContainerState:
|
|
|
570
564
|
@pulumi.getter(name="httpOption")
|
|
571
565
|
def http_option(self) -> Optional[pulumi.Input[str]]:
|
|
572
566
|
"""
|
|
573
|
-
|
|
567
|
+
Allows both HTTP and HTTPS (`enabled`) or redirect HTTP to HTTPS (`redirected`). Defaults to `enabled`.
|
|
574
568
|
"""
|
|
575
569
|
return pulumi.get(self, "http_option")
|
|
576
570
|
|
|
@@ -582,7 +576,7 @@ class _ContainerState:
|
|
|
582
576
|
@pulumi.getter(name="maxConcurrency")
|
|
583
577
|
def max_concurrency(self) -> Optional[pulumi.Input[int]]:
|
|
584
578
|
"""
|
|
585
|
-
The maximum number of simultaneous requests your container can handle at the same time.
|
|
579
|
+
The maximum number of simultaneous requests your container can handle at the same time.
|
|
586
580
|
"""
|
|
587
581
|
return pulumi.get(self, "max_concurrency")
|
|
588
582
|
|
|
@@ -594,7 +588,7 @@ class _ContainerState:
|
|
|
594
588
|
@pulumi.getter(name="maxScale")
|
|
595
589
|
def max_scale(self) -> Optional[pulumi.Input[int]]:
|
|
596
590
|
"""
|
|
597
|
-
The maximum
|
|
591
|
+
The maximum number of instances this container can scale to.
|
|
598
592
|
"""
|
|
599
593
|
return pulumi.get(self, "max_scale")
|
|
600
594
|
|
|
@@ -606,7 +600,7 @@ class _ContainerState:
|
|
|
606
600
|
@pulumi.getter(name="memoryLimit")
|
|
607
601
|
def memory_limit(self) -> Optional[pulumi.Input[int]]:
|
|
608
602
|
"""
|
|
609
|
-
The memory
|
|
603
|
+
The memory resources in MB to allocate to each container.
|
|
610
604
|
"""
|
|
611
605
|
return pulumi.get(self, "memory_limit")
|
|
612
606
|
|
|
@@ -618,7 +612,7 @@ class _ContainerState:
|
|
|
618
612
|
@pulumi.getter(name="minScale")
|
|
619
613
|
def min_scale(self) -> Optional[pulumi.Input[int]]:
|
|
620
614
|
"""
|
|
621
|
-
The minimum of
|
|
615
|
+
The minimum number of container instances running continuously.
|
|
622
616
|
"""
|
|
623
617
|
return pulumi.get(self, "min_scale")
|
|
624
618
|
|
|
@@ -642,11 +636,9 @@ class _ContainerState:
|
|
|
642
636
|
@pulumi.getter(name="namespaceId")
|
|
643
637
|
def namespace_id(self) -> Optional[pulumi.Input[str]]:
|
|
644
638
|
"""
|
|
645
|
-
The
|
|
646
|
-
|
|
647
|
-
> **Important** Updates to `name` will recreate the container.
|
|
639
|
+
The Containers namespace ID of the container.
|
|
648
640
|
|
|
649
|
-
|
|
641
|
+
> **Important** Updating the `name` argument will recreate the container.
|
|
650
642
|
"""
|
|
651
643
|
return pulumi.get(self, "namespace_id")
|
|
652
644
|
|
|
@@ -658,7 +650,7 @@ class _ContainerState:
|
|
|
658
650
|
@pulumi.getter
|
|
659
651
|
def port(self) -> Optional[pulumi.Input[int]]:
|
|
660
652
|
"""
|
|
661
|
-
The port to expose the container.
|
|
653
|
+
The port to expose the container.
|
|
662
654
|
"""
|
|
663
655
|
return pulumi.get(self, "port")
|
|
664
656
|
|
|
@@ -670,7 +662,7 @@ class _ContainerState:
|
|
|
670
662
|
@pulumi.getter
|
|
671
663
|
def privacy(self) -> Optional[pulumi.Input[str]]:
|
|
672
664
|
"""
|
|
673
|
-
The privacy type
|
|
665
|
+
The privacy type defines the way to authenticate to your container. Please check our dedicated [section](https://www.scaleway.com/en/developers/api/serverless-containers/#protocol-9dd4c8).
|
|
674
666
|
"""
|
|
675
667
|
return pulumi.get(self, "privacy")
|
|
676
668
|
|
|
@@ -682,7 +674,7 @@ class _ContainerState:
|
|
|
682
674
|
@pulumi.getter
|
|
683
675
|
def protocol(self) -> Optional[pulumi.Input[str]]:
|
|
684
676
|
"""
|
|
685
|
-
The communication [protocol](https://www.scaleway.com/en/developers/api/serverless-containers/#
|
|
677
|
+
The communication [protocol](https://www.scaleway.com/en/developers/api/serverless-containers/#path-containers-update-an-existing-container) `http1` or `h2c`. Defaults to `http1`.
|
|
686
678
|
"""
|
|
687
679
|
return pulumi.get(self, "protocol")
|
|
688
680
|
|
|
@@ -706,7 +698,7 @@ class _ContainerState:
|
|
|
706
698
|
@pulumi.getter(name="registryImage")
|
|
707
699
|
def registry_image(self) -> Optional[pulumi.Input[str]]:
|
|
708
700
|
"""
|
|
709
|
-
The registry image address
|
|
701
|
+
The registry image address (e.g., `rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE`)
|
|
710
702
|
"""
|
|
711
703
|
return pulumi.get(self, "registry_image")
|
|
712
704
|
|
|
@@ -742,7 +734,7 @@ class _ContainerState:
|
|
|
742
734
|
@pulumi.getter(name="secretEnvironmentVariables")
|
|
743
735
|
def secret_environment_variables(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
|
744
736
|
"""
|
|
745
|
-
The [secret environment](https://www.scaleway.com/en/docs/compute/containers/concepts/#secrets)
|
|
737
|
+
The [secret environment variables](https://www.scaleway.com/en/docs/compute/containers/concepts/#secrets) of the container.
|
|
746
738
|
"""
|
|
747
739
|
return pulumi.get(self, "secret_environment_variables")
|
|
748
740
|
|
|
@@ -766,7 +758,7 @@ class _ContainerState:
|
|
|
766
758
|
@pulumi.getter
|
|
767
759
|
def timeout(self) -> Optional[pulumi.Input[int]]:
|
|
768
760
|
"""
|
|
769
|
-
The maximum amount of time
|
|
761
|
+
The maximum amount of time your container can spend processing a request before being stopped.
|
|
770
762
|
"""
|
|
771
763
|
return pulumi.get(self, "timeout")
|
|
772
764
|
|
|
@@ -803,13 +795,11 @@ class Container(pulumi.CustomResource):
|
|
|
803
795
|
timeout: Optional[pulumi.Input[int]] = None,
|
|
804
796
|
__props__=None):
|
|
805
797
|
"""
|
|
806
|
-
|
|
798
|
+
The `Container` resource allows you to create and manage [Serverless Containers](https://www.scaleway.com/en/docs/serverless/containers/).
|
|
807
799
|
|
|
808
|
-
|
|
800
|
+
Refer to the Serverless Containers [product documentation](https://www.scaleway.com/en/docs/serverless/containers/) and [API documentation](https://www.scaleway.com/en/developers/api/serverless-containers/) for more information.
|
|
809
801
|
|
|
810
|
-
For more
|
|
811
|
-
|
|
812
|
-
You can check also our [containers guide](https://www.scaleway.com/en/docs/compute/containers/concepts/).
|
|
802
|
+
For more information on the limitations of Serverless Containers, refer to the [dedicated documentation](https://www.scaleway.com/en/docs/compute/containers/reference-content/containers-limitations/).
|
|
813
803
|
|
|
814
804
|
## Example Usage
|
|
815
805
|
|
|
@@ -845,30 +835,28 @@ class Container(pulumi.CustomResource):
|
|
|
845
835
|
|
|
846
836
|
## Protocols
|
|
847
837
|
|
|
848
|
-
The
|
|
838
|
+
The following protocols are supported:
|
|
849
839
|
|
|
850
840
|
* `h2c`: HTTP/2 over TCP.
|
|
851
841
|
* `http1`: Hypertext Transfer Protocol.
|
|
852
842
|
|
|
853
|
-
**Important:**
|
|
843
|
+
> **Important:** Refer to the official [Apache documentation](https://httpd.apache.org/docs/2.4/howto/http2.html) for more information.
|
|
854
844
|
|
|
855
845
|
## Privacy
|
|
856
846
|
|
|
857
|
-
By default, creating a container will make it `public`, meaning that anybody knowing the endpoint
|
|
847
|
+
By default, creating a container will make it `public`, meaning that anybody knowing the endpoint can execute it.
|
|
848
|
+
|
|
858
849
|
A container can be made `private` with the privacy parameter.
|
|
859
850
|
|
|
860
|
-
|
|
851
|
+
Refer to the [technical information](https://www.scaleway.com/en/developers/api/serverless-containers/#protocol-9dd4c8) for more information on container authentication.
|
|
861
852
|
|
|
862
853
|
## Memory and vCPUs configuration
|
|
863
854
|
|
|
864
|
-
The vCPU represents a portion
|
|
865
|
-
|
|
866
|
-
You may decide how much computing resources to allocate to each container.
|
|
867
|
-
The `memory_limit` (in MB) must correspond with the right amount of vCPU.
|
|
855
|
+
The vCPU represents a portion of the underlying, physical CPU that is assigned to a particular virtual machine (VM).
|
|
868
856
|
|
|
869
|
-
|
|
857
|
+
You can determine the computing resources to allocate to each container.
|
|
870
858
|
|
|
871
|
-
|
|
859
|
+
The `memory_limit` (in MB) must correspond with the right amount of vCPU. Refer to the table below to determine the right memory/vCPU combination.
|
|
872
860
|
|
|
873
861
|
| Memory (in MB) | vCPU |
|
|
874
862
|
|----------------|------|
|
|
@@ -876,12 +864,16 @@ class Container(pulumi.CustomResource):
|
|
|
876
864
|
| 256 | 140m |
|
|
877
865
|
| 512 | 280m |
|
|
878
866
|
| 1024 | 560m |
|
|
867
|
+
| 2048 | 1120 |
|
|
868
|
+
| 3072 | 1680 |
|
|
869
|
+
| 4096 | 2240 |
|
|
879
870
|
|
|
880
|
-
|
|
871
|
+
~>**Important:** Make sure to select the right resources, as you will be billed based on compute usage over time and the number of Containers executions.
|
|
872
|
+
Refer to the [Serverless Containers pricing](https://www.scaleway.com/en/docs/faq/serverless-containers/#prices) for more information.
|
|
881
873
|
|
|
882
874
|
## Import
|
|
883
875
|
|
|
884
|
-
|
|
876
|
+
Containers can be imported using, `{region}/{id}`, as shown below:
|
|
885
877
|
|
|
886
878
|
bash
|
|
887
879
|
|
|
@@ -891,33 +883,31 @@ class Container(pulumi.CustomResource):
|
|
|
891
883
|
|
|
892
884
|
:param str resource_name: The name of the resource.
|
|
893
885
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
894
|
-
:param pulumi.Input[int] cpu_limit: The amount of vCPU computing resources to allocate to each container.
|
|
895
|
-
:param pulumi.Input[bool] deploy: Boolean
|
|
886
|
+
:param pulumi.Input[int] cpu_limit: The amount of vCPU computing resources to allocate to each container.
|
|
887
|
+
:param pulumi.Input[bool] deploy: Boolean indicating whether the container is in a production environment.
|
|
896
888
|
|
|
897
889
|
Note that if you want to use your own configuration, you must consult our configuration [restrictions](https://www.scaleway.com/en/docs/compute/containers/reference-content/containers-limitations/#configuration-restrictions) section.
|
|
898
890
|
:param pulumi.Input[str] description: The description of the container.
|
|
899
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] environment_variables: The [environment](https://www.scaleway.com/en/docs/compute/containers/concepts/#environment-variables)
|
|
900
|
-
:param pulumi.Input[str] http_option:
|
|
901
|
-
:param pulumi.Input[int] max_concurrency: The maximum number of simultaneous requests your container can handle at the same time.
|
|
902
|
-
:param pulumi.Input[int] max_scale: The maximum
|
|
903
|
-
:param pulumi.Input[int] memory_limit: The memory
|
|
904
|
-
:param pulumi.Input[int] min_scale: The minimum of
|
|
891
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] environment_variables: The [environment variables](https://www.scaleway.com/en/docs/compute/containers/concepts/#environment-variables) of the container.
|
|
892
|
+
:param pulumi.Input[str] http_option: Allows both HTTP and HTTPS (`enabled`) or redirect HTTP to HTTPS (`redirected`). Defaults to `enabled`.
|
|
893
|
+
:param pulumi.Input[int] max_concurrency: The maximum number of simultaneous requests your container can handle at the same time.
|
|
894
|
+
:param pulumi.Input[int] max_scale: The maximum number of instances this container can scale to.
|
|
895
|
+
:param pulumi.Input[int] memory_limit: The memory resources in MB to allocate to each container.
|
|
896
|
+
:param pulumi.Input[int] min_scale: The minimum number of container instances running continuously.
|
|
905
897
|
:param pulumi.Input[str] name: The unique name of the container name.
|
|
906
|
-
:param pulumi.Input[str] namespace_id: The
|
|
898
|
+
:param pulumi.Input[str] namespace_id: The Containers namespace ID of the container.
|
|
907
899
|
|
|
908
|
-
> **Important**
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
:param pulumi.Input[
|
|
912
|
-
:param pulumi.Input[str] privacy: The privacy type define the way to authenticate to your container. Please check our dedicated [section](https://www.scaleway.com/en/developers/api/serverless-containers/#protocol-9dd4c8).
|
|
913
|
-
:param pulumi.Input[str] protocol: The communication [protocol](https://www.scaleway.com/en/developers/api/serverless-containers/#protocol-9dd4c8) http1 or h2c. Defaults to http1.
|
|
900
|
+
> **Important** Updating the `name` argument will recreate the container.
|
|
901
|
+
:param pulumi.Input[int] port: The port to expose the container.
|
|
902
|
+
:param pulumi.Input[str] privacy: The privacy type defines the way to authenticate to your container. Please check our dedicated [section](https://www.scaleway.com/en/developers/api/serverless-containers/#protocol-9dd4c8).
|
|
903
|
+
:param pulumi.Input[str] protocol: The communication [protocol](https://www.scaleway.com/en/developers/api/serverless-containers/#path-containers-update-an-existing-container) `http1` or `h2c`. Defaults to `http1`.
|
|
914
904
|
:param pulumi.Input[str] region: (Defaults to provider `region`) The region in which the container was created.
|
|
915
|
-
:param pulumi.Input[str] registry_image: The registry image address
|
|
905
|
+
:param pulumi.Input[str] registry_image: The registry image address (e.g., `rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE`)
|
|
916
906
|
:param pulumi.Input[str] registry_sha256: The sha256 of your source registry image, changing it will re-apply the deployment. Can be any string.
|
|
917
907
|
:param pulumi.Input[str] sandbox: Execution environment of the container.
|
|
918
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] secret_environment_variables: The [secret environment](https://www.scaleway.com/en/docs/compute/containers/concepts/#secrets)
|
|
908
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] secret_environment_variables: The [secret environment variables](https://www.scaleway.com/en/docs/compute/containers/concepts/#secrets) of the container.
|
|
919
909
|
:param pulumi.Input[str] status: The container status.
|
|
920
|
-
:param pulumi.Input[int] timeout: The maximum amount of time
|
|
910
|
+
:param pulumi.Input[int] timeout: The maximum amount of time your container can spend processing a request before being stopped.
|
|
921
911
|
"""
|
|
922
912
|
...
|
|
923
913
|
@overload
|
|
@@ -926,13 +916,11 @@ class Container(pulumi.CustomResource):
|
|
|
926
916
|
args: ContainerArgs,
|
|
927
917
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
928
918
|
"""
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
For more information consult the [documentation](https://www.scaleway.com/en/docs/faq/serverless-containers/).
|
|
919
|
+
The `Container` resource allows you to create and manage [Serverless Containers](https://www.scaleway.com/en/docs/serverless/containers/).
|
|
932
920
|
|
|
933
|
-
|
|
921
|
+
Refer to the Serverless Containers [product documentation](https://www.scaleway.com/en/docs/serverless/containers/) and [API documentation](https://www.scaleway.com/en/developers/api/serverless-containers/) for more information.
|
|
934
922
|
|
|
935
|
-
|
|
923
|
+
For more information on the limitations of Serverless Containers, refer to the [dedicated documentation](https://www.scaleway.com/en/docs/compute/containers/reference-content/containers-limitations/).
|
|
936
924
|
|
|
937
925
|
## Example Usage
|
|
938
926
|
|
|
@@ -968,30 +956,28 @@ class Container(pulumi.CustomResource):
|
|
|
968
956
|
|
|
969
957
|
## Protocols
|
|
970
958
|
|
|
971
|
-
The
|
|
959
|
+
The following protocols are supported:
|
|
972
960
|
|
|
973
961
|
* `h2c`: HTTP/2 over TCP.
|
|
974
962
|
* `http1`: Hypertext Transfer Protocol.
|
|
975
963
|
|
|
976
|
-
**Important:**
|
|
964
|
+
> **Important:** Refer to the official [Apache documentation](https://httpd.apache.org/docs/2.4/howto/http2.html) for more information.
|
|
977
965
|
|
|
978
966
|
## Privacy
|
|
979
967
|
|
|
980
|
-
By default, creating a container will make it `public`, meaning that anybody knowing the endpoint
|
|
968
|
+
By default, creating a container will make it `public`, meaning that anybody knowing the endpoint can execute it.
|
|
969
|
+
|
|
981
970
|
A container can be made `private` with the privacy parameter.
|
|
982
971
|
|
|
983
|
-
|
|
972
|
+
Refer to the [technical information](https://www.scaleway.com/en/developers/api/serverless-containers/#protocol-9dd4c8) for more information on container authentication.
|
|
984
973
|
|
|
985
974
|
## Memory and vCPUs configuration
|
|
986
975
|
|
|
987
|
-
The vCPU represents a portion
|
|
976
|
+
The vCPU represents a portion of the underlying, physical CPU that is assigned to a particular virtual machine (VM).
|
|
988
977
|
|
|
989
|
-
You
|
|
990
|
-
The `memory_limit` (in MB) must correspond with the right amount of vCPU.
|
|
978
|
+
You can determine the computing resources to allocate to each container.
|
|
991
979
|
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
Please check our [price](https://www.scaleway.com/en/docs/faq/serverless-containers/#prices) section for more details.
|
|
980
|
+
The `memory_limit` (in MB) must correspond with the right amount of vCPU. Refer to the table below to determine the right memory/vCPU combination.
|
|
995
981
|
|
|
996
982
|
| Memory (in MB) | vCPU |
|
|
997
983
|
|----------------|------|
|
|
@@ -999,12 +985,16 @@ class Container(pulumi.CustomResource):
|
|
|
999
985
|
| 256 | 140m |
|
|
1000
986
|
| 512 | 280m |
|
|
1001
987
|
| 1024 | 560m |
|
|
988
|
+
| 2048 | 1120 |
|
|
989
|
+
| 3072 | 1680 |
|
|
990
|
+
| 4096 | 2240 |
|
|
1002
991
|
|
|
1003
|
-
|
|
992
|
+
~>**Important:** Make sure to select the right resources, as you will be billed based on compute usage over time and the number of Containers executions.
|
|
993
|
+
Refer to the [Serverless Containers pricing](https://www.scaleway.com/en/docs/faq/serverless-containers/#prices) for more information.
|
|
1004
994
|
|
|
1005
995
|
## Import
|
|
1006
996
|
|
|
1007
|
-
|
|
997
|
+
Containers can be imported using, `{region}/{id}`, as shown below:
|
|
1008
998
|
|
|
1009
999
|
bash
|
|
1010
1000
|
|
|
@@ -1126,36 +1116,34 @@ class Container(pulumi.CustomResource):
|
|
|
1126
1116
|
:param str resource_name: The unique name of the resulting resource.
|
|
1127
1117
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
1128
1118
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
1129
|
-
:param pulumi.Input[int] cpu_limit: The amount of vCPU computing resources to allocate to each container.
|
|
1119
|
+
:param pulumi.Input[int] cpu_limit: The amount of vCPU computing resources to allocate to each container.
|
|
1130
1120
|
:param pulumi.Input[str] cron_status: The cron status of the container.
|
|
1131
|
-
:param pulumi.Input[bool] deploy: Boolean
|
|
1121
|
+
:param pulumi.Input[bool] deploy: Boolean indicating whether the container is in a production environment.
|
|
1132
1122
|
|
|
1133
1123
|
Note that if you want to use your own configuration, you must consult our configuration [restrictions](https://www.scaleway.com/en/docs/compute/containers/reference-content/containers-limitations/#configuration-restrictions) section.
|
|
1134
1124
|
:param pulumi.Input[str] description: The description of the container.
|
|
1135
1125
|
:param pulumi.Input[str] domain_name: The native domain name of the container
|
|
1136
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] environment_variables: The [environment](https://www.scaleway.com/en/docs/compute/containers/concepts/#environment-variables)
|
|
1126
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] environment_variables: The [environment variables](https://www.scaleway.com/en/docs/compute/containers/concepts/#environment-variables) of the container.
|
|
1137
1127
|
:param pulumi.Input[str] error_message: The error message of the container.
|
|
1138
|
-
:param pulumi.Input[str] http_option:
|
|
1139
|
-
:param pulumi.Input[int] max_concurrency: The maximum number of simultaneous requests your container can handle at the same time.
|
|
1140
|
-
:param pulumi.Input[int] max_scale: The maximum
|
|
1141
|
-
:param pulumi.Input[int] memory_limit: The memory
|
|
1142
|
-
:param pulumi.Input[int] min_scale: The minimum of
|
|
1128
|
+
:param pulumi.Input[str] http_option: Allows both HTTP and HTTPS (`enabled`) or redirect HTTP to HTTPS (`redirected`). Defaults to `enabled`.
|
|
1129
|
+
:param pulumi.Input[int] max_concurrency: The maximum number of simultaneous requests your container can handle at the same time.
|
|
1130
|
+
:param pulumi.Input[int] max_scale: The maximum number of instances this container can scale to.
|
|
1131
|
+
:param pulumi.Input[int] memory_limit: The memory resources in MB to allocate to each container.
|
|
1132
|
+
:param pulumi.Input[int] min_scale: The minimum number of container instances running continuously.
|
|
1143
1133
|
:param pulumi.Input[str] name: The unique name of the container name.
|
|
1144
|
-
:param pulumi.Input[str] namespace_id: The
|
|
1145
|
-
|
|
1146
|
-
> **Important** Updates to `name` will recreate the container.
|
|
1134
|
+
:param pulumi.Input[str] namespace_id: The Containers namespace ID of the container.
|
|
1147
1135
|
|
|
1148
|
-
|
|
1149
|
-
:param pulumi.Input[int] port: The port to expose the container.
|
|
1150
|
-
:param pulumi.Input[str] privacy: The privacy type
|
|
1151
|
-
:param pulumi.Input[str] protocol: The communication [protocol](https://www.scaleway.com/en/developers/api/serverless-containers/#
|
|
1136
|
+
> **Important** Updating the `name` argument will recreate the container.
|
|
1137
|
+
:param pulumi.Input[int] port: The port to expose the container.
|
|
1138
|
+
:param pulumi.Input[str] privacy: The privacy type defines the way to authenticate to your container. Please check our dedicated [section](https://www.scaleway.com/en/developers/api/serverless-containers/#protocol-9dd4c8).
|
|
1139
|
+
:param pulumi.Input[str] protocol: The communication [protocol](https://www.scaleway.com/en/developers/api/serverless-containers/#path-containers-update-an-existing-container) `http1` or `h2c`. Defaults to `http1`.
|
|
1152
1140
|
:param pulumi.Input[str] region: (Defaults to provider `region`) The region in which the container was created.
|
|
1153
|
-
:param pulumi.Input[str] registry_image: The registry image address
|
|
1141
|
+
:param pulumi.Input[str] registry_image: The registry image address (e.g., `rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE`)
|
|
1154
1142
|
:param pulumi.Input[str] registry_sha256: The sha256 of your source registry image, changing it will re-apply the deployment. Can be any string.
|
|
1155
1143
|
:param pulumi.Input[str] sandbox: Execution environment of the container.
|
|
1156
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] secret_environment_variables: The [secret environment](https://www.scaleway.com/en/docs/compute/containers/concepts/#secrets)
|
|
1144
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] secret_environment_variables: The [secret environment variables](https://www.scaleway.com/en/docs/compute/containers/concepts/#secrets) of the container.
|
|
1157
1145
|
:param pulumi.Input[str] status: The container status.
|
|
1158
|
-
:param pulumi.Input[int] timeout: The maximum amount of time
|
|
1146
|
+
:param pulumi.Input[int] timeout: The maximum amount of time your container can spend processing a request before being stopped.
|
|
1159
1147
|
"""
|
|
1160
1148
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
1161
1149
|
|
|
@@ -1191,7 +1179,7 @@ class Container(pulumi.CustomResource):
|
|
|
1191
1179
|
@pulumi.getter(name="cpuLimit")
|
|
1192
1180
|
def cpu_limit(self) -> pulumi.Output[int]:
|
|
1193
1181
|
"""
|
|
1194
|
-
The amount of vCPU computing resources to allocate to each container.
|
|
1182
|
+
The amount of vCPU computing resources to allocate to each container.
|
|
1195
1183
|
"""
|
|
1196
1184
|
return pulumi.get(self, "cpu_limit")
|
|
1197
1185
|
|
|
@@ -1207,7 +1195,7 @@ class Container(pulumi.CustomResource):
|
|
|
1207
1195
|
@pulumi.getter
|
|
1208
1196
|
def deploy(self) -> pulumi.Output[Optional[bool]]:
|
|
1209
1197
|
"""
|
|
1210
|
-
Boolean
|
|
1198
|
+
Boolean indicating whether the container is in a production environment.
|
|
1211
1199
|
|
|
1212
1200
|
Note that if you want to use your own configuration, you must consult our configuration [restrictions](https://www.scaleway.com/en/docs/compute/containers/reference-content/containers-limitations/#configuration-restrictions) section.
|
|
1213
1201
|
"""
|
|
@@ -1233,7 +1221,7 @@ class Container(pulumi.CustomResource):
|
|
|
1233
1221
|
@pulumi.getter(name="environmentVariables")
|
|
1234
1222
|
def environment_variables(self) -> pulumi.Output[Mapping[str, str]]:
|
|
1235
1223
|
"""
|
|
1236
|
-
The [environment](https://www.scaleway.com/en/docs/compute/containers/concepts/#environment-variables)
|
|
1224
|
+
The [environment variables](https://www.scaleway.com/en/docs/compute/containers/concepts/#environment-variables) of the container.
|
|
1237
1225
|
"""
|
|
1238
1226
|
return pulumi.get(self, "environment_variables")
|
|
1239
1227
|
|
|
@@ -1249,7 +1237,7 @@ class Container(pulumi.CustomResource):
|
|
|
1249
1237
|
@pulumi.getter(name="httpOption")
|
|
1250
1238
|
def http_option(self) -> pulumi.Output[Optional[str]]:
|
|
1251
1239
|
"""
|
|
1252
|
-
|
|
1240
|
+
Allows both HTTP and HTTPS (`enabled`) or redirect HTTP to HTTPS (`redirected`). Defaults to `enabled`.
|
|
1253
1241
|
"""
|
|
1254
1242
|
return pulumi.get(self, "http_option")
|
|
1255
1243
|
|
|
@@ -1257,7 +1245,7 @@ class Container(pulumi.CustomResource):
|
|
|
1257
1245
|
@pulumi.getter(name="maxConcurrency")
|
|
1258
1246
|
def max_concurrency(self) -> pulumi.Output[int]:
|
|
1259
1247
|
"""
|
|
1260
|
-
The maximum number of simultaneous requests your container can handle at the same time.
|
|
1248
|
+
The maximum number of simultaneous requests your container can handle at the same time.
|
|
1261
1249
|
"""
|
|
1262
1250
|
return pulumi.get(self, "max_concurrency")
|
|
1263
1251
|
|
|
@@ -1265,7 +1253,7 @@ class Container(pulumi.CustomResource):
|
|
|
1265
1253
|
@pulumi.getter(name="maxScale")
|
|
1266
1254
|
def max_scale(self) -> pulumi.Output[int]:
|
|
1267
1255
|
"""
|
|
1268
|
-
The maximum
|
|
1256
|
+
The maximum number of instances this container can scale to.
|
|
1269
1257
|
"""
|
|
1270
1258
|
return pulumi.get(self, "max_scale")
|
|
1271
1259
|
|
|
@@ -1273,7 +1261,7 @@ class Container(pulumi.CustomResource):
|
|
|
1273
1261
|
@pulumi.getter(name="memoryLimit")
|
|
1274
1262
|
def memory_limit(self) -> pulumi.Output[int]:
|
|
1275
1263
|
"""
|
|
1276
|
-
The memory
|
|
1264
|
+
The memory resources in MB to allocate to each container.
|
|
1277
1265
|
"""
|
|
1278
1266
|
return pulumi.get(self, "memory_limit")
|
|
1279
1267
|
|
|
@@ -1281,7 +1269,7 @@ class Container(pulumi.CustomResource):
|
|
|
1281
1269
|
@pulumi.getter(name="minScale")
|
|
1282
1270
|
def min_scale(self) -> pulumi.Output[int]:
|
|
1283
1271
|
"""
|
|
1284
|
-
The minimum of
|
|
1272
|
+
The minimum number of container instances running continuously.
|
|
1285
1273
|
"""
|
|
1286
1274
|
return pulumi.get(self, "min_scale")
|
|
1287
1275
|
|
|
@@ -1297,11 +1285,9 @@ class Container(pulumi.CustomResource):
|
|
|
1297
1285
|
@pulumi.getter(name="namespaceId")
|
|
1298
1286
|
def namespace_id(self) -> pulumi.Output[str]:
|
|
1299
1287
|
"""
|
|
1300
|
-
The
|
|
1301
|
-
|
|
1302
|
-
> **Important** Updates to `name` will recreate the container.
|
|
1288
|
+
The Containers namespace ID of the container.
|
|
1303
1289
|
|
|
1304
|
-
|
|
1290
|
+
> **Important** Updating the `name` argument will recreate the container.
|
|
1305
1291
|
"""
|
|
1306
1292
|
return pulumi.get(self, "namespace_id")
|
|
1307
1293
|
|
|
@@ -1309,7 +1295,7 @@ class Container(pulumi.CustomResource):
|
|
|
1309
1295
|
@pulumi.getter
|
|
1310
1296
|
def port(self) -> pulumi.Output[int]:
|
|
1311
1297
|
"""
|
|
1312
|
-
The port to expose the container.
|
|
1298
|
+
The port to expose the container.
|
|
1313
1299
|
"""
|
|
1314
1300
|
return pulumi.get(self, "port")
|
|
1315
1301
|
|
|
@@ -1317,7 +1303,7 @@ class Container(pulumi.CustomResource):
|
|
|
1317
1303
|
@pulumi.getter
|
|
1318
1304
|
def privacy(self) -> pulumi.Output[Optional[str]]:
|
|
1319
1305
|
"""
|
|
1320
|
-
The privacy type
|
|
1306
|
+
The privacy type defines the way to authenticate to your container. Please check our dedicated [section](https://www.scaleway.com/en/developers/api/serverless-containers/#protocol-9dd4c8).
|
|
1321
1307
|
"""
|
|
1322
1308
|
return pulumi.get(self, "privacy")
|
|
1323
1309
|
|
|
@@ -1325,7 +1311,7 @@ class Container(pulumi.CustomResource):
|
|
|
1325
1311
|
@pulumi.getter
|
|
1326
1312
|
def protocol(self) -> pulumi.Output[Optional[str]]:
|
|
1327
1313
|
"""
|
|
1328
|
-
The communication [protocol](https://www.scaleway.com/en/developers/api/serverless-containers/#
|
|
1314
|
+
The communication [protocol](https://www.scaleway.com/en/developers/api/serverless-containers/#path-containers-update-an-existing-container) `http1` or `h2c`. Defaults to `http1`.
|
|
1329
1315
|
"""
|
|
1330
1316
|
return pulumi.get(self, "protocol")
|
|
1331
1317
|
|
|
@@ -1341,7 +1327,7 @@ class Container(pulumi.CustomResource):
|
|
|
1341
1327
|
@pulumi.getter(name="registryImage")
|
|
1342
1328
|
def registry_image(self) -> pulumi.Output[str]:
|
|
1343
1329
|
"""
|
|
1344
|
-
The registry image address
|
|
1330
|
+
The registry image address (e.g., `rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE`)
|
|
1345
1331
|
"""
|
|
1346
1332
|
return pulumi.get(self, "registry_image")
|
|
1347
1333
|
|
|
@@ -1365,7 +1351,7 @@ class Container(pulumi.CustomResource):
|
|
|
1365
1351
|
@pulumi.getter(name="secretEnvironmentVariables")
|
|
1366
1352
|
def secret_environment_variables(self) -> pulumi.Output[Optional[Mapping[str, str]]]:
|
|
1367
1353
|
"""
|
|
1368
|
-
The [secret environment](https://www.scaleway.com/en/docs/compute/containers/concepts/#secrets)
|
|
1354
|
+
The [secret environment variables](https://www.scaleway.com/en/docs/compute/containers/concepts/#secrets) of the container.
|
|
1369
1355
|
"""
|
|
1370
1356
|
return pulumi.get(self, "secret_environment_variables")
|
|
1371
1357
|
|
|
@@ -1381,7 +1367,7 @@ class Container(pulumi.CustomResource):
|
|
|
1381
1367
|
@pulumi.getter
|
|
1382
1368
|
def timeout(self) -> pulumi.Output[int]:
|
|
1383
1369
|
"""
|
|
1384
|
-
The maximum amount of time
|
|
1370
|
+
The maximum amount of time your container can spend processing a request before being stopped.
|
|
1385
1371
|
"""
|
|
1386
1372
|
return pulumi.get(self, "timeout")
|
|
1387
1373
|
|