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