pulumiverse-scaleway 1.16.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pulumiverse-scaleway might be problematic. Click here for more details.
- pulumiverse_scaleway/__init__.py +1073 -0
- pulumiverse_scaleway/_inputs.py +8665 -0
- pulumiverse_scaleway/_utilities.py +327 -0
- pulumiverse_scaleway/account_project.py +316 -0
- pulumiverse_scaleway/account_ssh_key.py +450 -0
- pulumiverse_scaleway/apple_silicon_server.py +564 -0
- pulumiverse_scaleway/baremetal_server.py +1390 -0
- pulumiverse_scaleway/block_snapshot.py +391 -0
- pulumiverse_scaleway/block_volume.py +521 -0
- pulumiverse_scaleway/cockpit.py +299 -0
- pulumiverse_scaleway/cockpit_alert_manager.py +345 -0
- pulumiverse_scaleway/cockpit_grafana_user.py +326 -0
- pulumiverse_scaleway/cockpit_source.py +481 -0
- pulumiverse_scaleway/cockpit_token.py +461 -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 +1387 -0
- pulumiverse_scaleway/container_cron.py +493 -0
- pulumiverse_scaleway/container_domain.py +400 -0
- pulumiverse_scaleway/container_namespace.py +589 -0
- pulumiverse_scaleway/container_token.py +454 -0
- pulumiverse_scaleway/container_trigger.py +478 -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 +1636 -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/documentdb_database.py +450 -0
- pulumiverse_scaleway/documentdb_instance.py +812 -0
- pulumiverse_scaleway/documentdb_private_network_endpoint.py +352 -0
- pulumiverse_scaleway/documentdb_privilege.py +402 -0
- pulumiverse_scaleway/documentdb_read_replica.py +405 -0
- pulumiverse_scaleway/documentdb_user.py +442 -0
- pulumiverse_scaleway/domain_record.py +1074 -0
- pulumiverse_scaleway/domain_zone.py +458 -0
- pulumiverse_scaleway/flexible_ip.py +702 -0
- pulumiverse_scaleway/flexible_ip_mac_address.py +510 -0
- pulumiverse_scaleway/function.py +1145 -0
- pulumiverse_scaleway/function_cron.py +480 -0
- pulumiverse_scaleway/function_domain.py +361 -0
- pulumiverse_scaleway/function_namespace.py +533 -0
- pulumiverse_scaleway/function_token.py +462 -0
- pulumiverse_scaleway/function_trigger.py +478 -0
- pulumiverse_scaleway/get_account_project.py +164 -0
- pulumiverse_scaleway/get_account_ssh_key.py +201 -0
- pulumiverse_scaleway/get_availability_zones.py +131 -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 +411 -0
- pulumiverse_scaleway/get_billing_consumptions.py +134 -0
- pulumiverse_scaleway/get_billing_invoices.py +154 -0
- pulumiverse_scaleway/get_block_snapshot.py +170 -0
- pulumiverse_scaleway/get_block_volume.py +186 -0
- pulumiverse_scaleway/get_cockpit.py +179 -0
- pulumiverse_scaleway/get_cockpit_plan.py +113 -0
- pulumiverse_scaleway/get_config.py +180 -0
- pulumiverse_scaleway/get_container.py +502 -0
- pulumiverse_scaleway/get_container_namespace.py +262 -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_documentdb_database.py +198 -0
- pulumiverse_scaleway/get_documentdb_instance.py +245 -0
- pulumiverse_scaleway/get_documentdb_load_balancer_endpoint.py +198 -0
- pulumiverse_scaleway/get_domain_record.py +334 -0
- pulumiverse_scaleway/get_domain_zone.py +225 -0
- pulumiverse_scaleway/get_flexible_ip.py +247 -0
- pulumiverse_scaleway/get_flexible_ips.py +240 -0
- pulumiverse_scaleway/get_function.py +357 -0
- pulumiverse_scaleway/get_function_namespace.py +227 -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 +157 -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 +215 -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 +222 -0
- pulumiverse_scaleway/get_marketplace_image.py +147 -0
- pulumiverse_scaleway/get_mnq_sqs.py +150 -0
- pulumiverse_scaleway/get_object_bucket.py +278 -0
- pulumiverse_scaleway/get_object_bucket_policy.py +157 -0
- pulumiverse_scaleway/get_redis_cluster.py +347 -0
- pulumiverse_scaleway/get_registry_image.py +239 -0
- pulumiverse_scaleway/get_registry_namespace.py +199 -0
- pulumiverse_scaleway/get_secret.py +290 -0
- pulumiverse_scaleway/get_secret_version.py +303 -0
- pulumiverse_scaleway/get_tem_domain.py +367 -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 +727 -0
- pulumiverse_scaleway/iam_ssh_key.py +455 -0
- pulumiverse_scaleway/iam_user.py +466 -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 +454 -0
- pulumiverse_scaleway/instance_security_group.py +720 -0
- pulumiverse_scaleway/instance_security_group_rules.py +439 -0
- pulumiverse_scaleway/instance_server.py +1907 -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 +425 -0
- pulumiverse_scaleway/iot_route.py +660 -0
- pulumiverse_scaleway/ipam_ip.py +666 -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 +1095 -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 +328 -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/object_bucket.py +888 -0
- pulumiverse_scaleway/object_bucket_acl.py +592 -0
- pulumiverse_scaleway/object_bucket_lock_configuration.py +393 -0
- pulumiverse_scaleway/object_bucket_policy.py +671 -0
- pulumiverse_scaleway/object_bucket_website_configuration.py +532 -0
- pulumiverse_scaleway/object_item.py +711 -0
- pulumiverse_scaleway/outputs.py +11663 -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 +1166 -0
- pulumiverse_scaleway/registry_namespace.py +458 -0
- pulumiverse_scaleway/sdb_database.py +428 -0
- pulumiverse_scaleway/secret.py +560 -0
- pulumiverse_scaleway/secret_version.py +482 -0
- pulumiverse_scaleway/tem_domain.py +950 -0
- pulumiverse_scaleway/tem_domain_validation.py +303 -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/webhosting.py +805 -0
- pulumiverse_scaleway-1.16.0.dist-info/METADATA +69 -0
- pulumiverse_scaleway-1.16.0.dist-info/RECORD +205 -0
- pulumiverse_scaleway-1.16.0.dist-info/WHEEL +5 -0
- pulumiverse_scaleway-1.16.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,299 @@
|
|
|
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__ = ['CockpitArgs', 'Cockpit']
|
|
20
|
+
|
|
21
|
+
@pulumi.input_type
|
|
22
|
+
class CockpitArgs:
|
|
23
|
+
def __init__(__self__, *,
|
|
24
|
+
plan: Optional[pulumi.Input[str]] = None,
|
|
25
|
+
project_id: Optional[pulumi.Input[str]] = None):
|
|
26
|
+
"""
|
|
27
|
+
The set of arguments for constructing a Cockpit resource.
|
|
28
|
+
:param pulumi.Input[str] plan: Name or ID of the plan to use.
|
|
29
|
+
:param pulumi.Input[str] project_id: `project_id`) The ID of the project the cockpit is associated with.
|
|
30
|
+
"""
|
|
31
|
+
if plan is not None:
|
|
32
|
+
pulumi.set(__self__, "plan", plan)
|
|
33
|
+
if project_id is not None:
|
|
34
|
+
pulumi.set(__self__, "project_id", project_id)
|
|
35
|
+
|
|
36
|
+
@property
|
|
37
|
+
@pulumi.getter
|
|
38
|
+
def plan(self) -> Optional[pulumi.Input[str]]:
|
|
39
|
+
"""
|
|
40
|
+
Name or ID of the plan to use.
|
|
41
|
+
"""
|
|
42
|
+
return pulumi.get(self, "plan")
|
|
43
|
+
|
|
44
|
+
@plan.setter
|
|
45
|
+
def plan(self, value: Optional[pulumi.Input[str]]):
|
|
46
|
+
pulumi.set(self, "plan", value)
|
|
47
|
+
|
|
48
|
+
@property
|
|
49
|
+
@pulumi.getter(name="projectId")
|
|
50
|
+
def project_id(self) -> Optional[pulumi.Input[str]]:
|
|
51
|
+
"""
|
|
52
|
+
`project_id`) The ID of the project the cockpit is associated with.
|
|
53
|
+
"""
|
|
54
|
+
return pulumi.get(self, "project_id")
|
|
55
|
+
|
|
56
|
+
@project_id.setter
|
|
57
|
+
def project_id(self, value: Optional[pulumi.Input[str]]):
|
|
58
|
+
pulumi.set(self, "project_id", value)
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
@pulumi.input_type
|
|
62
|
+
class _CockpitState:
|
|
63
|
+
def __init__(__self__, *,
|
|
64
|
+
endpoints: Optional[pulumi.Input[Sequence[pulumi.Input['CockpitEndpointArgs']]]] = None,
|
|
65
|
+
plan: Optional[pulumi.Input[str]] = None,
|
|
66
|
+
plan_id: Optional[pulumi.Input[str]] = None,
|
|
67
|
+
project_id: Optional[pulumi.Input[str]] = None,
|
|
68
|
+
push_urls: Optional[pulumi.Input[Sequence[pulumi.Input['CockpitPushUrlArgs']]]] = None):
|
|
69
|
+
"""
|
|
70
|
+
Input properties used for looking up and filtering Cockpit resources.
|
|
71
|
+
:param pulumi.Input[Sequence[pulumi.Input['CockpitEndpointArgs']]] endpoints: Endpoints.
|
|
72
|
+
:param pulumi.Input[str] plan: Name or ID of the plan to use.
|
|
73
|
+
:param pulumi.Input[str] plan_id: The ID of the current plan.
|
|
74
|
+
:param pulumi.Input[str] project_id: `project_id`) The ID of the project the cockpit is associated with.
|
|
75
|
+
:param pulumi.Input[Sequence[pulumi.Input['CockpitPushUrlArgs']]] push_urls: Push_url
|
|
76
|
+
"""
|
|
77
|
+
if endpoints is not None:
|
|
78
|
+
pulumi.set(__self__, "endpoints", endpoints)
|
|
79
|
+
if plan is not None:
|
|
80
|
+
pulumi.set(__self__, "plan", plan)
|
|
81
|
+
if plan_id is not None:
|
|
82
|
+
pulumi.set(__self__, "plan_id", plan_id)
|
|
83
|
+
if project_id is not None:
|
|
84
|
+
pulumi.set(__self__, "project_id", project_id)
|
|
85
|
+
if push_urls is not None:
|
|
86
|
+
pulumi.set(__self__, "push_urls", push_urls)
|
|
87
|
+
|
|
88
|
+
@property
|
|
89
|
+
@pulumi.getter
|
|
90
|
+
def endpoints(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['CockpitEndpointArgs']]]]:
|
|
91
|
+
"""
|
|
92
|
+
Endpoints.
|
|
93
|
+
"""
|
|
94
|
+
return pulumi.get(self, "endpoints")
|
|
95
|
+
|
|
96
|
+
@endpoints.setter
|
|
97
|
+
def endpoints(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['CockpitEndpointArgs']]]]):
|
|
98
|
+
pulumi.set(self, "endpoints", value)
|
|
99
|
+
|
|
100
|
+
@property
|
|
101
|
+
@pulumi.getter
|
|
102
|
+
def plan(self) -> Optional[pulumi.Input[str]]:
|
|
103
|
+
"""
|
|
104
|
+
Name or ID of the plan to use.
|
|
105
|
+
"""
|
|
106
|
+
return pulumi.get(self, "plan")
|
|
107
|
+
|
|
108
|
+
@plan.setter
|
|
109
|
+
def plan(self, value: Optional[pulumi.Input[str]]):
|
|
110
|
+
pulumi.set(self, "plan", value)
|
|
111
|
+
|
|
112
|
+
@property
|
|
113
|
+
@pulumi.getter(name="planId")
|
|
114
|
+
def plan_id(self) -> Optional[pulumi.Input[str]]:
|
|
115
|
+
"""
|
|
116
|
+
The ID of the current plan.
|
|
117
|
+
"""
|
|
118
|
+
return pulumi.get(self, "plan_id")
|
|
119
|
+
|
|
120
|
+
@plan_id.setter
|
|
121
|
+
def plan_id(self, value: Optional[pulumi.Input[str]]):
|
|
122
|
+
pulumi.set(self, "plan_id", value)
|
|
123
|
+
|
|
124
|
+
@property
|
|
125
|
+
@pulumi.getter(name="projectId")
|
|
126
|
+
def project_id(self) -> Optional[pulumi.Input[str]]:
|
|
127
|
+
"""
|
|
128
|
+
`project_id`) The ID of the project the cockpit is associated with.
|
|
129
|
+
"""
|
|
130
|
+
return pulumi.get(self, "project_id")
|
|
131
|
+
|
|
132
|
+
@project_id.setter
|
|
133
|
+
def project_id(self, value: Optional[pulumi.Input[str]]):
|
|
134
|
+
pulumi.set(self, "project_id", value)
|
|
135
|
+
|
|
136
|
+
@property
|
|
137
|
+
@pulumi.getter(name="pushUrls")
|
|
138
|
+
def push_urls(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['CockpitPushUrlArgs']]]]:
|
|
139
|
+
"""
|
|
140
|
+
Push_url
|
|
141
|
+
"""
|
|
142
|
+
return pulumi.get(self, "push_urls")
|
|
143
|
+
|
|
144
|
+
@push_urls.setter
|
|
145
|
+
def push_urls(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['CockpitPushUrlArgs']]]]):
|
|
146
|
+
pulumi.set(self, "push_urls", value)
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
class Cockpit(pulumi.CustomResource):
|
|
150
|
+
@overload
|
|
151
|
+
def __init__(__self__,
|
|
152
|
+
resource_name: str,
|
|
153
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
154
|
+
plan: Optional[pulumi.Input[str]] = None,
|
|
155
|
+
project_id: Optional[pulumi.Input[str]] = None,
|
|
156
|
+
__props__=None):
|
|
157
|
+
"""
|
|
158
|
+
## Import
|
|
159
|
+
|
|
160
|
+
Cockpits can be imported using the `{project_id}`, e.g.
|
|
161
|
+
|
|
162
|
+
bash
|
|
163
|
+
|
|
164
|
+
```sh
|
|
165
|
+
$ pulumi import scaleway:index/cockpit:Cockpit main 11111111-1111-1111-1111-111111111111
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
:param str resource_name: The name of the resource.
|
|
169
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
170
|
+
:param pulumi.Input[str] plan: Name or ID of the plan to use.
|
|
171
|
+
:param pulumi.Input[str] project_id: `project_id`) The ID of the project the cockpit is associated with.
|
|
172
|
+
"""
|
|
173
|
+
...
|
|
174
|
+
@overload
|
|
175
|
+
def __init__(__self__,
|
|
176
|
+
resource_name: str,
|
|
177
|
+
args: Optional[CockpitArgs] = None,
|
|
178
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
179
|
+
"""
|
|
180
|
+
## Import
|
|
181
|
+
|
|
182
|
+
Cockpits can be imported using the `{project_id}`, e.g.
|
|
183
|
+
|
|
184
|
+
bash
|
|
185
|
+
|
|
186
|
+
```sh
|
|
187
|
+
$ pulumi import scaleway:index/cockpit:Cockpit main 11111111-1111-1111-1111-111111111111
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
:param str resource_name: The name of the resource.
|
|
191
|
+
:param CockpitArgs args: The arguments to use to populate this resource's properties.
|
|
192
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
193
|
+
"""
|
|
194
|
+
...
|
|
195
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
196
|
+
resource_args, opts = _utilities.get_resource_args_opts(CockpitArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
197
|
+
if resource_args is not None:
|
|
198
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
199
|
+
else:
|
|
200
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
201
|
+
|
|
202
|
+
def _internal_init(__self__,
|
|
203
|
+
resource_name: str,
|
|
204
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
205
|
+
plan: Optional[pulumi.Input[str]] = None,
|
|
206
|
+
project_id: Optional[pulumi.Input[str]] = None,
|
|
207
|
+
__props__=None):
|
|
208
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
209
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
210
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
211
|
+
if opts.id is None:
|
|
212
|
+
if __props__ is not None:
|
|
213
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
214
|
+
__props__ = CockpitArgs.__new__(CockpitArgs)
|
|
215
|
+
|
|
216
|
+
__props__.__dict__["plan"] = plan
|
|
217
|
+
__props__.__dict__["project_id"] = project_id
|
|
218
|
+
__props__.__dict__["endpoints"] = None
|
|
219
|
+
__props__.__dict__["plan_id"] = None
|
|
220
|
+
__props__.__dict__["push_urls"] = None
|
|
221
|
+
super(Cockpit, __self__).__init__(
|
|
222
|
+
'scaleway:index/cockpit:Cockpit',
|
|
223
|
+
resource_name,
|
|
224
|
+
__props__,
|
|
225
|
+
opts)
|
|
226
|
+
|
|
227
|
+
@staticmethod
|
|
228
|
+
def get(resource_name: str,
|
|
229
|
+
id: pulumi.Input[str],
|
|
230
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
231
|
+
endpoints: Optional[pulumi.Input[Sequence[pulumi.Input[Union['CockpitEndpointArgs', 'CockpitEndpointArgsDict']]]]] = None,
|
|
232
|
+
plan: Optional[pulumi.Input[str]] = None,
|
|
233
|
+
plan_id: Optional[pulumi.Input[str]] = None,
|
|
234
|
+
project_id: Optional[pulumi.Input[str]] = None,
|
|
235
|
+
push_urls: Optional[pulumi.Input[Sequence[pulumi.Input[Union['CockpitPushUrlArgs', 'CockpitPushUrlArgsDict']]]]] = None) -> 'Cockpit':
|
|
236
|
+
"""
|
|
237
|
+
Get an existing Cockpit resource's state with the given name, id, and optional extra
|
|
238
|
+
properties used to qualify the lookup.
|
|
239
|
+
|
|
240
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
241
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
242
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
243
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['CockpitEndpointArgs', 'CockpitEndpointArgsDict']]]] endpoints: Endpoints.
|
|
244
|
+
:param pulumi.Input[str] plan: Name or ID of the plan to use.
|
|
245
|
+
:param pulumi.Input[str] plan_id: The ID of the current plan.
|
|
246
|
+
:param pulumi.Input[str] project_id: `project_id`) The ID of the project the cockpit is associated with.
|
|
247
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['CockpitPushUrlArgs', 'CockpitPushUrlArgsDict']]]] push_urls: Push_url
|
|
248
|
+
"""
|
|
249
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
250
|
+
|
|
251
|
+
__props__ = _CockpitState.__new__(_CockpitState)
|
|
252
|
+
|
|
253
|
+
__props__.__dict__["endpoints"] = endpoints
|
|
254
|
+
__props__.__dict__["plan"] = plan
|
|
255
|
+
__props__.__dict__["plan_id"] = plan_id
|
|
256
|
+
__props__.__dict__["project_id"] = project_id
|
|
257
|
+
__props__.__dict__["push_urls"] = push_urls
|
|
258
|
+
return Cockpit(resource_name, opts=opts, __props__=__props__)
|
|
259
|
+
|
|
260
|
+
@property
|
|
261
|
+
@pulumi.getter
|
|
262
|
+
def endpoints(self) -> pulumi.Output[Sequence['outputs.CockpitEndpoint']]:
|
|
263
|
+
"""
|
|
264
|
+
Endpoints.
|
|
265
|
+
"""
|
|
266
|
+
return pulumi.get(self, "endpoints")
|
|
267
|
+
|
|
268
|
+
@property
|
|
269
|
+
@pulumi.getter
|
|
270
|
+
def plan(self) -> pulumi.Output[Optional[str]]:
|
|
271
|
+
"""
|
|
272
|
+
Name or ID of the plan to use.
|
|
273
|
+
"""
|
|
274
|
+
return pulumi.get(self, "plan")
|
|
275
|
+
|
|
276
|
+
@property
|
|
277
|
+
@pulumi.getter(name="planId")
|
|
278
|
+
def plan_id(self) -> pulumi.Output[str]:
|
|
279
|
+
"""
|
|
280
|
+
The ID of the current plan.
|
|
281
|
+
"""
|
|
282
|
+
return pulumi.get(self, "plan_id")
|
|
283
|
+
|
|
284
|
+
@property
|
|
285
|
+
@pulumi.getter(name="projectId")
|
|
286
|
+
def project_id(self) -> pulumi.Output[str]:
|
|
287
|
+
"""
|
|
288
|
+
`project_id`) The ID of the project the cockpit is associated with.
|
|
289
|
+
"""
|
|
290
|
+
return pulumi.get(self, "project_id")
|
|
291
|
+
|
|
292
|
+
@property
|
|
293
|
+
@pulumi.getter(name="pushUrls")
|
|
294
|
+
def push_urls(self) -> pulumi.Output[Sequence['outputs.CockpitPushUrl']]:
|
|
295
|
+
"""
|
|
296
|
+
Push_url
|
|
297
|
+
"""
|
|
298
|
+
return pulumi.get(self, "push_urls")
|
|
299
|
+
|
|
@@ -0,0 +1,345 @@
|
|
|
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__ = ['CockpitAlertManagerArgs', 'CockpitAlertManager']
|
|
20
|
+
|
|
21
|
+
@pulumi.input_type
|
|
22
|
+
class CockpitAlertManagerArgs:
|
|
23
|
+
def __init__(__self__, *,
|
|
24
|
+
contact_points: Optional[pulumi.Input[Sequence[pulumi.Input['CockpitAlertManagerContactPointArgs']]]] = None,
|
|
25
|
+
enable_managed_alerts: Optional[pulumi.Input[bool]] = None,
|
|
26
|
+
project_id: Optional[pulumi.Input[str]] = None,
|
|
27
|
+
region: Optional[pulumi.Input[str]] = None):
|
|
28
|
+
"""
|
|
29
|
+
The set of arguments for constructing a CockpitAlertManager resource.
|
|
30
|
+
:param pulumi.Input[Sequence[pulumi.Input['CockpitAlertManagerContactPointArgs']]] contact_points: A list of contact points with email addresses for the alert receivers. Each map should contain a single key email.
|
|
31
|
+
:param pulumi.Input[bool] enable_managed_alerts: Indicates whether the alert manager should be enabled. Defaults to true.
|
|
32
|
+
:param pulumi.Input[str] project_id: `project_id`) The ID of the project the cockpit is associated with.
|
|
33
|
+
:param pulumi.Input[str] region: `region`) The region in which alert_manager should be created.
|
|
34
|
+
"""
|
|
35
|
+
if contact_points is not None:
|
|
36
|
+
pulumi.set(__self__, "contact_points", contact_points)
|
|
37
|
+
if enable_managed_alerts is not None:
|
|
38
|
+
pulumi.set(__self__, "enable_managed_alerts", enable_managed_alerts)
|
|
39
|
+
if project_id is not None:
|
|
40
|
+
pulumi.set(__self__, "project_id", project_id)
|
|
41
|
+
if region is not None:
|
|
42
|
+
pulumi.set(__self__, "region", region)
|
|
43
|
+
|
|
44
|
+
@property
|
|
45
|
+
@pulumi.getter(name="contactPoints")
|
|
46
|
+
def contact_points(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['CockpitAlertManagerContactPointArgs']]]]:
|
|
47
|
+
"""
|
|
48
|
+
A list of contact points with email addresses for the alert receivers. Each map should contain a single key email.
|
|
49
|
+
"""
|
|
50
|
+
return pulumi.get(self, "contact_points")
|
|
51
|
+
|
|
52
|
+
@contact_points.setter
|
|
53
|
+
def contact_points(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['CockpitAlertManagerContactPointArgs']]]]):
|
|
54
|
+
pulumi.set(self, "contact_points", value)
|
|
55
|
+
|
|
56
|
+
@property
|
|
57
|
+
@pulumi.getter(name="enableManagedAlerts")
|
|
58
|
+
def enable_managed_alerts(self) -> Optional[pulumi.Input[bool]]:
|
|
59
|
+
"""
|
|
60
|
+
Indicates whether the alert manager should be enabled. Defaults to true.
|
|
61
|
+
"""
|
|
62
|
+
return pulumi.get(self, "enable_managed_alerts")
|
|
63
|
+
|
|
64
|
+
@enable_managed_alerts.setter
|
|
65
|
+
def enable_managed_alerts(self, value: Optional[pulumi.Input[bool]]):
|
|
66
|
+
pulumi.set(self, "enable_managed_alerts", value)
|
|
67
|
+
|
|
68
|
+
@property
|
|
69
|
+
@pulumi.getter(name="projectId")
|
|
70
|
+
def project_id(self) -> Optional[pulumi.Input[str]]:
|
|
71
|
+
"""
|
|
72
|
+
`project_id`) The ID of the project the cockpit is associated with.
|
|
73
|
+
"""
|
|
74
|
+
return pulumi.get(self, "project_id")
|
|
75
|
+
|
|
76
|
+
@project_id.setter
|
|
77
|
+
def project_id(self, value: Optional[pulumi.Input[str]]):
|
|
78
|
+
pulumi.set(self, "project_id", value)
|
|
79
|
+
|
|
80
|
+
@property
|
|
81
|
+
@pulumi.getter
|
|
82
|
+
def region(self) -> Optional[pulumi.Input[str]]:
|
|
83
|
+
"""
|
|
84
|
+
`region`) The region in which alert_manager should be created.
|
|
85
|
+
"""
|
|
86
|
+
return pulumi.get(self, "region")
|
|
87
|
+
|
|
88
|
+
@region.setter
|
|
89
|
+
def region(self, value: Optional[pulumi.Input[str]]):
|
|
90
|
+
pulumi.set(self, "region", value)
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
@pulumi.input_type
|
|
94
|
+
class _CockpitAlertManagerState:
|
|
95
|
+
def __init__(__self__, *,
|
|
96
|
+
alert_manager_url: Optional[pulumi.Input[str]] = None,
|
|
97
|
+
contact_points: Optional[pulumi.Input[Sequence[pulumi.Input['CockpitAlertManagerContactPointArgs']]]] = None,
|
|
98
|
+
enable_managed_alerts: Optional[pulumi.Input[bool]] = None,
|
|
99
|
+
project_id: Optional[pulumi.Input[str]] = None,
|
|
100
|
+
region: Optional[pulumi.Input[str]] = None):
|
|
101
|
+
"""
|
|
102
|
+
Input properties used for looking up and filtering CockpitAlertManager resources.
|
|
103
|
+
:param pulumi.Input[str] alert_manager_url: Alert manager URL.
|
|
104
|
+
:param pulumi.Input[Sequence[pulumi.Input['CockpitAlertManagerContactPointArgs']]] contact_points: A list of contact points with email addresses for the alert receivers. Each map should contain a single key email.
|
|
105
|
+
:param pulumi.Input[bool] enable_managed_alerts: Indicates whether the alert manager should be enabled. Defaults to true.
|
|
106
|
+
:param pulumi.Input[str] project_id: `project_id`) The ID of the project the cockpit is associated with.
|
|
107
|
+
:param pulumi.Input[str] region: `region`) The region in which alert_manager should be created.
|
|
108
|
+
"""
|
|
109
|
+
if alert_manager_url is not None:
|
|
110
|
+
pulumi.set(__self__, "alert_manager_url", alert_manager_url)
|
|
111
|
+
if contact_points is not None:
|
|
112
|
+
pulumi.set(__self__, "contact_points", contact_points)
|
|
113
|
+
if enable_managed_alerts is not None:
|
|
114
|
+
pulumi.set(__self__, "enable_managed_alerts", enable_managed_alerts)
|
|
115
|
+
if project_id is not None:
|
|
116
|
+
pulumi.set(__self__, "project_id", project_id)
|
|
117
|
+
if region is not None:
|
|
118
|
+
pulumi.set(__self__, "region", region)
|
|
119
|
+
|
|
120
|
+
@property
|
|
121
|
+
@pulumi.getter(name="alertManagerUrl")
|
|
122
|
+
def alert_manager_url(self) -> Optional[pulumi.Input[str]]:
|
|
123
|
+
"""
|
|
124
|
+
Alert manager URL.
|
|
125
|
+
"""
|
|
126
|
+
return pulumi.get(self, "alert_manager_url")
|
|
127
|
+
|
|
128
|
+
@alert_manager_url.setter
|
|
129
|
+
def alert_manager_url(self, value: Optional[pulumi.Input[str]]):
|
|
130
|
+
pulumi.set(self, "alert_manager_url", value)
|
|
131
|
+
|
|
132
|
+
@property
|
|
133
|
+
@pulumi.getter(name="contactPoints")
|
|
134
|
+
def contact_points(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['CockpitAlertManagerContactPointArgs']]]]:
|
|
135
|
+
"""
|
|
136
|
+
A list of contact points with email addresses for the alert receivers. Each map should contain a single key email.
|
|
137
|
+
"""
|
|
138
|
+
return pulumi.get(self, "contact_points")
|
|
139
|
+
|
|
140
|
+
@contact_points.setter
|
|
141
|
+
def contact_points(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['CockpitAlertManagerContactPointArgs']]]]):
|
|
142
|
+
pulumi.set(self, "contact_points", value)
|
|
143
|
+
|
|
144
|
+
@property
|
|
145
|
+
@pulumi.getter(name="enableManagedAlerts")
|
|
146
|
+
def enable_managed_alerts(self) -> Optional[pulumi.Input[bool]]:
|
|
147
|
+
"""
|
|
148
|
+
Indicates whether the alert manager should be enabled. Defaults to true.
|
|
149
|
+
"""
|
|
150
|
+
return pulumi.get(self, "enable_managed_alerts")
|
|
151
|
+
|
|
152
|
+
@enable_managed_alerts.setter
|
|
153
|
+
def enable_managed_alerts(self, value: Optional[pulumi.Input[bool]]):
|
|
154
|
+
pulumi.set(self, "enable_managed_alerts", value)
|
|
155
|
+
|
|
156
|
+
@property
|
|
157
|
+
@pulumi.getter(name="projectId")
|
|
158
|
+
def project_id(self) -> Optional[pulumi.Input[str]]:
|
|
159
|
+
"""
|
|
160
|
+
`project_id`) The ID of the project the cockpit is associated with.
|
|
161
|
+
"""
|
|
162
|
+
return pulumi.get(self, "project_id")
|
|
163
|
+
|
|
164
|
+
@project_id.setter
|
|
165
|
+
def project_id(self, value: Optional[pulumi.Input[str]]):
|
|
166
|
+
pulumi.set(self, "project_id", value)
|
|
167
|
+
|
|
168
|
+
@property
|
|
169
|
+
@pulumi.getter
|
|
170
|
+
def region(self) -> Optional[pulumi.Input[str]]:
|
|
171
|
+
"""
|
|
172
|
+
`region`) The region in which alert_manager should be created.
|
|
173
|
+
"""
|
|
174
|
+
return pulumi.get(self, "region")
|
|
175
|
+
|
|
176
|
+
@region.setter
|
|
177
|
+
def region(self, value: Optional[pulumi.Input[str]]):
|
|
178
|
+
pulumi.set(self, "region", value)
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
class CockpitAlertManager(pulumi.CustomResource):
|
|
182
|
+
@overload
|
|
183
|
+
def __init__(__self__,
|
|
184
|
+
resource_name: str,
|
|
185
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
186
|
+
contact_points: Optional[pulumi.Input[Sequence[pulumi.Input[Union['CockpitAlertManagerContactPointArgs', 'CockpitAlertManagerContactPointArgsDict']]]]] = None,
|
|
187
|
+
enable_managed_alerts: Optional[pulumi.Input[bool]] = None,
|
|
188
|
+
project_id: Optional[pulumi.Input[str]] = None,
|
|
189
|
+
region: Optional[pulumi.Input[str]] = None,
|
|
190
|
+
__props__=None):
|
|
191
|
+
"""
|
|
192
|
+
Creates and manages Scaleway Cockpit Alert Managers.
|
|
193
|
+
|
|
194
|
+
For more information consult the [documentation](https://www.scaleway.com/en/docs/observability/cockpit/concepts/#grafana-users).
|
|
195
|
+
|
|
196
|
+
## Import
|
|
197
|
+
|
|
198
|
+
Alert managers can be imported using the project ID, e.g.
|
|
199
|
+
|
|
200
|
+
bash
|
|
201
|
+
|
|
202
|
+
```sh
|
|
203
|
+
$ pulumi import scaleway:index/cockpitAlertManager:CockpitAlertManager main fr-par/11111111-1111-1111-1111-111111111111
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
:param str resource_name: The name of the resource.
|
|
207
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
208
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['CockpitAlertManagerContactPointArgs', 'CockpitAlertManagerContactPointArgsDict']]]] contact_points: A list of contact points with email addresses for the alert receivers. Each map should contain a single key email.
|
|
209
|
+
:param pulumi.Input[bool] enable_managed_alerts: Indicates whether the alert manager should be enabled. Defaults to true.
|
|
210
|
+
:param pulumi.Input[str] project_id: `project_id`) The ID of the project the cockpit is associated with.
|
|
211
|
+
:param pulumi.Input[str] region: `region`) The region in which alert_manager should be created.
|
|
212
|
+
"""
|
|
213
|
+
...
|
|
214
|
+
@overload
|
|
215
|
+
def __init__(__self__,
|
|
216
|
+
resource_name: str,
|
|
217
|
+
args: Optional[CockpitAlertManagerArgs] = None,
|
|
218
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
219
|
+
"""
|
|
220
|
+
Creates and manages Scaleway Cockpit Alert Managers.
|
|
221
|
+
|
|
222
|
+
For more information consult the [documentation](https://www.scaleway.com/en/docs/observability/cockpit/concepts/#grafana-users).
|
|
223
|
+
|
|
224
|
+
## Import
|
|
225
|
+
|
|
226
|
+
Alert managers can be imported using the project ID, e.g.
|
|
227
|
+
|
|
228
|
+
bash
|
|
229
|
+
|
|
230
|
+
```sh
|
|
231
|
+
$ pulumi import scaleway:index/cockpitAlertManager:CockpitAlertManager main fr-par/11111111-1111-1111-1111-111111111111
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
:param str resource_name: The name of the resource.
|
|
235
|
+
:param CockpitAlertManagerArgs args: The arguments to use to populate this resource's properties.
|
|
236
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
237
|
+
"""
|
|
238
|
+
...
|
|
239
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
240
|
+
resource_args, opts = _utilities.get_resource_args_opts(CockpitAlertManagerArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
241
|
+
if resource_args is not None:
|
|
242
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
243
|
+
else:
|
|
244
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
245
|
+
|
|
246
|
+
def _internal_init(__self__,
|
|
247
|
+
resource_name: str,
|
|
248
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
249
|
+
contact_points: Optional[pulumi.Input[Sequence[pulumi.Input[Union['CockpitAlertManagerContactPointArgs', 'CockpitAlertManagerContactPointArgsDict']]]]] = None,
|
|
250
|
+
enable_managed_alerts: Optional[pulumi.Input[bool]] = None,
|
|
251
|
+
project_id: Optional[pulumi.Input[str]] = None,
|
|
252
|
+
region: Optional[pulumi.Input[str]] = None,
|
|
253
|
+
__props__=None):
|
|
254
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
255
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
256
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
257
|
+
if opts.id is None:
|
|
258
|
+
if __props__ is not None:
|
|
259
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
260
|
+
__props__ = CockpitAlertManagerArgs.__new__(CockpitAlertManagerArgs)
|
|
261
|
+
|
|
262
|
+
__props__.__dict__["contact_points"] = contact_points
|
|
263
|
+
__props__.__dict__["enable_managed_alerts"] = enable_managed_alerts
|
|
264
|
+
__props__.__dict__["project_id"] = project_id
|
|
265
|
+
__props__.__dict__["region"] = region
|
|
266
|
+
__props__.__dict__["alert_manager_url"] = None
|
|
267
|
+
super(CockpitAlertManager, __self__).__init__(
|
|
268
|
+
'scaleway:index/cockpitAlertManager:CockpitAlertManager',
|
|
269
|
+
resource_name,
|
|
270
|
+
__props__,
|
|
271
|
+
opts)
|
|
272
|
+
|
|
273
|
+
@staticmethod
|
|
274
|
+
def get(resource_name: str,
|
|
275
|
+
id: pulumi.Input[str],
|
|
276
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
277
|
+
alert_manager_url: Optional[pulumi.Input[str]] = None,
|
|
278
|
+
contact_points: Optional[pulumi.Input[Sequence[pulumi.Input[Union['CockpitAlertManagerContactPointArgs', 'CockpitAlertManagerContactPointArgsDict']]]]] = None,
|
|
279
|
+
enable_managed_alerts: Optional[pulumi.Input[bool]] = None,
|
|
280
|
+
project_id: Optional[pulumi.Input[str]] = None,
|
|
281
|
+
region: Optional[pulumi.Input[str]] = None) -> 'CockpitAlertManager':
|
|
282
|
+
"""
|
|
283
|
+
Get an existing CockpitAlertManager resource's state with the given name, id, and optional extra
|
|
284
|
+
properties used to qualify the lookup.
|
|
285
|
+
|
|
286
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
287
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
288
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
289
|
+
:param pulumi.Input[str] alert_manager_url: Alert manager URL.
|
|
290
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['CockpitAlertManagerContactPointArgs', 'CockpitAlertManagerContactPointArgsDict']]]] contact_points: A list of contact points with email addresses for the alert receivers. Each map should contain a single key email.
|
|
291
|
+
:param pulumi.Input[bool] enable_managed_alerts: Indicates whether the alert manager should be enabled. Defaults to true.
|
|
292
|
+
:param pulumi.Input[str] project_id: `project_id`) The ID of the project the cockpit is associated with.
|
|
293
|
+
:param pulumi.Input[str] region: `region`) The region in which alert_manager should be created.
|
|
294
|
+
"""
|
|
295
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
296
|
+
|
|
297
|
+
__props__ = _CockpitAlertManagerState.__new__(_CockpitAlertManagerState)
|
|
298
|
+
|
|
299
|
+
__props__.__dict__["alert_manager_url"] = alert_manager_url
|
|
300
|
+
__props__.__dict__["contact_points"] = contact_points
|
|
301
|
+
__props__.__dict__["enable_managed_alerts"] = enable_managed_alerts
|
|
302
|
+
__props__.__dict__["project_id"] = project_id
|
|
303
|
+
__props__.__dict__["region"] = region
|
|
304
|
+
return CockpitAlertManager(resource_name, opts=opts, __props__=__props__)
|
|
305
|
+
|
|
306
|
+
@property
|
|
307
|
+
@pulumi.getter(name="alertManagerUrl")
|
|
308
|
+
def alert_manager_url(self) -> pulumi.Output[str]:
|
|
309
|
+
"""
|
|
310
|
+
Alert manager URL.
|
|
311
|
+
"""
|
|
312
|
+
return pulumi.get(self, "alert_manager_url")
|
|
313
|
+
|
|
314
|
+
@property
|
|
315
|
+
@pulumi.getter(name="contactPoints")
|
|
316
|
+
def contact_points(self) -> pulumi.Output[Optional[Sequence['outputs.CockpitAlertManagerContactPoint']]]:
|
|
317
|
+
"""
|
|
318
|
+
A list of contact points with email addresses for the alert receivers. Each map should contain a single key email.
|
|
319
|
+
"""
|
|
320
|
+
return pulumi.get(self, "contact_points")
|
|
321
|
+
|
|
322
|
+
@property
|
|
323
|
+
@pulumi.getter(name="enableManagedAlerts")
|
|
324
|
+
def enable_managed_alerts(self) -> pulumi.Output[Optional[bool]]:
|
|
325
|
+
"""
|
|
326
|
+
Indicates whether the alert manager should be enabled. Defaults to true.
|
|
327
|
+
"""
|
|
328
|
+
return pulumi.get(self, "enable_managed_alerts")
|
|
329
|
+
|
|
330
|
+
@property
|
|
331
|
+
@pulumi.getter(name="projectId")
|
|
332
|
+
def project_id(self) -> pulumi.Output[str]:
|
|
333
|
+
"""
|
|
334
|
+
`project_id`) The ID of the project the cockpit is associated with.
|
|
335
|
+
"""
|
|
336
|
+
return pulumi.get(self, "project_id")
|
|
337
|
+
|
|
338
|
+
@property
|
|
339
|
+
@pulumi.getter
|
|
340
|
+
def region(self) -> pulumi.Output[str]:
|
|
341
|
+
"""
|
|
342
|
+
`region`) The region in which alert_manager should be created.
|
|
343
|
+
"""
|
|
344
|
+
return pulumi.get(self, "region")
|
|
345
|
+
|