pulumi-alicloud 3.63.0a1727424957__py3-none-any.whl → 3.63.0a1727705137__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 +24 -0
- pulumi_alicloud/alb/acl.py +18 -19
- pulumi_alicloud/alb/health_check_template.py +96 -88
- pulumi_alicloud/cms/_inputs.py +6 -6
- pulumi_alicloud/cms/outputs.py +6 -6
- pulumi_alicloud/ddos/_inputs.py +8 -9
- pulumi_alicloud/ddos/domain_resource.py +446 -90
- pulumi_alicloud/ddos/outputs.py +7 -8
- pulumi_alicloud/eci/container_group.py +47 -0
- pulumi_alicloud/ecs/ecs_snapshot.py +199 -77
- pulumi_alicloud/ecs/snapshot.py +26 -8
- pulumi_alicloud/ess/__init__.py +1 -0
- pulumi_alicloud/ess/alarm.py +47 -0
- pulumi_alicloud/ess/server_group_attachment.py +552 -0
- pulumi_alicloud/ga/_inputs.py +23 -5
- pulumi_alicloud/ga/outputs.py +21 -5
- pulumi_alicloud/governance/account.py +61 -0
- pulumi_alicloud/gpdb/__init__.py +4 -0
- pulumi_alicloud/gpdb/_inputs.py +361 -3
- pulumi_alicloud/gpdb/db_instance_ip_array.py +533 -0
- pulumi_alicloud/gpdb/get_data_backups.py +288 -0
- pulumi_alicloud/gpdb/get_log_backups.py +225 -0
- pulumi_alicloud/gpdb/instance.py +47 -0
- pulumi_alicloud/gpdb/outputs.py +597 -4
- pulumi_alicloud/gpdb/streaming_job.py +1568 -0
- pulumi_alicloud/nlb/load_balancer.py +116 -0
- pulumi_alicloud/oos/get_secret_parameters.py +111 -9
- pulumi_alicloud/oos/outputs.py +22 -11
- pulumi_alicloud/pulumi-plugin.json +1 -1
- pulumi_alicloud/rds/instance.py +21 -21
- pulumi_alicloud/rocketmq/_inputs.py +79 -22
- pulumi_alicloud/rocketmq/outputs.py +85 -21
- pulumi_alicloud/rocketmq/rocket_mq_instance.py +307 -113
- pulumi_alicloud/vpc/peer_connection.py +127 -59
- pulumi_alicloud/vpc/peer_connection_accepter.py +263 -42
- pulumi_alicloud/vpc/route_entry.py +232 -210
- {pulumi_alicloud-3.63.0a1727424957.dist-info → pulumi_alicloud-3.63.0a1727705137.dist-info}/METADATA +1 -1
- {pulumi_alicloud-3.63.0a1727424957.dist-info → pulumi_alicloud-3.63.0a1727705137.dist-info}/RECORD +40 -35
- {pulumi_alicloud-3.63.0a1727424957.dist-info → pulumi_alicloud-3.63.0a1727705137.dist-info}/WHEEL +0 -0
- {pulumi_alicloud-3.63.0a1727424957.dist-info → pulumi_alicloud-3.63.0a1727705137.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,533 @@
|
|
|
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__ = ['DbInstanceIpArrayArgs', 'DbInstanceIpArray']
|
|
13
|
+
|
|
14
|
+
@pulumi.input_type
|
|
15
|
+
class DbInstanceIpArrayArgs:
|
|
16
|
+
def __init__(__self__, *,
|
|
17
|
+
db_instance_id: pulumi.Input[str],
|
|
18
|
+
db_instance_ip_array_name: pulumi.Input[str],
|
|
19
|
+
security_ip_lists: pulumi.Input[Sequence[pulumi.Input[str]]],
|
|
20
|
+
db_instance_ip_array_attribute: Optional[pulumi.Input[str]] = None,
|
|
21
|
+
modify_mode: Optional[pulumi.Input[str]] = None):
|
|
22
|
+
"""
|
|
23
|
+
The set of arguments for constructing a DbInstanceIpArray resource.
|
|
24
|
+
:param pulumi.Input[str] db_instance_id: The instance ID.
|
|
25
|
+
|
|
26
|
+
> **NOTE:** You can call the [DescribeDBInstances](https://www.alibabacloud.com/help/en/doc-detail/86911.html) operation to query details about all AnalyticDB for PostgreSQL instances within a region, including instance IDs.
|
|
27
|
+
:param pulumi.Input[str] db_instance_ip_array_name: The name of the IP address whitelist. If you do not specify this parameter, the default whitelist is queried.
|
|
28
|
+
|
|
29
|
+
> **NOTE:** Each instance supports up to 50 IP address whitelists.
|
|
30
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] security_ip_lists: The IP address whitelist contains a maximum of 1000 IP addresses separated by commas in the following three formats:
|
|
31
|
+
- 0.0.0.0/0
|
|
32
|
+
- 10.23.12.24(IP)
|
|
33
|
+
- 10.23.12.24/24(CIDR mode, Classless Inter-Domain Routing, '/24' indicates the length of the prefix in the address, and the range is '[1,32]')
|
|
34
|
+
:param pulumi.Input[str] db_instance_ip_array_attribute: The default is empty. To distinguish between different attribute values, the console does not display groups with the 'hidden' attribute.
|
|
35
|
+
:param pulumi.Input[str] modify_mode: The method of modification. Valid values:
|
|
36
|
+
|
|
37
|
+
- `Cover`: overwrites the whitelist.
|
|
38
|
+
- `Append`: appends data to the whitelist.
|
|
39
|
+
- `Delete`: deletes the whitelist.
|
|
40
|
+
"""
|
|
41
|
+
pulumi.set(__self__, "db_instance_id", db_instance_id)
|
|
42
|
+
pulumi.set(__self__, "db_instance_ip_array_name", db_instance_ip_array_name)
|
|
43
|
+
pulumi.set(__self__, "security_ip_lists", security_ip_lists)
|
|
44
|
+
if db_instance_ip_array_attribute is not None:
|
|
45
|
+
pulumi.set(__self__, "db_instance_ip_array_attribute", db_instance_ip_array_attribute)
|
|
46
|
+
if modify_mode is not None:
|
|
47
|
+
pulumi.set(__self__, "modify_mode", modify_mode)
|
|
48
|
+
|
|
49
|
+
@property
|
|
50
|
+
@pulumi.getter(name="dbInstanceId")
|
|
51
|
+
def db_instance_id(self) -> pulumi.Input[str]:
|
|
52
|
+
"""
|
|
53
|
+
The instance ID.
|
|
54
|
+
|
|
55
|
+
> **NOTE:** You can call the [DescribeDBInstances](https://www.alibabacloud.com/help/en/doc-detail/86911.html) operation to query details about all AnalyticDB for PostgreSQL instances within a region, including instance IDs.
|
|
56
|
+
"""
|
|
57
|
+
return pulumi.get(self, "db_instance_id")
|
|
58
|
+
|
|
59
|
+
@db_instance_id.setter
|
|
60
|
+
def db_instance_id(self, value: pulumi.Input[str]):
|
|
61
|
+
pulumi.set(self, "db_instance_id", value)
|
|
62
|
+
|
|
63
|
+
@property
|
|
64
|
+
@pulumi.getter(name="dbInstanceIpArrayName")
|
|
65
|
+
def db_instance_ip_array_name(self) -> pulumi.Input[str]:
|
|
66
|
+
"""
|
|
67
|
+
The name of the IP address whitelist. If you do not specify this parameter, the default whitelist is queried.
|
|
68
|
+
|
|
69
|
+
> **NOTE:** Each instance supports up to 50 IP address whitelists.
|
|
70
|
+
"""
|
|
71
|
+
return pulumi.get(self, "db_instance_ip_array_name")
|
|
72
|
+
|
|
73
|
+
@db_instance_ip_array_name.setter
|
|
74
|
+
def db_instance_ip_array_name(self, value: pulumi.Input[str]):
|
|
75
|
+
pulumi.set(self, "db_instance_ip_array_name", value)
|
|
76
|
+
|
|
77
|
+
@property
|
|
78
|
+
@pulumi.getter(name="securityIpLists")
|
|
79
|
+
def security_ip_lists(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
|
|
80
|
+
"""
|
|
81
|
+
The IP address whitelist contains a maximum of 1000 IP addresses separated by commas in the following three formats:
|
|
82
|
+
- 0.0.0.0/0
|
|
83
|
+
- 10.23.12.24(IP)
|
|
84
|
+
- 10.23.12.24/24(CIDR mode, Classless Inter-Domain Routing, '/24' indicates the length of the prefix in the address, and the range is '[1,32]')
|
|
85
|
+
"""
|
|
86
|
+
return pulumi.get(self, "security_ip_lists")
|
|
87
|
+
|
|
88
|
+
@security_ip_lists.setter
|
|
89
|
+
def security_ip_lists(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]):
|
|
90
|
+
pulumi.set(self, "security_ip_lists", value)
|
|
91
|
+
|
|
92
|
+
@property
|
|
93
|
+
@pulumi.getter(name="dbInstanceIpArrayAttribute")
|
|
94
|
+
def db_instance_ip_array_attribute(self) -> Optional[pulumi.Input[str]]:
|
|
95
|
+
"""
|
|
96
|
+
The default is empty. To distinguish between different attribute values, the console does not display groups with the 'hidden' attribute.
|
|
97
|
+
"""
|
|
98
|
+
return pulumi.get(self, "db_instance_ip_array_attribute")
|
|
99
|
+
|
|
100
|
+
@db_instance_ip_array_attribute.setter
|
|
101
|
+
def db_instance_ip_array_attribute(self, value: Optional[pulumi.Input[str]]):
|
|
102
|
+
pulumi.set(self, "db_instance_ip_array_attribute", value)
|
|
103
|
+
|
|
104
|
+
@property
|
|
105
|
+
@pulumi.getter(name="modifyMode")
|
|
106
|
+
def modify_mode(self) -> Optional[pulumi.Input[str]]:
|
|
107
|
+
"""
|
|
108
|
+
The method of modification. Valid values:
|
|
109
|
+
|
|
110
|
+
- `Cover`: overwrites the whitelist.
|
|
111
|
+
- `Append`: appends data to the whitelist.
|
|
112
|
+
- `Delete`: deletes the whitelist.
|
|
113
|
+
"""
|
|
114
|
+
return pulumi.get(self, "modify_mode")
|
|
115
|
+
|
|
116
|
+
@modify_mode.setter
|
|
117
|
+
def modify_mode(self, value: Optional[pulumi.Input[str]]):
|
|
118
|
+
pulumi.set(self, "modify_mode", value)
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
@pulumi.input_type
|
|
122
|
+
class _DbInstanceIpArrayState:
|
|
123
|
+
def __init__(__self__, *,
|
|
124
|
+
db_instance_id: Optional[pulumi.Input[str]] = None,
|
|
125
|
+
db_instance_ip_array_attribute: Optional[pulumi.Input[str]] = None,
|
|
126
|
+
db_instance_ip_array_name: Optional[pulumi.Input[str]] = None,
|
|
127
|
+
modify_mode: Optional[pulumi.Input[str]] = None,
|
|
128
|
+
security_ip_lists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
|
|
129
|
+
"""
|
|
130
|
+
Input properties used for looking up and filtering DbInstanceIpArray resources.
|
|
131
|
+
:param pulumi.Input[str] db_instance_id: The instance ID.
|
|
132
|
+
|
|
133
|
+
> **NOTE:** You can call the [DescribeDBInstances](https://www.alibabacloud.com/help/en/doc-detail/86911.html) operation to query details about all AnalyticDB for PostgreSQL instances within a region, including instance IDs.
|
|
134
|
+
:param pulumi.Input[str] db_instance_ip_array_attribute: The default is empty. To distinguish between different attribute values, the console does not display groups with the 'hidden' attribute.
|
|
135
|
+
:param pulumi.Input[str] db_instance_ip_array_name: The name of the IP address whitelist. If you do not specify this parameter, the default whitelist is queried.
|
|
136
|
+
|
|
137
|
+
> **NOTE:** Each instance supports up to 50 IP address whitelists.
|
|
138
|
+
:param pulumi.Input[str] modify_mode: The method of modification. Valid values:
|
|
139
|
+
|
|
140
|
+
- `Cover`: overwrites the whitelist.
|
|
141
|
+
- `Append`: appends data to the whitelist.
|
|
142
|
+
- `Delete`: deletes the whitelist.
|
|
143
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] security_ip_lists: The IP address whitelist contains a maximum of 1000 IP addresses separated by commas in the following three formats:
|
|
144
|
+
- 0.0.0.0/0
|
|
145
|
+
- 10.23.12.24(IP)
|
|
146
|
+
- 10.23.12.24/24(CIDR mode, Classless Inter-Domain Routing, '/24' indicates the length of the prefix in the address, and the range is '[1,32]')
|
|
147
|
+
"""
|
|
148
|
+
if db_instance_id is not None:
|
|
149
|
+
pulumi.set(__self__, "db_instance_id", db_instance_id)
|
|
150
|
+
if db_instance_ip_array_attribute is not None:
|
|
151
|
+
pulumi.set(__self__, "db_instance_ip_array_attribute", db_instance_ip_array_attribute)
|
|
152
|
+
if db_instance_ip_array_name is not None:
|
|
153
|
+
pulumi.set(__self__, "db_instance_ip_array_name", db_instance_ip_array_name)
|
|
154
|
+
if modify_mode is not None:
|
|
155
|
+
pulumi.set(__self__, "modify_mode", modify_mode)
|
|
156
|
+
if security_ip_lists is not None:
|
|
157
|
+
pulumi.set(__self__, "security_ip_lists", security_ip_lists)
|
|
158
|
+
|
|
159
|
+
@property
|
|
160
|
+
@pulumi.getter(name="dbInstanceId")
|
|
161
|
+
def db_instance_id(self) -> Optional[pulumi.Input[str]]:
|
|
162
|
+
"""
|
|
163
|
+
The instance ID.
|
|
164
|
+
|
|
165
|
+
> **NOTE:** You can call the [DescribeDBInstances](https://www.alibabacloud.com/help/en/doc-detail/86911.html) operation to query details about all AnalyticDB for PostgreSQL instances within a region, including instance IDs.
|
|
166
|
+
"""
|
|
167
|
+
return pulumi.get(self, "db_instance_id")
|
|
168
|
+
|
|
169
|
+
@db_instance_id.setter
|
|
170
|
+
def db_instance_id(self, value: Optional[pulumi.Input[str]]):
|
|
171
|
+
pulumi.set(self, "db_instance_id", value)
|
|
172
|
+
|
|
173
|
+
@property
|
|
174
|
+
@pulumi.getter(name="dbInstanceIpArrayAttribute")
|
|
175
|
+
def db_instance_ip_array_attribute(self) -> Optional[pulumi.Input[str]]:
|
|
176
|
+
"""
|
|
177
|
+
The default is empty. To distinguish between different attribute values, the console does not display groups with the 'hidden' attribute.
|
|
178
|
+
"""
|
|
179
|
+
return pulumi.get(self, "db_instance_ip_array_attribute")
|
|
180
|
+
|
|
181
|
+
@db_instance_ip_array_attribute.setter
|
|
182
|
+
def db_instance_ip_array_attribute(self, value: Optional[pulumi.Input[str]]):
|
|
183
|
+
pulumi.set(self, "db_instance_ip_array_attribute", value)
|
|
184
|
+
|
|
185
|
+
@property
|
|
186
|
+
@pulumi.getter(name="dbInstanceIpArrayName")
|
|
187
|
+
def db_instance_ip_array_name(self) -> Optional[pulumi.Input[str]]:
|
|
188
|
+
"""
|
|
189
|
+
The name of the IP address whitelist. If you do not specify this parameter, the default whitelist is queried.
|
|
190
|
+
|
|
191
|
+
> **NOTE:** Each instance supports up to 50 IP address whitelists.
|
|
192
|
+
"""
|
|
193
|
+
return pulumi.get(self, "db_instance_ip_array_name")
|
|
194
|
+
|
|
195
|
+
@db_instance_ip_array_name.setter
|
|
196
|
+
def db_instance_ip_array_name(self, value: Optional[pulumi.Input[str]]):
|
|
197
|
+
pulumi.set(self, "db_instance_ip_array_name", value)
|
|
198
|
+
|
|
199
|
+
@property
|
|
200
|
+
@pulumi.getter(name="modifyMode")
|
|
201
|
+
def modify_mode(self) -> Optional[pulumi.Input[str]]:
|
|
202
|
+
"""
|
|
203
|
+
The method of modification. Valid values:
|
|
204
|
+
|
|
205
|
+
- `Cover`: overwrites the whitelist.
|
|
206
|
+
- `Append`: appends data to the whitelist.
|
|
207
|
+
- `Delete`: deletes the whitelist.
|
|
208
|
+
"""
|
|
209
|
+
return pulumi.get(self, "modify_mode")
|
|
210
|
+
|
|
211
|
+
@modify_mode.setter
|
|
212
|
+
def modify_mode(self, value: Optional[pulumi.Input[str]]):
|
|
213
|
+
pulumi.set(self, "modify_mode", value)
|
|
214
|
+
|
|
215
|
+
@property
|
|
216
|
+
@pulumi.getter(name="securityIpLists")
|
|
217
|
+
def security_ip_lists(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
218
|
+
"""
|
|
219
|
+
The IP address whitelist contains a maximum of 1000 IP addresses separated by commas in the following three formats:
|
|
220
|
+
- 0.0.0.0/0
|
|
221
|
+
- 10.23.12.24(IP)
|
|
222
|
+
- 10.23.12.24/24(CIDR mode, Classless Inter-Domain Routing, '/24' indicates the length of the prefix in the address, and the range is '[1,32]')
|
|
223
|
+
"""
|
|
224
|
+
return pulumi.get(self, "security_ip_lists")
|
|
225
|
+
|
|
226
|
+
@security_ip_lists.setter
|
|
227
|
+
def security_ip_lists(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
228
|
+
pulumi.set(self, "security_ip_lists", value)
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
class DbInstanceIpArray(pulumi.CustomResource):
|
|
232
|
+
@overload
|
|
233
|
+
def __init__(__self__,
|
|
234
|
+
resource_name: str,
|
|
235
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
236
|
+
db_instance_id: Optional[pulumi.Input[str]] = None,
|
|
237
|
+
db_instance_ip_array_attribute: Optional[pulumi.Input[str]] = None,
|
|
238
|
+
db_instance_ip_array_name: Optional[pulumi.Input[str]] = None,
|
|
239
|
+
modify_mode: Optional[pulumi.Input[str]] = None,
|
|
240
|
+
security_ip_lists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
241
|
+
__props__=None):
|
|
242
|
+
"""
|
|
243
|
+
Provides a GPDB DB Instance IP Array resource.
|
|
244
|
+
|
|
245
|
+
Whitelist IP Group.
|
|
246
|
+
|
|
247
|
+
For information about GPDB DB Instance IP Array and how to use it, see [What is DB Instance IP Array](https://www.alibabacloud.com/help/en/).
|
|
248
|
+
|
|
249
|
+
> **NOTE:** Available since v1.231.0.
|
|
250
|
+
|
|
251
|
+
## Example Usage
|
|
252
|
+
|
|
253
|
+
Basic Usage
|
|
254
|
+
|
|
255
|
+
```python
|
|
256
|
+
import pulumi
|
|
257
|
+
import pulumi_alicloud as alicloud
|
|
258
|
+
|
|
259
|
+
config = pulumi.Config()
|
|
260
|
+
name = config.get("name")
|
|
261
|
+
if name is None:
|
|
262
|
+
name = "terraform-example"
|
|
263
|
+
default = alicloud.get_zones(available_resource_creation="VSwitch")
|
|
264
|
+
default_np_l_ra1 = alicloud.vpc.Network("defaultNpLRa1", cidr_block="192.168.0.0/16")
|
|
265
|
+
defaultw_la5v4 = alicloud.vpc.Switch("defaultwLA5v4",
|
|
266
|
+
vpc_id=default_np_l_ra1.id,
|
|
267
|
+
zone_id="cn-beijing-h",
|
|
268
|
+
cidr_block="192.168.1.0/24")
|
|
269
|
+
default_h_kd_ds3 = alicloud.gpdb.Instance("defaultHKdDs3",
|
|
270
|
+
instance_spec="2C8G",
|
|
271
|
+
seg_node_num=2,
|
|
272
|
+
seg_storage_type="cloud_essd",
|
|
273
|
+
instance_network_type="VPC",
|
|
274
|
+
db_instance_category="Basic",
|
|
275
|
+
payment_type="PayAsYouGo",
|
|
276
|
+
ssl_enabled=0,
|
|
277
|
+
engine_version="6.0",
|
|
278
|
+
zone_id="cn-beijing-h",
|
|
279
|
+
vswitch_id=defaultw_la5v4.id,
|
|
280
|
+
storage_size=50,
|
|
281
|
+
master_cu=4,
|
|
282
|
+
vpc_id=default_np_l_ra1.id,
|
|
283
|
+
db_instance_mode="StorageElastic",
|
|
284
|
+
engine="gpdb",
|
|
285
|
+
description=name)
|
|
286
|
+
default_db_instance_ip_array = alicloud.gpdb.DbInstanceIpArray("default",
|
|
287
|
+
db_instance_ip_array_attribute="taffyFish",
|
|
288
|
+
security_ip_lists=[
|
|
289
|
+
"12.34.56.78",
|
|
290
|
+
"11.45.14.0",
|
|
291
|
+
"19.19.81.0",
|
|
292
|
+
],
|
|
293
|
+
db_instance_ip_array_name="taffy",
|
|
294
|
+
db_instance_id=default_h_kd_ds3.id)
|
|
295
|
+
```
|
|
296
|
+
|
|
297
|
+
## Import
|
|
298
|
+
|
|
299
|
+
GPDB DB Instance IP Array can be imported using the id, e.g.
|
|
300
|
+
|
|
301
|
+
```sh
|
|
302
|
+
$ pulumi import alicloud:gpdb/dbInstanceIpArray:DbInstanceIpArray example <db_instance_id>:<db_instance_ip_array_name>
|
|
303
|
+
```
|
|
304
|
+
|
|
305
|
+
:param str resource_name: The name of the resource.
|
|
306
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
307
|
+
:param pulumi.Input[str] db_instance_id: The instance ID.
|
|
308
|
+
|
|
309
|
+
> **NOTE:** You can call the [DescribeDBInstances](https://www.alibabacloud.com/help/en/doc-detail/86911.html) operation to query details about all AnalyticDB for PostgreSQL instances within a region, including instance IDs.
|
|
310
|
+
:param pulumi.Input[str] db_instance_ip_array_attribute: The default is empty. To distinguish between different attribute values, the console does not display groups with the 'hidden' attribute.
|
|
311
|
+
:param pulumi.Input[str] db_instance_ip_array_name: The name of the IP address whitelist. If you do not specify this parameter, the default whitelist is queried.
|
|
312
|
+
|
|
313
|
+
> **NOTE:** Each instance supports up to 50 IP address whitelists.
|
|
314
|
+
:param pulumi.Input[str] modify_mode: The method of modification. Valid values:
|
|
315
|
+
|
|
316
|
+
- `Cover`: overwrites the whitelist.
|
|
317
|
+
- `Append`: appends data to the whitelist.
|
|
318
|
+
- `Delete`: deletes the whitelist.
|
|
319
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] security_ip_lists: The IP address whitelist contains a maximum of 1000 IP addresses separated by commas in the following three formats:
|
|
320
|
+
- 0.0.0.0/0
|
|
321
|
+
- 10.23.12.24(IP)
|
|
322
|
+
- 10.23.12.24/24(CIDR mode, Classless Inter-Domain Routing, '/24' indicates the length of the prefix in the address, and the range is '[1,32]')
|
|
323
|
+
"""
|
|
324
|
+
...
|
|
325
|
+
@overload
|
|
326
|
+
def __init__(__self__,
|
|
327
|
+
resource_name: str,
|
|
328
|
+
args: DbInstanceIpArrayArgs,
|
|
329
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
330
|
+
"""
|
|
331
|
+
Provides a GPDB DB Instance IP Array resource.
|
|
332
|
+
|
|
333
|
+
Whitelist IP Group.
|
|
334
|
+
|
|
335
|
+
For information about GPDB DB Instance IP Array and how to use it, see [What is DB Instance IP Array](https://www.alibabacloud.com/help/en/).
|
|
336
|
+
|
|
337
|
+
> **NOTE:** Available since v1.231.0.
|
|
338
|
+
|
|
339
|
+
## Example Usage
|
|
340
|
+
|
|
341
|
+
Basic Usage
|
|
342
|
+
|
|
343
|
+
```python
|
|
344
|
+
import pulumi
|
|
345
|
+
import pulumi_alicloud as alicloud
|
|
346
|
+
|
|
347
|
+
config = pulumi.Config()
|
|
348
|
+
name = config.get("name")
|
|
349
|
+
if name is None:
|
|
350
|
+
name = "terraform-example"
|
|
351
|
+
default = alicloud.get_zones(available_resource_creation="VSwitch")
|
|
352
|
+
default_np_l_ra1 = alicloud.vpc.Network("defaultNpLRa1", cidr_block="192.168.0.0/16")
|
|
353
|
+
defaultw_la5v4 = alicloud.vpc.Switch("defaultwLA5v4",
|
|
354
|
+
vpc_id=default_np_l_ra1.id,
|
|
355
|
+
zone_id="cn-beijing-h",
|
|
356
|
+
cidr_block="192.168.1.0/24")
|
|
357
|
+
default_h_kd_ds3 = alicloud.gpdb.Instance("defaultHKdDs3",
|
|
358
|
+
instance_spec="2C8G",
|
|
359
|
+
seg_node_num=2,
|
|
360
|
+
seg_storage_type="cloud_essd",
|
|
361
|
+
instance_network_type="VPC",
|
|
362
|
+
db_instance_category="Basic",
|
|
363
|
+
payment_type="PayAsYouGo",
|
|
364
|
+
ssl_enabled=0,
|
|
365
|
+
engine_version="6.0",
|
|
366
|
+
zone_id="cn-beijing-h",
|
|
367
|
+
vswitch_id=defaultw_la5v4.id,
|
|
368
|
+
storage_size=50,
|
|
369
|
+
master_cu=4,
|
|
370
|
+
vpc_id=default_np_l_ra1.id,
|
|
371
|
+
db_instance_mode="StorageElastic",
|
|
372
|
+
engine="gpdb",
|
|
373
|
+
description=name)
|
|
374
|
+
default_db_instance_ip_array = alicloud.gpdb.DbInstanceIpArray("default",
|
|
375
|
+
db_instance_ip_array_attribute="taffyFish",
|
|
376
|
+
security_ip_lists=[
|
|
377
|
+
"12.34.56.78",
|
|
378
|
+
"11.45.14.0",
|
|
379
|
+
"19.19.81.0",
|
|
380
|
+
],
|
|
381
|
+
db_instance_ip_array_name="taffy",
|
|
382
|
+
db_instance_id=default_h_kd_ds3.id)
|
|
383
|
+
```
|
|
384
|
+
|
|
385
|
+
## Import
|
|
386
|
+
|
|
387
|
+
GPDB DB Instance IP Array can be imported using the id, e.g.
|
|
388
|
+
|
|
389
|
+
```sh
|
|
390
|
+
$ pulumi import alicloud:gpdb/dbInstanceIpArray:DbInstanceIpArray example <db_instance_id>:<db_instance_ip_array_name>
|
|
391
|
+
```
|
|
392
|
+
|
|
393
|
+
:param str resource_name: The name of the resource.
|
|
394
|
+
:param DbInstanceIpArrayArgs args: The arguments to use to populate this resource's properties.
|
|
395
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
396
|
+
"""
|
|
397
|
+
...
|
|
398
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
399
|
+
resource_args, opts = _utilities.get_resource_args_opts(DbInstanceIpArrayArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
400
|
+
if resource_args is not None:
|
|
401
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
402
|
+
else:
|
|
403
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
404
|
+
|
|
405
|
+
def _internal_init(__self__,
|
|
406
|
+
resource_name: str,
|
|
407
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
408
|
+
db_instance_id: Optional[pulumi.Input[str]] = None,
|
|
409
|
+
db_instance_ip_array_attribute: Optional[pulumi.Input[str]] = None,
|
|
410
|
+
db_instance_ip_array_name: Optional[pulumi.Input[str]] = None,
|
|
411
|
+
modify_mode: Optional[pulumi.Input[str]] = None,
|
|
412
|
+
security_ip_lists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
413
|
+
__props__=None):
|
|
414
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
415
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
416
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
417
|
+
if opts.id is None:
|
|
418
|
+
if __props__ is not None:
|
|
419
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
420
|
+
__props__ = DbInstanceIpArrayArgs.__new__(DbInstanceIpArrayArgs)
|
|
421
|
+
|
|
422
|
+
if db_instance_id is None and not opts.urn:
|
|
423
|
+
raise TypeError("Missing required property 'db_instance_id'")
|
|
424
|
+
__props__.__dict__["db_instance_id"] = db_instance_id
|
|
425
|
+
__props__.__dict__["db_instance_ip_array_attribute"] = db_instance_ip_array_attribute
|
|
426
|
+
if db_instance_ip_array_name is None and not opts.urn:
|
|
427
|
+
raise TypeError("Missing required property 'db_instance_ip_array_name'")
|
|
428
|
+
__props__.__dict__["db_instance_ip_array_name"] = db_instance_ip_array_name
|
|
429
|
+
__props__.__dict__["modify_mode"] = modify_mode
|
|
430
|
+
if security_ip_lists is None and not opts.urn:
|
|
431
|
+
raise TypeError("Missing required property 'security_ip_lists'")
|
|
432
|
+
__props__.__dict__["security_ip_lists"] = security_ip_lists
|
|
433
|
+
super(DbInstanceIpArray, __self__).__init__(
|
|
434
|
+
'alicloud:gpdb/dbInstanceIpArray:DbInstanceIpArray',
|
|
435
|
+
resource_name,
|
|
436
|
+
__props__,
|
|
437
|
+
opts)
|
|
438
|
+
|
|
439
|
+
@staticmethod
|
|
440
|
+
def get(resource_name: str,
|
|
441
|
+
id: pulumi.Input[str],
|
|
442
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
443
|
+
db_instance_id: Optional[pulumi.Input[str]] = None,
|
|
444
|
+
db_instance_ip_array_attribute: Optional[pulumi.Input[str]] = None,
|
|
445
|
+
db_instance_ip_array_name: Optional[pulumi.Input[str]] = None,
|
|
446
|
+
modify_mode: Optional[pulumi.Input[str]] = None,
|
|
447
|
+
security_ip_lists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None) -> 'DbInstanceIpArray':
|
|
448
|
+
"""
|
|
449
|
+
Get an existing DbInstanceIpArray resource's state with the given name, id, and optional extra
|
|
450
|
+
properties used to qualify the lookup.
|
|
451
|
+
|
|
452
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
453
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
454
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
455
|
+
:param pulumi.Input[str] db_instance_id: The instance ID.
|
|
456
|
+
|
|
457
|
+
> **NOTE:** You can call the [DescribeDBInstances](https://www.alibabacloud.com/help/en/doc-detail/86911.html) operation to query details about all AnalyticDB for PostgreSQL instances within a region, including instance IDs.
|
|
458
|
+
:param pulumi.Input[str] db_instance_ip_array_attribute: The default is empty. To distinguish between different attribute values, the console does not display groups with the 'hidden' attribute.
|
|
459
|
+
:param pulumi.Input[str] db_instance_ip_array_name: The name of the IP address whitelist. If you do not specify this parameter, the default whitelist is queried.
|
|
460
|
+
|
|
461
|
+
> **NOTE:** Each instance supports up to 50 IP address whitelists.
|
|
462
|
+
:param pulumi.Input[str] modify_mode: The method of modification. Valid values:
|
|
463
|
+
|
|
464
|
+
- `Cover`: overwrites the whitelist.
|
|
465
|
+
- `Append`: appends data to the whitelist.
|
|
466
|
+
- `Delete`: deletes the whitelist.
|
|
467
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] security_ip_lists: The IP address whitelist contains a maximum of 1000 IP addresses separated by commas in the following three formats:
|
|
468
|
+
- 0.0.0.0/0
|
|
469
|
+
- 10.23.12.24(IP)
|
|
470
|
+
- 10.23.12.24/24(CIDR mode, Classless Inter-Domain Routing, '/24' indicates the length of the prefix in the address, and the range is '[1,32]')
|
|
471
|
+
"""
|
|
472
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
473
|
+
|
|
474
|
+
__props__ = _DbInstanceIpArrayState.__new__(_DbInstanceIpArrayState)
|
|
475
|
+
|
|
476
|
+
__props__.__dict__["db_instance_id"] = db_instance_id
|
|
477
|
+
__props__.__dict__["db_instance_ip_array_attribute"] = db_instance_ip_array_attribute
|
|
478
|
+
__props__.__dict__["db_instance_ip_array_name"] = db_instance_ip_array_name
|
|
479
|
+
__props__.__dict__["modify_mode"] = modify_mode
|
|
480
|
+
__props__.__dict__["security_ip_lists"] = security_ip_lists
|
|
481
|
+
return DbInstanceIpArray(resource_name, opts=opts, __props__=__props__)
|
|
482
|
+
|
|
483
|
+
@property
|
|
484
|
+
@pulumi.getter(name="dbInstanceId")
|
|
485
|
+
def db_instance_id(self) -> pulumi.Output[str]:
|
|
486
|
+
"""
|
|
487
|
+
The instance ID.
|
|
488
|
+
|
|
489
|
+
> **NOTE:** You can call the [DescribeDBInstances](https://www.alibabacloud.com/help/en/doc-detail/86911.html) operation to query details about all AnalyticDB for PostgreSQL instances within a region, including instance IDs.
|
|
490
|
+
"""
|
|
491
|
+
return pulumi.get(self, "db_instance_id")
|
|
492
|
+
|
|
493
|
+
@property
|
|
494
|
+
@pulumi.getter(name="dbInstanceIpArrayAttribute")
|
|
495
|
+
def db_instance_ip_array_attribute(self) -> pulumi.Output[Optional[str]]:
|
|
496
|
+
"""
|
|
497
|
+
The default is empty. To distinguish between different attribute values, the console does not display groups with the 'hidden' attribute.
|
|
498
|
+
"""
|
|
499
|
+
return pulumi.get(self, "db_instance_ip_array_attribute")
|
|
500
|
+
|
|
501
|
+
@property
|
|
502
|
+
@pulumi.getter(name="dbInstanceIpArrayName")
|
|
503
|
+
def db_instance_ip_array_name(self) -> pulumi.Output[str]:
|
|
504
|
+
"""
|
|
505
|
+
The name of the IP address whitelist. If you do not specify this parameter, the default whitelist is queried.
|
|
506
|
+
|
|
507
|
+
> **NOTE:** Each instance supports up to 50 IP address whitelists.
|
|
508
|
+
"""
|
|
509
|
+
return pulumi.get(self, "db_instance_ip_array_name")
|
|
510
|
+
|
|
511
|
+
@property
|
|
512
|
+
@pulumi.getter(name="modifyMode")
|
|
513
|
+
def modify_mode(self) -> pulumi.Output[Optional[str]]:
|
|
514
|
+
"""
|
|
515
|
+
The method of modification. Valid values:
|
|
516
|
+
|
|
517
|
+
- `Cover`: overwrites the whitelist.
|
|
518
|
+
- `Append`: appends data to the whitelist.
|
|
519
|
+
- `Delete`: deletes the whitelist.
|
|
520
|
+
"""
|
|
521
|
+
return pulumi.get(self, "modify_mode")
|
|
522
|
+
|
|
523
|
+
@property
|
|
524
|
+
@pulumi.getter(name="securityIpLists")
|
|
525
|
+
def security_ip_lists(self) -> pulumi.Output[Sequence[str]]:
|
|
526
|
+
"""
|
|
527
|
+
The IP address whitelist contains a maximum of 1000 IP addresses separated by commas in the following three formats:
|
|
528
|
+
- 0.0.0.0/0
|
|
529
|
+
- 10.23.12.24(IP)
|
|
530
|
+
- 10.23.12.24/24(CIDR mode, Classless Inter-Domain Routing, '/24' indicates the length of the prefix in the address, and the range is '[1,32]')
|
|
531
|
+
"""
|
|
532
|
+
return pulumi.get(self, "security_ip_lists")
|
|
533
|
+
|