pulumiverse-scaleway 1.35.0a1761031391__py3-none-any.whl → 1.39.0a1764841480__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.
- pulumiverse_scaleway/__init__.py +38 -0
- pulumiverse_scaleway/_inputs.py +271 -166
- pulumiverse_scaleway/audittrail/__init__.py +10 -0
- pulumiverse_scaleway/audittrail/get_event.py +410 -0
- pulumiverse_scaleway/audittrail/outputs.py +234 -0
- pulumiverse_scaleway/baremetal_server.py +159 -0
- pulumiverse_scaleway/billing/get_consumptions.py +4 -0
- pulumiverse_scaleway/block/snapshot.py +78 -0
- pulumiverse_scaleway/block_snapshot.py +78 -0
- pulumiverse_scaleway/cockpit_grafana_user.py +0 -42
- pulumiverse_scaleway/database_instance.py +105 -55
- pulumiverse_scaleway/database_user.py +6 -6
- pulumiverse_scaleway/databases/_inputs.py +97 -3
- pulumiverse_scaleway/databases/get_instance.py +12 -1
- pulumiverse_scaleway/databases/instance.py +105 -55
- pulumiverse_scaleway/databases/outputs.py +127 -2
- pulumiverse_scaleway/databases/user.py +6 -6
- pulumiverse_scaleway/datawarehouse/__init__.py +13 -0
- pulumiverse_scaleway/datawarehouse/_inputs.py +149 -0
- pulumiverse_scaleway/datawarehouse/database.py +338 -0
- pulumiverse_scaleway/datawarehouse/deployment.py +821 -0
- pulumiverse_scaleway/datawarehouse/outputs.py +113 -0
- pulumiverse_scaleway/datawarehouse/user.py +451 -0
- pulumiverse_scaleway/domain/record.py +4 -4
- pulumiverse_scaleway/domain_record.py +4 -4
- pulumiverse_scaleway/edge_services_cache_stage.py +30 -0
- pulumiverse_scaleway/edge_services_dns_stage.py +28 -0
- pulumiverse_scaleway/elasticmetal/get_offer.py +2 -0
- pulumiverse_scaleway/elasticmetal/get_server.py +12 -1
- pulumiverse_scaleway/elasticmetal/server.py +159 -0
- pulumiverse_scaleway/file_filesystem.py +39 -35
- pulumiverse_scaleway/get_baremetal_offer.py +2 -0
- pulumiverse_scaleway/get_baremetal_server.py +12 -1
- pulumiverse_scaleway/get_billing_consumptions.py +4 -0
- pulumiverse_scaleway/get_database_instance.py +12 -1
- pulumiverse_scaleway/get_instance_ip.py +14 -2
- pulumiverse_scaleway/get_instance_server.py +13 -83
- pulumiverse_scaleway/get_k8s_version.py +12 -1
- pulumiverse_scaleway/get_kubernetes_cluster.py +34 -1
- pulumiverse_scaleway/get_loadbalancer.py +12 -1
- pulumiverse_scaleway/get_loadbalancer_certificate.py +60 -0
- pulumiverse_scaleway/iam/__init__.py +1 -0
- pulumiverse_scaleway/iam/get_policy.py +293 -0
- pulumiverse_scaleway/iam/outputs.py +52 -0
- pulumiverse_scaleway/inference/deployment.py +36 -0
- pulumiverse_scaleway/inference/model.py +7 -7
- pulumiverse_scaleway/inference_deployment.py +36 -0
- pulumiverse_scaleway/instance/_inputs.py +155 -144
- pulumiverse_scaleway/instance/get_ip.py +14 -2
- pulumiverse_scaleway/instance/get_server.py +13 -83
- pulumiverse_scaleway/instance/image.py +94 -40
- pulumiverse_scaleway/instance/outputs.py +164 -167
- pulumiverse_scaleway/instance/server.py +116 -244
- pulumiverse_scaleway/instance/user_data.py +4 -4
- pulumiverse_scaleway/instance/volume.py +14 -0
- pulumiverse_scaleway/instance_image.py +94 -40
- pulumiverse_scaleway/instance_server.py +116 -244
- pulumiverse_scaleway/instance_user_data.py +4 -4
- pulumiverse_scaleway/instance_volume.py +14 -0
- pulumiverse_scaleway/iot/device.py +0 -38
- pulumiverse_scaleway/iot/hub.py +11 -11
- pulumiverse_scaleway/iot/route.py +20 -20
- pulumiverse_scaleway/iot_device.py +0 -38
- pulumiverse_scaleway/iot_hub.py +11 -11
- pulumiverse_scaleway/iot_route.py +20 -20
- pulumiverse_scaleway/ipam/_inputs.py +6 -6
- pulumiverse_scaleway/ipam/ip.py +35 -7
- pulumiverse_scaleway/ipam/ip_reverse_dns.py +70 -0
- pulumiverse_scaleway/ipam/outputs.py +4 -4
- pulumiverse_scaleway/ipam_ip.py +35 -7
- pulumiverse_scaleway/ipam_ip_reverse_dns.py +70 -0
- pulumiverse_scaleway/key_manager_key.py +134 -25
- pulumiverse_scaleway/kubernetes/cluster.py +290 -4
- pulumiverse_scaleway/kubernetes/get_cluster.py +34 -1
- pulumiverse_scaleway/kubernetes/get_version.py +12 -1
- pulumiverse_scaleway/kubernetes/pool.py +7 -7
- pulumiverse_scaleway/kubernetes_cluster.py +290 -4
- pulumiverse_scaleway/kubernetes_node_pool.py +7 -7
- pulumiverse_scaleway/loadbalancer.py +55 -1
- pulumiverse_scaleway/loadbalancers/__init__.py +1 -0
- pulumiverse_scaleway/loadbalancers/_inputs.py +13 -13
- pulumiverse_scaleway/loadbalancers/get_certificate.py +60 -0
- pulumiverse_scaleway/loadbalancers/get_load_balancer.py +12 -1
- pulumiverse_scaleway/loadbalancers/load_balancer.py +55 -1
- pulumiverse_scaleway/loadbalancers/outputs.py +9 -9
- pulumiverse_scaleway/loadbalancers/private_network.py +505 -0
- pulumiverse_scaleway/mongo_db_instance.py +14 -14
- pulumiverse_scaleway/mongodb/instance.py +14 -14
- pulumiverse_scaleway/network/gateway_network.py +7 -7
- pulumiverse_scaleway/object/__init__.py +1 -0
- pulumiverse_scaleway/object/bucket_policy.py +0 -64
- pulumiverse_scaleway/object/get.py +290 -0
- pulumiverse_scaleway/object/item.py +37 -7
- pulumiverse_scaleway/object_bucket_policy.py +0 -64
- pulumiverse_scaleway/object_item.py +37 -7
- pulumiverse_scaleway/observability/__init__.py +1 -0
- pulumiverse_scaleway/observability/get_grafana.py +103 -0
- pulumiverse_scaleway/observability/get_sources.py +6 -6
- pulumiverse_scaleway/observability/grafana_user.py +0 -42
- pulumiverse_scaleway/observability/outputs.py +2 -2
- pulumiverse_scaleway/outputs.py +304 -182
- pulumiverse_scaleway/pulumi-plugin.json +1 -1
- pulumiverse_scaleway/tem/domain.py +42 -0
- pulumiverse_scaleway/tem_domain.py +42 -0
- pulumiverse_scaleway/vpc_gateway_network.py +7 -7
- {pulumiverse_scaleway-1.35.0a1761031391.dist-info → pulumiverse_scaleway-1.39.0a1764841480.dist-info}/METADATA +1 -1
- {pulumiverse_scaleway-1.35.0a1761031391.dist-info → pulumiverse_scaleway-1.39.0a1764841480.dist-info}/RECORD +109 -96
- {pulumiverse_scaleway-1.35.0a1761031391.dist-info → pulumiverse_scaleway-1.39.0a1764841480.dist-info}/WHEEL +0 -0
- {pulumiverse_scaleway-1.35.0a1761031391.dist-info → pulumiverse_scaleway-1.39.0a1764841480.dist-info}/top_level.txt +0 -0
|
@@ -200,9 +200,9 @@ class InstanceUserData(pulumi.CustomResource):
|
|
|
200
200
|
|
|
201
201
|
The typical use case is to pass something like a shell script or a configuration file as user data.
|
|
202
202
|
|
|
203
|
-
For more information about [user_data](https://www.scaleway.com/en/developers/api/instance/#path-user-data-list-user-data) check our documentation guide
|
|
203
|
+
For more information about [user_data](https://www.scaleway.com/en/developers/api/instance/#path-user-data-list-user-data) check [our documentation guide](https://www.scaleway.com/en/docs/compute/instances/how-to/use-boot-modes/#how-to-use-cloud-init).
|
|
204
204
|
|
|
205
|
-
About cloud-init documentation please check
|
|
205
|
+
About cloud-init documentation please check [the official documentation](https://cloudinit.readthedocs.io/en/latest/).
|
|
206
206
|
|
|
207
207
|
## Example Usage
|
|
208
208
|
|
|
@@ -274,9 +274,9 @@ class InstanceUserData(pulumi.CustomResource):
|
|
|
274
274
|
|
|
275
275
|
The typical use case is to pass something like a shell script or a configuration file as user data.
|
|
276
276
|
|
|
277
|
-
For more information about [user_data](https://www.scaleway.com/en/developers/api/instance/#path-user-data-list-user-data) check our documentation guide
|
|
277
|
+
For more information about [user_data](https://www.scaleway.com/en/developers/api/instance/#path-user-data-list-user-data) check [our documentation guide](https://www.scaleway.com/en/docs/compute/instances/how-to/use-boot-modes/#how-to-use-cloud-init).
|
|
278
278
|
|
|
279
|
-
About cloud-init documentation please check
|
|
279
|
+
About cloud-init documentation please check [the official documentation](https://cloudinit.readthedocs.io/en/latest/).
|
|
280
280
|
|
|
281
281
|
## Example Usage
|
|
282
282
|
|
|
@@ -35,6 +35,8 @@ class InstanceVolumeArgs:
|
|
|
35
35
|
:param pulumi.Input[_builtins.str] name: The name of the volume. If not provided it will be randomly generated.
|
|
36
36
|
:param pulumi.Input[_builtins.str] project_id: `project_id`) The ID of the project the volume is associated with.
|
|
37
37
|
:param pulumi.Input[_builtins.int] size_in_gb: The size of the volume. Only one of `size_in_gb` and `from_snapshot_id` should be specified.
|
|
38
|
+
|
|
39
|
+
> **Important:** It is not possible to resize local and scratch volumes. Updates to this field will recreate the resource.
|
|
38
40
|
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: A list of tags to apply to the volume.
|
|
39
41
|
:param pulumi.Input[_builtins.str] zone: `zone`) The zone in which the volume should be created.
|
|
40
42
|
"""
|
|
@@ -119,6 +121,8 @@ class InstanceVolumeArgs:
|
|
|
119
121
|
def size_in_gb(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
120
122
|
"""
|
|
121
123
|
The size of the volume. Only one of `size_in_gb` and `from_snapshot_id` should be specified.
|
|
124
|
+
|
|
125
|
+
> **Important:** It is not possible to resize local and scratch volumes. Updates to this field will recreate the resource.
|
|
122
126
|
"""
|
|
123
127
|
return pulumi.get(self, "size_in_gb")
|
|
124
128
|
|
|
@@ -173,6 +177,8 @@ class _InstanceVolumeState:
|
|
|
173
177
|
:param pulumi.Input[_builtins.str] project_id: `project_id`) The ID of the project the volume is associated with.
|
|
174
178
|
:param pulumi.Input[_builtins.str] server_id: The id of the associated server.
|
|
175
179
|
:param pulumi.Input[_builtins.int] size_in_gb: The size of the volume. Only one of `size_in_gb` and `from_snapshot_id` should be specified.
|
|
180
|
+
|
|
181
|
+
> **Important:** It is not possible to resize local and scratch volumes. Updates to this field will recreate the resource.
|
|
176
182
|
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: A list of tags to apply to the volume.
|
|
177
183
|
:param pulumi.Input[_builtins.str] type: The type of the volume. The possible values are: `l_ssd` (Local SSD), `scratch` (Local Scratch SSD).
|
|
178
184
|
:param pulumi.Input[_builtins.str] zone: `zone`) The zone in which the volume should be created.
|
|
@@ -275,6 +281,8 @@ class _InstanceVolumeState:
|
|
|
275
281
|
def size_in_gb(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
276
282
|
"""
|
|
277
283
|
The size of the volume. Only one of `size_in_gb` and `from_snapshot_id` should be specified.
|
|
284
|
+
|
|
285
|
+
> **Important:** It is not possible to resize local and scratch volumes. Updates to this field will recreate the resource.
|
|
278
286
|
"""
|
|
279
287
|
return pulumi.get(self, "size_in_gb")
|
|
280
288
|
|
|
@@ -372,6 +380,8 @@ class InstanceVolume(pulumi.CustomResource):
|
|
|
372
380
|
:param pulumi.Input[_builtins.str] name: The name of the volume. If not provided it will be randomly generated.
|
|
373
381
|
:param pulumi.Input[_builtins.str] project_id: `project_id`) The ID of the project the volume is associated with.
|
|
374
382
|
:param pulumi.Input[_builtins.int] size_in_gb: The size of the volume. Only one of `size_in_gb` and `from_snapshot_id` should be specified.
|
|
383
|
+
|
|
384
|
+
> **Important:** It is not possible to resize local and scratch volumes. Updates to this field will recreate the resource.
|
|
375
385
|
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: A list of tags to apply to the volume.
|
|
376
386
|
:param pulumi.Input[_builtins.str] type: The type of the volume. The possible values are: `l_ssd` (Local SSD), `scratch` (Local Scratch SSD).
|
|
377
387
|
:param pulumi.Input[_builtins.str] zone: `zone`) The zone in which the volume should be created.
|
|
@@ -487,6 +497,8 @@ class InstanceVolume(pulumi.CustomResource):
|
|
|
487
497
|
:param pulumi.Input[_builtins.str] project_id: `project_id`) The ID of the project the volume is associated with.
|
|
488
498
|
:param pulumi.Input[_builtins.str] server_id: The id of the associated server.
|
|
489
499
|
:param pulumi.Input[_builtins.int] size_in_gb: The size of the volume. Only one of `size_in_gb` and `from_snapshot_id` should be specified.
|
|
500
|
+
|
|
501
|
+
> **Important:** It is not possible to resize local and scratch volumes. Updates to this field will recreate the resource.
|
|
490
502
|
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: A list of tags to apply to the volume.
|
|
491
503
|
:param pulumi.Input[_builtins.str] type: The type of the volume. The possible values are: `l_ssd` (Local SSD), `scratch` (Local Scratch SSD).
|
|
492
504
|
:param pulumi.Input[_builtins.str] zone: `zone`) The zone in which the volume should be created.
|
|
@@ -560,6 +572,8 @@ class InstanceVolume(pulumi.CustomResource):
|
|
|
560
572
|
def size_in_gb(self) -> pulumi.Output[Optional[_builtins.int]]:
|
|
561
573
|
"""
|
|
562
574
|
The size of the volume. Only one of `size_in_gb` and `from_snapshot_id` should be specified.
|
|
575
|
+
|
|
576
|
+
> **Important:** It is not possible to resize local and scratch volumes. Updates to this field will recreate the resource.
|
|
563
577
|
"""
|
|
564
578
|
return pulumi.get(self, "size_in_gb")
|
|
565
579
|
|
|
@@ -425,25 +425,6 @@ class Device(pulumi.CustomResource):
|
|
|
425
425
|
name="test-iot")
|
|
426
426
|
```
|
|
427
427
|
|
|
428
|
-
### With custom certificate
|
|
429
|
-
|
|
430
|
-
```python
|
|
431
|
-
import pulumi
|
|
432
|
-
import pulumi_local as local
|
|
433
|
-
import pulumiverse_scaleway as scaleway
|
|
434
|
-
|
|
435
|
-
main = scaleway.iot.Hub("main",
|
|
436
|
-
name="test-iot",
|
|
437
|
-
product_plan="plan_shared")
|
|
438
|
-
device_cert = local.get_file(filename="device-certificate.pem")
|
|
439
|
-
main_device = scaleway.iot.Device("main",
|
|
440
|
-
hub_id=main.id,
|
|
441
|
-
name="test-iot",
|
|
442
|
-
certificate={
|
|
443
|
-
"crt": device_cert.content,
|
|
444
|
-
})
|
|
445
|
-
```
|
|
446
|
-
|
|
447
428
|
## Import
|
|
448
429
|
|
|
449
430
|
IoT devices can be imported using the `{region}/{id}`, e.g.
|
|
@@ -494,25 +475,6 @@ class Device(pulumi.CustomResource):
|
|
|
494
475
|
name="test-iot")
|
|
495
476
|
```
|
|
496
477
|
|
|
497
|
-
### With custom certificate
|
|
498
|
-
|
|
499
|
-
```python
|
|
500
|
-
import pulumi
|
|
501
|
-
import pulumi_local as local
|
|
502
|
-
import pulumiverse_scaleway as scaleway
|
|
503
|
-
|
|
504
|
-
main = scaleway.iot.Hub("main",
|
|
505
|
-
name="test-iot",
|
|
506
|
-
product_plan="plan_shared")
|
|
507
|
-
device_cert = local.get_file(filename="device-certificate.pem")
|
|
508
|
-
main_device = scaleway.iot.Device("main",
|
|
509
|
-
hub_id=main.id,
|
|
510
|
-
name="test-iot",
|
|
511
|
-
certificate={
|
|
512
|
-
"crt": device_cert.content,
|
|
513
|
-
})
|
|
514
|
-
```
|
|
515
|
-
|
|
516
478
|
## Import
|
|
517
479
|
|
|
518
480
|
IoT devices can be imported using the `{region}/{id}`, e.g.
|
pulumiverse_scaleway/iot/hub.py
CHANGED
|
@@ -36,7 +36,7 @@ class HubArgs:
|
|
|
36
36
|
> **Important:** Updates to `product_plan` will recreate the IoT Hub Instance.
|
|
37
37
|
:param pulumi.Input[_builtins.bool] device_auto_provisioning: Wether to enable the device auto provisioning or not
|
|
38
38
|
:param pulumi.Input[_builtins.bool] disable_events: Whether to enable the hub events or not
|
|
39
|
-
:param pulumi.Input[_builtins.bool] enabled:
|
|
39
|
+
:param pulumi.Input[_builtins.bool] enabled: Whether the IoT Hub instance should be enabled or not.
|
|
40
40
|
|
|
41
41
|
> **Important:** Updates to `enabled` will disconnect eventually connected devices.
|
|
42
42
|
:param pulumi.Input[_builtins.str] events_topic_prefix: Topic prefix for the hub events
|
|
@@ -108,7 +108,7 @@ class HubArgs:
|
|
|
108
108
|
@pulumi.getter
|
|
109
109
|
def enabled(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
110
110
|
"""
|
|
111
|
-
|
|
111
|
+
Whether the IoT Hub instance should be enabled or not.
|
|
112
112
|
|
|
113
113
|
> **Important:** Updates to `enabled` will disconnect eventually connected devices.
|
|
114
114
|
"""
|
|
@@ -220,14 +220,14 @@ class _HubState:
|
|
|
220
220
|
:param pulumi.Input[_builtins.bool] device_auto_provisioning: Wether to enable the device auto provisioning or not
|
|
221
221
|
:param pulumi.Input[_builtins.int] device_count: The number of registered devices in the Hub.
|
|
222
222
|
:param pulumi.Input[_builtins.bool] disable_events: Whether to enable the hub events or not
|
|
223
|
-
:param pulumi.Input[_builtins.bool] enabled:
|
|
223
|
+
:param pulumi.Input[_builtins.bool] enabled: Whether the IoT Hub instance should be enabled or not.
|
|
224
224
|
|
|
225
225
|
> **Important:** Updates to `enabled` will disconnect eventually connected devices.
|
|
226
226
|
:param pulumi.Input[_builtins.str] endpoint: The MQTT network endpoint to connect MQTT devices to.
|
|
227
227
|
:param pulumi.Input[_builtins.str] events_topic_prefix: Topic prefix for the hub events
|
|
228
228
|
:param pulumi.Input[_builtins.str] hub_ca: Custom user provided certificate authority
|
|
229
229
|
:param pulumi.Input[_builtins.str] hub_ca_challenge: Challenge certificate for the user provided hub CA
|
|
230
|
-
:param pulumi.Input[_builtins.str] mqtt_ca: The MQTT
|
|
230
|
+
:param pulumi.Input[_builtins.str] mqtt_ca: The MQTT certificate content
|
|
231
231
|
:param pulumi.Input[_builtins.str] mqtt_ca_url: The MQTT ca url
|
|
232
232
|
:param pulumi.Input[_builtins.str] name: The name of the IoT Hub instance you want to create (e.g. `my-hub`).
|
|
233
233
|
:param pulumi.Input[_builtins.str] organization_id: The organization_id you want to attach the resource to
|
|
@@ -342,7 +342,7 @@ class _HubState:
|
|
|
342
342
|
@pulumi.getter
|
|
343
343
|
def enabled(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
344
344
|
"""
|
|
345
|
-
|
|
345
|
+
Whether the IoT Hub instance should be enabled or not.
|
|
346
346
|
|
|
347
347
|
> **Important:** Updates to `enabled` will disconnect eventually connected devices.
|
|
348
348
|
"""
|
|
@@ -404,7 +404,7 @@ class _HubState:
|
|
|
404
404
|
@pulumi.getter(name="mqttCa")
|
|
405
405
|
def mqtt_ca(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
406
406
|
"""
|
|
407
|
-
The MQTT
|
|
407
|
+
The MQTT certificate content
|
|
408
408
|
"""
|
|
409
409
|
return pulumi.get(self, "mqtt_ca")
|
|
410
410
|
|
|
@@ -556,7 +556,7 @@ class Hub(pulumi.CustomResource):
|
|
|
556
556
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
557
557
|
:param pulumi.Input[_builtins.bool] device_auto_provisioning: Wether to enable the device auto provisioning or not
|
|
558
558
|
:param pulumi.Input[_builtins.bool] disable_events: Whether to enable the hub events or not
|
|
559
|
-
:param pulumi.Input[_builtins.bool] enabled:
|
|
559
|
+
:param pulumi.Input[_builtins.bool] enabled: Whether the IoT Hub instance should be enabled or not.
|
|
560
560
|
|
|
561
561
|
> **Important:** Updates to `enabled` will disconnect eventually connected devices.
|
|
562
562
|
:param pulumi.Input[_builtins.str] events_topic_prefix: Topic prefix for the hub events
|
|
@@ -697,14 +697,14 @@ class Hub(pulumi.CustomResource):
|
|
|
697
697
|
:param pulumi.Input[_builtins.bool] device_auto_provisioning: Wether to enable the device auto provisioning or not
|
|
698
698
|
:param pulumi.Input[_builtins.int] device_count: The number of registered devices in the Hub.
|
|
699
699
|
:param pulumi.Input[_builtins.bool] disable_events: Whether to enable the hub events or not
|
|
700
|
-
:param pulumi.Input[_builtins.bool] enabled:
|
|
700
|
+
:param pulumi.Input[_builtins.bool] enabled: Whether the IoT Hub instance should be enabled or not.
|
|
701
701
|
|
|
702
702
|
> **Important:** Updates to `enabled` will disconnect eventually connected devices.
|
|
703
703
|
:param pulumi.Input[_builtins.str] endpoint: The MQTT network endpoint to connect MQTT devices to.
|
|
704
704
|
:param pulumi.Input[_builtins.str] events_topic_prefix: Topic prefix for the hub events
|
|
705
705
|
:param pulumi.Input[_builtins.str] hub_ca: Custom user provided certificate authority
|
|
706
706
|
:param pulumi.Input[_builtins.str] hub_ca_challenge: Challenge certificate for the user provided hub CA
|
|
707
|
-
:param pulumi.Input[_builtins.str] mqtt_ca: The MQTT
|
|
707
|
+
:param pulumi.Input[_builtins.str] mqtt_ca: The MQTT certificate content
|
|
708
708
|
:param pulumi.Input[_builtins.str] mqtt_ca_url: The MQTT ca url
|
|
709
709
|
:param pulumi.Input[_builtins.str] name: The name of the IoT Hub instance you want to create (e.g. `my-hub`).
|
|
710
710
|
:param pulumi.Input[_builtins.str] organization_id: The organization_id you want to attach the resource to
|
|
@@ -785,7 +785,7 @@ class Hub(pulumi.CustomResource):
|
|
|
785
785
|
@pulumi.getter
|
|
786
786
|
def enabled(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
787
787
|
"""
|
|
788
|
-
|
|
788
|
+
Whether the IoT Hub instance should be enabled or not.
|
|
789
789
|
|
|
790
790
|
> **Important:** Updates to `enabled` will disconnect eventually connected devices.
|
|
791
791
|
"""
|
|
@@ -827,7 +827,7 @@ class Hub(pulumi.CustomResource):
|
|
|
827
827
|
@pulumi.getter(name="mqttCa")
|
|
828
828
|
def mqtt_ca(self) -> pulumi.Output[_builtins.str]:
|
|
829
829
|
"""
|
|
830
|
-
The MQTT
|
|
830
|
+
The MQTT certificate content
|
|
831
831
|
"""
|
|
832
832
|
return pulumi.get(self, "mqtt_ca")
|
|
833
833
|
|
|
@@ -310,17 +310,17 @@ class Route(pulumi.CustomResource):
|
|
|
310
310
|
topic="#",
|
|
311
311
|
database={
|
|
312
312
|
"query": \"\"\"INSERT INTO measurements(
|
|
313
|
-
\\
|
|
314
|
-
\\
|
|
315
|
-
\\
|
|
316
|
-
\\
|
|
317
|
-
\\
|
|
313
|
+
\\tpush_time,
|
|
314
|
+
\\treport_time,
|
|
315
|
+
\\tstation_id,
|
|
316
|
+
\\ttemperature,
|
|
317
|
+
\\thumidity
|
|
318
318
|
) VALUES (
|
|
319
|
-
\\
|
|
320
|
-
\\
|
|
321
|
-
\\
|
|
322
|
-
\\
|
|
323
|
-
\\
|
|
319
|
+
\\tNOW(),
|
|
320
|
+
\\tTIMESTAMP 'epoch' + (($PAYLOAD::jsonb->'last_reported')::integer * INTERVAL '1 second'),
|
|
321
|
+
\\t($PAYLOAD::jsonb->'station_id')::uuid,
|
|
322
|
+
\\t($PAYLOAD::jsonb->'temperature')::decimal,
|
|
323
|
+
\\t($PAYLOAD::jsonb->'humidity'):decimal:
|
|
324
324
|
);
|
|
325
325
|
\"\"\",
|
|
326
326
|
"host": iot.endpoint_ip,
|
|
@@ -427,17 +427,17 @@ class Route(pulumi.CustomResource):
|
|
|
427
427
|
topic="#",
|
|
428
428
|
database={
|
|
429
429
|
"query": \"\"\"INSERT INTO measurements(
|
|
430
|
-
\\
|
|
431
|
-
\\
|
|
432
|
-
\\
|
|
433
|
-
\\
|
|
434
|
-
\\
|
|
430
|
+
\\tpush_time,
|
|
431
|
+
\\treport_time,
|
|
432
|
+
\\tstation_id,
|
|
433
|
+
\\ttemperature,
|
|
434
|
+
\\thumidity
|
|
435
435
|
) VALUES (
|
|
436
|
-
\\
|
|
437
|
-
\\
|
|
438
|
-
\\
|
|
439
|
-
\\
|
|
440
|
-
\\
|
|
436
|
+
\\tNOW(),
|
|
437
|
+
\\tTIMESTAMP 'epoch' + (($PAYLOAD::jsonb->'last_reported')::integer * INTERVAL '1 second'),
|
|
438
|
+
\\t($PAYLOAD::jsonb->'station_id')::uuid,
|
|
439
|
+
\\t($PAYLOAD::jsonb->'temperature')::decimal,
|
|
440
|
+
\\t($PAYLOAD::jsonb->'humidity'):decimal:
|
|
441
441
|
);
|
|
442
442
|
\"\"\",
|
|
443
443
|
"host": iot.endpoint_ip,
|
|
@@ -430,25 +430,6 @@ class IotDevice(pulumi.CustomResource):
|
|
|
430
430
|
name="test-iot")
|
|
431
431
|
```
|
|
432
432
|
|
|
433
|
-
### With custom certificate
|
|
434
|
-
|
|
435
|
-
```python
|
|
436
|
-
import pulumi
|
|
437
|
-
import pulumi_local as local
|
|
438
|
-
import pulumiverse_scaleway as scaleway
|
|
439
|
-
|
|
440
|
-
main = scaleway.iot.Hub("main",
|
|
441
|
-
name="test-iot",
|
|
442
|
-
product_plan="plan_shared")
|
|
443
|
-
device_cert = local.get_file(filename="device-certificate.pem")
|
|
444
|
-
main_device = scaleway.iot.Device("main",
|
|
445
|
-
hub_id=main.id,
|
|
446
|
-
name="test-iot",
|
|
447
|
-
certificate={
|
|
448
|
-
"crt": device_cert.content,
|
|
449
|
-
})
|
|
450
|
-
```
|
|
451
|
-
|
|
452
433
|
## Import
|
|
453
434
|
|
|
454
435
|
IoT devices can be imported using the `{region}/{id}`, e.g.
|
|
@@ -499,25 +480,6 @@ class IotDevice(pulumi.CustomResource):
|
|
|
499
480
|
name="test-iot")
|
|
500
481
|
```
|
|
501
482
|
|
|
502
|
-
### With custom certificate
|
|
503
|
-
|
|
504
|
-
```python
|
|
505
|
-
import pulumi
|
|
506
|
-
import pulumi_local as local
|
|
507
|
-
import pulumiverse_scaleway as scaleway
|
|
508
|
-
|
|
509
|
-
main = scaleway.iot.Hub("main",
|
|
510
|
-
name="test-iot",
|
|
511
|
-
product_plan="plan_shared")
|
|
512
|
-
device_cert = local.get_file(filename="device-certificate.pem")
|
|
513
|
-
main_device = scaleway.iot.Device("main",
|
|
514
|
-
hub_id=main.id,
|
|
515
|
-
name="test-iot",
|
|
516
|
-
certificate={
|
|
517
|
-
"crt": device_cert.content,
|
|
518
|
-
})
|
|
519
|
-
```
|
|
520
|
-
|
|
521
483
|
## Import
|
|
522
484
|
|
|
523
485
|
IoT devices can be imported using the `{region}/{id}`, e.g.
|
pulumiverse_scaleway/iot_hub.py
CHANGED
|
@@ -36,7 +36,7 @@ class IotHubArgs:
|
|
|
36
36
|
> **Important:** Updates to `product_plan` will recreate the IoT Hub Instance.
|
|
37
37
|
:param pulumi.Input[_builtins.bool] device_auto_provisioning: Wether to enable the device auto provisioning or not
|
|
38
38
|
:param pulumi.Input[_builtins.bool] disable_events: Whether to enable the hub events or not
|
|
39
|
-
:param pulumi.Input[_builtins.bool] enabled:
|
|
39
|
+
:param pulumi.Input[_builtins.bool] enabled: Whether the IoT Hub instance should be enabled or not.
|
|
40
40
|
|
|
41
41
|
> **Important:** Updates to `enabled` will disconnect eventually connected devices.
|
|
42
42
|
:param pulumi.Input[_builtins.str] events_topic_prefix: Topic prefix for the hub events
|
|
@@ -108,7 +108,7 @@ class IotHubArgs:
|
|
|
108
108
|
@pulumi.getter
|
|
109
109
|
def enabled(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
110
110
|
"""
|
|
111
|
-
|
|
111
|
+
Whether the IoT Hub instance should be enabled or not.
|
|
112
112
|
|
|
113
113
|
> **Important:** Updates to `enabled` will disconnect eventually connected devices.
|
|
114
114
|
"""
|
|
@@ -220,14 +220,14 @@ class _IotHubState:
|
|
|
220
220
|
:param pulumi.Input[_builtins.bool] device_auto_provisioning: Wether to enable the device auto provisioning or not
|
|
221
221
|
:param pulumi.Input[_builtins.int] device_count: The number of registered devices in the Hub.
|
|
222
222
|
:param pulumi.Input[_builtins.bool] disable_events: Whether to enable the hub events or not
|
|
223
|
-
:param pulumi.Input[_builtins.bool] enabled:
|
|
223
|
+
:param pulumi.Input[_builtins.bool] enabled: Whether the IoT Hub instance should be enabled or not.
|
|
224
224
|
|
|
225
225
|
> **Important:** Updates to `enabled` will disconnect eventually connected devices.
|
|
226
226
|
:param pulumi.Input[_builtins.str] endpoint: The MQTT network endpoint to connect MQTT devices to.
|
|
227
227
|
:param pulumi.Input[_builtins.str] events_topic_prefix: Topic prefix for the hub events
|
|
228
228
|
:param pulumi.Input[_builtins.str] hub_ca: Custom user provided certificate authority
|
|
229
229
|
:param pulumi.Input[_builtins.str] hub_ca_challenge: Challenge certificate for the user provided hub CA
|
|
230
|
-
:param pulumi.Input[_builtins.str] mqtt_ca: The MQTT
|
|
230
|
+
:param pulumi.Input[_builtins.str] mqtt_ca: The MQTT certificate content
|
|
231
231
|
:param pulumi.Input[_builtins.str] mqtt_ca_url: The MQTT ca url
|
|
232
232
|
:param pulumi.Input[_builtins.str] name: The name of the IoT Hub instance you want to create (e.g. `my-hub`).
|
|
233
233
|
:param pulumi.Input[_builtins.str] organization_id: The organization_id you want to attach the resource to
|
|
@@ -342,7 +342,7 @@ class _IotHubState:
|
|
|
342
342
|
@pulumi.getter
|
|
343
343
|
def enabled(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
344
344
|
"""
|
|
345
|
-
|
|
345
|
+
Whether the IoT Hub instance should be enabled or not.
|
|
346
346
|
|
|
347
347
|
> **Important:** Updates to `enabled` will disconnect eventually connected devices.
|
|
348
348
|
"""
|
|
@@ -404,7 +404,7 @@ class _IotHubState:
|
|
|
404
404
|
@pulumi.getter(name="mqttCa")
|
|
405
405
|
def mqtt_ca(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
406
406
|
"""
|
|
407
|
-
The MQTT
|
|
407
|
+
The MQTT certificate content
|
|
408
408
|
"""
|
|
409
409
|
return pulumi.get(self, "mqtt_ca")
|
|
410
410
|
|
|
@@ -561,7 +561,7 @@ class IotHub(pulumi.CustomResource):
|
|
|
561
561
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
562
562
|
:param pulumi.Input[_builtins.bool] device_auto_provisioning: Wether to enable the device auto provisioning or not
|
|
563
563
|
:param pulumi.Input[_builtins.bool] disable_events: Whether to enable the hub events or not
|
|
564
|
-
:param pulumi.Input[_builtins.bool] enabled:
|
|
564
|
+
:param pulumi.Input[_builtins.bool] enabled: Whether the IoT Hub instance should be enabled or not.
|
|
565
565
|
|
|
566
566
|
> **Important:** Updates to `enabled` will disconnect eventually connected devices.
|
|
567
567
|
:param pulumi.Input[_builtins.str] events_topic_prefix: Topic prefix for the hub events
|
|
@@ -701,14 +701,14 @@ class IotHub(pulumi.CustomResource):
|
|
|
701
701
|
:param pulumi.Input[_builtins.bool] device_auto_provisioning: Wether to enable the device auto provisioning or not
|
|
702
702
|
:param pulumi.Input[_builtins.int] device_count: The number of registered devices in the Hub.
|
|
703
703
|
:param pulumi.Input[_builtins.bool] disable_events: Whether to enable the hub events or not
|
|
704
|
-
:param pulumi.Input[_builtins.bool] enabled:
|
|
704
|
+
:param pulumi.Input[_builtins.bool] enabled: Whether the IoT Hub instance should be enabled or not.
|
|
705
705
|
|
|
706
706
|
> **Important:** Updates to `enabled` will disconnect eventually connected devices.
|
|
707
707
|
:param pulumi.Input[_builtins.str] endpoint: The MQTT network endpoint to connect MQTT devices to.
|
|
708
708
|
:param pulumi.Input[_builtins.str] events_topic_prefix: Topic prefix for the hub events
|
|
709
709
|
:param pulumi.Input[_builtins.str] hub_ca: Custom user provided certificate authority
|
|
710
710
|
:param pulumi.Input[_builtins.str] hub_ca_challenge: Challenge certificate for the user provided hub CA
|
|
711
|
-
:param pulumi.Input[_builtins.str] mqtt_ca: The MQTT
|
|
711
|
+
:param pulumi.Input[_builtins.str] mqtt_ca: The MQTT certificate content
|
|
712
712
|
:param pulumi.Input[_builtins.str] mqtt_ca_url: The MQTT ca url
|
|
713
713
|
:param pulumi.Input[_builtins.str] name: The name of the IoT Hub instance you want to create (e.g. `my-hub`).
|
|
714
714
|
:param pulumi.Input[_builtins.str] organization_id: The organization_id you want to attach the resource to
|
|
@@ -789,7 +789,7 @@ class IotHub(pulumi.CustomResource):
|
|
|
789
789
|
@pulumi.getter
|
|
790
790
|
def enabled(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
791
791
|
"""
|
|
792
|
-
|
|
792
|
+
Whether the IoT Hub instance should be enabled or not.
|
|
793
793
|
|
|
794
794
|
> **Important:** Updates to `enabled` will disconnect eventually connected devices.
|
|
795
795
|
"""
|
|
@@ -831,7 +831,7 @@ class IotHub(pulumi.CustomResource):
|
|
|
831
831
|
@pulumi.getter(name="mqttCa")
|
|
832
832
|
def mqtt_ca(self) -> pulumi.Output[_builtins.str]:
|
|
833
833
|
"""
|
|
834
|
-
The MQTT
|
|
834
|
+
The MQTT certificate content
|
|
835
835
|
"""
|
|
836
836
|
return pulumi.get(self, "mqtt_ca")
|
|
837
837
|
|
|
@@ -315,17 +315,17 @@ class IotRoute(pulumi.CustomResource):
|
|
|
315
315
|
topic="#",
|
|
316
316
|
database={
|
|
317
317
|
"query": \"\"\"INSERT INTO measurements(
|
|
318
|
-
\\
|
|
319
|
-
\\
|
|
320
|
-
\\
|
|
321
|
-
\\
|
|
322
|
-
\\
|
|
318
|
+
\\tpush_time,
|
|
319
|
+
\\treport_time,
|
|
320
|
+
\\tstation_id,
|
|
321
|
+
\\ttemperature,
|
|
322
|
+
\\thumidity
|
|
323
323
|
) VALUES (
|
|
324
|
-
\\
|
|
325
|
-
\\
|
|
326
|
-
\\
|
|
327
|
-
\\
|
|
328
|
-
\\
|
|
324
|
+
\\tNOW(),
|
|
325
|
+
\\tTIMESTAMP 'epoch' + (($PAYLOAD::jsonb->'last_reported')::integer * INTERVAL '1 second'),
|
|
326
|
+
\\t($PAYLOAD::jsonb->'station_id')::uuid,
|
|
327
|
+
\\t($PAYLOAD::jsonb->'temperature')::decimal,
|
|
328
|
+
\\t($PAYLOAD::jsonb->'humidity'):decimal:
|
|
329
329
|
);
|
|
330
330
|
\"\"\",
|
|
331
331
|
"host": iot.endpoint_ip,
|
|
@@ -432,17 +432,17 @@ class IotRoute(pulumi.CustomResource):
|
|
|
432
432
|
topic="#",
|
|
433
433
|
database={
|
|
434
434
|
"query": \"\"\"INSERT INTO measurements(
|
|
435
|
-
\\
|
|
436
|
-
\\
|
|
437
|
-
\\
|
|
438
|
-
\\
|
|
439
|
-
\\
|
|
435
|
+
\\tpush_time,
|
|
436
|
+
\\treport_time,
|
|
437
|
+
\\tstation_id,
|
|
438
|
+
\\ttemperature,
|
|
439
|
+
\\thumidity
|
|
440
440
|
) VALUES (
|
|
441
|
-
\\
|
|
442
|
-
\\
|
|
443
|
-
\\
|
|
444
|
-
\\
|
|
445
|
-
\\
|
|
441
|
+
\\tNOW(),
|
|
442
|
+
\\tTIMESTAMP 'epoch' + (($PAYLOAD::jsonb->'last_reported')::integer * INTERVAL '1 second'),
|
|
443
|
+
\\t($PAYLOAD::jsonb->'station_id')::uuid,
|
|
444
|
+
\\t($PAYLOAD::jsonb->'temperature')::decimal,
|
|
445
|
+
\\t($PAYLOAD::jsonb->'humidity'):decimal:
|
|
446
446
|
);
|
|
447
447
|
\"\"\",
|
|
448
448
|
"host": iot.endpoint_ip,
|
|
@@ -35,11 +35,11 @@ if not MYPY:
|
|
|
35
35
|
class IpCustomResourceArgsDict(TypedDict):
|
|
36
36
|
mac_address: pulumi.Input[_builtins.str]
|
|
37
37
|
"""
|
|
38
|
-
The MAC address of the resource
|
|
38
|
+
The MAC address of the custom resource.
|
|
39
39
|
"""
|
|
40
40
|
name: NotRequired[pulumi.Input[_builtins.str]]
|
|
41
41
|
"""
|
|
42
|
-
|
|
42
|
+
When the resource is in a Private Network, a DNS record is available to resolve the resource name.
|
|
43
43
|
"""
|
|
44
44
|
elif False:
|
|
45
45
|
IpCustomResourceArgsDict: TypeAlias = Mapping[str, Any]
|
|
@@ -50,8 +50,8 @@ class IpCustomResourceArgs:
|
|
|
50
50
|
mac_address: pulumi.Input[_builtins.str],
|
|
51
51
|
name: Optional[pulumi.Input[_builtins.str]] = None):
|
|
52
52
|
"""
|
|
53
|
-
:param pulumi.Input[_builtins.str] mac_address: The MAC address of the resource
|
|
54
|
-
:param pulumi.Input[_builtins.str] name:
|
|
53
|
+
:param pulumi.Input[_builtins.str] mac_address: The MAC address of the custom resource.
|
|
54
|
+
:param pulumi.Input[_builtins.str] name: When the resource is in a Private Network, a DNS record is available to resolve the resource name.
|
|
55
55
|
"""
|
|
56
56
|
pulumi.set(__self__, "mac_address", mac_address)
|
|
57
57
|
if name is not None:
|
|
@@ -61,7 +61,7 @@ class IpCustomResourceArgs:
|
|
|
61
61
|
@pulumi.getter(name="macAddress")
|
|
62
62
|
def mac_address(self) -> pulumi.Input[_builtins.str]:
|
|
63
63
|
"""
|
|
64
|
-
The MAC address of the resource
|
|
64
|
+
The MAC address of the custom resource.
|
|
65
65
|
"""
|
|
66
66
|
return pulumi.get(self, "mac_address")
|
|
67
67
|
|
|
@@ -73,7 +73,7 @@ class IpCustomResourceArgs:
|
|
|
73
73
|
@pulumi.getter
|
|
74
74
|
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
75
75
|
"""
|
|
76
|
-
|
|
76
|
+
When the resource is in a Private Network, a DNS record is available to resolve the resource name.
|
|
77
77
|
"""
|
|
78
78
|
return pulumi.get(self, "name")
|
|
79
79
|
|