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,204 @@
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
+ 'GetCockpitResult',
20
+ 'AwaitableGetCockpitResult',
21
+ 'get_cockpit',
22
+ 'get_cockpit_output',
23
+ ]
24
+
25
+ @pulumi.output_type
26
+ class GetCockpitResult:
27
+ """
28
+ A collection of values returned by getCockpit.
29
+ """
30
+ def __init__(__self__, endpoints=None, id=None, plan=None, plan_id=None, project_id=None, push_urls=None):
31
+ if endpoints and not isinstance(endpoints, list):
32
+ raise TypeError("Expected argument 'endpoints' to be a list")
33
+ pulumi.set(__self__, "endpoints", endpoints)
34
+ if id and not isinstance(id, str):
35
+ raise TypeError("Expected argument 'id' to be a str")
36
+ pulumi.set(__self__, "id", id)
37
+ if plan and not isinstance(plan, str):
38
+ raise TypeError("Expected argument 'plan' to be a str")
39
+ pulumi.set(__self__, "plan", plan)
40
+ if plan_id and not isinstance(plan_id, str):
41
+ raise TypeError("Expected argument 'plan_id' to be a str")
42
+ pulumi.set(__self__, "plan_id", plan_id)
43
+ if project_id and not isinstance(project_id, str):
44
+ raise TypeError("Expected argument 'project_id' to be a str")
45
+ pulumi.set(__self__, "project_id", project_id)
46
+ if push_urls and not isinstance(push_urls, list):
47
+ raise TypeError("Expected argument 'push_urls' to be a list")
48
+ pulumi.set(__self__, "push_urls", push_urls)
49
+
50
+ @property
51
+ @pulumi.getter
52
+ def endpoints(self) -> Sequence['outputs.GetCockpitEndpointResult']:
53
+ """
54
+ (Deprecated) A list of [endpoints](https://www.scaleway.com/en/docs/observability/cockpit/concepts/#endpoints) related to Cockpit, each with specific URLs:
55
+ """
56
+ return pulumi.get(self, "endpoints")
57
+
58
+ @property
59
+ @pulumi.getter
60
+ def id(self) -> str:
61
+ """
62
+ The provider-assigned unique ID for this managed resource.
63
+ """
64
+ return pulumi.get(self, "id")
65
+
66
+ @property
67
+ @pulumi.getter
68
+ def plan(self) -> str:
69
+ return pulumi.get(self, "plan")
70
+
71
+ @property
72
+ @pulumi.getter(name="planId")
73
+ def plan_id(self) -> str:
74
+ """
75
+ (Deprecated) ID of the current pricing plan
76
+ """
77
+ return pulumi.get(self, "plan_id")
78
+
79
+ @property
80
+ @pulumi.getter(name="projectId")
81
+ def project_id(self) -> Optional[str]:
82
+ return pulumi.get(self, "project_id")
83
+
84
+ @property
85
+ @pulumi.getter(name="pushUrls")
86
+ def push_urls(self) -> Sequence['outputs.GetCockpitPushUrlResult']:
87
+ return pulumi.get(self, "push_urls")
88
+
89
+
90
+ class AwaitableGetCockpitResult(GetCockpitResult):
91
+ # pylint: disable=using-constant-test
92
+ def __await__(self):
93
+ if False:
94
+ yield self
95
+ return GetCockpitResult(
96
+ endpoints=self.endpoints,
97
+ id=self.id,
98
+ plan=self.plan,
99
+ plan_id=self.plan_id,
100
+ project_id=self.project_id,
101
+ push_urls=self.push_urls)
102
+
103
+
104
+ def get_cockpit(project_id: Optional[str] = None,
105
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetCockpitResult:
106
+ """
107
+ > **Important:** The data source `Cockpit` has been deprecated and will no longer be supported. Instead, use resource `Cockpit`.
108
+
109
+ > **Note:**
110
+ As of April 2024, Cockpit has introduced [regionalization](https://www.scaleway.com/en/docs/observability/cockpit/concepts/#region) to offer more flexibility and resilience.
111
+ If you have created customized dashboards with data for your Scaleway resources before April 2024, you will need to update your queries in Grafana, with the new regionalized data sources.
112
+
113
+ The `Cockpit` data source is used to retrieve information about a Scaleway Cockpit associated with a given Project. This can be the default Project or a specific Project identified by its ID.
114
+
115
+ Refer to Cockpit's [product documentation](https://www.scaleway.com/en/docs/observability/cockpit/concepts/) and [API documentation](https://www.scaleway.com/en/developers/api/cockpit/regional-api) for more information.
116
+
117
+ ## Retrieve a Cockpit
118
+
119
+ The following commands allow you to:
120
+
121
+ - get information on the Cockpit associated with your Scaleway default Project
122
+ - get information on the Cockpit associated with a specific Scaleway Project
123
+
124
+ ```python
125
+ import pulumi
126
+ import pulumi_scaleway as scaleway
127
+
128
+ # Get the default Project's Cockpit
129
+ main = scaleway.get_cockpit()
130
+ ```
131
+
132
+ ```python
133
+ import pulumi
134
+ import pulumi_scaleway as scaleway
135
+
136
+ # Get a specific Project's Cockpit
137
+ main = scaleway.get_cockpit(project_id="11111111-1111-1111-1111-111111111111")
138
+ ```
139
+
140
+
141
+ :param str project_id: Specifies the ID of the Scaleway Project that the Cockpit is associated with. If not specified, it defaults to the Project ID specified in the provider configuration.
142
+ """
143
+ __args__ = dict()
144
+ __args__['projectId'] = project_id
145
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
146
+ __ret__ = pulumi.runtime.invoke('scaleway:index/getCockpit:getCockpit', __args__, opts=opts, typ=GetCockpitResult).value
147
+
148
+ return AwaitableGetCockpitResult(
149
+ endpoints=pulumi.get(__ret__, 'endpoints'),
150
+ id=pulumi.get(__ret__, 'id'),
151
+ plan=pulumi.get(__ret__, 'plan'),
152
+ plan_id=pulumi.get(__ret__, 'plan_id'),
153
+ project_id=pulumi.get(__ret__, 'project_id'),
154
+ push_urls=pulumi.get(__ret__, 'push_urls'))
155
+ def get_cockpit_output(project_id: Optional[pulumi.Input[Optional[str]]] = None,
156
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetCockpitResult]:
157
+ """
158
+ > **Important:** The data source `Cockpit` has been deprecated and will no longer be supported. Instead, use resource `Cockpit`.
159
+
160
+ > **Note:**
161
+ As of April 2024, Cockpit has introduced [regionalization](https://www.scaleway.com/en/docs/observability/cockpit/concepts/#region) to offer more flexibility and resilience.
162
+ If you have created customized dashboards with data for your Scaleway resources before April 2024, you will need to update your queries in Grafana, with the new regionalized data sources.
163
+
164
+ The `Cockpit` data source is used to retrieve information about a Scaleway Cockpit associated with a given Project. This can be the default Project or a specific Project identified by its ID.
165
+
166
+ Refer to Cockpit's [product documentation](https://www.scaleway.com/en/docs/observability/cockpit/concepts/) and [API documentation](https://www.scaleway.com/en/developers/api/cockpit/regional-api) for more information.
167
+
168
+ ## Retrieve a Cockpit
169
+
170
+ The following commands allow you to:
171
+
172
+ - get information on the Cockpit associated with your Scaleway default Project
173
+ - get information on the Cockpit associated with a specific Scaleway Project
174
+
175
+ ```python
176
+ import pulumi
177
+ import pulumi_scaleway as scaleway
178
+
179
+ # Get the default Project's Cockpit
180
+ main = scaleway.get_cockpit()
181
+ ```
182
+
183
+ ```python
184
+ import pulumi
185
+ import pulumi_scaleway as scaleway
186
+
187
+ # Get a specific Project's Cockpit
188
+ main = scaleway.get_cockpit(project_id="11111111-1111-1111-1111-111111111111")
189
+ ```
190
+
191
+
192
+ :param str project_id: Specifies the ID of the Scaleway Project that the Cockpit is associated with. If not specified, it defaults to the Project ID specified in the provider configuration.
193
+ """
194
+ __args__ = dict()
195
+ __args__['projectId'] = project_id
196
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
197
+ __ret__ = pulumi.runtime.invoke_output('scaleway:index/getCockpit:getCockpit', __args__, opts=opts, typ=GetCockpitResult)
198
+ return __ret__.apply(lambda __response__: GetCockpitResult(
199
+ endpoints=pulumi.get(__response__, 'endpoints'),
200
+ id=pulumi.get(__response__, 'id'),
201
+ plan=pulumi.get(__response__, 'plan'),
202
+ plan_id=pulumi.get(__response__, 'plan_id'),
203
+ project_id=pulumi.get(__response__, 'project_id'),
204
+ push_urls=pulumi.get(__response__, 'push_urls')))
@@ -0,0 +1,125 @@
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
+ 'GetCockpitPlanResult',
19
+ 'AwaitableGetCockpitPlanResult',
20
+ 'get_cockpit_plan',
21
+ 'get_cockpit_plan_output',
22
+ ]
23
+
24
+ @pulumi.output_type
25
+ class GetCockpitPlanResult:
26
+ """
27
+ A collection of values returned by getCockpitPlan.
28
+ """
29
+ def __init__(__self__, id=None, name=None):
30
+ if id and not isinstance(id, str):
31
+ raise TypeError("Expected argument 'id' to be a str")
32
+ pulumi.set(__self__, "id", id)
33
+ if name and not isinstance(name, str):
34
+ raise TypeError("Expected argument 'name' to be a str")
35
+ pulumi.set(__self__, "name", name)
36
+
37
+ @property
38
+ @pulumi.getter
39
+ def id(self) -> str:
40
+ """
41
+ The provider-assigned unique ID for this managed resource.
42
+ """
43
+ return pulumi.get(self, "id")
44
+
45
+ @property
46
+ @pulumi.getter
47
+ def name(self) -> str:
48
+ return pulumi.get(self, "name")
49
+
50
+
51
+ class AwaitableGetCockpitPlanResult(GetCockpitPlanResult):
52
+ # pylint: disable=using-constant-test
53
+ def __await__(self):
54
+ if False:
55
+ yield self
56
+ return GetCockpitPlanResult(
57
+ id=self.id,
58
+ name=self.name)
59
+
60
+
61
+ def get_cockpit_plan(name: Optional[str] = None,
62
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetCockpitPlanResult:
63
+ """
64
+ The `get_cockpit_plan` data source is used to fetch details about a specific Scaleway Cockpit pricing plan. This information can then be used to configure resources like `Cockpit`.
65
+
66
+ Find out more about [pricing plans](https://console.scaleway.com/cockpit/plans) in the Scaleway console.
67
+
68
+ Refer to Cockpit's [product documentation](https://www.scaleway.com/en/docs/observability/cockpit/concepts/) and [API documentation](https://www.scaleway.com/en/developers/api/cockpit/regional-api) for more information.
69
+
70
+ ## Fetch and associate a pricing plan to a Cockpit
71
+
72
+ The following command shows how to fetch information about the `premium` pricing plan and how to associate it with the Cockpit of your Scaleway default Project.
73
+
74
+ ```python
75
+ import pulumi
76
+ import pulumi_scaleway as scaleway
77
+ import pulumiverse_scaleway as scaleway
78
+
79
+ premium = scaleway.get_cockpit_plan(name="premium")
80
+ main = scaleway.Cockpit("main", plan=premium.id)
81
+ ```
82
+
83
+
84
+ :param str name: Name of the pricing plan you want to retrieve information about.
85
+ """
86
+ __args__ = dict()
87
+ __args__['name'] = name
88
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
89
+ __ret__ = pulumi.runtime.invoke('scaleway:index/getCockpitPlan:getCockpitPlan', __args__, opts=opts, typ=GetCockpitPlanResult).value
90
+
91
+ return AwaitableGetCockpitPlanResult(
92
+ id=pulumi.get(__ret__, 'id'),
93
+ name=pulumi.get(__ret__, 'name'))
94
+ def get_cockpit_plan_output(name: Optional[pulumi.Input[str]] = None,
95
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetCockpitPlanResult]:
96
+ """
97
+ The `get_cockpit_plan` data source is used to fetch details about a specific Scaleway Cockpit pricing plan. This information can then be used to configure resources like `Cockpit`.
98
+
99
+ Find out more about [pricing plans](https://console.scaleway.com/cockpit/plans) in the Scaleway console.
100
+
101
+ Refer to Cockpit's [product documentation](https://www.scaleway.com/en/docs/observability/cockpit/concepts/) and [API documentation](https://www.scaleway.com/en/developers/api/cockpit/regional-api) for more information.
102
+
103
+ ## Fetch and associate a pricing plan to a Cockpit
104
+
105
+ The following command shows how to fetch information about the `premium` pricing plan and how to associate it with the Cockpit of your Scaleway default Project.
106
+
107
+ ```python
108
+ import pulumi
109
+ import pulumi_scaleway as scaleway
110
+ import pulumiverse_scaleway as scaleway
111
+
112
+ premium = scaleway.get_cockpit_plan(name="premium")
113
+ main = scaleway.Cockpit("main", plan=premium.id)
114
+ ```
115
+
116
+
117
+ :param str name: Name of the pricing plan you want to retrieve information about.
118
+ """
119
+ __args__ = dict()
120
+ __args__['name'] = name
121
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
122
+ __ret__ = pulumi.runtime.invoke_output('scaleway:index/getCockpitPlan:getCockpitPlan', __args__, opts=opts, typ=GetCockpitPlanResult)
123
+ return __ret__.apply(lambda __response__: GetCockpitPlanResult(
124
+ id=pulumi.get(__response__, 'id'),
125
+ name=pulumi.get(__response__, 'name')))
@@ -0,0 +1,262 @@
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
+ 'GetCockpitSourceResult',
19
+ 'AwaitableGetCockpitSourceResult',
20
+ 'get_cockpit_source',
21
+ 'get_cockpit_source_output',
22
+ ]
23
+
24
+ @pulumi.output_type
25
+ class GetCockpitSourceResult:
26
+ """
27
+ A collection of values returned by getCockpitSource.
28
+ """
29
+ def __init__(__self__, created_at=None, id=None, name=None, origin=None, project_id=None, region=None, retention_days=None, synchronized_with_grafana=None, type=None, updated_at=None, url=None):
30
+ if created_at and not isinstance(created_at, str):
31
+ raise TypeError("Expected argument 'created_at' to be a str")
32
+ pulumi.set(__self__, "created_at", created_at)
33
+ if id and not isinstance(id, str):
34
+ raise TypeError("Expected argument 'id' to be a str")
35
+ pulumi.set(__self__, "id", id)
36
+ if name and not isinstance(name, str):
37
+ raise TypeError("Expected argument 'name' to be a str")
38
+ pulumi.set(__self__, "name", name)
39
+ if origin and not isinstance(origin, str):
40
+ raise TypeError("Expected argument 'origin' to be a str")
41
+ pulumi.set(__self__, "origin", origin)
42
+ if project_id and not isinstance(project_id, str):
43
+ raise TypeError("Expected argument 'project_id' to be a str")
44
+ pulumi.set(__self__, "project_id", project_id)
45
+ if region and not isinstance(region, str):
46
+ raise TypeError("Expected argument 'region' to be a str")
47
+ pulumi.set(__self__, "region", region)
48
+ if retention_days and not isinstance(retention_days, int):
49
+ raise TypeError("Expected argument 'retention_days' to be a int")
50
+ pulumi.set(__self__, "retention_days", retention_days)
51
+ if synchronized_with_grafana and not isinstance(synchronized_with_grafana, bool):
52
+ raise TypeError("Expected argument 'synchronized_with_grafana' to be a bool")
53
+ pulumi.set(__self__, "synchronized_with_grafana", synchronized_with_grafana)
54
+ if type and not isinstance(type, str):
55
+ raise TypeError("Expected argument 'type' to be a str")
56
+ pulumi.set(__self__, "type", type)
57
+ if updated_at and not isinstance(updated_at, str):
58
+ raise TypeError("Expected argument 'updated_at' to be a str")
59
+ pulumi.set(__self__, "updated_at", updated_at)
60
+ if url and not isinstance(url, str):
61
+ raise TypeError("Expected argument 'url' to be a str")
62
+ pulumi.set(__self__, "url", url)
63
+
64
+ @property
65
+ @pulumi.getter(name="createdAt")
66
+ def created_at(self) -> str:
67
+ """
68
+ The date and time the data source was created (in RFC 3339 format).
69
+ """
70
+ return pulumi.get(self, "created_at")
71
+
72
+ @property
73
+ @pulumi.getter
74
+ def id(self) -> str:
75
+ """
76
+ The unique identifier of the data source in the `{region}/{id}` format.
77
+ """
78
+ return pulumi.get(self, "id")
79
+
80
+ @property
81
+ @pulumi.getter
82
+ def name(self) -> str:
83
+ return pulumi.get(self, "name")
84
+
85
+ @property
86
+ @pulumi.getter
87
+ def origin(self) -> str:
88
+ """
89
+ The origin of the data source.
90
+ """
91
+ return pulumi.get(self, "origin")
92
+
93
+ @property
94
+ @pulumi.getter(name="projectId")
95
+ def project_id(self) -> str:
96
+ return pulumi.get(self, "project_id")
97
+
98
+ @property
99
+ @pulumi.getter
100
+ def region(self) -> str:
101
+ return pulumi.get(self, "region")
102
+
103
+ @property
104
+ @pulumi.getter(name="retentionDays")
105
+ def retention_days(self) -> int:
106
+ """
107
+ The number of days the data is retained in the data source.
108
+ """
109
+ return pulumi.get(self, "retention_days")
110
+
111
+ @property
112
+ @pulumi.getter(name="synchronizedWithGrafana")
113
+ def synchronized_with_grafana(self) -> bool:
114
+ """
115
+ Indicates whether the data source is synchronized with Grafana.
116
+ """
117
+ return pulumi.get(self, "synchronized_with_grafana")
118
+
119
+ @property
120
+ @pulumi.getter
121
+ def type(self) -> str:
122
+ return pulumi.get(self, "type")
123
+
124
+ @property
125
+ @pulumi.getter(name="updatedAt")
126
+ def updated_at(self) -> str:
127
+ """
128
+ The date and time the data source was last updated (in RFC 3339 format).
129
+ """
130
+ return pulumi.get(self, "updated_at")
131
+
132
+ @property
133
+ @pulumi.getter
134
+ def url(self) -> str:
135
+ """
136
+ The URL of the Cockpit data source.
137
+ """
138
+ return pulumi.get(self, "url")
139
+
140
+
141
+ class AwaitableGetCockpitSourceResult(GetCockpitSourceResult):
142
+ # pylint: disable=using-constant-test
143
+ def __await__(self):
144
+ if False:
145
+ yield self
146
+ return GetCockpitSourceResult(
147
+ created_at=self.created_at,
148
+ id=self.id,
149
+ name=self.name,
150
+ origin=self.origin,
151
+ project_id=self.project_id,
152
+ region=self.region,
153
+ retention_days=self.retention_days,
154
+ synchronized_with_grafana=self.synchronized_with_grafana,
155
+ type=self.type,
156
+ updated_at=self.updated_at,
157
+ url=self.url)
158
+
159
+
160
+ def get_cockpit_source(id: Optional[str] = None,
161
+ name: Optional[str] = None,
162
+ origin: Optional[str] = None,
163
+ project_id: Optional[str] = None,
164
+ type: Optional[str] = None,
165
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetCockpitSourceResult:
166
+ """
167
+ The `CockpitSource` data source allows you to retrieve information about a specific [data source](https://www.scaleway.com/en/docs/observability/cockpit/concepts/#data-sources) in Scaleway's Cockpit.
168
+
169
+ Refer to Cockpit's [product documentation](https://www.scaleway.com/en/docs/observability/cockpit/concepts/) and [API documentation](https://www.scaleway.com/en/developers/api/cockpit/regional-api) for more information.
170
+
171
+ ## Example Usage
172
+
173
+ ### Retrieve a specific data source by ID
174
+
175
+ The following example retrieves a Cockpit data source by its unique ID.
176
+
177
+ ```python
178
+ import pulumi
179
+ import pulumi_scaleway as scaleway
180
+
181
+ example = scaleway.get_cockpit_source(id="fr-par/11111111-1111-1111-1111-111111111111")
182
+ ```
183
+
184
+
185
+ :param str id: The unique identifier of the Cockpit data source in the `{region}/{id}` format. If specified, other filters are ignored.
186
+ :param str name: The name of the data source.
187
+ :param str origin: The origin of the data source. Possible values are:
188
+ :param str project_id: The ID of the Project the data source is associated with. Defaults to the Project ID specified in the provider configuration.
189
+ :param str type: The [type](https://www.scaleway.com/en/docs/observability/cockpit/concepts/#data-types) of data source. Possible values are: `metrics`, `logs`, or `traces`.
190
+ """
191
+ __args__ = dict()
192
+ __args__['id'] = id
193
+ __args__['name'] = name
194
+ __args__['origin'] = origin
195
+ __args__['projectId'] = project_id
196
+ __args__['type'] = type
197
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
198
+ __ret__ = pulumi.runtime.invoke('scaleway:index/getCockpitSource:getCockpitSource', __args__, opts=opts, typ=GetCockpitSourceResult).value
199
+
200
+ return AwaitableGetCockpitSourceResult(
201
+ created_at=pulumi.get(__ret__, 'created_at'),
202
+ id=pulumi.get(__ret__, 'id'),
203
+ name=pulumi.get(__ret__, 'name'),
204
+ origin=pulumi.get(__ret__, 'origin'),
205
+ project_id=pulumi.get(__ret__, 'project_id'),
206
+ region=pulumi.get(__ret__, 'region'),
207
+ retention_days=pulumi.get(__ret__, 'retention_days'),
208
+ synchronized_with_grafana=pulumi.get(__ret__, 'synchronized_with_grafana'),
209
+ type=pulumi.get(__ret__, 'type'),
210
+ updated_at=pulumi.get(__ret__, 'updated_at'),
211
+ url=pulumi.get(__ret__, 'url'))
212
+ def get_cockpit_source_output(id: Optional[pulumi.Input[Optional[str]]] = None,
213
+ name: Optional[pulumi.Input[Optional[str]]] = None,
214
+ origin: Optional[pulumi.Input[Optional[str]]] = None,
215
+ project_id: Optional[pulumi.Input[Optional[str]]] = None,
216
+ type: Optional[pulumi.Input[Optional[str]]] = None,
217
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetCockpitSourceResult]:
218
+ """
219
+ The `CockpitSource` data source allows you to retrieve information about a specific [data source](https://www.scaleway.com/en/docs/observability/cockpit/concepts/#data-sources) in Scaleway's Cockpit.
220
+
221
+ Refer to Cockpit's [product documentation](https://www.scaleway.com/en/docs/observability/cockpit/concepts/) and [API documentation](https://www.scaleway.com/en/developers/api/cockpit/regional-api) for more information.
222
+
223
+ ## Example Usage
224
+
225
+ ### Retrieve a specific data source by ID
226
+
227
+ The following example retrieves a Cockpit data source by its unique ID.
228
+
229
+ ```python
230
+ import pulumi
231
+ import pulumi_scaleway as scaleway
232
+
233
+ example = scaleway.get_cockpit_source(id="fr-par/11111111-1111-1111-1111-111111111111")
234
+ ```
235
+
236
+
237
+ :param str id: The unique identifier of the Cockpit data source in the `{region}/{id}` format. If specified, other filters are ignored.
238
+ :param str name: The name of the data source.
239
+ :param str origin: The origin of the data source. Possible values are:
240
+ :param str project_id: The ID of the Project the data source is associated with. Defaults to the Project ID specified in the provider configuration.
241
+ :param str type: The [type](https://www.scaleway.com/en/docs/observability/cockpit/concepts/#data-types) of data source. Possible values are: `metrics`, `logs`, or `traces`.
242
+ """
243
+ __args__ = dict()
244
+ __args__['id'] = id
245
+ __args__['name'] = name
246
+ __args__['origin'] = origin
247
+ __args__['projectId'] = project_id
248
+ __args__['type'] = type
249
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
250
+ __ret__ = pulumi.runtime.invoke_output('scaleway:index/getCockpitSource:getCockpitSource', __args__, opts=opts, typ=GetCockpitSourceResult)
251
+ return __ret__.apply(lambda __response__: GetCockpitSourceResult(
252
+ created_at=pulumi.get(__response__, 'created_at'),
253
+ id=pulumi.get(__response__, 'id'),
254
+ name=pulumi.get(__response__, 'name'),
255
+ origin=pulumi.get(__response__, 'origin'),
256
+ project_id=pulumi.get(__response__, 'project_id'),
257
+ region=pulumi.get(__response__, 'region'),
258
+ retention_days=pulumi.get(__response__, 'retention_days'),
259
+ synchronized_with_grafana=pulumi.get(__response__, 'synchronized_with_grafana'),
260
+ type=pulumi.get(__response__, 'type'),
261
+ updated_at=pulumi.get(__response__, 'updated_at'),
262
+ url=pulumi.get(__response__, 'url')))