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.
- pulumiverse_scaleway/__init__.py +1073 -0
- pulumiverse_scaleway/_inputs.py +8665 -0
- pulumiverse_scaleway/_utilities.py +327 -0
- pulumiverse_scaleway/account_project.py +316 -0
- pulumiverse_scaleway/account_ssh_key.py +450 -0
- pulumiverse_scaleway/apple_silicon_server.py +564 -0
- pulumiverse_scaleway/baremetal_server.py +1390 -0
- pulumiverse_scaleway/block_snapshot.py +391 -0
- pulumiverse_scaleway/block_volume.py +521 -0
- pulumiverse_scaleway/cockpit.py +299 -0
- pulumiverse_scaleway/cockpit_alert_manager.py +345 -0
- pulumiverse_scaleway/cockpit_grafana_user.py +326 -0
- pulumiverse_scaleway/cockpit_source.py +481 -0
- pulumiverse_scaleway/cockpit_token.py +461 -0
- pulumiverse_scaleway/config/__init__.py +8 -0
- pulumiverse_scaleway/config/__init__.pyi +56 -0
- pulumiverse_scaleway/config/vars.py +78 -0
- pulumiverse_scaleway/container.py +1387 -0
- pulumiverse_scaleway/container_cron.py +493 -0
- pulumiverse_scaleway/container_domain.py +400 -0
- pulumiverse_scaleway/container_namespace.py +589 -0
- pulumiverse_scaleway/container_token.py +454 -0
- pulumiverse_scaleway/container_trigger.py +478 -0
- pulumiverse_scaleway/database.py +407 -0
- pulumiverse_scaleway/database_acl.py +332 -0
- pulumiverse_scaleway/database_backup.py +574 -0
- pulumiverse_scaleway/database_instance.py +1636 -0
- pulumiverse_scaleway/database_privilege.py +422 -0
- pulumiverse_scaleway/database_read_replica.py +528 -0
- pulumiverse_scaleway/database_user.py +446 -0
- pulumiverse_scaleway/documentdb_database.py +450 -0
- pulumiverse_scaleway/documentdb_instance.py +812 -0
- pulumiverse_scaleway/documentdb_private_network_endpoint.py +352 -0
- pulumiverse_scaleway/documentdb_privilege.py +402 -0
- pulumiverse_scaleway/documentdb_read_replica.py +405 -0
- pulumiverse_scaleway/documentdb_user.py +442 -0
- pulumiverse_scaleway/domain_record.py +1074 -0
- pulumiverse_scaleway/domain_zone.py +458 -0
- pulumiverse_scaleway/flexible_ip.py +702 -0
- pulumiverse_scaleway/flexible_ip_mac_address.py +510 -0
- pulumiverse_scaleway/function.py +1145 -0
- pulumiverse_scaleway/function_cron.py +480 -0
- pulumiverse_scaleway/function_domain.py +361 -0
- pulumiverse_scaleway/function_namespace.py +533 -0
- pulumiverse_scaleway/function_token.py +462 -0
- pulumiverse_scaleway/function_trigger.py +478 -0
- pulumiverse_scaleway/get_account_project.py +164 -0
- pulumiverse_scaleway/get_account_ssh_key.py +201 -0
- pulumiverse_scaleway/get_availability_zones.py +131 -0
- pulumiverse_scaleway/get_baremetal_offer.py +245 -0
- pulumiverse_scaleway/get_baremetal_option.py +168 -0
- pulumiverse_scaleway/get_baremetal_os.py +174 -0
- pulumiverse_scaleway/get_baremetal_server.py +411 -0
- pulumiverse_scaleway/get_billing_consumptions.py +134 -0
- pulumiverse_scaleway/get_billing_invoices.py +154 -0
- pulumiverse_scaleway/get_block_snapshot.py +170 -0
- pulumiverse_scaleway/get_block_volume.py +186 -0
- pulumiverse_scaleway/get_cockpit.py +179 -0
- pulumiverse_scaleway/get_cockpit_plan.py +113 -0
- pulumiverse_scaleway/get_config.py +180 -0
- pulumiverse_scaleway/get_container.py +502 -0
- pulumiverse_scaleway/get_container_namespace.py +262 -0
- pulumiverse_scaleway/get_database.py +187 -0
- pulumiverse_scaleway/get_database_acl.py +143 -0
- pulumiverse_scaleway/get_database_backup.py +253 -0
- pulumiverse_scaleway/get_database_instance.py +404 -0
- pulumiverse_scaleway/get_database_privilege.py +181 -0
- pulumiverse_scaleway/get_documentdb_database.py +198 -0
- pulumiverse_scaleway/get_documentdb_instance.py +245 -0
- pulumiverse_scaleway/get_documentdb_load_balancer_endpoint.py +198 -0
- pulumiverse_scaleway/get_domain_record.py +334 -0
- pulumiverse_scaleway/get_domain_zone.py +225 -0
- pulumiverse_scaleway/get_flexible_ip.py +247 -0
- pulumiverse_scaleway/get_flexible_ips.py +240 -0
- pulumiverse_scaleway/get_function.py +357 -0
- pulumiverse_scaleway/get_function_namespace.py +227 -0
- pulumiverse_scaleway/get_iam_api_key.py +210 -0
- pulumiverse_scaleway/get_iam_application.py +210 -0
- pulumiverse_scaleway/get_iam_group.py +236 -0
- pulumiverse_scaleway/get_iam_ssh_key.py +212 -0
- pulumiverse_scaleway/get_iam_user.py +157 -0
- pulumiverse_scaleway/get_instance_image.py +305 -0
- pulumiverse_scaleway/get_instance_ip.py +204 -0
- pulumiverse_scaleway/get_instance_placement_group.py +212 -0
- pulumiverse_scaleway/get_instance_private_nic.py +215 -0
- pulumiverse_scaleway/get_instance_security_group.py +268 -0
- pulumiverse_scaleway/get_instance_server.py +502 -0
- pulumiverse_scaleway/get_instance_servers.py +187 -0
- pulumiverse_scaleway/get_instance_snapshot.py +248 -0
- pulumiverse_scaleway/get_instance_volume.py +215 -0
- pulumiverse_scaleway/get_iot_device.py +257 -0
- pulumiverse_scaleway/get_iot_hub.py +322 -0
- pulumiverse_scaleway/get_ipam_ip.py +419 -0
- pulumiverse_scaleway/get_ipam_ips.py +358 -0
- pulumiverse_scaleway/get_k8s_version.py +196 -0
- pulumiverse_scaleway/get_kubernetes_cluster.py +417 -0
- pulumiverse_scaleway/get_kubernetes_node_pool.py +436 -0
- pulumiverse_scaleway/get_lb_acls.py +198 -0
- pulumiverse_scaleway/get_lb_backend.py +486 -0
- pulumiverse_scaleway/get_lb_backends.py +196 -0
- pulumiverse_scaleway/get_lb_frontend.py +274 -0
- pulumiverse_scaleway/get_lb_frontends.py +196 -0
- pulumiverse_scaleway/get_lb_ips.py +198 -0
- pulumiverse_scaleway/get_lb_route.py +217 -0
- pulumiverse_scaleway/get_lb_routes.py +179 -0
- pulumiverse_scaleway/get_lbs.py +187 -0
- pulumiverse_scaleway/get_loadbalancer.py +339 -0
- pulumiverse_scaleway/get_loadbalancer_certificate.py +230 -0
- pulumiverse_scaleway/get_loadbalancer_ip.py +222 -0
- pulumiverse_scaleway/get_marketplace_image.py +147 -0
- pulumiverse_scaleway/get_mnq_sqs.py +150 -0
- pulumiverse_scaleway/get_object_bucket.py +278 -0
- pulumiverse_scaleway/get_object_bucket_policy.py +157 -0
- pulumiverse_scaleway/get_redis_cluster.py +347 -0
- pulumiverse_scaleway/get_registry_image.py +239 -0
- pulumiverse_scaleway/get_registry_namespace.py +199 -0
- pulumiverse_scaleway/get_secret.py +290 -0
- pulumiverse_scaleway/get_secret_version.py +303 -0
- pulumiverse_scaleway/get_tem_domain.py +367 -0
- pulumiverse_scaleway/get_vpc.py +246 -0
- pulumiverse_scaleway/get_vpc_gateway_network.py +287 -0
- pulumiverse_scaleway/get_vpc_private_network.py +282 -0
- pulumiverse_scaleway/get_vpc_public_gateway.py +304 -0
- pulumiverse_scaleway/get_vpc_public_gateway_dhcp.py +305 -0
- pulumiverse_scaleway/get_vpc_public_gateway_dhcp_reservation.py +382 -0
- pulumiverse_scaleway/get_vpc_public_gateway_ip.py +199 -0
- pulumiverse_scaleway/get_vpc_public_pat_rule.py +313 -0
- pulumiverse_scaleway/get_vpc_routes.py +208 -0
- pulumiverse_scaleway/get_vpcs.py +174 -0
- pulumiverse_scaleway/get_web_host_offer.py +192 -0
- pulumiverse_scaleway/get_webhosting.py +332 -0
- pulumiverse_scaleway/iam_api_key.py +620 -0
- pulumiverse_scaleway/iam_application.py +417 -0
- pulumiverse_scaleway/iam_group.py +566 -0
- pulumiverse_scaleway/iam_group_membership.py +323 -0
- pulumiverse_scaleway/iam_policy.py +727 -0
- pulumiverse_scaleway/iam_ssh_key.py +455 -0
- pulumiverse_scaleway/iam_user.py +466 -0
- pulumiverse_scaleway/instance_image.py +750 -0
- pulumiverse_scaleway/instance_ip.py +483 -0
- pulumiverse_scaleway/instance_ip_reverse_dns.py +308 -0
- pulumiverse_scaleway/instance_placement_group.py +479 -0
- pulumiverse_scaleway/instance_private_nic.py +454 -0
- pulumiverse_scaleway/instance_security_group.py +720 -0
- pulumiverse_scaleway/instance_security_group_rules.py +439 -0
- pulumiverse_scaleway/instance_server.py +1907 -0
- pulumiverse_scaleway/instance_snapshot.py +669 -0
- pulumiverse_scaleway/instance_user_data.py +435 -0
- pulumiverse_scaleway/instance_volume.py +535 -0
- pulumiverse_scaleway/iot_device.py +750 -0
- pulumiverse_scaleway/iot_hub.py +896 -0
- pulumiverse_scaleway/iot_network.py +425 -0
- pulumiverse_scaleway/iot_route.py +660 -0
- pulumiverse_scaleway/ipam_ip.py +666 -0
- pulumiverse_scaleway/ipam_ip_reverse_dns.py +318 -0
- pulumiverse_scaleway/job_definition.py +692 -0
- pulumiverse_scaleway/kubernetes_cluster.py +1538 -0
- pulumiverse_scaleway/kubernetes_node_pool.py +1255 -0
- pulumiverse_scaleway/loadbalancer.py +1095 -0
- pulumiverse_scaleway/loadbalancer_acl.py +520 -0
- pulumiverse_scaleway/loadbalancer_backend.py +1588 -0
- pulumiverse_scaleway/loadbalancer_certificate.py +460 -0
- pulumiverse_scaleway/loadbalancer_frontend.py +829 -0
- pulumiverse_scaleway/loadbalancer_ip.py +514 -0
- pulumiverse_scaleway/loadbalancer_route.py +523 -0
- pulumiverse_scaleway/mnq_nats_account.py +334 -0
- pulumiverse_scaleway/mnq_nats_credentials.py +328 -0
- pulumiverse_scaleway/mnq_sns.py +306 -0
- pulumiverse_scaleway/mnq_sns_credentials.py +413 -0
- pulumiverse_scaleway/mnq_sns_topic.py +659 -0
- pulumiverse_scaleway/mnq_sns_topic_subscription.py +699 -0
- pulumiverse_scaleway/mnq_sqs.py +304 -0
- pulumiverse_scaleway/mnq_sqs_credentials.py +413 -0
- pulumiverse_scaleway/mnq_sqs_queue.py +800 -0
- pulumiverse_scaleway/object_bucket.py +888 -0
- pulumiverse_scaleway/object_bucket_acl.py +592 -0
- pulumiverse_scaleway/object_bucket_lock_configuration.py +393 -0
- pulumiverse_scaleway/object_bucket_policy.py +671 -0
- pulumiverse_scaleway/object_bucket_website_configuration.py +532 -0
- pulumiverse_scaleway/object_item.py +711 -0
- pulumiverse_scaleway/outputs.py +11663 -0
- pulumiverse_scaleway/provider.py +327 -0
- pulumiverse_scaleway/pulumi-plugin.json +6 -0
- pulumiverse_scaleway/py.typed +0 -0
- pulumiverse_scaleway/redis_cluster.py +1166 -0
- pulumiverse_scaleway/registry_namespace.py +458 -0
- pulumiverse_scaleway/sdb_database.py +428 -0
- pulumiverse_scaleway/secret.py +560 -0
- pulumiverse_scaleway/secret_version.py +482 -0
- pulumiverse_scaleway/tem_domain.py +950 -0
- pulumiverse_scaleway/tem_domain_validation.py +303 -0
- pulumiverse_scaleway/vpc.py +536 -0
- pulumiverse_scaleway/vpc_gateway_network.py +866 -0
- pulumiverse_scaleway/vpc_private_network.py +734 -0
- pulumiverse_scaleway/vpc_public_gateway.py +789 -0
- pulumiverse_scaleway/vpc_public_gateway_dhcp.py +933 -0
- pulumiverse_scaleway/vpc_public_gateway_dhcp_reservation.py +514 -0
- pulumiverse_scaleway/vpc_public_gateway_ip.py +457 -0
- pulumiverse_scaleway/vpc_public_gateway_ip_reverse_dns.py +306 -0
- pulumiverse_scaleway/vpc_public_gateway_pat_rule.py +591 -0
- pulumiverse_scaleway/webhosting.py +805 -0
- pulumiverse_scaleway-1.16.0.dist-info/METADATA +69 -0
- pulumiverse_scaleway-1.16.0.dist-info/RECORD +205 -0
- pulumiverse_scaleway-1.16.0.dist-info/WHEEL +5 -0
- pulumiverse_scaleway-1.16.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,502 @@
|
|
|
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__ = [
|
|
18
|
+
'GetContainerResult',
|
|
19
|
+
'AwaitableGetContainerResult',
|
|
20
|
+
'get_container',
|
|
21
|
+
'get_container_output',
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
@pulumi.output_type
|
|
25
|
+
class GetContainerResult:
|
|
26
|
+
"""
|
|
27
|
+
A collection of values returned by getContainer.
|
|
28
|
+
"""
|
|
29
|
+
def __init__(__self__, container_id=None, cpu_limit=None, cron_status=None, deploy=None, description=None, domain_name=None, environment_variables=None, error_message=None, http_option=None, id=None, max_concurrency=None, max_scale=None, memory_limit=None, min_scale=None, name=None, namespace_id=None, port=None, privacy=None, project_id=None, protocol=None, region=None, registry_image=None, registry_sha256=None, sandbox=None, secret_environment_variables=None, status=None, timeout=None):
|
|
30
|
+
if container_id and not isinstance(container_id, str):
|
|
31
|
+
raise TypeError("Expected argument 'container_id' to be a str")
|
|
32
|
+
pulumi.set(__self__, "container_id", container_id)
|
|
33
|
+
if cpu_limit and not isinstance(cpu_limit, int):
|
|
34
|
+
raise TypeError("Expected argument 'cpu_limit' to be a int")
|
|
35
|
+
pulumi.set(__self__, "cpu_limit", cpu_limit)
|
|
36
|
+
if cron_status and not isinstance(cron_status, str):
|
|
37
|
+
raise TypeError("Expected argument 'cron_status' to be a str")
|
|
38
|
+
pulumi.set(__self__, "cron_status", cron_status)
|
|
39
|
+
if deploy and not isinstance(deploy, bool):
|
|
40
|
+
raise TypeError("Expected argument 'deploy' to be a bool")
|
|
41
|
+
pulumi.set(__self__, "deploy", deploy)
|
|
42
|
+
if description and not isinstance(description, str):
|
|
43
|
+
raise TypeError("Expected argument 'description' to be a str")
|
|
44
|
+
pulumi.set(__self__, "description", description)
|
|
45
|
+
if domain_name and not isinstance(domain_name, str):
|
|
46
|
+
raise TypeError("Expected argument 'domain_name' to be a str")
|
|
47
|
+
pulumi.set(__self__, "domain_name", domain_name)
|
|
48
|
+
if environment_variables and not isinstance(environment_variables, dict):
|
|
49
|
+
raise TypeError("Expected argument 'environment_variables' to be a dict")
|
|
50
|
+
pulumi.set(__self__, "environment_variables", environment_variables)
|
|
51
|
+
if error_message and not isinstance(error_message, str):
|
|
52
|
+
raise TypeError("Expected argument 'error_message' to be a str")
|
|
53
|
+
pulumi.set(__self__, "error_message", error_message)
|
|
54
|
+
if http_option and not isinstance(http_option, str):
|
|
55
|
+
raise TypeError("Expected argument 'http_option' to be a str")
|
|
56
|
+
pulumi.set(__self__, "http_option", http_option)
|
|
57
|
+
if id and not isinstance(id, str):
|
|
58
|
+
raise TypeError("Expected argument 'id' to be a str")
|
|
59
|
+
pulumi.set(__self__, "id", id)
|
|
60
|
+
if max_concurrency and not isinstance(max_concurrency, int):
|
|
61
|
+
raise TypeError("Expected argument 'max_concurrency' to be a int")
|
|
62
|
+
pulumi.set(__self__, "max_concurrency", max_concurrency)
|
|
63
|
+
if max_scale and not isinstance(max_scale, int):
|
|
64
|
+
raise TypeError("Expected argument 'max_scale' to be a int")
|
|
65
|
+
pulumi.set(__self__, "max_scale", max_scale)
|
|
66
|
+
if memory_limit and not isinstance(memory_limit, int):
|
|
67
|
+
raise TypeError("Expected argument 'memory_limit' to be a int")
|
|
68
|
+
pulumi.set(__self__, "memory_limit", memory_limit)
|
|
69
|
+
if min_scale and not isinstance(min_scale, int):
|
|
70
|
+
raise TypeError("Expected argument 'min_scale' to be a int")
|
|
71
|
+
pulumi.set(__self__, "min_scale", min_scale)
|
|
72
|
+
if name and not isinstance(name, str):
|
|
73
|
+
raise TypeError("Expected argument 'name' to be a str")
|
|
74
|
+
pulumi.set(__self__, "name", name)
|
|
75
|
+
if namespace_id and not isinstance(namespace_id, str):
|
|
76
|
+
raise TypeError("Expected argument 'namespace_id' to be a str")
|
|
77
|
+
pulumi.set(__self__, "namespace_id", namespace_id)
|
|
78
|
+
if port and not isinstance(port, int):
|
|
79
|
+
raise TypeError("Expected argument 'port' to be a int")
|
|
80
|
+
pulumi.set(__self__, "port", port)
|
|
81
|
+
if privacy and not isinstance(privacy, str):
|
|
82
|
+
raise TypeError("Expected argument 'privacy' to be a str")
|
|
83
|
+
pulumi.set(__self__, "privacy", privacy)
|
|
84
|
+
if project_id and not isinstance(project_id, str):
|
|
85
|
+
raise TypeError("Expected argument 'project_id' to be a str")
|
|
86
|
+
pulumi.set(__self__, "project_id", project_id)
|
|
87
|
+
if protocol and not isinstance(protocol, str):
|
|
88
|
+
raise TypeError("Expected argument 'protocol' to be a str")
|
|
89
|
+
pulumi.set(__self__, "protocol", protocol)
|
|
90
|
+
if region and not isinstance(region, str):
|
|
91
|
+
raise TypeError("Expected argument 'region' to be a str")
|
|
92
|
+
pulumi.set(__self__, "region", region)
|
|
93
|
+
if registry_image and not isinstance(registry_image, str):
|
|
94
|
+
raise TypeError("Expected argument 'registry_image' to be a str")
|
|
95
|
+
pulumi.set(__self__, "registry_image", registry_image)
|
|
96
|
+
if registry_sha256 and not isinstance(registry_sha256, str):
|
|
97
|
+
raise TypeError("Expected argument 'registry_sha256' to be a str")
|
|
98
|
+
pulumi.set(__self__, "registry_sha256", registry_sha256)
|
|
99
|
+
if sandbox and not isinstance(sandbox, str):
|
|
100
|
+
raise TypeError("Expected argument 'sandbox' to be a str")
|
|
101
|
+
pulumi.set(__self__, "sandbox", sandbox)
|
|
102
|
+
if secret_environment_variables and not isinstance(secret_environment_variables, dict):
|
|
103
|
+
raise TypeError("Expected argument 'secret_environment_variables' to be a dict")
|
|
104
|
+
pulumi.set(__self__, "secret_environment_variables", secret_environment_variables)
|
|
105
|
+
if status and not isinstance(status, str):
|
|
106
|
+
raise TypeError("Expected argument 'status' to be a str")
|
|
107
|
+
pulumi.set(__self__, "status", status)
|
|
108
|
+
if timeout and not isinstance(timeout, int):
|
|
109
|
+
raise TypeError("Expected argument 'timeout' to be a int")
|
|
110
|
+
pulumi.set(__self__, "timeout", timeout)
|
|
111
|
+
|
|
112
|
+
@property
|
|
113
|
+
@pulumi.getter(name="containerId")
|
|
114
|
+
def container_id(self) -> Optional[str]:
|
|
115
|
+
return pulumi.get(self, "container_id")
|
|
116
|
+
|
|
117
|
+
@property
|
|
118
|
+
@pulumi.getter(name="cpuLimit")
|
|
119
|
+
def cpu_limit(self) -> int:
|
|
120
|
+
"""
|
|
121
|
+
The amount of vCPU computing resources to allocate to each container. Defaults to 70.
|
|
122
|
+
"""
|
|
123
|
+
return pulumi.get(self, "cpu_limit")
|
|
124
|
+
|
|
125
|
+
@property
|
|
126
|
+
@pulumi.getter(name="cronStatus")
|
|
127
|
+
def cron_status(self) -> str:
|
|
128
|
+
"""
|
|
129
|
+
The cron status of the container.
|
|
130
|
+
"""
|
|
131
|
+
return pulumi.get(self, "cron_status")
|
|
132
|
+
|
|
133
|
+
@property
|
|
134
|
+
@pulumi.getter
|
|
135
|
+
def deploy(self) -> bool:
|
|
136
|
+
"""
|
|
137
|
+
Boolean indicating whether the container is on a production environment.
|
|
138
|
+
"""
|
|
139
|
+
return pulumi.get(self, "deploy")
|
|
140
|
+
|
|
141
|
+
@property
|
|
142
|
+
@pulumi.getter
|
|
143
|
+
def description(self) -> str:
|
|
144
|
+
"""
|
|
145
|
+
The description of the container.
|
|
146
|
+
"""
|
|
147
|
+
return pulumi.get(self, "description")
|
|
148
|
+
|
|
149
|
+
@property
|
|
150
|
+
@pulumi.getter(name="domainName")
|
|
151
|
+
def domain_name(self) -> str:
|
|
152
|
+
"""
|
|
153
|
+
The container domain name.
|
|
154
|
+
"""
|
|
155
|
+
return pulumi.get(self, "domain_name")
|
|
156
|
+
|
|
157
|
+
@property
|
|
158
|
+
@pulumi.getter(name="environmentVariables")
|
|
159
|
+
def environment_variables(self) -> Mapping[str, str]:
|
|
160
|
+
"""
|
|
161
|
+
The [environment](https://www.scaleway.com/en/docs/compute/containers/concepts/#environment-variables) variables of the container.
|
|
162
|
+
"""
|
|
163
|
+
return pulumi.get(self, "environment_variables")
|
|
164
|
+
|
|
165
|
+
@property
|
|
166
|
+
@pulumi.getter(name="errorMessage")
|
|
167
|
+
def error_message(self) -> str:
|
|
168
|
+
"""
|
|
169
|
+
The error message of the container.
|
|
170
|
+
"""
|
|
171
|
+
return pulumi.get(self, "error_message")
|
|
172
|
+
|
|
173
|
+
@property
|
|
174
|
+
@pulumi.getter(name="httpOption")
|
|
175
|
+
def http_option(self) -> str:
|
|
176
|
+
return pulumi.get(self, "http_option")
|
|
177
|
+
|
|
178
|
+
@property
|
|
179
|
+
@pulumi.getter
|
|
180
|
+
def id(self) -> str:
|
|
181
|
+
"""
|
|
182
|
+
The provider-assigned unique ID for this managed resource.
|
|
183
|
+
"""
|
|
184
|
+
return pulumi.get(self, "id")
|
|
185
|
+
|
|
186
|
+
@property
|
|
187
|
+
@pulumi.getter(name="maxConcurrency")
|
|
188
|
+
def max_concurrency(self) -> int:
|
|
189
|
+
"""
|
|
190
|
+
The maximum number of simultaneous requests your container can handle at the same time. Defaults to 50.
|
|
191
|
+
"""
|
|
192
|
+
return pulumi.get(self, "max_concurrency")
|
|
193
|
+
|
|
194
|
+
@property
|
|
195
|
+
@pulumi.getter(name="maxScale")
|
|
196
|
+
def max_scale(self) -> int:
|
|
197
|
+
"""
|
|
198
|
+
The maximum of number of instances this container can scale to. Default to 20.
|
|
199
|
+
"""
|
|
200
|
+
return pulumi.get(self, "max_scale")
|
|
201
|
+
|
|
202
|
+
@property
|
|
203
|
+
@pulumi.getter(name="memoryLimit")
|
|
204
|
+
def memory_limit(self) -> int:
|
|
205
|
+
"""
|
|
206
|
+
The memory computing resources in MB to allocate to each container. Defaults to 128.
|
|
207
|
+
"""
|
|
208
|
+
return pulumi.get(self, "memory_limit")
|
|
209
|
+
|
|
210
|
+
@property
|
|
211
|
+
@pulumi.getter(name="minScale")
|
|
212
|
+
def min_scale(self) -> int:
|
|
213
|
+
"""
|
|
214
|
+
The minimum of running container instances continuously. Defaults to 0.
|
|
215
|
+
"""
|
|
216
|
+
return pulumi.get(self, "min_scale")
|
|
217
|
+
|
|
218
|
+
@property
|
|
219
|
+
@pulumi.getter
|
|
220
|
+
def name(self) -> Optional[str]:
|
|
221
|
+
return pulumi.get(self, "name")
|
|
222
|
+
|
|
223
|
+
@property
|
|
224
|
+
@pulumi.getter(name="namespaceId")
|
|
225
|
+
def namespace_id(self) -> str:
|
|
226
|
+
return pulumi.get(self, "namespace_id")
|
|
227
|
+
|
|
228
|
+
@property
|
|
229
|
+
@pulumi.getter
|
|
230
|
+
def port(self) -> int:
|
|
231
|
+
"""
|
|
232
|
+
The port to expose the container. Defaults to 8080.
|
|
233
|
+
"""
|
|
234
|
+
return pulumi.get(self, "port")
|
|
235
|
+
|
|
236
|
+
@property
|
|
237
|
+
@pulumi.getter
|
|
238
|
+
def privacy(self) -> str:
|
|
239
|
+
"""
|
|
240
|
+
The privacy type define the way to authenticate to your container. Please check our dedicated [section](https://developers.scaleway.com/en/products/containers/api/#protocol-9dd4c8).
|
|
241
|
+
"""
|
|
242
|
+
return pulumi.get(self, "privacy")
|
|
243
|
+
|
|
244
|
+
@property
|
|
245
|
+
@pulumi.getter(name="projectId")
|
|
246
|
+
def project_id(self) -> Optional[str]:
|
|
247
|
+
return pulumi.get(self, "project_id")
|
|
248
|
+
|
|
249
|
+
@property
|
|
250
|
+
@pulumi.getter
|
|
251
|
+
def protocol(self) -> str:
|
|
252
|
+
"""
|
|
253
|
+
The communication [protocol](https://developers.scaleway.com/en/products/containers/api/#protocol-9dd4c8) http1 or h2c. Defaults to http1.
|
|
254
|
+
"""
|
|
255
|
+
return pulumi.get(self, "protocol")
|
|
256
|
+
|
|
257
|
+
@property
|
|
258
|
+
@pulumi.getter
|
|
259
|
+
def region(self) -> Optional[str]:
|
|
260
|
+
"""
|
|
261
|
+
(Defaults to provider `region`) The region in which the container was created.
|
|
262
|
+
"""
|
|
263
|
+
return pulumi.get(self, "region")
|
|
264
|
+
|
|
265
|
+
@property
|
|
266
|
+
@pulumi.getter(name="registryImage")
|
|
267
|
+
def registry_image(self) -> str:
|
|
268
|
+
"""
|
|
269
|
+
The registry image address. e.g: **"rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE"**.
|
|
270
|
+
"""
|
|
271
|
+
return pulumi.get(self, "registry_image")
|
|
272
|
+
|
|
273
|
+
@property
|
|
274
|
+
@pulumi.getter(name="registrySha256")
|
|
275
|
+
def registry_sha256(self) -> str:
|
|
276
|
+
"""
|
|
277
|
+
The sha256 of your source registry image, changing it will re-apply the deployment. Can be any string.
|
|
278
|
+
"""
|
|
279
|
+
return pulumi.get(self, "registry_sha256")
|
|
280
|
+
|
|
281
|
+
@property
|
|
282
|
+
@pulumi.getter
|
|
283
|
+
def sandbox(self) -> str:
|
|
284
|
+
"""
|
|
285
|
+
(Optional) Execution environment of the container.
|
|
286
|
+
"""
|
|
287
|
+
return pulumi.get(self, "sandbox")
|
|
288
|
+
|
|
289
|
+
@property
|
|
290
|
+
@pulumi.getter(name="secretEnvironmentVariables")
|
|
291
|
+
def secret_environment_variables(self) -> Mapping[str, str]:
|
|
292
|
+
return pulumi.get(self, "secret_environment_variables")
|
|
293
|
+
|
|
294
|
+
@property
|
|
295
|
+
@pulumi.getter
|
|
296
|
+
def status(self) -> str:
|
|
297
|
+
"""
|
|
298
|
+
The container status.
|
|
299
|
+
"""
|
|
300
|
+
return pulumi.get(self, "status")
|
|
301
|
+
|
|
302
|
+
@property
|
|
303
|
+
@pulumi.getter
|
|
304
|
+
def timeout(self) -> int:
|
|
305
|
+
"""
|
|
306
|
+
The maximum amount of time in seconds during which your container can process a request before we stop it. Defaults to 300s.
|
|
307
|
+
"""
|
|
308
|
+
return pulumi.get(self, "timeout")
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
class AwaitableGetContainerResult(GetContainerResult):
|
|
312
|
+
# pylint: disable=using-constant-test
|
|
313
|
+
def __await__(self):
|
|
314
|
+
if False:
|
|
315
|
+
yield self
|
|
316
|
+
return GetContainerResult(
|
|
317
|
+
container_id=self.container_id,
|
|
318
|
+
cpu_limit=self.cpu_limit,
|
|
319
|
+
cron_status=self.cron_status,
|
|
320
|
+
deploy=self.deploy,
|
|
321
|
+
description=self.description,
|
|
322
|
+
domain_name=self.domain_name,
|
|
323
|
+
environment_variables=self.environment_variables,
|
|
324
|
+
error_message=self.error_message,
|
|
325
|
+
http_option=self.http_option,
|
|
326
|
+
id=self.id,
|
|
327
|
+
max_concurrency=self.max_concurrency,
|
|
328
|
+
max_scale=self.max_scale,
|
|
329
|
+
memory_limit=self.memory_limit,
|
|
330
|
+
min_scale=self.min_scale,
|
|
331
|
+
name=self.name,
|
|
332
|
+
namespace_id=self.namespace_id,
|
|
333
|
+
port=self.port,
|
|
334
|
+
privacy=self.privacy,
|
|
335
|
+
project_id=self.project_id,
|
|
336
|
+
protocol=self.protocol,
|
|
337
|
+
region=self.region,
|
|
338
|
+
registry_image=self.registry_image,
|
|
339
|
+
registry_sha256=self.registry_sha256,
|
|
340
|
+
sandbox=self.sandbox,
|
|
341
|
+
secret_environment_variables=self.secret_environment_variables,
|
|
342
|
+
status=self.status,
|
|
343
|
+
timeout=self.timeout)
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
def get_container(container_id: Optional[str] = None,
|
|
347
|
+
name: Optional[str] = None,
|
|
348
|
+
namespace_id: Optional[str] = None,
|
|
349
|
+
project_id: Optional[str] = None,
|
|
350
|
+
region: Optional[str] = None,
|
|
351
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetContainerResult:
|
|
352
|
+
"""
|
|
353
|
+
Gets information about the Scaleway Container.
|
|
354
|
+
|
|
355
|
+
For more information consult the [documentation](https://www.scaleway.com/en/docs/faq/serverless-containers/).
|
|
356
|
+
|
|
357
|
+
For more details about the limitation check [containers-limitations](https://www.scaleway.com/en/docs/compute/containers/reference-content/containers-limitations/).
|
|
358
|
+
|
|
359
|
+
You can check also our [containers guide](https://www.scaleway.com/en/docs/compute/containers/concepts/).
|
|
360
|
+
|
|
361
|
+
## Example Usage
|
|
362
|
+
|
|
363
|
+
```python
|
|
364
|
+
import pulumi
|
|
365
|
+
import pulumi_scaleway as scaleway
|
|
366
|
+
import pulumiverse_scaleway as scaleway
|
|
367
|
+
|
|
368
|
+
main = scaleway.ContainerNamespace("main")
|
|
369
|
+
main_container = scaleway.Container("main",
|
|
370
|
+
name="test-container-data",
|
|
371
|
+
namespace_id=main.id)
|
|
372
|
+
# Get info by container name
|
|
373
|
+
by_name = scaleway.get_container_output(namespace_id=main.id,
|
|
374
|
+
name=main_container.name)
|
|
375
|
+
# Get info by container ID
|
|
376
|
+
by_id = scaleway.get_container_output(namespace_id=main.id,
|
|
377
|
+
container_id=main_container.id)
|
|
378
|
+
```
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
:param str name: The unique name of the container name.
|
|
382
|
+
:param str namespace_id: The container namespace ID of the container.
|
|
383
|
+
:param str project_id: The ID of the project the container is associated with.
|
|
384
|
+
|
|
385
|
+
> **Important** Updates to `name` will recreate the container.
|
|
386
|
+
:param str region: (Defaults to provider `region`) The region in which the container was created.
|
|
387
|
+
"""
|
|
388
|
+
__args__ = dict()
|
|
389
|
+
__args__['containerId'] = container_id
|
|
390
|
+
__args__['name'] = name
|
|
391
|
+
__args__['namespaceId'] = namespace_id
|
|
392
|
+
__args__['projectId'] = project_id
|
|
393
|
+
__args__['region'] = region
|
|
394
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
395
|
+
__ret__ = pulumi.runtime.invoke('scaleway:index/getContainer:getContainer', __args__, opts=opts, typ=GetContainerResult).value
|
|
396
|
+
|
|
397
|
+
return AwaitableGetContainerResult(
|
|
398
|
+
container_id=pulumi.get(__ret__, 'container_id'),
|
|
399
|
+
cpu_limit=pulumi.get(__ret__, 'cpu_limit'),
|
|
400
|
+
cron_status=pulumi.get(__ret__, 'cron_status'),
|
|
401
|
+
deploy=pulumi.get(__ret__, 'deploy'),
|
|
402
|
+
description=pulumi.get(__ret__, 'description'),
|
|
403
|
+
domain_name=pulumi.get(__ret__, 'domain_name'),
|
|
404
|
+
environment_variables=pulumi.get(__ret__, 'environment_variables'),
|
|
405
|
+
error_message=pulumi.get(__ret__, 'error_message'),
|
|
406
|
+
http_option=pulumi.get(__ret__, 'http_option'),
|
|
407
|
+
id=pulumi.get(__ret__, 'id'),
|
|
408
|
+
max_concurrency=pulumi.get(__ret__, 'max_concurrency'),
|
|
409
|
+
max_scale=pulumi.get(__ret__, 'max_scale'),
|
|
410
|
+
memory_limit=pulumi.get(__ret__, 'memory_limit'),
|
|
411
|
+
min_scale=pulumi.get(__ret__, 'min_scale'),
|
|
412
|
+
name=pulumi.get(__ret__, 'name'),
|
|
413
|
+
namespace_id=pulumi.get(__ret__, 'namespace_id'),
|
|
414
|
+
port=pulumi.get(__ret__, 'port'),
|
|
415
|
+
privacy=pulumi.get(__ret__, 'privacy'),
|
|
416
|
+
project_id=pulumi.get(__ret__, 'project_id'),
|
|
417
|
+
protocol=pulumi.get(__ret__, 'protocol'),
|
|
418
|
+
region=pulumi.get(__ret__, 'region'),
|
|
419
|
+
registry_image=pulumi.get(__ret__, 'registry_image'),
|
|
420
|
+
registry_sha256=pulumi.get(__ret__, 'registry_sha256'),
|
|
421
|
+
sandbox=pulumi.get(__ret__, 'sandbox'),
|
|
422
|
+
secret_environment_variables=pulumi.get(__ret__, 'secret_environment_variables'),
|
|
423
|
+
status=pulumi.get(__ret__, 'status'),
|
|
424
|
+
timeout=pulumi.get(__ret__, 'timeout'))
|
|
425
|
+
def get_container_output(container_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
426
|
+
name: Optional[pulumi.Input[Optional[str]]] = None,
|
|
427
|
+
namespace_id: Optional[pulumi.Input[str]] = None,
|
|
428
|
+
project_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
429
|
+
region: Optional[pulumi.Input[Optional[str]]] = None,
|
|
430
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetContainerResult]:
|
|
431
|
+
"""
|
|
432
|
+
Gets information about the Scaleway Container.
|
|
433
|
+
|
|
434
|
+
For more information consult the [documentation](https://www.scaleway.com/en/docs/faq/serverless-containers/).
|
|
435
|
+
|
|
436
|
+
For more details about the limitation check [containers-limitations](https://www.scaleway.com/en/docs/compute/containers/reference-content/containers-limitations/).
|
|
437
|
+
|
|
438
|
+
You can check also our [containers guide](https://www.scaleway.com/en/docs/compute/containers/concepts/).
|
|
439
|
+
|
|
440
|
+
## Example Usage
|
|
441
|
+
|
|
442
|
+
```python
|
|
443
|
+
import pulumi
|
|
444
|
+
import pulumi_scaleway as scaleway
|
|
445
|
+
import pulumiverse_scaleway as scaleway
|
|
446
|
+
|
|
447
|
+
main = scaleway.ContainerNamespace("main")
|
|
448
|
+
main_container = scaleway.Container("main",
|
|
449
|
+
name="test-container-data",
|
|
450
|
+
namespace_id=main.id)
|
|
451
|
+
# Get info by container name
|
|
452
|
+
by_name = scaleway.get_container_output(namespace_id=main.id,
|
|
453
|
+
name=main_container.name)
|
|
454
|
+
# Get info by container ID
|
|
455
|
+
by_id = scaleway.get_container_output(namespace_id=main.id,
|
|
456
|
+
container_id=main_container.id)
|
|
457
|
+
```
|
|
458
|
+
|
|
459
|
+
|
|
460
|
+
:param str name: The unique name of the container name.
|
|
461
|
+
:param str namespace_id: The container namespace ID of the container.
|
|
462
|
+
:param str project_id: The ID of the project the container is associated with.
|
|
463
|
+
|
|
464
|
+
> **Important** Updates to `name` will recreate the container.
|
|
465
|
+
:param str region: (Defaults to provider `region`) The region in which the container was created.
|
|
466
|
+
"""
|
|
467
|
+
__args__ = dict()
|
|
468
|
+
__args__['containerId'] = container_id
|
|
469
|
+
__args__['name'] = name
|
|
470
|
+
__args__['namespaceId'] = namespace_id
|
|
471
|
+
__args__['projectId'] = project_id
|
|
472
|
+
__args__['region'] = region
|
|
473
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
474
|
+
__ret__ = pulumi.runtime.invoke_output('scaleway:index/getContainer:getContainer', __args__, opts=opts, typ=GetContainerResult)
|
|
475
|
+
return __ret__.apply(lambda __response__: GetContainerResult(
|
|
476
|
+
container_id=pulumi.get(__response__, 'container_id'),
|
|
477
|
+
cpu_limit=pulumi.get(__response__, 'cpu_limit'),
|
|
478
|
+
cron_status=pulumi.get(__response__, 'cron_status'),
|
|
479
|
+
deploy=pulumi.get(__response__, 'deploy'),
|
|
480
|
+
description=pulumi.get(__response__, 'description'),
|
|
481
|
+
domain_name=pulumi.get(__response__, 'domain_name'),
|
|
482
|
+
environment_variables=pulumi.get(__response__, 'environment_variables'),
|
|
483
|
+
error_message=pulumi.get(__response__, 'error_message'),
|
|
484
|
+
http_option=pulumi.get(__response__, 'http_option'),
|
|
485
|
+
id=pulumi.get(__response__, 'id'),
|
|
486
|
+
max_concurrency=pulumi.get(__response__, 'max_concurrency'),
|
|
487
|
+
max_scale=pulumi.get(__response__, 'max_scale'),
|
|
488
|
+
memory_limit=pulumi.get(__response__, 'memory_limit'),
|
|
489
|
+
min_scale=pulumi.get(__response__, 'min_scale'),
|
|
490
|
+
name=pulumi.get(__response__, 'name'),
|
|
491
|
+
namespace_id=pulumi.get(__response__, 'namespace_id'),
|
|
492
|
+
port=pulumi.get(__response__, 'port'),
|
|
493
|
+
privacy=pulumi.get(__response__, 'privacy'),
|
|
494
|
+
project_id=pulumi.get(__response__, 'project_id'),
|
|
495
|
+
protocol=pulumi.get(__response__, 'protocol'),
|
|
496
|
+
region=pulumi.get(__response__, 'region'),
|
|
497
|
+
registry_image=pulumi.get(__response__, 'registry_image'),
|
|
498
|
+
registry_sha256=pulumi.get(__response__, 'registry_sha256'),
|
|
499
|
+
sandbox=pulumi.get(__response__, 'sandbox'),
|
|
500
|
+
secret_environment_variables=pulumi.get(__response__, 'secret_environment_variables'),
|
|
501
|
+
status=pulumi.get(__response__, 'status'),
|
|
502
|
+
timeout=pulumi.get(__response__, 'timeout')))
|