pulumi-alicloud 3.59.0a1720761596__py3-none-any.whl → 3.59.1__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 +48 -0
- pulumi_alicloud/_utilities.py +3 -4
- pulumi_alicloud/adb/_inputs.py +14 -0
- pulumi_alicloud/adb/outputs.py +14 -0
- pulumi_alicloud/adb/resource_group.py +115 -119
- pulumi_alicloud/alb/_inputs.py +224 -0
- pulumi_alicloud/alb/outputs.py +260 -0
- pulumi_alicloud/arms/_inputs.py +438 -0
- pulumi_alicloud/arms/outputs.py +442 -0
- pulumi_alicloud/bp/_inputs.py +14 -0
- pulumi_alicloud/bp/outputs.py +14 -0
- pulumi_alicloud/cas/outputs.py +4 -0
- pulumi_alicloud/cddc/outputs.py +6 -0
- pulumi_alicloud/cen/get_transit_router_service.py +2 -2
- pulumi_alicloud/cfg/_inputs.py +20 -0
- pulumi_alicloud/cfg/outputs.py +20 -0
- pulumi_alicloud/clickhouse/get_regions.py +2 -2
- pulumi_alicloud/clickhouse/outputs.py +4 -0
- pulumi_alicloud/cloudfirewall/_inputs.py +40 -0
- pulumi_alicloud/cloudfirewall/control_policy_order.py +60 -44
- pulumi_alicloud/cloudfirewall/outputs.py +40 -0
- pulumi_alicloud/cloudmonitor/_inputs.py +18 -0
- pulumi_alicloud/cloudmonitor/outputs.py +18 -0
- pulumi_alicloud/cloudstoragegateway/gateway_cache_disk.py +150 -27
- pulumi_alicloud/cms/_inputs.py +188 -0
- pulumi_alicloud/cms/outputs.py +228 -0
- pulumi_alicloud/compute/_inputs.py +4 -0
- pulumi_alicloud/compute/outputs.py +4 -0
- pulumi_alicloud/cs/_inputs.py +22 -0
- pulumi_alicloud/cs/node_pool.py +7 -7
- pulumi_alicloud/cs/outputs.py +22 -0
- pulumi_alicloud/databasegateway/outputs.py +42 -0
- pulumi_alicloud/dcdn/_inputs.py +555 -27
- pulumi_alicloud/dcdn/domain.py +366 -217
- pulumi_alicloud/dcdn/outputs.py +550 -22
- pulumi_alicloud/ddos/_inputs.py +162 -0
- pulumi_alicloud/ddos/outputs.py +162 -0
- pulumi_alicloud/dfs/file_system.py +52 -19
- pulumi_alicloud/directmail/get_domains.py +31 -24
- pulumi_alicloud/directmail/outputs.py +131 -32
- pulumi_alicloud/ebs/_inputs.py +22 -0
- pulumi_alicloud/ebs/outputs.py +22 -0
- pulumi_alicloud/eci/_inputs.py +100 -0
- pulumi_alicloud/eci/outputs.py +100 -0
- pulumi_alicloud/ecs/_inputs.py +242 -16
- pulumi_alicloud/ecs/ecs_disk.py +7 -0
- pulumi_alicloud/ecs/image.py +607 -121
- pulumi_alicloud/ecs/instance.py +304 -102
- pulumi_alicloud/ecs/outputs.py +348 -17
- pulumi_alicloud/edas/_inputs.py +28 -0
- pulumi_alicloud/edas/outputs.py +28 -0
- pulumi_alicloud/ehpc/_inputs.py +6 -0
- pulumi_alicloud/ehpc/outputs.py +6 -0
- pulumi_alicloud/emr/_inputs.py +134 -0
- pulumi_alicloud/emr/outputs.py +148 -0
- pulumi_alicloud/emrv2/_inputs.py +714 -0
- pulumi_alicloud/emrv2/cluster.py +14 -14
- pulumi_alicloud/emrv2/outputs.py +724 -0
- pulumi_alicloud/ens/__init__.py +2 -0
- pulumi_alicloud/ens/eip_instance_attachment.py +480 -0
- pulumi_alicloud/ens/instance.py +16 -17
- pulumi_alicloud/ens/nat_gateway.py +458 -0
- pulumi_alicloud/ess/_inputs.py +24 -0
- pulumi_alicloud/ess/eci_scaling_configuration.py +94 -0
- pulumi_alicloud/ess/outputs.py +24 -0
- pulumi_alicloud/ess/scaling_group.py +94 -0
- pulumi_alicloud/eventbridge/_inputs.py +156 -0
- pulumi_alicloud/eventbridge/outputs.py +156 -0
- pulumi_alicloud/expressconnect/_inputs.py +12 -0
- pulumi_alicloud/expressconnect/outputs.py +12 -0
- pulumi_alicloud/fc/_inputs.py +32 -0
- pulumi_alicloud/fc/outputs.py +32 -0
- pulumi_alicloud/ga/_inputs.py +24 -0
- pulumi_alicloud/ga/bandwidth_package_attachment.py +34 -34
- pulumi_alicloud/ga/listener.py +122 -0
- pulumi_alicloud/ga/outputs.py +24 -0
- pulumi_alicloud/gpdb/__init__.py +4 -0
- pulumi_alicloud/gpdb/_inputs.py +48 -0
- pulumi_alicloud/gpdb/external_data_service.py +485 -0
- pulumi_alicloud/gpdb/outputs.py +60 -0
- pulumi_alicloud/gpdb/remote_adb_data_source.py +763 -0
- pulumi_alicloud/gpdb/streaming_data_service.py +481 -0
- pulumi_alicloud/gpdb/streaming_data_source.py +645 -0
- pulumi_alicloud/hbr/_inputs.py +68 -0
- pulumi_alicloud/hbr/outputs.py +68 -0
- pulumi_alicloud/imp/_inputs.py +14 -0
- pulumi_alicloud/imp/outputs.py +14 -0
- pulumi_alicloud/log/_inputs.py +14 -0
- pulumi_alicloud/log/outputs.py +14 -0
- pulumi_alicloud/maxcompute/_inputs.py +54 -34
- pulumi_alicloud/maxcompute/outputs.py +54 -34
- pulumi_alicloud/maxcompute/project.py +230 -66
- pulumi_alicloud/mongodb/_inputs.py +14 -0
- pulumi_alicloud/mongodb/outputs.py +14 -0
- pulumi_alicloud/oss/_inputs.py +100 -0
- pulumi_alicloud/oss/outputs.py +100 -0
- pulumi_alicloud/ots/_inputs.py +60 -0
- pulumi_alicloud/ots/outputs.py +60 -0
- pulumi_alicloud/polardb/_inputs.py +10 -0
- pulumi_alicloud/polardb/cluster.py +28 -28
- pulumi_alicloud/polardb/outputs.py +10 -0
- pulumi_alicloud/pulumi-plugin.json +1 -1
- pulumi_alicloud/pvtz/outputs.py +18 -0
- pulumi_alicloud/quotas/_inputs.py +10 -0
- pulumi_alicloud/quotas/outputs.py +10 -0
- pulumi_alicloud/ram/_inputs.py +24 -0
- pulumi_alicloud/ram/outputs.py +24 -0
- pulumi_alicloud/rdc/organization.py +2 -2
- pulumi_alicloud/realtimecompute/_inputs.py +6 -0
- pulumi_alicloud/realtimecompute/outputs.py +6 -0
- pulumi_alicloud/redis/tair_instance.py +161 -67
- pulumi_alicloud/rocketmq/_inputs.py +36 -0
- pulumi_alicloud/rocketmq/outputs.py +36 -0
- pulumi_alicloud/ros/_inputs.py +72 -0
- pulumi_alicloud/ros/outputs.py +72 -0
- pulumi_alicloud/sae/_inputs.py +118 -0
- pulumi_alicloud/sae/outputs.py +118 -0
- pulumi_alicloud/scdn/_inputs.py +56 -0
- pulumi_alicloud/scdn/outputs.py +56 -0
- pulumi_alicloud/servicecatalog/_inputs.py +10 -0
- pulumi_alicloud/servicecatalog/outputs.py +10 -0
- pulumi_alicloud/servicemesh/_inputs.py +150 -0
- pulumi_alicloud/servicemesh/outputs.py +154 -0
- pulumi_alicloud/slb/_inputs.py +8 -8
- pulumi_alicloud/slb/outputs.py +8 -8
- pulumi_alicloud/slb/server_group.py +140 -84
- pulumi_alicloud/sls/_inputs.py +186 -0
- pulumi_alicloud/sls/outputs.py +186 -0
- pulumi_alicloud/threatdetection/_inputs.py +32 -0
- pulumi_alicloud/threatdetection/outputs.py +32 -0
- pulumi_alicloud/vod/_inputs.py +18 -0
- pulumi_alicloud/vod/outputs.py +18 -0
- pulumi_alicloud/vpc/_inputs.py +50 -12
- pulumi_alicloud/vpc/network.py +332 -134
- pulumi_alicloud/vpc/outputs.py +50 -12
- pulumi_alicloud/vpc/public_ip_address_pool.py +118 -10
- pulumi_alicloud/vpn/_inputs.py +10 -0
- pulumi_alicloud/vpn/outputs.py +14 -0
- pulumi_alicloud/wafv3/_inputs.py +10 -0
- pulumi_alicloud/wafv3/outputs.py +10 -0
- {pulumi_alicloud-3.59.0a1720761596.dist-info → pulumi_alicloud-3.59.1.dist-info}/METADATA +1 -1
- {pulumi_alicloud-3.59.0a1720761596.dist-info → pulumi_alicloud-3.59.1.dist-info}/RECORD +144 -138
- {pulumi_alicloud-3.59.0a1720761596.dist-info → pulumi_alicloud-3.59.1.dist-info}/WHEEL +1 -1
- {pulumi_alicloud-3.59.0a1720761596.dist-info → pulumi_alicloud-3.59.1.dist-info}/top_level.txt +0 -0
pulumi_alicloud/ens/__init__.py
CHANGED
|
@@ -8,12 +8,14 @@ import typing
|
|
|
8
8
|
from .disk import *
|
|
9
9
|
from .disk_instance_attachment import *
|
|
10
10
|
from .eip import *
|
|
11
|
+
from .eip_instance_attachment import *
|
|
11
12
|
from .get_key_pairs import *
|
|
12
13
|
from .image import *
|
|
13
14
|
from .instance import *
|
|
14
15
|
from .instance_security_group_attachment import *
|
|
15
16
|
from .key_pair import *
|
|
16
17
|
from .load_balancer import *
|
|
18
|
+
from .nat_gateway import *
|
|
17
19
|
from .network import *
|
|
18
20
|
from .security_group import *
|
|
19
21
|
from .snapshot import *
|
|
@@ -0,0 +1,480 @@
|
|
|
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__ = ['EipInstanceAttachmentArgs', 'EipInstanceAttachment']
|
|
13
|
+
|
|
14
|
+
@pulumi.input_type
|
|
15
|
+
class EipInstanceAttachmentArgs:
|
|
16
|
+
def __init__(__self__, *,
|
|
17
|
+
allocation_id: pulumi.Input[str],
|
|
18
|
+
instance_id: pulumi.Input[str],
|
|
19
|
+
instance_type: Optional[pulumi.Input[str]] = None,
|
|
20
|
+
standby: Optional[pulumi.Input[bool]] = None):
|
|
21
|
+
"""
|
|
22
|
+
The set of arguments for constructing a EipInstanceAttachment resource.
|
|
23
|
+
:param pulumi.Input[str] allocation_id: The first ID of the resource
|
|
24
|
+
:param pulumi.Input[str] instance_id: Instance ID
|
|
25
|
+
:param pulumi.Input[str] instance_type: The type of the EIP instance. Value:
|
|
26
|
+
- `Nat`:NAT gateway.
|
|
27
|
+
- `SlbInstance`: Server Load Balancer (ELB).
|
|
28
|
+
- `NetworkInterface`: Secondary ENI.
|
|
29
|
+
- `EnsInstance` (default): The ENS instance.
|
|
30
|
+
:param pulumi.Input[bool] standby: Indicates whether the EIP is a backup EIP. Value:
|
|
31
|
+
- true: Spare.
|
|
32
|
+
- false: not standby.
|
|
33
|
+
"""
|
|
34
|
+
pulumi.set(__self__, "allocation_id", allocation_id)
|
|
35
|
+
pulumi.set(__self__, "instance_id", instance_id)
|
|
36
|
+
if instance_type is not None:
|
|
37
|
+
pulumi.set(__self__, "instance_type", instance_type)
|
|
38
|
+
if standby is not None:
|
|
39
|
+
pulumi.set(__self__, "standby", standby)
|
|
40
|
+
|
|
41
|
+
@property
|
|
42
|
+
@pulumi.getter(name="allocationId")
|
|
43
|
+
def allocation_id(self) -> pulumi.Input[str]:
|
|
44
|
+
"""
|
|
45
|
+
The first ID of the resource
|
|
46
|
+
"""
|
|
47
|
+
return pulumi.get(self, "allocation_id")
|
|
48
|
+
|
|
49
|
+
@allocation_id.setter
|
|
50
|
+
def allocation_id(self, value: pulumi.Input[str]):
|
|
51
|
+
pulumi.set(self, "allocation_id", value)
|
|
52
|
+
|
|
53
|
+
@property
|
|
54
|
+
@pulumi.getter(name="instanceId")
|
|
55
|
+
def instance_id(self) -> pulumi.Input[str]:
|
|
56
|
+
"""
|
|
57
|
+
Instance ID
|
|
58
|
+
"""
|
|
59
|
+
return pulumi.get(self, "instance_id")
|
|
60
|
+
|
|
61
|
+
@instance_id.setter
|
|
62
|
+
def instance_id(self, value: pulumi.Input[str]):
|
|
63
|
+
pulumi.set(self, "instance_id", value)
|
|
64
|
+
|
|
65
|
+
@property
|
|
66
|
+
@pulumi.getter(name="instanceType")
|
|
67
|
+
def instance_type(self) -> Optional[pulumi.Input[str]]:
|
|
68
|
+
"""
|
|
69
|
+
The type of the EIP instance. Value:
|
|
70
|
+
- `Nat`:NAT gateway.
|
|
71
|
+
- `SlbInstance`: Server Load Balancer (ELB).
|
|
72
|
+
- `NetworkInterface`: Secondary ENI.
|
|
73
|
+
- `EnsInstance` (default): The ENS instance.
|
|
74
|
+
"""
|
|
75
|
+
return pulumi.get(self, "instance_type")
|
|
76
|
+
|
|
77
|
+
@instance_type.setter
|
|
78
|
+
def instance_type(self, value: Optional[pulumi.Input[str]]):
|
|
79
|
+
pulumi.set(self, "instance_type", value)
|
|
80
|
+
|
|
81
|
+
@property
|
|
82
|
+
@pulumi.getter
|
|
83
|
+
def standby(self) -> Optional[pulumi.Input[bool]]:
|
|
84
|
+
"""
|
|
85
|
+
Indicates whether the EIP is a backup EIP. Value:
|
|
86
|
+
- true: Spare.
|
|
87
|
+
- false: not standby.
|
|
88
|
+
"""
|
|
89
|
+
return pulumi.get(self, "standby")
|
|
90
|
+
|
|
91
|
+
@standby.setter
|
|
92
|
+
def standby(self, value: Optional[pulumi.Input[bool]]):
|
|
93
|
+
pulumi.set(self, "standby", value)
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
@pulumi.input_type
|
|
97
|
+
class _EipInstanceAttachmentState:
|
|
98
|
+
def __init__(__self__, *,
|
|
99
|
+
allocation_id: Optional[pulumi.Input[str]] = None,
|
|
100
|
+
instance_id: Optional[pulumi.Input[str]] = None,
|
|
101
|
+
instance_type: Optional[pulumi.Input[str]] = None,
|
|
102
|
+
standby: Optional[pulumi.Input[bool]] = None,
|
|
103
|
+
status: Optional[pulumi.Input[str]] = None):
|
|
104
|
+
"""
|
|
105
|
+
Input properties used for looking up and filtering EipInstanceAttachment resources.
|
|
106
|
+
:param pulumi.Input[str] allocation_id: The first ID of the resource
|
|
107
|
+
:param pulumi.Input[str] instance_id: Instance ID
|
|
108
|
+
:param pulumi.Input[str] instance_type: The type of the EIP instance. Value:
|
|
109
|
+
- `Nat`:NAT gateway.
|
|
110
|
+
- `SlbInstance`: Server Load Balancer (ELB).
|
|
111
|
+
- `NetworkInterface`: Secondary ENI.
|
|
112
|
+
- `EnsInstance` (default): The ENS instance.
|
|
113
|
+
:param pulumi.Input[bool] standby: Indicates whether the EIP is a backup EIP. Value:
|
|
114
|
+
- true: Spare.
|
|
115
|
+
- false: not standby.
|
|
116
|
+
:param pulumi.Input[str] status: The status of the EIP.
|
|
117
|
+
"""
|
|
118
|
+
if allocation_id is not None:
|
|
119
|
+
pulumi.set(__self__, "allocation_id", allocation_id)
|
|
120
|
+
if instance_id is not None:
|
|
121
|
+
pulumi.set(__self__, "instance_id", instance_id)
|
|
122
|
+
if instance_type is not None:
|
|
123
|
+
pulumi.set(__self__, "instance_type", instance_type)
|
|
124
|
+
if standby is not None:
|
|
125
|
+
pulumi.set(__self__, "standby", standby)
|
|
126
|
+
if status is not None:
|
|
127
|
+
pulumi.set(__self__, "status", status)
|
|
128
|
+
|
|
129
|
+
@property
|
|
130
|
+
@pulumi.getter(name="allocationId")
|
|
131
|
+
def allocation_id(self) -> Optional[pulumi.Input[str]]:
|
|
132
|
+
"""
|
|
133
|
+
The first ID of the resource
|
|
134
|
+
"""
|
|
135
|
+
return pulumi.get(self, "allocation_id")
|
|
136
|
+
|
|
137
|
+
@allocation_id.setter
|
|
138
|
+
def allocation_id(self, value: Optional[pulumi.Input[str]]):
|
|
139
|
+
pulumi.set(self, "allocation_id", value)
|
|
140
|
+
|
|
141
|
+
@property
|
|
142
|
+
@pulumi.getter(name="instanceId")
|
|
143
|
+
def instance_id(self) -> Optional[pulumi.Input[str]]:
|
|
144
|
+
"""
|
|
145
|
+
Instance ID
|
|
146
|
+
"""
|
|
147
|
+
return pulumi.get(self, "instance_id")
|
|
148
|
+
|
|
149
|
+
@instance_id.setter
|
|
150
|
+
def instance_id(self, value: Optional[pulumi.Input[str]]):
|
|
151
|
+
pulumi.set(self, "instance_id", value)
|
|
152
|
+
|
|
153
|
+
@property
|
|
154
|
+
@pulumi.getter(name="instanceType")
|
|
155
|
+
def instance_type(self) -> Optional[pulumi.Input[str]]:
|
|
156
|
+
"""
|
|
157
|
+
The type of the EIP instance. Value:
|
|
158
|
+
- `Nat`:NAT gateway.
|
|
159
|
+
- `SlbInstance`: Server Load Balancer (ELB).
|
|
160
|
+
- `NetworkInterface`: Secondary ENI.
|
|
161
|
+
- `EnsInstance` (default): The ENS instance.
|
|
162
|
+
"""
|
|
163
|
+
return pulumi.get(self, "instance_type")
|
|
164
|
+
|
|
165
|
+
@instance_type.setter
|
|
166
|
+
def instance_type(self, value: Optional[pulumi.Input[str]]):
|
|
167
|
+
pulumi.set(self, "instance_type", value)
|
|
168
|
+
|
|
169
|
+
@property
|
|
170
|
+
@pulumi.getter
|
|
171
|
+
def standby(self) -> Optional[pulumi.Input[bool]]:
|
|
172
|
+
"""
|
|
173
|
+
Indicates whether the EIP is a backup EIP. Value:
|
|
174
|
+
- true: Spare.
|
|
175
|
+
- false: not standby.
|
|
176
|
+
"""
|
|
177
|
+
return pulumi.get(self, "standby")
|
|
178
|
+
|
|
179
|
+
@standby.setter
|
|
180
|
+
def standby(self, value: Optional[pulumi.Input[bool]]):
|
|
181
|
+
pulumi.set(self, "standby", value)
|
|
182
|
+
|
|
183
|
+
@property
|
|
184
|
+
@pulumi.getter
|
|
185
|
+
def status(self) -> Optional[pulumi.Input[str]]:
|
|
186
|
+
"""
|
|
187
|
+
The status of the EIP.
|
|
188
|
+
"""
|
|
189
|
+
return pulumi.get(self, "status")
|
|
190
|
+
|
|
191
|
+
@status.setter
|
|
192
|
+
def status(self, value: Optional[pulumi.Input[str]]):
|
|
193
|
+
pulumi.set(self, "status", value)
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
class EipInstanceAttachment(pulumi.CustomResource):
|
|
197
|
+
@overload
|
|
198
|
+
def __init__(__self__,
|
|
199
|
+
resource_name: str,
|
|
200
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
201
|
+
allocation_id: Optional[pulumi.Input[str]] = None,
|
|
202
|
+
instance_id: Optional[pulumi.Input[str]] = None,
|
|
203
|
+
instance_type: Optional[pulumi.Input[str]] = None,
|
|
204
|
+
standby: Optional[pulumi.Input[bool]] = None,
|
|
205
|
+
__props__=None):
|
|
206
|
+
"""
|
|
207
|
+
Provides a Ens Eip Instance Attachment resource.
|
|
208
|
+
|
|
209
|
+
Bind an EIP to an instance.
|
|
210
|
+
|
|
211
|
+
For information about Ens Eip Instance Attachment and how to use it, see [What is Eip Instance Attachment](https://www.alibabacloud.com/help/en/).
|
|
212
|
+
|
|
213
|
+
> **NOTE:** Available since v1.227.0.
|
|
214
|
+
|
|
215
|
+
## Example Usage
|
|
216
|
+
|
|
217
|
+
Basic Usage
|
|
218
|
+
|
|
219
|
+
```python
|
|
220
|
+
import pulumi
|
|
221
|
+
import pulumi_alicloud as alicloud
|
|
222
|
+
|
|
223
|
+
config = pulumi.Config()
|
|
224
|
+
name = config.get("name")
|
|
225
|
+
if name is None:
|
|
226
|
+
name = "terraform-example"
|
|
227
|
+
ens_region_id = config.get("ensRegionId")
|
|
228
|
+
if ens_region_id is None:
|
|
229
|
+
ens_region_id = "cn-chenzhou-telecom_unicom_cmcc"
|
|
230
|
+
default_x_kjq1_w = alicloud.ens.Instance("defaultXKjq1W",
|
|
231
|
+
system_disk=alicloud.ens.InstanceSystemDiskArgs(
|
|
232
|
+
size=20,
|
|
233
|
+
category="cloud_efficiency",
|
|
234
|
+
),
|
|
235
|
+
scheduling_strategy="Concentrate",
|
|
236
|
+
schedule_area_level="Region",
|
|
237
|
+
image_id="centos_6_08_64_20G_alibase_20171208",
|
|
238
|
+
payment_type="Subscription",
|
|
239
|
+
instance_type="ens.sn1.stiny",
|
|
240
|
+
password="12345678abcABC",
|
|
241
|
+
status="Running",
|
|
242
|
+
amount=1,
|
|
243
|
+
internet_charge_type="95BandwidthByMonth",
|
|
244
|
+
instance_name=name,
|
|
245
|
+
auto_use_coupon="true",
|
|
246
|
+
instance_charge_strategy="PriceHighPriority",
|
|
247
|
+
ens_region_id=ens_region_id,
|
|
248
|
+
period_unit="Month")
|
|
249
|
+
defaults_gs_n4e = alicloud.ens.Eip("defaultsGsN4e",
|
|
250
|
+
bandwidth=5,
|
|
251
|
+
eip_name=name,
|
|
252
|
+
ens_region_id=ens_region_id,
|
|
253
|
+
internet_charge_type="95BandwidthByMonth",
|
|
254
|
+
payment_type="PayAsYouGo")
|
|
255
|
+
default = alicloud.ens.EipInstanceAttachment("default",
|
|
256
|
+
instance_id=default_x_kjq1_w.id,
|
|
257
|
+
allocation_id=defaults_gs_n4e.id,
|
|
258
|
+
instance_type="EnsInstance",
|
|
259
|
+
standby=False)
|
|
260
|
+
```
|
|
261
|
+
|
|
262
|
+
## Import
|
|
263
|
+
|
|
264
|
+
Ens Eip Instance Attachment can be imported using the id, e.g.
|
|
265
|
+
|
|
266
|
+
```sh
|
|
267
|
+
$ pulumi import alicloud:ens/eipInstanceAttachment:EipInstanceAttachment example <allocation_id>:<instance_id>:<instance_type>
|
|
268
|
+
```
|
|
269
|
+
|
|
270
|
+
:param str resource_name: The name of the resource.
|
|
271
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
272
|
+
:param pulumi.Input[str] allocation_id: The first ID of the resource
|
|
273
|
+
:param pulumi.Input[str] instance_id: Instance ID
|
|
274
|
+
:param pulumi.Input[str] instance_type: The type of the EIP instance. Value:
|
|
275
|
+
- `Nat`:NAT gateway.
|
|
276
|
+
- `SlbInstance`: Server Load Balancer (ELB).
|
|
277
|
+
- `NetworkInterface`: Secondary ENI.
|
|
278
|
+
- `EnsInstance` (default): The ENS instance.
|
|
279
|
+
:param pulumi.Input[bool] standby: Indicates whether the EIP is a backup EIP. Value:
|
|
280
|
+
- true: Spare.
|
|
281
|
+
- false: not standby.
|
|
282
|
+
"""
|
|
283
|
+
...
|
|
284
|
+
@overload
|
|
285
|
+
def __init__(__self__,
|
|
286
|
+
resource_name: str,
|
|
287
|
+
args: EipInstanceAttachmentArgs,
|
|
288
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
289
|
+
"""
|
|
290
|
+
Provides a Ens Eip Instance Attachment resource.
|
|
291
|
+
|
|
292
|
+
Bind an EIP to an instance.
|
|
293
|
+
|
|
294
|
+
For information about Ens Eip Instance Attachment and how to use it, see [What is Eip Instance Attachment](https://www.alibabacloud.com/help/en/).
|
|
295
|
+
|
|
296
|
+
> **NOTE:** Available since v1.227.0.
|
|
297
|
+
|
|
298
|
+
## Example Usage
|
|
299
|
+
|
|
300
|
+
Basic Usage
|
|
301
|
+
|
|
302
|
+
```python
|
|
303
|
+
import pulumi
|
|
304
|
+
import pulumi_alicloud as alicloud
|
|
305
|
+
|
|
306
|
+
config = pulumi.Config()
|
|
307
|
+
name = config.get("name")
|
|
308
|
+
if name is None:
|
|
309
|
+
name = "terraform-example"
|
|
310
|
+
ens_region_id = config.get("ensRegionId")
|
|
311
|
+
if ens_region_id is None:
|
|
312
|
+
ens_region_id = "cn-chenzhou-telecom_unicom_cmcc"
|
|
313
|
+
default_x_kjq1_w = alicloud.ens.Instance("defaultXKjq1W",
|
|
314
|
+
system_disk=alicloud.ens.InstanceSystemDiskArgs(
|
|
315
|
+
size=20,
|
|
316
|
+
category="cloud_efficiency",
|
|
317
|
+
),
|
|
318
|
+
scheduling_strategy="Concentrate",
|
|
319
|
+
schedule_area_level="Region",
|
|
320
|
+
image_id="centos_6_08_64_20G_alibase_20171208",
|
|
321
|
+
payment_type="Subscription",
|
|
322
|
+
instance_type="ens.sn1.stiny",
|
|
323
|
+
password="12345678abcABC",
|
|
324
|
+
status="Running",
|
|
325
|
+
amount=1,
|
|
326
|
+
internet_charge_type="95BandwidthByMonth",
|
|
327
|
+
instance_name=name,
|
|
328
|
+
auto_use_coupon="true",
|
|
329
|
+
instance_charge_strategy="PriceHighPriority",
|
|
330
|
+
ens_region_id=ens_region_id,
|
|
331
|
+
period_unit="Month")
|
|
332
|
+
defaults_gs_n4e = alicloud.ens.Eip("defaultsGsN4e",
|
|
333
|
+
bandwidth=5,
|
|
334
|
+
eip_name=name,
|
|
335
|
+
ens_region_id=ens_region_id,
|
|
336
|
+
internet_charge_type="95BandwidthByMonth",
|
|
337
|
+
payment_type="PayAsYouGo")
|
|
338
|
+
default = alicloud.ens.EipInstanceAttachment("default",
|
|
339
|
+
instance_id=default_x_kjq1_w.id,
|
|
340
|
+
allocation_id=defaults_gs_n4e.id,
|
|
341
|
+
instance_type="EnsInstance",
|
|
342
|
+
standby=False)
|
|
343
|
+
```
|
|
344
|
+
|
|
345
|
+
## Import
|
|
346
|
+
|
|
347
|
+
Ens Eip Instance Attachment can be imported using the id, e.g.
|
|
348
|
+
|
|
349
|
+
```sh
|
|
350
|
+
$ pulumi import alicloud:ens/eipInstanceAttachment:EipInstanceAttachment example <allocation_id>:<instance_id>:<instance_type>
|
|
351
|
+
```
|
|
352
|
+
|
|
353
|
+
:param str resource_name: The name of the resource.
|
|
354
|
+
:param EipInstanceAttachmentArgs args: The arguments to use to populate this resource's properties.
|
|
355
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
356
|
+
"""
|
|
357
|
+
...
|
|
358
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
359
|
+
resource_args, opts = _utilities.get_resource_args_opts(EipInstanceAttachmentArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
360
|
+
if resource_args is not None:
|
|
361
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
362
|
+
else:
|
|
363
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
364
|
+
|
|
365
|
+
def _internal_init(__self__,
|
|
366
|
+
resource_name: str,
|
|
367
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
368
|
+
allocation_id: Optional[pulumi.Input[str]] = None,
|
|
369
|
+
instance_id: Optional[pulumi.Input[str]] = None,
|
|
370
|
+
instance_type: Optional[pulumi.Input[str]] = None,
|
|
371
|
+
standby: Optional[pulumi.Input[bool]] = None,
|
|
372
|
+
__props__=None):
|
|
373
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
374
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
375
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
376
|
+
if opts.id is None:
|
|
377
|
+
if __props__ is not None:
|
|
378
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
379
|
+
__props__ = EipInstanceAttachmentArgs.__new__(EipInstanceAttachmentArgs)
|
|
380
|
+
|
|
381
|
+
if allocation_id is None and not opts.urn:
|
|
382
|
+
raise TypeError("Missing required property 'allocation_id'")
|
|
383
|
+
__props__.__dict__["allocation_id"] = allocation_id
|
|
384
|
+
if instance_id is None and not opts.urn:
|
|
385
|
+
raise TypeError("Missing required property 'instance_id'")
|
|
386
|
+
__props__.__dict__["instance_id"] = instance_id
|
|
387
|
+
__props__.__dict__["instance_type"] = instance_type
|
|
388
|
+
__props__.__dict__["standby"] = standby
|
|
389
|
+
__props__.__dict__["status"] = None
|
|
390
|
+
super(EipInstanceAttachment, __self__).__init__(
|
|
391
|
+
'alicloud:ens/eipInstanceAttachment:EipInstanceAttachment',
|
|
392
|
+
resource_name,
|
|
393
|
+
__props__,
|
|
394
|
+
opts)
|
|
395
|
+
|
|
396
|
+
@staticmethod
|
|
397
|
+
def get(resource_name: str,
|
|
398
|
+
id: pulumi.Input[str],
|
|
399
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
400
|
+
allocation_id: Optional[pulumi.Input[str]] = None,
|
|
401
|
+
instance_id: Optional[pulumi.Input[str]] = None,
|
|
402
|
+
instance_type: Optional[pulumi.Input[str]] = None,
|
|
403
|
+
standby: Optional[pulumi.Input[bool]] = None,
|
|
404
|
+
status: Optional[pulumi.Input[str]] = None) -> 'EipInstanceAttachment':
|
|
405
|
+
"""
|
|
406
|
+
Get an existing EipInstanceAttachment resource's state with the given name, id, and optional extra
|
|
407
|
+
properties used to qualify the lookup.
|
|
408
|
+
|
|
409
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
410
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
411
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
412
|
+
:param pulumi.Input[str] allocation_id: The first ID of the resource
|
|
413
|
+
:param pulumi.Input[str] instance_id: Instance ID
|
|
414
|
+
:param pulumi.Input[str] instance_type: The type of the EIP instance. Value:
|
|
415
|
+
- `Nat`:NAT gateway.
|
|
416
|
+
- `SlbInstance`: Server Load Balancer (ELB).
|
|
417
|
+
- `NetworkInterface`: Secondary ENI.
|
|
418
|
+
- `EnsInstance` (default): The ENS instance.
|
|
419
|
+
:param pulumi.Input[bool] standby: Indicates whether the EIP is a backup EIP. Value:
|
|
420
|
+
- true: Spare.
|
|
421
|
+
- false: not standby.
|
|
422
|
+
:param pulumi.Input[str] status: The status of the EIP.
|
|
423
|
+
"""
|
|
424
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
425
|
+
|
|
426
|
+
__props__ = _EipInstanceAttachmentState.__new__(_EipInstanceAttachmentState)
|
|
427
|
+
|
|
428
|
+
__props__.__dict__["allocation_id"] = allocation_id
|
|
429
|
+
__props__.__dict__["instance_id"] = instance_id
|
|
430
|
+
__props__.__dict__["instance_type"] = instance_type
|
|
431
|
+
__props__.__dict__["standby"] = standby
|
|
432
|
+
__props__.__dict__["status"] = status
|
|
433
|
+
return EipInstanceAttachment(resource_name, opts=opts, __props__=__props__)
|
|
434
|
+
|
|
435
|
+
@property
|
|
436
|
+
@pulumi.getter(name="allocationId")
|
|
437
|
+
def allocation_id(self) -> pulumi.Output[str]:
|
|
438
|
+
"""
|
|
439
|
+
The first ID of the resource
|
|
440
|
+
"""
|
|
441
|
+
return pulumi.get(self, "allocation_id")
|
|
442
|
+
|
|
443
|
+
@property
|
|
444
|
+
@pulumi.getter(name="instanceId")
|
|
445
|
+
def instance_id(self) -> pulumi.Output[str]:
|
|
446
|
+
"""
|
|
447
|
+
Instance ID
|
|
448
|
+
"""
|
|
449
|
+
return pulumi.get(self, "instance_id")
|
|
450
|
+
|
|
451
|
+
@property
|
|
452
|
+
@pulumi.getter(name="instanceType")
|
|
453
|
+
def instance_type(self) -> pulumi.Output[str]:
|
|
454
|
+
"""
|
|
455
|
+
The type of the EIP instance. Value:
|
|
456
|
+
- `Nat`:NAT gateway.
|
|
457
|
+
- `SlbInstance`: Server Load Balancer (ELB).
|
|
458
|
+
- `NetworkInterface`: Secondary ENI.
|
|
459
|
+
- `EnsInstance` (default): The ENS instance.
|
|
460
|
+
"""
|
|
461
|
+
return pulumi.get(self, "instance_type")
|
|
462
|
+
|
|
463
|
+
@property
|
|
464
|
+
@pulumi.getter
|
|
465
|
+
def standby(self) -> pulumi.Output[Optional[bool]]:
|
|
466
|
+
"""
|
|
467
|
+
Indicates whether the EIP is a backup EIP. Value:
|
|
468
|
+
- true: Spare.
|
|
469
|
+
- false: not standby.
|
|
470
|
+
"""
|
|
471
|
+
return pulumi.get(self, "standby")
|
|
472
|
+
|
|
473
|
+
@property
|
|
474
|
+
@pulumi.getter
|
|
475
|
+
def status(self) -> pulumi.Output[str]:
|
|
476
|
+
"""
|
|
477
|
+
The status of the EIP.
|
|
478
|
+
"""
|
|
479
|
+
return pulumi.get(self, "status")
|
|
480
|
+
|
pulumi_alicloud/ens/instance.py
CHANGED
|
@@ -17,7 +17,6 @@ __all__ = ['InstanceArgs', 'Instance']
|
|
|
17
17
|
class InstanceArgs:
|
|
18
18
|
def __init__(__self__, *,
|
|
19
19
|
instance_type: pulumi.Input[str],
|
|
20
|
-
internet_max_bandwidth_out: pulumi.Input[int],
|
|
21
20
|
payment_type: pulumi.Input[str],
|
|
22
21
|
schedule_area_level: pulumi.Input[str],
|
|
23
22
|
amount: Optional[pulumi.Input[int]] = None,
|
|
@@ -34,6 +33,7 @@ class InstanceArgs:
|
|
|
34
33
|
instance_charge_strategy: Optional[pulumi.Input[str]] = None,
|
|
35
34
|
instance_name: Optional[pulumi.Input[str]] = None,
|
|
36
35
|
internet_charge_type: Optional[pulumi.Input[str]] = None,
|
|
36
|
+
internet_max_bandwidth_out: Optional[pulumi.Input[int]] = None,
|
|
37
37
|
ip_type: Optional[pulumi.Input[str]] = None,
|
|
38
38
|
net_district_code: Optional[pulumi.Input[str]] = None,
|
|
39
39
|
net_work_id: Optional[pulumi.Input[str]] = None,
|
|
@@ -54,7 +54,6 @@ class InstanceArgs:
|
|
|
54
54
|
"""
|
|
55
55
|
The set of arguments for constructing a Instance resource.
|
|
56
56
|
:param pulumi.Input[str] instance_type: The specification of the instance. Example value: ens.sn1.small.
|
|
57
|
-
:param pulumi.Input[int] internet_max_bandwidth_out: Maximum public network bandwidth. The field type is Long, and the precision may be lost during serialization/deserialization. Please note that the value must not be greater than 9007199254740991.
|
|
58
57
|
:param pulumi.Input[str] payment_type: Instance payment method. Optional values:
|
|
59
58
|
- Subscription: prepaid, annual and monthly
|
|
60
59
|
- PayAsYouGo: Pay by volume.
|
|
@@ -89,6 +88,7 @@ class InstanceArgs:
|
|
|
89
88
|
:param pulumi.Input[str] internet_charge_type: Instance bandwidth billing method. If the billing method can be selected for the first purchase, the subsequent value of this field will be processed by default according to the billing method selected for the first time. Optional values:
|
|
90
89
|
- BandwidthByDay: Daily peak bandwidth
|
|
91
90
|
- 95bandwidthbymonth: 95 peak bandwidth.
|
|
91
|
+
:param pulumi.Input[int] internet_max_bandwidth_out: Maximum public network bandwidth. The field type is Long, and the precision may be lost during serialization/deserialization. Please note that the value must not be greater than 9007199254740991.
|
|
92
92
|
:param pulumi.Input[str] ip_type: The IP type. Value:
|
|
93
93
|
- ipv4 (default):IPv4
|
|
94
94
|
- ipv6:IPv6
|
|
@@ -121,7 +121,6 @@ class InstanceArgs:
|
|
|
121
121
|
:param pulumi.Input[str] vswitch_id: The ID of the vSwitch to which the instance belongs. Can only be used in node-level scheduling.
|
|
122
122
|
"""
|
|
123
123
|
pulumi.set(__self__, "instance_type", instance_type)
|
|
124
|
-
pulumi.set(__self__, "internet_max_bandwidth_out", internet_max_bandwidth_out)
|
|
125
124
|
pulumi.set(__self__, "payment_type", payment_type)
|
|
126
125
|
pulumi.set(__self__, "schedule_area_level", schedule_area_level)
|
|
127
126
|
if amount is not None:
|
|
@@ -152,6 +151,8 @@ class InstanceArgs:
|
|
|
152
151
|
pulumi.set(__self__, "instance_name", instance_name)
|
|
153
152
|
if internet_charge_type is not None:
|
|
154
153
|
pulumi.set(__self__, "internet_charge_type", internet_charge_type)
|
|
154
|
+
if internet_max_bandwidth_out is not None:
|
|
155
|
+
pulumi.set(__self__, "internet_max_bandwidth_out", internet_max_bandwidth_out)
|
|
155
156
|
if ip_type is not None:
|
|
156
157
|
pulumi.set(__self__, "ip_type", ip_type)
|
|
157
158
|
if net_district_code is not None:
|
|
@@ -199,18 +200,6 @@ class InstanceArgs:
|
|
|
199
200
|
def instance_type(self, value: pulumi.Input[str]):
|
|
200
201
|
pulumi.set(self, "instance_type", value)
|
|
201
202
|
|
|
202
|
-
@property
|
|
203
|
-
@pulumi.getter(name="internetMaxBandwidthOut")
|
|
204
|
-
def internet_max_bandwidth_out(self) -> pulumi.Input[int]:
|
|
205
|
-
"""
|
|
206
|
-
Maximum public network bandwidth. The field type is Long, and the precision may be lost during serialization/deserialization. Please note that the value must not be greater than 9007199254740991.
|
|
207
|
-
"""
|
|
208
|
-
return pulumi.get(self, "internet_max_bandwidth_out")
|
|
209
|
-
|
|
210
|
-
@internet_max_bandwidth_out.setter
|
|
211
|
-
def internet_max_bandwidth_out(self, value: pulumi.Input[int]):
|
|
212
|
-
pulumi.set(self, "internet_max_bandwidth_out", value)
|
|
213
|
-
|
|
214
203
|
@property
|
|
215
204
|
@pulumi.getter(name="paymentType")
|
|
216
205
|
def payment_type(self) -> pulumi.Input[str]:
|
|
@@ -421,6 +410,18 @@ class InstanceArgs:
|
|
|
421
410
|
def internet_charge_type(self, value: Optional[pulumi.Input[str]]):
|
|
422
411
|
pulumi.set(self, "internet_charge_type", value)
|
|
423
412
|
|
|
413
|
+
@property
|
|
414
|
+
@pulumi.getter(name="internetMaxBandwidthOut")
|
|
415
|
+
def internet_max_bandwidth_out(self) -> Optional[pulumi.Input[int]]:
|
|
416
|
+
"""
|
|
417
|
+
Maximum public network bandwidth. The field type is Long, and the precision may be lost during serialization/deserialization. Please note that the value must not be greater than 9007199254740991.
|
|
418
|
+
"""
|
|
419
|
+
return pulumi.get(self, "internet_max_bandwidth_out")
|
|
420
|
+
|
|
421
|
+
@internet_max_bandwidth_out.setter
|
|
422
|
+
def internet_max_bandwidth_out(self, value: Optional[pulumi.Input[int]]):
|
|
423
|
+
pulumi.set(self, "internet_max_bandwidth_out", value)
|
|
424
|
+
|
|
424
425
|
@property
|
|
425
426
|
@pulumi.getter(name="ipType")
|
|
426
427
|
def ip_type(self) -> Optional[pulumi.Input[str]]:
|
|
@@ -1479,8 +1480,6 @@ class Instance(pulumi.CustomResource):
|
|
|
1479
1480
|
raise TypeError("Missing required property 'instance_type'")
|
|
1480
1481
|
__props__.__dict__["instance_type"] = instance_type
|
|
1481
1482
|
__props__.__dict__["internet_charge_type"] = internet_charge_type
|
|
1482
|
-
if internet_max_bandwidth_out is None and not opts.urn:
|
|
1483
|
-
raise TypeError("Missing required property 'internet_max_bandwidth_out'")
|
|
1484
1483
|
__props__.__dict__["internet_max_bandwidth_out"] = internet_max_bandwidth_out
|
|
1485
1484
|
__props__.__dict__["ip_type"] = ip_type
|
|
1486
1485
|
__props__.__dict__["net_district_code"] = net_district_code
|