pulumiverse-scaleway 1.16.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.

Files changed (205) hide show
  1. pulumiverse_scaleway/__init__.py +1073 -0
  2. pulumiverse_scaleway/_inputs.py +8665 -0
  3. pulumiverse_scaleway/_utilities.py +327 -0
  4. pulumiverse_scaleway/account_project.py +316 -0
  5. pulumiverse_scaleway/account_ssh_key.py +450 -0
  6. pulumiverse_scaleway/apple_silicon_server.py +564 -0
  7. pulumiverse_scaleway/baremetal_server.py +1390 -0
  8. pulumiverse_scaleway/block_snapshot.py +391 -0
  9. pulumiverse_scaleway/block_volume.py +521 -0
  10. pulumiverse_scaleway/cockpit.py +299 -0
  11. pulumiverse_scaleway/cockpit_alert_manager.py +345 -0
  12. pulumiverse_scaleway/cockpit_grafana_user.py +326 -0
  13. pulumiverse_scaleway/cockpit_source.py +481 -0
  14. pulumiverse_scaleway/cockpit_token.py +461 -0
  15. pulumiverse_scaleway/config/__init__.py +8 -0
  16. pulumiverse_scaleway/config/__init__.pyi +56 -0
  17. pulumiverse_scaleway/config/vars.py +78 -0
  18. pulumiverse_scaleway/container.py +1387 -0
  19. pulumiverse_scaleway/container_cron.py +493 -0
  20. pulumiverse_scaleway/container_domain.py +400 -0
  21. pulumiverse_scaleway/container_namespace.py +589 -0
  22. pulumiverse_scaleway/container_token.py +454 -0
  23. pulumiverse_scaleway/container_trigger.py +478 -0
  24. pulumiverse_scaleway/database.py +407 -0
  25. pulumiverse_scaleway/database_acl.py +332 -0
  26. pulumiverse_scaleway/database_backup.py +574 -0
  27. pulumiverse_scaleway/database_instance.py +1636 -0
  28. pulumiverse_scaleway/database_privilege.py +422 -0
  29. pulumiverse_scaleway/database_read_replica.py +528 -0
  30. pulumiverse_scaleway/database_user.py +446 -0
  31. pulumiverse_scaleway/documentdb_database.py +450 -0
  32. pulumiverse_scaleway/documentdb_instance.py +812 -0
  33. pulumiverse_scaleway/documentdb_private_network_endpoint.py +352 -0
  34. pulumiverse_scaleway/documentdb_privilege.py +402 -0
  35. pulumiverse_scaleway/documentdb_read_replica.py +405 -0
  36. pulumiverse_scaleway/documentdb_user.py +442 -0
  37. pulumiverse_scaleway/domain_record.py +1074 -0
  38. pulumiverse_scaleway/domain_zone.py +458 -0
  39. pulumiverse_scaleway/flexible_ip.py +702 -0
  40. pulumiverse_scaleway/flexible_ip_mac_address.py +510 -0
  41. pulumiverse_scaleway/function.py +1145 -0
  42. pulumiverse_scaleway/function_cron.py +480 -0
  43. pulumiverse_scaleway/function_domain.py +361 -0
  44. pulumiverse_scaleway/function_namespace.py +533 -0
  45. pulumiverse_scaleway/function_token.py +462 -0
  46. pulumiverse_scaleway/function_trigger.py +478 -0
  47. pulumiverse_scaleway/get_account_project.py +164 -0
  48. pulumiverse_scaleway/get_account_ssh_key.py +201 -0
  49. pulumiverse_scaleway/get_availability_zones.py +131 -0
  50. pulumiverse_scaleway/get_baremetal_offer.py +245 -0
  51. pulumiverse_scaleway/get_baremetal_option.py +168 -0
  52. pulumiverse_scaleway/get_baremetal_os.py +174 -0
  53. pulumiverse_scaleway/get_baremetal_server.py +411 -0
  54. pulumiverse_scaleway/get_billing_consumptions.py +134 -0
  55. pulumiverse_scaleway/get_billing_invoices.py +154 -0
  56. pulumiverse_scaleway/get_block_snapshot.py +170 -0
  57. pulumiverse_scaleway/get_block_volume.py +186 -0
  58. pulumiverse_scaleway/get_cockpit.py +179 -0
  59. pulumiverse_scaleway/get_cockpit_plan.py +113 -0
  60. pulumiverse_scaleway/get_config.py +180 -0
  61. pulumiverse_scaleway/get_container.py +502 -0
  62. pulumiverse_scaleway/get_container_namespace.py +262 -0
  63. pulumiverse_scaleway/get_database.py +187 -0
  64. pulumiverse_scaleway/get_database_acl.py +143 -0
  65. pulumiverse_scaleway/get_database_backup.py +253 -0
  66. pulumiverse_scaleway/get_database_instance.py +404 -0
  67. pulumiverse_scaleway/get_database_privilege.py +181 -0
  68. pulumiverse_scaleway/get_documentdb_database.py +198 -0
  69. pulumiverse_scaleway/get_documentdb_instance.py +245 -0
  70. pulumiverse_scaleway/get_documentdb_load_balancer_endpoint.py +198 -0
  71. pulumiverse_scaleway/get_domain_record.py +334 -0
  72. pulumiverse_scaleway/get_domain_zone.py +225 -0
  73. pulumiverse_scaleway/get_flexible_ip.py +247 -0
  74. pulumiverse_scaleway/get_flexible_ips.py +240 -0
  75. pulumiverse_scaleway/get_function.py +357 -0
  76. pulumiverse_scaleway/get_function_namespace.py +227 -0
  77. pulumiverse_scaleway/get_iam_api_key.py +210 -0
  78. pulumiverse_scaleway/get_iam_application.py +210 -0
  79. pulumiverse_scaleway/get_iam_group.py +236 -0
  80. pulumiverse_scaleway/get_iam_ssh_key.py +212 -0
  81. pulumiverse_scaleway/get_iam_user.py +157 -0
  82. pulumiverse_scaleway/get_instance_image.py +305 -0
  83. pulumiverse_scaleway/get_instance_ip.py +204 -0
  84. pulumiverse_scaleway/get_instance_placement_group.py +212 -0
  85. pulumiverse_scaleway/get_instance_private_nic.py +215 -0
  86. pulumiverse_scaleway/get_instance_security_group.py +268 -0
  87. pulumiverse_scaleway/get_instance_server.py +502 -0
  88. pulumiverse_scaleway/get_instance_servers.py +187 -0
  89. pulumiverse_scaleway/get_instance_snapshot.py +248 -0
  90. pulumiverse_scaleway/get_instance_volume.py +215 -0
  91. pulumiverse_scaleway/get_iot_device.py +257 -0
  92. pulumiverse_scaleway/get_iot_hub.py +322 -0
  93. pulumiverse_scaleway/get_ipam_ip.py +419 -0
  94. pulumiverse_scaleway/get_ipam_ips.py +358 -0
  95. pulumiverse_scaleway/get_k8s_version.py +196 -0
  96. pulumiverse_scaleway/get_kubernetes_cluster.py +417 -0
  97. pulumiverse_scaleway/get_kubernetes_node_pool.py +436 -0
  98. pulumiverse_scaleway/get_lb_acls.py +198 -0
  99. pulumiverse_scaleway/get_lb_backend.py +486 -0
  100. pulumiverse_scaleway/get_lb_backends.py +196 -0
  101. pulumiverse_scaleway/get_lb_frontend.py +274 -0
  102. pulumiverse_scaleway/get_lb_frontends.py +196 -0
  103. pulumiverse_scaleway/get_lb_ips.py +198 -0
  104. pulumiverse_scaleway/get_lb_route.py +217 -0
  105. pulumiverse_scaleway/get_lb_routes.py +179 -0
  106. pulumiverse_scaleway/get_lbs.py +187 -0
  107. pulumiverse_scaleway/get_loadbalancer.py +339 -0
  108. pulumiverse_scaleway/get_loadbalancer_certificate.py +230 -0
  109. pulumiverse_scaleway/get_loadbalancer_ip.py +222 -0
  110. pulumiverse_scaleway/get_marketplace_image.py +147 -0
  111. pulumiverse_scaleway/get_mnq_sqs.py +150 -0
  112. pulumiverse_scaleway/get_object_bucket.py +278 -0
  113. pulumiverse_scaleway/get_object_bucket_policy.py +157 -0
  114. pulumiverse_scaleway/get_redis_cluster.py +347 -0
  115. pulumiverse_scaleway/get_registry_image.py +239 -0
  116. pulumiverse_scaleway/get_registry_namespace.py +199 -0
  117. pulumiverse_scaleway/get_secret.py +290 -0
  118. pulumiverse_scaleway/get_secret_version.py +303 -0
  119. pulumiverse_scaleway/get_tem_domain.py +367 -0
  120. pulumiverse_scaleway/get_vpc.py +246 -0
  121. pulumiverse_scaleway/get_vpc_gateway_network.py +287 -0
  122. pulumiverse_scaleway/get_vpc_private_network.py +282 -0
  123. pulumiverse_scaleway/get_vpc_public_gateway.py +304 -0
  124. pulumiverse_scaleway/get_vpc_public_gateway_dhcp.py +305 -0
  125. pulumiverse_scaleway/get_vpc_public_gateway_dhcp_reservation.py +382 -0
  126. pulumiverse_scaleway/get_vpc_public_gateway_ip.py +199 -0
  127. pulumiverse_scaleway/get_vpc_public_pat_rule.py +313 -0
  128. pulumiverse_scaleway/get_vpc_routes.py +208 -0
  129. pulumiverse_scaleway/get_vpcs.py +174 -0
  130. pulumiverse_scaleway/get_web_host_offer.py +192 -0
  131. pulumiverse_scaleway/get_webhosting.py +332 -0
  132. pulumiverse_scaleway/iam_api_key.py +620 -0
  133. pulumiverse_scaleway/iam_application.py +417 -0
  134. pulumiverse_scaleway/iam_group.py +566 -0
  135. pulumiverse_scaleway/iam_group_membership.py +323 -0
  136. pulumiverse_scaleway/iam_policy.py +727 -0
  137. pulumiverse_scaleway/iam_ssh_key.py +455 -0
  138. pulumiverse_scaleway/iam_user.py +466 -0
  139. pulumiverse_scaleway/instance_image.py +750 -0
  140. pulumiverse_scaleway/instance_ip.py +483 -0
  141. pulumiverse_scaleway/instance_ip_reverse_dns.py +308 -0
  142. pulumiverse_scaleway/instance_placement_group.py +479 -0
  143. pulumiverse_scaleway/instance_private_nic.py +454 -0
  144. pulumiverse_scaleway/instance_security_group.py +720 -0
  145. pulumiverse_scaleway/instance_security_group_rules.py +439 -0
  146. pulumiverse_scaleway/instance_server.py +1907 -0
  147. pulumiverse_scaleway/instance_snapshot.py +669 -0
  148. pulumiverse_scaleway/instance_user_data.py +435 -0
  149. pulumiverse_scaleway/instance_volume.py +535 -0
  150. pulumiverse_scaleway/iot_device.py +750 -0
  151. pulumiverse_scaleway/iot_hub.py +896 -0
  152. pulumiverse_scaleway/iot_network.py +425 -0
  153. pulumiverse_scaleway/iot_route.py +660 -0
  154. pulumiverse_scaleway/ipam_ip.py +666 -0
  155. pulumiverse_scaleway/ipam_ip_reverse_dns.py +318 -0
  156. pulumiverse_scaleway/job_definition.py +692 -0
  157. pulumiverse_scaleway/kubernetes_cluster.py +1538 -0
  158. pulumiverse_scaleway/kubernetes_node_pool.py +1255 -0
  159. pulumiverse_scaleway/loadbalancer.py +1095 -0
  160. pulumiverse_scaleway/loadbalancer_acl.py +520 -0
  161. pulumiverse_scaleway/loadbalancer_backend.py +1588 -0
  162. pulumiverse_scaleway/loadbalancer_certificate.py +460 -0
  163. pulumiverse_scaleway/loadbalancer_frontend.py +829 -0
  164. pulumiverse_scaleway/loadbalancer_ip.py +514 -0
  165. pulumiverse_scaleway/loadbalancer_route.py +523 -0
  166. pulumiverse_scaleway/mnq_nats_account.py +334 -0
  167. pulumiverse_scaleway/mnq_nats_credentials.py +328 -0
  168. pulumiverse_scaleway/mnq_sns.py +306 -0
  169. pulumiverse_scaleway/mnq_sns_credentials.py +413 -0
  170. pulumiverse_scaleway/mnq_sns_topic.py +659 -0
  171. pulumiverse_scaleway/mnq_sns_topic_subscription.py +699 -0
  172. pulumiverse_scaleway/mnq_sqs.py +304 -0
  173. pulumiverse_scaleway/mnq_sqs_credentials.py +413 -0
  174. pulumiverse_scaleway/mnq_sqs_queue.py +800 -0
  175. pulumiverse_scaleway/object_bucket.py +888 -0
  176. pulumiverse_scaleway/object_bucket_acl.py +592 -0
  177. pulumiverse_scaleway/object_bucket_lock_configuration.py +393 -0
  178. pulumiverse_scaleway/object_bucket_policy.py +671 -0
  179. pulumiverse_scaleway/object_bucket_website_configuration.py +532 -0
  180. pulumiverse_scaleway/object_item.py +711 -0
  181. pulumiverse_scaleway/outputs.py +11663 -0
  182. pulumiverse_scaleway/provider.py +327 -0
  183. pulumiverse_scaleway/pulumi-plugin.json +6 -0
  184. pulumiverse_scaleway/py.typed +0 -0
  185. pulumiverse_scaleway/redis_cluster.py +1166 -0
  186. pulumiverse_scaleway/registry_namespace.py +458 -0
  187. pulumiverse_scaleway/sdb_database.py +428 -0
  188. pulumiverse_scaleway/secret.py +560 -0
  189. pulumiverse_scaleway/secret_version.py +482 -0
  190. pulumiverse_scaleway/tem_domain.py +950 -0
  191. pulumiverse_scaleway/tem_domain_validation.py +303 -0
  192. pulumiverse_scaleway/vpc.py +536 -0
  193. pulumiverse_scaleway/vpc_gateway_network.py +866 -0
  194. pulumiverse_scaleway/vpc_private_network.py +734 -0
  195. pulumiverse_scaleway/vpc_public_gateway.py +789 -0
  196. pulumiverse_scaleway/vpc_public_gateway_dhcp.py +933 -0
  197. pulumiverse_scaleway/vpc_public_gateway_dhcp_reservation.py +514 -0
  198. pulumiverse_scaleway/vpc_public_gateway_ip.py +457 -0
  199. pulumiverse_scaleway/vpc_public_gateway_ip_reverse_dns.py +306 -0
  200. pulumiverse_scaleway/vpc_public_gateway_pat_rule.py +591 -0
  201. pulumiverse_scaleway/webhosting.py +805 -0
  202. pulumiverse_scaleway-1.16.0.dist-info/METADATA +69 -0
  203. pulumiverse_scaleway-1.16.0.dist-info/RECORD +205 -0
  204. pulumiverse_scaleway-1.16.0.dist-info/WHEEL +5 -0
  205. pulumiverse_scaleway-1.16.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,1387 @@
1
+ # coding=utf-8
2
+ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+
5
+ import copy
6
+ import warnings
7
+ import sys
8
+ import pulumi
9
+ import pulumi.runtime
10
+ from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
15
+ from . import _utilities
16
+
17
+ __all__ = ['ContainerArgs', 'Container']
18
+
19
+ @pulumi.input_type
20
+ class ContainerArgs:
21
+ def __init__(__self__, *,
22
+ namespace_id: pulumi.Input[str],
23
+ cpu_limit: Optional[pulumi.Input[int]] = None,
24
+ deploy: Optional[pulumi.Input[bool]] = None,
25
+ description: Optional[pulumi.Input[str]] = None,
26
+ environment_variables: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
27
+ http_option: Optional[pulumi.Input[str]] = None,
28
+ max_concurrency: Optional[pulumi.Input[int]] = None,
29
+ max_scale: Optional[pulumi.Input[int]] = None,
30
+ memory_limit: Optional[pulumi.Input[int]] = None,
31
+ min_scale: Optional[pulumi.Input[int]] = None,
32
+ name: Optional[pulumi.Input[str]] = None,
33
+ port: Optional[pulumi.Input[int]] = None,
34
+ privacy: Optional[pulumi.Input[str]] = None,
35
+ protocol: Optional[pulumi.Input[str]] = None,
36
+ region: Optional[pulumi.Input[str]] = None,
37
+ registry_image: Optional[pulumi.Input[str]] = None,
38
+ registry_sha256: Optional[pulumi.Input[str]] = None,
39
+ sandbox: Optional[pulumi.Input[str]] = None,
40
+ secret_environment_variables: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
41
+ status: Optional[pulumi.Input[str]] = None,
42
+ timeout: Optional[pulumi.Input[int]] = None):
43
+ """
44
+ The set of arguments for constructing a Container resource.
45
+ :param pulumi.Input[str] namespace_id: The container namespace ID of the container.
46
+
47
+ > **Important** Updates to `name` will recreate the container.
48
+
49
+ The following arguments are optional:
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.
52
+
53
+ 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
+ :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) variables of the container.
56
+ :param pulumi.Input[str] http_option: Allow both HTTP and HTTPS (enabled) or redirect HTTP to HTTPS (redirected). Defaults to enabled.
57
+ :param pulumi.Input[int] max_concurrency: The maximum number of simultaneous requests your container can handle at the same time. Defaults to 50.
58
+ :param pulumi.Input[int] max_scale: The maximum of number of instances this container can scale to. Default to 20.
59
+ :param pulumi.Input[int] memory_limit: The memory computing resources in MB to allocate to each container. Defaults to 256.
60
+ :param pulumi.Input[int] min_scale: The minimum of running container instances continuously. Defaults to 0.
61
+ :param pulumi.Input[str] name: The unique name of the container name.
62
+ :param pulumi.Input[int] port: The port to expose the container. Defaults to 8080.
63
+ :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).
64
+ :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.
65
+ :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. e.g: **"rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE"**.
67
+ :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
+ :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) variables of the container.
70
+ :param pulumi.Input[str] status: The container status.
71
+ :param pulumi.Input[int] timeout: The maximum amount of time in seconds during which your container can process a request before we stop it. Defaults to 300s.
72
+ """
73
+ pulumi.set(__self__, "namespace_id", namespace_id)
74
+ if cpu_limit is not None:
75
+ pulumi.set(__self__, "cpu_limit", cpu_limit)
76
+ if deploy is not None:
77
+ pulumi.set(__self__, "deploy", deploy)
78
+ if description is not None:
79
+ pulumi.set(__self__, "description", description)
80
+ if environment_variables is not None:
81
+ pulumi.set(__self__, "environment_variables", environment_variables)
82
+ if http_option is not None:
83
+ pulumi.set(__self__, "http_option", http_option)
84
+ if max_concurrency is not None:
85
+ pulumi.set(__self__, "max_concurrency", max_concurrency)
86
+ if max_scale is not None:
87
+ pulumi.set(__self__, "max_scale", max_scale)
88
+ if memory_limit is not None:
89
+ pulumi.set(__self__, "memory_limit", memory_limit)
90
+ if min_scale is not None:
91
+ pulumi.set(__self__, "min_scale", min_scale)
92
+ if name is not None:
93
+ pulumi.set(__self__, "name", name)
94
+ if port is not None:
95
+ pulumi.set(__self__, "port", port)
96
+ if privacy is not None:
97
+ pulumi.set(__self__, "privacy", privacy)
98
+ if protocol is not None:
99
+ pulumi.set(__self__, "protocol", protocol)
100
+ if region is not None:
101
+ pulumi.set(__self__, "region", region)
102
+ if registry_image is not None:
103
+ pulumi.set(__self__, "registry_image", registry_image)
104
+ if registry_sha256 is not None:
105
+ pulumi.set(__self__, "registry_sha256", registry_sha256)
106
+ if sandbox is not None:
107
+ pulumi.set(__self__, "sandbox", sandbox)
108
+ if secret_environment_variables is not None:
109
+ pulumi.set(__self__, "secret_environment_variables", secret_environment_variables)
110
+ if status is not None:
111
+ pulumi.set(__self__, "status", status)
112
+ if timeout is not None:
113
+ pulumi.set(__self__, "timeout", timeout)
114
+
115
+ @property
116
+ @pulumi.getter(name="namespaceId")
117
+ def namespace_id(self) -> pulumi.Input[str]:
118
+ """
119
+ The container namespace ID of the container.
120
+
121
+ > **Important** Updates to `name` will recreate the container.
122
+
123
+ The following arguments are optional:
124
+ """
125
+ return pulumi.get(self, "namespace_id")
126
+
127
+ @namespace_id.setter
128
+ def namespace_id(self, value: pulumi.Input[str]):
129
+ pulumi.set(self, "namespace_id", value)
130
+
131
+ @property
132
+ @pulumi.getter(name="cpuLimit")
133
+ def cpu_limit(self) -> Optional[pulumi.Input[int]]:
134
+ """
135
+ The amount of vCPU computing resources to allocate to each container. Defaults to 140.
136
+ """
137
+ return pulumi.get(self, "cpu_limit")
138
+
139
+ @cpu_limit.setter
140
+ def cpu_limit(self, value: Optional[pulumi.Input[int]]):
141
+ pulumi.set(self, "cpu_limit", value)
142
+
143
+ @property
144
+ @pulumi.getter
145
+ def deploy(self) -> Optional[pulumi.Input[bool]]:
146
+ """
147
+ Boolean controlling whether the container is on a production environment.
148
+
149
+ 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
+ """
151
+ return pulumi.get(self, "deploy")
152
+
153
+ @deploy.setter
154
+ def deploy(self, value: Optional[pulumi.Input[bool]]):
155
+ pulumi.set(self, "deploy", value)
156
+
157
+ @property
158
+ @pulumi.getter
159
+ def description(self) -> Optional[pulumi.Input[str]]:
160
+ """
161
+ The description of the container.
162
+ """
163
+ return pulumi.get(self, "description")
164
+
165
+ @description.setter
166
+ def description(self, value: Optional[pulumi.Input[str]]):
167
+ pulumi.set(self, "description", value)
168
+
169
+ @property
170
+ @pulumi.getter(name="environmentVariables")
171
+ def environment_variables(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
172
+ """
173
+ The [environment](https://www.scaleway.com/en/docs/compute/containers/concepts/#environment-variables) variables of the container.
174
+ """
175
+ return pulumi.get(self, "environment_variables")
176
+
177
+ @environment_variables.setter
178
+ def environment_variables(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
179
+ pulumi.set(self, "environment_variables", value)
180
+
181
+ @property
182
+ @pulumi.getter(name="httpOption")
183
+ def http_option(self) -> Optional[pulumi.Input[str]]:
184
+ """
185
+ Allow both HTTP and HTTPS (enabled) or redirect HTTP to HTTPS (redirected). Defaults to enabled.
186
+ """
187
+ return pulumi.get(self, "http_option")
188
+
189
+ @http_option.setter
190
+ def http_option(self, value: Optional[pulumi.Input[str]]):
191
+ pulumi.set(self, "http_option", value)
192
+
193
+ @property
194
+ @pulumi.getter(name="maxConcurrency")
195
+ def max_concurrency(self) -> Optional[pulumi.Input[int]]:
196
+ """
197
+ The maximum number of simultaneous requests your container can handle at the same time. Defaults to 50.
198
+ """
199
+ return pulumi.get(self, "max_concurrency")
200
+
201
+ @max_concurrency.setter
202
+ def max_concurrency(self, value: Optional[pulumi.Input[int]]):
203
+ pulumi.set(self, "max_concurrency", value)
204
+
205
+ @property
206
+ @pulumi.getter(name="maxScale")
207
+ def max_scale(self) -> Optional[pulumi.Input[int]]:
208
+ """
209
+ The maximum of number of instances this container can scale to. Default to 20.
210
+ """
211
+ return pulumi.get(self, "max_scale")
212
+
213
+ @max_scale.setter
214
+ def max_scale(self, value: Optional[pulumi.Input[int]]):
215
+ pulumi.set(self, "max_scale", value)
216
+
217
+ @property
218
+ @pulumi.getter(name="memoryLimit")
219
+ def memory_limit(self) -> Optional[pulumi.Input[int]]:
220
+ """
221
+ The memory computing resources in MB to allocate to each container. Defaults to 256.
222
+ """
223
+ return pulumi.get(self, "memory_limit")
224
+
225
+ @memory_limit.setter
226
+ def memory_limit(self, value: Optional[pulumi.Input[int]]):
227
+ pulumi.set(self, "memory_limit", value)
228
+
229
+ @property
230
+ @pulumi.getter(name="minScale")
231
+ def min_scale(self) -> Optional[pulumi.Input[int]]:
232
+ """
233
+ The minimum of running container instances continuously. Defaults to 0.
234
+ """
235
+ return pulumi.get(self, "min_scale")
236
+
237
+ @min_scale.setter
238
+ def min_scale(self, value: Optional[pulumi.Input[int]]):
239
+ pulumi.set(self, "min_scale", value)
240
+
241
+ @property
242
+ @pulumi.getter
243
+ def name(self) -> Optional[pulumi.Input[str]]:
244
+ """
245
+ The unique name of the container name.
246
+ """
247
+ return pulumi.get(self, "name")
248
+
249
+ @name.setter
250
+ def name(self, value: Optional[pulumi.Input[str]]):
251
+ pulumi.set(self, "name", value)
252
+
253
+ @property
254
+ @pulumi.getter
255
+ def port(self) -> Optional[pulumi.Input[int]]:
256
+ """
257
+ The port to expose the container. Defaults to 8080.
258
+ """
259
+ return pulumi.get(self, "port")
260
+
261
+ @port.setter
262
+ def port(self, value: Optional[pulumi.Input[int]]):
263
+ pulumi.set(self, "port", value)
264
+
265
+ @property
266
+ @pulumi.getter
267
+ def privacy(self) -> Optional[pulumi.Input[str]]:
268
+ """
269
+ 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).
270
+ """
271
+ return pulumi.get(self, "privacy")
272
+
273
+ @privacy.setter
274
+ def privacy(self, value: Optional[pulumi.Input[str]]):
275
+ pulumi.set(self, "privacy", value)
276
+
277
+ @property
278
+ @pulumi.getter
279
+ def protocol(self) -> Optional[pulumi.Input[str]]:
280
+ """
281
+ The communication [protocol](https://www.scaleway.com/en/developers/api/serverless-containers/#protocol-9dd4c8) http1 or h2c. Defaults to http1.
282
+ """
283
+ return pulumi.get(self, "protocol")
284
+
285
+ @protocol.setter
286
+ def protocol(self, value: Optional[pulumi.Input[str]]):
287
+ pulumi.set(self, "protocol", value)
288
+
289
+ @property
290
+ @pulumi.getter
291
+ def region(self) -> Optional[pulumi.Input[str]]:
292
+ """
293
+ (Defaults to provider `region`) The region in which the container was created.
294
+ """
295
+ return pulumi.get(self, "region")
296
+
297
+ @region.setter
298
+ def region(self, value: Optional[pulumi.Input[str]]):
299
+ pulumi.set(self, "region", value)
300
+
301
+ @property
302
+ @pulumi.getter(name="registryImage")
303
+ def registry_image(self) -> Optional[pulumi.Input[str]]:
304
+ """
305
+ The registry image address. e.g: **"rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE"**.
306
+ """
307
+ return pulumi.get(self, "registry_image")
308
+
309
+ @registry_image.setter
310
+ def registry_image(self, value: Optional[pulumi.Input[str]]):
311
+ pulumi.set(self, "registry_image", value)
312
+
313
+ @property
314
+ @pulumi.getter(name="registrySha256")
315
+ def registry_sha256(self) -> Optional[pulumi.Input[str]]:
316
+ """
317
+ The sha256 of your source registry image, changing it will re-apply the deployment. Can be any string.
318
+ """
319
+ return pulumi.get(self, "registry_sha256")
320
+
321
+ @registry_sha256.setter
322
+ def registry_sha256(self, value: Optional[pulumi.Input[str]]):
323
+ pulumi.set(self, "registry_sha256", value)
324
+
325
+ @property
326
+ @pulumi.getter
327
+ def sandbox(self) -> Optional[pulumi.Input[str]]:
328
+ """
329
+ Execution environment of the container.
330
+ """
331
+ return pulumi.get(self, "sandbox")
332
+
333
+ @sandbox.setter
334
+ def sandbox(self, value: Optional[pulumi.Input[str]]):
335
+ pulumi.set(self, "sandbox", value)
336
+
337
+ @property
338
+ @pulumi.getter(name="secretEnvironmentVariables")
339
+ def secret_environment_variables(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
340
+ """
341
+ The [secret environment](https://www.scaleway.com/en/docs/compute/containers/concepts/#secrets) variables of the container.
342
+ """
343
+ return pulumi.get(self, "secret_environment_variables")
344
+
345
+ @secret_environment_variables.setter
346
+ def secret_environment_variables(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
347
+ pulumi.set(self, "secret_environment_variables", value)
348
+
349
+ @property
350
+ @pulumi.getter
351
+ def status(self) -> Optional[pulumi.Input[str]]:
352
+ """
353
+ The container status.
354
+ """
355
+ return pulumi.get(self, "status")
356
+
357
+ @status.setter
358
+ def status(self, value: Optional[pulumi.Input[str]]):
359
+ pulumi.set(self, "status", value)
360
+
361
+ @property
362
+ @pulumi.getter
363
+ def timeout(self) -> Optional[pulumi.Input[int]]:
364
+ """
365
+ The maximum amount of time in seconds during which your container can process a request before we stop it. Defaults to 300s.
366
+ """
367
+ return pulumi.get(self, "timeout")
368
+
369
+ @timeout.setter
370
+ def timeout(self, value: Optional[pulumi.Input[int]]):
371
+ pulumi.set(self, "timeout", value)
372
+
373
+
374
+ @pulumi.input_type
375
+ class _ContainerState:
376
+ def __init__(__self__, *,
377
+ cpu_limit: Optional[pulumi.Input[int]] = None,
378
+ cron_status: Optional[pulumi.Input[str]] = None,
379
+ deploy: Optional[pulumi.Input[bool]] = None,
380
+ description: Optional[pulumi.Input[str]] = None,
381
+ domain_name: Optional[pulumi.Input[str]] = None,
382
+ environment_variables: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
383
+ error_message: Optional[pulumi.Input[str]] = None,
384
+ http_option: Optional[pulumi.Input[str]] = None,
385
+ max_concurrency: Optional[pulumi.Input[int]] = None,
386
+ max_scale: Optional[pulumi.Input[int]] = None,
387
+ memory_limit: Optional[pulumi.Input[int]] = None,
388
+ min_scale: Optional[pulumi.Input[int]] = None,
389
+ name: Optional[pulumi.Input[str]] = None,
390
+ namespace_id: Optional[pulumi.Input[str]] = None,
391
+ port: Optional[pulumi.Input[int]] = None,
392
+ privacy: Optional[pulumi.Input[str]] = None,
393
+ protocol: Optional[pulumi.Input[str]] = None,
394
+ region: Optional[pulumi.Input[str]] = None,
395
+ registry_image: Optional[pulumi.Input[str]] = None,
396
+ registry_sha256: Optional[pulumi.Input[str]] = None,
397
+ sandbox: Optional[pulumi.Input[str]] = None,
398
+ secret_environment_variables: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
399
+ status: Optional[pulumi.Input[str]] = None,
400
+ timeout: Optional[pulumi.Input[int]] = None):
401
+ """
402
+ 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. Defaults to 140.
404
+ :param pulumi.Input[str] cron_status: The cron status of the container.
405
+ :param pulumi.Input[bool] deploy: Boolean controlling whether the container is on a production environment.
406
+
407
+ 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
+ :param pulumi.Input[str] description: The description of the container.
409
+ :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) variables of the container.
411
+ :param pulumi.Input[str] error_message: The error message of the container.
412
+ :param pulumi.Input[str] http_option: Allow both HTTP and HTTPS (enabled) or redirect HTTP to HTTPS (redirected). Defaults to enabled.
413
+ :param pulumi.Input[int] max_concurrency: The maximum number of simultaneous requests your container can handle at the same time. Defaults to 50.
414
+ :param pulumi.Input[int] max_scale: The maximum of number of instances this container can scale to. Default to 20.
415
+ :param pulumi.Input[int] memory_limit: The memory computing resources in MB to allocate to each container. Defaults to 256.
416
+ :param pulumi.Input[int] min_scale: The minimum of running container instances continuously. Defaults to 0.
417
+ :param pulumi.Input[str] name: The unique name of the container name.
418
+ :param pulumi.Input[str] namespace_id: The container namespace ID of the container.
419
+
420
+ > **Important** Updates to `name` will recreate the container.
421
+
422
+ The following arguments are optional:
423
+ :param pulumi.Input[int] port: The port to expose the container. Defaults to 8080.
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.
426
+ :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. e.g: **"rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE"**.
428
+ :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
+ :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) variables of the container.
431
+ :param pulumi.Input[str] status: The container status.
432
+ :param pulumi.Input[int] timeout: The maximum amount of time in seconds during which your container can process a request before we stop it. Defaults to 300s.
433
+ """
434
+ if cpu_limit is not None:
435
+ pulumi.set(__self__, "cpu_limit", cpu_limit)
436
+ if cron_status is not None:
437
+ pulumi.set(__self__, "cron_status", cron_status)
438
+ if deploy is not None:
439
+ pulumi.set(__self__, "deploy", deploy)
440
+ if description is not None:
441
+ pulumi.set(__self__, "description", description)
442
+ if domain_name is not None:
443
+ pulumi.set(__self__, "domain_name", domain_name)
444
+ if environment_variables is not None:
445
+ pulumi.set(__self__, "environment_variables", environment_variables)
446
+ if error_message is not None:
447
+ pulumi.set(__self__, "error_message", error_message)
448
+ if http_option is not None:
449
+ pulumi.set(__self__, "http_option", http_option)
450
+ if max_concurrency is not None:
451
+ pulumi.set(__self__, "max_concurrency", max_concurrency)
452
+ if max_scale is not None:
453
+ pulumi.set(__self__, "max_scale", max_scale)
454
+ if memory_limit is not None:
455
+ pulumi.set(__self__, "memory_limit", memory_limit)
456
+ if min_scale is not None:
457
+ pulumi.set(__self__, "min_scale", min_scale)
458
+ if name is not None:
459
+ pulumi.set(__self__, "name", name)
460
+ if namespace_id is not None:
461
+ pulumi.set(__self__, "namespace_id", namespace_id)
462
+ if port is not None:
463
+ pulumi.set(__self__, "port", port)
464
+ if privacy is not None:
465
+ pulumi.set(__self__, "privacy", privacy)
466
+ if protocol is not None:
467
+ pulumi.set(__self__, "protocol", protocol)
468
+ if region is not None:
469
+ pulumi.set(__self__, "region", region)
470
+ if registry_image is not None:
471
+ pulumi.set(__self__, "registry_image", registry_image)
472
+ if registry_sha256 is not None:
473
+ pulumi.set(__self__, "registry_sha256", registry_sha256)
474
+ if sandbox is not None:
475
+ pulumi.set(__self__, "sandbox", sandbox)
476
+ if secret_environment_variables is not None:
477
+ pulumi.set(__self__, "secret_environment_variables", secret_environment_variables)
478
+ if status is not None:
479
+ pulumi.set(__self__, "status", status)
480
+ if timeout is not None:
481
+ pulumi.set(__self__, "timeout", timeout)
482
+
483
+ @property
484
+ @pulumi.getter(name="cpuLimit")
485
+ def cpu_limit(self) -> Optional[pulumi.Input[int]]:
486
+ """
487
+ The amount of vCPU computing resources to allocate to each container. Defaults to 140.
488
+ """
489
+ return pulumi.get(self, "cpu_limit")
490
+
491
+ @cpu_limit.setter
492
+ def cpu_limit(self, value: Optional[pulumi.Input[int]]):
493
+ pulumi.set(self, "cpu_limit", value)
494
+
495
+ @property
496
+ @pulumi.getter(name="cronStatus")
497
+ def cron_status(self) -> Optional[pulumi.Input[str]]:
498
+ """
499
+ The cron status of the container.
500
+ """
501
+ return pulumi.get(self, "cron_status")
502
+
503
+ @cron_status.setter
504
+ def cron_status(self, value: Optional[pulumi.Input[str]]):
505
+ pulumi.set(self, "cron_status", value)
506
+
507
+ @property
508
+ @pulumi.getter
509
+ def deploy(self) -> Optional[pulumi.Input[bool]]:
510
+ """
511
+ Boolean controlling whether the container is on a production environment.
512
+
513
+ 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
+ """
515
+ return pulumi.get(self, "deploy")
516
+
517
+ @deploy.setter
518
+ def deploy(self, value: Optional[pulumi.Input[bool]]):
519
+ pulumi.set(self, "deploy", value)
520
+
521
+ @property
522
+ @pulumi.getter
523
+ def description(self) -> Optional[pulumi.Input[str]]:
524
+ """
525
+ The description of the container.
526
+ """
527
+ return pulumi.get(self, "description")
528
+
529
+ @description.setter
530
+ def description(self, value: Optional[pulumi.Input[str]]):
531
+ pulumi.set(self, "description", value)
532
+
533
+ @property
534
+ @pulumi.getter(name="domainName")
535
+ def domain_name(self) -> Optional[pulumi.Input[str]]:
536
+ """
537
+ The native domain name of the container
538
+ """
539
+ return pulumi.get(self, "domain_name")
540
+
541
+ @domain_name.setter
542
+ def domain_name(self, value: Optional[pulumi.Input[str]]):
543
+ pulumi.set(self, "domain_name", value)
544
+
545
+ @property
546
+ @pulumi.getter(name="environmentVariables")
547
+ def environment_variables(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
548
+ """
549
+ The [environment](https://www.scaleway.com/en/docs/compute/containers/concepts/#environment-variables) variables of the container.
550
+ """
551
+ return pulumi.get(self, "environment_variables")
552
+
553
+ @environment_variables.setter
554
+ def environment_variables(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
555
+ pulumi.set(self, "environment_variables", value)
556
+
557
+ @property
558
+ @pulumi.getter(name="errorMessage")
559
+ def error_message(self) -> Optional[pulumi.Input[str]]:
560
+ """
561
+ The error message of the container.
562
+ """
563
+ return pulumi.get(self, "error_message")
564
+
565
+ @error_message.setter
566
+ def error_message(self, value: Optional[pulumi.Input[str]]):
567
+ pulumi.set(self, "error_message", value)
568
+
569
+ @property
570
+ @pulumi.getter(name="httpOption")
571
+ def http_option(self) -> Optional[pulumi.Input[str]]:
572
+ """
573
+ Allow both HTTP and HTTPS (enabled) or redirect HTTP to HTTPS (redirected). Defaults to enabled.
574
+ """
575
+ return pulumi.get(self, "http_option")
576
+
577
+ @http_option.setter
578
+ def http_option(self, value: Optional[pulumi.Input[str]]):
579
+ pulumi.set(self, "http_option", value)
580
+
581
+ @property
582
+ @pulumi.getter(name="maxConcurrency")
583
+ def max_concurrency(self) -> Optional[pulumi.Input[int]]:
584
+ """
585
+ The maximum number of simultaneous requests your container can handle at the same time. Defaults to 50.
586
+ """
587
+ return pulumi.get(self, "max_concurrency")
588
+
589
+ @max_concurrency.setter
590
+ def max_concurrency(self, value: Optional[pulumi.Input[int]]):
591
+ pulumi.set(self, "max_concurrency", value)
592
+
593
+ @property
594
+ @pulumi.getter(name="maxScale")
595
+ def max_scale(self) -> Optional[pulumi.Input[int]]:
596
+ """
597
+ The maximum of number of instances this container can scale to. Default to 20.
598
+ """
599
+ return pulumi.get(self, "max_scale")
600
+
601
+ @max_scale.setter
602
+ def max_scale(self, value: Optional[pulumi.Input[int]]):
603
+ pulumi.set(self, "max_scale", value)
604
+
605
+ @property
606
+ @pulumi.getter(name="memoryLimit")
607
+ def memory_limit(self) -> Optional[pulumi.Input[int]]:
608
+ """
609
+ The memory computing resources in MB to allocate to each container. Defaults to 256.
610
+ """
611
+ return pulumi.get(self, "memory_limit")
612
+
613
+ @memory_limit.setter
614
+ def memory_limit(self, value: Optional[pulumi.Input[int]]):
615
+ pulumi.set(self, "memory_limit", value)
616
+
617
+ @property
618
+ @pulumi.getter(name="minScale")
619
+ def min_scale(self) -> Optional[pulumi.Input[int]]:
620
+ """
621
+ The minimum of running container instances continuously. Defaults to 0.
622
+ """
623
+ return pulumi.get(self, "min_scale")
624
+
625
+ @min_scale.setter
626
+ def min_scale(self, value: Optional[pulumi.Input[int]]):
627
+ pulumi.set(self, "min_scale", value)
628
+
629
+ @property
630
+ @pulumi.getter
631
+ def name(self) -> Optional[pulumi.Input[str]]:
632
+ """
633
+ The unique name of the container name.
634
+ """
635
+ return pulumi.get(self, "name")
636
+
637
+ @name.setter
638
+ def name(self, value: Optional[pulumi.Input[str]]):
639
+ pulumi.set(self, "name", value)
640
+
641
+ @property
642
+ @pulumi.getter(name="namespaceId")
643
+ def namespace_id(self) -> Optional[pulumi.Input[str]]:
644
+ """
645
+ The container namespace ID of the container.
646
+
647
+ > **Important** Updates to `name` will recreate the container.
648
+
649
+ The following arguments are optional:
650
+ """
651
+ return pulumi.get(self, "namespace_id")
652
+
653
+ @namespace_id.setter
654
+ def namespace_id(self, value: Optional[pulumi.Input[str]]):
655
+ pulumi.set(self, "namespace_id", value)
656
+
657
+ @property
658
+ @pulumi.getter
659
+ def port(self) -> Optional[pulumi.Input[int]]:
660
+ """
661
+ The port to expose the container. Defaults to 8080.
662
+ """
663
+ return pulumi.get(self, "port")
664
+
665
+ @port.setter
666
+ def port(self, value: Optional[pulumi.Input[int]]):
667
+ pulumi.set(self, "port", value)
668
+
669
+ @property
670
+ @pulumi.getter
671
+ def privacy(self) -> Optional[pulumi.Input[str]]:
672
+ """
673
+ 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).
674
+ """
675
+ return pulumi.get(self, "privacy")
676
+
677
+ @privacy.setter
678
+ def privacy(self, value: Optional[pulumi.Input[str]]):
679
+ pulumi.set(self, "privacy", value)
680
+
681
+ @property
682
+ @pulumi.getter
683
+ def protocol(self) -> Optional[pulumi.Input[str]]:
684
+ """
685
+ The communication [protocol](https://www.scaleway.com/en/developers/api/serverless-containers/#protocol-9dd4c8) http1 or h2c. Defaults to http1.
686
+ """
687
+ return pulumi.get(self, "protocol")
688
+
689
+ @protocol.setter
690
+ def protocol(self, value: Optional[pulumi.Input[str]]):
691
+ pulumi.set(self, "protocol", value)
692
+
693
+ @property
694
+ @pulumi.getter
695
+ def region(self) -> Optional[pulumi.Input[str]]:
696
+ """
697
+ (Defaults to provider `region`) The region in which the container was created.
698
+ """
699
+ return pulumi.get(self, "region")
700
+
701
+ @region.setter
702
+ def region(self, value: Optional[pulumi.Input[str]]):
703
+ pulumi.set(self, "region", value)
704
+
705
+ @property
706
+ @pulumi.getter(name="registryImage")
707
+ def registry_image(self) -> Optional[pulumi.Input[str]]:
708
+ """
709
+ The registry image address. e.g: **"rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE"**.
710
+ """
711
+ return pulumi.get(self, "registry_image")
712
+
713
+ @registry_image.setter
714
+ def registry_image(self, value: Optional[pulumi.Input[str]]):
715
+ pulumi.set(self, "registry_image", value)
716
+
717
+ @property
718
+ @pulumi.getter(name="registrySha256")
719
+ def registry_sha256(self) -> Optional[pulumi.Input[str]]:
720
+ """
721
+ The sha256 of your source registry image, changing it will re-apply the deployment. Can be any string.
722
+ """
723
+ return pulumi.get(self, "registry_sha256")
724
+
725
+ @registry_sha256.setter
726
+ def registry_sha256(self, value: Optional[pulumi.Input[str]]):
727
+ pulumi.set(self, "registry_sha256", value)
728
+
729
+ @property
730
+ @pulumi.getter
731
+ def sandbox(self) -> Optional[pulumi.Input[str]]:
732
+ """
733
+ Execution environment of the container.
734
+ """
735
+ return pulumi.get(self, "sandbox")
736
+
737
+ @sandbox.setter
738
+ def sandbox(self, value: Optional[pulumi.Input[str]]):
739
+ pulumi.set(self, "sandbox", value)
740
+
741
+ @property
742
+ @pulumi.getter(name="secretEnvironmentVariables")
743
+ def secret_environment_variables(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
744
+ """
745
+ The [secret environment](https://www.scaleway.com/en/docs/compute/containers/concepts/#secrets) variables of the container.
746
+ """
747
+ return pulumi.get(self, "secret_environment_variables")
748
+
749
+ @secret_environment_variables.setter
750
+ def secret_environment_variables(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
751
+ pulumi.set(self, "secret_environment_variables", value)
752
+
753
+ @property
754
+ @pulumi.getter
755
+ def status(self) -> Optional[pulumi.Input[str]]:
756
+ """
757
+ The container status.
758
+ """
759
+ return pulumi.get(self, "status")
760
+
761
+ @status.setter
762
+ def status(self, value: Optional[pulumi.Input[str]]):
763
+ pulumi.set(self, "status", value)
764
+
765
+ @property
766
+ @pulumi.getter
767
+ def timeout(self) -> Optional[pulumi.Input[int]]:
768
+ """
769
+ The maximum amount of time in seconds during which your container can process a request before we stop it. Defaults to 300s.
770
+ """
771
+ return pulumi.get(self, "timeout")
772
+
773
+ @timeout.setter
774
+ def timeout(self, value: Optional[pulumi.Input[int]]):
775
+ pulumi.set(self, "timeout", value)
776
+
777
+
778
+ class Container(pulumi.CustomResource):
779
+ @overload
780
+ def __init__(__self__,
781
+ resource_name: str,
782
+ opts: Optional[pulumi.ResourceOptions] = None,
783
+ cpu_limit: Optional[pulumi.Input[int]] = None,
784
+ deploy: Optional[pulumi.Input[bool]] = None,
785
+ description: Optional[pulumi.Input[str]] = None,
786
+ environment_variables: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
787
+ http_option: Optional[pulumi.Input[str]] = None,
788
+ max_concurrency: Optional[pulumi.Input[int]] = None,
789
+ max_scale: Optional[pulumi.Input[int]] = None,
790
+ memory_limit: Optional[pulumi.Input[int]] = None,
791
+ min_scale: Optional[pulumi.Input[int]] = None,
792
+ name: Optional[pulumi.Input[str]] = None,
793
+ namespace_id: Optional[pulumi.Input[str]] = None,
794
+ port: Optional[pulumi.Input[int]] = None,
795
+ privacy: Optional[pulumi.Input[str]] = None,
796
+ protocol: Optional[pulumi.Input[str]] = None,
797
+ region: Optional[pulumi.Input[str]] = None,
798
+ registry_image: Optional[pulumi.Input[str]] = None,
799
+ registry_sha256: Optional[pulumi.Input[str]] = None,
800
+ sandbox: Optional[pulumi.Input[str]] = None,
801
+ secret_environment_variables: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
802
+ status: Optional[pulumi.Input[str]] = None,
803
+ timeout: Optional[pulumi.Input[int]] = None,
804
+ __props__=None):
805
+ """
806
+ Creates and manages Scaleway Container.
807
+
808
+ For more information consult the [documentation](https://www.scaleway.com/en/docs/faq/serverless-containers/).
809
+
810
+ For more details about the limitation check [containers-limitations](https://www.scaleway.com/en/docs/compute/containers/reference-content/containers-limitations/).
811
+
812
+ You can check also our [containers guide](https://www.scaleway.com/en/docs/compute/containers/concepts/).
813
+
814
+ ## Example Usage
815
+
816
+ ```python
817
+ import pulumi
818
+ import pulumiverse_scaleway as scaleway
819
+
820
+ main = scaleway.ContainerNamespace("main",
821
+ name="my-ns-test",
822
+ description="test container")
823
+ main_container = scaleway.Container("main",
824
+ name="my-container-02",
825
+ description="environment variables test",
826
+ namespace_id=main.id,
827
+ registry_image=main.registry_endpoint.apply(lambda registry_endpoint: f"{registry_endpoint}/alpine:test"),
828
+ port=9997,
829
+ cpu_limit=140,
830
+ memory_limit=256,
831
+ min_scale=3,
832
+ max_scale=5,
833
+ timeout=600,
834
+ max_concurrency=80,
835
+ privacy="private",
836
+ protocol="http1",
837
+ deploy=True,
838
+ environment_variables={
839
+ "foo": "var",
840
+ },
841
+ secret_environment_variables={
842
+ "key": "secret",
843
+ })
844
+ ```
845
+
846
+ ## Protocols
847
+
848
+ The supported protocols are:
849
+
850
+ * `h2c`: HTTP/2 over TCP.
851
+ * `http1`: Hypertext Transfer Protocol.
852
+
853
+ **Important:** For details about the protocols check [this](https://httpd.apache.org/docs/2.4/howto/http2.html)
854
+
855
+ ## Privacy
856
+
857
+ By default, creating a container will make it `public`, meaning that anybody knowing the endpoint could execute it.
858
+ A container can be made `private` with the privacy parameter.
859
+
860
+ Please check our [authentication](https://www.scaleway.com/en/developers/api/serverless-containers/#protocol-9dd4c8) section
861
+
862
+ ## Memory and vCPUs configuration
863
+
864
+ The vCPU represents a portion or share of the underlying, physical CPU that is assigned to a particular virtual machine (VM).
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.
868
+
869
+ **Important:** The right choice for your container's resources is very important, as you will be billed based on compute usage over time and the number of Containers executions.
870
+
871
+ Please check our [price](https://www.scaleway.com/en/docs/faq/serverless-containers/#prices) section for more details.
872
+
873
+ | Memory (in MB) | vCPU |
874
+ |----------------|------|
875
+ | 128 | 70m |
876
+ | 256 | 140m |
877
+ | 512 | 280m |
878
+ | 1024 | 560m |
879
+
880
+ **Note:** 560mCPU accounts roughly for half of one CPU power of a Scaleway General Purpose instance
881
+
882
+ ## Import
883
+
884
+ Container can be imported using the `{region}/{id}`, e.g.
885
+
886
+ bash
887
+
888
+ ```sh
889
+ $ pulumi import scaleway:index/container:Container main fr-par/11111111-1111-1111-1111-111111111111
890
+ ```
891
+
892
+ :param str resource_name: The name of the resource.
893
+ :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. Defaults to 140.
895
+ :param pulumi.Input[bool] deploy: Boolean controlling whether the container is on a production environment.
896
+
897
+ 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
+ :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) variables of the container.
900
+ :param pulumi.Input[str] http_option: Allow both HTTP and HTTPS (enabled) or redirect HTTP to HTTPS (redirected). Defaults to enabled.
901
+ :param pulumi.Input[int] max_concurrency: The maximum number of simultaneous requests your container can handle at the same time. Defaults to 50.
902
+ :param pulumi.Input[int] max_scale: The maximum of number of instances this container can scale to. Default to 20.
903
+ :param pulumi.Input[int] memory_limit: The memory computing resources in MB to allocate to each container. Defaults to 256.
904
+ :param pulumi.Input[int] min_scale: The minimum of running container instances continuously. Defaults to 0.
905
+ :param pulumi.Input[str] name: The unique name of the container name.
906
+ :param pulumi.Input[str] namespace_id: The container namespace ID of the container.
907
+
908
+ > **Important** Updates to `name` will recreate the container.
909
+
910
+ The following arguments are optional:
911
+ :param pulumi.Input[int] port: The port to expose the container. Defaults to 8080.
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.
914
+ :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. e.g: **"rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE"**.
916
+ :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
+ :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) variables of the container.
919
+ :param pulumi.Input[str] status: The container status.
920
+ :param pulumi.Input[int] timeout: The maximum amount of time in seconds during which your container can process a request before we stop it. Defaults to 300s.
921
+ """
922
+ ...
923
+ @overload
924
+ def __init__(__self__,
925
+ resource_name: str,
926
+ args: ContainerArgs,
927
+ opts: Optional[pulumi.ResourceOptions] = None):
928
+ """
929
+ Creates and manages Scaleway Container.
930
+
931
+ For more information consult the [documentation](https://www.scaleway.com/en/docs/faq/serverless-containers/).
932
+
933
+ For more details about the limitation check [containers-limitations](https://www.scaleway.com/en/docs/compute/containers/reference-content/containers-limitations/).
934
+
935
+ You can check also our [containers guide](https://www.scaleway.com/en/docs/compute/containers/concepts/).
936
+
937
+ ## Example Usage
938
+
939
+ ```python
940
+ import pulumi
941
+ import pulumiverse_scaleway as scaleway
942
+
943
+ main = scaleway.ContainerNamespace("main",
944
+ name="my-ns-test",
945
+ description="test container")
946
+ main_container = scaleway.Container("main",
947
+ name="my-container-02",
948
+ description="environment variables test",
949
+ namespace_id=main.id,
950
+ registry_image=main.registry_endpoint.apply(lambda registry_endpoint: f"{registry_endpoint}/alpine:test"),
951
+ port=9997,
952
+ cpu_limit=140,
953
+ memory_limit=256,
954
+ min_scale=3,
955
+ max_scale=5,
956
+ timeout=600,
957
+ max_concurrency=80,
958
+ privacy="private",
959
+ protocol="http1",
960
+ deploy=True,
961
+ environment_variables={
962
+ "foo": "var",
963
+ },
964
+ secret_environment_variables={
965
+ "key": "secret",
966
+ })
967
+ ```
968
+
969
+ ## Protocols
970
+
971
+ The supported protocols are:
972
+
973
+ * `h2c`: HTTP/2 over TCP.
974
+ * `http1`: Hypertext Transfer Protocol.
975
+
976
+ **Important:** For details about the protocols check [this](https://httpd.apache.org/docs/2.4/howto/http2.html)
977
+
978
+ ## Privacy
979
+
980
+ By default, creating a container will make it `public`, meaning that anybody knowing the endpoint could execute it.
981
+ A container can be made `private` with the privacy parameter.
982
+
983
+ Please check our [authentication](https://www.scaleway.com/en/developers/api/serverless-containers/#protocol-9dd4c8) section
984
+
985
+ ## Memory and vCPUs configuration
986
+
987
+ The vCPU represents a portion or share of the underlying, physical CPU that is assigned to a particular virtual machine (VM).
988
+
989
+ You may decide how much computing resources to allocate to each container.
990
+ The `memory_limit` (in MB) must correspond with the right amount of vCPU.
991
+
992
+ **Important:** The right choice for your container's resources is very important, as you will be billed based on compute usage over time and the number of Containers executions.
993
+
994
+ Please check our [price](https://www.scaleway.com/en/docs/faq/serverless-containers/#prices) section for more details.
995
+
996
+ | Memory (in MB) | vCPU |
997
+ |----------------|------|
998
+ | 128 | 70m |
999
+ | 256 | 140m |
1000
+ | 512 | 280m |
1001
+ | 1024 | 560m |
1002
+
1003
+ **Note:** 560mCPU accounts roughly for half of one CPU power of a Scaleway General Purpose instance
1004
+
1005
+ ## Import
1006
+
1007
+ Container can be imported using the `{region}/{id}`, e.g.
1008
+
1009
+ bash
1010
+
1011
+ ```sh
1012
+ $ pulumi import scaleway:index/container:Container main fr-par/11111111-1111-1111-1111-111111111111
1013
+ ```
1014
+
1015
+ :param str resource_name: The name of the resource.
1016
+ :param ContainerArgs args: The arguments to use to populate this resource's properties.
1017
+ :param pulumi.ResourceOptions opts: Options for the resource.
1018
+ """
1019
+ ...
1020
+ def __init__(__self__, resource_name: str, *args, **kwargs):
1021
+ resource_args, opts = _utilities.get_resource_args_opts(ContainerArgs, pulumi.ResourceOptions, *args, **kwargs)
1022
+ if resource_args is not None:
1023
+ __self__._internal_init(resource_name, opts, **resource_args.__dict__)
1024
+ else:
1025
+ __self__._internal_init(resource_name, *args, **kwargs)
1026
+
1027
+ def _internal_init(__self__,
1028
+ resource_name: str,
1029
+ opts: Optional[pulumi.ResourceOptions] = None,
1030
+ cpu_limit: Optional[pulumi.Input[int]] = None,
1031
+ deploy: Optional[pulumi.Input[bool]] = None,
1032
+ description: Optional[pulumi.Input[str]] = None,
1033
+ environment_variables: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
1034
+ http_option: Optional[pulumi.Input[str]] = None,
1035
+ max_concurrency: Optional[pulumi.Input[int]] = None,
1036
+ max_scale: Optional[pulumi.Input[int]] = None,
1037
+ memory_limit: Optional[pulumi.Input[int]] = None,
1038
+ min_scale: Optional[pulumi.Input[int]] = None,
1039
+ name: Optional[pulumi.Input[str]] = None,
1040
+ namespace_id: Optional[pulumi.Input[str]] = None,
1041
+ port: Optional[pulumi.Input[int]] = None,
1042
+ privacy: Optional[pulumi.Input[str]] = None,
1043
+ protocol: Optional[pulumi.Input[str]] = None,
1044
+ region: Optional[pulumi.Input[str]] = None,
1045
+ registry_image: Optional[pulumi.Input[str]] = None,
1046
+ registry_sha256: Optional[pulumi.Input[str]] = None,
1047
+ sandbox: Optional[pulumi.Input[str]] = None,
1048
+ secret_environment_variables: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
1049
+ status: Optional[pulumi.Input[str]] = None,
1050
+ timeout: Optional[pulumi.Input[int]] = None,
1051
+ __props__=None):
1052
+ opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
1053
+ if not isinstance(opts, pulumi.ResourceOptions):
1054
+ raise TypeError('Expected resource options to be a ResourceOptions instance')
1055
+ if opts.id is None:
1056
+ if __props__ is not None:
1057
+ raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
1058
+ __props__ = ContainerArgs.__new__(ContainerArgs)
1059
+
1060
+ __props__.__dict__["cpu_limit"] = cpu_limit
1061
+ __props__.__dict__["deploy"] = deploy
1062
+ __props__.__dict__["description"] = description
1063
+ __props__.__dict__["environment_variables"] = environment_variables
1064
+ __props__.__dict__["http_option"] = http_option
1065
+ __props__.__dict__["max_concurrency"] = max_concurrency
1066
+ __props__.__dict__["max_scale"] = max_scale
1067
+ __props__.__dict__["memory_limit"] = memory_limit
1068
+ __props__.__dict__["min_scale"] = min_scale
1069
+ __props__.__dict__["name"] = name
1070
+ if namespace_id is None and not opts.urn:
1071
+ raise TypeError("Missing required property 'namespace_id'")
1072
+ __props__.__dict__["namespace_id"] = namespace_id
1073
+ __props__.__dict__["port"] = port
1074
+ __props__.__dict__["privacy"] = privacy
1075
+ __props__.__dict__["protocol"] = protocol
1076
+ __props__.__dict__["region"] = region
1077
+ __props__.__dict__["registry_image"] = registry_image
1078
+ __props__.__dict__["registry_sha256"] = registry_sha256
1079
+ __props__.__dict__["sandbox"] = sandbox
1080
+ __props__.__dict__["secret_environment_variables"] = None if secret_environment_variables is None else pulumi.Output.secret(secret_environment_variables)
1081
+ __props__.__dict__["status"] = status
1082
+ __props__.__dict__["timeout"] = timeout
1083
+ __props__.__dict__["cron_status"] = None
1084
+ __props__.__dict__["domain_name"] = None
1085
+ __props__.__dict__["error_message"] = None
1086
+ secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["secretEnvironmentVariables"])
1087
+ opts = pulumi.ResourceOptions.merge(opts, secret_opts)
1088
+ super(Container, __self__).__init__(
1089
+ 'scaleway:index/container:Container',
1090
+ resource_name,
1091
+ __props__,
1092
+ opts)
1093
+
1094
+ @staticmethod
1095
+ def get(resource_name: str,
1096
+ id: pulumi.Input[str],
1097
+ opts: Optional[pulumi.ResourceOptions] = None,
1098
+ cpu_limit: Optional[pulumi.Input[int]] = None,
1099
+ cron_status: Optional[pulumi.Input[str]] = None,
1100
+ deploy: Optional[pulumi.Input[bool]] = None,
1101
+ description: Optional[pulumi.Input[str]] = None,
1102
+ domain_name: Optional[pulumi.Input[str]] = None,
1103
+ environment_variables: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
1104
+ error_message: Optional[pulumi.Input[str]] = None,
1105
+ http_option: Optional[pulumi.Input[str]] = None,
1106
+ max_concurrency: Optional[pulumi.Input[int]] = None,
1107
+ max_scale: Optional[pulumi.Input[int]] = None,
1108
+ memory_limit: Optional[pulumi.Input[int]] = None,
1109
+ min_scale: Optional[pulumi.Input[int]] = None,
1110
+ name: Optional[pulumi.Input[str]] = None,
1111
+ namespace_id: Optional[pulumi.Input[str]] = None,
1112
+ port: Optional[pulumi.Input[int]] = None,
1113
+ privacy: Optional[pulumi.Input[str]] = None,
1114
+ protocol: Optional[pulumi.Input[str]] = None,
1115
+ region: Optional[pulumi.Input[str]] = None,
1116
+ registry_image: Optional[pulumi.Input[str]] = None,
1117
+ registry_sha256: Optional[pulumi.Input[str]] = None,
1118
+ sandbox: Optional[pulumi.Input[str]] = None,
1119
+ secret_environment_variables: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
1120
+ status: Optional[pulumi.Input[str]] = None,
1121
+ timeout: Optional[pulumi.Input[int]] = None) -> 'Container':
1122
+ """
1123
+ Get an existing Container resource's state with the given name, id, and optional extra
1124
+ properties used to qualify the lookup.
1125
+
1126
+ :param str resource_name: The unique name of the resulting resource.
1127
+ :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
1128
+ :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. Defaults to 140.
1130
+ :param pulumi.Input[str] cron_status: The cron status of the container.
1131
+ :param pulumi.Input[bool] deploy: Boolean controlling whether the container is on a production environment.
1132
+
1133
+ 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
+ :param pulumi.Input[str] description: The description of the container.
1135
+ :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) variables of the container.
1137
+ :param pulumi.Input[str] error_message: The error message of the container.
1138
+ :param pulumi.Input[str] http_option: Allow both HTTP and HTTPS (enabled) or redirect HTTP to HTTPS (redirected). Defaults to enabled.
1139
+ :param pulumi.Input[int] max_concurrency: The maximum number of simultaneous requests your container can handle at the same time. Defaults to 50.
1140
+ :param pulumi.Input[int] max_scale: The maximum of number of instances this container can scale to. Default to 20.
1141
+ :param pulumi.Input[int] memory_limit: The memory computing resources in MB to allocate to each container. Defaults to 256.
1142
+ :param pulumi.Input[int] min_scale: The minimum of running container instances continuously. Defaults to 0.
1143
+ :param pulumi.Input[str] name: The unique name of the container name.
1144
+ :param pulumi.Input[str] namespace_id: The container namespace ID of the container.
1145
+
1146
+ > **Important** Updates to `name` will recreate the container.
1147
+
1148
+ The following arguments are optional:
1149
+ :param pulumi.Input[int] port: The port to expose the container. Defaults to 8080.
1150
+ :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).
1151
+ :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.
1152
+ :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. e.g: **"rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE"**.
1154
+ :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
+ :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) variables of the container.
1157
+ :param pulumi.Input[str] status: The container status.
1158
+ :param pulumi.Input[int] timeout: The maximum amount of time in seconds during which your container can process a request before we stop it. Defaults to 300s.
1159
+ """
1160
+ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
1161
+
1162
+ __props__ = _ContainerState.__new__(_ContainerState)
1163
+
1164
+ __props__.__dict__["cpu_limit"] = cpu_limit
1165
+ __props__.__dict__["cron_status"] = cron_status
1166
+ __props__.__dict__["deploy"] = deploy
1167
+ __props__.__dict__["description"] = description
1168
+ __props__.__dict__["domain_name"] = domain_name
1169
+ __props__.__dict__["environment_variables"] = environment_variables
1170
+ __props__.__dict__["error_message"] = error_message
1171
+ __props__.__dict__["http_option"] = http_option
1172
+ __props__.__dict__["max_concurrency"] = max_concurrency
1173
+ __props__.__dict__["max_scale"] = max_scale
1174
+ __props__.__dict__["memory_limit"] = memory_limit
1175
+ __props__.__dict__["min_scale"] = min_scale
1176
+ __props__.__dict__["name"] = name
1177
+ __props__.__dict__["namespace_id"] = namespace_id
1178
+ __props__.__dict__["port"] = port
1179
+ __props__.__dict__["privacy"] = privacy
1180
+ __props__.__dict__["protocol"] = protocol
1181
+ __props__.__dict__["region"] = region
1182
+ __props__.__dict__["registry_image"] = registry_image
1183
+ __props__.__dict__["registry_sha256"] = registry_sha256
1184
+ __props__.__dict__["sandbox"] = sandbox
1185
+ __props__.__dict__["secret_environment_variables"] = secret_environment_variables
1186
+ __props__.__dict__["status"] = status
1187
+ __props__.__dict__["timeout"] = timeout
1188
+ return Container(resource_name, opts=opts, __props__=__props__)
1189
+
1190
+ @property
1191
+ @pulumi.getter(name="cpuLimit")
1192
+ def cpu_limit(self) -> pulumi.Output[int]:
1193
+ """
1194
+ The amount of vCPU computing resources to allocate to each container. Defaults to 140.
1195
+ """
1196
+ return pulumi.get(self, "cpu_limit")
1197
+
1198
+ @property
1199
+ @pulumi.getter(name="cronStatus")
1200
+ def cron_status(self) -> pulumi.Output[str]:
1201
+ """
1202
+ The cron status of the container.
1203
+ """
1204
+ return pulumi.get(self, "cron_status")
1205
+
1206
+ @property
1207
+ @pulumi.getter
1208
+ def deploy(self) -> pulumi.Output[Optional[bool]]:
1209
+ """
1210
+ Boolean controlling whether the container is on a production environment.
1211
+
1212
+ 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
+ """
1214
+ return pulumi.get(self, "deploy")
1215
+
1216
+ @property
1217
+ @pulumi.getter
1218
+ def description(self) -> pulumi.Output[Optional[str]]:
1219
+ """
1220
+ The description of the container.
1221
+ """
1222
+ return pulumi.get(self, "description")
1223
+
1224
+ @property
1225
+ @pulumi.getter(name="domainName")
1226
+ def domain_name(self) -> pulumi.Output[str]:
1227
+ """
1228
+ The native domain name of the container
1229
+ """
1230
+ return pulumi.get(self, "domain_name")
1231
+
1232
+ @property
1233
+ @pulumi.getter(name="environmentVariables")
1234
+ def environment_variables(self) -> pulumi.Output[Mapping[str, str]]:
1235
+ """
1236
+ The [environment](https://www.scaleway.com/en/docs/compute/containers/concepts/#environment-variables) variables of the container.
1237
+ """
1238
+ return pulumi.get(self, "environment_variables")
1239
+
1240
+ @property
1241
+ @pulumi.getter(name="errorMessage")
1242
+ def error_message(self) -> pulumi.Output[str]:
1243
+ """
1244
+ The error message of the container.
1245
+ """
1246
+ return pulumi.get(self, "error_message")
1247
+
1248
+ @property
1249
+ @pulumi.getter(name="httpOption")
1250
+ def http_option(self) -> pulumi.Output[Optional[str]]:
1251
+ """
1252
+ Allow both HTTP and HTTPS (enabled) or redirect HTTP to HTTPS (redirected). Defaults to enabled.
1253
+ """
1254
+ return pulumi.get(self, "http_option")
1255
+
1256
+ @property
1257
+ @pulumi.getter(name="maxConcurrency")
1258
+ def max_concurrency(self) -> pulumi.Output[int]:
1259
+ """
1260
+ The maximum number of simultaneous requests your container can handle at the same time. Defaults to 50.
1261
+ """
1262
+ return pulumi.get(self, "max_concurrency")
1263
+
1264
+ @property
1265
+ @pulumi.getter(name="maxScale")
1266
+ def max_scale(self) -> pulumi.Output[int]:
1267
+ """
1268
+ The maximum of number of instances this container can scale to. Default to 20.
1269
+ """
1270
+ return pulumi.get(self, "max_scale")
1271
+
1272
+ @property
1273
+ @pulumi.getter(name="memoryLimit")
1274
+ def memory_limit(self) -> pulumi.Output[int]:
1275
+ """
1276
+ The memory computing resources in MB to allocate to each container. Defaults to 256.
1277
+ """
1278
+ return pulumi.get(self, "memory_limit")
1279
+
1280
+ @property
1281
+ @pulumi.getter(name="minScale")
1282
+ def min_scale(self) -> pulumi.Output[int]:
1283
+ """
1284
+ The minimum of running container instances continuously. Defaults to 0.
1285
+ """
1286
+ return pulumi.get(self, "min_scale")
1287
+
1288
+ @property
1289
+ @pulumi.getter
1290
+ def name(self) -> pulumi.Output[str]:
1291
+ """
1292
+ The unique name of the container name.
1293
+ """
1294
+ return pulumi.get(self, "name")
1295
+
1296
+ @property
1297
+ @pulumi.getter(name="namespaceId")
1298
+ def namespace_id(self) -> pulumi.Output[str]:
1299
+ """
1300
+ The container namespace ID of the container.
1301
+
1302
+ > **Important** Updates to `name` will recreate the container.
1303
+
1304
+ The following arguments are optional:
1305
+ """
1306
+ return pulumi.get(self, "namespace_id")
1307
+
1308
+ @property
1309
+ @pulumi.getter
1310
+ def port(self) -> pulumi.Output[int]:
1311
+ """
1312
+ The port to expose the container. Defaults to 8080.
1313
+ """
1314
+ return pulumi.get(self, "port")
1315
+
1316
+ @property
1317
+ @pulumi.getter
1318
+ def privacy(self) -> pulumi.Output[Optional[str]]:
1319
+ """
1320
+ 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).
1321
+ """
1322
+ return pulumi.get(self, "privacy")
1323
+
1324
+ @property
1325
+ @pulumi.getter
1326
+ def protocol(self) -> pulumi.Output[Optional[str]]:
1327
+ """
1328
+ The communication [protocol](https://www.scaleway.com/en/developers/api/serverless-containers/#protocol-9dd4c8) http1 or h2c. Defaults to http1.
1329
+ """
1330
+ return pulumi.get(self, "protocol")
1331
+
1332
+ @property
1333
+ @pulumi.getter
1334
+ def region(self) -> pulumi.Output[str]:
1335
+ """
1336
+ (Defaults to provider `region`) The region in which the container was created.
1337
+ """
1338
+ return pulumi.get(self, "region")
1339
+
1340
+ @property
1341
+ @pulumi.getter(name="registryImage")
1342
+ def registry_image(self) -> pulumi.Output[str]:
1343
+ """
1344
+ The registry image address. e.g: **"rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE"**.
1345
+ """
1346
+ return pulumi.get(self, "registry_image")
1347
+
1348
+ @property
1349
+ @pulumi.getter(name="registrySha256")
1350
+ def registry_sha256(self) -> pulumi.Output[Optional[str]]:
1351
+ """
1352
+ The sha256 of your source registry image, changing it will re-apply the deployment. Can be any string.
1353
+ """
1354
+ return pulumi.get(self, "registry_sha256")
1355
+
1356
+ @property
1357
+ @pulumi.getter
1358
+ def sandbox(self) -> pulumi.Output[str]:
1359
+ """
1360
+ Execution environment of the container.
1361
+ """
1362
+ return pulumi.get(self, "sandbox")
1363
+
1364
+ @property
1365
+ @pulumi.getter(name="secretEnvironmentVariables")
1366
+ def secret_environment_variables(self) -> pulumi.Output[Optional[Mapping[str, str]]]:
1367
+ """
1368
+ The [secret environment](https://www.scaleway.com/en/docs/compute/containers/concepts/#secrets) variables of the container.
1369
+ """
1370
+ return pulumi.get(self, "secret_environment_variables")
1371
+
1372
+ @property
1373
+ @pulumi.getter
1374
+ def status(self) -> pulumi.Output[str]:
1375
+ """
1376
+ The container status.
1377
+ """
1378
+ return pulumi.get(self, "status")
1379
+
1380
+ @property
1381
+ @pulumi.getter
1382
+ def timeout(self) -> pulumi.Output[int]:
1383
+ """
1384
+ The maximum amount of time in seconds during which your container can process a request before we stop it. Defaults to 300s.
1385
+ """
1386
+ return pulumi.get(self, "timeout")
1387
+