pulumi-alicloud 3.84.0a1757017465__py3-none-any.whl → 3.85.0a1757389637__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 pulumi-alicloud might be problematic. Click here for more details.
- pulumi_alicloud/__init__.py +64 -0
- pulumi_alicloud/amqp/get_instances.py +49 -20
- pulumi_alicloud/amqp/outputs.py +20 -20
- pulumi_alicloud/amqp/virtual_host.py +46 -20
- pulumi_alicloud/cloudsso/__init__.py +1 -0
- pulumi_alicloud/cloudsso/delegate_account.py +218 -0
- pulumi_alicloud/cs/node_pool.py +7 -0
- pulumi_alicloud/ddos/bgp_ip.py +57 -48
- pulumi_alicloud/ddos/ddos_bgp_instance.py +246 -106
- pulumi_alicloud/dms/__init__.py +1 -0
- pulumi_alicloud/dms/enterprise_workspace.py +354 -0
- pulumi_alicloud/dns/ddos_bgp_instance.py +246 -106
- pulumi_alicloud/eflo/node.py +54 -7
- pulumi_alicloud/esa/__init__.py +3 -0
- pulumi_alicloud/esa/kv_account.py +145 -0
- pulumi_alicloud/esa/routine_related_record.py +226 -0
- pulumi_alicloud/esa/url_observation.py +352 -0
- pulumi_alicloud/fc/get_service.py +2 -2
- pulumi_alicloud/hologram/instance.py +35 -0
- pulumi_alicloud/kms/instance.py +47 -0
- pulumi_alicloud/log/oss_export.py +6 -0
- pulumi_alicloud/message/service_subscription.py +48 -1
- pulumi_alicloud/mongodb/sharding_instance.py +338 -0
- pulumi_alicloud/nlb/server_group.py +28 -21
- pulumi_alicloud/oss/bucket.py +56 -0
- pulumi_alicloud/privatelink/vpc_endpoint.py +21 -7
- pulumi_alicloud/pulumi-plugin.json +1 -1
- pulumi_alicloud/resourcemanager/__init__.py +1 -0
- pulumi_alicloud/resourcemanager/delegated_administrator.py +22 -50
- pulumi_alicloud/resourcemanager/folder.py +106 -29
- pulumi_alicloud/resourcemanager/get_accounts.py +35 -18
- pulumi_alicloud/resourcemanager/message_contact.py +572 -0
- pulumi_alicloud/resourcemanager/outputs.py +31 -20
- pulumi_alicloud/resourcemanager/resource_directory.py +137 -46
- pulumi_alicloud/resourcemanager/shared_resource.py +81 -45
- pulumi_alicloud/resourcemanager/shared_target.py +60 -24
- pulumi_alicloud/sls/__init__.py +4 -0
- pulumi_alicloud/sls/_inputs.py +128 -0
- pulumi_alicloud/sls/get_logtail_configs.py +395 -0
- pulumi_alicloud/sls/get_machine_groups.py +229 -0
- pulumi_alicloud/sls/logtail_config.py +692 -0
- pulumi_alicloud/sls/machine_group.py +502 -0
- pulumi_alicloud/sls/outputs.py +172 -0
- pulumi_alicloud/vpc/_inputs.py +87 -54
- pulumi_alicloud/vpc/dhcp_options_set.py +97 -58
- pulumi_alicloud/vpc/flow_log.py +25 -25
- pulumi_alicloud/vpc/ha_vip_attachment.py +41 -60
- pulumi_alicloud/vpc/ha_vipv2.py +100 -88
- pulumi_alicloud/vpc/network_acl.py +34 -23
- pulumi_alicloud/vpc/outputs.py +58 -36
- {pulumi_alicloud-3.84.0a1757017465.dist-info → pulumi_alicloud-3.85.0a1757389637.dist-info}/METADATA +1 -1
- {pulumi_alicloud-3.84.0a1757017465.dist-info → pulumi_alicloud-3.85.0a1757389637.dist-info}/RECORD +54 -44
- {pulumi_alicloud-3.84.0a1757017465.dist-info → pulumi_alicloud-3.85.0a1757389637.dist-info}/WHEEL +0 -0
- {pulumi_alicloud-3.84.0a1757017465.dist-info → pulumi_alicloud-3.85.0a1757389637.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,572 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import builtins as _builtins
|
|
6
|
+
import warnings
|
|
7
|
+
import sys
|
|
8
|
+
import pulumi
|
|
9
|
+
import pulumi.runtime
|
|
10
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
|
+
from .. import _utilities
|
|
16
|
+
|
|
17
|
+
__all__ = ['MessageContactArgs', 'MessageContact']
|
|
18
|
+
|
|
19
|
+
@pulumi.input_type
|
|
20
|
+
class MessageContactArgs:
|
|
21
|
+
def __init__(__self__, *,
|
|
22
|
+
email_address: pulumi.Input[_builtins.str],
|
|
23
|
+
message_contact_name: pulumi.Input[_builtins.str],
|
|
24
|
+
message_types: pulumi.Input[Sequence[pulumi.Input[_builtins.str]]],
|
|
25
|
+
title: pulumi.Input[_builtins.str],
|
|
26
|
+
phone_number: Optional[pulumi.Input[_builtins.str]] = None):
|
|
27
|
+
"""
|
|
28
|
+
The set of arguments for constructing a MessageContact resource.
|
|
29
|
+
:param pulumi.Input[_builtins.str] email_address: The email address of the contact.
|
|
30
|
+
After you specify an email address, you need to call SendEmailVerificationForMessageContact to send verification information to the email address. After the verification is passed, the email address takes effect.
|
|
31
|
+
:param pulumi.Input[_builtins.str] message_contact_name: The name of the contact.
|
|
32
|
+
The name must be unique in your resource directory.
|
|
33
|
+
The name must be 2 to 12 characters in length and can contain only letters.
|
|
34
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] message_types: The types of messages received by the contact.
|
|
35
|
+
:param pulumi.Input[_builtins.str] title: The job title of the contact.Valid values:
|
|
36
|
+
- FinanceDirector
|
|
37
|
+
- TechnicalDirector
|
|
38
|
+
- MaintenanceDirector
|
|
39
|
+
- CEO
|
|
40
|
+
- ProjectDirector
|
|
41
|
+
- Other
|
|
42
|
+
:param pulumi.Input[_builtins.str] phone_number: The mobile phone number of the contact.
|
|
43
|
+
|
|
44
|
+
Specify the mobile phone number in the `-` format.
|
|
45
|
+
|
|
46
|
+
> **NOTE:** Only mobile phone numbers in the `86-` format in the Chinese mainland are supported.
|
|
47
|
+
|
|
48
|
+
After you specify a mobile phone number, you need to call SendPhoneVerificationForMessageContact to send verification information to the mobile phone number. After the verification is passed, the mobile phone number takes effect.
|
|
49
|
+
"""
|
|
50
|
+
pulumi.set(__self__, "email_address", email_address)
|
|
51
|
+
pulumi.set(__self__, "message_contact_name", message_contact_name)
|
|
52
|
+
pulumi.set(__self__, "message_types", message_types)
|
|
53
|
+
pulumi.set(__self__, "title", title)
|
|
54
|
+
if phone_number is not None:
|
|
55
|
+
pulumi.set(__self__, "phone_number", phone_number)
|
|
56
|
+
|
|
57
|
+
@_builtins.property
|
|
58
|
+
@pulumi.getter(name="emailAddress")
|
|
59
|
+
def email_address(self) -> pulumi.Input[_builtins.str]:
|
|
60
|
+
"""
|
|
61
|
+
The email address of the contact.
|
|
62
|
+
After you specify an email address, you need to call SendEmailVerificationForMessageContact to send verification information to the email address. After the verification is passed, the email address takes effect.
|
|
63
|
+
"""
|
|
64
|
+
return pulumi.get(self, "email_address")
|
|
65
|
+
|
|
66
|
+
@email_address.setter
|
|
67
|
+
def email_address(self, value: pulumi.Input[_builtins.str]):
|
|
68
|
+
pulumi.set(self, "email_address", value)
|
|
69
|
+
|
|
70
|
+
@_builtins.property
|
|
71
|
+
@pulumi.getter(name="messageContactName")
|
|
72
|
+
def message_contact_name(self) -> pulumi.Input[_builtins.str]:
|
|
73
|
+
"""
|
|
74
|
+
The name of the contact.
|
|
75
|
+
The name must be unique in your resource directory.
|
|
76
|
+
The name must be 2 to 12 characters in length and can contain only letters.
|
|
77
|
+
"""
|
|
78
|
+
return pulumi.get(self, "message_contact_name")
|
|
79
|
+
|
|
80
|
+
@message_contact_name.setter
|
|
81
|
+
def message_contact_name(self, value: pulumi.Input[_builtins.str]):
|
|
82
|
+
pulumi.set(self, "message_contact_name", value)
|
|
83
|
+
|
|
84
|
+
@_builtins.property
|
|
85
|
+
@pulumi.getter(name="messageTypes")
|
|
86
|
+
def message_types(self) -> pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]:
|
|
87
|
+
"""
|
|
88
|
+
The types of messages received by the contact.
|
|
89
|
+
"""
|
|
90
|
+
return pulumi.get(self, "message_types")
|
|
91
|
+
|
|
92
|
+
@message_types.setter
|
|
93
|
+
def message_types(self, value: pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]):
|
|
94
|
+
pulumi.set(self, "message_types", value)
|
|
95
|
+
|
|
96
|
+
@_builtins.property
|
|
97
|
+
@pulumi.getter
|
|
98
|
+
def title(self) -> pulumi.Input[_builtins.str]:
|
|
99
|
+
"""
|
|
100
|
+
The job title of the contact.Valid values:
|
|
101
|
+
- FinanceDirector
|
|
102
|
+
- TechnicalDirector
|
|
103
|
+
- MaintenanceDirector
|
|
104
|
+
- CEO
|
|
105
|
+
- ProjectDirector
|
|
106
|
+
- Other
|
|
107
|
+
"""
|
|
108
|
+
return pulumi.get(self, "title")
|
|
109
|
+
|
|
110
|
+
@title.setter
|
|
111
|
+
def title(self, value: pulumi.Input[_builtins.str]):
|
|
112
|
+
pulumi.set(self, "title", value)
|
|
113
|
+
|
|
114
|
+
@_builtins.property
|
|
115
|
+
@pulumi.getter(name="phoneNumber")
|
|
116
|
+
def phone_number(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
117
|
+
"""
|
|
118
|
+
The mobile phone number of the contact.
|
|
119
|
+
|
|
120
|
+
Specify the mobile phone number in the `-` format.
|
|
121
|
+
|
|
122
|
+
> **NOTE:** Only mobile phone numbers in the `86-` format in the Chinese mainland are supported.
|
|
123
|
+
|
|
124
|
+
After you specify a mobile phone number, you need to call SendPhoneVerificationForMessageContact to send verification information to the mobile phone number. After the verification is passed, the mobile phone number takes effect.
|
|
125
|
+
"""
|
|
126
|
+
return pulumi.get(self, "phone_number")
|
|
127
|
+
|
|
128
|
+
@phone_number.setter
|
|
129
|
+
def phone_number(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
130
|
+
pulumi.set(self, "phone_number", value)
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
@pulumi.input_type
|
|
134
|
+
class _MessageContactState:
|
|
135
|
+
def __init__(__self__, *,
|
|
136
|
+
create_time: Optional[pulumi.Input[_builtins.str]] = None,
|
|
137
|
+
email_address: Optional[pulumi.Input[_builtins.str]] = None,
|
|
138
|
+
message_contact_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
139
|
+
message_types: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
140
|
+
phone_number: Optional[pulumi.Input[_builtins.str]] = None,
|
|
141
|
+
status: Optional[pulumi.Input[_builtins.str]] = None,
|
|
142
|
+
title: Optional[pulumi.Input[_builtins.str]] = None):
|
|
143
|
+
"""
|
|
144
|
+
Input properties used for looking up and filtering MessageContact resources.
|
|
145
|
+
:param pulumi.Input[_builtins.str] create_time: The time when the contact was created.
|
|
146
|
+
:param pulumi.Input[_builtins.str] email_address: The email address of the contact.
|
|
147
|
+
After you specify an email address, you need to call SendEmailVerificationForMessageContact to send verification information to the email address. After the verification is passed, the email address takes effect.
|
|
148
|
+
:param pulumi.Input[_builtins.str] message_contact_name: The name of the contact.
|
|
149
|
+
The name must be unique in your resource directory.
|
|
150
|
+
The name must be 2 to 12 characters in length and can contain only letters.
|
|
151
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] message_types: The types of messages received by the contact.
|
|
152
|
+
:param pulumi.Input[_builtins.str] phone_number: The mobile phone number of the contact.
|
|
153
|
+
|
|
154
|
+
Specify the mobile phone number in the `-` format.
|
|
155
|
+
|
|
156
|
+
> **NOTE:** Only mobile phone numbers in the `86-` format in the Chinese mainland are supported.
|
|
157
|
+
|
|
158
|
+
After you specify a mobile phone number, you need to call SendPhoneVerificationForMessageContact to send verification information to the mobile phone number. After the verification is passed, the mobile phone number takes effect.
|
|
159
|
+
:param pulumi.Input[_builtins.str] status: The status of the contact.
|
|
160
|
+
:param pulumi.Input[_builtins.str] title: The job title of the contact.Valid values:
|
|
161
|
+
- FinanceDirector
|
|
162
|
+
- TechnicalDirector
|
|
163
|
+
- MaintenanceDirector
|
|
164
|
+
- CEO
|
|
165
|
+
- ProjectDirector
|
|
166
|
+
- Other
|
|
167
|
+
"""
|
|
168
|
+
if create_time is not None:
|
|
169
|
+
pulumi.set(__self__, "create_time", create_time)
|
|
170
|
+
if email_address is not None:
|
|
171
|
+
pulumi.set(__self__, "email_address", email_address)
|
|
172
|
+
if message_contact_name is not None:
|
|
173
|
+
pulumi.set(__self__, "message_contact_name", message_contact_name)
|
|
174
|
+
if message_types is not None:
|
|
175
|
+
pulumi.set(__self__, "message_types", message_types)
|
|
176
|
+
if phone_number is not None:
|
|
177
|
+
pulumi.set(__self__, "phone_number", phone_number)
|
|
178
|
+
if status is not None:
|
|
179
|
+
pulumi.set(__self__, "status", status)
|
|
180
|
+
if title is not None:
|
|
181
|
+
pulumi.set(__self__, "title", title)
|
|
182
|
+
|
|
183
|
+
@_builtins.property
|
|
184
|
+
@pulumi.getter(name="createTime")
|
|
185
|
+
def create_time(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
186
|
+
"""
|
|
187
|
+
The time when the contact was created.
|
|
188
|
+
"""
|
|
189
|
+
return pulumi.get(self, "create_time")
|
|
190
|
+
|
|
191
|
+
@create_time.setter
|
|
192
|
+
def create_time(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
193
|
+
pulumi.set(self, "create_time", value)
|
|
194
|
+
|
|
195
|
+
@_builtins.property
|
|
196
|
+
@pulumi.getter(name="emailAddress")
|
|
197
|
+
def email_address(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
198
|
+
"""
|
|
199
|
+
The email address of the contact.
|
|
200
|
+
After you specify an email address, you need to call SendEmailVerificationForMessageContact to send verification information to the email address. After the verification is passed, the email address takes effect.
|
|
201
|
+
"""
|
|
202
|
+
return pulumi.get(self, "email_address")
|
|
203
|
+
|
|
204
|
+
@email_address.setter
|
|
205
|
+
def email_address(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
206
|
+
pulumi.set(self, "email_address", value)
|
|
207
|
+
|
|
208
|
+
@_builtins.property
|
|
209
|
+
@pulumi.getter(name="messageContactName")
|
|
210
|
+
def message_contact_name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
211
|
+
"""
|
|
212
|
+
The name of the contact.
|
|
213
|
+
The name must be unique in your resource directory.
|
|
214
|
+
The name must be 2 to 12 characters in length and can contain only letters.
|
|
215
|
+
"""
|
|
216
|
+
return pulumi.get(self, "message_contact_name")
|
|
217
|
+
|
|
218
|
+
@message_contact_name.setter
|
|
219
|
+
def message_contact_name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
220
|
+
pulumi.set(self, "message_contact_name", value)
|
|
221
|
+
|
|
222
|
+
@_builtins.property
|
|
223
|
+
@pulumi.getter(name="messageTypes")
|
|
224
|
+
def message_types(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
|
225
|
+
"""
|
|
226
|
+
The types of messages received by the contact.
|
|
227
|
+
"""
|
|
228
|
+
return pulumi.get(self, "message_types")
|
|
229
|
+
|
|
230
|
+
@message_types.setter
|
|
231
|
+
def message_types(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
|
232
|
+
pulumi.set(self, "message_types", value)
|
|
233
|
+
|
|
234
|
+
@_builtins.property
|
|
235
|
+
@pulumi.getter(name="phoneNumber")
|
|
236
|
+
def phone_number(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
237
|
+
"""
|
|
238
|
+
The mobile phone number of the contact.
|
|
239
|
+
|
|
240
|
+
Specify the mobile phone number in the `-` format.
|
|
241
|
+
|
|
242
|
+
> **NOTE:** Only mobile phone numbers in the `86-` format in the Chinese mainland are supported.
|
|
243
|
+
|
|
244
|
+
After you specify a mobile phone number, you need to call SendPhoneVerificationForMessageContact to send verification information to the mobile phone number. After the verification is passed, the mobile phone number takes effect.
|
|
245
|
+
"""
|
|
246
|
+
return pulumi.get(self, "phone_number")
|
|
247
|
+
|
|
248
|
+
@phone_number.setter
|
|
249
|
+
def phone_number(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
250
|
+
pulumi.set(self, "phone_number", value)
|
|
251
|
+
|
|
252
|
+
@_builtins.property
|
|
253
|
+
@pulumi.getter
|
|
254
|
+
def status(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
255
|
+
"""
|
|
256
|
+
The status of the contact.
|
|
257
|
+
"""
|
|
258
|
+
return pulumi.get(self, "status")
|
|
259
|
+
|
|
260
|
+
@status.setter
|
|
261
|
+
def status(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
262
|
+
pulumi.set(self, "status", value)
|
|
263
|
+
|
|
264
|
+
@_builtins.property
|
|
265
|
+
@pulumi.getter
|
|
266
|
+
def title(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
267
|
+
"""
|
|
268
|
+
The job title of the contact.Valid values:
|
|
269
|
+
- FinanceDirector
|
|
270
|
+
- TechnicalDirector
|
|
271
|
+
- MaintenanceDirector
|
|
272
|
+
- CEO
|
|
273
|
+
- ProjectDirector
|
|
274
|
+
- Other
|
|
275
|
+
"""
|
|
276
|
+
return pulumi.get(self, "title")
|
|
277
|
+
|
|
278
|
+
@title.setter
|
|
279
|
+
def title(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
280
|
+
pulumi.set(self, "title", value)
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
@pulumi.type_token("alicloud:resourcemanager/messageContact:MessageContact")
|
|
284
|
+
class MessageContact(pulumi.CustomResource):
|
|
285
|
+
@overload
|
|
286
|
+
def __init__(__self__,
|
|
287
|
+
resource_name: str,
|
|
288
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
289
|
+
email_address: Optional[pulumi.Input[_builtins.str]] = None,
|
|
290
|
+
message_contact_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
291
|
+
message_types: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
292
|
+
phone_number: Optional[pulumi.Input[_builtins.str]] = None,
|
|
293
|
+
title: Optional[pulumi.Input[_builtins.str]] = None,
|
|
294
|
+
__props__=None):
|
|
295
|
+
"""
|
|
296
|
+
Provides a Resource Manager Message Contact resource.
|
|
297
|
+
|
|
298
|
+
Message contact for Resource Directory account.
|
|
299
|
+
|
|
300
|
+
For information about Resource Manager Message Contact and how to use it, see [What is Message Contact](https://next.api.alibabacloud.com/document/ResourceDirectoryMaster/2022-04-19/AddMessageContact).
|
|
301
|
+
|
|
302
|
+
> **NOTE:** Available since v1.259.0.
|
|
303
|
+
|
|
304
|
+
## Example Usage
|
|
305
|
+
|
|
306
|
+
Basic Usage
|
|
307
|
+
|
|
308
|
+
```python
|
|
309
|
+
import pulumi
|
|
310
|
+
import pulumi_alicloud as alicloud
|
|
311
|
+
|
|
312
|
+
config = pulumi.Config()
|
|
313
|
+
name = config.get("name")
|
|
314
|
+
if name is None:
|
|
315
|
+
name = "terraform-example"
|
|
316
|
+
default = alicloud.resourcemanager.MessageContact("default",
|
|
317
|
+
message_types=["AccountExpenses"],
|
|
318
|
+
phone_number="86-18626811111",
|
|
319
|
+
title="TechnicalDirector",
|
|
320
|
+
email_address="resourceexample@126.com",
|
|
321
|
+
message_contact_name="example")
|
|
322
|
+
```
|
|
323
|
+
|
|
324
|
+
## Import
|
|
325
|
+
|
|
326
|
+
Resource Manager Message Contact can be imported using the id, e.g.
|
|
327
|
+
|
|
328
|
+
```sh
|
|
329
|
+
$ pulumi import alicloud:resourcemanager/messageContact:MessageContact example <id>
|
|
330
|
+
```
|
|
331
|
+
|
|
332
|
+
:param str resource_name: The name of the resource.
|
|
333
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
334
|
+
:param pulumi.Input[_builtins.str] email_address: The email address of the contact.
|
|
335
|
+
After you specify an email address, you need to call SendEmailVerificationForMessageContact to send verification information to the email address. After the verification is passed, the email address takes effect.
|
|
336
|
+
:param pulumi.Input[_builtins.str] message_contact_name: The name of the contact.
|
|
337
|
+
The name must be unique in your resource directory.
|
|
338
|
+
The name must be 2 to 12 characters in length and can contain only letters.
|
|
339
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] message_types: The types of messages received by the contact.
|
|
340
|
+
:param pulumi.Input[_builtins.str] phone_number: The mobile phone number of the contact.
|
|
341
|
+
|
|
342
|
+
Specify the mobile phone number in the `-` format.
|
|
343
|
+
|
|
344
|
+
> **NOTE:** Only mobile phone numbers in the `86-` format in the Chinese mainland are supported.
|
|
345
|
+
|
|
346
|
+
After you specify a mobile phone number, you need to call SendPhoneVerificationForMessageContact to send verification information to the mobile phone number. After the verification is passed, the mobile phone number takes effect.
|
|
347
|
+
:param pulumi.Input[_builtins.str] title: The job title of the contact.Valid values:
|
|
348
|
+
- FinanceDirector
|
|
349
|
+
- TechnicalDirector
|
|
350
|
+
- MaintenanceDirector
|
|
351
|
+
- CEO
|
|
352
|
+
- ProjectDirector
|
|
353
|
+
- Other
|
|
354
|
+
"""
|
|
355
|
+
...
|
|
356
|
+
@overload
|
|
357
|
+
def __init__(__self__,
|
|
358
|
+
resource_name: str,
|
|
359
|
+
args: MessageContactArgs,
|
|
360
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
361
|
+
"""
|
|
362
|
+
Provides a Resource Manager Message Contact resource.
|
|
363
|
+
|
|
364
|
+
Message contact for Resource Directory account.
|
|
365
|
+
|
|
366
|
+
For information about Resource Manager Message Contact and how to use it, see [What is Message Contact](https://next.api.alibabacloud.com/document/ResourceDirectoryMaster/2022-04-19/AddMessageContact).
|
|
367
|
+
|
|
368
|
+
> **NOTE:** Available since v1.259.0.
|
|
369
|
+
|
|
370
|
+
## Example Usage
|
|
371
|
+
|
|
372
|
+
Basic Usage
|
|
373
|
+
|
|
374
|
+
```python
|
|
375
|
+
import pulumi
|
|
376
|
+
import pulumi_alicloud as alicloud
|
|
377
|
+
|
|
378
|
+
config = pulumi.Config()
|
|
379
|
+
name = config.get("name")
|
|
380
|
+
if name is None:
|
|
381
|
+
name = "terraform-example"
|
|
382
|
+
default = alicloud.resourcemanager.MessageContact("default",
|
|
383
|
+
message_types=["AccountExpenses"],
|
|
384
|
+
phone_number="86-18626811111",
|
|
385
|
+
title="TechnicalDirector",
|
|
386
|
+
email_address="resourceexample@126.com",
|
|
387
|
+
message_contact_name="example")
|
|
388
|
+
```
|
|
389
|
+
|
|
390
|
+
## Import
|
|
391
|
+
|
|
392
|
+
Resource Manager Message Contact can be imported using the id, e.g.
|
|
393
|
+
|
|
394
|
+
```sh
|
|
395
|
+
$ pulumi import alicloud:resourcemanager/messageContact:MessageContact example <id>
|
|
396
|
+
```
|
|
397
|
+
|
|
398
|
+
:param str resource_name: The name of the resource.
|
|
399
|
+
:param MessageContactArgs args: The arguments to use to populate this resource's properties.
|
|
400
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
401
|
+
"""
|
|
402
|
+
...
|
|
403
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
404
|
+
resource_args, opts = _utilities.get_resource_args_opts(MessageContactArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
405
|
+
if resource_args is not None:
|
|
406
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
407
|
+
else:
|
|
408
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
409
|
+
|
|
410
|
+
def _internal_init(__self__,
|
|
411
|
+
resource_name: str,
|
|
412
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
413
|
+
email_address: Optional[pulumi.Input[_builtins.str]] = None,
|
|
414
|
+
message_contact_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
415
|
+
message_types: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
416
|
+
phone_number: Optional[pulumi.Input[_builtins.str]] = None,
|
|
417
|
+
title: Optional[pulumi.Input[_builtins.str]] = None,
|
|
418
|
+
__props__=None):
|
|
419
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
420
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
421
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
422
|
+
if opts.id is None:
|
|
423
|
+
if __props__ is not None:
|
|
424
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
425
|
+
__props__ = MessageContactArgs.__new__(MessageContactArgs)
|
|
426
|
+
|
|
427
|
+
if email_address is None and not opts.urn:
|
|
428
|
+
raise TypeError("Missing required property 'email_address'")
|
|
429
|
+
__props__.__dict__["email_address"] = email_address
|
|
430
|
+
if message_contact_name is None and not opts.urn:
|
|
431
|
+
raise TypeError("Missing required property 'message_contact_name'")
|
|
432
|
+
__props__.__dict__["message_contact_name"] = message_contact_name
|
|
433
|
+
if message_types is None and not opts.urn:
|
|
434
|
+
raise TypeError("Missing required property 'message_types'")
|
|
435
|
+
__props__.__dict__["message_types"] = message_types
|
|
436
|
+
__props__.__dict__["phone_number"] = phone_number
|
|
437
|
+
if title is None and not opts.urn:
|
|
438
|
+
raise TypeError("Missing required property 'title'")
|
|
439
|
+
__props__.__dict__["title"] = title
|
|
440
|
+
__props__.__dict__["create_time"] = None
|
|
441
|
+
__props__.__dict__["status"] = None
|
|
442
|
+
super(MessageContact, __self__).__init__(
|
|
443
|
+
'alicloud:resourcemanager/messageContact:MessageContact',
|
|
444
|
+
resource_name,
|
|
445
|
+
__props__,
|
|
446
|
+
opts)
|
|
447
|
+
|
|
448
|
+
@staticmethod
|
|
449
|
+
def get(resource_name: str,
|
|
450
|
+
id: pulumi.Input[str],
|
|
451
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
452
|
+
create_time: Optional[pulumi.Input[_builtins.str]] = None,
|
|
453
|
+
email_address: Optional[pulumi.Input[_builtins.str]] = None,
|
|
454
|
+
message_contact_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
455
|
+
message_types: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
456
|
+
phone_number: Optional[pulumi.Input[_builtins.str]] = None,
|
|
457
|
+
status: Optional[pulumi.Input[_builtins.str]] = None,
|
|
458
|
+
title: Optional[pulumi.Input[_builtins.str]] = None) -> 'MessageContact':
|
|
459
|
+
"""
|
|
460
|
+
Get an existing MessageContact resource's state with the given name, id, and optional extra
|
|
461
|
+
properties used to qualify the lookup.
|
|
462
|
+
|
|
463
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
464
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
465
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
466
|
+
:param pulumi.Input[_builtins.str] create_time: The time when the contact was created.
|
|
467
|
+
:param pulumi.Input[_builtins.str] email_address: The email address of the contact.
|
|
468
|
+
After you specify an email address, you need to call SendEmailVerificationForMessageContact to send verification information to the email address. After the verification is passed, the email address takes effect.
|
|
469
|
+
:param pulumi.Input[_builtins.str] message_contact_name: The name of the contact.
|
|
470
|
+
The name must be unique in your resource directory.
|
|
471
|
+
The name must be 2 to 12 characters in length and can contain only letters.
|
|
472
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] message_types: The types of messages received by the contact.
|
|
473
|
+
:param pulumi.Input[_builtins.str] phone_number: The mobile phone number of the contact.
|
|
474
|
+
|
|
475
|
+
Specify the mobile phone number in the `-` format.
|
|
476
|
+
|
|
477
|
+
> **NOTE:** Only mobile phone numbers in the `86-` format in the Chinese mainland are supported.
|
|
478
|
+
|
|
479
|
+
After you specify a mobile phone number, you need to call SendPhoneVerificationForMessageContact to send verification information to the mobile phone number. After the verification is passed, the mobile phone number takes effect.
|
|
480
|
+
:param pulumi.Input[_builtins.str] status: The status of the contact.
|
|
481
|
+
:param pulumi.Input[_builtins.str] title: The job title of the contact.Valid values:
|
|
482
|
+
- FinanceDirector
|
|
483
|
+
- TechnicalDirector
|
|
484
|
+
- MaintenanceDirector
|
|
485
|
+
- CEO
|
|
486
|
+
- ProjectDirector
|
|
487
|
+
- Other
|
|
488
|
+
"""
|
|
489
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
490
|
+
|
|
491
|
+
__props__ = _MessageContactState.__new__(_MessageContactState)
|
|
492
|
+
|
|
493
|
+
__props__.__dict__["create_time"] = create_time
|
|
494
|
+
__props__.__dict__["email_address"] = email_address
|
|
495
|
+
__props__.__dict__["message_contact_name"] = message_contact_name
|
|
496
|
+
__props__.__dict__["message_types"] = message_types
|
|
497
|
+
__props__.__dict__["phone_number"] = phone_number
|
|
498
|
+
__props__.__dict__["status"] = status
|
|
499
|
+
__props__.__dict__["title"] = title
|
|
500
|
+
return MessageContact(resource_name, opts=opts, __props__=__props__)
|
|
501
|
+
|
|
502
|
+
@_builtins.property
|
|
503
|
+
@pulumi.getter(name="createTime")
|
|
504
|
+
def create_time(self) -> pulumi.Output[_builtins.str]:
|
|
505
|
+
"""
|
|
506
|
+
The time when the contact was created.
|
|
507
|
+
"""
|
|
508
|
+
return pulumi.get(self, "create_time")
|
|
509
|
+
|
|
510
|
+
@_builtins.property
|
|
511
|
+
@pulumi.getter(name="emailAddress")
|
|
512
|
+
def email_address(self) -> pulumi.Output[_builtins.str]:
|
|
513
|
+
"""
|
|
514
|
+
The email address of the contact.
|
|
515
|
+
After you specify an email address, you need to call SendEmailVerificationForMessageContact to send verification information to the email address. After the verification is passed, the email address takes effect.
|
|
516
|
+
"""
|
|
517
|
+
return pulumi.get(self, "email_address")
|
|
518
|
+
|
|
519
|
+
@_builtins.property
|
|
520
|
+
@pulumi.getter(name="messageContactName")
|
|
521
|
+
def message_contact_name(self) -> pulumi.Output[_builtins.str]:
|
|
522
|
+
"""
|
|
523
|
+
The name of the contact.
|
|
524
|
+
The name must be unique in your resource directory.
|
|
525
|
+
The name must be 2 to 12 characters in length and can contain only letters.
|
|
526
|
+
"""
|
|
527
|
+
return pulumi.get(self, "message_contact_name")
|
|
528
|
+
|
|
529
|
+
@_builtins.property
|
|
530
|
+
@pulumi.getter(name="messageTypes")
|
|
531
|
+
def message_types(self) -> pulumi.Output[Sequence[_builtins.str]]:
|
|
532
|
+
"""
|
|
533
|
+
The types of messages received by the contact.
|
|
534
|
+
"""
|
|
535
|
+
return pulumi.get(self, "message_types")
|
|
536
|
+
|
|
537
|
+
@_builtins.property
|
|
538
|
+
@pulumi.getter(name="phoneNumber")
|
|
539
|
+
def phone_number(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
540
|
+
"""
|
|
541
|
+
The mobile phone number of the contact.
|
|
542
|
+
|
|
543
|
+
Specify the mobile phone number in the `-` format.
|
|
544
|
+
|
|
545
|
+
> **NOTE:** Only mobile phone numbers in the `86-` format in the Chinese mainland are supported.
|
|
546
|
+
|
|
547
|
+
After you specify a mobile phone number, you need to call SendPhoneVerificationForMessageContact to send verification information to the mobile phone number. After the verification is passed, the mobile phone number takes effect.
|
|
548
|
+
"""
|
|
549
|
+
return pulumi.get(self, "phone_number")
|
|
550
|
+
|
|
551
|
+
@_builtins.property
|
|
552
|
+
@pulumi.getter
|
|
553
|
+
def status(self) -> pulumi.Output[_builtins.str]:
|
|
554
|
+
"""
|
|
555
|
+
The status of the contact.
|
|
556
|
+
"""
|
|
557
|
+
return pulumi.get(self, "status")
|
|
558
|
+
|
|
559
|
+
@_builtins.property
|
|
560
|
+
@pulumi.getter
|
|
561
|
+
def title(self) -> pulumi.Output[_builtins.str]:
|
|
562
|
+
"""
|
|
563
|
+
The job title of the contact.Valid values:
|
|
564
|
+
- FinanceDirector
|
|
565
|
+
- TechnicalDirector
|
|
566
|
+
- MaintenanceDirector
|
|
567
|
+
- CEO
|
|
568
|
+
- ProjectDirector
|
|
569
|
+
- Other
|
|
570
|
+
"""
|
|
571
|
+
return pulumi.get(self, "title")
|
|
572
|
+
|