pulumi-alicloud 3.77.0a1746163013__py3-none-any.whl → 3.77.0a1746220593__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 +72 -0
- pulumi_alicloud/_inputs.py +13 -0
- pulumi_alicloud/adb/db_cluster_lake_version.py +94 -0
- pulumi_alicloud/alb/_inputs.py +6 -3
- pulumi_alicloud/alb/outputs.py +4 -2
- pulumi_alicloud/apig/environment.py +2 -2
- pulumi_alicloud/apig/http_api.py +2 -2
- pulumi_alicloud/arms/grafana_workspace.py +56 -14
- pulumi_alicloud/cloudfirewall/instance_member.py +4 -4
- pulumi_alicloud/cloudfirewall/vpc_cen_tr_firewall.py +2 -2
- pulumi_alicloud/cloudsso/_inputs.py +697 -7
- pulumi_alicloud/cloudsso/directory.py +345 -65
- pulumi_alicloud/cloudsso/outputs.py +557 -8
- pulumi_alicloud/config/outputs.py +8 -0
- pulumi_alicloud/cs/_inputs.py +18 -18
- pulumi_alicloud/cs/edge_kubernetes.py +136 -100
- pulumi_alicloud/cs/get_kubernetes_node_pools.py +21 -1
- pulumi_alicloud/cs/kubernetes.py +118 -39
- pulumi_alicloud/cs/managed_kubernetes.py +125 -46
- pulumi_alicloud/cs/outputs.py +14 -14
- pulumi_alicloud/cs/serverless_kubernetes.py +66 -73
- pulumi_alicloud/ddos/ddos_coo_instance.py +175 -25
- pulumi_alicloud/dns/ddos_coo_instance.py +175 -25
- pulumi_alicloud/dts/job_monitor_rule.py +2 -2
- pulumi_alicloud/dts/synchronization_job.py +2 -2
- pulumi_alicloud/ecs/get_instance_types.py +4 -4
- pulumi_alicloud/ecs/instance.py +28 -28
- pulumi_alicloud/ecs/outputs.py +2 -2
- pulumi_alicloud/ecs/security_group_rule.py +32 -4
- pulumi_alicloud/eflo/__init__.py +3 -0
- pulumi_alicloud/eflo/_inputs.py +623 -0
- pulumi_alicloud/eflo/experiment_plan.py +573 -0
- pulumi_alicloud/eflo/experiment_plan_template.py +464 -0
- pulumi_alicloud/eflo/outputs.py +476 -0
- pulumi_alicloud/eflo/resource.py +388 -0
- pulumi_alicloud/ens/disk.py +120 -69
- pulumi_alicloud/ens/eip.py +45 -41
- pulumi_alicloud/esa/__init__.py +2 -0
- pulumi_alicloud/esa/scheduled_preload_execution.py +479 -0
- pulumi_alicloud/esa/scheduled_preload_job.py +467 -0
- pulumi_alicloud/gwlb/listener.py +2 -2
- pulumi_alicloud/gwlb/load_balancer.py +2 -2
- pulumi_alicloud/gwlb/server_group.py +2 -2
- pulumi_alicloud/ims/__init__.py +2 -0
- pulumi_alicloud/ims/get_oidc_providers.py +216 -0
- pulumi_alicloud/ims/outputs.py +138 -0
- pulumi_alicloud/mongodb/__init__.py +2 -0
- pulumi_alicloud/mongodb/_inputs.py +154 -0
- pulumi_alicloud/mongodb/instance.py +7 -7
- pulumi_alicloud/mongodb/outputs.py +121 -0
- pulumi_alicloud/mongodb/public_network_address.py +275 -0
- pulumi_alicloud/mongodb/replica_set_role.py +533 -0
- pulumi_alicloud/nas/_inputs.py +252 -18
- pulumi_alicloud/nas/file_system.py +649 -264
- pulumi_alicloud/nas/outputs.py +198 -12
- pulumi_alicloud/nlb/server_group_server_attachment.py +4 -0
- pulumi_alicloud/pai/__init__.py +1 -0
- pulumi_alicloud/pai/flow_pipeline.py +491 -0
- pulumi_alicloud/pulumi-plugin.json +1 -1
- pulumi_alicloud/ram/__init__.py +1 -0
- pulumi_alicloud/ram/get_role_policy_attachments.py +272 -0
- pulumi_alicloud/ram/outputs.py +63 -0
- pulumi_alicloud/ram/security_preference.py +496 -110
- pulumi_alicloud/rdc/organization.py +2 -2
- pulumi_alicloud/rds/instance.py +1 -1
- pulumi_alicloud/sae/application_scaling_rule.py +2 -2
- pulumi_alicloud/sae/ingress.py +2 -2
- pulumi_alicloud/schedulerx/app_group.py +2 -2
- pulumi_alicloud/schedulerx/job.py +2 -2
- pulumi_alicloud/selectdb/db_cluster.py +2 -0
- pulumi_alicloud/selectdb/db_instance.py +43 -13
- pulumi_alicloud/selectdb/get_db_clusters.py +2 -0
- pulumi_alicloud/selectdb/get_db_instances.py +2 -0
- pulumi_alicloud/selectdb/outputs.py +3 -3
- pulumi_alicloud/sls/__init__.py +1 -0
- pulumi_alicloud/sls/_inputs.py +295 -0
- pulumi_alicloud/sls/etl.py +516 -0
- pulumi_alicloud/sls/outputs.py +209 -0
- pulumi_alicloud/vpc/network.py +156 -88
- {pulumi_alicloud-3.77.0a1746163013.dist-info → pulumi_alicloud-3.77.0a1746220593.dist-info}/METADATA +1 -1
- {pulumi_alicloud-3.77.0a1746163013.dist-info → pulumi_alicloud-3.77.0a1746220593.dist-info}/RECORD +83 -71
- {pulumi_alicloud-3.77.0a1746163013.dist-info → pulumi_alicloud-3.77.0a1746220593.dist-info}/WHEEL +0 -0
- {pulumi_alicloud-3.77.0a1746163013.dist-info → pulumi_alicloud-3.77.0a1746220593.dist-info}/top_level.txt +0 -0
|
@@ -19,6 +19,7 @@ from . import outputs
|
|
|
19
19
|
__all__ = [
|
|
20
20
|
'InstanceParameter',
|
|
21
21
|
'InstanceReplicaSet',
|
|
22
|
+
'PublicNetworkAddressReplicaSet',
|
|
22
23
|
'ServerlessInstanceSecurityIpGroup',
|
|
23
24
|
'ShardingInstanceConfigServerList',
|
|
24
25
|
'ShardingInstanceMongoList',
|
|
@@ -79,6 +80,8 @@ class InstanceReplicaSet(dict):
|
|
|
79
80
|
suggest = "network_type"
|
|
80
81
|
elif key == "replicaSetRole":
|
|
81
82
|
suggest = "replica_set_role"
|
|
83
|
+
elif key == "roleId":
|
|
84
|
+
suggest = "role_id"
|
|
82
85
|
elif key == "vpcCloudInstanceId":
|
|
83
86
|
suggest = "vpc_cloud_instance_id"
|
|
84
87
|
elif key == "vpcId":
|
|
@@ -102,6 +105,7 @@ class InstanceReplicaSet(dict):
|
|
|
102
105
|
connection_port: Optional[builtins.str] = None,
|
|
103
106
|
network_type: Optional[builtins.str] = None,
|
|
104
107
|
replica_set_role: Optional[builtins.str] = None,
|
|
108
|
+
role_id: Optional[builtins.str] = None,
|
|
105
109
|
vpc_cloud_instance_id: Optional[builtins.str] = None,
|
|
106
110
|
vpc_id: Optional[builtins.str] = None,
|
|
107
111
|
vswitch_id: Optional[builtins.str] = None):
|
|
@@ -110,6 +114,7 @@ class InstanceReplicaSet(dict):
|
|
|
110
114
|
:param builtins.str connection_port: The connection port of the node.
|
|
111
115
|
:param builtins.str network_type: The network type of the instance. Valid values:`Classic`, `VPC`.
|
|
112
116
|
:param builtins.str replica_set_role: The role of the node.
|
|
117
|
+
:param builtins.str role_id: The id of the role.
|
|
113
118
|
:param builtins.str vpc_cloud_instance_id: VPC instance ID.
|
|
114
119
|
:param builtins.str vpc_id: The ID of the VPC. > **NOTE:** `vpc_id` is valid only when `network_type` is set to `VPC`.
|
|
115
120
|
:param builtins.str vswitch_id: The virtual switch ID to launch DB instances in one VPC.
|
|
@@ -122,6 +127,8 @@ class InstanceReplicaSet(dict):
|
|
|
122
127
|
pulumi.set(__self__, "network_type", network_type)
|
|
123
128
|
if replica_set_role is not None:
|
|
124
129
|
pulumi.set(__self__, "replica_set_role", replica_set_role)
|
|
130
|
+
if role_id is not None:
|
|
131
|
+
pulumi.set(__self__, "role_id", role_id)
|
|
125
132
|
if vpc_cloud_instance_id is not None:
|
|
126
133
|
pulumi.set(__self__, "vpc_cloud_instance_id", vpc_cloud_instance_id)
|
|
127
134
|
if vpc_id is not None:
|
|
@@ -161,6 +168,14 @@ class InstanceReplicaSet(dict):
|
|
|
161
168
|
"""
|
|
162
169
|
return pulumi.get(self, "replica_set_role")
|
|
163
170
|
|
|
171
|
+
@property
|
|
172
|
+
@pulumi.getter(name="roleId")
|
|
173
|
+
def role_id(self) -> Optional[builtins.str]:
|
|
174
|
+
"""
|
|
175
|
+
The id of the role.
|
|
176
|
+
"""
|
|
177
|
+
return pulumi.get(self, "role_id")
|
|
178
|
+
|
|
164
179
|
@property
|
|
165
180
|
@pulumi.getter(name="vpcCloudInstanceId")
|
|
166
181
|
def vpc_cloud_instance_id(self) -> Optional[builtins.str]:
|
|
@@ -186,6 +201,112 @@ class InstanceReplicaSet(dict):
|
|
|
186
201
|
return pulumi.get(self, "vswitch_id")
|
|
187
202
|
|
|
188
203
|
|
|
204
|
+
@pulumi.output_type
|
|
205
|
+
class PublicNetworkAddressReplicaSet(dict):
|
|
206
|
+
@staticmethod
|
|
207
|
+
def __key_warning(key: str):
|
|
208
|
+
suggest = None
|
|
209
|
+
if key == "connectionDomain":
|
|
210
|
+
suggest = "connection_domain"
|
|
211
|
+
elif key == "connectionPort":
|
|
212
|
+
suggest = "connection_port"
|
|
213
|
+
elif key == "connectionType":
|
|
214
|
+
suggest = "connection_type"
|
|
215
|
+
elif key == "networkType":
|
|
216
|
+
suggest = "network_type"
|
|
217
|
+
elif key == "replicaSetRole":
|
|
218
|
+
suggest = "replica_set_role"
|
|
219
|
+
elif key == "roleId":
|
|
220
|
+
suggest = "role_id"
|
|
221
|
+
|
|
222
|
+
if suggest:
|
|
223
|
+
pulumi.log.warn(f"Key '{key}' not found in PublicNetworkAddressReplicaSet. Access the value via the '{suggest}' property getter instead.")
|
|
224
|
+
|
|
225
|
+
def __getitem__(self, key: str) -> Any:
|
|
226
|
+
PublicNetworkAddressReplicaSet.__key_warning(key)
|
|
227
|
+
return super().__getitem__(key)
|
|
228
|
+
|
|
229
|
+
def get(self, key: str, default = None) -> Any:
|
|
230
|
+
PublicNetworkAddressReplicaSet.__key_warning(key)
|
|
231
|
+
return super().get(key, default)
|
|
232
|
+
|
|
233
|
+
def __init__(__self__, *,
|
|
234
|
+
connection_domain: Optional[builtins.str] = None,
|
|
235
|
+
connection_port: Optional[builtins.str] = None,
|
|
236
|
+
connection_type: Optional[builtins.str] = None,
|
|
237
|
+
network_type: Optional[builtins.str] = None,
|
|
238
|
+
replica_set_role: Optional[builtins.str] = None,
|
|
239
|
+
role_id: Optional[builtins.str] = None):
|
|
240
|
+
"""
|
|
241
|
+
:param builtins.str connection_domain: The connection address of the node.
|
|
242
|
+
:param builtins.str connection_port: The connection port of the node.
|
|
243
|
+
:param builtins.str connection_type: The connection type.
|
|
244
|
+
:param builtins.str network_type: The network type, should be always "Public".
|
|
245
|
+
:param builtins.str replica_set_role: The role of the node.
|
|
246
|
+
:param builtins.str role_id: The id of the role.
|
|
247
|
+
"""
|
|
248
|
+
if connection_domain is not None:
|
|
249
|
+
pulumi.set(__self__, "connection_domain", connection_domain)
|
|
250
|
+
if connection_port is not None:
|
|
251
|
+
pulumi.set(__self__, "connection_port", connection_port)
|
|
252
|
+
if connection_type is not None:
|
|
253
|
+
pulumi.set(__self__, "connection_type", connection_type)
|
|
254
|
+
if network_type is not None:
|
|
255
|
+
pulumi.set(__self__, "network_type", network_type)
|
|
256
|
+
if replica_set_role is not None:
|
|
257
|
+
pulumi.set(__self__, "replica_set_role", replica_set_role)
|
|
258
|
+
if role_id is not None:
|
|
259
|
+
pulumi.set(__self__, "role_id", role_id)
|
|
260
|
+
|
|
261
|
+
@property
|
|
262
|
+
@pulumi.getter(name="connectionDomain")
|
|
263
|
+
def connection_domain(self) -> Optional[builtins.str]:
|
|
264
|
+
"""
|
|
265
|
+
The connection address of the node.
|
|
266
|
+
"""
|
|
267
|
+
return pulumi.get(self, "connection_domain")
|
|
268
|
+
|
|
269
|
+
@property
|
|
270
|
+
@pulumi.getter(name="connectionPort")
|
|
271
|
+
def connection_port(self) -> Optional[builtins.str]:
|
|
272
|
+
"""
|
|
273
|
+
The connection port of the node.
|
|
274
|
+
"""
|
|
275
|
+
return pulumi.get(self, "connection_port")
|
|
276
|
+
|
|
277
|
+
@property
|
|
278
|
+
@pulumi.getter(name="connectionType")
|
|
279
|
+
def connection_type(self) -> Optional[builtins.str]:
|
|
280
|
+
"""
|
|
281
|
+
The connection type.
|
|
282
|
+
"""
|
|
283
|
+
return pulumi.get(self, "connection_type")
|
|
284
|
+
|
|
285
|
+
@property
|
|
286
|
+
@pulumi.getter(name="networkType")
|
|
287
|
+
def network_type(self) -> Optional[builtins.str]:
|
|
288
|
+
"""
|
|
289
|
+
The network type, should be always "Public".
|
|
290
|
+
"""
|
|
291
|
+
return pulumi.get(self, "network_type")
|
|
292
|
+
|
|
293
|
+
@property
|
|
294
|
+
@pulumi.getter(name="replicaSetRole")
|
|
295
|
+
def replica_set_role(self) -> Optional[builtins.str]:
|
|
296
|
+
"""
|
|
297
|
+
The role of the node.
|
|
298
|
+
"""
|
|
299
|
+
return pulumi.get(self, "replica_set_role")
|
|
300
|
+
|
|
301
|
+
@property
|
|
302
|
+
@pulumi.getter(name="roleId")
|
|
303
|
+
def role_id(self) -> Optional[builtins.str]:
|
|
304
|
+
"""
|
|
305
|
+
The id of the role.
|
|
306
|
+
"""
|
|
307
|
+
return pulumi.get(self, "role_id")
|
|
308
|
+
|
|
309
|
+
|
|
189
310
|
@pulumi.output_type
|
|
190
311
|
class ServerlessInstanceSecurityIpGroup(dict):
|
|
191
312
|
@staticmethod
|
|
@@ -0,0 +1,275 @@
|
|
|
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 builtins
|
|
6
|
+
import copy
|
|
7
|
+
import warnings
|
|
8
|
+
import sys
|
|
9
|
+
import pulumi
|
|
10
|
+
import pulumi.runtime
|
|
11
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
12
|
+
if sys.version_info >= (3, 11):
|
|
13
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
14
|
+
else:
|
|
15
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
16
|
+
from .. import _utilities
|
|
17
|
+
from . import outputs
|
|
18
|
+
from ._inputs import *
|
|
19
|
+
|
|
20
|
+
__all__ = ['PublicNetworkAddressArgs', 'PublicNetworkAddress']
|
|
21
|
+
|
|
22
|
+
@pulumi.input_type
|
|
23
|
+
class PublicNetworkAddressArgs:
|
|
24
|
+
def __init__(__self__, *,
|
|
25
|
+
db_instance_id: pulumi.Input[builtins.str]):
|
|
26
|
+
"""
|
|
27
|
+
The set of arguments for constructing a PublicNetworkAddress resource.
|
|
28
|
+
:param pulumi.Input[builtins.str] db_instance_id: The instance ID.
|
|
29
|
+
"""
|
|
30
|
+
pulumi.set(__self__, "db_instance_id", db_instance_id)
|
|
31
|
+
|
|
32
|
+
@property
|
|
33
|
+
@pulumi.getter(name="dbInstanceId")
|
|
34
|
+
def db_instance_id(self) -> pulumi.Input[builtins.str]:
|
|
35
|
+
"""
|
|
36
|
+
The instance ID.
|
|
37
|
+
"""
|
|
38
|
+
return pulumi.get(self, "db_instance_id")
|
|
39
|
+
|
|
40
|
+
@db_instance_id.setter
|
|
41
|
+
def db_instance_id(self, value: pulumi.Input[builtins.str]):
|
|
42
|
+
pulumi.set(self, "db_instance_id", value)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
@pulumi.input_type
|
|
46
|
+
class _PublicNetworkAddressState:
|
|
47
|
+
def __init__(__self__, *,
|
|
48
|
+
db_instance_id: Optional[pulumi.Input[builtins.str]] = None,
|
|
49
|
+
replica_sets: Optional[pulumi.Input[Sequence[pulumi.Input['PublicNetworkAddressReplicaSetArgs']]]] = None):
|
|
50
|
+
"""
|
|
51
|
+
Input properties used for looking up and filtering PublicNetworkAddress resources.
|
|
52
|
+
:param pulumi.Input[builtins.str] db_instance_id: The instance ID.
|
|
53
|
+
:param pulumi.Input[Sequence[pulumi.Input['PublicNetworkAddressReplicaSetArgs']]] replica_sets: Replica set instance information.
|
|
54
|
+
"""
|
|
55
|
+
if db_instance_id is not None:
|
|
56
|
+
pulumi.set(__self__, "db_instance_id", db_instance_id)
|
|
57
|
+
if replica_sets is not None:
|
|
58
|
+
pulumi.set(__self__, "replica_sets", replica_sets)
|
|
59
|
+
|
|
60
|
+
@property
|
|
61
|
+
@pulumi.getter(name="dbInstanceId")
|
|
62
|
+
def db_instance_id(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
63
|
+
"""
|
|
64
|
+
The instance ID.
|
|
65
|
+
"""
|
|
66
|
+
return pulumi.get(self, "db_instance_id")
|
|
67
|
+
|
|
68
|
+
@db_instance_id.setter
|
|
69
|
+
def db_instance_id(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
70
|
+
pulumi.set(self, "db_instance_id", value)
|
|
71
|
+
|
|
72
|
+
@property
|
|
73
|
+
@pulumi.getter(name="replicaSets")
|
|
74
|
+
def replica_sets(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['PublicNetworkAddressReplicaSetArgs']]]]:
|
|
75
|
+
"""
|
|
76
|
+
Replica set instance information.
|
|
77
|
+
"""
|
|
78
|
+
return pulumi.get(self, "replica_sets")
|
|
79
|
+
|
|
80
|
+
@replica_sets.setter
|
|
81
|
+
def replica_sets(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['PublicNetworkAddressReplicaSetArgs']]]]):
|
|
82
|
+
pulumi.set(self, "replica_sets", value)
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
class PublicNetworkAddress(pulumi.CustomResource):
|
|
86
|
+
|
|
87
|
+
pulumi_type = "alicloud:mongodb/publicNetworkAddress:PublicNetworkAddress"
|
|
88
|
+
|
|
89
|
+
@overload
|
|
90
|
+
def __init__(__self__,
|
|
91
|
+
resource_name: str,
|
|
92
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
93
|
+
db_instance_id: Optional[pulumi.Input[builtins.str]] = None,
|
|
94
|
+
__props__=None):
|
|
95
|
+
"""
|
|
96
|
+
Provides an Alicloud MongoDB public network address resource.
|
|
97
|
+
|
|
98
|
+
For information about MongoDB public network address and how to use it, see [Allocate Public Network Address for MongoDB](https://www.alibabacloud.com/help/en/mongodb/getting-started/apply-for-a-public-endpoint-for-an-apsaradb-for-mongodb-instance-optional).
|
|
99
|
+
|
|
100
|
+
> **NOTE:** Available since v1.248.0.
|
|
101
|
+
|
|
102
|
+
## Example Usage
|
|
103
|
+
|
|
104
|
+
```python
|
|
105
|
+
import pulumi
|
|
106
|
+
import pulumi_alicloud as alicloud
|
|
107
|
+
|
|
108
|
+
config = pulumi.Config()
|
|
109
|
+
name = config.get("name")
|
|
110
|
+
if name is None:
|
|
111
|
+
name = "tf-example"
|
|
112
|
+
default = alicloud.mongodb.get_zones()
|
|
113
|
+
index = len(default.zones).apply(lambda length: length - 1)
|
|
114
|
+
zone_id = default.zones[index].id
|
|
115
|
+
default_network = alicloud.vpc.Network("default",
|
|
116
|
+
cidr_block="10.0.0.0/8",
|
|
117
|
+
vpc_name=name)
|
|
118
|
+
default_switch = alicloud.vpc.Switch("default",
|
|
119
|
+
vpc_id=default_network.id,
|
|
120
|
+
zone_id=zone_id,
|
|
121
|
+
cidr_block="10.0.0.0/24")
|
|
122
|
+
default_instance = alicloud.mongodb.Instance("default",
|
|
123
|
+
engine_version="4.4",
|
|
124
|
+
storage_type="cloud_essd1",
|
|
125
|
+
vswitch_id=default_switch.id,
|
|
126
|
+
db_instance_storage=20,
|
|
127
|
+
vpc_id=default_network.id,
|
|
128
|
+
db_instance_class="mdb.shard.4x.large.d",
|
|
129
|
+
storage_engine="WiredTiger",
|
|
130
|
+
network_type="VPC",
|
|
131
|
+
zone_id=zone_id)
|
|
132
|
+
default_public_network_address = alicloud.mongodb.PublicNetworkAddress("default", db_instance_id=default_instance.id)
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
## Import
|
|
136
|
+
|
|
137
|
+
MongoDB public network address can be imported using the id, e.g.
|
|
138
|
+
|
|
139
|
+
```sh
|
|
140
|
+
$ pulumi import alicloud:mongodb/publicNetworkAddress:PublicNetworkAddress example <id>
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
:param str resource_name: The name of the resource.
|
|
144
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
145
|
+
:param pulumi.Input[builtins.str] db_instance_id: The instance ID.
|
|
146
|
+
"""
|
|
147
|
+
...
|
|
148
|
+
@overload
|
|
149
|
+
def __init__(__self__,
|
|
150
|
+
resource_name: str,
|
|
151
|
+
args: PublicNetworkAddressArgs,
|
|
152
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
153
|
+
"""
|
|
154
|
+
Provides an Alicloud MongoDB public network address resource.
|
|
155
|
+
|
|
156
|
+
For information about MongoDB public network address and how to use it, see [Allocate Public Network Address for MongoDB](https://www.alibabacloud.com/help/en/mongodb/getting-started/apply-for-a-public-endpoint-for-an-apsaradb-for-mongodb-instance-optional).
|
|
157
|
+
|
|
158
|
+
> **NOTE:** Available since v1.248.0.
|
|
159
|
+
|
|
160
|
+
## Example Usage
|
|
161
|
+
|
|
162
|
+
```python
|
|
163
|
+
import pulumi
|
|
164
|
+
import pulumi_alicloud as alicloud
|
|
165
|
+
|
|
166
|
+
config = pulumi.Config()
|
|
167
|
+
name = config.get("name")
|
|
168
|
+
if name is None:
|
|
169
|
+
name = "tf-example"
|
|
170
|
+
default = alicloud.mongodb.get_zones()
|
|
171
|
+
index = len(default.zones).apply(lambda length: length - 1)
|
|
172
|
+
zone_id = default.zones[index].id
|
|
173
|
+
default_network = alicloud.vpc.Network("default",
|
|
174
|
+
cidr_block="10.0.0.0/8",
|
|
175
|
+
vpc_name=name)
|
|
176
|
+
default_switch = alicloud.vpc.Switch("default",
|
|
177
|
+
vpc_id=default_network.id,
|
|
178
|
+
zone_id=zone_id,
|
|
179
|
+
cidr_block="10.0.0.0/24")
|
|
180
|
+
default_instance = alicloud.mongodb.Instance("default",
|
|
181
|
+
engine_version="4.4",
|
|
182
|
+
storage_type="cloud_essd1",
|
|
183
|
+
vswitch_id=default_switch.id,
|
|
184
|
+
db_instance_storage=20,
|
|
185
|
+
vpc_id=default_network.id,
|
|
186
|
+
db_instance_class="mdb.shard.4x.large.d",
|
|
187
|
+
storage_engine="WiredTiger",
|
|
188
|
+
network_type="VPC",
|
|
189
|
+
zone_id=zone_id)
|
|
190
|
+
default_public_network_address = alicloud.mongodb.PublicNetworkAddress("default", db_instance_id=default_instance.id)
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
## Import
|
|
194
|
+
|
|
195
|
+
MongoDB public network address can be imported using the id, e.g.
|
|
196
|
+
|
|
197
|
+
```sh
|
|
198
|
+
$ pulumi import alicloud:mongodb/publicNetworkAddress:PublicNetworkAddress example <id>
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
:param str resource_name: The name of the resource.
|
|
202
|
+
:param PublicNetworkAddressArgs args: The arguments to use to populate this resource's properties.
|
|
203
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
204
|
+
"""
|
|
205
|
+
...
|
|
206
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
207
|
+
resource_args, opts = _utilities.get_resource_args_opts(PublicNetworkAddressArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
208
|
+
if resource_args is not None:
|
|
209
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
210
|
+
else:
|
|
211
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
212
|
+
|
|
213
|
+
def _internal_init(__self__,
|
|
214
|
+
resource_name: str,
|
|
215
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
216
|
+
db_instance_id: Optional[pulumi.Input[builtins.str]] = None,
|
|
217
|
+
__props__=None):
|
|
218
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
219
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
220
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
221
|
+
if opts.id is None:
|
|
222
|
+
if __props__ is not None:
|
|
223
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
224
|
+
__props__ = PublicNetworkAddressArgs.__new__(PublicNetworkAddressArgs)
|
|
225
|
+
|
|
226
|
+
if db_instance_id is None and not opts.urn:
|
|
227
|
+
raise TypeError("Missing required property 'db_instance_id'")
|
|
228
|
+
__props__.__dict__["db_instance_id"] = db_instance_id
|
|
229
|
+
__props__.__dict__["replica_sets"] = None
|
|
230
|
+
super(PublicNetworkAddress, __self__).__init__(
|
|
231
|
+
'alicloud:mongodb/publicNetworkAddress:PublicNetworkAddress',
|
|
232
|
+
resource_name,
|
|
233
|
+
__props__,
|
|
234
|
+
opts)
|
|
235
|
+
|
|
236
|
+
@staticmethod
|
|
237
|
+
def get(resource_name: str,
|
|
238
|
+
id: pulumi.Input[str],
|
|
239
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
240
|
+
db_instance_id: Optional[pulumi.Input[builtins.str]] = None,
|
|
241
|
+
replica_sets: Optional[pulumi.Input[Sequence[pulumi.Input[Union['PublicNetworkAddressReplicaSetArgs', 'PublicNetworkAddressReplicaSetArgsDict']]]]] = None) -> 'PublicNetworkAddress':
|
|
242
|
+
"""
|
|
243
|
+
Get an existing PublicNetworkAddress resource's state with the given name, id, and optional extra
|
|
244
|
+
properties used to qualify the lookup.
|
|
245
|
+
|
|
246
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
247
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
248
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
249
|
+
:param pulumi.Input[builtins.str] db_instance_id: The instance ID.
|
|
250
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['PublicNetworkAddressReplicaSetArgs', 'PublicNetworkAddressReplicaSetArgsDict']]]] replica_sets: Replica set instance information.
|
|
251
|
+
"""
|
|
252
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
253
|
+
|
|
254
|
+
__props__ = _PublicNetworkAddressState.__new__(_PublicNetworkAddressState)
|
|
255
|
+
|
|
256
|
+
__props__.__dict__["db_instance_id"] = db_instance_id
|
|
257
|
+
__props__.__dict__["replica_sets"] = replica_sets
|
|
258
|
+
return PublicNetworkAddress(resource_name, opts=opts, __props__=__props__)
|
|
259
|
+
|
|
260
|
+
@property
|
|
261
|
+
@pulumi.getter(name="dbInstanceId")
|
|
262
|
+
def db_instance_id(self) -> pulumi.Output[builtins.str]:
|
|
263
|
+
"""
|
|
264
|
+
The instance ID.
|
|
265
|
+
"""
|
|
266
|
+
return pulumi.get(self, "db_instance_id")
|
|
267
|
+
|
|
268
|
+
@property
|
|
269
|
+
@pulumi.getter(name="replicaSets")
|
|
270
|
+
def replica_sets(self) -> pulumi.Output[Sequence['outputs.PublicNetworkAddressReplicaSet']]:
|
|
271
|
+
"""
|
|
272
|
+
Replica set instance information.
|
|
273
|
+
"""
|
|
274
|
+
return pulumi.get(self, "replica_sets")
|
|
275
|
+
|