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.
- pulumiverse_scaleway/__init__.py +1065 -0
- pulumiverse_scaleway/_inputs.py +8688 -0
- pulumiverse_scaleway/_utilities.py +327 -0
- pulumiverse_scaleway/account_project.py +316 -0
- pulumiverse_scaleway/account_ssh_key.py +454 -0
- pulumiverse_scaleway/apple_silicon_server.py +564 -0
- pulumiverse_scaleway/baremetal_server.py +1579 -0
- pulumiverse_scaleway/block_snapshot.py +401 -0
- pulumiverse_scaleway/block_volume.py +527 -0
- pulumiverse_scaleway/cockpit.py +314 -0
- pulumiverse_scaleway/cockpit_alert_manager.py +401 -0
- pulumiverse_scaleway/cockpit_grafana_user.py +362 -0
- pulumiverse_scaleway/cockpit_source.py +567 -0
- pulumiverse_scaleway/cockpit_token.py +479 -0
- pulumiverse_scaleway/config/__init__.py +8 -0
- pulumiverse_scaleway/config/__init__.pyi +56 -0
- pulumiverse_scaleway/config/vars.py +78 -0
- pulumiverse_scaleway/container.py +1373 -0
- pulumiverse_scaleway/container_cron.py +458 -0
- pulumiverse_scaleway/container_domain.py +406 -0
- pulumiverse_scaleway/container_namespace.py +636 -0
- pulumiverse_scaleway/container_token.py +452 -0
- pulumiverse_scaleway/container_trigger.py +480 -0
- pulumiverse_scaleway/database.py +407 -0
- pulumiverse_scaleway/database_acl.py +332 -0
- pulumiverse_scaleway/database_backup.py +574 -0
- pulumiverse_scaleway/database_instance.py +1641 -0
- pulumiverse_scaleway/database_privilege.py +422 -0
- pulumiverse_scaleway/database_read_replica.py +528 -0
- pulumiverse_scaleway/database_user.py +446 -0
- pulumiverse_scaleway/domain_record.py +1116 -0
- pulumiverse_scaleway/domain_zone.py +430 -0
- pulumiverse_scaleway/flexible_ip.py +702 -0
- pulumiverse_scaleway/flexible_ip_mac_address.py +510 -0
- pulumiverse_scaleway/function.py +1103 -0
- pulumiverse_scaleway/function_cron.py +462 -0
- pulumiverse_scaleway/function_domain.py +370 -0
- pulumiverse_scaleway/function_namespace.py +580 -0
- pulumiverse_scaleway/function_token.py +460 -0
- pulumiverse_scaleway/function_trigger.py +480 -0
- pulumiverse_scaleway/get_account_project.py +170 -0
- pulumiverse_scaleway/get_account_ssh_key.py +205 -0
- pulumiverse_scaleway/get_availability_zones.py +139 -0
- pulumiverse_scaleway/get_baremetal_offer.py +245 -0
- pulumiverse_scaleway/get_baremetal_option.py +168 -0
- pulumiverse_scaleway/get_baremetal_os.py +174 -0
- pulumiverse_scaleway/get_baremetal_server.py +422 -0
- pulumiverse_scaleway/get_billing_consumptions.py +134 -0
- pulumiverse_scaleway/get_billing_invoices.py +154 -0
- pulumiverse_scaleway/get_block_snapshot.py +174 -0
- pulumiverse_scaleway/get_block_volume.py +188 -0
- pulumiverse_scaleway/get_cockpit.py +204 -0
- pulumiverse_scaleway/get_cockpit_plan.py +125 -0
- pulumiverse_scaleway/get_cockpit_source.py +262 -0
- pulumiverse_scaleway/get_config.py +180 -0
- pulumiverse_scaleway/get_container.py +522 -0
- pulumiverse_scaleway/get_container_namespace.py +283 -0
- pulumiverse_scaleway/get_database.py +187 -0
- pulumiverse_scaleway/get_database_acl.py +143 -0
- pulumiverse_scaleway/get_database_backup.py +253 -0
- pulumiverse_scaleway/get_database_instance.py +404 -0
- pulumiverse_scaleway/get_database_privilege.py +181 -0
- pulumiverse_scaleway/get_domain_record.py +340 -0
- pulumiverse_scaleway/get_domain_zone.py +201 -0
- pulumiverse_scaleway/get_flexible_ip.py +247 -0
- pulumiverse_scaleway/get_flexible_ips.py +240 -0
- pulumiverse_scaleway/get_function.py +365 -0
- pulumiverse_scaleway/get_function_namespace.py +238 -0
- pulumiverse_scaleway/get_iam_api_key.py +210 -0
- pulumiverse_scaleway/get_iam_application.py +210 -0
- pulumiverse_scaleway/get_iam_group.py +236 -0
- pulumiverse_scaleway/get_iam_ssh_key.py +212 -0
- pulumiverse_scaleway/get_iam_user.py +177 -0
- pulumiverse_scaleway/get_instance_image.py +305 -0
- pulumiverse_scaleway/get_instance_ip.py +204 -0
- pulumiverse_scaleway/get_instance_placement_group.py +212 -0
- pulumiverse_scaleway/get_instance_private_nic.py +226 -0
- pulumiverse_scaleway/get_instance_security_group.py +268 -0
- pulumiverse_scaleway/get_instance_server.py +502 -0
- pulumiverse_scaleway/get_instance_servers.py +187 -0
- pulumiverse_scaleway/get_instance_snapshot.py +248 -0
- pulumiverse_scaleway/get_instance_volume.py +215 -0
- pulumiverse_scaleway/get_iot_device.py +257 -0
- pulumiverse_scaleway/get_iot_hub.py +322 -0
- pulumiverse_scaleway/get_ipam_ip.py +419 -0
- pulumiverse_scaleway/get_ipam_ips.py +358 -0
- pulumiverse_scaleway/get_k8s_version.py +196 -0
- pulumiverse_scaleway/get_kubernetes_cluster.py +417 -0
- pulumiverse_scaleway/get_kubernetes_node_pool.py +436 -0
- pulumiverse_scaleway/get_lb_acls.py +198 -0
- pulumiverse_scaleway/get_lb_backend.py +486 -0
- pulumiverse_scaleway/get_lb_backends.py +196 -0
- pulumiverse_scaleway/get_lb_frontend.py +274 -0
- pulumiverse_scaleway/get_lb_frontends.py +196 -0
- pulumiverse_scaleway/get_lb_ips.py +198 -0
- pulumiverse_scaleway/get_lb_route.py +217 -0
- pulumiverse_scaleway/get_lb_routes.py +179 -0
- pulumiverse_scaleway/get_lbs.py +187 -0
- pulumiverse_scaleway/get_loadbalancer.py +339 -0
- pulumiverse_scaleway/get_loadbalancer_certificate.py +230 -0
- pulumiverse_scaleway/get_loadbalancer_ip.py +228 -0
- pulumiverse_scaleway/get_marketplace_image.py +147 -0
- pulumiverse_scaleway/get_mnq_sns.py +150 -0
- pulumiverse_scaleway/get_mnq_sqs.py +150 -0
- pulumiverse_scaleway/get_mongo_db_instance.py +324 -0
- pulumiverse_scaleway/get_object_bucket.py +290 -0
- pulumiverse_scaleway/get_object_bucket_policy.py +163 -0
- pulumiverse_scaleway/get_redis_cluster.py +347 -0
- pulumiverse_scaleway/get_registry_image.py +239 -0
- pulumiverse_scaleway/get_registry_image_tag.py +229 -0
- pulumiverse_scaleway/get_registry_namespace.py +199 -0
- pulumiverse_scaleway/get_secret.py +338 -0
- pulumiverse_scaleway/get_secret_version.py +340 -0
- pulumiverse_scaleway/get_tem_domain.py +378 -0
- pulumiverse_scaleway/get_vpc.py +246 -0
- pulumiverse_scaleway/get_vpc_gateway_network.py +287 -0
- pulumiverse_scaleway/get_vpc_private_network.py +282 -0
- pulumiverse_scaleway/get_vpc_public_gateway.py +304 -0
- pulumiverse_scaleway/get_vpc_public_gateway_dhcp.py +305 -0
- pulumiverse_scaleway/get_vpc_public_gateway_dhcp_reservation.py +382 -0
- pulumiverse_scaleway/get_vpc_public_gateway_ip.py +199 -0
- pulumiverse_scaleway/get_vpc_public_pat_rule.py +313 -0
- pulumiverse_scaleway/get_vpc_routes.py +208 -0
- pulumiverse_scaleway/get_vpcs.py +174 -0
- pulumiverse_scaleway/get_web_host_offer.py +192 -0
- pulumiverse_scaleway/get_webhosting.py +332 -0
- pulumiverse_scaleway/iam_api_key.py +620 -0
- pulumiverse_scaleway/iam_application.py +417 -0
- pulumiverse_scaleway/iam_group.py +566 -0
- pulumiverse_scaleway/iam_group_membership.py +323 -0
- pulumiverse_scaleway/iam_policy.py +773 -0
- pulumiverse_scaleway/iam_ssh_key.py +455 -0
- pulumiverse_scaleway/iam_user.py +513 -0
- pulumiverse_scaleway/inference_deployment.py +822 -0
- pulumiverse_scaleway/instance_image.py +750 -0
- pulumiverse_scaleway/instance_ip.py +483 -0
- pulumiverse_scaleway/instance_ip_reverse_dns.py +308 -0
- pulumiverse_scaleway/instance_placement_group.py +479 -0
- pulumiverse_scaleway/instance_private_nic.py +555 -0
- pulumiverse_scaleway/instance_security_group.py +720 -0
- pulumiverse_scaleway/instance_security_group_rules.py +439 -0
- pulumiverse_scaleway/instance_server.py +2006 -0
- pulumiverse_scaleway/instance_snapshot.py +669 -0
- pulumiverse_scaleway/instance_user_data.py +435 -0
- pulumiverse_scaleway/instance_volume.py +535 -0
- pulumiverse_scaleway/iot_device.py +750 -0
- pulumiverse_scaleway/iot_hub.py +896 -0
- pulumiverse_scaleway/iot_network.py +472 -0
- pulumiverse_scaleway/iot_route.py +660 -0
- pulumiverse_scaleway/ipam_ip.py +757 -0
- pulumiverse_scaleway/ipam_ip_reverse_dns.py +318 -0
- pulumiverse_scaleway/job_definition.py +692 -0
- pulumiverse_scaleway/kubernetes_cluster.py +1538 -0
- pulumiverse_scaleway/kubernetes_node_pool.py +1255 -0
- pulumiverse_scaleway/loadbalancer.py +1061 -0
- pulumiverse_scaleway/loadbalancer_acl.py +520 -0
- pulumiverse_scaleway/loadbalancer_backend.py +1588 -0
- pulumiverse_scaleway/loadbalancer_certificate.py +460 -0
- pulumiverse_scaleway/loadbalancer_frontend.py +829 -0
- pulumiverse_scaleway/loadbalancer_ip.py +514 -0
- pulumiverse_scaleway/loadbalancer_route.py +523 -0
- pulumiverse_scaleway/mnq_nats_account.py +334 -0
- pulumiverse_scaleway/mnq_nats_credentials.py +330 -0
- pulumiverse_scaleway/mnq_sns.py +306 -0
- pulumiverse_scaleway/mnq_sns_credentials.py +413 -0
- pulumiverse_scaleway/mnq_sns_topic.py +659 -0
- pulumiverse_scaleway/mnq_sns_topic_subscription.py +699 -0
- pulumiverse_scaleway/mnq_sqs.py +304 -0
- pulumiverse_scaleway/mnq_sqs_credentials.py +413 -0
- pulumiverse_scaleway/mnq_sqs_queue.py +800 -0
- pulumiverse_scaleway/mongo_db_instance.py +907 -0
- pulumiverse_scaleway/mongo_db_snapshot.py +521 -0
- pulumiverse_scaleway/object_bucket.py +874 -0
- pulumiverse_scaleway/object_bucket_acl.py +596 -0
- pulumiverse_scaleway/object_bucket_lock_configuration.py +395 -0
- pulumiverse_scaleway/object_bucket_policy.py +673 -0
- pulumiverse_scaleway/object_bucket_website_configuration.py +534 -0
- pulumiverse_scaleway/object_item.py +776 -0
- pulumiverse_scaleway/outputs.py +11808 -0
- pulumiverse_scaleway/provider.py +327 -0
- pulumiverse_scaleway/pulumi-plugin.json +6 -0
- pulumiverse_scaleway/py.typed +0 -0
- pulumiverse_scaleway/redis_cluster.py +1201 -0
- pulumiverse_scaleway/registry_namespace.py +458 -0
- pulumiverse_scaleway/sdb_database.py +432 -0
- pulumiverse_scaleway/secret.py +663 -0
- pulumiverse_scaleway/secret_version.py +487 -0
- pulumiverse_scaleway/tem_domain.py +1030 -0
- pulumiverse_scaleway/tem_domain_validation.py +303 -0
- pulumiverse_scaleway/tem_webhook.py +640 -0
- pulumiverse_scaleway/vpc.py +536 -0
- pulumiverse_scaleway/vpc_gateway_network.py +866 -0
- pulumiverse_scaleway/vpc_private_network.py +734 -0
- pulumiverse_scaleway/vpc_public_gateway.py +789 -0
- pulumiverse_scaleway/vpc_public_gateway_dhcp.py +933 -0
- pulumiverse_scaleway/vpc_public_gateway_dhcp_reservation.py +514 -0
- pulumiverse_scaleway/vpc_public_gateway_ip.py +457 -0
- pulumiverse_scaleway/vpc_public_gateway_ip_reverse_dns.py +306 -0
- pulumiverse_scaleway/vpc_public_gateway_pat_rule.py +591 -0
- pulumiverse_scaleway/vpc_route.py +577 -0
- pulumiverse_scaleway/webhosting.py +805 -0
- pulumiverse_scaleway-1.23.0a1736837529.dist-info/METADATA +77 -0
- pulumiverse_scaleway-1.23.0a1736837529.dist-info/RECORD +205 -0
- pulumiverse_scaleway-1.23.0a1736837529.dist-info/WHEEL +5 -0
- pulumiverse_scaleway-1.23.0a1736837529.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,480 @@
|
|
|
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
|
+
from ._inputs import *
|
|
18
|
+
|
|
19
|
+
__all__ = ['ContainerTriggerArgs', 'ContainerTrigger']
|
|
20
|
+
|
|
21
|
+
@pulumi.input_type
|
|
22
|
+
class ContainerTriggerArgs:
|
|
23
|
+
def __init__(__self__, *,
|
|
24
|
+
container_id: pulumi.Input[str],
|
|
25
|
+
description: Optional[pulumi.Input[str]] = None,
|
|
26
|
+
name: Optional[pulumi.Input[str]] = None,
|
|
27
|
+
nats: Optional[pulumi.Input['ContainerTriggerNatsArgs']] = None,
|
|
28
|
+
region: Optional[pulumi.Input[str]] = None,
|
|
29
|
+
sqs: Optional[pulumi.Input['ContainerTriggerSqsArgs']] = None):
|
|
30
|
+
"""
|
|
31
|
+
The set of arguments for constructing a ContainerTrigger resource.
|
|
32
|
+
:param pulumi.Input[str] container_id: The unique identifier of the container to create a trigger for.
|
|
33
|
+
:param pulumi.Input[str] description: The description of the trigger.
|
|
34
|
+
:param pulumi.Input[str] name: The unique name of the trigger. If not provided, a random name is generated.
|
|
35
|
+
:param pulumi.Input['ContainerTriggerNatsArgs'] nats: The configuration for the Scaleway NATS account used by the trigger
|
|
36
|
+
:param pulumi.Input[str] region: `region`). The region in which the namespace is created.
|
|
37
|
+
:param pulumi.Input['ContainerTriggerSqsArgs'] sqs: The configuration of the Scaleway SQS queue used by the trigger
|
|
38
|
+
"""
|
|
39
|
+
pulumi.set(__self__, "container_id", container_id)
|
|
40
|
+
if description is not None:
|
|
41
|
+
pulumi.set(__self__, "description", description)
|
|
42
|
+
if name is not None:
|
|
43
|
+
pulumi.set(__self__, "name", name)
|
|
44
|
+
if nats is not None:
|
|
45
|
+
pulumi.set(__self__, "nats", nats)
|
|
46
|
+
if region is not None:
|
|
47
|
+
pulumi.set(__self__, "region", region)
|
|
48
|
+
if sqs is not None:
|
|
49
|
+
pulumi.set(__self__, "sqs", sqs)
|
|
50
|
+
|
|
51
|
+
@property
|
|
52
|
+
@pulumi.getter(name="containerId")
|
|
53
|
+
def container_id(self) -> pulumi.Input[str]:
|
|
54
|
+
"""
|
|
55
|
+
The unique identifier of the container to create a trigger for.
|
|
56
|
+
"""
|
|
57
|
+
return pulumi.get(self, "container_id")
|
|
58
|
+
|
|
59
|
+
@container_id.setter
|
|
60
|
+
def container_id(self, value: pulumi.Input[str]):
|
|
61
|
+
pulumi.set(self, "container_id", value)
|
|
62
|
+
|
|
63
|
+
@property
|
|
64
|
+
@pulumi.getter
|
|
65
|
+
def description(self) -> Optional[pulumi.Input[str]]:
|
|
66
|
+
"""
|
|
67
|
+
The description of the trigger.
|
|
68
|
+
"""
|
|
69
|
+
return pulumi.get(self, "description")
|
|
70
|
+
|
|
71
|
+
@description.setter
|
|
72
|
+
def description(self, value: Optional[pulumi.Input[str]]):
|
|
73
|
+
pulumi.set(self, "description", value)
|
|
74
|
+
|
|
75
|
+
@property
|
|
76
|
+
@pulumi.getter
|
|
77
|
+
def name(self) -> Optional[pulumi.Input[str]]:
|
|
78
|
+
"""
|
|
79
|
+
The unique name of the trigger. If not provided, a random name is generated.
|
|
80
|
+
"""
|
|
81
|
+
return pulumi.get(self, "name")
|
|
82
|
+
|
|
83
|
+
@name.setter
|
|
84
|
+
def name(self, value: Optional[pulumi.Input[str]]):
|
|
85
|
+
pulumi.set(self, "name", value)
|
|
86
|
+
|
|
87
|
+
@property
|
|
88
|
+
@pulumi.getter
|
|
89
|
+
def nats(self) -> Optional[pulumi.Input['ContainerTriggerNatsArgs']]:
|
|
90
|
+
"""
|
|
91
|
+
The configuration for the Scaleway NATS account used by the trigger
|
|
92
|
+
"""
|
|
93
|
+
return pulumi.get(self, "nats")
|
|
94
|
+
|
|
95
|
+
@nats.setter
|
|
96
|
+
def nats(self, value: Optional[pulumi.Input['ContainerTriggerNatsArgs']]):
|
|
97
|
+
pulumi.set(self, "nats", value)
|
|
98
|
+
|
|
99
|
+
@property
|
|
100
|
+
@pulumi.getter
|
|
101
|
+
def region(self) -> Optional[pulumi.Input[str]]:
|
|
102
|
+
"""
|
|
103
|
+
`region`). The region in which the namespace is created.
|
|
104
|
+
"""
|
|
105
|
+
return pulumi.get(self, "region")
|
|
106
|
+
|
|
107
|
+
@region.setter
|
|
108
|
+
def region(self, value: Optional[pulumi.Input[str]]):
|
|
109
|
+
pulumi.set(self, "region", value)
|
|
110
|
+
|
|
111
|
+
@property
|
|
112
|
+
@pulumi.getter
|
|
113
|
+
def sqs(self) -> Optional[pulumi.Input['ContainerTriggerSqsArgs']]:
|
|
114
|
+
"""
|
|
115
|
+
The configuration of the Scaleway SQS queue used by the trigger
|
|
116
|
+
"""
|
|
117
|
+
return pulumi.get(self, "sqs")
|
|
118
|
+
|
|
119
|
+
@sqs.setter
|
|
120
|
+
def sqs(self, value: Optional[pulumi.Input['ContainerTriggerSqsArgs']]):
|
|
121
|
+
pulumi.set(self, "sqs", value)
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
@pulumi.input_type
|
|
125
|
+
class _ContainerTriggerState:
|
|
126
|
+
def __init__(__self__, *,
|
|
127
|
+
container_id: Optional[pulumi.Input[str]] = None,
|
|
128
|
+
description: Optional[pulumi.Input[str]] = None,
|
|
129
|
+
name: Optional[pulumi.Input[str]] = None,
|
|
130
|
+
nats: Optional[pulumi.Input['ContainerTriggerNatsArgs']] = None,
|
|
131
|
+
region: Optional[pulumi.Input[str]] = None,
|
|
132
|
+
sqs: Optional[pulumi.Input['ContainerTriggerSqsArgs']] = None):
|
|
133
|
+
"""
|
|
134
|
+
Input properties used for looking up and filtering ContainerTrigger resources.
|
|
135
|
+
:param pulumi.Input[str] container_id: The unique identifier of the container to create a trigger for.
|
|
136
|
+
:param pulumi.Input[str] description: The description of the trigger.
|
|
137
|
+
:param pulumi.Input[str] name: The unique name of the trigger. If not provided, a random name is generated.
|
|
138
|
+
:param pulumi.Input['ContainerTriggerNatsArgs'] nats: The configuration for the Scaleway NATS account used by the trigger
|
|
139
|
+
:param pulumi.Input[str] region: `region`). The region in which the namespace is created.
|
|
140
|
+
:param pulumi.Input['ContainerTriggerSqsArgs'] sqs: The configuration of the Scaleway SQS queue used by the trigger
|
|
141
|
+
"""
|
|
142
|
+
if container_id is not None:
|
|
143
|
+
pulumi.set(__self__, "container_id", container_id)
|
|
144
|
+
if description is not None:
|
|
145
|
+
pulumi.set(__self__, "description", description)
|
|
146
|
+
if name is not None:
|
|
147
|
+
pulumi.set(__self__, "name", name)
|
|
148
|
+
if nats is not None:
|
|
149
|
+
pulumi.set(__self__, "nats", nats)
|
|
150
|
+
if region is not None:
|
|
151
|
+
pulumi.set(__self__, "region", region)
|
|
152
|
+
if sqs is not None:
|
|
153
|
+
pulumi.set(__self__, "sqs", sqs)
|
|
154
|
+
|
|
155
|
+
@property
|
|
156
|
+
@pulumi.getter(name="containerId")
|
|
157
|
+
def container_id(self) -> Optional[pulumi.Input[str]]:
|
|
158
|
+
"""
|
|
159
|
+
The unique identifier of the container to create a trigger for.
|
|
160
|
+
"""
|
|
161
|
+
return pulumi.get(self, "container_id")
|
|
162
|
+
|
|
163
|
+
@container_id.setter
|
|
164
|
+
def container_id(self, value: Optional[pulumi.Input[str]]):
|
|
165
|
+
pulumi.set(self, "container_id", value)
|
|
166
|
+
|
|
167
|
+
@property
|
|
168
|
+
@pulumi.getter
|
|
169
|
+
def description(self) -> Optional[pulumi.Input[str]]:
|
|
170
|
+
"""
|
|
171
|
+
The description of the trigger.
|
|
172
|
+
"""
|
|
173
|
+
return pulumi.get(self, "description")
|
|
174
|
+
|
|
175
|
+
@description.setter
|
|
176
|
+
def description(self, value: Optional[pulumi.Input[str]]):
|
|
177
|
+
pulumi.set(self, "description", value)
|
|
178
|
+
|
|
179
|
+
@property
|
|
180
|
+
@pulumi.getter
|
|
181
|
+
def name(self) -> Optional[pulumi.Input[str]]:
|
|
182
|
+
"""
|
|
183
|
+
The unique name of the trigger. If not provided, a random name is generated.
|
|
184
|
+
"""
|
|
185
|
+
return pulumi.get(self, "name")
|
|
186
|
+
|
|
187
|
+
@name.setter
|
|
188
|
+
def name(self, value: Optional[pulumi.Input[str]]):
|
|
189
|
+
pulumi.set(self, "name", value)
|
|
190
|
+
|
|
191
|
+
@property
|
|
192
|
+
@pulumi.getter
|
|
193
|
+
def nats(self) -> Optional[pulumi.Input['ContainerTriggerNatsArgs']]:
|
|
194
|
+
"""
|
|
195
|
+
The configuration for the Scaleway NATS account used by the trigger
|
|
196
|
+
"""
|
|
197
|
+
return pulumi.get(self, "nats")
|
|
198
|
+
|
|
199
|
+
@nats.setter
|
|
200
|
+
def nats(self, value: Optional[pulumi.Input['ContainerTriggerNatsArgs']]):
|
|
201
|
+
pulumi.set(self, "nats", value)
|
|
202
|
+
|
|
203
|
+
@property
|
|
204
|
+
@pulumi.getter
|
|
205
|
+
def region(self) -> Optional[pulumi.Input[str]]:
|
|
206
|
+
"""
|
|
207
|
+
`region`). The region in which the namespace is created.
|
|
208
|
+
"""
|
|
209
|
+
return pulumi.get(self, "region")
|
|
210
|
+
|
|
211
|
+
@region.setter
|
|
212
|
+
def region(self, value: Optional[pulumi.Input[str]]):
|
|
213
|
+
pulumi.set(self, "region", value)
|
|
214
|
+
|
|
215
|
+
@property
|
|
216
|
+
@pulumi.getter
|
|
217
|
+
def sqs(self) -> Optional[pulumi.Input['ContainerTriggerSqsArgs']]:
|
|
218
|
+
"""
|
|
219
|
+
The configuration of the Scaleway SQS queue used by the trigger
|
|
220
|
+
"""
|
|
221
|
+
return pulumi.get(self, "sqs")
|
|
222
|
+
|
|
223
|
+
@sqs.setter
|
|
224
|
+
def sqs(self, value: Optional[pulumi.Input['ContainerTriggerSqsArgs']]):
|
|
225
|
+
pulumi.set(self, "sqs", value)
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
class ContainerTrigger(pulumi.CustomResource):
|
|
229
|
+
@overload
|
|
230
|
+
def __init__(__self__,
|
|
231
|
+
resource_name: str,
|
|
232
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
233
|
+
container_id: Optional[pulumi.Input[str]] = None,
|
|
234
|
+
description: Optional[pulumi.Input[str]] = None,
|
|
235
|
+
name: Optional[pulumi.Input[str]] = None,
|
|
236
|
+
nats: Optional[pulumi.Input[Union['ContainerTriggerNatsArgs', 'ContainerTriggerNatsArgsDict']]] = None,
|
|
237
|
+
region: Optional[pulumi.Input[str]] = None,
|
|
238
|
+
sqs: Optional[pulumi.Input[Union['ContainerTriggerSqsArgs', 'ContainerTriggerSqsArgsDict']]] = None,
|
|
239
|
+
__props__=None):
|
|
240
|
+
"""
|
|
241
|
+
The `ContainerTrigger` resource allows you to create and manage triggers for Scaleway [Serverless Containers](https://www.scaleway.com/en/docs/serverless/containers/).
|
|
242
|
+
|
|
243
|
+
Refer to the Containers triggers [documentation](https://www.scaleway.com/en/docs/serverless/containers/how-to/add-trigger-to-a-container/) and [API documentation](https://www.scaleway.com/en/developers/api/serverless-containers/#path-triggers-list-all-triggers) for more information.
|
|
244
|
+
|
|
245
|
+
## Example Usage
|
|
246
|
+
|
|
247
|
+
### SQS
|
|
248
|
+
|
|
249
|
+
```python
|
|
250
|
+
import pulumi
|
|
251
|
+
import pulumiverse_scaleway as scaleway
|
|
252
|
+
|
|
253
|
+
main = scaleway.ContainerTrigger("main",
|
|
254
|
+
container_id=main_scaleway_container["id"],
|
|
255
|
+
name="my-trigger",
|
|
256
|
+
sqs={
|
|
257
|
+
"project_id": main_scaleway_mnq_sqs["projectId"],
|
|
258
|
+
"queue": "MyQueue",
|
|
259
|
+
"region": main_scaleway_mnq_sqs["region"],
|
|
260
|
+
})
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
### NATS
|
|
264
|
+
|
|
265
|
+
```python
|
|
266
|
+
import pulumi
|
|
267
|
+
import pulumiverse_scaleway as scaleway
|
|
268
|
+
|
|
269
|
+
main = scaleway.ContainerTrigger("main",
|
|
270
|
+
container_id=main_scaleway_container["id"],
|
|
271
|
+
name="my-trigger",
|
|
272
|
+
nats={
|
|
273
|
+
"account_id": main_scaleway_mnq_nats_account["id"],
|
|
274
|
+
"subject": "MySubject",
|
|
275
|
+
"region": main_scaleway_mnq_nats_account["region"],
|
|
276
|
+
})
|
|
277
|
+
```
|
|
278
|
+
|
|
279
|
+
## Import
|
|
280
|
+
|
|
281
|
+
Container Triggers can be imported using `{region}/{id}`, as shown below:
|
|
282
|
+
|
|
283
|
+
bash
|
|
284
|
+
|
|
285
|
+
```sh
|
|
286
|
+
$ pulumi import scaleway:index/containerTrigger:ContainerTrigger main fr-par/11111111-1111-1111-1111-111111111111
|
|
287
|
+
```
|
|
288
|
+
|
|
289
|
+
:param str resource_name: The name of the resource.
|
|
290
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
291
|
+
:param pulumi.Input[str] container_id: The unique identifier of the container to create a trigger for.
|
|
292
|
+
:param pulumi.Input[str] description: The description of the trigger.
|
|
293
|
+
:param pulumi.Input[str] name: The unique name of the trigger. If not provided, a random name is generated.
|
|
294
|
+
:param pulumi.Input[Union['ContainerTriggerNatsArgs', 'ContainerTriggerNatsArgsDict']] nats: The configuration for the Scaleway NATS account used by the trigger
|
|
295
|
+
:param pulumi.Input[str] region: `region`). The region in which the namespace is created.
|
|
296
|
+
:param pulumi.Input[Union['ContainerTriggerSqsArgs', 'ContainerTriggerSqsArgsDict']] sqs: The configuration of the Scaleway SQS queue used by the trigger
|
|
297
|
+
"""
|
|
298
|
+
...
|
|
299
|
+
@overload
|
|
300
|
+
def __init__(__self__,
|
|
301
|
+
resource_name: str,
|
|
302
|
+
args: ContainerTriggerArgs,
|
|
303
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
304
|
+
"""
|
|
305
|
+
The `ContainerTrigger` resource allows you to create and manage triggers for Scaleway [Serverless Containers](https://www.scaleway.com/en/docs/serverless/containers/).
|
|
306
|
+
|
|
307
|
+
Refer to the Containers triggers [documentation](https://www.scaleway.com/en/docs/serverless/containers/how-to/add-trigger-to-a-container/) and [API documentation](https://www.scaleway.com/en/developers/api/serverless-containers/#path-triggers-list-all-triggers) for more information.
|
|
308
|
+
|
|
309
|
+
## Example Usage
|
|
310
|
+
|
|
311
|
+
### SQS
|
|
312
|
+
|
|
313
|
+
```python
|
|
314
|
+
import pulumi
|
|
315
|
+
import pulumiverse_scaleway as scaleway
|
|
316
|
+
|
|
317
|
+
main = scaleway.ContainerTrigger("main",
|
|
318
|
+
container_id=main_scaleway_container["id"],
|
|
319
|
+
name="my-trigger",
|
|
320
|
+
sqs={
|
|
321
|
+
"project_id": main_scaleway_mnq_sqs["projectId"],
|
|
322
|
+
"queue": "MyQueue",
|
|
323
|
+
"region": main_scaleway_mnq_sqs["region"],
|
|
324
|
+
})
|
|
325
|
+
```
|
|
326
|
+
|
|
327
|
+
### NATS
|
|
328
|
+
|
|
329
|
+
```python
|
|
330
|
+
import pulumi
|
|
331
|
+
import pulumiverse_scaleway as scaleway
|
|
332
|
+
|
|
333
|
+
main = scaleway.ContainerTrigger("main",
|
|
334
|
+
container_id=main_scaleway_container["id"],
|
|
335
|
+
name="my-trigger",
|
|
336
|
+
nats={
|
|
337
|
+
"account_id": main_scaleway_mnq_nats_account["id"],
|
|
338
|
+
"subject": "MySubject",
|
|
339
|
+
"region": main_scaleway_mnq_nats_account["region"],
|
|
340
|
+
})
|
|
341
|
+
```
|
|
342
|
+
|
|
343
|
+
## Import
|
|
344
|
+
|
|
345
|
+
Container Triggers can be imported using `{region}/{id}`, as shown below:
|
|
346
|
+
|
|
347
|
+
bash
|
|
348
|
+
|
|
349
|
+
```sh
|
|
350
|
+
$ pulumi import scaleway:index/containerTrigger:ContainerTrigger main fr-par/11111111-1111-1111-1111-111111111111
|
|
351
|
+
```
|
|
352
|
+
|
|
353
|
+
:param str resource_name: The name of the resource.
|
|
354
|
+
:param ContainerTriggerArgs args: The arguments to use to populate this resource's properties.
|
|
355
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
356
|
+
"""
|
|
357
|
+
...
|
|
358
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
359
|
+
resource_args, opts = _utilities.get_resource_args_opts(ContainerTriggerArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
360
|
+
if resource_args is not None:
|
|
361
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
362
|
+
else:
|
|
363
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
364
|
+
|
|
365
|
+
def _internal_init(__self__,
|
|
366
|
+
resource_name: str,
|
|
367
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
368
|
+
container_id: Optional[pulumi.Input[str]] = None,
|
|
369
|
+
description: Optional[pulumi.Input[str]] = None,
|
|
370
|
+
name: Optional[pulumi.Input[str]] = None,
|
|
371
|
+
nats: Optional[pulumi.Input[Union['ContainerTriggerNatsArgs', 'ContainerTriggerNatsArgsDict']]] = None,
|
|
372
|
+
region: Optional[pulumi.Input[str]] = None,
|
|
373
|
+
sqs: Optional[pulumi.Input[Union['ContainerTriggerSqsArgs', 'ContainerTriggerSqsArgsDict']]] = None,
|
|
374
|
+
__props__=None):
|
|
375
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
376
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
377
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
378
|
+
if opts.id is None:
|
|
379
|
+
if __props__ is not None:
|
|
380
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
381
|
+
__props__ = ContainerTriggerArgs.__new__(ContainerTriggerArgs)
|
|
382
|
+
|
|
383
|
+
if container_id is None and not opts.urn:
|
|
384
|
+
raise TypeError("Missing required property 'container_id'")
|
|
385
|
+
__props__.__dict__["container_id"] = container_id
|
|
386
|
+
__props__.__dict__["description"] = description
|
|
387
|
+
__props__.__dict__["name"] = name
|
|
388
|
+
__props__.__dict__["nats"] = nats
|
|
389
|
+
__props__.__dict__["region"] = region
|
|
390
|
+
__props__.__dict__["sqs"] = sqs
|
|
391
|
+
super(ContainerTrigger, __self__).__init__(
|
|
392
|
+
'scaleway:index/containerTrigger:ContainerTrigger',
|
|
393
|
+
resource_name,
|
|
394
|
+
__props__,
|
|
395
|
+
opts)
|
|
396
|
+
|
|
397
|
+
@staticmethod
|
|
398
|
+
def get(resource_name: str,
|
|
399
|
+
id: pulumi.Input[str],
|
|
400
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
401
|
+
container_id: Optional[pulumi.Input[str]] = None,
|
|
402
|
+
description: Optional[pulumi.Input[str]] = None,
|
|
403
|
+
name: Optional[pulumi.Input[str]] = None,
|
|
404
|
+
nats: Optional[pulumi.Input[Union['ContainerTriggerNatsArgs', 'ContainerTriggerNatsArgsDict']]] = None,
|
|
405
|
+
region: Optional[pulumi.Input[str]] = None,
|
|
406
|
+
sqs: Optional[pulumi.Input[Union['ContainerTriggerSqsArgs', 'ContainerTriggerSqsArgsDict']]] = None) -> 'ContainerTrigger':
|
|
407
|
+
"""
|
|
408
|
+
Get an existing ContainerTrigger resource's state with the given name, id, and optional extra
|
|
409
|
+
properties used to qualify the lookup.
|
|
410
|
+
|
|
411
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
412
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
413
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
414
|
+
:param pulumi.Input[str] container_id: The unique identifier of the container to create a trigger for.
|
|
415
|
+
:param pulumi.Input[str] description: The description of the trigger.
|
|
416
|
+
:param pulumi.Input[str] name: The unique name of the trigger. If not provided, a random name is generated.
|
|
417
|
+
:param pulumi.Input[Union['ContainerTriggerNatsArgs', 'ContainerTriggerNatsArgsDict']] nats: The configuration for the Scaleway NATS account used by the trigger
|
|
418
|
+
:param pulumi.Input[str] region: `region`). The region in which the namespace is created.
|
|
419
|
+
:param pulumi.Input[Union['ContainerTriggerSqsArgs', 'ContainerTriggerSqsArgsDict']] sqs: The configuration of the Scaleway SQS queue used by the trigger
|
|
420
|
+
"""
|
|
421
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
422
|
+
|
|
423
|
+
__props__ = _ContainerTriggerState.__new__(_ContainerTriggerState)
|
|
424
|
+
|
|
425
|
+
__props__.__dict__["container_id"] = container_id
|
|
426
|
+
__props__.__dict__["description"] = description
|
|
427
|
+
__props__.__dict__["name"] = name
|
|
428
|
+
__props__.__dict__["nats"] = nats
|
|
429
|
+
__props__.__dict__["region"] = region
|
|
430
|
+
__props__.__dict__["sqs"] = sqs
|
|
431
|
+
return ContainerTrigger(resource_name, opts=opts, __props__=__props__)
|
|
432
|
+
|
|
433
|
+
@property
|
|
434
|
+
@pulumi.getter(name="containerId")
|
|
435
|
+
def container_id(self) -> pulumi.Output[str]:
|
|
436
|
+
"""
|
|
437
|
+
The unique identifier of the container to create a trigger for.
|
|
438
|
+
"""
|
|
439
|
+
return pulumi.get(self, "container_id")
|
|
440
|
+
|
|
441
|
+
@property
|
|
442
|
+
@pulumi.getter
|
|
443
|
+
def description(self) -> pulumi.Output[Optional[str]]:
|
|
444
|
+
"""
|
|
445
|
+
The description of the trigger.
|
|
446
|
+
"""
|
|
447
|
+
return pulumi.get(self, "description")
|
|
448
|
+
|
|
449
|
+
@property
|
|
450
|
+
@pulumi.getter
|
|
451
|
+
def name(self) -> pulumi.Output[str]:
|
|
452
|
+
"""
|
|
453
|
+
The unique name of the trigger. If not provided, a random name is generated.
|
|
454
|
+
"""
|
|
455
|
+
return pulumi.get(self, "name")
|
|
456
|
+
|
|
457
|
+
@property
|
|
458
|
+
@pulumi.getter
|
|
459
|
+
def nats(self) -> pulumi.Output[Optional['outputs.ContainerTriggerNats']]:
|
|
460
|
+
"""
|
|
461
|
+
The configuration for the Scaleway NATS account used by the trigger
|
|
462
|
+
"""
|
|
463
|
+
return pulumi.get(self, "nats")
|
|
464
|
+
|
|
465
|
+
@property
|
|
466
|
+
@pulumi.getter
|
|
467
|
+
def region(self) -> pulumi.Output[str]:
|
|
468
|
+
"""
|
|
469
|
+
`region`). The region in which the namespace is created.
|
|
470
|
+
"""
|
|
471
|
+
return pulumi.get(self, "region")
|
|
472
|
+
|
|
473
|
+
@property
|
|
474
|
+
@pulumi.getter
|
|
475
|
+
def sqs(self) -> pulumi.Output[Optional['outputs.ContainerTriggerSqs']]:
|
|
476
|
+
"""
|
|
477
|
+
The configuration of the Scaleway SQS queue used by the trigger
|
|
478
|
+
"""
|
|
479
|
+
return pulumi.get(self, "sqs")
|
|
480
|
+
|