pulumiverse-scaleway 1.23.0a1739624899__py3-none-any.whl → 1.23.0a1739864644__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.
- pulumiverse_scaleway/__init__.py +9 -0
- pulumiverse_scaleway/_inputs.py +323 -9
- pulumiverse_scaleway/_utilities.py +8 -4
- pulumiverse_scaleway/account_ssh_key.py +2 -2
- pulumiverse_scaleway/apple_silicon_server.py +124 -0
- pulumiverse_scaleway/block_snapshot.py +2 -2
- pulumiverse_scaleway/block_volume.py +58 -11
- pulumiverse_scaleway/cockpit_source.py +7 -7
- pulumiverse_scaleway/container.py +236 -23
- pulumiverse_scaleway/container_domain.py +2 -2
- pulumiverse_scaleway/database_instance.py +74 -21
- pulumiverse_scaleway/get_account_project.py +2 -2
- pulumiverse_scaleway/get_account_ssh_key.py +2 -2
- pulumiverse_scaleway/get_block_snapshot.py +2 -2
- pulumiverse_scaleway/get_block_volume.py +14 -3
- pulumiverse_scaleway/get_container.py +30 -4
- pulumiverse_scaleway/get_database_instance.py +12 -1
- pulumiverse_scaleway/get_instance_server.py +1 -15
- pulumiverse_scaleway/get_instance_volume.py +12 -1
- pulumiverse_scaleway/get_ipam_ip.py +2 -2
- pulumiverse_scaleway/get_ipam_ips.py +2 -2
- pulumiverse_scaleway/get_lb_acls.py +2 -2
- pulumiverse_scaleway/get_lb_backend.py +2 -2
- pulumiverse_scaleway/get_lb_backends.py +2 -2
- pulumiverse_scaleway/get_lb_frontend.py +2 -2
- pulumiverse_scaleway/get_lb_frontends.py +2 -2
- pulumiverse_scaleway/get_lb_ips.py +2 -2
- pulumiverse_scaleway/get_lb_route.py +2 -2
- pulumiverse_scaleway/get_lb_routes.py +2 -2
- pulumiverse_scaleway/get_lbs.py +2 -2
- pulumiverse_scaleway/get_loadbalancer.py +2 -2
- pulumiverse_scaleway/get_loadbalancer_certificate.py +2 -2
- pulumiverse_scaleway/get_loadbalancer_ip.py +2 -2
- pulumiverse_scaleway/get_object_bucket.py +2 -2
- pulumiverse_scaleway/get_object_bucket_policy.py +2 -2
- pulumiverse_scaleway/iam_policy.py +2 -2
- pulumiverse_scaleway/instance_ip.py +7 -21
- pulumiverse_scaleway/instance_server.py +4 -74
- pulumiverse_scaleway/instance_volume.py +47 -0
- pulumiverse_scaleway/iot_route.py +21 -21
- pulumiverse_scaleway/ipam_ip.py +2 -2
- pulumiverse_scaleway/ipam_ip_reverse_dns.py +2 -2
- pulumiverse_scaleway/loadbalancer.py +2 -2
- pulumiverse_scaleway/loadbalancer_acl.py +2 -2
- pulumiverse_scaleway/loadbalancer_backend.py +2 -2
- pulumiverse_scaleway/loadbalancer_frontend.py +2 -2
- pulumiverse_scaleway/loadbalancer_ip.py +2 -2
- pulumiverse_scaleway/loadbalancer_route.py +2 -2
- pulumiverse_scaleway/mnq_nats_account.py +2 -2
- pulumiverse_scaleway/mnq_nats_credentials.py +2 -2
- pulumiverse_scaleway/mnq_sns.py +2 -2
- pulumiverse_scaleway/mnq_sns_credentials.py +2 -2
- pulumiverse_scaleway/mnq_sns_topic.py +2 -2
- pulumiverse_scaleway/mnq_sns_topic_subscription.py +2 -2
- pulumiverse_scaleway/mnq_sqs.py +2 -2
- pulumiverse_scaleway/mnq_sqs_credentials.py +2 -2
- pulumiverse_scaleway/mnq_sqs_queue.py +2 -2
- pulumiverse_scaleway/mongo_db_instance.py +2 -2
- pulumiverse_scaleway/mongo_db_snapshot.py +2 -2
- pulumiverse_scaleway/object_bucket.py +11 -11
- pulumiverse_scaleway/object_bucket_acl.py +2 -2
- pulumiverse_scaleway/object_bucket_lock_configuration.py +4 -4
- pulumiverse_scaleway/object_bucket_policy.py +6 -6
- pulumiverse_scaleway/object_bucket_website_configuration.py +4 -4
- pulumiverse_scaleway/object_item.py +11 -11
- pulumiverse_scaleway/outputs.py +351 -6
- pulumiverse_scaleway/pulumi-plugin.json +1 -1
- pulumiverse_scaleway/rdb_snapshot.py +608 -0
- pulumiverse_scaleway/sdb_database.py +2 -2
- pulumiverse_scaleway/secret_version.py +2 -2
- pulumiverse_scaleway/vpc.py +2 -2
- pulumiverse_scaleway/vpc_public_gateway_dhcp.py +14 -0
- pulumiverse_scaleway/vpc_public_gateway_dhcp_reservation.py +2 -2
- pulumiverse_scaleway/vpc_route.py +2 -2
- {pulumiverse_scaleway-1.23.0a1739624899.dist-info → pulumiverse_scaleway-1.23.0a1739864644.dist-info}/METADATA +1 -1
- {pulumiverse_scaleway-1.23.0a1739624899.dist-info → pulumiverse_scaleway-1.23.0a1739864644.dist-info}/RECORD +78 -77
- {pulumiverse_scaleway-1.23.0a1739624899.dist-info → pulumiverse_scaleway-1.23.0a1739864644.dist-info}/WHEEL +0 -0
- {pulumiverse_scaleway-1.23.0a1739624899.dist-info → pulumiverse_scaleway-1.23.0a1739864644.dist-info}/top_level.txt +0 -0
@@ -13,6 +13,8 @@ if sys.version_info >= (3, 11):
|
|
13
13
|
else:
|
14
14
|
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
15
15
|
from . import _utilities
|
16
|
+
from . import outputs
|
17
|
+
from ._inputs import *
|
16
18
|
|
17
19
|
__all__ = ['ContainerArgs', 'Container']
|
18
20
|
|
@@ -24,6 +26,7 @@ class ContainerArgs:
|
|
24
26
|
deploy: Optional[pulumi.Input[bool]] = None,
|
25
27
|
description: Optional[pulumi.Input[str]] = None,
|
26
28
|
environment_variables: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
29
|
+
health_checks: Optional[pulumi.Input[Sequence[pulumi.Input['ContainerHealthCheckArgs']]]] = None,
|
27
30
|
http_option: Optional[pulumi.Input[str]] = None,
|
28
31
|
max_concurrency: Optional[pulumi.Input[int]] = None,
|
29
32
|
max_scale: Optional[pulumi.Input[int]] = None,
|
@@ -37,6 +40,7 @@ class ContainerArgs:
|
|
37
40
|
registry_image: Optional[pulumi.Input[str]] = None,
|
38
41
|
registry_sha256: Optional[pulumi.Input[str]] = None,
|
39
42
|
sandbox: Optional[pulumi.Input[str]] = None,
|
43
|
+
scaling_options: Optional[pulumi.Input[Sequence[pulumi.Input['ContainerScalingOptionArgs']]]] = None,
|
40
44
|
secret_environment_variables: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
41
45
|
status: Optional[pulumi.Input[str]] = None,
|
42
46
|
timeout: Optional[pulumi.Input[int]] = None):
|
@@ -48,9 +52,10 @@ class ContainerArgs:
|
|
48
52
|
:param pulumi.Input[int] cpu_limit: The amount of vCPU computing resources to allocate to each container.
|
49
53
|
:param pulumi.Input[bool] deploy: Boolean indicating whether the container is in a production environment.
|
50
54
|
|
51
|
-
Note that if you want to use your own configuration, you must consult our configuration [restrictions](https://www.scaleway.com/en/docs/
|
55
|
+
Note that if you want to use your own configuration, you must consult our configuration [restrictions](https://www.scaleway.com/en/docs/serverless-containers/reference-content/containers-limitations/#configuration-restrictions) section.
|
52
56
|
:param pulumi.Input[str] description: The description of the container.
|
53
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] environment_variables: The [environment variables](https://www.scaleway.com/en/docs/
|
57
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] environment_variables: The [environment variables](https://www.scaleway.com/en/docs/serverless-containers/concepts/#environment-variables) of the container.
|
58
|
+
:param pulumi.Input[Sequence[pulumi.Input['ContainerHealthCheckArgs']]] health_checks: Health check configuration of the container.
|
54
59
|
:param pulumi.Input[str] http_option: Allows both HTTP and HTTPS (`enabled`) or redirect HTTP to HTTPS (`redirected`). Defaults to `enabled`.
|
55
60
|
:param pulumi.Input[int] max_concurrency: The maximum number of simultaneous requests your container can handle at the same time.
|
56
61
|
:param pulumi.Input[int] max_scale: The maximum number of instances this container can scale to.
|
@@ -64,7 +69,8 @@ class ContainerArgs:
|
|
64
69
|
:param pulumi.Input[str] registry_image: The registry image address (e.g., `rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE`)
|
65
70
|
:param pulumi.Input[str] registry_sha256: The sha256 of your source registry image, changing it will re-apply the deployment. Can be any string.
|
66
71
|
:param pulumi.Input[str] sandbox: Execution environment of the container.
|
67
|
-
:param pulumi.Input[
|
72
|
+
:param pulumi.Input[Sequence[pulumi.Input['ContainerScalingOptionArgs']]] scaling_options: Configuration block used to decide when to scale up or down. Possible values:
|
73
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] secret_environment_variables: The [secret environment variables](https://www.scaleway.com/en/docs/serverless-containers/concepts/#secrets) of the container.
|
68
74
|
:param pulumi.Input[str] status: The container status.
|
69
75
|
:param pulumi.Input[int] timeout: The maximum amount of time your container can spend processing a request before being stopped.
|
70
76
|
"""
|
@@ -77,8 +83,13 @@ class ContainerArgs:
|
|
77
83
|
pulumi.set(__self__, "description", description)
|
78
84
|
if environment_variables is not None:
|
79
85
|
pulumi.set(__self__, "environment_variables", environment_variables)
|
86
|
+
if health_checks is not None:
|
87
|
+
pulumi.set(__self__, "health_checks", health_checks)
|
80
88
|
if http_option is not None:
|
81
89
|
pulumi.set(__self__, "http_option", http_option)
|
90
|
+
if max_concurrency is not None:
|
91
|
+
warnings.warn("""Use scaling_option.concurrent_requests_threshold instead. This attribute will be removed.""", DeprecationWarning)
|
92
|
+
pulumi.log.warn("""max_concurrency is deprecated: Use scaling_option.concurrent_requests_threshold instead. This attribute will be removed.""")
|
82
93
|
if max_concurrency is not None:
|
83
94
|
pulumi.set(__self__, "max_concurrency", max_concurrency)
|
84
95
|
if max_scale is not None:
|
@@ -103,6 +114,8 @@ class ContainerArgs:
|
|
103
114
|
pulumi.set(__self__, "registry_sha256", registry_sha256)
|
104
115
|
if sandbox is not None:
|
105
116
|
pulumi.set(__self__, "sandbox", sandbox)
|
117
|
+
if scaling_options is not None:
|
118
|
+
pulumi.set(__self__, "scaling_options", scaling_options)
|
106
119
|
if secret_environment_variables is not None:
|
107
120
|
pulumi.set(__self__, "secret_environment_variables", secret_environment_variables)
|
108
121
|
if status is not None:
|
@@ -142,7 +155,7 @@ class ContainerArgs:
|
|
142
155
|
"""
|
143
156
|
Boolean indicating whether the container is in a production environment.
|
144
157
|
|
145
|
-
Note that if you want to use your own configuration, you must consult our configuration [restrictions](https://www.scaleway.com/en/docs/
|
158
|
+
Note that if you want to use your own configuration, you must consult our configuration [restrictions](https://www.scaleway.com/en/docs/serverless-containers/reference-content/containers-limitations/#configuration-restrictions) section.
|
146
159
|
"""
|
147
160
|
return pulumi.get(self, "deploy")
|
148
161
|
|
@@ -166,7 +179,7 @@ class ContainerArgs:
|
|
166
179
|
@pulumi.getter(name="environmentVariables")
|
167
180
|
def environment_variables(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
168
181
|
"""
|
169
|
-
The [environment variables](https://www.scaleway.com/en/docs/
|
182
|
+
The [environment variables](https://www.scaleway.com/en/docs/serverless-containers/concepts/#environment-variables) of the container.
|
170
183
|
"""
|
171
184
|
return pulumi.get(self, "environment_variables")
|
172
185
|
|
@@ -174,6 +187,18 @@ class ContainerArgs:
|
|
174
187
|
def environment_variables(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
|
175
188
|
pulumi.set(self, "environment_variables", value)
|
176
189
|
|
190
|
+
@property
|
191
|
+
@pulumi.getter(name="healthChecks")
|
192
|
+
def health_checks(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ContainerHealthCheckArgs']]]]:
|
193
|
+
"""
|
194
|
+
Health check configuration of the container.
|
195
|
+
"""
|
196
|
+
return pulumi.get(self, "health_checks")
|
197
|
+
|
198
|
+
@health_checks.setter
|
199
|
+
def health_checks(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ContainerHealthCheckArgs']]]]):
|
200
|
+
pulumi.set(self, "health_checks", value)
|
201
|
+
|
177
202
|
@property
|
178
203
|
@pulumi.getter(name="httpOption")
|
179
204
|
def http_option(self) -> Optional[pulumi.Input[str]]:
|
@@ -188,6 +213,7 @@ class ContainerArgs:
|
|
188
213
|
|
189
214
|
@property
|
190
215
|
@pulumi.getter(name="maxConcurrency")
|
216
|
+
@_utilities.deprecated("""Use scaling_option.concurrent_requests_threshold instead. This attribute will be removed.""")
|
191
217
|
def max_concurrency(self) -> Optional[pulumi.Input[int]]:
|
192
218
|
"""
|
193
219
|
The maximum number of simultaneous requests your container can handle at the same time.
|
@@ -330,11 +356,23 @@ class ContainerArgs:
|
|
330
356
|
def sandbox(self, value: Optional[pulumi.Input[str]]):
|
331
357
|
pulumi.set(self, "sandbox", value)
|
332
358
|
|
359
|
+
@property
|
360
|
+
@pulumi.getter(name="scalingOptions")
|
361
|
+
def scaling_options(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ContainerScalingOptionArgs']]]]:
|
362
|
+
"""
|
363
|
+
Configuration block used to decide when to scale up or down. Possible values:
|
364
|
+
"""
|
365
|
+
return pulumi.get(self, "scaling_options")
|
366
|
+
|
367
|
+
@scaling_options.setter
|
368
|
+
def scaling_options(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ContainerScalingOptionArgs']]]]):
|
369
|
+
pulumi.set(self, "scaling_options", value)
|
370
|
+
|
333
371
|
@property
|
334
372
|
@pulumi.getter(name="secretEnvironmentVariables")
|
335
373
|
def secret_environment_variables(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
336
374
|
"""
|
337
|
-
The [secret environment variables](https://www.scaleway.com/en/docs/
|
375
|
+
The [secret environment variables](https://www.scaleway.com/en/docs/serverless-containers/concepts/#secrets) of the container.
|
338
376
|
"""
|
339
377
|
return pulumi.get(self, "secret_environment_variables")
|
340
378
|
|
@@ -377,6 +415,7 @@ class _ContainerState:
|
|
377
415
|
domain_name: Optional[pulumi.Input[str]] = None,
|
378
416
|
environment_variables: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
379
417
|
error_message: Optional[pulumi.Input[str]] = None,
|
418
|
+
health_checks: Optional[pulumi.Input[Sequence[pulumi.Input['ContainerHealthCheckArgs']]]] = None,
|
380
419
|
http_option: Optional[pulumi.Input[str]] = None,
|
381
420
|
max_concurrency: Optional[pulumi.Input[int]] = None,
|
382
421
|
max_scale: Optional[pulumi.Input[int]] = None,
|
@@ -391,6 +430,7 @@ class _ContainerState:
|
|
391
430
|
registry_image: Optional[pulumi.Input[str]] = None,
|
392
431
|
registry_sha256: Optional[pulumi.Input[str]] = None,
|
393
432
|
sandbox: Optional[pulumi.Input[str]] = None,
|
433
|
+
scaling_options: Optional[pulumi.Input[Sequence[pulumi.Input['ContainerScalingOptionArgs']]]] = None,
|
394
434
|
secret_environment_variables: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
395
435
|
status: Optional[pulumi.Input[str]] = None,
|
396
436
|
timeout: Optional[pulumi.Input[int]] = None):
|
@@ -400,11 +440,12 @@ class _ContainerState:
|
|
400
440
|
:param pulumi.Input[str] cron_status: The cron status of the container.
|
401
441
|
:param pulumi.Input[bool] deploy: Boolean indicating whether the container is in a production environment.
|
402
442
|
|
403
|
-
Note that if you want to use your own configuration, you must consult our configuration [restrictions](https://www.scaleway.com/en/docs/
|
443
|
+
Note that if you want to use your own configuration, you must consult our configuration [restrictions](https://www.scaleway.com/en/docs/serverless-containers/reference-content/containers-limitations/#configuration-restrictions) section.
|
404
444
|
:param pulumi.Input[str] description: The description of the container.
|
405
445
|
:param pulumi.Input[str] domain_name: The native domain name of the container
|
406
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] environment_variables: The [environment variables](https://www.scaleway.com/en/docs/
|
446
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] environment_variables: The [environment variables](https://www.scaleway.com/en/docs/serverless-containers/concepts/#environment-variables) of the container.
|
407
447
|
:param pulumi.Input[str] error_message: The error message of the container.
|
448
|
+
:param pulumi.Input[Sequence[pulumi.Input['ContainerHealthCheckArgs']]] health_checks: Health check configuration of the container.
|
408
449
|
:param pulumi.Input[str] http_option: Allows both HTTP and HTTPS (`enabled`) or redirect HTTP to HTTPS (`redirected`). Defaults to `enabled`.
|
409
450
|
:param pulumi.Input[int] max_concurrency: The maximum number of simultaneous requests your container can handle at the same time.
|
410
451
|
:param pulumi.Input[int] max_scale: The maximum number of instances this container can scale to.
|
@@ -421,7 +462,8 @@ class _ContainerState:
|
|
421
462
|
:param pulumi.Input[str] registry_image: The registry image address (e.g., `rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE`)
|
422
463
|
:param pulumi.Input[str] registry_sha256: The sha256 of your source registry image, changing it will re-apply the deployment. Can be any string.
|
423
464
|
:param pulumi.Input[str] sandbox: Execution environment of the container.
|
424
|
-
:param pulumi.Input[
|
465
|
+
:param pulumi.Input[Sequence[pulumi.Input['ContainerScalingOptionArgs']]] scaling_options: Configuration block used to decide when to scale up or down. Possible values:
|
466
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] secret_environment_variables: The [secret environment variables](https://www.scaleway.com/en/docs/serverless-containers/concepts/#secrets) of the container.
|
425
467
|
:param pulumi.Input[str] status: The container status.
|
426
468
|
:param pulumi.Input[int] timeout: The maximum amount of time your container can spend processing a request before being stopped.
|
427
469
|
"""
|
@@ -439,8 +481,13 @@ class _ContainerState:
|
|
439
481
|
pulumi.set(__self__, "environment_variables", environment_variables)
|
440
482
|
if error_message is not None:
|
441
483
|
pulumi.set(__self__, "error_message", error_message)
|
484
|
+
if health_checks is not None:
|
485
|
+
pulumi.set(__self__, "health_checks", health_checks)
|
442
486
|
if http_option is not None:
|
443
487
|
pulumi.set(__self__, "http_option", http_option)
|
488
|
+
if max_concurrency is not None:
|
489
|
+
warnings.warn("""Use scaling_option.concurrent_requests_threshold instead. This attribute will be removed.""", DeprecationWarning)
|
490
|
+
pulumi.log.warn("""max_concurrency is deprecated: Use scaling_option.concurrent_requests_threshold instead. This attribute will be removed.""")
|
444
491
|
if max_concurrency is not None:
|
445
492
|
pulumi.set(__self__, "max_concurrency", max_concurrency)
|
446
493
|
if max_scale is not None:
|
@@ -467,6 +514,8 @@ class _ContainerState:
|
|
467
514
|
pulumi.set(__self__, "registry_sha256", registry_sha256)
|
468
515
|
if sandbox is not None:
|
469
516
|
pulumi.set(__self__, "sandbox", sandbox)
|
517
|
+
if scaling_options is not None:
|
518
|
+
pulumi.set(__self__, "scaling_options", scaling_options)
|
470
519
|
if secret_environment_variables is not None:
|
471
520
|
pulumi.set(__self__, "secret_environment_variables", secret_environment_variables)
|
472
521
|
if status is not None:
|
@@ -504,7 +553,7 @@ class _ContainerState:
|
|
504
553
|
"""
|
505
554
|
Boolean indicating whether the container is in a production environment.
|
506
555
|
|
507
|
-
Note that if you want to use your own configuration, you must consult our configuration [restrictions](https://www.scaleway.com/en/docs/
|
556
|
+
Note that if you want to use your own configuration, you must consult our configuration [restrictions](https://www.scaleway.com/en/docs/serverless-containers/reference-content/containers-limitations/#configuration-restrictions) section.
|
508
557
|
"""
|
509
558
|
return pulumi.get(self, "deploy")
|
510
559
|
|
@@ -540,7 +589,7 @@ class _ContainerState:
|
|
540
589
|
@pulumi.getter(name="environmentVariables")
|
541
590
|
def environment_variables(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
542
591
|
"""
|
543
|
-
The [environment variables](https://www.scaleway.com/en/docs/
|
592
|
+
The [environment variables](https://www.scaleway.com/en/docs/serverless-containers/concepts/#environment-variables) of the container.
|
544
593
|
"""
|
545
594
|
return pulumi.get(self, "environment_variables")
|
546
595
|
|
@@ -560,6 +609,18 @@ class _ContainerState:
|
|
560
609
|
def error_message(self, value: Optional[pulumi.Input[str]]):
|
561
610
|
pulumi.set(self, "error_message", value)
|
562
611
|
|
612
|
+
@property
|
613
|
+
@pulumi.getter(name="healthChecks")
|
614
|
+
def health_checks(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ContainerHealthCheckArgs']]]]:
|
615
|
+
"""
|
616
|
+
Health check configuration of the container.
|
617
|
+
"""
|
618
|
+
return pulumi.get(self, "health_checks")
|
619
|
+
|
620
|
+
@health_checks.setter
|
621
|
+
def health_checks(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ContainerHealthCheckArgs']]]]):
|
622
|
+
pulumi.set(self, "health_checks", value)
|
623
|
+
|
563
624
|
@property
|
564
625
|
@pulumi.getter(name="httpOption")
|
565
626
|
def http_option(self) -> Optional[pulumi.Input[str]]:
|
@@ -574,6 +635,7 @@ class _ContainerState:
|
|
574
635
|
|
575
636
|
@property
|
576
637
|
@pulumi.getter(name="maxConcurrency")
|
638
|
+
@_utilities.deprecated("""Use scaling_option.concurrent_requests_threshold instead. This attribute will be removed.""")
|
577
639
|
def max_concurrency(self) -> Optional[pulumi.Input[int]]:
|
578
640
|
"""
|
579
641
|
The maximum number of simultaneous requests your container can handle at the same time.
|
@@ -730,11 +792,23 @@ class _ContainerState:
|
|
730
792
|
def sandbox(self, value: Optional[pulumi.Input[str]]):
|
731
793
|
pulumi.set(self, "sandbox", value)
|
732
794
|
|
795
|
+
@property
|
796
|
+
@pulumi.getter(name="scalingOptions")
|
797
|
+
def scaling_options(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ContainerScalingOptionArgs']]]]:
|
798
|
+
"""
|
799
|
+
Configuration block used to decide when to scale up or down. Possible values:
|
800
|
+
"""
|
801
|
+
return pulumi.get(self, "scaling_options")
|
802
|
+
|
803
|
+
@scaling_options.setter
|
804
|
+
def scaling_options(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ContainerScalingOptionArgs']]]]):
|
805
|
+
pulumi.set(self, "scaling_options", value)
|
806
|
+
|
733
807
|
@property
|
734
808
|
@pulumi.getter(name="secretEnvironmentVariables")
|
735
809
|
def secret_environment_variables(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
736
810
|
"""
|
737
|
-
The [secret environment variables](https://www.scaleway.com/en/docs/
|
811
|
+
The [secret environment variables](https://www.scaleway.com/en/docs/serverless-containers/concepts/#secrets) of the container.
|
738
812
|
"""
|
739
813
|
return pulumi.get(self, "secret_environment_variables")
|
740
814
|
|
@@ -776,6 +850,7 @@ class Container(pulumi.CustomResource):
|
|
776
850
|
deploy: Optional[pulumi.Input[bool]] = None,
|
777
851
|
description: Optional[pulumi.Input[str]] = None,
|
778
852
|
environment_variables: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
853
|
+
health_checks: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ContainerHealthCheckArgs', 'ContainerHealthCheckArgsDict']]]]] = None,
|
779
854
|
http_option: Optional[pulumi.Input[str]] = None,
|
780
855
|
max_concurrency: Optional[pulumi.Input[int]] = None,
|
781
856
|
max_scale: Optional[pulumi.Input[int]] = None,
|
@@ -790,6 +865,7 @@ class Container(pulumi.CustomResource):
|
|
790
865
|
registry_image: Optional[pulumi.Input[str]] = None,
|
791
866
|
registry_sha256: Optional[pulumi.Input[str]] = None,
|
792
867
|
sandbox: Optional[pulumi.Input[str]] = None,
|
868
|
+
scaling_options: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ContainerScalingOptionArgs', 'ContainerScalingOptionArgsDict']]]]] = None,
|
793
869
|
secret_environment_variables: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
794
870
|
status: Optional[pulumi.Input[str]] = None,
|
795
871
|
timeout: Optional[pulumi.Input[int]] = None,
|
@@ -799,7 +875,7 @@ class Container(pulumi.CustomResource):
|
|
799
875
|
|
800
876
|
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.
|
801
877
|
|
802
|
-
For more information on the limitations of Serverless Containers, refer to the [dedicated documentation](https://www.scaleway.com/en/docs/
|
878
|
+
For more information on the limitations of Serverless Containers, refer to the [dedicated documentation](https://www.scaleway.com/en/docs/serverless-containers/reference-content/containers-limitations/).
|
803
879
|
|
804
880
|
## Example Usage
|
805
881
|
|
@@ -871,6 +947,60 @@ class Container(pulumi.CustomResource):
|
|
871
947
|
~>**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
948
|
Refer to the [Serverless Containers pricing](https://www.scaleway.com/en/docs/faq/serverless-containers/#prices) for more information.
|
873
949
|
|
950
|
+
## Health check configuration
|
951
|
+
|
952
|
+
Custom health checks can be configured on the container.
|
953
|
+
|
954
|
+
It's possible to specify the HTTP path that the probe will listen to and the number of failures before considering the container as unhealthy.
|
955
|
+
During a deployment, if a newly created container fails to pass the health check, the deployment is aborted.
|
956
|
+
As a result, lowering this value can help to reduce the time it takes to detect a failed deployment.
|
957
|
+
The period between health checks is also configurable.
|
958
|
+
|
959
|
+
Example:
|
960
|
+
|
961
|
+
```python
|
962
|
+
import pulumi
|
963
|
+
import pulumiverse_scaleway as scaleway
|
964
|
+
|
965
|
+
main = scaleway.Container("main",
|
966
|
+
name="my-container-02",
|
967
|
+
namespace_id=main_scaleway_container_namespace["id"],
|
968
|
+
health_checks=[{
|
969
|
+
"https": [{
|
970
|
+
"path": "/ping",
|
971
|
+
}],
|
972
|
+
"failure_threshold": 40,
|
973
|
+
"interval": "3s",
|
974
|
+
}])
|
975
|
+
```
|
976
|
+
|
977
|
+
~>**Important:** Another probe type can be set to TCP with the API, but currently the SDK has not been updated with this parameter.
|
978
|
+
This is why the only probe that can be used here is the HTTP probe.
|
979
|
+
Refer to the [Serverless Containers pricing](https://www.scaleway.com/en/docs/faq/serverless-containers/#prices) for more information.
|
980
|
+
|
981
|
+
## Scaling option configuration
|
982
|
+
|
983
|
+
Scaling option block configuration allows you to choose which parameter will scale up/down containers.
|
984
|
+
Options are number of concurrent requests, CPU or memory usage.
|
985
|
+
It replaces current `max_concurrency` that has been deprecated.
|
986
|
+
|
987
|
+
Example:
|
988
|
+
|
989
|
+
```python
|
990
|
+
import pulumi
|
991
|
+
import pulumiverse_scaleway as scaleway
|
992
|
+
|
993
|
+
main = scaleway.Container("main",
|
994
|
+
name="my-container-02",
|
995
|
+
namespace_id=main_scaleway_container_namespace["id"],
|
996
|
+
scaling_options=[{
|
997
|
+
"concurrent_requests_threshold": 15,
|
998
|
+
}])
|
999
|
+
```
|
1000
|
+
|
1001
|
+
~>**Important**: A maximum of one of these parameters may be set. Also, when `cpu_usage_threshold` or `memory_usage_threshold` are used, `min_scale` can't be set to 0.
|
1002
|
+
Refer to the [API Reference](https://www.scaleway.com/en/developers/api/serverless-containers/#path-containers-create-a-new-container) for more information.
|
1003
|
+
|
874
1004
|
## Import
|
875
1005
|
|
876
1006
|
Containers can be imported using, `{region}/{id}`, as shown below:
|
@@ -886,9 +1016,10 @@ class Container(pulumi.CustomResource):
|
|
886
1016
|
:param pulumi.Input[int] cpu_limit: The amount of vCPU computing resources to allocate to each container.
|
887
1017
|
:param pulumi.Input[bool] deploy: Boolean indicating whether the container is in a production environment.
|
888
1018
|
|
889
|
-
Note that if you want to use your own configuration, you must consult our configuration [restrictions](https://www.scaleway.com/en/docs/
|
1019
|
+
Note that if you want to use your own configuration, you must consult our configuration [restrictions](https://www.scaleway.com/en/docs/serverless-containers/reference-content/containers-limitations/#configuration-restrictions) section.
|
890
1020
|
:param pulumi.Input[str] description: The description of the container.
|
891
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] environment_variables: The [environment variables](https://www.scaleway.com/en/docs/
|
1021
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] environment_variables: The [environment variables](https://www.scaleway.com/en/docs/serverless-containers/concepts/#environment-variables) of the container.
|
1022
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['ContainerHealthCheckArgs', 'ContainerHealthCheckArgsDict']]]] health_checks: Health check configuration of the container.
|
892
1023
|
:param pulumi.Input[str] http_option: Allows both HTTP and HTTPS (`enabled`) or redirect HTTP to HTTPS (`redirected`). Defaults to `enabled`.
|
893
1024
|
:param pulumi.Input[int] max_concurrency: The maximum number of simultaneous requests your container can handle at the same time.
|
894
1025
|
:param pulumi.Input[int] max_scale: The maximum number of instances this container can scale to.
|
@@ -905,7 +1036,8 @@ class Container(pulumi.CustomResource):
|
|
905
1036
|
:param pulumi.Input[str] registry_image: The registry image address (e.g., `rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE`)
|
906
1037
|
:param pulumi.Input[str] registry_sha256: The sha256 of your source registry image, changing it will re-apply the deployment. Can be any string.
|
907
1038
|
:param pulumi.Input[str] sandbox: Execution environment of the container.
|
908
|
-
:param pulumi.Input[
|
1039
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['ContainerScalingOptionArgs', 'ContainerScalingOptionArgsDict']]]] scaling_options: Configuration block used to decide when to scale up or down. Possible values:
|
1040
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] secret_environment_variables: The [secret environment variables](https://www.scaleway.com/en/docs/serverless-containers/concepts/#secrets) of the container.
|
909
1041
|
:param pulumi.Input[str] status: The container status.
|
910
1042
|
:param pulumi.Input[int] timeout: The maximum amount of time your container can spend processing a request before being stopped.
|
911
1043
|
"""
|
@@ -920,7 +1052,7 @@ class Container(pulumi.CustomResource):
|
|
920
1052
|
|
921
1053
|
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.
|
922
1054
|
|
923
|
-
For more information on the limitations of Serverless Containers, refer to the [dedicated documentation](https://www.scaleway.com/en/docs/
|
1055
|
+
For more information on the limitations of Serverless Containers, refer to the [dedicated documentation](https://www.scaleway.com/en/docs/serverless-containers/reference-content/containers-limitations/).
|
924
1056
|
|
925
1057
|
## Example Usage
|
926
1058
|
|
@@ -992,6 +1124,60 @@ class Container(pulumi.CustomResource):
|
|
992
1124
|
~>**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
1125
|
Refer to the [Serverless Containers pricing](https://www.scaleway.com/en/docs/faq/serverless-containers/#prices) for more information.
|
994
1126
|
|
1127
|
+
## Health check configuration
|
1128
|
+
|
1129
|
+
Custom health checks can be configured on the container.
|
1130
|
+
|
1131
|
+
It's possible to specify the HTTP path that the probe will listen to and the number of failures before considering the container as unhealthy.
|
1132
|
+
During a deployment, if a newly created container fails to pass the health check, the deployment is aborted.
|
1133
|
+
As a result, lowering this value can help to reduce the time it takes to detect a failed deployment.
|
1134
|
+
The period between health checks is also configurable.
|
1135
|
+
|
1136
|
+
Example:
|
1137
|
+
|
1138
|
+
```python
|
1139
|
+
import pulumi
|
1140
|
+
import pulumiverse_scaleway as scaleway
|
1141
|
+
|
1142
|
+
main = scaleway.Container("main",
|
1143
|
+
name="my-container-02",
|
1144
|
+
namespace_id=main_scaleway_container_namespace["id"],
|
1145
|
+
health_checks=[{
|
1146
|
+
"https": [{
|
1147
|
+
"path": "/ping",
|
1148
|
+
}],
|
1149
|
+
"failure_threshold": 40,
|
1150
|
+
"interval": "3s",
|
1151
|
+
}])
|
1152
|
+
```
|
1153
|
+
|
1154
|
+
~>**Important:** Another probe type can be set to TCP with the API, but currently the SDK has not been updated with this parameter.
|
1155
|
+
This is why the only probe that can be used here is the HTTP probe.
|
1156
|
+
Refer to the [Serverless Containers pricing](https://www.scaleway.com/en/docs/faq/serverless-containers/#prices) for more information.
|
1157
|
+
|
1158
|
+
## Scaling option configuration
|
1159
|
+
|
1160
|
+
Scaling option block configuration allows you to choose which parameter will scale up/down containers.
|
1161
|
+
Options are number of concurrent requests, CPU or memory usage.
|
1162
|
+
It replaces current `max_concurrency` that has been deprecated.
|
1163
|
+
|
1164
|
+
Example:
|
1165
|
+
|
1166
|
+
```python
|
1167
|
+
import pulumi
|
1168
|
+
import pulumiverse_scaleway as scaleway
|
1169
|
+
|
1170
|
+
main = scaleway.Container("main",
|
1171
|
+
name="my-container-02",
|
1172
|
+
namespace_id=main_scaleway_container_namespace["id"],
|
1173
|
+
scaling_options=[{
|
1174
|
+
"concurrent_requests_threshold": 15,
|
1175
|
+
}])
|
1176
|
+
```
|
1177
|
+
|
1178
|
+
~>**Important**: A maximum of one of these parameters may be set. Also, when `cpu_usage_threshold` or `memory_usage_threshold` are used, `min_scale` can't be set to 0.
|
1179
|
+
Refer to the [API Reference](https://www.scaleway.com/en/developers/api/serverless-containers/#path-containers-create-a-new-container) for more information.
|
1180
|
+
|
995
1181
|
## Import
|
996
1182
|
|
997
1183
|
Containers can be imported using, `{region}/{id}`, as shown below:
|
@@ -1021,6 +1207,7 @@ class Container(pulumi.CustomResource):
|
|
1021
1207
|
deploy: Optional[pulumi.Input[bool]] = None,
|
1022
1208
|
description: Optional[pulumi.Input[str]] = None,
|
1023
1209
|
environment_variables: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
1210
|
+
health_checks: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ContainerHealthCheckArgs', 'ContainerHealthCheckArgsDict']]]]] = None,
|
1024
1211
|
http_option: Optional[pulumi.Input[str]] = None,
|
1025
1212
|
max_concurrency: Optional[pulumi.Input[int]] = None,
|
1026
1213
|
max_scale: Optional[pulumi.Input[int]] = None,
|
@@ -1035,6 +1222,7 @@ class Container(pulumi.CustomResource):
|
|
1035
1222
|
registry_image: Optional[pulumi.Input[str]] = None,
|
1036
1223
|
registry_sha256: Optional[pulumi.Input[str]] = None,
|
1037
1224
|
sandbox: Optional[pulumi.Input[str]] = None,
|
1225
|
+
scaling_options: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ContainerScalingOptionArgs', 'ContainerScalingOptionArgsDict']]]]] = None,
|
1038
1226
|
secret_environment_variables: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
1039
1227
|
status: Optional[pulumi.Input[str]] = None,
|
1040
1228
|
timeout: Optional[pulumi.Input[int]] = None,
|
@@ -1051,6 +1239,7 @@ class Container(pulumi.CustomResource):
|
|
1051
1239
|
__props__.__dict__["deploy"] = deploy
|
1052
1240
|
__props__.__dict__["description"] = description
|
1053
1241
|
__props__.__dict__["environment_variables"] = environment_variables
|
1242
|
+
__props__.__dict__["health_checks"] = health_checks
|
1054
1243
|
__props__.__dict__["http_option"] = http_option
|
1055
1244
|
__props__.__dict__["max_concurrency"] = max_concurrency
|
1056
1245
|
__props__.__dict__["max_scale"] = max_scale
|
@@ -1067,6 +1256,7 @@ class Container(pulumi.CustomResource):
|
|
1067
1256
|
__props__.__dict__["registry_image"] = registry_image
|
1068
1257
|
__props__.__dict__["registry_sha256"] = registry_sha256
|
1069
1258
|
__props__.__dict__["sandbox"] = sandbox
|
1259
|
+
__props__.__dict__["scaling_options"] = scaling_options
|
1070
1260
|
__props__.__dict__["secret_environment_variables"] = None if secret_environment_variables is None else pulumi.Output.secret(secret_environment_variables)
|
1071
1261
|
__props__.__dict__["status"] = status
|
1072
1262
|
__props__.__dict__["timeout"] = timeout
|
@@ -1092,6 +1282,7 @@ class Container(pulumi.CustomResource):
|
|
1092
1282
|
domain_name: Optional[pulumi.Input[str]] = None,
|
1093
1283
|
environment_variables: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
1094
1284
|
error_message: Optional[pulumi.Input[str]] = None,
|
1285
|
+
health_checks: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ContainerHealthCheckArgs', 'ContainerHealthCheckArgsDict']]]]] = None,
|
1095
1286
|
http_option: Optional[pulumi.Input[str]] = None,
|
1096
1287
|
max_concurrency: Optional[pulumi.Input[int]] = None,
|
1097
1288
|
max_scale: Optional[pulumi.Input[int]] = None,
|
@@ -1106,6 +1297,7 @@ class Container(pulumi.CustomResource):
|
|
1106
1297
|
registry_image: Optional[pulumi.Input[str]] = None,
|
1107
1298
|
registry_sha256: Optional[pulumi.Input[str]] = None,
|
1108
1299
|
sandbox: Optional[pulumi.Input[str]] = None,
|
1300
|
+
scaling_options: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ContainerScalingOptionArgs', 'ContainerScalingOptionArgsDict']]]]] = None,
|
1109
1301
|
secret_environment_variables: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
1110
1302
|
status: Optional[pulumi.Input[str]] = None,
|
1111
1303
|
timeout: Optional[pulumi.Input[int]] = None) -> 'Container':
|
@@ -1120,11 +1312,12 @@ class Container(pulumi.CustomResource):
|
|
1120
1312
|
:param pulumi.Input[str] cron_status: The cron status of the container.
|
1121
1313
|
:param pulumi.Input[bool] deploy: Boolean indicating whether the container is in a production environment.
|
1122
1314
|
|
1123
|
-
Note that if you want to use your own configuration, you must consult our configuration [restrictions](https://www.scaleway.com/en/docs/
|
1315
|
+
Note that if you want to use your own configuration, you must consult our configuration [restrictions](https://www.scaleway.com/en/docs/serverless-containers/reference-content/containers-limitations/#configuration-restrictions) section.
|
1124
1316
|
:param pulumi.Input[str] description: The description of the container.
|
1125
1317
|
:param pulumi.Input[str] domain_name: The native domain name of the container
|
1126
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] environment_variables: The [environment variables](https://www.scaleway.com/en/docs/
|
1318
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] environment_variables: The [environment variables](https://www.scaleway.com/en/docs/serverless-containers/concepts/#environment-variables) of the container.
|
1127
1319
|
:param pulumi.Input[str] error_message: The error message of the container.
|
1320
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['ContainerHealthCheckArgs', 'ContainerHealthCheckArgsDict']]]] health_checks: Health check configuration of the container.
|
1128
1321
|
:param pulumi.Input[str] http_option: Allows both HTTP and HTTPS (`enabled`) or redirect HTTP to HTTPS (`redirected`). Defaults to `enabled`.
|
1129
1322
|
:param pulumi.Input[int] max_concurrency: The maximum number of simultaneous requests your container can handle at the same time.
|
1130
1323
|
:param pulumi.Input[int] max_scale: The maximum number of instances this container can scale to.
|
@@ -1141,7 +1334,8 @@ class Container(pulumi.CustomResource):
|
|
1141
1334
|
:param pulumi.Input[str] registry_image: The registry image address (e.g., `rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE`)
|
1142
1335
|
:param pulumi.Input[str] registry_sha256: The sha256 of your source registry image, changing it will re-apply the deployment. Can be any string.
|
1143
1336
|
:param pulumi.Input[str] sandbox: Execution environment of the container.
|
1144
|
-
:param pulumi.Input[
|
1337
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['ContainerScalingOptionArgs', 'ContainerScalingOptionArgsDict']]]] scaling_options: Configuration block used to decide when to scale up or down. Possible values:
|
1338
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] secret_environment_variables: The [secret environment variables](https://www.scaleway.com/en/docs/serverless-containers/concepts/#secrets) of the container.
|
1145
1339
|
:param pulumi.Input[str] status: The container status.
|
1146
1340
|
:param pulumi.Input[int] timeout: The maximum amount of time your container can spend processing a request before being stopped.
|
1147
1341
|
"""
|
@@ -1156,6 +1350,7 @@ class Container(pulumi.CustomResource):
|
|
1156
1350
|
__props__.__dict__["domain_name"] = domain_name
|
1157
1351
|
__props__.__dict__["environment_variables"] = environment_variables
|
1158
1352
|
__props__.__dict__["error_message"] = error_message
|
1353
|
+
__props__.__dict__["health_checks"] = health_checks
|
1159
1354
|
__props__.__dict__["http_option"] = http_option
|
1160
1355
|
__props__.__dict__["max_concurrency"] = max_concurrency
|
1161
1356
|
__props__.__dict__["max_scale"] = max_scale
|
@@ -1170,6 +1365,7 @@ class Container(pulumi.CustomResource):
|
|
1170
1365
|
__props__.__dict__["registry_image"] = registry_image
|
1171
1366
|
__props__.__dict__["registry_sha256"] = registry_sha256
|
1172
1367
|
__props__.__dict__["sandbox"] = sandbox
|
1368
|
+
__props__.__dict__["scaling_options"] = scaling_options
|
1173
1369
|
__props__.__dict__["secret_environment_variables"] = secret_environment_variables
|
1174
1370
|
__props__.__dict__["status"] = status
|
1175
1371
|
__props__.__dict__["timeout"] = timeout
|
@@ -1197,7 +1393,7 @@ class Container(pulumi.CustomResource):
|
|
1197
1393
|
"""
|
1198
1394
|
Boolean indicating whether the container is in a production environment.
|
1199
1395
|
|
1200
|
-
Note that if you want to use your own configuration, you must consult our configuration [restrictions](https://www.scaleway.com/en/docs/
|
1396
|
+
Note that if you want to use your own configuration, you must consult our configuration [restrictions](https://www.scaleway.com/en/docs/serverless-containers/reference-content/containers-limitations/#configuration-restrictions) section.
|
1201
1397
|
"""
|
1202
1398
|
return pulumi.get(self, "deploy")
|
1203
1399
|
|
@@ -1221,7 +1417,7 @@ class Container(pulumi.CustomResource):
|
|
1221
1417
|
@pulumi.getter(name="environmentVariables")
|
1222
1418
|
def environment_variables(self) -> pulumi.Output[Mapping[str, str]]:
|
1223
1419
|
"""
|
1224
|
-
The [environment variables](https://www.scaleway.com/en/docs/
|
1420
|
+
The [environment variables](https://www.scaleway.com/en/docs/serverless-containers/concepts/#environment-variables) of the container.
|
1225
1421
|
"""
|
1226
1422
|
return pulumi.get(self, "environment_variables")
|
1227
1423
|
|
@@ -1233,6 +1429,14 @@ class Container(pulumi.CustomResource):
|
|
1233
1429
|
"""
|
1234
1430
|
return pulumi.get(self, "error_message")
|
1235
1431
|
|
1432
|
+
@property
|
1433
|
+
@pulumi.getter(name="healthChecks")
|
1434
|
+
def health_checks(self) -> pulumi.Output[Sequence['outputs.ContainerHealthCheck']]:
|
1435
|
+
"""
|
1436
|
+
Health check configuration of the container.
|
1437
|
+
"""
|
1438
|
+
return pulumi.get(self, "health_checks")
|
1439
|
+
|
1236
1440
|
@property
|
1237
1441
|
@pulumi.getter(name="httpOption")
|
1238
1442
|
def http_option(self) -> pulumi.Output[Optional[str]]:
|
@@ -1243,6 +1447,7 @@ class Container(pulumi.CustomResource):
|
|
1243
1447
|
|
1244
1448
|
@property
|
1245
1449
|
@pulumi.getter(name="maxConcurrency")
|
1450
|
+
@_utilities.deprecated("""Use scaling_option.concurrent_requests_threshold instead. This attribute will be removed.""")
|
1246
1451
|
def max_concurrency(self) -> pulumi.Output[int]:
|
1247
1452
|
"""
|
1248
1453
|
The maximum number of simultaneous requests your container can handle at the same time.
|
@@ -1347,11 +1552,19 @@ class Container(pulumi.CustomResource):
|
|
1347
1552
|
"""
|
1348
1553
|
return pulumi.get(self, "sandbox")
|
1349
1554
|
|
1555
|
+
@property
|
1556
|
+
@pulumi.getter(name="scalingOptions")
|
1557
|
+
def scaling_options(self) -> pulumi.Output[Sequence['outputs.ContainerScalingOption']]:
|
1558
|
+
"""
|
1559
|
+
Configuration block used to decide when to scale up or down. Possible values:
|
1560
|
+
"""
|
1561
|
+
return pulumi.get(self, "scaling_options")
|
1562
|
+
|
1350
1563
|
@property
|
1351
1564
|
@pulumi.getter(name="secretEnvironmentVariables")
|
1352
1565
|
def secret_environment_variables(self) -> pulumi.Output[Optional[Mapping[str, str]]]:
|
1353
1566
|
"""
|
1354
|
-
The [secret environment variables](https://www.scaleway.com/en/docs/
|
1567
|
+
The [secret environment variables](https://www.scaleway.com/en/docs/serverless-containers/concepts/#secrets) of the container.
|
1355
1568
|
"""
|
1356
1569
|
return pulumi.get(self, "secret_environment_variables")
|
1357
1570
|
|
@@ -154,7 +154,7 @@ class ContainerDomain(pulumi.CustomResource):
|
|
154
154
|
"""
|
155
155
|
The `ContainerDomain` resource allows you to create and manage domain name bindings for Scaleway [Serverless Containers](https://www.scaleway.com/en/docs/serverless/containers/).
|
156
156
|
|
157
|
-
Refer to the Containers domain [documentation](https://www.scaleway.com/en/docs/
|
157
|
+
Refer to the Containers domain [documentation](https://www.scaleway.com/en/docs/serverless-containers/how-to/add-a-custom-domain-to-a-container/) and the [API documentation](https://www.scaleway.com/en/developers/api/serverless-containers/#path-domains-list-all-domain-name-bindings) for more information.
|
158
158
|
|
159
159
|
## Example Usage
|
160
160
|
|
@@ -235,7 +235,7 @@ class ContainerDomain(pulumi.CustomResource):
|
|
235
235
|
"""
|
236
236
|
The `ContainerDomain` resource allows you to create and manage domain name bindings for Scaleway [Serverless Containers](https://www.scaleway.com/en/docs/serverless/containers/).
|
237
237
|
|
238
|
-
Refer to the Containers domain [documentation](https://www.scaleway.com/en/docs/
|
238
|
+
Refer to the Containers domain [documentation](https://www.scaleway.com/en/docs/serverless-containers/how-to/add-a-custom-domain-to-a-container/) and the [API documentation](https://www.scaleway.com/en/developers/api/serverless-containers/#path-domains-list-all-domain-name-bindings) for more information.
|
239
239
|
|
240
240
|
## Example Usage
|
241
241
|
|