pulumiverse-scaleway 1.16.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of pulumiverse-scaleway might be problematic. Click here for more details.

Files changed (205) hide show
  1. pulumiverse_scaleway/__init__.py +1073 -0
  2. pulumiverse_scaleway/_inputs.py +8665 -0
  3. pulumiverse_scaleway/_utilities.py +327 -0
  4. pulumiverse_scaleway/account_project.py +316 -0
  5. pulumiverse_scaleway/account_ssh_key.py +450 -0
  6. pulumiverse_scaleway/apple_silicon_server.py +564 -0
  7. pulumiverse_scaleway/baremetal_server.py +1390 -0
  8. pulumiverse_scaleway/block_snapshot.py +391 -0
  9. pulumiverse_scaleway/block_volume.py +521 -0
  10. pulumiverse_scaleway/cockpit.py +299 -0
  11. pulumiverse_scaleway/cockpit_alert_manager.py +345 -0
  12. pulumiverse_scaleway/cockpit_grafana_user.py +326 -0
  13. pulumiverse_scaleway/cockpit_source.py +481 -0
  14. pulumiverse_scaleway/cockpit_token.py +461 -0
  15. pulumiverse_scaleway/config/__init__.py +8 -0
  16. pulumiverse_scaleway/config/__init__.pyi +56 -0
  17. pulumiverse_scaleway/config/vars.py +78 -0
  18. pulumiverse_scaleway/container.py +1387 -0
  19. pulumiverse_scaleway/container_cron.py +493 -0
  20. pulumiverse_scaleway/container_domain.py +400 -0
  21. pulumiverse_scaleway/container_namespace.py +589 -0
  22. pulumiverse_scaleway/container_token.py +454 -0
  23. pulumiverse_scaleway/container_trigger.py +478 -0
  24. pulumiverse_scaleway/database.py +407 -0
  25. pulumiverse_scaleway/database_acl.py +332 -0
  26. pulumiverse_scaleway/database_backup.py +574 -0
  27. pulumiverse_scaleway/database_instance.py +1636 -0
  28. pulumiverse_scaleway/database_privilege.py +422 -0
  29. pulumiverse_scaleway/database_read_replica.py +528 -0
  30. pulumiverse_scaleway/database_user.py +446 -0
  31. pulumiverse_scaleway/documentdb_database.py +450 -0
  32. pulumiverse_scaleway/documentdb_instance.py +812 -0
  33. pulumiverse_scaleway/documentdb_private_network_endpoint.py +352 -0
  34. pulumiverse_scaleway/documentdb_privilege.py +402 -0
  35. pulumiverse_scaleway/documentdb_read_replica.py +405 -0
  36. pulumiverse_scaleway/documentdb_user.py +442 -0
  37. pulumiverse_scaleway/domain_record.py +1074 -0
  38. pulumiverse_scaleway/domain_zone.py +458 -0
  39. pulumiverse_scaleway/flexible_ip.py +702 -0
  40. pulumiverse_scaleway/flexible_ip_mac_address.py +510 -0
  41. pulumiverse_scaleway/function.py +1145 -0
  42. pulumiverse_scaleway/function_cron.py +480 -0
  43. pulumiverse_scaleway/function_domain.py +361 -0
  44. pulumiverse_scaleway/function_namespace.py +533 -0
  45. pulumiverse_scaleway/function_token.py +462 -0
  46. pulumiverse_scaleway/function_trigger.py +478 -0
  47. pulumiverse_scaleway/get_account_project.py +164 -0
  48. pulumiverse_scaleway/get_account_ssh_key.py +201 -0
  49. pulumiverse_scaleway/get_availability_zones.py +131 -0
  50. pulumiverse_scaleway/get_baremetal_offer.py +245 -0
  51. pulumiverse_scaleway/get_baremetal_option.py +168 -0
  52. pulumiverse_scaleway/get_baremetal_os.py +174 -0
  53. pulumiverse_scaleway/get_baremetal_server.py +411 -0
  54. pulumiverse_scaleway/get_billing_consumptions.py +134 -0
  55. pulumiverse_scaleway/get_billing_invoices.py +154 -0
  56. pulumiverse_scaleway/get_block_snapshot.py +170 -0
  57. pulumiverse_scaleway/get_block_volume.py +186 -0
  58. pulumiverse_scaleway/get_cockpit.py +179 -0
  59. pulumiverse_scaleway/get_cockpit_plan.py +113 -0
  60. pulumiverse_scaleway/get_config.py +180 -0
  61. pulumiverse_scaleway/get_container.py +502 -0
  62. pulumiverse_scaleway/get_container_namespace.py +262 -0
  63. pulumiverse_scaleway/get_database.py +187 -0
  64. pulumiverse_scaleway/get_database_acl.py +143 -0
  65. pulumiverse_scaleway/get_database_backup.py +253 -0
  66. pulumiverse_scaleway/get_database_instance.py +404 -0
  67. pulumiverse_scaleway/get_database_privilege.py +181 -0
  68. pulumiverse_scaleway/get_documentdb_database.py +198 -0
  69. pulumiverse_scaleway/get_documentdb_instance.py +245 -0
  70. pulumiverse_scaleway/get_documentdb_load_balancer_endpoint.py +198 -0
  71. pulumiverse_scaleway/get_domain_record.py +334 -0
  72. pulumiverse_scaleway/get_domain_zone.py +225 -0
  73. pulumiverse_scaleway/get_flexible_ip.py +247 -0
  74. pulumiverse_scaleway/get_flexible_ips.py +240 -0
  75. pulumiverse_scaleway/get_function.py +357 -0
  76. pulumiverse_scaleway/get_function_namespace.py +227 -0
  77. pulumiverse_scaleway/get_iam_api_key.py +210 -0
  78. pulumiverse_scaleway/get_iam_application.py +210 -0
  79. pulumiverse_scaleway/get_iam_group.py +236 -0
  80. pulumiverse_scaleway/get_iam_ssh_key.py +212 -0
  81. pulumiverse_scaleway/get_iam_user.py +157 -0
  82. pulumiverse_scaleway/get_instance_image.py +305 -0
  83. pulumiverse_scaleway/get_instance_ip.py +204 -0
  84. pulumiverse_scaleway/get_instance_placement_group.py +212 -0
  85. pulumiverse_scaleway/get_instance_private_nic.py +215 -0
  86. pulumiverse_scaleway/get_instance_security_group.py +268 -0
  87. pulumiverse_scaleway/get_instance_server.py +502 -0
  88. pulumiverse_scaleway/get_instance_servers.py +187 -0
  89. pulumiverse_scaleway/get_instance_snapshot.py +248 -0
  90. pulumiverse_scaleway/get_instance_volume.py +215 -0
  91. pulumiverse_scaleway/get_iot_device.py +257 -0
  92. pulumiverse_scaleway/get_iot_hub.py +322 -0
  93. pulumiverse_scaleway/get_ipam_ip.py +419 -0
  94. pulumiverse_scaleway/get_ipam_ips.py +358 -0
  95. pulumiverse_scaleway/get_k8s_version.py +196 -0
  96. pulumiverse_scaleway/get_kubernetes_cluster.py +417 -0
  97. pulumiverse_scaleway/get_kubernetes_node_pool.py +436 -0
  98. pulumiverse_scaleway/get_lb_acls.py +198 -0
  99. pulumiverse_scaleway/get_lb_backend.py +486 -0
  100. pulumiverse_scaleway/get_lb_backends.py +196 -0
  101. pulumiverse_scaleway/get_lb_frontend.py +274 -0
  102. pulumiverse_scaleway/get_lb_frontends.py +196 -0
  103. pulumiverse_scaleway/get_lb_ips.py +198 -0
  104. pulumiverse_scaleway/get_lb_route.py +217 -0
  105. pulumiverse_scaleway/get_lb_routes.py +179 -0
  106. pulumiverse_scaleway/get_lbs.py +187 -0
  107. pulumiverse_scaleway/get_loadbalancer.py +339 -0
  108. pulumiverse_scaleway/get_loadbalancer_certificate.py +230 -0
  109. pulumiverse_scaleway/get_loadbalancer_ip.py +222 -0
  110. pulumiverse_scaleway/get_marketplace_image.py +147 -0
  111. pulumiverse_scaleway/get_mnq_sqs.py +150 -0
  112. pulumiverse_scaleway/get_object_bucket.py +278 -0
  113. pulumiverse_scaleway/get_object_bucket_policy.py +157 -0
  114. pulumiverse_scaleway/get_redis_cluster.py +347 -0
  115. pulumiverse_scaleway/get_registry_image.py +239 -0
  116. pulumiverse_scaleway/get_registry_namespace.py +199 -0
  117. pulumiverse_scaleway/get_secret.py +290 -0
  118. pulumiverse_scaleway/get_secret_version.py +303 -0
  119. pulumiverse_scaleway/get_tem_domain.py +367 -0
  120. pulumiverse_scaleway/get_vpc.py +246 -0
  121. pulumiverse_scaleway/get_vpc_gateway_network.py +287 -0
  122. pulumiverse_scaleway/get_vpc_private_network.py +282 -0
  123. pulumiverse_scaleway/get_vpc_public_gateway.py +304 -0
  124. pulumiverse_scaleway/get_vpc_public_gateway_dhcp.py +305 -0
  125. pulumiverse_scaleway/get_vpc_public_gateway_dhcp_reservation.py +382 -0
  126. pulumiverse_scaleway/get_vpc_public_gateway_ip.py +199 -0
  127. pulumiverse_scaleway/get_vpc_public_pat_rule.py +313 -0
  128. pulumiverse_scaleway/get_vpc_routes.py +208 -0
  129. pulumiverse_scaleway/get_vpcs.py +174 -0
  130. pulumiverse_scaleway/get_web_host_offer.py +192 -0
  131. pulumiverse_scaleway/get_webhosting.py +332 -0
  132. pulumiverse_scaleway/iam_api_key.py +620 -0
  133. pulumiverse_scaleway/iam_application.py +417 -0
  134. pulumiverse_scaleway/iam_group.py +566 -0
  135. pulumiverse_scaleway/iam_group_membership.py +323 -0
  136. pulumiverse_scaleway/iam_policy.py +727 -0
  137. pulumiverse_scaleway/iam_ssh_key.py +455 -0
  138. pulumiverse_scaleway/iam_user.py +466 -0
  139. pulumiverse_scaleway/instance_image.py +750 -0
  140. pulumiverse_scaleway/instance_ip.py +483 -0
  141. pulumiverse_scaleway/instance_ip_reverse_dns.py +308 -0
  142. pulumiverse_scaleway/instance_placement_group.py +479 -0
  143. pulumiverse_scaleway/instance_private_nic.py +454 -0
  144. pulumiverse_scaleway/instance_security_group.py +720 -0
  145. pulumiverse_scaleway/instance_security_group_rules.py +439 -0
  146. pulumiverse_scaleway/instance_server.py +1907 -0
  147. pulumiverse_scaleway/instance_snapshot.py +669 -0
  148. pulumiverse_scaleway/instance_user_data.py +435 -0
  149. pulumiverse_scaleway/instance_volume.py +535 -0
  150. pulumiverse_scaleway/iot_device.py +750 -0
  151. pulumiverse_scaleway/iot_hub.py +896 -0
  152. pulumiverse_scaleway/iot_network.py +425 -0
  153. pulumiverse_scaleway/iot_route.py +660 -0
  154. pulumiverse_scaleway/ipam_ip.py +666 -0
  155. pulumiverse_scaleway/ipam_ip_reverse_dns.py +318 -0
  156. pulumiverse_scaleway/job_definition.py +692 -0
  157. pulumiverse_scaleway/kubernetes_cluster.py +1538 -0
  158. pulumiverse_scaleway/kubernetes_node_pool.py +1255 -0
  159. pulumiverse_scaleway/loadbalancer.py +1095 -0
  160. pulumiverse_scaleway/loadbalancer_acl.py +520 -0
  161. pulumiverse_scaleway/loadbalancer_backend.py +1588 -0
  162. pulumiverse_scaleway/loadbalancer_certificate.py +460 -0
  163. pulumiverse_scaleway/loadbalancer_frontend.py +829 -0
  164. pulumiverse_scaleway/loadbalancer_ip.py +514 -0
  165. pulumiverse_scaleway/loadbalancer_route.py +523 -0
  166. pulumiverse_scaleway/mnq_nats_account.py +334 -0
  167. pulumiverse_scaleway/mnq_nats_credentials.py +328 -0
  168. pulumiverse_scaleway/mnq_sns.py +306 -0
  169. pulumiverse_scaleway/mnq_sns_credentials.py +413 -0
  170. pulumiverse_scaleway/mnq_sns_topic.py +659 -0
  171. pulumiverse_scaleway/mnq_sns_topic_subscription.py +699 -0
  172. pulumiverse_scaleway/mnq_sqs.py +304 -0
  173. pulumiverse_scaleway/mnq_sqs_credentials.py +413 -0
  174. pulumiverse_scaleway/mnq_sqs_queue.py +800 -0
  175. pulumiverse_scaleway/object_bucket.py +888 -0
  176. pulumiverse_scaleway/object_bucket_acl.py +592 -0
  177. pulumiverse_scaleway/object_bucket_lock_configuration.py +393 -0
  178. pulumiverse_scaleway/object_bucket_policy.py +671 -0
  179. pulumiverse_scaleway/object_bucket_website_configuration.py +532 -0
  180. pulumiverse_scaleway/object_item.py +711 -0
  181. pulumiverse_scaleway/outputs.py +11663 -0
  182. pulumiverse_scaleway/provider.py +327 -0
  183. pulumiverse_scaleway/pulumi-plugin.json +6 -0
  184. pulumiverse_scaleway/py.typed +0 -0
  185. pulumiverse_scaleway/redis_cluster.py +1166 -0
  186. pulumiverse_scaleway/registry_namespace.py +458 -0
  187. pulumiverse_scaleway/sdb_database.py +428 -0
  188. pulumiverse_scaleway/secret.py +560 -0
  189. pulumiverse_scaleway/secret_version.py +482 -0
  190. pulumiverse_scaleway/tem_domain.py +950 -0
  191. pulumiverse_scaleway/tem_domain_validation.py +303 -0
  192. pulumiverse_scaleway/vpc.py +536 -0
  193. pulumiverse_scaleway/vpc_gateway_network.py +866 -0
  194. pulumiverse_scaleway/vpc_private_network.py +734 -0
  195. pulumiverse_scaleway/vpc_public_gateway.py +789 -0
  196. pulumiverse_scaleway/vpc_public_gateway_dhcp.py +933 -0
  197. pulumiverse_scaleway/vpc_public_gateway_dhcp_reservation.py +514 -0
  198. pulumiverse_scaleway/vpc_public_gateway_ip.py +457 -0
  199. pulumiverse_scaleway/vpc_public_gateway_ip_reverse_dns.py +306 -0
  200. pulumiverse_scaleway/vpc_public_gateway_pat_rule.py +591 -0
  201. pulumiverse_scaleway/webhosting.py +805 -0
  202. pulumiverse_scaleway-1.16.0.dist-info/METADATA +69 -0
  203. pulumiverse_scaleway-1.16.0.dist-info/RECORD +205 -0
  204. pulumiverse_scaleway-1.16.0.dist-info/WHEEL +5 -0
  205. pulumiverse_scaleway-1.16.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,240 @@
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
+ from . import outputs
17
+
18
+ __all__ = [
19
+ 'GetFlexibleIpsResult',
20
+ 'AwaitableGetFlexibleIpsResult',
21
+ 'get_flexible_ips',
22
+ 'get_flexible_ips_output',
23
+ ]
24
+
25
+ @pulumi.output_type
26
+ class GetFlexibleIpsResult:
27
+ """
28
+ A collection of values returned by getFlexibleIps.
29
+ """
30
+ def __init__(__self__, id=None, ips=None, organization_id=None, project_id=None, server_ids=None, tags=None, zone=None):
31
+ if id and not isinstance(id, str):
32
+ raise TypeError("Expected argument 'id' to be a str")
33
+ pulumi.set(__self__, "id", id)
34
+ if ips and not isinstance(ips, list):
35
+ raise TypeError("Expected argument 'ips' to be a list")
36
+ pulumi.set(__self__, "ips", ips)
37
+ if organization_id and not isinstance(organization_id, str):
38
+ raise TypeError("Expected argument 'organization_id' to be a str")
39
+ pulumi.set(__self__, "organization_id", organization_id)
40
+ if project_id and not isinstance(project_id, str):
41
+ raise TypeError("Expected argument 'project_id' to be a str")
42
+ pulumi.set(__self__, "project_id", project_id)
43
+ if server_ids and not isinstance(server_ids, list):
44
+ raise TypeError("Expected argument 'server_ids' to be a list")
45
+ pulumi.set(__self__, "server_ids", server_ids)
46
+ if tags and not isinstance(tags, list):
47
+ raise TypeError("Expected argument 'tags' to be a list")
48
+ pulumi.set(__self__, "tags", tags)
49
+ if zone and not isinstance(zone, str):
50
+ raise TypeError("Expected argument 'zone' to be a str")
51
+ pulumi.set(__self__, "zone", zone)
52
+
53
+ @property
54
+ @pulumi.getter
55
+ def id(self) -> str:
56
+ """
57
+ The provider-assigned unique ID for this managed resource.
58
+ """
59
+ return pulumi.get(self, "id")
60
+
61
+ @property
62
+ @pulumi.getter
63
+ def ips(self) -> Sequence['outputs.GetFlexibleIpsIpResult']:
64
+ """
65
+ List of found flexible IPS
66
+ """
67
+ return pulumi.get(self, "ips")
68
+
69
+ @property
70
+ @pulumi.getter(name="organizationId")
71
+ def organization_id(self) -> str:
72
+ """
73
+ (Defaults to provider `organization_id`) The ID of the organization the IP is in.
74
+ """
75
+ return pulumi.get(self, "organization_id")
76
+
77
+ @property
78
+ @pulumi.getter(name="projectId")
79
+ def project_id(self) -> str:
80
+ """
81
+ (Defaults to provider `project_id`) The ID of the project the IP is in.
82
+ """
83
+ return pulumi.get(self, "project_id")
84
+
85
+ @property
86
+ @pulumi.getter(name="serverIds")
87
+ def server_ids(self) -> Optional[Sequence[str]]:
88
+ return pulumi.get(self, "server_ids")
89
+
90
+ @property
91
+ @pulumi.getter
92
+ def tags(self) -> Optional[Sequence[str]]:
93
+ """
94
+ The list of tags which are attached to the flexible IP.
95
+ """
96
+ return pulumi.get(self, "tags")
97
+
98
+ @property
99
+ @pulumi.getter
100
+ def zone(self) -> str:
101
+ """
102
+ (Defaults to provider `zone`) The zone in which the MAC address exist.
103
+ """
104
+ return pulumi.get(self, "zone")
105
+
106
+
107
+ class AwaitableGetFlexibleIpsResult(GetFlexibleIpsResult):
108
+ # pylint: disable=using-constant-test
109
+ def __await__(self):
110
+ if False:
111
+ yield self
112
+ return GetFlexibleIpsResult(
113
+ id=self.id,
114
+ ips=self.ips,
115
+ organization_id=self.organization_id,
116
+ project_id=self.project_id,
117
+ server_ids=self.server_ids,
118
+ tags=self.tags,
119
+ zone=self.zone)
120
+
121
+
122
+ def get_flexible_ips(project_id: Optional[str] = None,
123
+ server_ids: Optional[Sequence[str]] = None,
124
+ tags: Optional[Sequence[str]] = None,
125
+ zone: Optional[str] = None,
126
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetFlexibleIpsResult:
127
+ """
128
+ Gets information about multiple Flexible IPs.
129
+
130
+ ## Example Usage
131
+
132
+ ```python
133
+ import pulumi
134
+ import pulumi_scaleway as scaleway
135
+ import pulumiverse_scaleway as scaleway
136
+
137
+ # Find ips that share the same tags
138
+ fips_by_tags = scaleway.get_flexible_ips(tags=["a tag"])
139
+ # Find ips that share the same Server ID
140
+ my_offer = scaleway.get_baremetal_offer(name="EM-B112X-SSD")
141
+ base = scaleway.BaremetalServer("base",
142
+ name="MyServer",
143
+ offer=my_offer.offer_id,
144
+ install_config_afterward=True)
145
+ first = scaleway.FlexibleIp("first",
146
+ server_id=base.id,
147
+ tags=[
148
+ "foo",
149
+ "first",
150
+ ])
151
+ second = scaleway.FlexibleIp("second",
152
+ server_id=base.id,
153
+ tags=[
154
+ "foo",
155
+ "second",
156
+ ])
157
+ fips_by_server_id = scaleway.get_flexible_ips_output(server_ids=[base.id])
158
+ ```
159
+
160
+
161
+ :param str project_id: (Defaults to provider `project_id`) The ID of the project the IP is in.
162
+ :param Sequence[str] server_ids: List of server IDs used as filter. IPs with these exact server IDs are listed.
163
+ :param Sequence[str] tags: List of tags used as filter. IPs with these exact tags are listed.
164
+ :param str zone: `zone`) The zone in which IPs exist.
165
+ """
166
+ __args__ = dict()
167
+ __args__['projectId'] = project_id
168
+ __args__['serverIds'] = server_ids
169
+ __args__['tags'] = tags
170
+ __args__['zone'] = zone
171
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
172
+ __ret__ = pulumi.runtime.invoke('scaleway:index/getFlexibleIps:getFlexibleIps', __args__, opts=opts, typ=GetFlexibleIpsResult).value
173
+
174
+ return AwaitableGetFlexibleIpsResult(
175
+ id=pulumi.get(__ret__, 'id'),
176
+ ips=pulumi.get(__ret__, 'ips'),
177
+ organization_id=pulumi.get(__ret__, 'organization_id'),
178
+ project_id=pulumi.get(__ret__, 'project_id'),
179
+ server_ids=pulumi.get(__ret__, 'server_ids'),
180
+ tags=pulumi.get(__ret__, 'tags'),
181
+ zone=pulumi.get(__ret__, 'zone'))
182
+ def get_flexible_ips_output(project_id: Optional[pulumi.Input[Optional[str]]] = None,
183
+ server_ids: Optional[pulumi.Input[Optional[Sequence[str]]]] = None,
184
+ tags: Optional[pulumi.Input[Optional[Sequence[str]]]] = None,
185
+ zone: Optional[pulumi.Input[Optional[str]]] = None,
186
+ opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetFlexibleIpsResult]:
187
+ """
188
+ Gets information about multiple Flexible IPs.
189
+
190
+ ## Example Usage
191
+
192
+ ```python
193
+ import pulumi
194
+ import pulumi_scaleway as scaleway
195
+ import pulumiverse_scaleway as scaleway
196
+
197
+ # Find ips that share the same tags
198
+ fips_by_tags = scaleway.get_flexible_ips(tags=["a tag"])
199
+ # Find ips that share the same Server ID
200
+ my_offer = scaleway.get_baremetal_offer(name="EM-B112X-SSD")
201
+ base = scaleway.BaremetalServer("base",
202
+ name="MyServer",
203
+ offer=my_offer.offer_id,
204
+ install_config_afterward=True)
205
+ first = scaleway.FlexibleIp("first",
206
+ server_id=base.id,
207
+ tags=[
208
+ "foo",
209
+ "first",
210
+ ])
211
+ second = scaleway.FlexibleIp("second",
212
+ server_id=base.id,
213
+ tags=[
214
+ "foo",
215
+ "second",
216
+ ])
217
+ fips_by_server_id = scaleway.get_flexible_ips_output(server_ids=[base.id])
218
+ ```
219
+
220
+
221
+ :param str project_id: (Defaults to provider `project_id`) The ID of the project the IP is in.
222
+ :param Sequence[str] server_ids: List of server IDs used as filter. IPs with these exact server IDs are listed.
223
+ :param Sequence[str] tags: List of tags used as filter. IPs with these exact tags are listed.
224
+ :param str zone: `zone`) The zone in which IPs exist.
225
+ """
226
+ __args__ = dict()
227
+ __args__['projectId'] = project_id
228
+ __args__['serverIds'] = server_ids
229
+ __args__['tags'] = tags
230
+ __args__['zone'] = zone
231
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
232
+ __ret__ = pulumi.runtime.invoke_output('scaleway:index/getFlexibleIps:getFlexibleIps', __args__, opts=opts, typ=GetFlexibleIpsResult)
233
+ return __ret__.apply(lambda __response__: GetFlexibleIpsResult(
234
+ id=pulumi.get(__response__, 'id'),
235
+ ips=pulumi.get(__response__, 'ips'),
236
+ organization_id=pulumi.get(__response__, 'organization_id'),
237
+ project_id=pulumi.get(__response__, 'project_id'),
238
+ server_ids=pulumi.get(__response__, 'server_ids'),
239
+ tags=pulumi.get(__response__, 'tags'),
240
+ zone=pulumi.get(__response__, 'zone')))
@@ -0,0 +1,357 @@
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
+ 'GetFunctionResult',
19
+ 'AwaitableGetFunctionResult',
20
+ 'get_function',
21
+ 'get_function_output',
22
+ ]
23
+
24
+ @pulumi.output_type
25
+ class GetFunctionResult:
26
+ """
27
+ A collection of values returned by getFunction.
28
+ """
29
+ def __init__(__self__, cpu_limit=None, deploy=None, description=None, domain_name=None, environment_variables=None, function_id=None, handler=None, http_option=None, id=None, max_scale=None, memory_limit=None, min_scale=None, name=None, namespace_id=None, organization_id=None, privacy=None, project_id=None, region=None, runtime=None, sandbox=None, secret_environment_variables=None, timeout=None, zip_file=None, zip_hash=None):
30
+ if cpu_limit and not isinstance(cpu_limit, int):
31
+ raise TypeError("Expected argument 'cpu_limit' to be a int")
32
+ pulumi.set(__self__, "cpu_limit", cpu_limit)
33
+ if deploy and not isinstance(deploy, bool):
34
+ raise TypeError("Expected argument 'deploy' to be a bool")
35
+ pulumi.set(__self__, "deploy", deploy)
36
+ if description and not isinstance(description, str):
37
+ raise TypeError("Expected argument 'description' to be a str")
38
+ pulumi.set(__self__, "description", description)
39
+ if domain_name and not isinstance(domain_name, str):
40
+ raise TypeError("Expected argument 'domain_name' to be a str")
41
+ pulumi.set(__self__, "domain_name", domain_name)
42
+ if environment_variables and not isinstance(environment_variables, dict):
43
+ raise TypeError("Expected argument 'environment_variables' to be a dict")
44
+ pulumi.set(__self__, "environment_variables", environment_variables)
45
+ if function_id and not isinstance(function_id, str):
46
+ raise TypeError("Expected argument 'function_id' to be a str")
47
+ pulumi.set(__self__, "function_id", function_id)
48
+ if handler and not isinstance(handler, str):
49
+ raise TypeError("Expected argument 'handler' to be a str")
50
+ pulumi.set(__self__, "handler", handler)
51
+ if http_option and not isinstance(http_option, str):
52
+ raise TypeError("Expected argument 'http_option' to be a str")
53
+ pulumi.set(__self__, "http_option", http_option)
54
+ if id and not isinstance(id, str):
55
+ raise TypeError("Expected argument 'id' to be a str")
56
+ pulumi.set(__self__, "id", id)
57
+ if max_scale and not isinstance(max_scale, int):
58
+ raise TypeError("Expected argument 'max_scale' to be a int")
59
+ pulumi.set(__self__, "max_scale", max_scale)
60
+ if memory_limit and not isinstance(memory_limit, int):
61
+ raise TypeError("Expected argument 'memory_limit' to be a int")
62
+ pulumi.set(__self__, "memory_limit", memory_limit)
63
+ if min_scale and not isinstance(min_scale, int):
64
+ raise TypeError("Expected argument 'min_scale' to be a int")
65
+ pulumi.set(__self__, "min_scale", min_scale)
66
+ if name and not isinstance(name, str):
67
+ raise TypeError("Expected argument 'name' to be a str")
68
+ pulumi.set(__self__, "name", name)
69
+ if namespace_id and not isinstance(namespace_id, str):
70
+ raise TypeError("Expected argument 'namespace_id' to be a str")
71
+ pulumi.set(__self__, "namespace_id", namespace_id)
72
+ if organization_id and not isinstance(organization_id, str):
73
+ raise TypeError("Expected argument 'organization_id' to be a str")
74
+ pulumi.set(__self__, "organization_id", organization_id)
75
+ if privacy and not isinstance(privacy, str):
76
+ raise TypeError("Expected argument 'privacy' to be a str")
77
+ pulumi.set(__self__, "privacy", privacy)
78
+ if project_id and not isinstance(project_id, str):
79
+ raise TypeError("Expected argument 'project_id' to be a str")
80
+ pulumi.set(__self__, "project_id", project_id)
81
+ if region and not isinstance(region, str):
82
+ raise TypeError("Expected argument 'region' to be a str")
83
+ pulumi.set(__self__, "region", region)
84
+ if runtime and not isinstance(runtime, str):
85
+ raise TypeError("Expected argument 'runtime' to be a str")
86
+ pulumi.set(__self__, "runtime", runtime)
87
+ if sandbox and not isinstance(sandbox, str):
88
+ raise TypeError("Expected argument 'sandbox' to be a str")
89
+ pulumi.set(__self__, "sandbox", sandbox)
90
+ if secret_environment_variables and not isinstance(secret_environment_variables, dict):
91
+ raise TypeError("Expected argument 'secret_environment_variables' to be a dict")
92
+ pulumi.set(__self__, "secret_environment_variables", secret_environment_variables)
93
+ if timeout and not isinstance(timeout, int):
94
+ raise TypeError("Expected argument 'timeout' to be a int")
95
+ pulumi.set(__self__, "timeout", timeout)
96
+ if zip_file and not isinstance(zip_file, str):
97
+ raise TypeError("Expected argument 'zip_file' to be a str")
98
+ pulumi.set(__self__, "zip_file", zip_file)
99
+ if zip_hash and not isinstance(zip_hash, str):
100
+ raise TypeError("Expected argument 'zip_hash' to be a str")
101
+ pulumi.set(__self__, "zip_hash", zip_hash)
102
+
103
+ @property
104
+ @pulumi.getter(name="cpuLimit")
105
+ def cpu_limit(self) -> int:
106
+ return pulumi.get(self, "cpu_limit")
107
+
108
+ @property
109
+ @pulumi.getter
110
+ def deploy(self) -> bool:
111
+ return pulumi.get(self, "deploy")
112
+
113
+ @property
114
+ @pulumi.getter
115
+ def description(self) -> str:
116
+ return pulumi.get(self, "description")
117
+
118
+ @property
119
+ @pulumi.getter(name="domainName")
120
+ def domain_name(self) -> str:
121
+ return pulumi.get(self, "domain_name")
122
+
123
+ @property
124
+ @pulumi.getter(name="environmentVariables")
125
+ def environment_variables(self) -> Mapping[str, str]:
126
+ return pulumi.get(self, "environment_variables")
127
+
128
+ @property
129
+ @pulumi.getter(name="functionId")
130
+ def function_id(self) -> Optional[str]:
131
+ return pulumi.get(self, "function_id")
132
+
133
+ @property
134
+ @pulumi.getter
135
+ def handler(self) -> str:
136
+ return pulumi.get(self, "handler")
137
+
138
+ @property
139
+ @pulumi.getter(name="httpOption")
140
+ def http_option(self) -> str:
141
+ return pulumi.get(self, "http_option")
142
+
143
+ @property
144
+ @pulumi.getter
145
+ def id(self) -> str:
146
+ """
147
+ The provider-assigned unique ID for this managed resource.
148
+ """
149
+ return pulumi.get(self, "id")
150
+
151
+ @property
152
+ @pulumi.getter(name="maxScale")
153
+ def max_scale(self) -> int:
154
+ return pulumi.get(self, "max_scale")
155
+
156
+ @property
157
+ @pulumi.getter(name="memoryLimit")
158
+ def memory_limit(self) -> int:
159
+ return pulumi.get(self, "memory_limit")
160
+
161
+ @property
162
+ @pulumi.getter(name="minScale")
163
+ def min_scale(self) -> int:
164
+ return pulumi.get(self, "min_scale")
165
+
166
+ @property
167
+ @pulumi.getter
168
+ def name(self) -> Optional[str]:
169
+ return pulumi.get(self, "name")
170
+
171
+ @property
172
+ @pulumi.getter(name="namespaceId")
173
+ def namespace_id(self) -> str:
174
+ return pulumi.get(self, "namespace_id")
175
+
176
+ @property
177
+ @pulumi.getter(name="organizationId")
178
+ def organization_id(self) -> str:
179
+ return pulumi.get(self, "organization_id")
180
+
181
+ @property
182
+ @pulumi.getter
183
+ def privacy(self) -> str:
184
+ return pulumi.get(self, "privacy")
185
+
186
+ @property
187
+ @pulumi.getter(name="projectId")
188
+ def project_id(self) -> Optional[str]:
189
+ return pulumi.get(self, "project_id")
190
+
191
+ @property
192
+ @pulumi.getter
193
+ def region(self) -> Optional[str]:
194
+ return pulumi.get(self, "region")
195
+
196
+ @property
197
+ @pulumi.getter
198
+ def runtime(self) -> str:
199
+ return pulumi.get(self, "runtime")
200
+
201
+ @property
202
+ @pulumi.getter
203
+ def sandbox(self) -> str:
204
+ return pulumi.get(self, "sandbox")
205
+
206
+ @property
207
+ @pulumi.getter(name="secretEnvironmentVariables")
208
+ def secret_environment_variables(self) -> Mapping[str, str]:
209
+ return pulumi.get(self, "secret_environment_variables")
210
+
211
+ @property
212
+ @pulumi.getter
213
+ def timeout(self) -> int:
214
+ return pulumi.get(self, "timeout")
215
+
216
+ @property
217
+ @pulumi.getter(name="zipFile")
218
+ def zip_file(self) -> str:
219
+ return pulumi.get(self, "zip_file")
220
+
221
+ @property
222
+ @pulumi.getter(name="zipHash")
223
+ def zip_hash(self) -> str:
224
+ return pulumi.get(self, "zip_hash")
225
+
226
+
227
+ class AwaitableGetFunctionResult(GetFunctionResult):
228
+ # pylint: disable=using-constant-test
229
+ def __await__(self):
230
+ if False:
231
+ yield self
232
+ return GetFunctionResult(
233
+ cpu_limit=self.cpu_limit,
234
+ deploy=self.deploy,
235
+ description=self.description,
236
+ domain_name=self.domain_name,
237
+ environment_variables=self.environment_variables,
238
+ function_id=self.function_id,
239
+ handler=self.handler,
240
+ http_option=self.http_option,
241
+ id=self.id,
242
+ max_scale=self.max_scale,
243
+ memory_limit=self.memory_limit,
244
+ min_scale=self.min_scale,
245
+ name=self.name,
246
+ namespace_id=self.namespace_id,
247
+ organization_id=self.organization_id,
248
+ privacy=self.privacy,
249
+ project_id=self.project_id,
250
+ region=self.region,
251
+ runtime=self.runtime,
252
+ sandbox=self.sandbox,
253
+ secret_environment_variables=self.secret_environment_variables,
254
+ timeout=self.timeout,
255
+ zip_file=self.zip_file,
256
+ zip_hash=self.zip_hash)
257
+
258
+
259
+ def get_function(function_id: Optional[str] = None,
260
+ name: Optional[str] = None,
261
+ namespace_id: Optional[str] = None,
262
+ project_id: Optional[str] = None,
263
+ region: Optional[str] = None,
264
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetFunctionResult:
265
+ """
266
+ Gets information about a function.
267
+
268
+
269
+ :param str function_id: The function id. Only one of `name` and `function_id` should be specified.
270
+ :param str name: The function name. Only one of `name` and `namespace_id` should be specified.
271
+ :param str namespace_id: The namespace id associated with this function.
272
+ :param str project_id: The ID of the project the function is associated with.
273
+ :param str region: `region`) The region in which the function exists.
274
+ """
275
+ __args__ = dict()
276
+ __args__['functionId'] = function_id
277
+ __args__['name'] = name
278
+ __args__['namespaceId'] = namespace_id
279
+ __args__['projectId'] = project_id
280
+ __args__['region'] = region
281
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
282
+ __ret__ = pulumi.runtime.invoke('scaleway:index/getFunction:getFunction', __args__, opts=opts, typ=GetFunctionResult).value
283
+
284
+ return AwaitableGetFunctionResult(
285
+ cpu_limit=pulumi.get(__ret__, 'cpu_limit'),
286
+ deploy=pulumi.get(__ret__, 'deploy'),
287
+ description=pulumi.get(__ret__, 'description'),
288
+ domain_name=pulumi.get(__ret__, 'domain_name'),
289
+ environment_variables=pulumi.get(__ret__, 'environment_variables'),
290
+ function_id=pulumi.get(__ret__, 'function_id'),
291
+ handler=pulumi.get(__ret__, 'handler'),
292
+ http_option=pulumi.get(__ret__, 'http_option'),
293
+ id=pulumi.get(__ret__, 'id'),
294
+ max_scale=pulumi.get(__ret__, 'max_scale'),
295
+ memory_limit=pulumi.get(__ret__, 'memory_limit'),
296
+ min_scale=pulumi.get(__ret__, 'min_scale'),
297
+ name=pulumi.get(__ret__, 'name'),
298
+ namespace_id=pulumi.get(__ret__, 'namespace_id'),
299
+ organization_id=pulumi.get(__ret__, 'organization_id'),
300
+ privacy=pulumi.get(__ret__, 'privacy'),
301
+ project_id=pulumi.get(__ret__, 'project_id'),
302
+ region=pulumi.get(__ret__, 'region'),
303
+ runtime=pulumi.get(__ret__, 'runtime'),
304
+ sandbox=pulumi.get(__ret__, 'sandbox'),
305
+ secret_environment_variables=pulumi.get(__ret__, 'secret_environment_variables'),
306
+ timeout=pulumi.get(__ret__, 'timeout'),
307
+ zip_file=pulumi.get(__ret__, 'zip_file'),
308
+ zip_hash=pulumi.get(__ret__, 'zip_hash'))
309
+ def get_function_output(function_id: Optional[pulumi.Input[Optional[str]]] = None,
310
+ name: Optional[pulumi.Input[Optional[str]]] = None,
311
+ namespace_id: Optional[pulumi.Input[str]] = None,
312
+ project_id: Optional[pulumi.Input[Optional[str]]] = None,
313
+ region: Optional[pulumi.Input[Optional[str]]] = None,
314
+ opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetFunctionResult]:
315
+ """
316
+ Gets information about a function.
317
+
318
+
319
+ :param str function_id: The function id. Only one of `name` and `function_id` should be specified.
320
+ :param str name: The function name. Only one of `name` and `namespace_id` should be specified.
321
+ :param str namespace_id: The namespace id associated with this function.
322
+ :param str project_id: The ID of the project the function is associated with.
323
+ :param str region: `region`) The region in which the function exists.
324
+ """
325
+ __args__ = dict()
326
+ __args__['functionId'] = function_id
327
+ __args__['name'] = name
328
+ __args__['namespaceId'] = namespace_id
329
+ __args__['projectId'] = project_id
330
+ __args__['region'] = region
331
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
332
+ __ret__ = pulumi.runtime.invoke_output('scaleway:index/getFunction:getFunction', __args__, opts=opts, typ=GetFunctionResult)
333
+ return __ret__.apply(lambda __response__: GetFunctionResult(
334
+ cpu_limit=pulumi.get(__response__, 'cpu_limit'),
335
+ deploy=pulumi.get(__response__, 'deploy'),
336
+ description=pulumi.get(__response__, 'description'),
337
+ domain_name=pulumi.get(__response__, 'domain_name'),
338
+ environment_variables=pulumi.get(__response__, 'environment_variables'),
339
+ function_id=pulumi.get(__response__, 'function_id'),
340
+ handler=pulumi.get(__response__, 'handler'),
341
+ http_option=pulumi.get(__response__, 'http_option'),
342
+ id=pulumi.get(__response__, 'id'),
343
+ max_scale=pulumi.get(__response__, 'max_scale'),
344
+ memory_limit=pulumi.get(__response__, 'memory_limit'),
345
+ min_scale=pulumi.get(__response__, 'min_scale'),
346
+ name=pulumi.get(__response__, 'name'),
347
+ namespace_id=pulumi.get(__response__, 'namespace_id'),
348
+ organization_id=pulumi.get(__response__, 'organization_id'),
349
+ privacy=pulumi.get(__response__, 'privacy'),
350
+ project_id=pulumi.get(__response__, 'project_id'),
351
+ region=pulumi.get(__response__, 'region'),
352
+ runtime=pulumi.get(__response__, 'runtime'),
353
+ sandbox=pulumi.get(__response__, 'sandbox'),
354
+ secret_environment_variables=pulumi.get(__response__, 'secret_environment_variables'),
355
+ timeout=pulumi.get(__response__, 'timeout'),
356
+ zip_file=pulumi.get(__response__, 'zip_file'),
357
+ zip_hash=pulumi.get(__response__, 'zip_hash')))