pulumi-alicloud 3.59.0__py3-none-any.whl → 3.59.0a1720502311__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 +0 -48
- pulumi_alicloud/adb/resource_group.py +119 -115
- pulumi_alicloud/clickhouse/get_regions.py +2 -2
- pulumi_alicloud/cloudstoragegateway/gateway_cache_disk.py +27 -150
- pulumi_alicloud/dfs/file_system.py +19 -52
- pulumi_alicloud/ecs/_inputs.py +8 -132
- pulumi_alicloud/ecs/image.py +121 -607
- pulumi_alicloud/ecs/outputs.py +8 -131
- pulumi_alicloud/emrv2/_inputs.py +0 -490
- pulumi_alicloud/emrv2/cluster.py +14 -14
- pulumi_alicloud/emrv2/outputs.py +0 -500
- pulumi_alicloud/ens/__init__.py +0 -2
- pulumi_alicloud/ens/instance.py +17 -16
- pulumi_alicloud/ess/eci_scaling_configuration.py +0 -94
- pulumi_alicloud/ess/scaling_group.py +0 -94
- pulumi_alicloud/ga/bandwidth_package_attachment.py +34 -34
- pulumi_alicloud/ga/listener.py +0 -122
- pulumi_alicloud/gpdb/__init__.py +0 -4
- pulumi_alicloud/pulumi-plugin.json +1 -1
- pulumi_alicloud/redis/tair_instance.py +67 -161
- {pulumi_alicloud-3.59.0.dist-info → pulumi_alicloud-3.59.0a1720502311.dist-info}/METADATA +1 -1
- {pulumi_alicloud-3.59.0.dist-info → pulumi_alicloud-3.59.0a1720502311.dist-info}/RECORD +24 -30
- {pulumi_alicloud-3.59.0.dist-info → pulumi_alicloud-3.59.0a1720502311.dist-info}/WHEEL +1 -1
- pulumi_alicloud/ens/eip_instance_attachment.py +0 -480
- pulumi_alicloud/ens/nat_gateway.py +0 -458
- pulumi_alicloud/gpdb/external_data_service.py +0 -485
- pulumi_alicloud/gpdb/remote_adb_data_source.py +0 -763
- pulumi_alicloud/gpdb/streaming_data_service.py +0 -481
- pulumi_alicloud/gpdb/streaming_data_source.py +0 -645
- {pulumi_alicloud-3.59.0.dist-info → pulumi_alicloud-3.59.0a1720502311.dist-info}/top_level.txt +0 -0
|
@@ -1,763 +0,0 @@
|
|
|
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 pulumi
|
|
8
|
-
import pulumi.runtime
|
|
9
|
-
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
10
|
-
from .. import _utilities
|
|
11
|
-
|
|
12
|
-
__all__ = ['RemoteAdbDataSourceArgs', 'RemoteAdbDataSource']
|
|
13
|
-
|
|
14
|
-
@pulumi.input_type
|
|
15
|
-
class RemoteAdbDataSourceArgs:
|
|
16
|
-
def __init__(__self__, *,
|
|
17
|
-
local_database: pulumi.Input[str],
|
|
18
|
-
local_db_instance_id: pulumi.Input[str],
|
|
19
|
-
manager_user_name: pulumi.Input[str],
|
|
20
|
-
manager_user_password: pulumi.Input[str],
|
|
21
|
-
remote_database: pulumi.Input[str],
|
|
22
|
-
remote_db_instance_id: pulumi.Input[str],
|
|
23
|
-
user_name: pulumi.Input[str],
|
|
24
|
-
user_password: pulumi.Input[str],
|
|
25
|
-
data_source_name: Optional[pulumi.Input[str]] = None):
|
|
26
|
-
"""
|
|
27
|
-
The set of arguments for constructing a RemoteAdbDataSource resource.
|
|
28
|
-
:param pulumi.Input[str] local_database: The database of the local instance which connection data.
|
|
29
|
-
:param pulumi.Input[str] local_db_instance_id: The instanceId of the local instance which connection data.
|
|
30
|
-
:param pulumi.Input[str] manager_user_name: The Management user name of the local instance.
|
|
31
|
-
:param pulumi.Input[str] manager_user_password: Password of the Manager user of the local instance
|
|
32
|
-
:param pulumi.Input[str] remote_database: The database of the remote instance which provide data.
|
|
33
|
-
:param pulumi.Input[str] remote_db_instance_id: The instanceId of the remote instance which provide data.
|
|
34
|
-
:param pulumi.Input[str] user_name: The user name used to connect to the remote instance
|
|
35
|
-
:param pulumi.Input[str] user_password: The user password used to connect to the remote instance
|
|
36
|
-
:param pulumi.Input[str] data_source_name: Data Source Name
|
|
37
|
-
"""
|
|
38
|
-
pulumi.set(__self__, "local_database", local_database)
|
|
39
|
-
pulumi.set(__self__, "local_db_instance_id", local_db_instance_id)
|
|
40
|
-
pulumi.set(__self__, "manager_user_name", manager_user_name)
|
|
41
|
-
pulumi.set(__self__, "manager_user_password", manager_user_password)
|
|
42
|
-
pulumi.set(__self__, "remote_database", remote_database)
|
|
43
|
-
pulumi.set(__self__, "remote_db_instance_id", remote_db_instance_id)
|
|
44
|
-
pulumi.set(__self__, "user_name", user_name)
|
|
45
|
-
pulumi.set(__self__, "user_password", user_password)
|
|
46
|
-
if data_source_name is not None:
|
|
47
|
-
pulumi.set(__self__, "data_source_name", data_source_name)
|
|
48
|
-
|
|
49
|
-
@property
|
|
50
|
-
@pulumi.getter(name="localDatabase")
|
|
51
|
-
def local_database(self) -> pulumi.Input[str]:
|
|
52
|
-
"""
|
|
53
|
-
The database of the local instance which connection data.
|
|
54
|
-
"""
|
|
55
|
-
return pulumi.get(self, "local_database")
|
|
56
|
-
|
|
57
|
-
@local_database.setter
|
|
58
|
-
def local_database(self, value: pulumi.Input[str]):
|
|
59
|
-
pulumi.set(self, "local_database", value)
|
|
60
|
-
|
|
61
|
-
@property
|
|
62
|
-
@pulumi.getter(name="localDbInstanceId")
|
|
63
|
-
def local_db_instance_id(self) -> pulumi.Input[str]:
|
|
64
|
-
"""
|
|
65
|
-
The instanceId of the local instance which connection data.
|
|
66
|
-
"""
|
|
67
|
-
return pulumi.get(self, "local_db_instance_id")
|
|
68
|
-
|
|
69
|
-
@local_db_instance_id.setter
|
|
70
|
-
def local_db_instance_id(self, value: pulumi.Input[str]):
|
|
71
|
-
pulumi.set(self, "local_db_instance_id", value)
|
|
72
|
-
|
|
73
|
-
@property
|
|
74
|
-
@pulumi.getter(name="managerUserName")
|
|
75
|
-
def manager_user_name(self) -> pulumi.Input[str]:
|
|
76
|
-
"""
|
|
77
|
-
The Management user name of the local instance.
|
|
78
|
-
"""
|
|
79
|
-
return pulumi.get(self, "manager_user_name")
|
|
80
|
-
|
|
81
|
-
@manager_user_name.setter
|
|
82
|
-
def manager_user_name(self, value: pulumi.Input[str]):
|
|
83
|
-
pulumi.set(self, "manager_user_name", value)
|
|
84
|
-
|
|
85
|
-
@property
|
|
86
|
-
@pulumi.getter(name="managerUserPassword")
|
|
87
|
-
def manager_user_password(self) -> pulumi.Input[str]:
|
|
88
|
-
"""
|
|
89
|
-
Password of the Manager user of the local instance
|
|
90
|
-
"""
|
|
91
|
-
return pulumi.get(self, "manager_user_password")
|
|
92
|
-
|
|
93
|
-
@manager_user_password.setter
|
|
94
|
-
def manager_user_password(self, value: pulumi.Input[str]):
|
|
95
|
-
pulumi.set(self, "manager_user_password", value)
|
|
96
|
-
|
|
97
|
-
@property
|
|
98
|
-
@pulumi.getter(name="remoteDatabase")
|
|
99
|
-
def remote_database(self) -> pulumi.Input[str]:
|
|
100
|
-
"""
|
|
101
|
-
The database of the remote instance which provide data.
|
|
102
|
-
"""
|
|
103
|
-
return pulumi.get(self, "remote_database")
|
|
104
|
-
|
|
105
|
-
@remote_database.setter
|
|
106
|
-
def remote_database(self, value: pulumi.Input[str]):
|
|
107
|
-
pulumi.set(self, "remote_database", value)
|
|
108
|
-
|
|
109
|
-
@property
|
|
110
|
-
@pulumi.getter(name="remoteDbInstanceId")
|
|
111
|
-
def remote_db_instance_id(self) -> pulumi.Input[str]:
|
|
112
|
-
"""
|
|
113
|
-
The instanceId of the remote instance which provide data.
|
|
114
|
-
"""
|
|
115
|
-
return pulumi.get(self, "remote_db_instance_id")
|
|
116
|
-
|
|
117
|
-
@remote_db_instance_id.setter
|
|
118
|
-
def remote_db_instance_id(self, value: pulumi.Input[str]):
|
|
119
|
-
pulumi.set(self, "remote_db_instance_id", value)
|
|
120
|
-
|
|
121
|
-
@property
|
|
122
|
-
@pulumi.getter(name="userName")
|
|
123
|
-
def user_name(self) -> pulumi.Input[str]:
|
|
124
|
-
"""
|
|
125
|
-
The user name used to connect to the remote instance
|
|
126
|
-
"""
|
|
127
|
-
return pulumi.get(self, "user_name")
|
|
128
|
-
|
|
129
|
-
@user_name.setter
|
|
130
|
-
def user_name(self, value: pulumi.Input[str]):
|
|
131
|
-
pulumi.set(self, "user_name", value)
|
|
132
|
-
|
|
133
|
-
@property
|
|
134
|
-
@pulumi.getter(name="userPassword")
|
|
135
|
-
def user_password(self) -> pulumi.Input[str]:
|
|
136
|
-
"""
|
|
137
|
-
The user password used to connect to the remote instance
|
|
138
|
-
"""
|
|
139
|
-
return pulumi.get(self, "user_password")
|
|
140
|
-
|
|
141
|
-
@user_password.setter
|
|
142
|
-
def user_password(self, value: pulumi.Input[str]):
|
|
143
|
-
pulumi.set(self, "user_password", value)
|
|
144
|
-
|
|
145
|
-
@property
|
|
146
|
-
@pulumi.getter(name="dataSourceName")
|
|
147
|
-
def data_source_name(self) -> Optional[pulumi.Input[str]]:
|
|
148
|
-
"""
|
|
149
|
-
Data Source Name
|
|
150
|
-
"""
|
|
151
|
-
return pulumi.get(self, "data_source_name")
|
|
152
|
-
|
|
153
|
-
@data_source_name.setter
|
|
154
|
-
def data_source_name(self, value: Optional[pulumi.Input[str]]):
|
|
155
|
-
pulumi.set(self, "data_source_name", value)
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
@pulumi.input_type
|
|
159
|
-
class _RemoteAdbDataSourceState:
|
|
160
|
-
def __init__(__self__, *,
|
|
161
|
-
data_source_name: Optional[pulumi.Input[str]] = None,
|
|
162
|
-
local_database: Optional[pulumi.Input[str]] = None,
|
|
163
|
-
local_db_instance_id: Optional[pulumi.Input[str]] = None,
|
|
164
|
-
manager_user_name: Optional[pulumi.Input[str]] = None,
|
|
165
|
-
manager_user_password: Optional[pulumi.Input[str]] = None,
|
|
166
|
-
remote_adb_data_source_id: Optional[pulumi.Input[int]] = None,
|
|
167
|
-
remote_database: Optional[pulumi.Input[str]] = None,
|
|
168
|
-
remote_db_instance_id: Optional[pulumi.Input[str]] = None,
|
|
169
|
-
status: Optional[pulumi.Input[str]] = None,
|
|
170
|
-
user_name: Optional[pulumi.Input[str]] = None,
|
|
171
|
-
user_password: Optional[pulumi.Input[str]] = None):
|
|
172
|
-
"""
|
|
173
|
-
Input properties used for looking up and filtering RemoteAdbDataSource resources.
|
|
174
|
-
:param pulumi.Input[str] data_source_name: Data Source Name
|
|
175
|
-
:param pulumi.Input[str] local_database: The database of the local instance which connection data.
|
|
176
|
-
:param pulumi.Input[str] local_db_instance_id: The instanceId of the local instance which connection data.
|
|
177
|
-
:param pulumi.Input[str] manager_user_name: The Management user name of the local instance.
|
|
178
|
-
:param pulumi.Input[str] manager_user_password: Password of the Manager user of the local instance
|
|
179
|
-
:param pulumi.Input[int] remote_adb_data_source_id: The first ID of the resource
|
|
180
|
-
:param pulumi.Input[str] remote_database: The database of the remote instance which provide data.
|
|
181
|
-
:param pulumi.Input[str] remote_db_instance_id: The instanceId of the remote instance which provide data.
|
|
182
|
-
:param pulumi.Input[str] status: The status of the resource
|
|
183
|
-
:param pulumi.Input[str] user_name: The user name used to connect to the remote instance
|
|
184
|
-
:param pulumi.Input[str] user_password: The user password used to connect to the remote instance
|
|
185
|
-
"""
|
|
186
|
-
if data_source_name is not None:
|
|
187
|
-
pulumi.set(__self__, "data_source_name", data_source_name)
|
|
188
|
-
if local_database is not None:
|
|
189
|
-
pulumi.set(__self__, "local_database", local_database)
|
|
190
|
-
if local_db_instance_id is not None:
|
|
191
|
-
pulumi.set(__self__, "local_db_instance_id", local_db_instance_id)
|
|
192
|
-
if manager_user_name is not None:
|
|
193
|
-
pulumi.set(__self__, "manager_user_name", manager_user_name)
|
|
194
|
-
if manager_user_password is not None:
|
|
195
|
-
pulumi.set(__self__, "manager_user_password", manager_user_password)
|
|
196
|
-
if remote_adb_data_source_id is not None:
|
|
197
|
-
pulumi.set(__self__, "remote_adb_data_source_id", remote_adb_data_source_id)
|
|
198
|
-
if remote_database is not None:
|
|
199
|
-
pulumi.set(__self__, "remote_database", remote_database)
|
|
200
|
-
if remote_db_instance_id is not None:
|
|
201
|
-
pulumi.set(__self__, "remote_db_instance_id", remote_db_instance_id)
|
|
202
|
-
if status is not None:
|
|
203
|
-
pulumi.set(__self__, "status", status)
|
|
204
|
-
if user_name is not None:
|
|
205
|
-
pulumi.set(__self__, "user_name", user_name)
|
|
206
|
-
if user_password is not None:
|
|
207
|
-
pulumi.set(__self__, "user_password", user_password)
|
|
208
|
-
|
|
209
|
-
@property
|
|
210
|
-
@pulumi.getter(name="dataSourceName")
|
|
211
|
-
def data_source_name(self) -> Optional[pulumi.Input[str]]:
|
|
212
|
-
"""
|
|
213
|
-
Data Source Name
|
|
214
|
-
"""
|
|
215
|
-
return pulumi.get(self, "data_source_name")
|
|
216
|
-
|
|
217
|
-
@data_source_name.setter
|
|
218
|
-
def data_source_name(self, value: Optional[pulumi.Input[str]]):
|
|
219
|
-
pulumi.set(self, "data_source_name", value)
|
|
220
|
-
|
|
221
|
-
@property
|
|
222
|
-
@pulumi.getter(name="localDatabase")
|
|
223
|
-
def local_database(self) -> Optional[pulumi.Input[str]]:
|
|
224
|
-
"""
|
|
225
|
-
The database of the local instance which connection data.
|
|
226
|
-
"""
|
|
227
|
-
return pulumi.get(self, "local_database")
|
|
228
|
-
|
|
229
|
-
@local_database.setter
|
|
230
|
-
def local_database(self, value: Optional[pulumi.Input[str]]):
|
|
231
|
-
pulumi.set(self, "local_database", value)
|
|
232
|
-
|
|
233
|
-
@property
|
|
234
|
-
@pulumi.getter(name="localDbInstanceId")
|
|
235
|
-
def local_db_instance_id(self) -> Optional[pulumi.Input[str]]:
|
|
236
|
-
"""
|
|
237
|
-
The instanceId of the local instance which connection data.
|
|
238
|
-
"""
|
|
239
|
-
return pulumi.get(self, "local_db_instance_id")
|
|
240
|
-
|
|
241
|
-
@local_db_instance_id.setter
|
|
242
|
-
def local_db_instance_id(self, value: Optional[pulumi.Input[str]]):
|
|
243
|
-
pulumi.set(self, "local_db_instance_id", value)
|
|
244
|
-
|
|
245
|
-
@property
|
|
246
|
-
@pulumi.getter(name="managerUserName")
|
|
247
|
-
def manager_user_name(self) -> Optional[pulumi.Input[str]]:
|
|
248
|
-
"""
|
|
249
|
-
The Management user name of the local instance.
|
|
250
|
-
"""
|
|
251
|
-
return pulumi.get(self, "manager_user_name")
|
|
252
|
-
|
|
253
|
-
@manager_user_name.setter
|
|
254
|
-
def manager_user_name(self, value: Optional[pulumi.Input[str]]):
|
|
255
|
-
pulumi.set(self, "manager_user_name", value)
|
|
256
|
-
|
|
257
|
-
@property
|
|
258
|
-
@pulumi.getter(name="managerUserPassword")
|
|
259
|
-
def manager_user_password(self) -> Optional[pulumi.Input[str]]:
|
|
260
|
-
"""
|
|
261
|
-
Password of the Manager user of the local instance
|
|
262
|
-
"""
|
|
263
|
-
return pulumi.get(self, "manager_user_password")
|
|
264
|
-
|
|
265
|
-
@manager_user_password.setter
|
|
266
|
-
def manager_user_password(self, value: Optional[pulumi.Input[str]]):
|
|
267
|
-
pulumi.set(self, "manager_user_password", value)
|
|
268
|
-
|
|
269
|
-
@property
|
|
270
|
-
@pulumi.getter(name="remoteAdbDataSourceId")
|
|
271
|
-
def remote_adb_data_source_id(self) -> Optional[pulumi.Input[int]]:
|
|
272
|
-
"""
|
|
273
|
-
The first ID of the resource
|
|
274
|
-
"""
|
|
275
|
-
return pulumi.get(self, "remote_adb_data_source_id")
|
|
276
|
-
|
|
277
|
-
@remote_adb_data_source_id.setter
|
|
278
|
-
def remote_adb_data_source_id(self, value: Optional[pulumi.Input[int]]):
|
|
279
|
-
pulumi.set(self, "remote_adb_data_source_id", value)
|
|
280
|
-
|
|
281
|
-
@property
|
|
282
|
-
@pulumi.getter(name="remoteDatabase")
|
|
283
|
-
def remote_database(self) -> Optional[pulumi.Input[str]]:
|
|
284
|
-
"""
|
|
285
|
-
The database of the remote instance which provide data.
|
|
286
|
-
"""
|
|
287
|
-
return pulumi.get(self, "remote_database")
|
|
288
|
-
|
|
289
|
-
@remote_database.setter
|
|
290
|
-
def remote_database(self, value: Optional[pulumi.Input[str]]):
|
|
291
|
-
pulumi.set(self, "remote_database", value)
|
|
292
|
-
|
|
293
|
-
@property
|
|
294
|
-
@pulumi.getter(name="remoteDbInstanceId")
|
|
295
|
-
def remote_db_instance_id(self) -> Optional[pulumi.Input[str]]:
|
|
296
|
-
"""
|
|
297
|
-
The instanceId of the remote instance which provide data.
|
|
298
|
-
"""
|
|
299
|
-
return pulumi.get(self, "remote_db_instance_id")
|
|
300
|
-
|
|
301
|
-
@remote_db_instance_id.setter
|
|
302
|
-
def remote_db_instance_id(self, value: Optional[pulumi.Input[str]]):
|
|
303
|
-
pulumi.set(self, "remote_db_instance_id", value)
|
|
304
|
-
|
|
305
|
-
@property
|
|
306
|
-
@pulumi.getter
|
|
307
|
-
def status(self) -> Optional[pulumi.Input[str]]:
|
|
308
|
-
"""
|
|
309
|
-
The status of the resource
|
|
310
|
-
"""
|
|
311
|
-
return pulumi.get(self, "status")
|
|
312
|
-
|
|
313
|
-
@status.setter
|
|
314
|
-
def status(self, value: Optional[pulumi.Input[str]]):
|
|
315
|
-
pulumi.set(self, "status", value)
|
|
316
|
-
|
|
317
|
-
@property
|
|
318
|
-
@pulumi.getter(name="userName")
|
|
319
|
-
def user_name(self) -> Optional[pulumi.Input[str]]:
|
|
320
|
-
"""
|
|
321
|
-
The user name used to connect to the remote instance
|
|
322
|
-
"""
|
|
323
|
-
return pulumi.get(self, "user_name")
|
|
324
|
-
|
|
325
|
-
@user_name.setter
|
|
326
|
-
def user_name(self, value: Optional[pulumi.Input[str]]):
|
|
327
|
-
pulumi.set(self, "user_name", value)
|
|
328
|
-
|
|
329
|
-
@property
|
|
330
|
-
@pulumi.getter(name="userPassword")
|
|
331
|
-
def user_password(self) -> Optional[pulumi.Input[str]]:
|
|
332
|
-
"""
|
|
333
|
-
The user password used to connect to the remote instance
|
|
334
|
-
"""
|
|
335
|
-
return pulumi.get(self, "user_password")
|
|
336
|
-
|
|
337
|
-
@user_password.setter
|
|
338
|
-
def user_password(self, value: Optional[pulumi.Input[str]]):
|
|
339
|
-
pulumi.set(self, "user_password", value)
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
class RemoteAdbDataSource(pulumi.CustomResource):
|
|
343
|
-
@overload
|
|
344
|
-
def __init__(__self__,
|
|
345
|
-
resource_name: str,
|
|
346
|
-
opts: Optional[pulumi.ResourceOptions] = None,
|
|
347
|
-
data_source_name: Optional[pulumi.Input[str]] = None,
|
|
348
|
-
local_database: Optional[pulumi.Input[str]] = None,
|
|
349
|
-
local_db_instance_id: Optional[pulumi.Input[str]] = None,
|
|
350
|
-
manager_user_name: Optional[pulumi.Input[str]] = None,
|
|
351
|
-
manager_user_password: Optional[pulumi.Input[str]] = None,
|
|
352
|
-
remote_database: Optional[pulumi.Input[str]] = None,
|
|
353
|
-
remote_db_instance_id: Optional[pulumi.Input[str]] = None,
|
|
354
|
-
user_name: Optional[pulumi.Input[str]] = None,
|
|
355
|
-
user_password: Optional[pulumi.Input[str]] = None,
|
|
356
|
-
__props__=None):
|
|
357
|
-
"""
|
|
358
|
-
Provides a GPDB Remote A D B Data Source resource.
|
|
359
|
-
|
|
360
|
-
RemoteADBDataSource is the data external table call method between greenplums, which will be used for data external table access between ADB-PG.
|
|
361
|
-
|
|
362
|
-
For information about GPDB Remote A D B Data Source and how to use it, see [What is Remote A D B Data Source](https://www.alibabacloud.com/help/en/).
|
|
363
|
-
|
|
364
|
-
> **NOTE:** Available since v1.227.0.
|
|
365
|
-
|
|
366
|
-
## Example Usage
|
|
367
|
-
|
|
368
|
-
Basic Usage
|
|
369
|
-
|
|
370
|
-
```python
|
|
371
|
-
import pulumi
|
|
372
|
-
import pulumi_alicloud as alicloud
|
|
373
|
-
|
|
374
|
-
config = pulumi.Config()
|
|
375
|
-
name = config.get("name")
|
|
376
|
-
if name is None:
|
|
377
|
-
name = "terraform-example"
|
|
378
|
-
default = alicloud.get_zones(available_resource_creation="VSwitch")
|
|
379
|
-
default4_mf0n_y = alicloud.vpc.Network("default4Mf0nY", cidr_block="192.168.0.0/16")
|
|
380
|
-
defaultw_sa_vpf = alicloud.vpc.Switch("defaultwSAVpf",
|
|
381
|
-
vpc_id=default4_mf0n_y.id,
|
|
382
|
-
zone_id="cn-beijing-h",
|
|
383
|
-
cidr_block="192.168.1.0/24")
|
|
384
|
-
default_et_ez_mf = alicloud.gpdb.Instance("defaultEtEzMF",
|
|
385
|
-
instance_spec="2C8G",
|
|
386
|
-
description=name,
|
|
387
|
-
seg_node_num=2,
|
|
388
|
-
seg_storage_type="cloud_essd",
|
|
389
|
-
instance_network_type="VPC",
|
|
390
|
-
db_instance_category="Basic",
|
|
391
|
-
payment_type="PayAsYouGo",
|
|
392
|
-
ssl_enabled=0,
|
|
393
|
-
engine_version="6.0",
|
|
394
|
-
zone_id="cn-beijing-h",
|
|
395
|
-
vswitch_id=defaultw_sa_vpf.id,
|
|
396
|
-
storage_size=50,
|
|
397
|
-
master_cu=4,
|
|
398
|
-
vpc_id=default4_mf0n_y.id,
|
|
399
|
-
db_instance_mode="StorageElastic",
|
|
400
|
-
engine="gpdb")
|
|
401
|
-
default_ey7t9t = alicloud.gpdb.Instance("defaultEY7t9t",
|
|
402
|
-
instance_spec="2C8G",
|
|
403
|
-
description=name,
|
|
404
|
-
seg_node_num=2,
|
|
405
|
-
seg_storage_type="cloud_essd",
|
|
406
|
-
instance_network_type="VPC",
|
|
407
|
-
db_instance_category="Basic",
|
|
408
|
-
payment_type="PayAsYouGo",
|
|
409
|
-
ssl_enabled=0,
|
|
410
|
-
engine_version="6.0",
|
|
411
|
-
zone_id="cn-beijing-h",
|
|
412
|
-
vswitch_id=defaultw_sa_vpf.id,
|
|
413
|
-
storage_size=50,
|
|
414
|
-
master_cu=4,
|
|
415
|
-
vpc_id=default4_mf0n_y.id,
|
|
416
|
-
db_instance_mode="StorageElastic",
|
|
417
|
-
engine="gpdb")
|
|
418
|
-
default26qp_eo = alicloud.gpdb.Account("default26qpEo",
|
|
419
|
-
account_description="example_001",
|
|
420
|
-
db_instance_id=default_et_ez_mf.id,
|
|
421
|
-
account_name="example_001",
|
|
422
|
-
account_password="example_001")
|
|
423
|
-
defaultw_xe_pof = alicloud.gpdb.Account("defaultwXePof",
|
|
424
|
-
account_description="example_001",
|
|
425
|
-
db_instance_id=default_ey7t9t.id,
|
|
426
|
-
account_name="example_001",
|
|
427
|
-
account_password="example_001")
|
|
428
|
-
default_remote_adb_data_source = alicloud.gpdb.RemoteAdbDataSource("default",
|
|
429
|
-
remote_database="example_001",
|
|
430
|
-
manager_user_name="example_001",
|
|
431
|
-
user_name="example_001",
|
|
432
|
-
remote_db_instance_id=defaultw_xe_pof.db_instance_id,
|
|
433
|
-
local_database="example_001",
|
|
434
|
-
data_source_name="myexample",
|
|
435
|
-
user_password="example_001",
|
|
436
|
-
manager_user_password="example_001",
|
|
437
|
-
local_db_instance_id=default_et_ez_mf.id)
|
|
438
|
-
```
|
|
439
|
-
|
|
440
|
-
## Import
|
|
441
|
-
|
|
442
|
-
GPDB Remote A D B Data Source can be imported using the id, e.g.
|
|
443
|
-
|
|
444
|
-
```sh
|
|
445
|
-
$ pulumi import alicloud:gpdb/remoteAdbDataSource:RemoteAdbDataSource example <local_db_instance_id>:<remote_adb_data_source_id>
|
|
446
|
-
```
|
|
447
|
-
|
|
448
|
-
:param str resource_name: The name of the resource.
|
|
449
|
-
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
450
|
-
:param pulumi.Input[str] data_source_name: Data Source Name
|
|
451
|
-
:param pulumi.Input[str] local_database: The database of the local instance which connection data.
|
|
452
|
-
:param pulumi.Input[str] local_db_instance_id: The instanceId of the local instance which connection data.
|
|
453
|
-
:param pulumi.Input[str] manager_user_name: The Management user name of the local instance.
|
|
454
|
-
:param pulumi.Input[str] manager_user_password: Password of the Manager user of the local instance
|
|
455
|
-
:param pulumi.Input[str] remote_database: The database of the remote instance which provide data.
|
|
456
|
-
:param pulumi.Input[str] remote_db_instance_id: The instanceId of the remote instance which provide data.
|
|
457
|
-
:param pulumi.Input[str] user_name: The user name used to connect to the remote instance
|
|
458
|
-
:param pulumi.Input[str] user_password: The user password used to connect to the remote instance
|
|
459
|
-
"""
|
|
460
|
-
...
|
|
461
|
-
@overload
|
|
462
|
-
def __init__(__self__,
|
|
463
|
-
resource_name: str,
|
|
464
|
-
args: RemoteAdbDataSourceArgs,
|
|
465
|
-
opts: Optional[pulumi.ResourceOptions] = None):
|
|
466
|
-
"""
|
|
467
|
-
Provides a GPDB Remote A D B Data Source resource.
|
|
468
|
-
|
|
469
|
-
RemoteADBDataSource is the data external table call method between greenplums, which will be used for data external table access between ADB-PG.
|
|
470
|
-
|
|
471
|
-
For information about GPDB Remote A D B Data Source and how to use it, see [What is Remote A D B Data Source](https://www.alibabacloud.com/help/en/).
|
|
472
|
-
|
|
473
|
-
> **NOTE:** Available since v1.227.0.
|
|
474
|
-
|
|
475
|
-
## Example Usage
|
|
476
|
-
|
|
477
|
-
Basic Usage
|
|
478
|
-
|
|
479
|
-
```python
|
|
480
|
-
import pulumi
|
|
481
|
-
import pulumi_alicloud as alicloud
|
|
482
|
-
|
|
483
|
-
config = pulumi.Config()
|
|
484
|
-
name = config.get("name")
|
|
485
|
-
if name is None:
|
|
486
|
-
name = "terraform-example"
|
|
487
|
-
default = alicloud.get_zones(available_resource_creation="VSwitch")
|
|
488
|
-
default4_mf0n_y = alicloud.vpc.Network("default4Mf0nY", cidr_block="192.168.0.0/16")
|
|
489
|
-
defaultw_sa_vpf = alicloud.vpc.Switch("defaultwSAVpf",
|
|
490
|
-
vpc_id=default4_mf0n_y.id,
|
|
491
|
-
zone_id="cn-beijing-h",
|
|
492
|
-
cidr_block="192.168.1.0/24")
|
|
493
|
-
default_et_ez_mf = alicloud.gpdb.Instance("defaultEtEzMF",
|
|
494
|
-
instance_spec="2C8G",
|
|
495
|
-
description=name,
|
|
496
|
-
seg_node_num=2,
|
|
497
|
-
seg_storage_type="cloud_essd",
|
|
498
|
-
instance_network_type="VPC",
|
|
499
|
-
db_instance_category="Basic",
|
|
500
|
-
payment_type="PayAsYouGo",
|
|
501
|
-
ssl_enabled=0,
|
|
502
|
-
engine_version="6.0",
|
|
503
|
-
zone_id="cn-beijing-h",
|
|
504
|
-
vswitch_id=defaultw_sa_vpf.id,
|
|
505
|
-
storage_size=50,
|
|
506
|
-
master_cu=4,
|
|
507
|
-
vpc_id=default4_mf0n_y.id,
|
|
508
|
-
db_instance_mode="StorageElastic",
|
|
509
|
-
engine="gpdb")
|
|
510
|
-
default_ey7t9t = alicloud.gpdb.Instance("defaultEY7t9t",
|
|
511
|
-
instance_spec="2C8G",
|
|
512
|
-
description=name,
|
|
513
|
-
seg_node_num=2,
|
|
514
|
-
seg_storage_type="cloud_essd",
|
|
515
|
-
instance_network_type="VPC",
|
|
516
|
-
db_instance_category="Basic",
|
|
517
|
-
payment_type="PayAsYouGo",
|
|
518
|
-
ssl_enabled=0,
|
|
519
|
-
engine_version="6.0",
|
|
520
|
-
zone_id="cn-beijing-h",
|
|
521
|
-
vswitch_id=defaultw_sa_vpf.id,
|
|
522
|
-
storage_size=50,
|
|
523
|
-
master_cu=4,
|
|
524
|
-
vpc_id=default4_mf0n_y.id,
|
|
525
|
-
db_instance_mode="StorageElastic",
|
|
526
|
-
engine="gpdb")
|
|
527
|
-
default26qp_eo = alicloud.gpdb.Account("default26qpEo",
|
|
528
|
-
account_description="example_001",
|
|
529
|
-
db_instance_id=default_et_ez_mf.id,
|
|
530
|
-
account_name="example_001",
|
|
531
|
-
account_password="example_001")
|
|
532
|
-
defaultw_xe_pof = alicloud.gpdb.Account("defaultwXePof",
|
|
533
|
-
account_description="example_001",
|
|
534
|
-
db_instance_id=default_ey7t9t.id,
|
|
535
|
-
account_name="example_001",
|
|
536
|
-
account_password="example_001")
|
|
537
|
-
default_remote_adb_data_source = alicloud.gpdb.RemoteAdbDataSource("default",
|
|
538
|
-
remote_database="example_001",
|
|
539
|
-
manager_user_name="example_001",
|
|
540
|
-
user_name="example_001",
|
|
541
|
-
remote_db_instance_id=defaultw_xe_pof.db_instance_id,
|
|
542
|
-
local_database="example_001",
|
|
543
|
-
data_source_name="myexample",
|
|
544
|
-
user_password="example_001",
|
|
545
|
-
manager_user_password="example_001",
|
|
546
|
-
local_db_instance_id=default_et_ez_mf.id)
|
|
547
|
-
```
|
|
548
|
-
|
|
549
|
-
## Import
|
|
550
|
-
|
|
551
|
-
GPDB Remote A D B Data Source can be imported using the id, e.g.
|
|
552
|
-
|
|
553
|
-
```sh
|
|
554
|
-
$ pulumi import alicloud:gpdb/remoteAdbDataSource:RemoteAdbDataSource example <local_db_instance_id>:<remote_adb_data_source_id>
|
|
555
|
-
```
|
|
556
|
-
|
|
557
|
-
:param str resource_name: The name of the resource.
|
|
558
|
-
:param RemoteAdbDataSourceArgs args: The arguments to use to populate this resource's properties.
|
|
559
|
-
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
560
|
-
"""
|
|
561
|
-
...
|
|
562
|
-
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
563
|
-
resource_args, opts = _utilities.get_resource_args_opts(RemoteAdbDataSourceArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
564
|
-
if resource_args is not None:
|
|
565
|
-
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
566
|
-
else:
|
|
567
|
-
__self__._internal_init(resource_name, *args, **kwargs)
|
|
568
|
-
|
|
569
|
-
def _internal_init(__self__,
|
|
570
|
-
resource_name: str,
|
|
571
|
-
opts: Optional[pulumi.ResourceOptions] = None,
|
|
572
|
-
data_source_name: Optional[pulumi.Input[str]] = None,
|
|
573
|
-
local_database: Optional[pulumi.Input[str]] = None,
|
|
574
|
-
local_db_instance_id: Optional[pulumi.Input[str]] = None,
|
|
575
|
-
manager_user_name: Optional[pulumi.Input[str]] = None,
|
|
576
|
-
manager_user_password: Optional[pulumi.Input[str]] = None,
|
|
577
|
-
remote_database: Optional[pulumi.Input[str]] = None,
|
|
578
|
-
remote_db_instance_id: Optional[pulumi.Input[str]] = None,
|
|
579
|
-
user_name: Optional[pulumi.Input[str]] = None,
|
|
580
|
-
user_password: Optional[pulumi.Input[str]] = None,
|
|
581
|
-
__props__=None):
|
|
582
|
-
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
583
|
-
if not isinstance(opts, pulumi.ResourceOptions):
|
|
584
|
-
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
585
|
-
if opts.id is None:
|
|
586
|
-
if __props__ is not None:
|
|
587
|
-
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
588
|
-
__props__ = RemoteAdbDataSourceArgs.__new__(RemoteAdbDataSourceArgs)
|
|
589
|
-
|
|
590
|
-
__props__.__dict__["data_source_name"] = data_source_name
|
|
591
|
-
if local_database is None and not opts.urn:
|
|
592
|
-
raise TypeError("Missing required property 'local_database'")
|
|
593
|
-
__props__.__dict__["local_database"] = local_database
|
|
594
|
-
if local_db_instance_id is None and not opts.urn:
|
|
595
|
-
raise TypeError("Missing required property 'local_db_instance_id'")
|
|
596
|
-
__props__.__dict__["local_db_instance_id"] = local_db_instance_id
|
|
597
|
-
if manager_user_name is None and not opts.urn:
|
|
598
|
-
raise TypeError("Missing required property 'manager_user_name'")
|
|
599
|
-
__props__.__dict__["manager_user_name"] = manager_user_name
|
|
600
|
-
if manager_user_password is None and not opts.urn:
|
|
601
|
-
raise TypeError("Missing required property 'manager_user_password'")
|
|
602
|
-
__props__.__dict__["manager_user_password"] = None if manager_user_password is None else pulumi.Output.secret(manager_user_password)
|
|
603
|
-
if remote_database is None and not opts.urn:
|
|
604
|
-
raise TypeError("Missing required property 'remote_database'")
|
|
605
|
-
__props__.__dict__["remote_database"] = remote_database
|
|
606
|
-
if remote_db_instance_id is None and not opts.urn:
|
|
607
|
-
raise TypeError("Missing required property 'remote_db_instance_id'")
|
|
608
|
-
__props__.__dict__["remote_db_instance_id"] = remote_db_instance_id
|
|
609
|
-
if user_name is None and not opts.urn:
|
|
610
|
-
raise TypeError("Missing required property 'user_name'")
|
|
611
|
-
__props__.__dict__["user_name"] = user_name
|
|
612
|
-
if user_password is None and not opts.urn:
|
|
613
|
-
raise TypeError("Missing required property 'user_password'")
|
|
614
|
-
__props__.__dict__["user_password"] = None if user_password is None else pulumi.Output.secret(user_password)
|
|
615
|
-
__props__.__dict__["remote_adb_data_source_id"] = None
|
|
616
|
-
__props__.__dict__["status"] = None
|
|
617
|
-
secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["managerUserPassword", "userPassword"])
|
|
618
|
-
opts = pulumi.ResourceOptions.merge(opts, secret_opts)
|
|
619
|
-
super(RemoteAdbDataSource, __self__).__init__(
|
|
620
|
-
'alicloud:gpdb/remoteAdbDataSource:RemoteAdbDataSource',
|
|
621
|
-
resource_name,
|
|
622
|
-
__props__,
|
|
623
|
-
opts)
|
|
624
|
-
|
|
625
|
-
@staticmethod
|
|
626
|
-
def get(resource_name: str,
|
|
627
|
-
id: pulumi.Input[str],
|
|
628
|
-
opts: Optional[pulumi.ResourceOptions] = None,
|
|
629
|
-
data_source_name: Optional[pulumi.Input[str]] = None,
|
|
630
|
-
local_database: Optional[pulumi.Input[str]] = None,
|
|
631
|
-
local_db_instance_id: Optional[pulumi.Input[str]] = None,
|
|
632
|
-
manager_user_name: Optional[pulumi.Input[str]] = None,
|
|
633
|
-
manager_user_password: Optional[pulumi.Input[str]] = None,
|
|
634
|
-
remote_adb_data_source_id: Optional[pulumi.Input[int]] = None,
|
|
635
|
-
remote_database: Optional[pulumi.Input[str]] = None,
|
|
636
|
-
remote_db_instance_id: Optional[pulumi.Input[str]] = None,
|
|
637
|
-
status: Optional[pulumi.Input[str]] = None,
|
|
638
|
-
user_name: Optional[pulumi.Input[str]] = None,
|
|
639
|
-
user_password: Optional[pulumi.Input[str]] = None) -> 'RemoteAdbDataSource':
|
|
640
|
-
"""
|
|
641
|
-
Get an existing RemoteAdbDataSource resource's state with the given name, id, and optional extra
|
|
642
|
-
properties used to qualify the lookup.
|
|
643
|
-
|
|
644
|
-
:param str resource_name: The unique name of the resulting resource.
|
|
645
|
-
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
646
|
-
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
647
|
-
:param pulumi.Input[str] data_source_name: Data Source Name
|
|
648
|
-
:param pulumi.Input[str] local_database: The database of the local instance which connection data.
|
|
649
|
-
:param pulumi.Input[str] local_db_instance_id: The instanceId of the local instance which connection data.
|
|
650
|
-
:param pulumi.Input[str] manager_user_name: The Management user name of the local instance.
|
|
651
|
-
:param pulumi.Input[str] manager_user_password: Password of the Manager user of the local instance
|
|
652
|
-
:param pulumi.Input[int] remote_adb_data_source_id: The first ID of the resource
|
|
653
|
-
:param pulumi.Input[str] remote_database: The database of the remote instance which provide data.
|
|
654
|
-
:param pulumi.Input[str] remote_db_instance_id: The instanceId of the remote instance which provide data.
|
|
655
|
-
:param pulumi.Input[str] status: The status of the resource
|
|
656
|
-
:param pulumi.Input[str] user_name: The user name used to connect to the remote instance
|
|
657
|
-
:param pulumi.Input[str] user_password: The user password used to connect to the remote instance
|
|
658
|
-
"""
|
|
659
|
-
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
660
|
-
|
|
661
|
-
__props__ = _RemoteAdbDataSourceState.__new__(_RemoteAdbDataSourceState)
|
|
662
|
-
|
|
663
|
-
__props__.__dict__["data_source_name"] = data_source_name
|
|
664
|
-
__props__.__dict__["local_database"] = local_database
|
|
665
|
-
__props__.__dict__["local_db_instance_id"] = local_db_instance_id
|
|
666
|
-
__props__.__dict__["manager_user_name"] = manager_user_name
|
|
667
|
-
__props__.__dict__["manager_user_password"] = manager_user_password
|
|
668
|
-
__props__.__dict__["remote_adb_data_source_id"] = remote_adb_data_source_id
|
|
669
|
-
__props__.__dict__["remote_database"] = remote_database
|
|
670
|
-
__props__.__dict__["remote_db_instance_id"] = remote_db_instance_id
|
|
671
|
-
__props__.__dict__["status"] = status
|
|
672
|
-
__props__.__dict__["user_name"] = user_name
|
|
673
|
-
__props__.__dict__["user_password"] = user_password
|
|
674
|
-
return RemoteAdbDataSource(resource_name, opts=opts, __props__=__props__)
|
|
675
|
-
|
|
676
|
-
@property
|
|
677
|
-
@pulumi.getter(name="dataSourceName")
|
|
678
|
-
def data_source_name(self) -> pulumi.Output[Optional[str]]:
|
|
679
|
-
"""
|
|
680
|
-
Data Source Name
|
|
681
|
-
"""
|
|
682
|
-
return pulumi.get(self, "data_source_name")
|
|
683
|
-
|
|
684
|
-
@property
|
|
685
|
-
@pulumi.getter(name="localDatabase")
|
|
686
|
-
def local_database(self) -> pulumi.Output[str]:
|
|
687
|
-
"""
|
|
688
|
-
The database of the local instance which connection data.
|
|
689
|
-
"""
|
|
690
|
-
return pulumi.get(self, "local_database")
|
|
691
|
-
|
|
692
|
-
@property
|
|
693
|
-
@pulumi.getter(name="localDbInstanceId")
|
|
694
|
-
def local_db_instance_id(self) -> pulumi.Output[str]:
|
|
695
|
-
"""
|
|
696
|
-
The instanceId of the local instance which connection data.
|
|
697
|
-
"""
|
|
698
|
-
return pulumi.get(self, "local_db_instance_id")
|
|
699
|
-
|
|
700
|
-
@property
|
|
701
|
-
@pulumi.getter(name="managerUserName")
|
|
702
|
-
def manager_user_name(self) -> pulumi.Output[str]:
|
|
703
|
-
"""
|
|
704
|
-
The Management user name of the local instance.
|
|
705
|
-
"""
|
|
706
|
-
return pulumi.get(self, "manager_user_name")
|
|
707
|
-
|
|
708
|
-
@property
|
|
709
|
-
@pulumi.getter(name="managerUserPassword")
|
|
710
|
-
def manager_user_password(self) -> pulumi.Output[str]:
|
|
711
|
-
"""
|
|
712
|
-
Password of the Manager user of the local instance
|
|
713
|
-
"""
|
|
714
|
-
return pulumi.get(self, "manager_user_password")
|
|
715
|
-
|
|
716
|
-
@property
|
|
717
|
-
@pulumi.getter(name="remoteAdbDataSourceId")
|
|
718
|
-
def remote_adb_data_source_id(self) -> pulumi.Output[int]:
|
|
719
|
-
"""
|
|
720
|
-
The first ID of the resource
|
|
721
|
-
"""
|
|
722
|
-
return pulumi.get(self, "remote_adb_data_source_id")
|
|
723
|
-
|
|
724
|
-
@property
|
|
725
|
-
@pulumi.getter(name="remoteDatabase")
|
|
726
|
-
def remote_database(self) -> pulumi.Output[str]:
|
|
727
|
-
"""
|
|
728
|
-
The database of the remote instance which provide data.
|
|
729
|
-
"""
|
|
730
|
-
return pulumi.get(self, "remote_database")
|
|
731
|
-
|
|
732
|
-
@property
|
|
733
|
-
@pulumi.getter(name="remoteDbInstanceId")
|
|
734
|
-
def remote_db_instance_id(self) -> pulumi.Output[str]:
|
|
735
|
-
"""
|
|
736
|
-
The instanceId of the remote instance which provide data.
|
|
737
|
-
"""
|
|
738
|
-
return pulumi.get(self, "remote_db_instance_id")
|
|
739
|
-
|
|
740
|
-
@property
|
|
741
|
-
@pulumi.getter
|
|
742
|
-
def status(self) -> pulumi.Output[str]:
|
|
743
|
-
"""
|
|
744
|
-
The status of the resource
|
|
745
|
-
"""
|
|
746
|
-
return pulumi.get(self, "status")
|
|
747
|
-
|
|
748
|
-
@property
|
|
749
|
-
@pulumi.getter(name="userName")
|
|
750
|
-
def user_name(self) -> pulumi.Output[str]:
|
|
751
|
-
"""
|
|
752
|
-
The user name used to connect to the remote instance
|
|
753
|
-
"""
|
|
754
|
-
return pulumi.get(self, "user_name")
|
|
755
|
-
|
|
756
|
-
@property
|
|
757
|
-
@pulumi.getter(name="userPassword")
|
|
758
|
-
def user_password(self) -> pulumi.Output[str]:
|
|
759
|
-
"""
|
|
760
|
-
The user password used to connect to the remote instance
|
|
761
|
-
"""
|
|
762
|
-
return pulumi.get(self, "user_password")
|
|
763
|
-
|