pulumiverse-scaleway 1.16.0a1730122985__py3-none-any.whl → 1.17.0a1730194779__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 (34) hide show
  1. pulumiverse_scaleway/__init__.py +10 -0
  2. pulumiverse_scaleway/_inputs.py +165 -60
  3. pulumiverse_scaleway/block_snapshot.py +37 -27
  4. pulumiverse_scaleway/block_volume.py +49 -43
  5. pulumiverse_scaleway/cockpit.py +39 -24
  6. pulumiverse_scaleway/cockpit_alert_manager.py +42 -38
  7. pulumiverse_scaleway/cockpit_grafana_user.py +39 -31
  8. pulumiverse_scaleway/cockpit_source.py +86 -50
  9. pulumiverse_scaleway/cockpit_token.py +45 -27
  10. pulumiverse_scaleway/database_instance.py +13 -8
  11. pulumiverse_scaleway/domain_record.py +88 -46
  12. pulumiverse_scaleway/domain_zone.py +47 -75
  13. pulumiverse_scaleway/get_block_snapshot.py +16 -12
  14. pulumiverse_scaleway/get_block_volume.py +10 -8
  15. pulumiverse_scaleway/get_cockpit.py +44 -19
  16. pulumiverse_scaleway/get_cockpit_plan.py +18 -6
  17. pulumiverse_scaleway/get_domain_record.py +40 -34
  18. pulumiverse_scaleway/get_domain_zone.py +12 -36
  19. pulumiverse_scaleway/get_mnq_sns.py +150 -0
  20. pulumiverse_scaleway/get_secret.py +77 -29
  21. pulumiverse_scaleway/get_secret_version.py +75 -38
  22. pulumiverse_scaleway/iam_policy.py +46 -0
  23. pulumiverse_scaleway/instance_server.py +56 -4
  24. pulumiverse_scaleway/loadbalancer_frontend.py +4 -4
  25. pulumiverse_scaleway/outputs.py +169 -55
  26. pulumiverse_scaleway/pulumi-plugin.json +1 -1
  27. pulumiverse_scaleway/secret.py +162 -59
  28. pulumiverse_scaleway/secret_version.py +59 -54
  29. pulumiverse_scaleway/tem_domain.py +9 -4
  30. pulumiverse_scaleway/tem_webhook.py +640 -0
  31. {pulumiverse_scaleway-1.16.0a1730122985.dist-info → pulumiverse_scaleway-1.17.0a1730194779.dist-info}/METADATA +1 -1
  32. {pulumiverse_scaleway-1.16.0a1730122985.dist-info → pulumiverse_scaleway-1.17.0a1730194779.dist-info}/RECORD +34 -32
  33. {pulumiverse_scaleway-1.16.0a1730122985.dist-info → pulumiverse_scaleway-1.17.0a1730194779.dist-info}/WHEEL +0 -0
  34. {pulumiverse_scaleway-1.16.0a1730122985.dist-info → pulumiverse_scaleway-1.17.0a1730194779.dist-info}/top_level.txt +0 -0
@@ -25,10 +25,10 @@ class CockpitSourceArgs:
25
25
  type: Optional[pulumi.Input[str]] = None):
26
26
  """
27
27
  The set of arguments for constructing a CockpitSource resource.
28
- :param pulumi.Input[str] name: The name of the cockpit data source.
29
- :param pulumi.Input[str] project_id: `project_id`) The ID of the project the cockpit data source is associated with.
30
- :param pulumi.Input[str] region: `region`) The region of the cockpit datasource.
31
- :param pulumi.Input[str] type: The type of the cockpit data source. Possible values are: `metrics`, `logs` or `traces`.
28
+ :param pulumi.Input[str] name: The name of the data source.
29
+ :param pulumi.Input[str] project_id: ) The ID of the Project the data source is associated with.
30
+ :param pulumi.Input[str] region: ) The region where the data source is located.
31
+ :param pulumi.Input[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`.
32
32
  """
33
33
  if name is not None:
34
34
  pulumi.set(__self__, "name", name)
@@ -43,7 +43,7 @@ class CockpitSourceArgs:
43
43
  @pulumi.getter
44
44
  def name(self) -> Optional[pulumi.Input[str]]:
45
45
  """
46
- The name of the cockpit data source.
46
+ The name of the data source.
47
47
  """
48
48
  return pulumi.get(self, "name")
49
49
 
@@ -55,7 +55,7 @@ class CockpitSourceArgs:
55
55
  @pulumi.getter(name="projectId")
56
56
  def project_id(self) -> Optional[pulumi.Input[str]]:
57
57
  """
58
- `project_id`) The ID of the project the cockpit data source is associated with.
58
+ ) The ID of the Project the data source is associated with.
59
59
  """
60
60
  return pulumi.get(self, "project_id")
61
61
 
@@ -67,7 +67,7 @@ class CockpitSourceArgs:
67
67
  @pulumi.getter
68
68
  def region(self) -> Optional[pulumi.Input[str]]:
69
69
  """
70
- `region`) The region of the cockpit datasource.
70
+ ) The region where the data source is located.
71
71
  """
72
72
  return pulumi.get(self, "region")
73
73
 
@@ -79,7 +79,7 @@ class CockpitSourceArgs:
79
79
  @pulumi.getter
80
80
  def type(self) -> Optional[pulumi.Input[str]]:
81
81
  """
82
- The type of the cockpit data source. Possible values are: `metrics`, `logs` or `traces`.
82
+ The [type](https://www.scaleway.com/en/docs/observability/cockpit/concepts/#data-types) of data source. Possible values are: `metrics`, `logs`, or `traces`.
83
83
  """
84
84
  return pulumi.get(self, "type")
85
85
 
@@ -95,6 +95,7 @@ class _CockpitSourceState:
95
95
  name: Optional[pulumi.Input[str]] = None,
96
96
  origin: Optional[pulumi.Input[str]] = None,
97
97
  project_id: Optional[pulumi.Input[str]] = None,
98
+ push_url: Optional[pulumi.Input[str]] = None,
98
99
  region: Optional[pulumi.Input[str]] = None,
99
100
  synchronized_with_grafana: Optional[pulumi.Input[bool]] = None,
100
101
  type: Optional[pulumi.Input[str]] = None,
@@ -102,15 +103,16 @@ class _CockpitSourceState:
102
103
  url: Optional[pulumi.Input[str]] = None):
103
104
  """
104
105
  Input properties used for looking up and filtering CockpitSource resources.
105
- :param pulumi.Input[str] created_at: Date and time of the cockpit data source's creation (RFC 3339 format).
106
- :param pulumi.Input[str] name: The name of the cockpit data source.
107
- :param pulumi.Input[str] origin: The origin of the cockpit data source.
108
- :param pulumi.Input[str] project_id: `project_id`) The ID of the project the cockpit data source is associated with.
109
- :param pulumi.Input[str] region: `region`) The region of the cockpit datasource.
106
+ :param pulumi.Input[str] created_at: The date and time the data source was created (in RFC 3339 format).
107
+ :param pulumi.Input[str] name: The name of the data source.
108
+ :param pulumi.Input[str] origin: The origin of the Cockpit data source.
109
+ :param pulumi.Input[str] project_id: ) The ID of the Project the data source is associated with.
110
+ :param pulumi.Input[str] push_url: The URL endpoint used for pushing data to the Cockpit data source.
111
+ :param pulumi.Input[str] region: ) The region where the data source is located.
110
112
  :param pulumi.Input[bool] synchronized_with_grafana: Indicates whether the data source is synchronized with Grafana.
111
- :param pulumi.Input[str] type: The type of the cockpit data source. Possible values are: `metrics`, `logs` or `traces`.
112
- :param pulumi.Input[str] updated_at: Date and time of the cockpit datas ource's last update (RFC 3339 format).
113
- :param pulumi.Input[str] url: The URL of the cockpit data source.
113
+ :param pulumi.Input[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`.
114
+ :param pulumi.Input[str] updated_at: The date and time the data source was last updated (in RFC 3339 format).
115
+ :param pulumi.Input[str] url: The URL of the Cockpit data source.
114
116
  """
115
117
  if created_at is not None:
116
118
  pulumi.set(__self__, "created_at", created_at)
@@ -120,6 +122,8 @@ class _CockpitSourceState:
120
122
  pulumi.set(__self__, "origin", origin)
121
123
  if project_id is not None:
122
124
  pulumi.set(__self__, "project_id", project_id)
125
+ if push_url is not None:
126
+ pulumi.set(__self__, "push_url", push_url)
123
127
  if region is not None:
124
128
  pulumi.set(__self__, "region", region)
125
129
  if synchronized_with_grafana is not None:
@@ -135,7 +139,7 @@ class _CockpitSourceState:
135
139
  @pulumi.getter(name="createdAt")
136
140
  def created_at(self) -> Optional[pulumi.Input[str]]:
137
141
  """
138
- Date and time of the cockpit data source's creation (RFC 3339 format).
142
+ The date and time the data source was created (in RFC 3339 format).
139
143
  """
140
144
  return pulumi.get(self, "created_at")
141
145
 
@@ -147,7 +151,7 @@ class _CockpitSourceState:
147
151
  @pulumi.getter
148
152
  def name(self) -> Optional[pulumi.Input[str]]:
149
153
  """
150
- The name of the cockpit data source.
154
+ The name of the data source.
151
155
  """
152
156
  return pulumi.get(self, "name")
153
157
 
@@ -159,7 +163,7 @@ class _CockpitSourceState:
159
163
  @pulumi.getter
160
164
  def origin(self) -> Optional[pulumi.Input[str]]:
161
165
  """
162
- The origin of the cockpit data source.
166
+ The origin of the Cockpit data source.
163
167
  """
164
168
  return pulumi.get(self, "origin")
165
169
 
@@ -171,7 +175,7 @@ class _CockpitSourceState:
171
175
  @pulumi.getter(name="projectId")
172
176
  def project_id(self) -> Optional[pulumi.Input[str]]:
173
177
  """
174
- `project_id`) The ID of the project the cockpit data source is associated with.
178
+ ) The ID of the Project the data source is associated with.
175
179
  """
176
180
  return pulumi.get(self, "project_id")
177
181
 
@@ -179,11 +183,23 @@ class _CockpitSourceState:
179
183
  def project_id(self, value: Optional[pulumi.Input[str]]):
180
184
  pulumi.set(self, "project_id", value)
181
185
 
186
+ @property
187
+ @pulumi.getter(name="pushUrl")
188
+ def push_url(self) -> Optional[pulumi.Input[str]]:
189
+ """
190
+ The URL endpoint used for pushing data to the Cockpit data source.
191
+ """
192
+ return pulumi.get(self, "push_url")
193
+
194
+ @push_url.setter
195
+ def push_url(self, value: Optional[pulumi.Input[str]]):
196
+ pulumi.set(self, "push_url", value)
197
+
182
198
  @property
183
199
  @pulumi.getter
184
200
  def region(self) -> Optional[pulumi.Input[str]]:
185
201
  """
186
- `region`) The region of the cockpit datasource.
202
+ ) The region where the data source is located.
187
203
  """
188
204
  return pulumi.get(self, "region")
189
205
 
@@ -207,7 +223,7 @@ class _CockpitSourceState:
207
223
  @pulumi.getter
208
224
  def type(self) -> Optional[pulumi.Input[str]]:
209
225
  """
210
- The type of the cockpit data source. Possible values are: `metrics`, `logs` or `traces`.
226
+ The [type](https://www.scaleway.com/en/docs/observability/cockpit/concepts/#data-types) of data source. Possible values are: `metrics`, `logs`, or `traces`.
211
227
  """
212
228
  return pulumi.get(self, "type")
213
229
 
@@ -219,7 +235,7 @@ class _CockpitSourceState:
219
235
  @pulumi.getter(name="updatedAt")
220
236
  def updated_at(self) -> Optional[pulumi.Input[str]]:
221
237
  """
222
- Date and time of the cockpit datas ource's last update (RFC 3339 format).
238
+ The date and time the data source was last updated (in RFC 3339 format).
223
239
  """
224
240
  return pulumi.get(self, "updated_at")
225
241
 
@@ -231,7 +247,7 @@ class _CockpitSourceState:
231
247
  @pulumi.getter
232
248
  def url(self) -> Optional[pulumi.Input[str]]:
233
249
  """
234
- The URL of the cockpit data source.
250
+ The URL of the Cockpit data source.
235
251
  """
236
252
  return pulumi.get(self, "url")
237
253
 
@@ -251,12 +267,16 @@ class CockpitSource(pulumi.CustomResource):
251
267
  type: Optional[pulumi.Input[str]] = None,
252
268
  __props__=None):
253
269
  """
254
- Creates and manages Scaleway Cockpit Data Sources.
270
+ The `CockpitSource` resource allows you to create and manage [data sources](https://www.scaleway.com/en/docs/observability/cockpit/concepts/#data-sources) in Scaleway's Cockpit.
255
271
 
256
- For more information consult the [documentation](https://www.scaleway.com/en/docs/observability/cockpit/concepts/#data-sources).
272
+ 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.
257
273
 
258
274
  ## Example Usage
259
275
 
276
+ ### Create a data source
277
+
278
+ The following command allows you to create a [metrics](https://www.scaleway.com/en/docs/observability/cockpit/concepts/#metric) data source named `my-data-source` in a given Project.
279
+
260
280
  ```python
261
281
  import pulumi
262
282
  import pulumiverse_scaleway as scaleway
@@ -270,7 +290,7 @@ class CockpitSource(pulumi.CustomResource):
270
290
 
271
291
  ## Import
272
292
 
273
- Cockpits Data Sources can be imported using the `{region}/{id}`, e.g.
293
+ This section explains how to import a data source using the ID of the region it is located in, in the `{region}/{id}` format.
274
294
 
275
295
  bash
276
296
 
@@ -280,10 +300,10 @@ class CockpitSource(pulumi.CustomResource):
280
300
 
281
301
  :param str resource_name: The name of the resource.
282
302
  :param pulumi.ResourceOptions opts: Options for the resource.
283
- :param pulumi.Input[str] name: The name of the cockpit data source.
284
- :param pulumi.Input[str] project_id: `project_id`) The ID of the project the cockpit data source is associated with.
285
- :param pulumi.Input[str] region: `region`) The region of the cockpit datasource.
286
- :param pulumi.Input[str] type: The type of the cockpit data source. Possible values are: `metrics`, `logs` or `traces`.
303
+ :param pulumi.Input[str] name: The name of the data source.
304
+ :param pulumi.Input[str] project_id: ) The ID of the Project the data source is associated with.
305
+ :param pulumi.Input[str] region: ) The region where the data source is located.
306
+ :param pulumi.Input[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`.
287
307
  """
288
308
  ...
289
309
  @overload
@@ -292,12 +312,16 @@ class CockpitSource(pulumi.CustomResource):
292
312
  args: Optional[CockpitSourceArgs] = None,
293
313
  opts: Optional[pulumi.ResourceOptions] = None):
294
314
  """
295
- Creates and manages Scaleway Cockpit Data Sources.
315
+ The `CockpitSource` resource allows you to create and manage [data sources](https://www.scaleway.com/en/docs/observability/cockpit/concepts/#data-sources) in Scaleway's Cockpit.
296
316
 
297
- For more information consult the [documentation](https://www.scaleway.com/en/docs/observability/cockpit/concepts/#data-sources).
317
+ 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.
298
318
 
299
319
  ## Example Usage
300
320
 
321
+ ### Create a data source
322
+
323
+ The following command allows you to create a [metrics](https://www.scaleway.com/en/docs/observability/cockpit/concepts/#metric) data source named `my-data-source` in a given Project.
324
+
301
325
  ```python
302
326
  import pulumi
303
327
  import pulumiverse_scaleway as scaleway
@@ -311,7 +335,7 @@ class CockpitSource(pulumi.CustomResource):
311
335
 
312
336
  ## Import
313
337
 
314
- Cockpits Data Sources can be imported using the `{region}/{id}`, e.g.
338
+ This section explains how to import a data source using the ID of the region it is located in, in the `{region}/{id}` format.
315
339
 
316
340
  bash
317
341
 
@@ -353,6 +377,7 @@ class CockpitSource(pulumi.CustomResource):
353
377
  __props__.__dict__["type"] = type
354
378
  __props__.__dict__["created_at"] = None
355
379
  __props__.__dict__["origin"] = None
380
+ __props__.__dict__["push_url"] = None
356
381
  __props__.__dict__["synchronized_with_grafana"] = None
357
382
  __props__.__dict__["updated_at"] = None
358
383
  __props__.__dict__["url"] = None
@@ -370,6 +395,7 @@ class CockpitSource(pulumi.CustomResource):
370
395
  name: Optional[pulumi.Input[str]] = None,
371
396
  origin: Optional[pulumi.Input[str]] = None,
372
397
  project_id: Optional[pulumi.Input[str]] = None,
398
+ push_url: Optional[pulumi.Input[str]] = None,
373
399
  region: Optional[pulumi.Input[str]] = None,
374
400
  synchronized_with_grafana: Optional[pulumi.Input[bool]] = None,
375
401
  type: Optional[pulumi.Input[str]] = None,
@@ -382,15 +408,16 @@ class CockpitSource(pulumi.CustomResource):
382
408
  :param str resource_name: The unique name of the resulting resource.
383
409
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
384
410
  :param pulumi.ResourceOptions opts: Options for the resource.
385
- :param pulumi.Input[str] created_at: Date and time of the cockpit data source's creation (RFC 3339 format).
386
- :param pulumi.Input[str] name: The name of the cockpit data source.
387
- :param pulumi.Input[str] origin: The origin of the cockpit data source.
388
- :param pulumi.Input[str] project_id: `project_id`) The ID of the project the cockpit data source is associated with.
389
- :param pulumi.Input[str] region: `region`) The region of the cockpit datasource.
411
+ :param pulumi.Input[str] created_at: The date and time the data source was created (in RFC 3339 format).
412
+ :param pulumi.Input[str] name: The name of the data source.
413
+ :param pulumi.Input[str] origin: The origin of the Cockpit data source.
414
+ :param pulumi.Input[str] project_id: ) The ID of the Project the data source is associated with.
415
+ :param pulumi.Input[str] push_url: The URL endpoint used for pushing data to the Cockpit data source.
416
+ :param pulumi.Input[str] region: ) The region where the data source is located.
390
417
  :param pulumi.Input[bool] synchronized_with_grafana: Indicates whether the data source is synchronized with Grafana.
391
- :param pulumi.Input[str] type: The type of the cockpit data source. Possible values are: `metrics`, `logs` or `traces`.
392
- :param pulumi.Input[str] updated_at: Date and time of the cockpit datas ource's last update (RFC 3339 format).
393
- :param pulumi.Input[str] url: The URL of the cockpit data source.
418
+ :param pulumi.Input[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`.
419
+ :param pulumi.Input[str] updated_at: The date and time the data source was last updated (in RFC 3339 format).
420
+ :param pulumi.Input[str] url: The URL of the Cockpit data source.
394
421
  """
395
422
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
396
423
 
@@ -400,6 +427,7 @@ class CockpitSource(pulumi.CustomResource):
400
427
  __props__.__dict__["name"] = name
401
428
  __props__.__dict__["origin"] = origin
402
429
  __props__.__dict__["project_id"] = project_id
430
+ __props__.__dict__["push_url"] = push_url
403
431
  __props__.__dict__["region"] = region
404
432
  __props__.__dict__["synchronized_with_grafana"] = synchronized_with_grafana
405
433
  __props__.__dict__["type"] = type
@@ -411,7 +439,7 @@ class CockpitSource(pulumi.CustomResource):
411
439
  @pulumi.getter(name="createdAt")
412
440
  def created_at(self) -> pulumi.Output[str]:
413
441
  """
414
- Date and time of the cockpit data source's creation (RFC 3339 format).
442
+ The date and time the data source was created (in RFC 3339 format).
415
443
  """
416
444
  return pulumi.get(self, "created_at")
417
445
 
@@ -419,7 +447,7 @@ class CockpitSource(pulumi.CustomResource):
419
447
  @pulumi.getter
420
448
  def name(self) -> pulumi.Output[str]:
421
449
  """
422
- The name of the cockpit data source.
450
+ The name of the data source.
423
451
  """
424
452
  return pulumi.get(self, "name")
425
453
 
@@ -427,7 +455,7 @@ class CockpitSource(pulumi.CustomResource):
427
455
  @pulumi.getter
428
456
  def origin(self) -> pulumi.Output[str]:
429
457
  """
430
- The origin of the cockpit data source.
458
+ The origin of the Cockpit data source.
431
459
  """
432
460
  return pulumi.get(self, "origin")
433
461
 
@@ -435,15 +463,23 @@ class CockpitSource(pulumi.CustomResource):
435
463
  @pulumi.getter(name="projectId")
436
464
  def project_id(self) -> pulumi.Output[str]:
437
465
  """
438
- `project_id`) The ID of the project the cockpit data source is associated with.
466
+ ) The ID of the Project the data source is associated with.
439
467
  """
440
468
  return pulumi.get(self, "project_id")
441
469
 
470
+ @property
471
+ @pulumi.getter(name="pushUrl")
472
+ def push_url(self) -> pulumi.Output[str]:
473
+ """
474
+ The URL endpoint used for pushing data to the Cockpit data source.
475
+ """
476
+ return pulumi.get(self, "push_url")
477
+
442
478
  @property
443
479
  @pulumi.getter
444
480
  def region(self) -> pulumi.Output[str]:
445
481
  """
446
- `region`) The region of the cockpit datasource.
482
+ ) The region where the data source is located.
447
483
  """
448
484
  return pulumi.get(self, "region")
449
485
 
@@ -459,7 +495,7 @@ class CockpitSource(pulumi.CustomResource):
459
495
  @pulumi.getter
460
496
  def type(self) -> pulumi.Output[Optional[str]]:
461
497
  """
462
- The type of the cockpit data source. Possible values are: `metrics`, `logs` or `traces`.
498
+ The [type](https://www.scaleway.com/en/docs/observability/cockpit/concepts/#data-types) of data source. Possible values are: `metrics`, `logs`, or `traces`.
463
499
  """
464
500
  return pulumi.get(self, "type")
465
501
 
@@ -467,7 +503,7 @@ class CockpitSource(pulumi.CustomResource):
467
503
  @pulumi.getter(name="updatedAt")
468
504
  def updated_at(self) -> pulumi.Output[str]:
469
505
  """
470
- Date and time of the cockpit datas ource's last update (RFC 3339 format).
506
+ The date and time the data source was last updated (in RFC 3339 format).
471
507
  """
472
508
  return pulumi.get(self, "updated_at")
473
509
 
@@ -475,7 +511,7 @@ class CockpitSource(pulumi.CustomResource):
475
511
  @pulumi.getter
476
512
  def url(self) -> pulumi.Output[str]:
477
513
  """
478
- The URL of the cockpit data source.
514
+ The URL of the Cockpit data source.
479
515
  """
480
516
  return pulumi.get(self, "url")
481
517
 
@@ -28,9 +28,9 @@ class CockpitTokenArgs:
28
28
  """
29
29
  The set of arguments for constructing a CockpitToken resource.
30
30
  :param pulumi.Input[str] name: The name of the token.
31
- :param pulumi.Input[str] project_id: `project_id`) The ID of the project the cockpit is associated with.
32
- :param pulumi.Input[str] region: `region`) The region of the cockpit token.
33
- :param pulumi.Input['CockpitTokenScopesArgs'] scopes: Allowed scopes.
31
+ :param pulumi.Input[str] project_id: ) The ID of the Project the Cockpit is associated with.
32
+ :param pulumi.Input[str] region: ) The region where the Cockpit token is located.
33
+ :param pulumi.Input['CockpitTokenScopesArgs'] scopes: Scopes allowed, each with default values:
34
34
  """
35
35
  if name is not None:
36
36
  pulumi.set(__self__, "name", name)
@@ -57,7 +57,7 @@ class CockpitTokenArgs:
57
57
  @pulumi.getter(name="projectId")
58
58
  def project_id(self) -> Optional[pulumi.Input[str]]:
59
59
  """
60
- `project_id`) The ID of the project the cockpit is associated with.
60
+ ) The ID of the Project the Cockpit is associated with.
61
61
  """
62
62
  return pulumi.get(self, "project_id")
63
63
 
@@ -69,7 +69,7 @@ class CockpitTokenArgs:
69
69
  @pulumi.getter
70
70
  def region(self) -> Optional[pulumi.Input[str]]:
71
71
  """
72
- `region`) The region of the cockpit token.
72
+ ) The region where the Cockpit token is located.
73
73
  """
74
74
  return pulumi.get(self, "region")
75
75
 
@@ -81,7 +81,7 @@ class CockpitTokenArgs:
81
81
  @pulumi.getter
82
82
  def scopes(self) -> Optional[pulumi.Input['CockpitTokenScopesArgs']]:
83
83
  """
84
- Allowed scopes.
84
+ Scopes allowed, each with default values:
85
85
  """
86
86
  return pulumi.get(self, "scopes")
87
87
 
@@ -104,9 +104,9 @@ class _CockpitTokenState:
104
104
  Input properties used for looking up and filtering CockpitToken resources.
105
105
  :param pulumi.Input[str] created_at: The date and time of the creation of the Cockpit Token (Format ISO 8601)
106
106
  :param pulumi.Input[str] name: The name of the token.
107
- :param pulumi.Input[str] project_id: `project_id`) The ID of the project the cockpit is associated with.
108
- :param pulumi.Input[str] region: `region`) The region of the cockpit token.
109
- :param pulumi.Input['CockpitTokenScopesArgs'] scopes: Allowed scopes.
107
+ :param pulumi.Input[str] project_id: ) The ID of the Project the Cockpit is associated with.
108
+ :param pulumi.Input[str] region: ) The region where the Cockpit token is located.
109
+ :param pulumi.Input['CockpitTokenScopesArgs'] scopes: Scopes allowed, each with default values:
110
110
  :param pulumi.Input[str] secret_key: The secret key of the token.
111
111
  :param pulumi.Input[str] updated_at: The date and time of the last update of the Cockpit Token (Format ISO 8601)
112
112
  """
@@ -153,7 +153,7 @@ class _CockpitTokenState:
153
153
  @pulumi.getter(name="projectId")
154
154
  def project_id(self) -> Optional[pulumi.Input[str]]:
155
155
  """
156
- `project_id`) The ID of the project the cockpit is associated with.
156
+ ) The ID of the Project the Cockpit is associated with.
157
157
  """
158
158
  return pulumi.get(self, "project_id")
159
159
 
@@ -165,7 +165,7 @@ class _CockpitTokenState:
165
165
  @pulumi.getter
166
166
  def region(self) -> Optional[pulumi.Input[str]]:
167
167
  """
168
- `region`) The region of the cockpit token.
168
+ ) The region where the Cockpit token is located.
169
169
  """
170
170
  return pulumi.get(self, "region")
171
171
 
@@ -177,7 +177,7 @@ class _CockpitTokenState:
177
177
  @pulumi.getter
178
178
  def scopes(self) -> Optional[pulumi.Input['CockpitTokenScopesArgs']]:
179
179
  """
180
- Allowed scopes.
180
+ Scopes allowed, each with default values:
181
181
  """
182
182
  return pulumi.get(self, "scopes")
183
183
 
@@ -221,12 +221,21 @@ class CockpitToken(pulumi.CustomResource):
221
221
  scopes: Optional[pulumi.Input[Union['CockpitTokenScopesArgs', 'CockpitTokenScopesArgsDict']]] = None,
222
222
  __props__=None):
223
223
  """
224
- Creates and manages Scaleway Cockpit Tokens.
224
+ The `CockpitToken` resource allows you to create and manage your Cockpit [tokens](https://www.scaleway.com/en/docs/observability/cockpit/concepts/#tokens).
225
225
 
226
- For more information consult the [documentation](https://www.scaleway.com/en/docs/observability/cockpit/concepts/#tokens).
226
+ 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.
227
227
 
228
228
  ## Example Usage
229
229
 
230
+ ### Use a Cockpit token
231
+
232
+ The following commands allow you to:
233
+
234
+ - create a Scaleway Project named `my-project`
235
+ - create a Cockpit token named `my-awesome-token` inside the Project
236
+ - assign `read` permissions to the token for metrics and logs
237
+ - disable `write` permissions for metrics and logs
238
+
230
239
  ```python
231
240
  import pulumi
232
241
  import pulumiverse_scaleway as scaleway
@@ -256,7 +265,7 @@ class CockpitToken(pulumi.CustomResource):
256
265
 
257
266
  ## Import
258
267
 
259
- Cockpits tokens can be imported using the `{region}/{id}`, e.g.
268
+ This section explains how to import a Cockpit token using the `{region}/{id}` format.
260
269
 
261
270
  bash
262
271
 
@@ -267,9 +276,9 @@ class CockpitToken(pulumi.CustomResource):
267
276
  :param str resource_name: The name of the resource.
268
277
  :param pulumi.ResourceOptions opts: Options for the resource.
269
278
  :param pulumi.Input[str] name: The name of the token.
270
- :param pulumi.Input[str] project_id: `project_id`) The ID of the project the cockpit is associated with.
271
- :param pulumi.Input[str] region: `region`) The region of the cockpit token.
272
- :param pulumi.Input[Union['CockpitTokenScopesArgs', 'CockpitTokenScopesArgsDict']] scopes: Allowed scopes.
279
+ :param pulumi.Input[str] project_id: ) The ID of the Project the Cockpit is associated with.
280
+ :param pulumi.Input[str] region: ) The region where the Cockpit token is located.
281
+ :param pulumi.Input[Union['CockpitTokenScopesArgs', 'CockpitTokenScopesArgsDict']] scopes: Scopes allowed, each with default values:
273
282
  """
274
283
  ...
275
284
  @overload
@@ -278,12 +287,21 @@ class CockpitToken(pulumi.CustomResource):
278
287
  args: Optional[CockpitTokenArgs] = None,
279
288
  opts: Optional[pulumi.ResourceOptions] = None):
280
289
  """
281
- Creates and manages Scaleway Cockpit Tokens.
290
+ The `CockpitToken` resource allows you to create and manage your Cockpit [tokens](https://www.scaleway.com/en/docs/observability/cockpit/concepts/#tokens).
282
291
 
283
- For more information consult the [documentation](https://www.scaleway.com/en/docs/observability/cockpit/concepts/#tokens).
292
+ 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.
284
293
 
285
294
  ## Example Usage
286
295
 
296
+ ### Use a Cockpit token
297
+
298
+ The following commands allow you to:
299
+
300
+ - create a Scaleway Project named `my-project`
301
+ - create a Cockpit token named `my-awesome-token` inside the Project
302
+ - assign `read` permissions to the token for metrics and logs
303
+ - disable `write` permissions for metrics and logs
304
+
287
305
  ```python
288
306
  import pulumi
289
307
  import pulumiverse_scaleway as scaleway
@@ -313,7 +331,7 @@ class CockpitToken(pulumi.CustomResource):
313
331
 
314
332
  ## Import
315
333
 
316
- Cockpits tokens can be imported using the `{region}/{id}`, e.g.
334
+ This section explains how to import a Cockpit token using the `{region}/{id}` format.
317
335
 
318
336
  bash
319
337
 
@@ -384,9 +402,9 @@ class CockpitToken(pulumi.CustomResource):
384
402
  :param pulumi.ResourceOptions opts: Options for the resource.
385
403
  :param pulumi.Input[str] created_at: The date and time of the creation of the Cockpit Token (Format ISO 8601)
386
404
  :param pulumi.Input[str] name: The name of the token.
387
- :param pulumi.Input[str] project_id: `project_id`) The ID of the project the cockpit is associated with.
388
- :param pulumi.Input[str] region: `region`) The region of the cockpit token.
389
- :param pulumi.Input[Union['CockpitTokenScopesArgs', 'CockpitTokenScopesArgsDict']] scopes: Allowed scopes.
405
+ :param pulumi.Input[str] project_id: ) The ID of the Project the Cockpit is associated with.
406
+ :param pulumi.Input[str] region: ) The region where the Cockpit token is located.
407
+ :param pulumi.Input[Union['CockpitTokenScopesArgs', 'CockpitTokenScopesArgsDict']] scopes: Scopes allowed, each with default values:
390
408
  :param pulumi.Input[str] secret_key: The secret key of the token.
391
409
  :param pulumi.Input[str] updated_at: The date and time of the last update of the Cockpit Token (Format ISO 8601)
392
410
  """
@@ -423,7 +441,7 @@ class CockpitToken(pulumi.CustomResource):
423
441
  @pulumi.getter(name="projectId")
424
442
  def project_id(self) -> pulumi.Output[str]:
425
443
  """
426
- `project_id`) The ID of the project the cockpit is associated with.
444
+ ) The ID of the Project the Cockpit is associated with.
427
445
  """
428
446
  return pulumi.get(self, "project_id")
429
447
 
@@ -431,7 +449,7 @@ class CockpitToken(pulumi.CustomResource):
431
449
  @pulumi.getter
432
450
  def region(self) -> pulumi.Output[str]:
433
451
  """
434
- `region`) The region of the cockpit token.
452
+ ) The region where the Cockpit token is located.
435
453
  """
436
454
  return pulumi.get(self, "region")
437
455
 
@@ -439,7 +457,7 @@ class CockpitToken(pulumi.CustomResource):
439
457
  @pulumi.getter
440
458
  def scopes(self) -> pulumi.Output['outputs.CockpitTokenScopes']:
441
459
  """
442
- Allowed scopes.
460
+ Scopes allowed, each with default values:
443
461
  """
444
462
  return pulumi.get(self, "scopes")
445
463
 
@@ -427,8 +427,8 @@ class _DatabaseInstanceState:
427
427
  :param pulumi.Input[str] certificate: Certificate of the Database Instance.
428
428
  :param pulumi.Input[bool] disable_backup: Disable automated backup for the database instance
429
429
  :param pulumi.Input[bool] encryption_at_rest: Enable or disable encryption at rest for the Database Instance.
430
- :param pulumi.Input[str] endpoint_ip: (Deprecated) The IP of the Database Instance.
431
- :param pulumi.Input[int] endpoint_port: (Deprecated) The port of the Database Instance.
430
+ :param pulumi.Input[str] endpoint_ip: (Deprecated) The IP of the Database Instance. Please use the private_network or the load_balancer attribute.
431
+ :param pulumi.Input[int] endpoint_port: (Deprecated) The port of the Database Instance. Please use the private_network or the load_balancer attribute.
432
432
  :param pulumi.Input[str] engine: Database Instance's engine version (e.g. `PostgreSQL-11`).
433
433
 
434
434
  > **Important** Updates to `engine` will recreate the Database Instance.
@@ -480,6 +480,9 @@ class _DatabaseInstanceState:
480
480
  pulumi.log.warn("""endpoint_ip is deprecated: Please use the private_network or the load_balancer attribute""")
481
481
  if endpoint_ip is not None:
482
482
  pulumi.set(__self__, "endpoint_ip", endpoint_ip)
483
+ if endpoint_port is not None:
484
+ warnings.warn("""Please use the private_network or the load_balancer attribute""", DeprecationWarning)
485
+ pulumi.log.warn("""endpoint_port is deprecated: Please use the private_network or the load_balancer attribute""")
483
486
  if endpoint_port is not None:
484
487
  pulumi.set(__self__, "endpoint_port", endpoint_port)
485
488
  if engine is not None:
@@ -596,7 +599,7 @@ class _DatabaseInstanceState:
596
599
  @_utilities.deprecated("""Please use the private_network or the load_balancer attribute""")
597
600
  def endpoint_ip(self) -> Optional[pulumi.Input[str]]:
598
601
  """
599
- (Deprecated) The IP of the Database Instance.
602
+ (Deprecated) The IP of the Database Instance. Please use the private_network or the load_balancer attribute.
600
603
  """
601
604
  return pulumi.get(self, "endpoint_ip")
602
605
 
@@ -606,9 +609,10 @@ class _DatabaseInstanceState:
606
609
 
607
610
  @property
608
611
  @pulumi.getter(name="endpointPort")
612
+ @_utilities.deprecated("""Please use the private_network or the load_balancer attribute""")
609
613
  def endpoint_port(self) -> Optional[pulumi.Input[int]]:
610
614
  """
611
- (Deprecated) The port of the Database Instance.
615
+ (Deprecated) The port of the Database Instance. Please use the private_network or the load_balancer attribute.
612
616
  """
613
617
  return pulumi.get(self, "endpoint_port")
614
618
 
@@ -1342,8 +1346,8 @@ class DatabaseInstance(pulumi.CustomResource):
1342
1346
  :param pulumi.Input[str] certificate: Certificate of the Database Instance.
1343
1347
  :param pulumi.Input[bool] disable_backup: Disable automated backup for the database instance
1344
1348
  :param pulumi.Input[bool] encryption_at_rest: Enable or disable encryption at rest for the Database Instance.
1345
- :param pulumi.Input[str] endpoint_ip: (Deprecated) The IP of the Database Instance.
1346
- :param pulumi.Input[int] endpoint_port: (Deprecated) The port of the Database Instance.
1349
+ :param pulumi.Input[str] endpoint_ip: (Deprecated) The IP of the Database Instance. Please use the private_network or the load_balancer attribute.
1350
+ :param pulumi.Input[int] endpoint_port: (Deprecated) The port of the Database Instance. Please use the private_network or the load_balancer attribute.
1347
1351
  :param pulumi.Input[str] engine: Database Instance's engine version (e.g. `PostgreSQL-11`).
1348
1352
 
1349
1353
  > **Important** Updates to `engine` will recreate the Database Instance.
@@ -1463,15 +1467,16 @@ class DatabaseInstance(pulumi.CustomResource):
1463
1467
  @_utilities.deprecated("""Please use the private_network or the load_balancer attribute""")
1464
1468
  def endpoint_ip(self) -> pulumi.Output[str]:
1465
1469
  """
1466
- (Deprecated) The IP of the Database Instance.
1470
+ (Deprecated) The IP of the Database Instance. Please use the private_network or the load_balancer attribute.
1467
1471
  """
1468
1472
  return pulumi.get(self, "endpoint_ip")
1469
1473
 
1470
1474
  @property
1471
1475
  @pulumi.getter(name="endpointPort")
1476
+ @_utilities.deprecated("""Please use the private_network or the load_balancer attribute""")
1472
1477
  def endpoint_port(self) -> pulumi.Output[int]:
1473
1478
  """
1474
- (Deprecated) The port of the Database Instance.
1479
+ (Deprecated) The port of the Database Instance. Please use the private_network or the load_balancer attribute.
1475
1480
  """
1476
1481
  return pulumi.get(self, "endpoint_port")
1477
1482